dengjie commit : 代码完善
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</u--image>
|
||||
</view>
|
||||
<view style="display: flex;align-items: center;">
|
||||
<text style="margin-right: 8rpx;">{{nickname}}</text>
|
||||
<text>{{nickname}}</text>
|
||||
<u--image v-if="showEdit==true" src="/static/my/wd_icon_bj.png" width="22rpx" height="22rpx"
|
||||
@click="changeAvatar()">
|
||||
</u--image>
|
||||
@@ -32,7 +32,7 @@
|
||||
member: false,
|
||||
showEdit: true,
|
||||
avatar: '',
|
||||
nickname: '',
|
||||
nickname: '用户',
|
||||
normal: '/static/my/wo_icon_pthy.png',
|
||||
VIP: '/static/my/wo_icon_vip.png',
|
||||
};
|
||||
@@ -43,6 +43,9 @@
|
||||
}
|
||||
this.getUser()
|
||||
},
|
||||
options: {
|
||||
styleIsolation: 'shared', // 解除样式隔离
|
||||
},
|
||||
methods: {
|
||||
//修改头像
|
||||
changeAvatar() {
|
||||
@@ -63,3 +66,8 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
/deep/.u-image {
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user