|  | @@ -82,6 +82,16 @@
 | 
	
		
			
				|  |  |  			:jumpUrl="jumpUrl"
 | 
	
		
			
				|  |  |  			@closePaymentMethod="closePaymentMethod"></PaymentMethod>
 | 
	
		
			
				|  |  |  		<u-toast ref="uToast" />
 | 
	
		
			
				|  |  | +		<u-popup v-model="show" mode="center" border-radius="14" width="200rpx" height="200rpx">
 | 
	
		
			
				|  |  | +				<view class="loadingSelect">订单查询中...</view>
 | 
	
		
			
				|  |  | +				<view class="spinner">
 | 
	
		
			
				|  |  | +					<view class="rect1"></view>
 | 
	
		
			
				|  |  | +					<view class="rect2"></view>
 | 
	
		
			
				|  |  | +					<view class="rect3"></view>
 | 
	
		
			
				|  |  | +					<view class="rect4"></view>
 | 
	
		
			
				|  |  | +					<view class="rect5"></view>
 | 
	
		
			
				|  |  | +				</view>
 | 
	
		
			
				|  |  | +		</u-popup>
 | 
	
		
			
				|  |  |  	</view>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -112,7 +122,8 @@
 | 
	
		
			
				|  |  |  				// 订单id
 | 
	
		
			
				|  |  |  				orderId: null,
 | 
	
		
			
				|  |  |  				// 重定向地址
 | 
	
		
			
				|  |  | -				jumpUrl: location.href
 | 
	
		
			
				|  |  | +				jumpUrl: location.href + '&isBack=1',
 | 
	
		
			
				|  |  | +				show: true
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		onLoad(page) {
 | 
	
	
		
			
				|  | @@ -128,9 +139,14 @@
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		onShow() {
 | 
	
		
			
				|  |  | +			
 | 
	
		
			
				|  |  |  			this.timer1 = setInterval(() => {
 | 
	
		
			
				|  |  | +				// uni.showLoading({
 | 
	
		
			
				|  |  | +				//     title: '订单查询中'
 | 
	
		
			
				|  |  | +				// });
 | 
	
		
			
				|  |  | +				this.show = true
 | 
	
		
			
				|  |  |  				this.getOrderDetails(this.orderId)
 | 
	
		
			
				|  |  | -			}, 5000)
 | 
	
		
			
				|  |  | +			}, 2000)
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		onHide() {
 | 
	
		
			
				|  |  |  			if (this.timer) {
 | 
	
	
		
			
				|  | @@ -146,12 +162,32 @@
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			// 查询订单信息
 | 
	
		
			
				|  |  |  			getOrderDetails(id) {
 | 
	
		
			
				|  |  | +				// uni.showLoading({
 | 
	
		
			
				|  |  | +				//     title: '订单查询中'
 | 
	
		
			
				|  |  | +				// });
 | 
	
		
			
				|  |  |  				this.$u.api.getOrderDetail({id: id})
 | 
	
		
			
				|  |  |  					.then(res => {
 | 
	
		
			
				|  |  | +						
 | 
	
		
			
				|  |  |  						console.log(res)
 | 
	
		
			
				|  |  |  						if (res.code === 200) {
 | 
	
		
			
				|  |  | +							// 获取页面完整url
 | 
	
		
			
				|  |  | +							const local = window.location.href
 | 
	
		
			
				|  |  | +							// 获取url后面的参数
 | 
	
		
			
				|  |  | +							const locationLocaturl = window.location.search;
 | 
	
		
			
				|  |  | +							// 截取url中的isBack
 | 
	
		
			
				|  |  | +							let isBack = getUrlParams(local, "isBack");
 | 
	
		
			
				|  |  | +							console.log('isBack',isBack);
 | 
	
		
			
				|  |  | +							console.log('isBack',isBack == null || isBack != '1');
 | 
	
		
			
				|  |  | +							// 如果没有isBack,则去请求
 | 
	
		
			
				|  |  | +							if (!isBack) {
 | 
	
		
			
				|  |  | +								// uni.hideLoading();
 | 
	
		
			
				|  |  | +								this.show = false
 | 
	
		
			
				|  |  | +								clearInterval(this.timer1)
 | 
	
		
			
				|  |  | +							} 
 | 
	
		
			
				|  |  |  							this.orderInfo = res.data
 | 
	
		
			
				|  |  |  							if (res.data.payStatus === 1) {
 | 
	
		
			
				|  |  | +								// uni.hideLoading();
 | 
	
		
			
				|  |  | +								this.show = false
 | 
	
		
			
				|  |  |  								clearInterval(this.timer1)
 | 
	
		
			
				|  |  |  								this.checkEqupment()
 | 
	
		
			
				|  |  |  							}
 |