Commit 93c616f1 authored by zhengke's avatar zhengke

修改页面

parent 3c6964e3
...@@ -110,7 +110,16 @@ export default { ...@@ -110,7 +110,16 @@ export default {
} }
}, },
buy() { buy() {
this.u = uni.getStorageSync('mall_UserInfo');
if (!this.u) {
this.u = {
nickName: '未登录',
avatarUrl: ''
};
this.showAuth = true;
} else{
this.$emit('buy'); this.$emit('buy');
}
}, },
reloadUserinfo() { reloadUserinfo() {
......
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