From 9091c85195ddbe82929367bde090c156f94b416a Mon Sep 17 00:00:00 2001 From: kron Date: Mon, 7 Jul 2025 14:39:11 +0800 Subject: [PATCH] =?UTF-8?q?UI=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CreateRoom.vue | 17 ++++++++++++--- src/pages/battle-room.vue | 40 ++++++++++++++++++++++++++++++----- 2 files changed, 49 insertions(+), 8 deletions(-) diff --git a/src/components/CreateRoom.vue b/src/components/CreateRoom.vue index 9a7a8d4..2d12077 100644 --- a/src/components/CreateRoom.vue +++ b/src/components/CreateRoom.vue @@ -84,9 +84,11 @@ const setClipboardData = () => { 房间号: {{ roomNumber }} - 进入房间 + 复制房间信息邀请朋友进入 + 进入房间 30分钟无人进入则房间无效 - 复制房间信息邀请朋友进入 @@ -148,7 +150,7 @@ const setClipboardData = () => { margin-bottom: 20px; } .room-info > view:first-child > text:last-child { - color: #fed847; + /* color: #fed847; */ } .room-info > text { color: #888686; @@ -160,4 +162,13 @@ const setClipboardData = () => { margin: 20px 0; font-size: 14px; } +.copy-room-number { + width: calc(70vw - 20px); + color: #fed847; + border: 1px solid #fed847; + padding: 10px; + text-align: center; + border-radius: 10px; + margin-bottom: 20px; +} diff --git a/src/pages/battle-room.vue b/src/pages/battle-room.vue index c1443a9..3124ac6 100644 --- a/src/pages/battle-room.vue +++ b/src/pages/battle-room.vue @@ -295,6 +295,15 @@ const exitRoom = async () => { uni.navigateBack(); }; +const setClipboardData = () => { + uni.setClipboardData({ + data: roomNumber.value, + success() { + uni.showToast({ title: "复制成功" }); + }, + }); +}; + onMounted(() => { uni.$on("socket-inbox", onReceiveMessage); }); @@ -315,9 +324,13 @@ onUnmounted(() => { > - - 人都到齐了吗? - 天赋异禀的弓箭手们,比赛即将开始! + + + 弓箭手们,人都到齐了吗? + 1v1比赛即将开始! + 大乱斗即将开始! + + 邀请好友 @@ -412,7 +425,11 @@ onUnmounted(() => { /> - + { } .team-mode { width: calc(100vw - 30px); - height: 107vw; + height: 125vw; margin: 15px; } .team-mode > image:first-child { @@ -547,4 +564,17 @@ onUnmounted(() => { align-items: center; justify-content: center; } +.battle-guide { + display: flex; + align-items: center; + justify-content: space-between; +} +.battle-guide > view:last-child { + color: #fed847; + border: 1px solid #fed847; + margin-right: 10px; + padding: 5px 12px; + border-radius: 20px; + position: relative; +}