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 @@ + + + + +