HUANGYAQIAN-PC\huangyaqian vor 2 Jahren
Ursprung
Commit
6f5f98bcfc
2 geänderte Dateien mit 8 neuen und 14 gelöschten Zeilen
  1. 6 12
      pages/activity/doubleEleven/index.vue
  2. 2 2
      pages/activity/doubleEleven/pc.vue

+ 6 - 12
pages/activity/doubleEleven/index.vue

@@ -37,7 +37,7 @@
             <div class="tips">{{item.couponExplain}}</div>
             <div class="number">剩余数量:{{item.remainder}}张</div>
           </div>
-          <div v-if="item.receivingStatus===1 || 1===1" class="btn" @click="receiveCouponRewards(item)"></div>
+          <div v-if="item.receivingStatus===1" class="btn" @click="receiveCouponRewards(item)"></div>
           <div v-else-if="item.receivingStatus===2" class="btn-collect"></div>
           <div v-else-if="item.receivingStatus===3" class="btn-nocoupon"></div>
         </div>
@@ -91,7 +91,7 @@ import { Toast } from 'vant';
 const RSA = require('../../../plugins/wx_rsa');
 const webUni = require('../../../plugins/uni');
 export default {
-  name: 'Lottery',
+  name: 'doubleEleven',
   auth: false,
   components: {
   },
@@ -164,7 +164,7 @@ export default {
         } else if (this.$userAgent.isSzx && this.$userAgent.isAndroid) {
           window.native.startPurchasePage(productId);
         } else if (this.$userAgent.isSzx && this.$userAgent.isIos) {
-          window.webkit.messageHandlers.activity202211.postMessage({productId});
+          window.webkit.messageHandlers.activity202211.postMessage(productId);
         } else if (this.$userAgent.isMiniProgram) {
           // this.$wx.miniProgram.navigateTo({
           //   url:
@@ -175,15 +175,9 @@ export default {
           //     }),
           // });
         } else {
-          // // 使用postMessage 方法可以发送消息到应用, 消息内容需要在data 对象中,否则webview无法接收到
-          // webUni.webView.postMessage({
-          //   data: {
-          //     payType: this.payType === 'aliPay' ? 3 : 2,
-          //     orderNum: res.data.myOrderNum,
-          //     buyType: 1,
-          //     price: this.actualPrice,
-          //   },
-          // });
+          webUni.webView.navigateTo({
+            url: '/pages/order/order?productId=' + productId
+          });
         }
     },
     async getCoupons()

+ 2 - 2
pages/activity/doubleEleven/pc.vue

@@ -37,7 +37,7 @@
               <div class="tips">{{item.couponExplain}}</div>
               <div class="number">剩余数量:{{item.remainder}}张</div>
             </div>
-            <div v-if="item.receivingStatus===1 || 1===1" class="btn" @click="receiveCouponRewards(item)"></div>
+            <div v-if="item.receivingStatus===1" class="btn" @click="receiveCouponRewards(item)"></div>
             <div v-else-if="item.receivingStatus===2" class="btn-collect"></div>
             <div v-else-if="item.receivingStatus===3" class="btn-nocoupon"></div>
           </div>
@@ -91,7 +91,7 @@
   const RSA = require('../../../plugins/wx_rsa');
   const webUni = require('../../../plugins/uni');
   export default {
-    name: 'Lottery',
+    name: 'doubleEleven',
     auth: false,
     components: {
     },