ソースを参照

订单手机类型bug修复

JXDS18FUJT 1 年間 前
コミット
dfa876da92
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/pages/forecast/index.vue

+ 2 - 1
src/pages/forecast/index.vue

@@ -884,10 +884,11 @@ export default {
     },
     methods: {
         pay() {
+            let systemInfo = wx.getSystemInfoSync();
             api.buy.studentWxXcxPrepareOrder({
                 foreType: 2,
                 goodsType: 3,
-                phoneType: 2,
+                phoneType: systemInfo.platform == "ios" ? 1 : 2,
                 goodsId: this.goodsStatus.id
             }).then(res => {
                 uni.requestPayment({