瀏覽代碼

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

吴昊天 2 年之前
父節點
當前提交
b213b881c9
共有 1 個文件被更改,包括 11 次插入5 次删除
  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':
 						case 'ALIPAY_PAY':
 							//#ifdef H5
 							//#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
 							//#endif
 							// #ifdef MP
 							// #ifdef MP
 							uni.navigateTo({
 							uni.navigateTo({