Browse Source

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

huangxiaojing 2 years ago
parent
commit
4c70adbeb1
2 changed files with 3 additions and 3 deletions
  1. 2 2
      pages/activity/lottery/index.vue
  2. 1 1
      plugins/uni.js

+ 2 - 2
pages/activity/lottery/index.vue

@@ -90,7 +90,7 @@
 import { Toast } from 'vant'
 import RoundTurntable from './component/roundTurntable.vue'
 const RSA = require('../../../plugins/wx_rsa');
-const uni = require('../../../plugins/uni');
+const webUni = require('../../../plugins/uni');
 export default {
   name: 'Lottery',
   auth: false,
@@ -213,7 +213,7 @@ export default {
         } else {
           console.log(511);
           // 使用postMessage 方法可以发送消息到应用, 消息内容需要在data 对象中,否则webview无法接收到
-          uni.postMessage({
+          webUni.postMessage({
             data: {
               payType: this.payType === 'aliPay' ? 3 : 2,
               orderNum: res.data.myOrderNum,

File diff suppressed because it is too large
+ 1 - 1
plugins/uni.js