充值记录

This commit is contained in:
齐天大圣 2024-01-02 13:07:12 +08:00
parent c86397d612
commit ba0c5935ac

View File

@ -9,7 +9,8 @@
<view class="dis-box">
<view class="dis">
<view class="touxiang" @click="goSetup">
<image v-if="user.avatar!='' && user.avatar!=null && user.avatar!=undefined" :src="baseUrl + user.avatar" mode=""></image>
<image v-if="user.avatar!='' && user.avatar!=null && user.avatar!=undefined"
:src="baseUrl + user.avatar" mode=""></image>
<image v-else src="../../static/imgs/myx.png" mode=""></image>
</view>
<view class="">
@ -29,7 +30,7 @@
<text style="color: #999999;">|</text>
<view class="jg-box" @click="goOil()">
<view class="jg-box-title">囤油升数</view>
<view class="jg-box-nmb">{{refuelMoney[0].refuelMoney || 0 }}</view>
<view class="jg-box-nmb">{{refuelMoney[0].refuelMoney || 0 }}L</view>
</view>
<text style="color: #999999;">|</text>
@ -173,7 +174,7 @@
msg: "3",
// url
baseUrl: this.$baseUrl,
user:{},
user: {},
}
},
@ -188,14 +189,15 @@
},
methods: {
//
getUser(){
getUser() {
request({
url: 'business/userManager/user/getUser',
method: 'get',
}).then(res => {
if (res.data != null && res.data != "" && res.data != undefined) {
this.user = res.data
this.user.mobile = res.data.mobile.slice(0,3) + "****" + res.data.mobile.slice(res.data.mobile.length-5,res.data.mobile.length-1)
this.user.mobile = res.data.mobile.slice(0, 3) + "****" + res.data.mobile.slice(res.data
.mobile.length - 5, res.data.mobile.length - 1)
}
})
},
@ -308,7 +310,7 @@
chainStoreId: this.chainStoreId
}
}).then((res) => {
if (res.code == 200 && res.data!=null) {
if (res.code == 200 && res.data != null) {
this.myPoints = res.data.points
}
})
@ -486,4 +488,4 @@
.centenr-size {
font-size: 14px;
}
</style>
</style>