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%); } +