持续完善用户信息...

Signed-off-by: YangWork <yang@xixingwl.cn>
This commit is contained in:
YangWork
2023-02-10 18:07:25 +08:00
parent 450c6d021e
commit 9904175cc3
4 changed files with 60 additions and 39 deletions

View File

@@ -1,13 +1,13 @@
<template>
<view>
<view>
<page-head title="view"></page-head>
<view class="warp" style="margin: 10rpx 15rpx;">
<view class="user" style="">
<image class="user-avatar" mode="aspectFit" src="../../../static/logo.png"></image>
<view class="user-info">
<h2> 用户昵称 </h2>
<text> UID 1234567897 </text>
<text> 用户昵称</text>
<h2> {{userInfo.nickname}} </h2>
<text> UID {{userInfo.uid}}</text>
<text> {{userInfo.account}}</text>
</view>
</view>
<view style="padding: 10rpx;"></view>
@@ -89,13 +89,15 @@
timestamp: state => state.moduleB.timestamp
}),
...mapGetters({
isLogin: 'userIsLogin'
isLogin: 'getuserIsLogin',
userInfo: 'getUserInfo'
})
},
data() {
return {}
},
onLoad(){
console.log(this.isLogin);
if (! this.isLogin) {
uni.redirectTo({
url:"/pages/login/login"