From dc2e5cb84a0f16d43ee26618dc446ded9db9f570 Mon Sep 17 00:00:00 2001 From: zhangkai <847704969@qq.com> Date: Fri, 13 Jun 2025 10:52:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=9E=E6=98=BE=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E5=92=8C=E6=98=B5=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageA/my/person-detail.vue | 47 ++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/packageA/my/person-detail.vue b/packageA/my/person-detail.vue index 0a1da48..34b63af 100644 --- a/packageA/my/person-detail.vue +++ b/packageA/my/person-detail.vue @@ -235,14 +235,15 @@ this.phoneNumber = userInfo.mobile this.niName = userInfo.nickname this.realname = userInfo.username - this.avatar = uni.getStorageSync('userInfo').avatar + this.avatar = userInfo.avatar this.$refs.datetimePicker.setFormatter(this.formatter) // this.handelData() - this.getDetail() + // this.getDetail() }, onShow() { this.getSfInfo(); this.getBankList(); + this.getDetail(); }, methods: { getBankList() { @@ -301,7 +302,7 @@ if (res.code == 1) { uni.setStorageSync('userInfo', { ...uni.getStorageSync('userInfo'), - avatar: avatar + avatar: this.avatar }); this.getDetail() this.$refs.uToast.show({ @@ -309,9 +310,9 @@ message: '保存成功', duration: '1000', complete: function() { - setTimeout(function() { - uni.navigateBack(1) - }, 1000); + // setTimeout(function() { + // uni.navigateBack(1) + // }, 1000); } }) } else if (res.code == 0) { @@ -329,29 +330,29 @@ const userinfo = res.data.user_info uni.setStorageSync('userInfo', res.data.user_info) uni.setStorageSync("niName", res.data.user_info.nickname) - if (userinfo.birthday !== null) { - this.birthday = userinfo.birthday - } - if (userinfo.work !== null) { - this.zhiYe = userinfo.work - } - if (userinfo.diqu !== null) { - this.area = userinfo.diqu - } + // if (userinfo.birthday !== null) { + // this.birthday = userinfo.birthday + // } + // if (userinfo.work !== null) { + // this.zhiYe = userinfo.work + // } + // if (userinfo.diqu !== null) { + // this.area = userinfo.diqu + // } if (userinfo.avatar !== null) { this.avatar = userinfo.avatar uni.setStorageSync('avatar', this.avatar) } if (userinfo.nickname !== null) { - this.nickname = userinfo.nickname - uni.setStorageSync('niName', this.nickname) - } - if (userinfo.gender !== null) { - this.gender = userinfo.gender == '1' ? '男' : '女' - } - if (userinfo.realname !== null) { - this.realname = userinfo.realname + this.niName = userinfo.nickname + uni.setStorageSync('niName', this.niName) } + // if (userinfo.gender !== null) { + // this.gender = userinfo.gender == '1' ? '男' : '女' + // } + // if (userinfo.realname !== null) { + // this.realname = userinfo.realname + // } } }) },