Explorar o código

订单手机类型bug修复

JXDS18FUJT hai 1 ano
pai
achega
dfa876da92
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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({