首页修改
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
<Cn-htmlToImg domId="content" @renderFinish="renderFinish" style="display: flex">
|
||||
<view class="content" id="content">
|
||||
<view class="user-info">
|
||||
<image class="avatar" :src="userInfo.avatar"></image>
|
||||
<image class="avatar" :src="userInfo.avatar" v-if="userInfo.avatar"></image>
|
||||
<image class="avatar" src="/static/head.png" v-else></image>
|
||||
<view class="right">
|
||||
<view class="user-info-name">{{ userInfo.nickname }}</view>
|
||||
<view class="user-info-role">{{ roleName }}</view>
|
||||
@@ -91,6 +92,7 @@ export default {
|
||||
},
|
||||
onLoad(options) {
|
||||
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
console.log(this.userInfo)
|
||||
this.content = JSON.stringify({
|
||||
type: 'userId',
|
||||
id: this.userInfo.userIndex,
|
||||
@@ -122,6 +124,7 @@ export default {
|
||||
height: 100rpx;
|
||||
width: 100rpx;
|
||||
border-radius: 8rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.right {
|
||||
@@ -132,6 +135,7 @@ export default {
|
||||
.user-info-name {
|
||||
font-size: 32rpx;
|
||||
color: #333333;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.user-info-role {
|
||||
|
||||
Reference in New Issue
Block a user