|
|
|
@ -180,14 +180,15 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onHide() { |
|
|
|
|
this.audioUrl && this.innerAudioContext.stop() |
|
|
|
|
this.innerAudioContext && this.innerAudioContext.stop() |
|
|
|
|
}, |
|
|
|
|
onUnload() { |
|
|
|
|
this.audioUrl && this.innerAudioContext.stop() |
|
|
|
|
this.innerAudioContext && this.innerAudioContext.stop() |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onLoad(option) { |
|
|
|
|
console.log(6667) |
|
|
|
|
let userInfo = uni.getStorageSync('user') |
|
|
|
|
if(!userInfo && option.q) { |
|
|
|
|
uni.redirectTo({ |
|
|
|
@ -199,6 +200,7 @@ |
|
|
|
|
if(option.q) { |
|
|
|
|
let originLink = decodeURIComponent(option.q) |
|
|
|
|
let target = this.obtainUrlPathParameterTarget(originLink) |
|
|
|
|
console.log('target',target) |
|
|
|
|
if(target.siteId) { |
|
|
|
|
this.siteId = target.siteId |
|
|
|
|
this.getSiteInfo(target.siteId) |
|
|
|
@ -252,7 +254,7 @@ |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
backTohome(){ |
|
|
|
|
this.audioUrl && this.innerAudioContext.stop() |
|
|
|
|
innerAudioContext && this.innerAudioContext.stop() |
|
|
|
|
uni.switchTab({ |
|
|
|
|
url:'../../../pages/tabbar/home/home' |
|
|
|
|
}) |
|
|
|
@ -261,7 +263,7 @@ |
|
|
|
|
this.showtitle =false |
|
|
|
|
}, |
|
|
|
|
gotoPay(){ |
|
|
|
|
this.audioUrl && this.innerAudioContext.stop() |
|
|
|
|
innerAudioContext && this.innerAudioContext.stop() |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}` |
|
|
|
|
}) |
|
|
|
@ -271,7 +273,7 @@ |
|
|
|
|
this.secondChannelCode = sec |
|
|
|
|
}, |
|
|
|
|
siteQrPay() { |
|
|
|
|
this.audioUrl && this.innerAudioContext.stop() |
|
|
|
|
innerAudioContext && this.innerAudioContext.stop() |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: `/BagStation/pages/stationDetail/stieQr?siteId=${this.siteId}&activeChannelCode=${this.activeChannelCode}&secondChannelCode=${this.secondChannelCode}` |
|
|
|
|
}) |
|
|
|
@ -292,7 +294,7 @@ |
|
|
|
|
if(this.siteInfo.juli > 1000 ){ |
|
|
|
|
this.showtitle = true |
|
|
|
|
}else{ |
|
|
|
|
this.audioUrl && this.innerAudioContext.stop() |
|
|
|
|
innerAudioContext && this.innerAudioContext.stop() |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: `/BagStation/pages/makeOrder/makeOrder?siteId=${this.siteId}&activeCur=${this.activeCur}` |
|
|
|
|
}) |
|
|
|
|