160 lines
2.9 KiB
Vue
160 lines
2.9 KiB
Vue
<template>
|
|
<view>
|
|
<u-navbar title="账单详情" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
|
|
height='36'></u-navbar>
|
|
<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>
|
|
<view class="text">
|
|
{{list.createTime}}
|
|
</view>
|
|
</view>
|
|
<view class="info_li">
|
|
<view class="text">
|
|
充值设备
|
|
</view>
|
|
<view class="text">
|
|
{{list.deviceName}}
|
|
</view>
|
|
</view>
|
|
<view class="info_li">
|
|
<view class="text">
|
|
充值类型
|
|
</view>
|
|
<view class="text">
|
|
{{payType}}
|
|
</view>
|
|
</view>
|
|
<view class="info_li">
|
|
<view class="text">
|
|
充值用户
|
|
</view>
|
|
<view class="text">
|
|
{{list.userName}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
bgc: {
|
|
backgroundColor: "#F7FAFE",
|
|
},
|
|
list: {},
|
|
payType: ''
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
// console.log(option)
|
|
this.getdetail(option.id)
|
|
},
|
|
methods: {
|
|
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 = '银行卡'
|
|
}
|
|
}
|
|
});
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background: #F7FAFE;
|
|
}
|
|
|
|
.cont {
|
|
display: flex;
|
|
// justify-content: center;
|
|
flex-wrap: wrap;
|
|
|
|
// width: 594rpx;
|
|
.order_card {
|
|
margin: 0 auto;
|
|
width: 700rpx;
|
|
height: 638rpx;
|
|
background-image: url('@/static/order_bg.png');
|
|
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%;
|
|
font-weight: 400;
|
|
font-size: 28rpx;
|
|
color: #808080;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |