dengjie commit : 我的页面部分接口

This commit is contained in:
clay
2023-01-05 21:57:51 +08:00
parent 2417d8fe28
commit 458f5a2562
17 changed files with 341 additions and 371 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="my_avatar">
<view style="border: 1px solid #EEEEEE;border-radius: 50rpx;">
<view style="border-radius: 50rpx;">
<u-avatar :src="avatar" size="100rpx" shape="circle"></u-avatar>
</view>
<view style="margin-top: 10rpx;margin-bottom: 4rpx;">
@@ -10,12 +10,11 @@
</u--image>
</view>
<view style="display: flex;align-items: center;">
<text style="margin-right: 8rpx;">顾发航</text>
<text style="margin-right: 8rpx;">{{nickname}}</text>
<u--image v-if="showEdit==true" src="/static/my/wd_icon_bj.png" width="22rpx" height="22rpx"
@click="changeAvatar()">
</u--image>
</view>
</view>
</template>
@@ -32,7 +31,8 @@
return {
show: false,
showEdit: true,
avatar: 'https://cdn.uviewui.com/uview/album/2.jpg',
avatar: '',
nickname: '',
normal: '/static/my/wo_icon_pthy.png',
VIP: '/static/my/wo_icon_vip.png',
};
@@ -41,6 +41,8 @@
if (this.center != false) {
this.showEdit = false
}
this.avatar = uni.getStorageSync('avatar')
this.nickname = uni.getStorageSync('nickname')
},
methods: {
//修改头像
@@ -48,11 +50,7 @@
uni.navigateTo({
url: '../../packageMy/changeAvatar/changeAvatar'
})
}
},
}
}
</script>
<style>
</style>