更新
This commit is contained in:
@@ -180,9 +180,9 @@
|
||||
tkiQrcode
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log('进入siteQr',option)
|
||||
// console.log('进入siteQr',option)
|
||||
let oilItem = uni.getStorageSync('oilItem')
|
||||
console.log(oilItem)
|
||||
// console.log(oilItem)
|
||||
this.showtitles = oilItem.listTag
|
||||
},
|
||||
data() {
|
||||
@@ -236,7 +236,7 @@
|
||||
cards() {
|
||||
if (this.cardList.length) {
|
||||
let cards = []
|
||||
console.log(this.cardList,'---------------------')
|
||||
// console.log(this.cardList,'---------------------')
|
||||
this.cardList.forEach((e) => {
|
||||
// cards.push(e.accountCardCode)
|
||||
e.companyName = e.companyName + '('+( e.companyType==0?`柴油账户:${e.balance}元`:e.companyType==1?`汽油账户:${e.balance}元`:e.companyType==2?`LNG账户:${e.balance}元`:`尿素:${e.balance}元`) + ')'
|
||||
@@ -255,7 +255,7 @@
|
||||
this.otherUser = 'kl'
|
||||
}
|
||||
this.otherUserInfo = otherUserInfo
|
||||
console.log('+++++',option)
|
||||
// console.log('+++++',option)
|
||||
this.showtitles = oilItem.listTag
|
||||
this.siteId = option.siteId
|
||||
this.activeChannelCode = option.activeChannelCode
|
||||
@@ -284,11 +284,11 @@
|
||||
oilCardNature: activeCard.oilCardType, //类型:String 必有字段 备注:油卡性质
|
||||
accountCardCode: activeCard.accountCardCode //类型:String 必有字段 备注:油卡卡号
|
||||
}
|
||||
console.log('这里是二维码参数',data2)
|
||||
// console.log('这里是二维码参数',data2)
|
||||
qrApi.getOilQrCode(data2).then(res => {
|
||||
console.log('这里是二维码返回处+',res,'+')
|
||||
// console.log('这里是二维码返回处+',res,'+')
|
||||
if (res.code === 20000) {
|
||||
console.log(res.data)
|
||||
// console.log(res.data)
|
||||
// console.log(this.otherUser,'++++++++++++++++++++')
|
||||
// if(this.otherUser = 'kl'){
|
||||
// this.val = res.data.codeStr+"&"+this.otherUser
|
||||
@@ -313,8 +313,8 @@
|
||||
})
|
||||
},
|
||||
getUserCard() {
|
||||
console.log('%c look that ↓','color:red;font-size:50px')
|
||||
console.log(uni.getStorageSync('oilItem'),'*-*-*-*-')
|
||||
// console.log('%c look that ↓','color:red;font-size:50px')
|
||||
// console.log(uni.getStorageSync('oilItem'),'*-*-*-*-')
|
||||
accountApi.getNewUserAccount({siteId:uni.getStorageSync('oilItem').siteId}).then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.cardList = res.data
|
||||
@@ -326,7 +326,7 @@
|
||||
},
|
||||
toSiteDetail(id) {
|
||||
uni.redirectTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}`,
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}&customerJump=false`,
|
||||
fail: (err) => {
|
||||
// console.log(err)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user