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 @@ -