From cbb91f554ee9923e476f582cc3377d371b61933c Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 13 Mar 2023 15:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mods/extra/AppMine/userInfo.vue | 58 ++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/src/mods/extra/AppMine/userInfo.vue b/src/mods/extra/AppMine/userInfo.vue index 5957db2..a82893d 100644 --- a/src/mods/extra/AppMine/userInfo.vue +++ b/src/mods/extra/AppMine/userInfo.vue @@ -6,26 +6,28 @@

头像

用户昵称

-
+

- +

手机号

-
{{ user.phone || '' }}
+
+

{{ user.phone }}

+
+
- +
@@ -47,6 +49,15 @@ export default { return nickName } }, + phone: { + set(v) { + + }, + get() { + const { phone } = this.user + return phone + } + } }, onLoad() { this.getUserInfo() @@ -55,6 +66,7 @@ export default { data() { return { editNickName: false, + editPhone: false, avatar: '', } }, @@ -66,6 +78,7 @@ export default { id: this.user.id, nickName: this.nickName, avatarUrl: this.avatar? this.avatar : this.user.avatarUrl, + phone: this.phone? this.phone : this.user.phone, } }).then(res=> { if(res?.code==0) { @@ -111,6 +124,11 @@ export default { } }) }, + handleWeixin({ detail }) { + if(detail.value) { + this.updateInfo() + } + }, handleWeixinSync({detail}) { const { value: nickName, avatarUrl } = detail this.autoLogin({ nickName, avatarUrl }) @@ -134,11 +152,14 @@ export default { background-color: #F5F5F5; .info-list { - margin: 0 0 16px 0; + padding: 50px 32px 0 32px; + box-sizing: border-box; .item-content { padding: 0 32px; + box-sizing: border-box; background-color: #fff; + border-radius: 32px; } .item { @@ -152,6 +173,7 @@ export default { p { color: #333; font-weight: 400; + width: 200px; } div { @@ -159,11 +181,19 @@ export default { font-size: 28px; } + .item-right { + width: calc(100% - 200px); + text-align: right; + font-size: 28px; + p { + width: 100%; + } + } + .user-img-div { - width: 104px; - height: 104px; - border-radius: 50%; - overflow: hidden; + width: calc(100% - 200px); + text-align: right; + display: inline-block; } .user-img { @@ -240,9 +270,9 @@ export default { color: #197DF0; } - .editNickName { - text-align: right; - font-size: 28px; - } + // .editNickName { + // text-align: right; + // font-size: 28px; + // } }