diff --git a/src/api/cai/prizeInfo.js b/src/api/cai/prizeInfo.js new file mode 100644 index 0000000..86d0d2a --- /dev/null +++ b/src/api/cai/prizeInfo.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询抽奖奖品列表 +export function listPrizeInfo(query) { + return request({ + url: '/cai/prizeInfo/list', + method: 'get', + params: query + }) +} + +// 查询抽奖奖品详细 +export function getPrizeInfo(id) { + return request({ + url: '/cai/prizeInfo/' + id, + method: 'get' + }) +} + +// 新增抽奖奖品 +export function addPrizeInfo(data) { + return request({ + url: '/cai/prizeInfo', + method: 'post', + data: data + }) +} + +// 修改抽奖奖品 +export function updatePrizeInfo(data) { + return request({ + url: '/cai/prizeInfo', + method: 'put', + data: data + }) +} + +// 删除抽奖奖品 +export function delPrizeInfo(id) { + return request({ + url: '/cai/prizeInfo/' + id, + method: 'delete' + }) +} diff --git a/src/api/cai/prizeOnline.js b/src/api/cai/prizeOnline.js new file mode 100644 index 0000000..d0cf92a --- /dev/null +++ b/src/api/cai/prizeOnline.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询已发布奖品列表 +export function listPrizeOnline(query) { + return request({ + url: '/cai/prizeOnline/list', + method: 'get', + params: query + }) +} + +// 查询已发布奖品详细 +export function getPrizeOnline(id) { + return request({ + url: '/cai/prizeOnline/' + id, + method: 'get' + }) +} + +// 新增已发布奖品 +export function addPrizeOnline(data) { + return request({ + url: '/cai/prizeOnline', + method: 'post', + data: data + }) +} + +// 修改已发布奖品 +export function updatePrizeOnline(data) { + return request({ + url: '/cai/prizeOnline', + method: 'put', + data: data + }) +} + +// 删除已发布奖品 +export function delPrizeOnline(id) { + return request({ + url: '/cai/prizeOnline/' + id, + method: 'delete' + }) +} diff --git a/src/constant/statusMap.js b/src/constant/statusMap.js index 66ae2bd..cfbd26a 100644 --- a/src/constant/statusMap.js +++ b/src/constant/statusMap.js @@ -351,3 +351,15 @@ export const pointChangeLogActionTypeList = [ { value: "3", label: '分销',listClass: listClass.primary}, { value: "4", label: '抽奖',listClass: listClass.primary}, ] + +// 奖品类型 1-谢谢惠顾 2-普通奖 3-大奖 +export const prizeTypeList = [ + { value: 1, label: '谢谢惠顾', listClass: listClass.warning }, + { value: 2, label: '普通奖', listClass: listClass.primary }, + { value: 3, label: '大奖', listClass: listClass.danger } +] + +export const prizeAutoGiveList = [ + { value: false, label: '手工派发',listClass: listClass.warning}, + { value: true, label: '自动派发',listClass: listClass.primary}, +] diff --git a/src/views/cai/loginLog/index.vue b/src/views/cai/loginLog/index.vue index dee03a1..33d523d 100644 --- a/src/views/cai/loginLog/index.vue +++ b/src/views/cai/loginLog/index.vue @@ -3,14 +3,14 @@ - 搜索 + 搜索 重置 @@ -36,7 +36,7 @@ export default { // 按钮loading buttonLoading: false, // 遮罩层 - loading: true, + loading: false, // 选中数组 ids: [], // 非单个禁用 @@ -51,14 +51,11 @@ export default { open: false, // 查询参数 queryParams: { - pageNum: 1, - pageSize: 10, - mobile: undefined, + mobile: undefined }, }; }, created() { - this.getList(); }, methods: { /** 查询ip访问记录列表 */ diff --git a/src/views/cai/prizeInfo/index.vue b/src/views/cai/prizeInfo/index.vue new file mode 100644 index 0000000..8e282f6 --- /dev/null +++ b/src/views/cai/prizeInfo/index.vue @@ -0,0 +1,41 @@ + + + diff --git a/src/views/cai/prizeInfo/prize-info-add-update-dialog.vue b/src/views/cai/prizeInfo/prize-info-add-update-dialog.vue new file mode 100644 index 0000000..fe9cc43 --- /dev/null +++ b/src/views/cai/prizeInfo/prize-info-add-update-dialog.vue @@ -0,0 +1,156 @@ + + + diff --git a/src/views/cai/prizeInfo/prize-info-tab.vue b/src/views/cai/prizeInfo/prize-info-tab.vue new file mode 100644 index 0000000..28254f2 --- /dev/null +++ b/src/views/cai/prizeInfo/prize-info-tab.vue @@ -0,0 +1,229 @@ + + + diff --git a/src/views/cai/prizeInfo/prize-online-man-tab.vue b/src/views/cai/prizeInfo/prize-online-man-tab.vue new file mode 100644 index 0000000..6790517 --- /dev/null +++ b/src/views/cai/prizeInfo/prize-online-man-tab.vue @@ -0,0 +1,164 @@ + + + diff --git a/src/views/cai/prizeInfo/prize-online-reset-dialog.vue b/src/views/cai/prizeInfo/prize-online-reset-dialog.vue new file mode 100644 index 0000000..1073762 --- /dev/null +++ b/src/views/cai/prizeInfo/prize-online-reset-dialog.vue @@ -0,0 +1,139 @@ + + + diff --git a/src/views/cai/prizeOnline/index.vue b/src/views/cai/prizeOnline/index.vue new file mode 100644 index 0000000..6890d3b --- /dev/null +++ b/src/views/cai/prizeOnline/index.vue @@ -0,0 +1,466 @@ + + +