Sfoglia il codice sorgente

订单手机类型bug修复

JXDS18FUJT 1 anno fa
parent
commit
dfa876da92
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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({