diff --git a/.env.production b/.env.production index 6abd122..3360d1f 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://api.xxx' +VUE_APP_BASE_API = 'http://121.37.139.13:8080' diff --git a/public/favicon.ico b/public/favicon.ico index 95a0ea1..0952ca2 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/api/games.js b/src/api/games.js index fe8b415..1b87fe1 100644 --- a/src/api/games.js +++ b/src/api/games.js @@ -10,3 +10,31 @@ export function gamesUpdateApi(data) { data }) } + + +/** + * 抽奖记录 + * @param data + * @returns {AxiosPromise} + */ + +export function gamesListApi(params) { + return request({ + url: 'admin/game/prize/records', + method: 'GET', + params + }) +} +/** + * 茶树购买记录 + * @param data + * @returns {AxiosPromise} + */ + +export function gamesTreeListApi(params) { + return request({ + url: 'admin/game/tree/order', + method: 'GET', + params + }) +} diff --git a/src/router/index.js b/src/router/index.js index 05b0dfa..9d98bb0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -146,7 +146,7 @@ export const asyncRoutes = [ const createRouter = () => new Router({ // mode: 'history', // require service support - mode: 'history', + mode: 'hash', scrollBehavior: () => ({ y: 0 }), routes: constantRoutes }) diff --git a/src/router/modules/marketing.js b/src/router/modules/marketing.js index 51b409d..805a4ca 100644 --- a/src/router/modules/marketing.js +++ b/src/router/modules/marketing.js @@ -54,17 +54,18 @@ const marketingRouter = { }, { path: 'lottery', - component: () => import('@/views/marketing/lottery/config/index'), + component: () => import('@/views/marketing/lottery/index'), name: 'lottery', - meta: { title: '游戏管理', icon: '' }, + meta: { title: '茶株管理', icon: '' }, children: [ { - path: 'config', + path: 'lotteryConfig', component: () => import('@/views/marketing/lottery/config/index'), - name: 'config', + name: 'lotteryConfig', meta: { title: '茶株认领', icon: '' } }, + ] }, { @@ -79,6 +80,12 @@ const marketingRouter = { name: 'config', meta: { title: '抽奖配置', icon: '' } }, + { + path: 'rafflelog', + component: () => import('@/views/marketing/raffle/rafflelog/index'), + name: 'rafflelog', + meta: { title: '抽奖记录', icon: '' } + }, ] }, { @@ -198,12 +205,24 @@ const marketingRouter = { name: 'ActivityList', meta: { title: '活动管理', icon: '' } }, + { + path: 'activityLog', + component: () => import('@/views/marketing/activity/activityLog/index'), + name: 'activityLog', + meta: { title: '预约记录', icon: '' } + }, { path: 'venueReservation', component: () => import('@/views/marketing/activity/venueReservation/index'), name: 'VenueReservation', meta: { title: '场地预约', icon: '' } }, + { + path: 'lotteryLog', + component: () => import('@/views/marketing/activity/lotteryLog/index'), + name: 'lotteryLog', + meta: { title: '认领记录', icon: '' } + }, ] }, ] diff --git a/src/views/content/video/index.vue b/src/views/content/video/index.vue index 2cd63ed..5aba7e8 100644 --- a/src/views/content/video/index.vue +++ b/src/views/content/video/index.vue @@ -7,8 +7,6 @@ 查询 新增视频鉴赏 - 批量删除 - - - + + + + + - - + 确 定 - + + diff --git a/src/views/marketing/activity/lotteryLog/index.vue b/src/views/marketing/activity/lotteryLog/index.vue new file mode 100644 index 0000000..d90c58f --- /dev/null +++ b/src/views/marketing/activity/lotteryLog/index.vue @@ -0,0 +1,218 @@ + + + + + diff --git a/src/views/marketing/raffle/rafflelog/index.vue b/src/views/marketing/raffle/rafflelog/index.vue new file mode 100644 index 0000000..417660c --- /dev/null +++ b/src/views/marketing/raffle/rafflelog/index.vue @@ -0,0 +1,292 @@ + + + +