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