From 3aced9cae5af40f71b8074703e3ad7b38aeae123 Mon Sep 17 00:00:00 2001 From: tsui110 Date: Sun, 4 Jan 2026 13:52:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=89=AB?= =?UTF-8?q?=E9=9B=B7=E5=BC=BA=E5=88=B6=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages-game/game/minesweeper/play.scss | 23 +++++++++++++++++++++++ pages-game/game/minesweeper/play.vue | 8 ++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/pages-game/game/minesweeper/play.scss b/pages-game/game/minesweeper/play.scss index f4c18c1..fa239e3 100644 --- a/pages-game/game/minesweeper/play.scss +++ b/pages-game/game/minesweeper/play.scss @@ -1296,6 +1296,29 @@ align-items: center; gap: $spacing-lg; animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); + position: relative; +} + +.modal-close-btn { + position: absolute; + top: $spacing-md; + right: $spacing-md; + width: 64rpx; + height: 64rpx; + display: flex; + justify-content: center; + align-items: center; + font-size: $font-lg; + color: $text-dark-sub; + background: rgba(255, 255, 255, 0.08); + border-radius: 50%; + cursor: pointer; + transition: all 0.2s; + + &:active { + background: rgba(255, 255, 255, 0.15); + transform: scale(0.95); + } } @keyframes zoomIn { diff --git a/pages-game/game/minesweeper/play.vue b/pages-game/game/minesweeper/play.vue index 7400a31..97cc539 100644 --- a/pages-game/game/minesweeper/play.vue +++ b/pages-game/game/minesweeper/play.vue @@ -239,8 +239,9 @@ - - + + + {{ getGameResultEmoji() }} {{ getGameResultTitle() }} @@ -851,6 +852,9 @@ export default { uni.removeStorageSync('minesweeper_last_match_id'); uni.navigateBack(); }, + closeResultModal() { + this.showResultModal = false; + }, resetTurnTimer() { this.turnTimer = 15; clearInterval(this.turnInterval); From 874092a0d239962de47a0427346c91e5f2b1fe8b Mon Sep 17 00:00:00 2001 From: tsui110 Date: Sun, 4 Jan 2026 14:06:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20=E6=89=AB=E9=9B=B7=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E5=A4=B4=E5=83=8F=E5=8D=A0=E6=AF=94=E7=BC=A9?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages-game/game/minesweeper/play.scss | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/pages-game/game/minesweeper/play.scss b/pages-game/game/minesweeper/play.scss index fa239e3..16cf127 100644 --- a/pages-game/game/minesweeper/play.scss +++ b/pages-game/game/minesweeper/play.scss @@ -760,18 +760,28 @@ &.me { background: rgba($brand-primary, 0.1); border-color: rgba($brand-primary, 0.3); - min-width: 280rpx; + min-width: 220rpx; height: 140rpx; - padding: $spacing-md; + padding: $spacing-sm $spacing-md; .avatar { - width: 80rpx; - height: 80rpx; - font-size: 44rpx; + width: 64rpx; + height: 64rpx; + font-size: 36rpx; } .username { - font-size: $font-sm; + font-size: $font-xs; + } + + .player-info { + gap: 4rpx; + } + + .hp-bar { + .heart { + font-size: 20rpx; + } } }