From a76fd9ee036d16f052a778fc8cafd0f92b158954 Mon Sep 17 00:00:00 2001 From: kele <1184860403@qq.com> Date: Fri, 13 Jan 2023 19:29:26 +0800 Subject: [PATCH] =?UTF-8?q?fx:=E5=94=AE=E5=90=8E=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E3=80=81=E5=85=A8=E9=83=A8=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=9B=BE=E7=89=87=E6=B7=BB=E5=8A=A0=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/comment/list.vue | 30 +++------- pages/order/aftersale/log-item.vue | 94 ++++++++++++++++++++++++++++++ pages/order/aftersale/log.vue | 59 +------------------ 3 files changed, 104 insertions(+), 79 deletions(-) create mode 100644 pages/order/aftersale/log-item.vue diff --git a/pages/goods/comment/list.vue b/pages/goods/comment/list.vue index 80383f04..99cb53c5 100644 --- a/pages/goods/comment/list.vue +++ b/pages/goods/comment/list.vue @@ -9,28 +9,7 @@ > - - - - {{ item.user_nickname }} - - - {{ item.create_time?.substring(0, 11) }} - - {{ item.content }} - - - - - - - - - + @@ -50,6 +29,7 @@ import { onLoad, onReachBottom } from '@dcloudio/uni-app'; import { computed, reactive } from 'vue'; import _ from 'lodash'; + import commentItem from '../components/detail/comment-item.vue'; const state = reactive({ list: [], type: [], @@ -62,6 +42,7 @@ }, commentId: 0, code: 'all', + commentImages: [], }); // 切换选项卡 function onTabsChange(e) { @@ -98,6 +79,11 @@ } else { state.pagination = res.data; } + state.pagination.data.forEach((item) => { + item.images.forEach((image) => { + state.commentImages.push(sheep.$url.cdn(image)); + }); + }); if (state.pagination.current_page < state.pagination.last_page) { state.loadStatus = 'more'; } else { diff --git a/pages/order/aftersale/log-item.vue b/pages/order/aftersale/log-item.vue new file mode 100644 index 00000000..dba566aa --- /dev/null +++ b/pages/order/aftersale/log-item.vue @@ -0,0 +1,94 @@ + + + diff --git a/pages/order/aftersale/log.vue b/pages/order/aftersale/log.vue index 4dbb4af8..72bc2da6 100644 --- a/pages/order/aftersale/log.vue +++ b/pages/order/aftersale/log.vue @@ -3,24 +3,7 @@ - - - - - - {{ item.log_type_text }} - - - - - - - - - - {{ item.create_time }} - + @@ -30,6 +13,7 @@ import sheep from '@/sheep'; import { onLoad } from '@dcloudio/uni-app'; import { computed, reactive } from 'vue'; + import logItem from './log-item.vue'; const state = reactive({ active: 1, @@ -69,44 +53,5 @@ .log-content-box { align-items: stretch; } - .log-icon { - height: inherit; - .cicon-title { - font-size: 30rpx; - color: #dfdfdf; - } - .activity-color { - color: #60bd45; - } - .line { - width: 1px; - height: 100%; - background: #dfdfdf; - } - } - .text { - font-size: 28rpx; - font-weight: 500; - color: #333333; - } - .richtext { - font-size: 24rpx; - font-weight: 500; - color: #999999; - margin: 20rpx 0 0 0; - } - .content-img { - margin-top: 20rpx; - width: 200rpx; - height: 200rpx; - } - .date { - margin-top: 20rpx; - font-size: 24rpx; - font-family: OPPOSANS; - font-weight: 400; - color: #999999; - margin-bottom: 40rpx; - } }