From cffc3b996bdc66673c2888cee94900b0e8ec68d6 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 20 Mar 2025 15:19:35 +0800 Subject: [PATCH] up --- src/api/customer/index.js | 3 +- src/views/customer/components/addMessage.vue | 18 ++- src/views/customer/email.vue | 4 +- src/views/customer/index.vue | 106 +++++++++++++++-- src/views/customer/message.vue | 117 +++++++++++++++---- src/views/customer/visit.vue | 79 +++++++++++-- src/views/product/index.vue | 85 +++++++++++++- 7 files changed, 363 insertions(+), 49 deletions(-) diff --git a/src/api/customer/index.js b/src/api/customer/index.js index 4aebd9b..a884be3 100644 --- a/src/api/customer/index.js +++ b/src/api/customer/index.js @@ -59,7 +59,8 @@ export function visitLog(params) { return request({ method: "get", url: "/api/admin/visit-log/index", - params + params, + paramsSerializer: customParamsSerializer, }) } diff --git a/src/views/customer/components/addMessage.vue b/src/views/customer/components/addMessage.vue index 8017d74..8329c13 100644 --- a/src/views/customer/components/addMessage.vue +++ b/src/views/customer/components/addMessage.vue @@ -102,7 +102,7 @@ } from "@/api/customer/message.js" import { index as getProduct - } from "@/api/product/index.js" + } from "@/api/product/category.js" import customerMixin from "@/mixin/customer.js" export default { mixins:[customerMixin], @@ -112,11 +112,14 @@ id: '', type: 'add', typeList: [{ - id: 0, - value: 'Contact Us' - }, { id: 1, + value: 'Question' + }, { + id: 2, value: 'Request Free Sample' + }, { + id: 3, + value: 'Contact Us' }], productList:[], form: { @@ -148,6 +151,8 @@ methods: { async getProductList() { const res = await getProduct({ + type:2, + // is_recommend:1, page_size: 9999, page: 1 }) @@ -195,10 +200,11 @@ product_id: '', full_name: '', email: '', - region: '', + region: '', + organization: '', question: '', additional: '', - organization: '', + product_name: '', } this.$refs['dialog'].reset() diff --git a/src/views/customer/email.vue b/src/views/customer/email.vue index d325151..a2780cd 100644 --- a/src/views/customer/email.vue +++ b/src/views/customer/email.vue @@ -9,12 +9,12 @@ -