smartmeter-app/page_user/order_detail.vue

160 lines
2.9 KiB
Vue
Raw Normal View History

2024-03-13 10:54:22 +08:00
<template>
<view>
<u-navbar title="账单详情" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
height='36'></u-navbar>
2024-03-25 19:46:07 +08:00
<view class="cont">
<view class="order_card">
<view class="cardtop">
<view class="text">
到账金额
</view>
<view class="num">
{{list.arrivalAmount}}
</view>
<view class="text">
账户余额{{list.afterBalance}}
</view>
</view>
<view class="card_bot">
<view class="info_li">
<view class="text">
到账日期
</view>
2024-03-13 10:54:22 +08:00
<view class="text">
2024-03-25 19:46:07 +08:00
{{list.createTime}}
2024-03-13 10:54:22 +08:00
</view>
2024-03-25 19:46:07 +08:00
</view>
<view class="info_li">
<view class="text">
充值设备
2024-03-13 10:54:22 +08:00
</view>
<view class="text">
2024-03-25 19:46:07 +08:00
{{list.deviceName}}
2024-03-13 10:54:22 +08:00
</view>
</view>
2024-03-25 19:46:07 +08:00
<view class="info_li">
<view class="text">
充值类型
2024-03-13 10:54:22 +08:00
</view>
2024-03-25 19:46:07 +08:00
<view class="text">
{{payType}}
2024-03-13 10:54:22 +08:00
</view>
2024-03-25 19:46:07 +08:00
</view>
<view class="info_li">
<view class="text">
充值用户
2024-03-13 10:54:22 +08:00
</view>
2024-03-25 19:46:07 +08:00
<view class="text">
{{list.userName}}
2024-03-13 10:54:22 +08:00
</view>
</view>
</view>
</view>
2024-03-25 19:46:07 +08:00
</view>
2024-03-13 10:54:22 +08:00
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#F7FAFE",
},
2024-03-25 19:46:07 +08:00
list: {},
payType: ''
2024-03-13 10:54:22 +08:00
}
},
2024-03-25 19:46:07 +08:00
onLoad(option) {
// console.log(option)
this.getdetail(option.id)
},
2024-03-13 10:54:22 +08:00
methods: {
2024-03-25 19:46:07 +08:00
getdetail(id) {
this.$u.get("/app/bill/" + id).then((res) => {
if (res.code == 200) {
this.list = res.data
if (res.data.payType == 1) {
this.payType = '微信支付'
} else if (res.data.payType == 2) {
this.payType = '支付宝'
} else if (res.data.payType == 3) {
this.payType = '银行卡'
}
}
});
},
2024-03-13 10:54:22 +08:00
}
}
</script>
2024-03-25 19:46:07 +08:00
<style lang="scss">
page {
2024-03-13 10:54:22 +08:00
background: #F7FAFE;
}
2024-03-25 19:46:07 +08:00
.cont {
display: flex;
// justify-content: center;
flex-wrap: wrap;
// width: 594rpx;
.order_card {
2024-03-13 10:54:22 +08:00
margin: 0 auto;
2024-03-25 19:46:07 +08:00
width: 700rpx;
height: 638rpx;
2024-04-27 17:20:50 +08:00
background-image: url('https://api.ccttiot.com/smartmeter/img/static/uXunwgElpYwvDbER83W0');
2024-03-25 19:46:07 +08:00
background-size: 100% 100%;
background-repeat: no-repeat;
.cardtop {
margin-top: 48rpx;
// display: flex;
// flex-wrap: wrap;
// justify-content: center;
.text {
text-align: center;
width: 100%;
2024-03-13 10:54:22 +08:00
font-weight: 400;
font-size: 28rpx;
color: #808080;
}
2024-03-25 19:46:07 +08:00
.num {
text-align: center;
margin-top: 18rpx;
font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
font-weight: 400;
font-size: 60rpx;
color: #8883F0;
}
}
.card_bot {
margin: 0 auto;
margin-top: 20rpx;
width: 560rpx;
text-align: center;
.info_li {
margin-top: 35rpx;
width: 560rpx;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
.text {
font-weight: 400;
font-size: 28rpx;
color: #808080;
}
}
2024-03-13 10:54:22 +08:00
}
}
}
2024-03-25 19:46:07 +08:00
</style>