Commit fac72648 authored by Mac's avatar Mac

个人中心登录

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