修改bug

This commit is contained in:
齐天大圣 2024-01-04 12:05:43 +08:00
parent d6df89b3aa
commit 981b6d40a3

View File

@ -30,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 }}L</view> <view class="jg-box-nmb">{{refuelMoney[0].incomeLitres || 0 }}L</view>
</view> </view>
<text style="color: #999999;">|</text> <text style="color: #999999;">|</text>
@ -293,10 +293,12 @@
}).then(res => { }).then(res => {
if (res.data) { if (res.data) {
this.cardBalance = res.data.cardBalance, this.cardBalance = res.data.cardBalance,
this.myPoints = res.data.points,
/* if (res.data.refuelMoney!=null && res.data.refuelMoney!=""){ /* if (res.data.refuelMoney!=null && res.data.refuelMoney!=""){
this.refuelMoney = JSON.parse(res.data.refuelMoney); this.refuelMoney = JSON.parse(res.data.refuelMoney);
} */ } */
this.refuelMoney = JSON.parse(res.data.refuelMoney); this.refuelMoney = JSON.parse(res.data.refuelMoney);
console.log("333333333333333", this.refuelMoney);
} }
}) })
}, },
@ -321,7 +323,7 @@
} }
}).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
} }
}) })
}, },