Commit 8b72bb2d authored by Mac's avatar Mac

个人中心修改

parent b62a5cb2
......@@ -229,7 +229,7 @@ export default {
},
onShow() {
this.userinfo();
this.userinfo(2);
},
methods: {
goHome() {
......@@ -280,7 +280,7 @@ export default {
return flag;
},
//获取菜单配置
userinfo() {
userinfo(type=1) {
uni.showNavigationBarLoading();
this.request2(
{
......@@ -296,14 +296,14 @@ export default {
this.couponsObj = x
}
})
if(this.mall_UserInfo){
if(this.mall_UserInfo&& type==1){
this.getLogin()
}
}
);
let u = uni.getStorageSync("mall_UserInfo");
if(u){
if(u&& type==1){
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