diff --git a/src/api/mall/product/history.ts b/src/api/mall/product/history.ts new file mode 100644 index 00000000..022a022b --- /dev/null +++ b/src/api/mall/product/history.ts @@ -0,0 +1,9 @@ +import request from '@/config/axios' + +/** + * 获得商品浏览记录分页 + * @param params 请求参数 + */ +export const getBrowseHistoryPage = (params: any) => { + return request.get({ url: '/product/browse-history/page', params }) +} diff --git a/src/views/mall/promotion/kefu/components/KeFuConversationList.vue b/src/views/mall/promotion/kefu/components/KeFuConversationList.vue index 2a651672..60188f32 100644 --- a/src/views/mall/promotion/kefu/components/KeFuConversationList.vue +++ b/src/views/mall/promotion/kefu/components/KeFuConversationList.vue @@ -21,9 +21,9 @@
- {{ item.userNickname }} + {{ item.userNickname }} - {{ formatDate(item.lastMessageTime) }} + {{ formatPast(item.lastMessageTime, 'YYYY-mm-dd') }}
@@ -70,7 +70,7 @@ + + diff --git a/src/views/mall/promotion/kefu/components/history/OrderBrowsingHistory.vue b/src/views/mall/promotion/kefu/components/history/OrderBrowsingHistory.vue new file mode 100644 index 00000000..3ee5e148 --- /dev/null +++ b/src/views/mall/promotion/kefu/components/history/OrderBrowsingHistory.vue @@ -0,0 +1,42 @@ + + + diff --git a/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue b/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue new file mode 100644 index 00000000..da680a1f --- /dev/null +++ b/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/src/views/mall/promotion/kefu/components/index.ts b/src/views/mall/promotion/kefu/components/index.ts index 88e52832..585d0da7 100644 --- a/src/views/mall/promotion/kefu/components/index.ts +++ b/src/views/mall/promotion/kefu/components/index.ts @@ -1,4 +1,5 @@ import KeFuConversationList from './KeFuConversationList.vue' import KeFuMessageList from './KeFuMessageList.vue' +import MemberBrowsingHistory from './history/MemberBrowsingHistory.vue' -export { KeFuConversationList, KeFuMessageList } +export { KeFuConversationList, KeFuMessageList, MemberBrowsingHistory } diff --git a/src/views/mall/promotion/kefu/components/message/ImageMessageItem.vue b/src/views/mall/promotion/kefu/components/message/ImageMessageItem.vue deleted file mode 100644 index 6b60651b..00000000 --- a/src/views/mall/promotion/kefu/components/message/ImageMessageItem.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/src/views/mall/promotion/kefu/components/message/MessageItem.vue b/src/views/mall/promotion/kefu/components/message/MessageItem.vue new file mode 100644 index 00000000..325a3639 --- /dev/null +++ b/src/views/mall/promotion/kefu/components/message/MessageItem.vue @@ -0,0 +1,24 @@ + + + diff --git a/src/views/mall/promotion/kefu/components/message/OrderItem.vue b/src/views/mall/promotion/kefu/components/message/OrderItem.vue new file mode 100644 index 00000000..5ee21f28 --- /dev/null +++ b/src/views/mall/promotion/kefu/components/message/OrderItem.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/src/views/mall/promotion/kefu/components/message/OrderMessageItem.vue b/src/views/mall/promotion/kefu/components/message/OrderMessageItem.vue deleted file mode 100644 index 61c81e47..00000000 --- a/src/views/mall/promotion/kefu/components/message/OrderMessageItem.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/views/mall/promotion/kefu/components/message/ProductItem.vue b/src/views/mall/promotion/kefu/components/message/ProductItem.vue index 39233deb..ba2a2a94 100644 --- a/src/views/mall/promotion/kefu/components/message/ProductItem.vue +++ b/src/views/mall/promotion/kefu/components/message/ProductItem.vue @@ -110,33 +110,25 @@ const skuString = computed(() => {