瀏覽代碼

订单手机类型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: {
     methods: {
         pay() {
         pay() {
+            let systemInfo = wx.getSystemInfoSync();
             api.buy.studentWxXcxPrepareOrder({
             api.buy.studentWxXcxPrepareOrder({
                 foreType: 2,
                 foreType: 2,
                 goodsType: 3,
                 goodsType: 3,
-                phoneType: 2,
+                phoneType: systemInfo.platform == "ios" ? 1 : 2,
                 goodsId: this.goodsStatus.id
                 goodsId: this.goodsStatus.id
             }).then(res => {
             }).then(res => {
                 uni.requestPayment({
                 uni.requestPayment({