@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user