|
@@ -99,7 +99,7 @@ export default {
|
99
|
99
|
curShop: {},
|
100
|
100
|
shopErr: false,
|
101
|
101
|
menuList: [],
|
102
|
|
- menuLoading:true,
|
|
102
|
+ menuLoading: true,
|
103
|
103
|
};
|
104
|
104
|
},
|
105
|
105
|
|
|
@@ -133,14 +133,16 @@ export default {
|
133
|
133
|
uni.showLoading({
|
134
|
134
|
title: "加载中...",
|
135
|
135
|
});
|
136
|
|
- this.menuLoading = true;
|
|
136
|
+ this.menuLoading = true;
|
137
|
137
|
this.api
|
138
|
138
|
.get("/User/GetUserMenu", { userId: this.user.id })
|
139
|
139
|
.then((res) => {
|
140
|
|
- let userMenu = res.data.userMenu.mobile;
|
141
|
|
- let mobileMenu = res.data.menu.mobile;
|
142
|
|
- if (userMenu && userMenu.length) {
|
143
|
|
- this.initMenu(mobileMenu, userMenu);
|
|
140
|
+ if (res.data.userMenu) {
|
|
141
|
+ let userMenu = res.data.userMenu.mobile;
|
|
142
|
+ let mobileMenu = res.data.menu.mobile;
|
|
143
|
+ if (userMenu && userMenu.length) {
|
|
144
|
+ this.initMenu(mobileMenu, userMenu);
|
|
145
|
+ }
|
144
|
146
|
}
|
145
|
147
|
this.menuLoading = false;
|
146
|
148
|
uni.hideLoading();
|