hookehuyr

新增跳转头像修改页面

1 <!-- 1 <!--
2 * @Date: 2022-09-21 14:51:44 2 * @Date: 2022-09-21 14:51:44
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-10-26 15:52:42 4 + * @LastEditTime: 2022-10-28 18:01:09
5 * @FilePath: /swx/src/pages/my/index.vue 5 * @FilePath: /swx/src/pages/my/index.vue
6 * @Description: 我的页面 6 * @Description: 我的页面
7 --> 7 -->
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <view style="height: 4rem; padding: 1rem;"> 11 <view style="height: 4rem; padding: 1rem;">
12 <van-row> 12 <van-row>
13 <van-col span="18"> 13 <van-col span="18">
14 - <view style="position: relative;"> 14 + <view @tap="editUser" style="position: relative;">
15 <van-image :round="true" width="4rem" height="4rem" :src="avatar" /> 15 <van-image :round="true" width="4rem" height="4rem" :src="avatar" />
16 <view style="display: inline-block; position: absolute; top: 30%; left: 30%;"> 16 <view style="display: inline-block; position: absolute; top: 30%; left: 30%;">
17 <text style="font-size: 1.15rem;">{{ nickname }}</text> 17 <text style="font-size: 1.15rem;">{{ nickname }}</text>
...@@ -131,6 +131,13 @@ const myProject = () => { ...@@ -131,6 +131,13 @@ const myProject = () => {
131 url: '../projectManage/index' 131 url: '../projectManage/index'
132 }) 132 })
133 } 133 }
134 +
135 +// 修改头像
136 +const editUser = () => {
137 + Taro.navigateTo({
138 + url: '../apxUserInfo/index'
139 + })
140 +}
134 </script> 141 </script>
135 142
136 <script> 143 <script>
......