|
|
@@ -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("加载失败,请重试");
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
/**
|