shish 2 лет назад
Родитель
Сommit
5b2590a6bb
1 измененных файлов с 9 добавлено и 4 удалено
  1. 9 4
      hdApp/src/pagesPurchase/wechatPay.vue

+ 9 - 4
hdApp/src/pagesPurchase/wechatPay.vue

@@ -88,7 +88,8 @@ export default {
       balance:0,
       getPayType:1,
       info:[],
-      hasRequestApi:false
+      hasRequestApi:false,
+      needCheck:0
     };
   },
   onLoad (options) {
@@ -101,9 +102,12 @@ export default {
   onShow(){
     // #ifdef APP-PLUS
     let that = this
-    that.$util.confirmModal({content:'已付款成功?',okText:'是的',cancelText:'没有'},() => {
-      that.pageTo({ url: '/pagesPurchase/particulars?id=' + that.id, type: 2 })
-    })
+    if(that.needCheck == 1){
+      that.needCheck = 0
+      that.$util.confirmModal({content:'已付款成功?',okText:'是的',cancelText:'没有'},() => {
+        that.pageTo({ url: '/pagesPurchase/particulars?id=' + that.id, type: 2 })
+      })
+    }
     // #endif
   },
   methods: {
@@ -160,6 +164,7 @@ export default {
         if(res.code == 1){
           if(res.data.payUrl){
             that.orderSn = res.data.orderSn
+            that.needCheck = 1
             plus.runtime.openWeb(res.data.payUrl)
           }
         }