|
|
|
@ -254,7 +254,6 @@ |
|
|
|
|
this.otherUser = 'kl' |
|
|
|
|
} |
|
|
|
|
this.otherUserInfo = otherUserInfo |
|
|
|
|
// console.log('+++++',option) |
|
|
|
|
this.showtitles = oilItem.listTag |
|
|
|
|
this.siteId = option.siteId |
|
|
|
|
this.activeChannelCode = option.activeChannelCode |
|
|
|
@ -317,16 +316,8 @@ |
|
|
|
|
oilCardNature: activeCard.oilCardType, //类型:String 必有字段 备注:油卡性质 |
|
|
|
|
accountCardCode: activeCard.accountCardCode //类型:String 必有字段 备注:油卡卡号 |
|
|
|
|
} |
|
|
|
|
// console.log('这里是二维码参数',data2) |
|
|
|
|
qrApi.getOilQrCode(data2).then(res => { |
|
|
|
|
// console.log('这里是二维码返回处+',res,'+') |
|
|
|
|
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 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -346,30 +337,21 @@ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
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 => { |
|
|
|
|
if (res.code == 20000) { |
|
|
|
|
if (this.cardList.length) { |
|
|
|
|
if (res.data.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 = [] |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
toSiteDetail(id) { |
|
|
|
|
uni.redirectTo({ |
|
|
|
|
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}&customerJump=false`, |
|
|
|
|
fail: (err) => { |
|
|
|
|
// console.log(err) |
|
|
|
|
}, |
|
|
|
|
success: () => { |
|
|
|
|
// console.log('err') |
|
|
|
|
} |
|
|
|
|
url: `/BagStation/pages/stationDetail/stationDetail?siteId=${id}&customerJump=false` |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
openPlugin() { |
|
|
|
|