Explorar el Código

订单手机类型bug修复

JXDS18FUJT hace 1 año
padre
commit
dfa876da92
Se han modificado 1 ficheros con 2 adiciones y 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({