From 380e4e3c1d47a69d45a70cca43672d2375d1bb20 Mon Sep 17 00:00:00 2001 From: PQZ Date: Sat, 21 Sep 2024 13:59:25 +0800 Subject: [PATCH] 1 --- src/api/member/active/index.js | 115 +++---- src/views/base/customer/CustomerMember.vue | 300 ++++++++++++------ src/views/base/customer/ReceiveCouponForm.vue | 222 +++++++++++++ src/views/base/customer/RuchForm.vue | 167 ++++++++++ 4 files changed, 649 insertions(+), 155 deletions(-) create mode 100644 src/views/base/customer/ReceiveCouponForm.vue create mode 100644 src/views/base/customer/RuchForm.vue diff --git a/src/api/member/active/index.js b/src/api/member/active/index.js index cfaba57..120cc8d 100644 --- a/src/api/member/active/index.js +++ b/src/api/member/active/index.js @@ -1,53 +1,62 @@ -import request from '@/utils/request' - -// 创建营销活动 -export function createActiveMain(data) { - return request({ - url: '/member/active-main/create', - method: 'post', - data: data - }) -} - -// 更新营销活动 -export function updateActiveMain(data) { - return request({ - url: '/member/active-main/update', - method: 'put', - data: data - }) -} - -// 删除营销活动 -export function deleteActiveMain(id) { - return request({ - url: '/member/active-main/delete?id=' + id, - method: 'delete' - }) -} - -// 获得营销活动 -export function getActiveMain(id) { - return request({ - url: '/member/active-main/get?id=' + id, - method: 'get' - }) -} - -// 获得营销活动分页 -export function getActiveMainPage(params) { - return request({ - url: '/member/active-main/page', - method: 'get', - params - }) -} -// 导出营销活动 Excel -export function exportActiveMainExcel(params) { - return request({ - url: '/member/active-main/export-excel', - method: 'get', - params, - responseType: 'blob' - }) -} \ No newline at end of file +import request from '@/utils/request' + +// 创建营销活动 +export function createActiveMain(data) { + return request({ + url: '/member/active-main/create', + method: 'post', + data: data + }) +} + +// 参加营销活动 +export function attendActive(data) { + return request({ + url: '/base/customer-active/attendActive', + method: 'post', + data: data + }) +} + +// 更新营销活动 +export function updateActiveMain(data) { + return request({ + url: '/member/active-main/update', + method: 'put', + data: data + }) +} + +// 删除营销活动 +export function deleteActiveMain(id) { + return request({ + url: '/member/active-main/delete?id=' + id, + method: 'delete' + }) +} + +// 获得营销活动 +export function getActiveMain(id) { + return request({ + url: '/member/active-main/get?id=' + id, + method: 'get' + }) +} + +// 获得营销活动分页 +export function getActiveMainPage(params) { + return request({ + url: '/member/active-main/page', + method: 'get', + params + }) +} +// 导出营销活动 Excel +export function exportActiveMainExcel(params) { + return request({ + url: '/member/active-main/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} diff --git a/src/views/base/customer/CustomerMember.vue b/src/views/base/customer/CustomerMember.vue index 8f9da1f..7b5648b 100644 --- a/src/views/base/customer/CustomerMember.vue +++ b/src/views/base/customer/CustomerMember.vue @@ -1,119 +1,172 @@ @@ -145,8 +198,11 @@ diff --git a/src/views/base/customer/ReceiveCouponForm.vue b/src/views/base/customer/ReceiveCouponForm.vue new file mode 100644 index 0000000..c7a6041 --- /dev/null +++ b/src/views/base/customer/ReceiveCouponForm.vue @@ -0,0 +1,222 @@ + + + diff --git a/src/views/base/customer/RuchForm.vue b/src/views/base/customer/RuchForm.vue new file mode 100644 index 0000000..ab62290 --- /dev/null +++ b/src/views/base/customer/RuchForm.vue @@ -0,0 +1,167 @@ + + +