From df5a31f55aebb2cdbce8ca4b48a79481ffad61be Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Tue, 21 Mar 2023 14:20:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BagStation/pages/stationDetail/stationDetail.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/BagStation/pages/stationDetail/stationDetail.vue b/BagStation/pages/stationDetail/stationDetail.vue index 378ea55..8238682 100644 --- a/BagStation/pages/stationDetail/stationDetail.vue +++ b/BagStation/pages/stationDetail/stationDetail.vue @@ -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}` })