[fix]调整用户界面,昵称显示不全

main
huyuanxiang 1 year ago
parent c4cfd122bb
commit 610c401482

@ -7,7 +7,7 @@
<view class="user" @click="onLogin">
<image :src="userdata.avatar" v-if="userdata.avatar"></image>
<image src="../../../static/images/face.jpg" v-else></image>
<text>{{userdata.realname || '-'}}</text>
<view class="text">{{userdata.realname || '-'}}</view>
</view>
</view>
<view class="vip">
@ -324,10 +324,14 @@ export default {
border-radius: 50%;
}
.user text {
font-size: 38upx;
.user .text {
font-size: 24upx;
color: #fff;
margin-left: 20upx;
width: 80%;
line-height: 30upx;
height: 30upx;
white-space: break-spaces;
}
.vip {

Loading…
Cancel
Save