Commit fac72648 authored by Mac's avatar Mac

个人中心登录

parent d2f50880
......@@ -195,17 +195,17 @@ export default {
onLoad() {
this.navHeight = this.$navHeight - 2;
this.u = wx.getStorageSync('basedata').user_info;
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):{};
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo");
this.nav = uni.getMenuButtonBoundingClientRect().top+'px';
this.headStyle.background = `linear-gradient(to right, '#6E75EA',80%, '#B984EC')`;
this.headStyle.paddingTop = this.nav ;
// if (!this.u) {
// this.u = {
// nickname: '未登录',
// avatarUrl: ''
// };
// this.showAuth = true;
// }
if (!this.mall_UserInfo) {
this.mall_UserInfo = {
nickname: '未登录',
avatarUrl: ''
};
this.showAuth = true;
}
},
mounted() {
let currentPages = getCurrentPages();
......
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