From 0a9f398ef42ed246b0e31220787533b4feb74356 Mon Sep 17 00:00:00 2001 From: kron Date: Fri, 6 Feb 2026 13:59:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A7=BB=E9=99=A4=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PlayerSeats.vue | 36 +++++++++++++++++++++--- src/pages/battle-room.vue | 49 ++++++++++++++++++++++++++++----- src/static/player-1.png | Bin 594 -> 0 bytes src/static/player-10.png | Bin 1211 -> 0 bytes src/static/player-2.png | Bin 869 -> 0 bytes src/static/player-3.png | Bin 723 -> 0 bytes src/static/player-4.png | Bin 815 -> 0 bytes src/static/player-5.png | Bin 704 -> 0 bytes src/static/player-6.png | Bin 895 -> 0 bytes src/static/player-7.png | Bin 641 -> 0 bytes src/static/player-8.png | Bin 915 -> 0 bytes src/static/player-9.png | Bin 893 -> 0 bytes 12 files changed, 74 insertions(+), 11 deletions(-) delete mode 100644 src/static/player-1.png delete mode 100644 src/static/player-10.png delete mode 100644 src/static/player-2.png delete mode 100644 src/static/player-3.png delete mode 100644 src/static/player-4.png delete mode 100644 src/static/player-5.png delete mode 100644 src/static/player-6.png delete mode 100644 src/static/player-7.png delete mode 100644 src/static/player-8.png delete mode 100644 src/static/player-9.png diff --git a/src/components/PlayerSeats.vue b/src/components/PlayerSeats.vue index 717c7c8..dd0424c 100644 --- a/src/components/PlayerSeats.vue +++ b/src/components/PlayerSeats.vue @@ -10,6 +10,10 @@ const props = defineProps({ type: Array, default: () => [], }, + removePlayer: { + type: Function, + default: () => {}, + }, }); const seats = new Array(props.total).fill(1); @@ -36,11 +40,19 @@ const seats = new Array(props.total).fill(1); }} 虚位以待 管理员 - + /> --> + @@ -106,11 +118,11 @@ const seats = new Array(props.total).fill(1); border-top-left-radius: 10px; border-bottom-right-radius: 10px; } -.player-bg { +/* .player-bg { position: absolute; width: 52px; right: 0; -} +} */ .player-unknow { width: 40px; height: 40px; @@ -125,4 +137,20 @@ const seats = new Array(props.total).fill(1); .player-unknow > image { width: 40%; } +.remove-player { + width: 48rpx; + height: 48rpx; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + position: absolute; + top: 10rpx; + right: 0; +} +.remove-player > image { + width: 100%; + height: 100%; + opacity: 0.6; +} diff --git a/src/pages/battle-room.vue b/src/pages/battle-room.vue index 817421f..e0ab0d5 100644 --- a/src/pages/battle-room.vue +++ b/src/pages/battle-room.vue @@ -177,6 +177,8 @@ const exitRoom = async () => { uni.navigateBack(); }; +const removePlayer = async (player) => {}; + onShareAppMessage(() => { return { title: "邀请您进入房间对战", @@ -250,7 +252,7 @@ onBeforeUnmount(() => { @@ -259,17 +261,19 @@ onBeforeUnmount(() => { opponent.ready ? "已准备" : "" }} {{ opponent.name }} + - { 管理员 + @@ -342,6 +355,11 @@ onBeforeUnmount(() => { + + 所有人准备后自动开始游戏。