From 8d49e123252efd47a90d55b8f18a128fb213b7cf Mon Sep 17 00:00:00 2001 From: "Mr.jiang" <714156421@qq.com> Date: Tue, 27 Aug 2024 10:56:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- my/renzheng/index.vue | 2 +- pages/my/userinfo.vue | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/my/renzheng/index.vue b/my/renzheng/index.vue index 02470c9..7c58560 100644 --- a/my/renzheng/index.vue +++ b/my/renzheng/index.vue @@ -788,7 +788,7 @@ onok(ev) { var that=this; this.url = ""; - that.form.headImg = ev.path; + // that.form.headImg = ev.path; var url = null; if(ev.path){ that.$queue.showLoading("上传中..."); diff --git a/pages/my/userinfo.vue b/pages/my/userinfo.vue index e25974f..7879318 100644 --- a/pages/my/userinfo.vue +++ b/pages/my/userinfo.vue @@ -78,7 +78,7 @@ - + @@ -208,8 +208,6 @@ onok(ev) { var that=this; this.url = ""; - this.avatar = ev.path; - var url = null; if(ev.path){ uni.showLoading({ title: '上传中...' @@ -224,8 +222,7 @@ }, name: 'file', success: uploadFileRes => { - url = JSON.parse(uploadFileRes.data); - // that.avatar = url.data + that.avatar = JSON.parse(uploadFileRes.data).data; that.$refs.popup.close('bottom') uni.hideLoading(); }