This commit is contained in:
xiaozhiyong
2023-06-14 16:57:23 +08:00
parent b49578295d
commit b0a89c5a98
2 changed files with 21 additions and 17 deletions

View File

@@ -238,7 +238,7 @@
<view class="" v-if="activeChannelCode!='TY'">
<view class="padding-tb-xs margin-bottom text-left">
加油升数
<text class="fr">{{vlom?vlom :'' | moneyVolm}} L </text>
<text class="fr">{{vlom?'约' :''}}{{vlom?vlom :'' | moneyVolm}} L </text>
</view>
<view class=" dashed-top margin-top padding-top text-left">
加油金额

View File

@@ -235,12 +235,12 @@
},
cards() {
if (this.cardList.length) {
let staging = this.cardList.filter(item => item.companyType != 5)
let target = this.sortHandler(staging)
target.forEach((e) => {
e.companyName = e.companyName + '('+( e.companyType==0?`柴油账户:${e.balance}`:e.companyType==1?`汽油账户:${e.balance}`:e.companyType==2?`LNG账户:${e.balance}`:`尿素:${e.balance}`) + ')'
this.cardList.forEach((e) => {
e.companyName = e.companyName + '(' + (e.companyType == 0 ? `柴油账户:${e.balance}` : e
.companyType == 1 ? `汽油账户:${e.balance}` : e.companyType == 2 ?
`LNG账户:${e.balance}` : `尿素:${e.balance}`) + ')'
})
return target
return this.cardList
}
},
},
@@ -348,12 +348,16 @@
getUserCard() {
// console.log('%c look that ↓','color:red;font-size:50px')
// console.log(uni.getStorageSync('oilItem'),'*-*-*-*-')
accountApi.getNewUserAccount({siteId:uni.getStorageSync('oilItem').siteId}).then(res => {
accountApi.getNewUserAccount({
siteId: uni.getStorageSync('oilItem').siteId
}).then(res => {
if (res.code == 20000) {
this.cardList = res.data
if (this.cardList.length > 0) {
if (this.cardList.length) {
let staging = res.data.filter(item => item.companyType != 5)
let target = this.sortHandler(staging)
this.cardList = target
// this.getMoneyDetail(this.cardList[0])
}
} else this.cardList = []
}
})
},