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/ProductBrowsingHistory.vue b/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue new file mode 100644 index 00000000..3c2d0dd0 --- /dev/null +++ b/src/views/mall/promotion/kefu/components/history/ProductBrowsingHistory.vue @@ -0,0 +1,38 @@ + + + + + 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/index.vue b/src/views/mall/promotion/kefu/index.vue index 06a6f02b..03deb895 100644 --- a/src/views/mall/promotion/kefu/index.vue +++ b/src/views/mall/promotion/kefu/index.vue @@ -1,22 +1,28 @@