Browse Source

Merge branch 'feature/99年卡活动' of Software/android-cloud-H5 into develop

huangxiaojing 2 years ago
parent
commit
d4c0e424f3
1 changed files with 7 additions and 11 deletions
  1. 7 11
      pages/activity/lottery/index.vue

+ 7 - 11
pages/activity/lottery/index.vue

@@ -224,20 +224,16 @@ export default {
           if (this.payType === 'aliPay') {
           if (this.payType === 'aliPay') {
             Toast({
             Toast({
               message: '微信小程序不支持支付宝支付',
               message: '微信小程序不支持支付宝支付',
-              position: 'top'
+              position: 'top',
+              duration: 3000
             });
             });
             return false
             return false
           }
           }
-          this.$wx.miniProgram.postMessage({
-            data: {
-              action: 'payAppMessageData',
-              params: {
-                payType: this.payType === 'aliPay' ? 3 : 2,
-                orderNum: res.data.myOrderNum,
-                buyType: 1,
-                price: this.actualPrice
-              },
-            },
+          this.$wx.miniProgram.navigateTo({
+            url: '/packageA/order/status/index?record=' + JSON.stringify({
+              payActive: this.payType === 'wxPay' ? 1 : 0,
+              myOrderNum: res.data.myOrderNum
+            }),
           });
           });
         } else {
         } else {
           // 使用postMessage 方法可以发送消息到应用, 消息内容需要在data 对象中,否则webview无法接收到
           // 使用postMessage 方法可以发送消息到应用, 消息内容需要在data 对象中,否则webview无法接收到