Commit 8b72bb2d authored by Mac's avatar Mac

个人中心修改

parent b62a5cb2
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
}, },
onShow() { onShow() {
this.userinfo(); this.userinfo(2);
}, },
methods: { methods: {
goHome() { goHome() {
...@@ -280,7 +280,7 @@ export default { ...@@ -280,7 +280,7 @@ export default {
return flag; return flag;
}, },
//获取菜单配置 //获取菜单配置
userinfo() { userinfo(type=1) {
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
this.request2( this.request2(
{ {
...@@ -296,14 +296,14 @@ export default { ...@@ -296,14 +296,14 @@ export default {
this.couponsObj = x this.couponsObj = x
} }
}) })
if(this.mall_UserInfo){ if(this.mall_UserInfo&& type==1){
this.getLogin() this.getLogin()
} }
} }
); );
let u = uni.getStorageSync("mall_UserInfo"); let u = uni.getStorageSync("mall_UserInfo");
if(u){ if(u&& type==1){
this.getMicroShopBasics() this.getMicroShopBasics()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment