소스 검색

9块9年卡对接ios-h5支付

huangxiaojing 2 년 전
부모
커밋
c24982c2e5
3개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      .eslintignore
  2. 10 0
      pages/activity/lottery/index.vue
  3. 1 0
      plugins/uni.js

+ 2 - 1
.eslintignore

@@ -2,4 +2,5 @@ node_modules/
 .nuxt/
 static/
 dist/
-plugins/wx_rsa
+plugins/wx_rsa
+plugins/uni

+ 10 - 0
pages/activity/lottery/index.vue

@@ -90,6 +90,7 @@
 import { Toast } from 'vant'
 import RoundTurntable from './component/roundTurntable.vue'
 const RSA = require('../../../plugins/wx_rsa');
+const uni = require('../../../plugins/uni');
 export default {
   name: 'Lottery',
   auth: false,
@@ -209,6 +210,15 @@ export default {
             actualPrice: this.actualPrice
           });
         }
+        if (this.$userAgent.isSzxBrowser) {
+          uni.webView.postMessage({
+            data: {
+              payType: this.payType === 'aliPay' ? 3 : 2,
+              orderNum: res.data.myOrderNum,
+              buyType: 1
+            }
+          })
+        }
       } catch (error) {
         Toast({
           message: error.message,

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 0
plugins/uni.js