更新
This commit is contained in:
@@ -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'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user