diff --git a/pages/goods/comment/list.vue b/pages/goods/comment/list.vue
index 80383f0..99cb53c 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 0000000..dba566a
--- /dev/null
+++ b/pages/order/aftersale/log-item.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+ {{ item.log_type_text }}
+
+
+
+
+
+
+
+
+
+
+ {{ item.create_time }}
+
+
+
+
diff --git a/pages/order/aftersale/log.vue b/pages/order/aftersale/log.vue
index 4dbb4af..72bc2da 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;
- }
}