更新
This commit is contained in:
@@ -180,14 +180,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
this.audioUrl && this.innerAudioContext.stop()
|
this.innerAudioContext && this.innerAudioContext.stop()
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
this.audioUrl && this.innerAudioContext.stop()
|
this.innerAudioContext && this.innerAudioContext.stop()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
console.log(6667)
|
||||||
let userInfo = uni.getStorageSync('user')
|
let userInfo = uni.getStorageSync('user')
|
||||||
if(!userInfo && option.q) {
|
if(!userInfo && option.q) {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
@@ -199,6 +200,7 @@
|
|||||||
if(option.q) {
|
if(option.q) {
|
||||||
let originLink = decodeURIComponent(option.q)
|
let originLink = decodeURIComponent(option.q)
|
||||||
let target = this.obtainUrlPathParameterTarget(originLink)
|
let target = this.obtainUrlPathParameterTarget(originLink)
|
||||||
|
console.log('target',target)
|
||||||
if(target.siteId) {
|
if(target.siteId) {
|
||||||
this.siteId = target.siteId
|
this.siteId = target.siteId
|
||||||
this.getSiteInfo(target.siteId)
|
this.getSiteInfo(target.siteId)
|
||||||
@@ -252,7 +254,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
backTohome(){
|
backTohome(){
|
||||||
this.audioUrl && this.innerAudioContext.stop()
|
innerAudioContext && this.innerAudioContext.stop()
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'../../../pages/tabbar/home/home'
|
url:'../../../pages/tabbar/home/home'
|
||||||
})
|
})
|
||||||
@@ -261,7 +263,7 @@
|
|||||||
this.showtitle =false
|
this.showtitle =false
|
||||||
},
|
},
|
||||||
gotoPay(){
|
gotoPay(){
|
||||||
this.audioUrl && this.innerAudioContext.stop()
|
innerAudioContext && 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}`
|
||||||
})
|
})
|
||||||
@@ -271,7 +273,7 @@
|
|||||||
this.secondChannelCode = sec
|
this.secondChannelCode = sec
|
||||||
},
|
},
|
||||||
siteQrPay() {
|
siteQrPay() {
|
||||||
this.audioUrl && this.innerAudioContext.stop()
|
innerAudioContext && this.innerAudioContext.stop()
|
||||||
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}`
|
||||||
})
|
})
|
||||||
@@ -292,7 +294,7 @@
|
|||||||
if(this.siteInfo.juli > 1000 ){
|
if(this.siteInfo.juli > 1000 ){
|
||||||
this.showtitle = true
|
this.showtitle = true
|
||||||
}else{
|
}else{
|
||||||
this.audioUrl && this.innerAudioContext.stop()
|
innerAudioContext && 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}`
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user