更新
This commit is contained in:
@@ -112,7 +112,7 @@
|
|||||||
<text class=" text-black ">加 {{itm.oilsCode}} {{itm.volume}}L 节省 <text class="text-red">
|
<text class=" text-black ">加 {{itm.oilsCode}} {{itm.volume}}L 节省 <text class="text-red">
|
||||||
¥{{itm.discountAmount}}</text></text>
|
¥{{itm.discountAmount}}</text></text>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-item no-border" v-if="!siteInfo.oilSiteOrderInfoVos.length">
|
<view class="cu-item no-border" v-if="siteInfo.oilSiteOrderInfoVos && !siteInfo.oilSiteOrderInfoVos.length">
|
||||||
暂无
|
暂无
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -185,11 +185,11 @@
|
|||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
// console.log('这里是hiden')
|
// console.log('这里是hiden')
|
||||||
this.innerAudioContext.stop()
|
this.innerAudioContext?.stop()
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
// console.log('这里是卸载页面')
|
// console.log('这里是卸载页面')
|
||||||
this.innerAudioContext.stop()
|
this.innerAudioContext?.stop()
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
this.innerAudioContext.stop()
|
this.innerAudioContext?.stop()
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if(option.siteId) {
|
if(option.siteId) {
|
||||||
@@ -223,15 +223,17 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// console.log(option)
|
// console.log(option)
|
||||||
if(option.channerCode == 'TY'){
|
// if(option.channerCode == 'TY'){
|
||||||
var oilItem = uni.getStorageSync('OtherSiteInfo')
|
// var oilItem = uni.getStorageSync('OtherSiteInfo')
|
||||||
// console.log(oilItem)
|
// // console.log(oilItem)
|
||||||
}else{
|
// }else{
|
||||||
let obj = option.item,
|
// let obj = option.item,
|
||||||
jss= JSON.parse(obj)
|
// var oilItem = JSON.parse(option.item)
|
||||||
// console.log( '+++++++++',obj,jss,'----------')
|
// }
|
||||||
var oilItem = JSON.parse(option.item)
|
let oilItem = option.channerCode == 'TY' ? uni.getStorageSync('OtherSiteInfo') : JSON.parse(option.item)
|
||||||
}
|
if(oilItem.secondChannelCode === 'SQ' && oilItem.sqSiteBelong === 'JKJY') {
|
||||||
|
oilItem.listTag = '集卡加油'
|
||||||
|
}
|
||||||
uni.setStorageSync('oilItem',oilItem)
|
uni.setStorageSync('oilItem',oilItem)
|
||||||
this.getSiteInfo(oilItem.siteId)
|
this.getSiteInfo(oilItem.siteId)
|
||||||
this.siteId = oilItem.siteId
|
this.siteId = oilItem.siteId
|
||||||
@@ -246,7 +248,7 @@
|
|||||||
this.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/xingyouyunzhan.mp3'
|
this.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/xingyouyunzhan.mp3'
|
||||||
}else if(oilItem.listTag == '壳牌'){
|
}else if(oilItem.listTag == '壳牌'){
|
||||||
this.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/qiaopainew.mp3'
|
this.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/qiaopainew.mp3'
|
||||||
}else if(oilItem.listTag == '上汽联名卡'){
|
}else if(oilItem.listTag == '上汽联名卡' || oilItem.listTag == '集卡加油'){
|
||||||
this.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/shangqi.mp3'
|
this.audioUrl = 'https://publicxingyou.oss-cn-hangzhou.aliyuncs.com/mp-oil/shangqi.mp3'
|
||||||
}
|
}
|
||||||
this.ContextAudio(this.audioUrl)
|
this.ContextAudio(this.audioUrl)
|
||||||
@@ -292,7 +294,7 @@
|
|||||||
if(this.siteInfo.juli > 1000 ){
|
if(this.siteInfo.juli > 1000 ){
|
||||||
this.showtitle = true
|
this.showtitle = true
|
||||||
}else{
|
}else{
|
||||||
this.innerAudioContext.stop()
|
this.innerAudioContext?.stop()
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}`
|
url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}`
|
||||||
})
|
})
|
||||||
@@ -304,7 +306,7 @@
|
|||||||
this.secondChannelCode = sec
|
this.secondChannelCode = sec
|
||||||
},
|
},
|
||||||
siteQrPay() {
|
siteQrPay() {
|
||||||
this.innerAudioContext.stop()
|
this.innerAudioContext?.stop()
|
||||||
// let siteId =
|
// let siteId =
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/BagStation/pages/stationDetail/stieQr?siteId=${this.siteId}&activeChannelCode=${this.activeChannelCode}&secondChannelCode=${this.secondChannelCode}`
|
url: `/BagStation/pages/stationDetail/stieQr?siteId=${this.siteId}&activeChannelCode=${this.activeChannelCode}&secondChannelCode=${this.secondChannelCode}`
|
||||||
@@ -349,7 +351,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
gotoPay() {
|
gotoPay() {
|
||||||
this.innerAudioContext.stop()
|
this.innerAudioContext?.stop()
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}`
|
url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}`
|
||||||
})
|
})
|
||||||
@@ -375,10 +377,8 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
goBack() {
|
goBack() {
|
||||||
this.innerAudioContext.stop()
|
this.innerAudioContext?.stop()
|
||||||
uni.navigateBack({
|
uni.navigateBack()
|
||||||
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
selectRadio() {
|
selectRadio() {
|
||||||
this.radio === 'A' ? this.radio = '' : this.radio = 'A'
|
this.radio === 'A' ? this.radio = '' : this.radio = 'A'
|
||||||
|
|||||||
Reference in New Issue
Block a user