diff --git a/src/api/common/gift.js b/src/api/common/gift.js new file mode 100644 index 0000000..3215b8b --- /dev/null +++ b/src/api/common/gift.js @@ -0,0 +1,9 @@ +import request from '@/utils/request'; + +export const getGiftList = query => { + return request({ + url: '/admin/gift/getAll', + method: 'get', + params: query + }); +}; \ No newline at end of file diff --git a/src/api/lucky/luckyGiftRangeConfig.js b/src/api/lucky/luckyGiftRangeConfig.js new file mode 100644 index 0000000..f91ad1c --- /dev/null +++ b/src/api/lucky/luckyGiftRangeConfig.js @@ -0,0 +1,80 @@ +import request from '@/utils/request'; +import { genQueryParam } from '@/utils/maintainer'; + +export const getLuckyGiftRangeConfigList = query => { + return request({ + url: '/admin/luckyGiftRangeConfig/list', + method: 'get', + params: query + }); +}; + +export const saveLuckyGiftRangeConfig = data => { + return request({ + url: '/admin/luckyGiftRangeConfig/save', + method: 'post', + data: data + }); +}; + +// 获取礼物 +export const getAll = query => { + return request({ + url: '/admin/gift/getAll', + method: 'get', + params: query + }); +}; +// 获取礼物区间 +export const luckyGiftRangeConfigList = query => { + return request({ + url: '/admin/luckyGiftRangeConfig/list', + method: 'get', + params: query + }); +}; +// 幸运礼物配置列表 +export const luckyGiftRewardList = query => { + return request({ + url: '/admin/luckyGiftReward/list', + method: 'get', + params: query + }); +}; +// 幸运礼物配置删除 +export const luckyGiftRewardDelete = query => { + return request({ + url: '/admin/luckyGiftReward/delete', + method: 'get', + params: query + }); +}; +// 幸运礼保存列表 +export const luckyGiftRewardSave = query => { + return request({ + url: '/admin/luckyGiftReward/save', + method: 'post', + params: query + }); +}; +// 幸运礼物明细 +export const getGiftSendPage = query => { + return request({ + url: '/admin/luckyGiftRewardRecord/getGiftSendPage', + method: 'get', + params: query + }); +}; +// 幸运礼物详情 +export const getRewardList = query => { + return request({ + url: '/admin/luckyGiftRewardRecord/getRewardList', + method: 'get', + params: query + }); +}; +// 幸运礼物详情导出 +export const luckyGiftRewardRecordExport = query => { + window.location.href = `/admin/luckyGiftRewardRecord/export?${genQueryParam(query)}`; + return; +}; diff --git a/src/views/lucky/LuckyGiftDetail.vue b/src/views/lucky/LuckyGiftDetail.vue new file mode 100644 index 0000000..a4c64b4 --- /dev/null +++ b/src/views/lucky/LuckyGiftDetail.vue @@ -0,0 +1,211 @@ + + + diff --git a/src/views/lucky/LuckyGiftRangeConfigView.vue b/src/views/lucky/LuckyGiftRangeConfigView.vue new file mode 100644 index 0000000..561a260 --- /dev/null +++ b/src/views/lucky/LuckyGiftRangeConfigView.vue @@ -0,0 +1,325 @@ + + + + + diff --git a/src/views/lucky/LuckyGiftRangeView.vue b/src/views/lucky/LuckyGiftRangeView.vue new file mode 100644 index 0000000..5798484 --- /dev/null +++ b/src/views/lucky/LuckyGiftRangeView.vue @@ -0,0 +1,514 @@ + + + diff --git a/tsconfig.json b/tsconfig.json index ce1a8eb..de13fd9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,28 +1,28 @@ -{ - "compilerOptions": { - "target": "esnext", - "module": "esnext", - "strict": false, - "esModuleInterop": true, - "allowJs": true, - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "jsx": "preserve", - "noEmit": true, - "noImplicitAny": false, - "strictNullChecks": true, - "inlineSourceMap": true, - "inlineSources": true, - "checkJs": true, - "outDir": "./dist", - "rootDir": "./src", - "outFiles": "./dist/bundle.js" - }, - "include": [ - "./src/**/*" - ], - "exclude": [ - "node_modules" - ] -} \ No newline at end of file +// { +// "compilerOptions": { +// "target": "esnext", +// "module": "esnext", +// "strict": false, +// "esModuleInterop": true, +// "allowJs": true, +// "moduleResolution": "node", +// "resolveJsonModule": true, +// "esModuleInterop": true, +// "jsx": "preserve", +// "noEmit": true, +// "noImplicitAny": false, +// "strictNullChecks": true, +// "inlineSourceMap": true, +// "inlineSources": true, +// "checkJs": true, +// "outDir": "./dist", +// "rootDir": "./src", +// "outFiles": "./dist/bundle.js" +// }, +// "include": [ +// "./src/**/*" +// ], +// "exclude": [ +// "node_modules" +// ] +// } \ No newline at end of file