shish hai 1 mes
pai
achega
34fa5f9ba8
Modificáronse 1 ficheiros con 5 adicións e 9 borrados
  1. 5 9
      ghsApp/src/pagesOrder/shMethod.vue

+ 5 - 9
ghsApp/src/pagesOrder/shMethod.vue

@@ -350,9 +350,7 @@ export default {
      * @param {number} style - 配送类型 (0-4)
      */
     loadConfig(style) {
-      getShMethodConfig({ style })
-        .then(res => {
-          uni.hideLoading();
+      getShMethodConfig({ style }).then(res => {
           if (res.code == 1 && res.data) {
             const data = res.data;
             this.form = {
@@ -375,15 +373,13 @@ export default {
                 fontWeight: exp.fontWeight != null ? Number(exp.fontWeight) : 1
               })),
               reduceRules: data.reduceRules || []
-            };
+            }
           } else {
-            this.$msg(res.msg || "加载失败");
+            this.$msg(res.msg || "加载失败")
           }
-        })
-        .catch(err => {
-          uni.hideLoading();
+        }).catch(err => {
           this.$msg("加载失败,请重试");
-        });
+        })
     },
 
     /**