From aeb2982e479cd36ec208ed093e23bdb4f01d06ba Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 22 Apr 2021 18:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BA=97=E9=93=BA=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=B8=B8=E6=88=8F=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/game.ts | 7 +- src/api/shop.ts | 16 +++ src/views/game/game_edit.vue | 1 + src/views/game/game_setting.vue | 201 ++++++++++++++++++++++++++++++-- 4 files changed, 214 insertions(+), 11 deletions(-) diff --git a/src/api/game.ts b/src/api/game.ts index 82c66d6..a336b1d 100644 --- a/src/api/game.ts +++ b/src/api/game.ts @@ -1,16 +1,19 @@ import request from '@/utils/request' export interface IGameVersion { + _id?: string type: number, name: string, url?: string, appid?: string, - image?: string + image?: string, + selected?: boolean } export interface IGameData { _id?: string, name: string, createdAt?: Date, - versions: IGameVersion[] + versions: IGameVersion[], + selected?: boolean } export const defaultGameVersionData: IGameVersion = { diff --git a/src/api/shop.ts b/src/api/shop.ts index 3167c71..bb9535b 100644 --- a/src/api/shop.ts +++ b/src/api/shop.ts @@ -35,3 +35,19 @@ export const deleteShop = (id: string) => method: 'post' }) +export const saveShopGameInfo = (data: any) => + request({ + url: `/shop/gameinfo/save`, + method: 'post', + data + }) + + +export const getShopGameInfo = (data: any) => + request({ + url: `/shop/gameinfo`, + method: 'post', + data + }) + + diff --git a/src/views/game/game_edit.vue b/src/views/game/game_edit.vue index a322585..e0b33e5 100644 --- a/src/views/game/game_edit.vue +++ b/src/views/game/game_edit.vue @@ -311,5 +311,6 @@ export default class extends Vue { margin-bottom: 24px; margin-left: 60px; margin-right: 60px; + box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%); } diff --git a/src/views/game/game_setting.vue b/src/views/game/game_setting.vue index 38c491d..0d38a73 100644 --- a/src/views/game/game_setting.vue +++ b/src/views/game/game_setting.vue @@ -1,15 +1,61 @@ @@ -39,9 +215,13 @@ export default class extends Vue { margin-top: 13px; line-height: 12px; display: flex; - justify-content: flex-end; + justify-content: space-between; align-items: center; } +.bottom span{ + font-size: 13px; + color: #999; +} .button { padding: 0; @@ -58,5 +238,8 @@ export default class extends Vue { border-radius: 3px; transition: .2s; padding: 24px; + margin-bottom: 24px; + box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%); } +