瀏覽代碼

Merge branch '物流充值_cl' of chenlei/mobile into master

chenlei 9 月之前
父節點
當前提交
ee83abff0b
共有 3 個文件被更改,包括 4 次插入1 次删除
  1. 1 0
      src/pages/order/createOrder.vue
  2. 2 0
      src/utils/func/index.ts
  3. 1 1
      src/utils/store/common.ts

+ 1 - 0
src/pages/order/createOrder.vue

@@ -221,6 +221,7 @@ const methods = {
     }
     if (gasQtyNum.value > store.common.data.preferWeight) {
       func.native.showToast('加气量不能超过' + store.common.data.preferWeight)
+      return false
     }
     // 物流支付-仅创建订单
     if (data.fpayType === 1 && carrierPay.value?.createOnly) {

+ 2 - 0
src/utils/func/index.ts

@@ -1,3 +1,5 @@
+/* eslint-disable no-prototype-builtins */
+/* eslint-disable promise/param-names */
 import native from './native'
 import convert from './convert'
 import validate from './validate'

+ 1 - 1
src/utils/store/common.ts

@@ -4,7 +4,7 @@ export default defineStore('common', () => {
   const data = reactive({
     debug: true,
     /** 加气量上限 */
-    preferWeight: 1000,
+    preferWeight: 5000,
     /** 客服电话 */
     phone: '400-016-5388',
     /** mock场景值 */