From 4f54e460bb61a7ed88b7e6c74cda68e66293e788 Mon Sep 17 00:00:00 2001 From: 170-carry Date: Mon, 27 Apr 2026 12:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A4=BC=E7=89=A9=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/src/views/operate/game-config.vue | 340 +++++++++++++++++-------- 1 file changed, 232 insertions(+), 108 deletions(-) diff --git a/apps/src/views/operate/game-config.vue b/apps/src/views/operate/game-config.vue index 3630e57..a91a1f7 100644 --- a/apps/src/views/operate/game-config.vue +++ b/apps/src/views/operate/game-config.vue @@ -458,19 +458,27 @@ void loadData(true); -
- -
- - + +
+
封面资源
+
+
+ +
暂无封面
+
+
+ + 支持图片格式,保存后会同步到游戏列表封面。 +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ +
+
基础信息
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
展示配置
+
+ + + + + + + + + + + + + + + +
@@ -605,6 +629,85 @@ void loadData(true); gap: 12px; } +.game-edit-form { + max-height: 68vh; + overflow-y: auto; + padding-right: 4px; +} + +.form-section { + background: rgb(248 250 252); + border: 1px solid rgb(226 232 240); + border-radius: 12px; + margin-bottom: 16px; + padding: 16px 16px 4px; +} + +.form-section-hero { + padding-bottom: 16px; +} + +.section-title { + color: rgb(15 23 42); + font-size: 14px; + font-weight: 600; + margin-bottom: 14px; +} + +.form-grid { + display: grid; + gap: 0 16px; + grid-template-columns: repeat(3, minmax(0, 1fr)); +} + +.form-item-wide { + grid-column: span 2; +} + +.cover-editor { + align-items: center; + display: flex; + gap: 20px; +} + +.cover-preview { + align-items: center; + background: #fff; + border: 1px dashed rgb(203 213 225); + border-radius: 12px; + display: flex; + height: 112px; + justify-content: center; + overflow: hidden; + width: 112px; +} + +.modal-cover { + height: 112px; + object-fit: cover; + width: 112px; +} + +.cover-placeholder { + color: rgb(148 163 184); + font-size: 13px; +} + +.cover-actions { + display: flex; + flex-direction: column; + gap: 8px; +} + +.cover-tip { + color: rgb(100 116 139); + font-size: 13px; +} + +.hidden-input { + display: none; +} + .pager { display: flex; justify-content: flex-end; @@ -615,4 +718,25 @@ void loadData(true); color: rgb(100 116 139); line-height: 32px; } + +@media (max-width: 900px) { + .form-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (max-width: 640px) { + .form-grid { + grid-template-columns: 1fr; + } + + .form-item-wide { + grid-column: auto; + } + + .cover-editor { + align-items: flex-start; + flex-direction: column; + } +}