|  |  | @ -185,14 +185,22 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}, |  |  |  | 		}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		onHide() { |  |  |  | 		onHide() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			console.log('这里是hiden') |  |  |  | 			this.innerAudioContext && this.innerAudioContext.stop() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			this.innerAudioContext.stop() |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		}, |  |  |  | 		}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		onUnload() { |  |  |  | 		onUnload() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			console.log('这里是卸载页面') |  |  |  | 			this.innerAudioContext && this.innerAudioContext.stop() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			this.innerAudioContext.stop() |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		}, |  |  |  | 		}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		onLoad(option) { |  |  |  | 		onLoad(option) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			if(option.q) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				let originLink  = decodeURIComponent(option.q) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				let target = this.obtainUrlPathParameterTarget(originLink) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if(target.siteId) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					this.siteId = target.siteId | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					this.getSiteInfo(target.siteId)  | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				return  | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  | 			if (!option.item) { |  |  |  | 			if (!option.item) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				let siteInfos = uni.getStorageSync('siteInfo') |  |  |  | 				let siteInfos = uni.getStorageSync('siteInfo') | 
			
		
	
		
		
			
				
					
					|  |  |  | 				var oilItem = JSON.parse(decodeURIComponent(siteInfos)) |  |  |  | 				var oilItem = JSON.parse(decodeURIComponent(siteInfos)) | 
			
		
	
	
		
		
			
				
					|  |  | @ -214,6 +222,17 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 			this.ContextAudio(this.audioUrl) |  |  |  | 			this.ContextAudio(this.audioUrl) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		}, |  |  |  | 		}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 		methods: { |  |  |  | 		methods: { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			obtainUrlPathParameterTarget(url) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				let target = {} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				if(url.includes('?')) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					let paramsText = url.split("?")[1] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					let paramsArr = paramsText.split("&") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					paramsArr.forEach(item => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						target[item.split('=')[0]] = item.split('=')[1] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 					}) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				return target | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			// 生成音频文件 |  |  |  | 			// 生成音频文件 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			ContextAudio(url) { |  |  |  | 			ContextAudio(url) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.innerAudioContext = uni.createInnerAudioContext(); |  |  |  | 				this.innerAudioContext = uni.createInnerAudioContext(); | 
			
		
	
	
		
		
			
				
					|  |  | @ -223,12 +242,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 					console.log('开始播放'); |  |  |  | 					console.log('开始播放'); | 
			
		
	
		
		
			
				
					
					|  |  |  | 				}); |  |  |  | 				}); | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.innerAudioContext.onError((res) => { |  |  |  | 				this.innerAudioContext.onError((res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					console.log(res.errMsg); |  |  |  | 					console.log(res); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 					console.log(res.errCode); |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 				}); |  |  |  | 				}); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}, |  |  |  | 			}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			backTohome() { |  |  |  | 			backTohome() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.innerAudioContext.stop() |  |  |  | 				this.innerAudioContext && this.innerAudioContext.stop() | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 				uni.switchTab({ |  |  |  | 				uni.switchTab({ | 
			
		
	
		
		
			
				
					
					|  |  |  | 					url: '../../../pages/tabbar/home/home' |  |  |  | 					url: '../../../pages/tabbar/home/home' | 
			
		
	
		
		
			
				
					
					|  |  |  | 				}) |  |  |  | 				}) | 
			
		
	
	
		
		
			
				
					|  |  | @ -237,7 +255,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.showtitle = false |  |  |  | 				this.showtitle = false | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}, |  |  |  | 			}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			gotoPay() { |  |  |  | 			gotoPay() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.innerAudioContext.stop() |  |  |  | 				this.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}` | 
			
		
	
		
		
			
				
					
					|  |  |  | 				}) |  |  |  | 				}) | 
			
		
	
	
		
		
			
				
					|  |  | @ -247,14 +265,13 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.secondChannelCode = sec |  |  |  | 				this.secondChannelCode = sec | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}, |  |  |  | 			}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			siteQrPay() { |  |  |  | 			siteQrPay() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.innerAudioContext.stop() |  |  |  | 				this.innerAudioContext && 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}` | 
			
		
	
		
		
			
				
					
					|  |  |  | 				}) |  |  |  | 				}) | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}, |  |  |  | 			}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			getSiteInfo(id, item) { |  |  |  | 			getSiteInfo(id, item) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				console.log('进入获取油站信息'); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				let user = uni.getStorageSync('user'); |  |  |  | 				let user = uni.getStorageSync('user'); | 
			
		
	
		
		
			
				
					
					|  |  |  | 				let data2 = { |  |  |  | 				let data2 = { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					...uni.getStorageSync('location'), |  |  |  | 					...uni.getStorageSync('location'), | 
			
		
	
	
		
		
			
				
					|  |  | @ -262,7 +279,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 				} |  |  |  | 				} | 
			
		
	
		
		
			
				
					
					|  |  |  | 				if (user) { |  |  |  | 				if (user) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 					oilSiteApi.getSiteDetails(data2).then(res => { |  |  |  | 					oilSiteApi.getSiteDetails(data2).then(res => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 						console.log('进入获取油站信息getSiteDetails', res) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 						if (res.code == 20000) { |  |  |  | 						if (res.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 							this.siteInfo = res.data |  |  |  | 							this.siteInfo = res.data | 
			
		
	
		
		
			
				
					
					|  |  |  | 						} |  |  |  | 						} | 
			
		
	
	
		
		
			
				
					|  |  | @ -278,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 && 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}` | 
			
		
	
		
		
			
				
					
					|  |  |  | 						}) |  |  |  | 						}) | 
			
		
	
	
		
		
			
				
					|  |  | @ -329,10 +345,10 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			}, |  |  |  | 			}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			goBack() { |  |  |  | 			goBack() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.innerAudioContext.stop() |  |  |  | 				// this.innerAudioContext.stop() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 				uni.navigateBack({ |  |  |  | 				uni.switchTab({ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 					url: '/pages/tabbar/home/home' | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 				}) |  |  |  | 				}); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			}, |  |  |  | 			}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 			selectRadio() { |  |  |  | 			selectRadio() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				this.radio === 'A' ? this.radio = '' : this.radio = 'A' |  |  |  | 				this.radio === 'A' ? this.radio = '' : this.radio = 'A' | 
			
		
	
	
		
		
			
				
					|  |  | 
 |