From 79abba1c1b22b6a6b7645685d4b2bb9c1a9df5e2 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Mon, 13 Mar 2023 16:01:25 +0800
Subject: [PATCH] =?UTF-8?q?=E6=98=B5=E7=A7=B0=EF=BC=8C=E6=89=8B=E6=9C=BA?=
=?UTF-8?q?=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mods/extra/AppMine/userInfo.vue | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/mods/extra/AppMine/userInfo.vue b/src/mods/extra/AppMine/userInfo.vue
index a82893d..c812404 100644
--- a/src/mods/extra/AppMine/userInfo.vue
+++ b/src/mods/extra/AppMine/userInfo.vue
@@ -10,19 +10,19 @@
@@ -43,6 +43,7 @@ export default {
...mapState(['user', 'token']),
nickName: {
set(v) {
+ this.userName = v
},
get() {
const {nickName} = this.user
@@ -51,7 +52,7 @@ export default {
},
phone: {
set(v) {
-
+ this.userPhone = v
},
get() {
const { phone } = this.user
@@ -68,6 +69,8 @@ export default {
editNickName: false,
editPhone: false,
avatar: '',
+ userName: '',
+ userPhone: ''
}
},
methods: {
@@ -76,9 +79,9 @@ export default {
this.$instance.post(`/app/appwechatuser/update-nickName`,null,{
params: {
id: this.user.id,
- nickName: this.nickName,
+ nickName: this.userName? this.userName : this.user.nickName,
avatarUrl: this.avatar? this.avatar : this.user.avatarUrl,
- phone: this.phone? this.phone : this.user.phone,
+ phone: this.userPhone ? this.userPhone : this.user.phone,
}
}).then(res=> {
if(res?.code==0) {
@@ -126,6 +129,7 @@ export default {
},
handleWeixin({ detail }) {
if(detail.value) {
+ this.phone = detail.value
this.updateInfo()
}
},