Commit 3349e3d4 authored by zhengke's avatar zhengke

修改登录

parent 3ca1cc97
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
@confirm="confirm" @confirm="confirm"
></u-modal> ></u-modal>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
<!-- <auth v-if="showAuth" @changeuserinfo="reloadUserinfo"></auth> --> <auth v-if="showAuth" @changeuserinfo="reloadUserinfo"></auth>
</view> </view>
</template> </template>
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
}); });
}, },
onLoad(option) { onLoad(option) {
this.u = wx.getStorageSync("userinfo"); this.u = wx.getStorageSync("mall_UserInfo");
if (!this.u) { if (!this.u) {
this.u = { this.u = {
nickName: "未登录", nickName: "未登录",
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
); );
}, },
reloadUserinfo() { reloadUserinfo() {
this.u = uni.getStorageSync("userinfo"); this.u = uni.getStorageSync("mall_UserInfo");
this.showAuth = false; this.showAuth = false;
}, },
isdefault(item) { isdefault(item) {
......
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