Przeglądaj źródła

修改h5支付宝支付跳转页面的问题

吴昊天 2 lat temu
rodzic
commit
b213b881c9
1 zmienionych plików z 11 dodań i 5 usunięć
  1. 11 5
      template/uni-app/pages/goods/cashier/index.vue

+ 11 - 5
template/uni-app/pages/goods/cashier/index.vue

@@ -518,11 +518,17 @@
 
 						case 'ALIPAY_PAY':
 							//#ifdef H5
-							uni.hideLoading();
-							that.formContent = res.data.result.jsConfig;
-							that.$nextTick(() => {
-								document.getElementById('alipaysubmit').submit();
-							})
+							uni.hideLoading();
+							that.$util.Tips({
+								title: that.$t(`等待支付中`)
+							}, {
+								tab: 4,
+								url: goPages + '&status=0'
+							});
+							that.formContent = res.data.result.jsConfig;
+							setTimeout(() => {
+								document.getElementById('alipaysubmit').submit();
+							}, 1500);
 							//#endif
 							// #ifdef MP
 							uni.navigateTo({