2024-01-27 16:37:52 +08:00
|
|
|
<template>
|
|
|
|
<view class="pages">
|
|
|
|
<u-navbar title="充值记录" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
|
|
|
height='36'></u-navbar>
|
|
|
|
|
|
|
|
<view class="tops">
|
|
|
|
<view class="tit">充值记录</view>
|
|
|
|
<view class="more">更多</view>
|
|
|
|
</view>
|
2024-03-25 19:46:07 +08:00
|
|
|
<view class="cards" v-for="(item,index) in list" :key="index">
|
2024-01-27 16:37:52 +08:00
|
|
|
<view class="card_left">
|
|
|
|
<view class="top">用户充值</view>
|
|
|
|
<view class="bot">
|
2024-03-25 19:46:07 +08:00
|
|
|
{{item.createTime}}
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="card_right">
|
2024-03-25 19:46:07 +08:00
|
|
|
<view class="top">+{{item.money / item.unitPrice}}度</view>
|
2024-01-27 16:37:52 +08:00
|
|
|
<view class="bot">
|
2024-03-25 19:46:07 +08:00
|
|
|
¥{{item.money}}
|
2024-01-27 16:37:52 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="btn">
|
|
|
|
电费充值
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
bgc: {
|
|
|
|
backgroundColor: "#F7FAFE",
|
|
|
|
},
|
2024-03-25 19:46:07 +08:00
|
|
|
list:''
|
2024-01-27 16:37:52 +08:00
|
|
|
}
|
|
|
|
},
|
2024-03-25 19:46:07 +08:00
|
|
|
onLoad() {
|
|
|
|
this.getDeviceList()
|
|
|
|
},
|
2024-01-27 16:37:52 +08:00
|
|
|
methods: {
|
2024-03-25 19:46:07 +08:00
|
|
|
getDeviceList(){
|
|
|
|
this.$u.get("/app/bill/rechargeList").then((res) => {
|
|
|
|
if (res.code == 200) {
|
|
|
|
this.list = res.rows
|
|
|
|
console.log(this.list,'000');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
2024-01-27 16:37:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
page {
|
|
|
|
background-color: #F7FAFE;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pages {
|
|
|
|
width: 750rpx;
|
|
|
|
|
|
|
|
.tops {
|
|
|
|
margin-top: 20rpx;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.tit {
|
|
|
|
margin-left: 36rpx;
|
|
|
|
font-size: 48rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #262B37;
|
|
|
|
}
|
|
|
|
|
|
|
|
.more {
|
|
|
|
margin-right: 36rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #8883F0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.cards {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
width: 672rpx;
|
|
|
|
height: 154rpx;
|
|
|
|
background: #FFFFFF;
|
|
|
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
|
|
|
|
margin: 18rpx auto;
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
|
|
|
.card_left {
|
|
|
|
margin-left: 50rpx;
|
|
|
|
|
|
|
|
.top {
|
|
|
|
font-size: 24rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #262B37;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot {
|
|
|
|
margin-top: 12rpx;
|
|
|
|
font-size: 24rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #808080;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card_right {
|
|
|
|
margin-right: 24rpx;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
.top {
|
|
|
|
margin-top: 12rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #8883F0
|
|
|
|
}
|
|
|
|
|
|
|
|
.bot {
|
|
|
|
margin-top: 12rpx;
|
|
|
|
font-size: 24rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #808080;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btn{
|
|
|
|
margin-left: 116rpx;
|
|
|
|
margin-top: 124rpx;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 520rpx;
|
|
|
|
height: 104rpx;
|
|
|
|
background: #8883F0;
|
|
|
|
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42,130,228,0.1);
|
|
|
|
border-radius: 52rpx 52rpx 52rpx 52rpx;
|
|
|
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #FFFFFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|