Selaa lähdekoodia

9块9年卡对接ios支付

huangxiaojing 2 vuotta sitten
vanhempi
commit
059d5ca9c4
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      pages/activity/lottery/index.vue

+ 5 - 1
pages/activity/lottery/index.vue

@@ -203,7 +203,11 @@ export default {
           window.native.startPay(this.payType === 'aliPay' ? 3 : 2, res.data.myOrderNum, 1);
         }
         if (this.$userAgent.isIos) {
-          // window.native.startPay(1, res.data.myOrderNum, 1);
+          window.webkit.messageHandlers.startPay.postMessage({
+            payType: this.payType === 'aliPay' ? 3 : 2,
+            orderNum: res.data.myOrderNum,
+            actualPrice: this.actualPrice
+          });
         }
       } catch (error) {
         Toast({