Selaa lähdekoodia

订单手机类型bug修复

JXDS18FUJT 1 vuosi sitten
vanhempi
commit
dfa876da92
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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({