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

main
huyuanxiang 1 year ago
parent c4cfd122bb
commit 610c401482

@ -7,7 +7,7 @@
<view class="user" @click="onLogin"> <view class="user" @click="onLogin">
<image :src="userdata.avatar" v-if="userdata.avatar"></image> <image :src="userdata.avatar" v-if="userdata.avatar"></image>
<image src="../../../static/images/face.jpg" v-else></image> <image src="../../../static/images/face.jpg" v-else></image>
<text>{{userdata.realname || '-'}}</text> <view class="text">{{userdata.realname || '-'}}</view>
</view> </view>
</view> </view>
<view class="vip"> <view class="vip">
@ -87,7 +87,7 @@ export default {
url: '/pages/views/user/mycollection', url: '/pages/views/user/mycollection',
id: 1, id: 1,
elseUrl: '' elseUrl: ''
}, },
// { // {
// name: '', // name: '',
// icon: 'icon-dizhi', // icon: 'icon-dizhi',
@ -138,7 +138,7 @@ export default {
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
}, },
/** /**
@ -169,13 +169,13 @@ export default {
} }
this.logList = getGoodsHistory() this.logList = getGoodsHistory()
let colors = app.globalData.newColor; let colors = app.globalData.newColor;
let oldcolor = this.colors; let oldcolor = this.colors;
let userdata = getUserInfo() || {}; let userdata = getUserInfo() || {};
this.userdata = userdata this.userdata = userdata
this.getOrderStatus() this.getOrderStatus()
}, },
/** /**
@ -221,7 +221,7 @@ export default {
}) })
this.orderText = navs this.orderText = navs
}) })
}, },
onLogin(){ onLogin(){
let token = getToken() let token = getToken()
@ -240,7 +240,7 @@ export default {
}); });
}, },
moveHandle(){ // moveHandle(){ //
}, },
coverTouchMove(e) { coverTouchMove(e) {
// //
@ -324,10 +324,14 @@ export default {
border-radius: 50%; border-radius: 50%;
} }
.user text { .user .text {
font-size: 38upx; font-size: 24upx;
color: #fff; color: #fff;
margin-left: 20upx; margin-left: 20upx;
width: 80%;
line-height: 30upx;
height: 30upx;
white-space: break-spaces;
} }
.vip { .vip {
@ -414,4 +418,4 @@ export default {
background-color: #f8f8f8; background-color: #f8f8f8;
padding-bottom: 40upx; padding-bottom: 40upx;
} }
</style> </style>

Loading…
Cancel
Save