充值记录

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-box">
<view class="dis"> <view class="dis">
<view class="touxiang" @click="goSetup"> <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> <image v-else src="../../static/imgs/myx.png" mode=""></image>
</view> </view>
<view class=""> <view class="">
@ -29,7 +30,7 @@
<text style="color: #999999;">|</text> <text style="color: #999999;">|</text>
<view class="jg-box" @click="goOil()"> <view class="jg-box" @click="goOil()">
<view class="jg-box-title">囤油升数</view> <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> </view>
<text style="color: #999999;">|</text> <text style="color: #999999;">|</text>
@ -173,7 +174,7 @@
msg: "3", msg: "3",
// url // url
baseUrl: this.$baseUrl, baseUrl: this.$baseUrl,
user:{}, user: {},
} }
}, },
@ -188,14 +189,15 @@
}, },
methods: { methods: {
// //
getUser(){ getUser() {
request({ request({
url: 'business/userManager/user/getUser', url: 'business/userManager/user/getUser',
method: 'get', method: 'get',
}).then(res => { }).then(res => {
if (res.data != null && res.data != "" && res.data != undefined) { if (res.data != null && res.data != "" && res.data != undefined) {
this.user = res.data 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 chainStoreId: this.chainStoreId
} }
}).then((res) => { }).then((res) => {
if (res.code == 200 && res.data!=null) { if (res.code == 200 && res.data != null) {
this.myPoints = res.data.points this.myPoints = res.data.points
} }
}) })