From e9ae3c680cdb04c76830a3204a61fdcf495ef53a Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 24 May 2021 16:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BA=97=E9=93=BA=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E4=B8=BB=E9=A2=98=E7=9A=84=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shop.ts | 20 ++++ src/router/modules/shop.ts | 7 +- src/views/game/game_setting.vue | 17 ++- src/views/game/game_theme.vue | 203 ++++++++++++++++++++++++++++++++ 4 files changed, 243 insertions(+), 4 deletions(-) create mode 100644 src/views/game/game_theme.vue 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}} + + + 自定义 + + +
+
+ + + + + + + + + + + + + + + + + + 保存 + + + 取消 + + + +
+ + + + +