This commit is contained in:
xiaozhiyong
2023-08-31 09:29:38 +08:00
parent 5dfc59b640
commit 7028fde296
4 changed files with 62 additions and 73 deletions

View File

@@ -218,7 +218,6 @@
this.innerAudioContext?.stop()
},
onLoad(option) {
// let siteId = uni.getStorageSync('siteId') ||
if(option.siteId && !option.customerJump) {
this.isShow = false
this.siteId = option.siteId
@@ -226,26 +225,13 @@
uni.setStorageSync('siteId',option.siteId)
return
}
// console.log(option)
// if(option.channerCode == 'TY'){
// var oilItem = uni.getStorageSync('OtherSiteInfo')
// // console.log(oilItem)
// }else{
// let obj = option.item,
// var oilItem = JSON.parse(option.item)
// }
let oilItem = option.channerCode == 'TY' ? uni.getStorageSync('OtherSiteInfo') : option.item ? JSON.parse(option.item) : {siteId:option.siteId}
// if(oilItem.secondChannelCode === 'SQ'){
// oilItem.listTag = oilItem.sqSiteBelong === 'JKJY' ? '集卡加油' :'上汽联名卡'
// }
uni.setStorageSync('oilItem',oilItem)
this.getSiteInfo(oilItem.siteId)
this.siteId = oilItem.siteId
// if(option.item.ureaNumber!='0'){
// this.ureaNum = true
// }else{
// this.ureaNum = false
// }
if(oilItem.listTag == '万金油'){
this.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/wanjinyou.mp3'
}else if(oilItem.listTag == '星油'){
@@ -338,7 +324,6 @@
areaPriceList.push(item.guidePrice)
})
this.areaPrice = Math.min(...areaPriceList)
console.log(Math.min(...areaPriceList),areaPriceList,'对对对对对对多多多多')
}
}else if(res.code == 40000){
uni.showModal({
@@ -347,6 +332,10 @@
showCancel:false,
success: function (res) {
if (res.confirm) {
if(getCurrentPages().length > 1) {
uni.navigateBack()
return
}
uni.switchTab({
url:'../../../pages/tabbar/home/home'
})