From 4a062a98d08029028c01e78f2f344b6620fc02f5 Mon Sep 17 00:00:00 2001 From: 396316021 <396316021@qq.com> Date: Mon, 30 Oct 2023 14:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98=201.?= =?UTF-8?q?=E5=AE=A0=E7=89=A9=E4=BF=AE=E6=94=B9=E5=A4=B4=E5=83=8F=E5=92=8C?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E4=B8=8D=E8=83=BD=E4=B8=8A=E4=BC=A0=202.?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E7=9A=84=E8=83=8C=E6=99=AF=E7=99=BD=E6=9D=A1=203.?= =?UTF-8?q?=E5=AE=A0=E7=89=A9=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E7=9B=B8?= =?UTF-8?q?=E5=86=8C=E5=8F=AF=E7=82=B9=E5=87=BB=E6=94=BE=E5=A4=A7=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/PetPage/index.vue | 11 ++- pages/FeedLog/index.vue | 93 +++++++++++++++++++ pages/PetDetail/index.vue | 15 ++- .../uv-preview-video/uv-preview-video.vue | 2 +- 4 files changed, 113 insertions(+), 8 deletions(-) diff --git a/components/PetPage/index.vue b/components/PetPage/index.vue index 65e1257..928145b 100644 --- a/components/PetPage/index.vue +++ b/components/PetPage/index.vue @@ -775,9 +775,9 @@ this.data.is_health_name = res.name; } }); - this.avatarList = res.data.avatar && res.data.avatar.split(',').map(item => { + this.avatarList = res.data.avatar ? res.data.avatar.split(',').map(item => { return {url:item}; - }); + }) : []; if((res.data.images && res.data.images.length > 0)){ this.imagesList = res.data.images.map(item => { @@ -785,9 +785,9 @@ }); } - this.videoList = res.data.video && res.data.video.split(',').map(item => { + this.videoList = res.data.video ? res.data.video.split(',').map(item => { return {url:item}; - }); + }):[]; this.backgroundList = res.data.background_image && res.data.background_image.split(',').map(item => { return {url:item}; }); @@ -846,6 +846,7 @@ } }, async afterAvatarRead (event){ + let that = this; let lists = [].concat(event.file); let fileListLen = this.avatarList.length; @@ -860,7 +861,7 @@ api.uploadOssFile(lists[i].url).then(res => { let item = this.avatarList[fileListLen]; - this.avatarList.splice(fileListLen, 1, { + that.avatarList.splice(fileListLen, 1, { ...item, status: 'success', message: '', diff --git a/pages/FeedLog/index.vue b/pages/FeedLog/index.vue index d71f0bd..0379063 100644 --- a/pages/FeedLog/index.vue +++ b/pages/FeedLog/index.vue @@ -63,6 +63,16 @@ + + + + + + + + + + @@ -88,6 +98,16 @@ + + + + + + + + + + @@ -113,6 +133,16 @@ + + + + + + + + + + @@ -138,6 +168,16 @@ + + + + + + + + + + @@ -163,6 +203,16 @@ + + + + + + + + + + @@ -188,6 +238,16 @@ + + + + + + + + + + @@ -213,6 +273,16 @@ + + + + + + + + + + @@ -238,6 +308,16 @@ + + + + + + + + + + @@ -293,6 +373,11 @@ + + + + +