pull/9/head
xiaozhiyong 2 years ago
parent b0a89c5a98
commit 27e90b27b8
  1. 22
      BagStation/pages/stationDetail/stieQr.vue

@ -254,7 +254,6 @@
this.otherUser = 'kl' this.otherUser = 'kl'
} }
this.otherUserInfo = otherUserInfo this.otherUserInfo = otherUserInfo
// console.log('+++++',option)
this.showtitles = oilItem.listTag this.showtitles = oilItem.listTag
this.siteId = option.siteId this.siteId = option.siteId
this.activeChannelCode = option.activeChannelCode this.activeChannelCode = option.activeChannelCode
@ -317,16 +316,8 @@
oilCardNature: activeCard.oilCardType, //String oilCardNature: activeCard.oilCardType, //String
accountCardCode: activeCard.accountCardCode //String accountCardCode: activeCard.accountCardCode //String
} }
// console.log('',data2)
qrApi.getOilQrCode(data2).then(res => { qrApi.getOilQrCode(data2).then(res => {
// console.log('+',res,'+')
if (res.code === 20000) { if (res.code === 20000) {
// console.log(res.data)
// console.log(this.otherUser,'++++++++++++++++++++')
// if(this.otherUser = 'kl'){
// this.val = res.data.codeStr+"&"+this.otherUser
// return
// }
this.val = res.data.codeStr this.val = res.data.codeStr
} }
}) })
@ -346,30 +337,21 @@
}) })
}, },
getUserCard() { getUserCard() {
// console.log('%c look that ','color:red;font-size:50px')
// console.log(uni.getStorageSync('oilItem'),'*-*-*-*-')
accountApi.getNewUserAccount({ accountApi.getNewUserAccount({
siteId: uni.getStorageSync('oilItem').siteId siteId: uni.getStorageSync('oilItem').siteId
}).then(res => { }).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
if (this.cardList.length) { if (res.data.length) {
let staging = res.data.filter(item => item.companyType != 5) let staging = res.data.filter(item => item.companyType != 5)
let target = this.sortHandler(staging) let target = this.sortHandler(staging)
this.cardList = target this.cardList = target
// this.getMoneyDetail(this.cardList[0])
} else this.cardList = [] } else this.cardList = []
} }
}) })
}, },
toSiteDetail(id) { toSiteDetail(id) {
uni.redirectTo({ uni.redirectTo({
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}&customerJump=false`, url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}&customerJump=false`
fail: (err) => {
// console.log(err)
},
success: () => {
// console.log('err')
}
}) })
}, },
openPlugin() { openPlugin() {

Loading…
Cancel
Save