diff --git a/src/api/shop.ts b/src/api/shop.ts index 2a49c03..fb693c3 100644 --- a/src/api/shop.ts +++ b/src/api/shop.ts @@ -75,3 +75,23 @@ export const updateShopPublish = (data: any) => method: 'post', data }) +/** + * 获取游戏主题配置 + * @param data + */ +export const getGameTheme = (data: any) => + request({ + url: '/api/shop/gametheme', + method: 'post', + data + }) +/** + * 保存游戏主题配置 + * @param data + */ +export const saveGameTheme = (data: any) => + request({ + url: '/api/shop/gametheme/save', + method: 'post', + data + }) diff --git a/src/router/modules/shop.ts b/src/router/modules/shop.ts index f93ffe0..7534ec6 100644 --- a/src/router/modules/shop.ts +++ b/src/router/modules/shop.ts @@ -106,13 +106,14 @@ const shopRoutes: RouteConfig = { } }, { - path: 'theme_edit', - component: () => import('@/views/error-page/401.vue'), + path: 'theme_edit/:shop/:game/:version', + component: () => import('@/views/game/game_theme.vue'), name: 'ThereEditor', meta: { title: 'edit_theme', permissions: ['shop:game_setting'], - icon: 'theme2' + icon: 'theme2', + hidden: true } } ] diff --git a/src/views/game/game_setting.vue b/src/views/game/game_setting.vue index 8cdf50b..f6ba10e 100644 --- a/src/views/game/game_setting.vue +++ b/src/views/game/game_setting.vue @@ -50,7 +50,18 @@
- {{vdata.name}} +
+ {{vdata.name}} + + + 自定义 + + +
+
+ + + + + + + + + + + + + + + + + + 保存 + + + 取消 + + + +
+ + + + +