shish 2 years ago
parent
commit
5b2590a6bb
1 changed files with 9 additions and 4 deletions
  1. 9 4
      hdApp/src/pagesPurchase/wechatPay.vue

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

@@ -88,7 +88,8 @@ export default {
       balance:0,
       balance:0,
       getPayType:1,
       getPayType:1,
       info:[],
       info:[],
-      hasRequestApi:false
+      hasRequestApi:false,
+      needCheck:0
     };
     };
   },
   },
   onLoad (options) {
   onLoad (options) {
@@ -101,9 +102,12 @@ export default {
   onShow(){
   onShow(){
     // #ifdef APP-PLUS
     // #ifdef APP-PLUS
     let that = this
     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
     // #endif
   },
   },
   methods: {
   methods: {
@@ -160,6 +164,7 @@ export default {
         if(res.code == 1){
         if(res.code == 1){
           if(res.data.payUrl){
           if(res.data.payUrl){
             that.orderSn = res.data.orderSn
             that.orderSn = res.data.orderSn
+            that.needCheck = 1
             plus.runtime.openWeb(res.data.payUrl)
             plus.runtime.openWeb(res.data.payUrl)
           }
           }
         }
         }