diff --git a/fuintAdmin/src/api/EventMarketing/cardExchange.js b/fuintAdmin/src/api/EventMarketing/cardExchange.js new file mode 100644 index 000000000..37cbfa48c --- /dev/null +++ b/fuintAdmin/src/api/EventMarketing/cardExchange.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询兑换券列表 +export function listExchange(query) { + return request({ + url: '/system/exchange/list', + method: 'get', + params: query + }) +} + +// 查询兑换券详细 +export function getExchange(id) { + return request({ + url: '/system/exchange/' + id, + method: 'get' + }) +} + +// 新增兑换券 +export function addExchange(data) { + return request({ + url: '/system/exchange', + method: 'post', + data: data + }) +} + +// 修改兑换券 +export function updateExchange(data) { + return request({ + url: '/system/exchange', + method: 'put', + data: data + }) +} + +// 删除兑换券 +export function delExchange(id) { + return request({ + url: '/system/exchange/' + id, + method: 'delete' + }) +} diff --git a/fuintAdmin/src/api/EventMarketing/cardExchangeRecord.js b/fuintAdmin/src/api/EventMarketing/cardExchangeRecord.js new file mode 100644 index 000000000..a8c78f376 --- /dev/null +++ b/fuintAdmin/src/api/EventMarketing/cardExchangeRecord.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询兑换券领取记录列表 +export function listRecord(query) { + return request({ + url: '/system/record/list', + method: 'get', + params: query + }) +} + +// 查询兑换券领取记录详细 +export function getRecord(id) { + return request({ + url: '/system/record/' + id, + method: 'get' + }) +} + +// 新增兑换券领取记录 +export function addRecord(data) { + return request({ + url: '/system/record', + method: 'post', + data: data + }) +} + +// 修改兑换券领取记录 +export function updateRecord(data) { + return request({ + url: '/system/record', + method: 'put', + data: data + }) +} + +// 删除兑换券领取记录 +export function delRecord(id) { + return request({ + url: '/system/record/' + id, + method: 'delete' + }) +} diff --git a/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue b/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue new file mode 100644 index 000000000..a13824680 --- /dev/null +++ b/fuintAdmin/src/views/EventMarketing/cardExchange/index.vue @@ -0,0 +1,390 @@ + + + diff --git a/fuintAdmin/src/views/EventMarketing/cardExchangeRecord/index.vue b/fuintAdmin/src/views/EventMarketing/cardExchangeRecord/index.vue new file mode 100644 index 000000000..c06007bdb --- /dev/null +++ b/fuintAdmin/src/views/EventMarketing/cardExchangeRecord/index.vue @@ -0,0 +1,484 @@ + + +