dengjie commit : 代码完善

This commit is contained in:
clay
2023-01-09 18:03:51 +08:00
parent 9c0477da5c
commit c906a7d33a
16 changed files with 198 additions and 173 deletions

View File

@@ -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>