Sfoglia il codice sorgente

查询支付状态

gcz 3 anni fa
parent
commit
aa20278250
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8 2
      pages/getout/getoutpage/getoutpage.vue

+ 8 - 2
pages/getout/getoutpage/getoutpage.vue

@@ -222,10 +222,12 @@
 						this.$u.api.gzbankSwept(this.payParams)
 						.then(res=>{
 							//#ifdef APP-PLUS
-							plus.nativeUI.toast(res.msg);
-							ALog.info({msg:'条码类型:err' + err});
+							// plus.nativeUI.toast(res.msg);
 							//#endif
 							// 启动定时器查询订单状态
+							uni.showLoading({
+								 title: '查询支付状态中'
+							});
 							this.timer = setInterval(() => {
 							  this.handlePayQuery(res.data.polyOrderId)
 							}, 3000);
@@ -264,6 +266,9 @@
 					},500)
 					
 					// 启动定时器查询订单状态
+					uni.showLoading({
+						 title: '查询支付状态中'
+					});
 					this.timer = setInterval(() => {
 					  this.handlePayQuery(res.data.polyOrderId)
 					}, 3000);
@@ -313,6 +318,7 @@
 					// });
 					// 支付成功后的页面跳转
 					if (res.data.payStatus==1) {
+						uni.hideLoading();
 					  clearInterval(this.timer)
 					  this.$refs.uToast.show({
 					  	title:'支付成功',