细节优化

This commit is contained in:
kron
2025-07-14 13:39:10 +08:00
parent d73d52f752
commit cde905c680
15 changed files with 106 additions and 90 deletions

View File

@@ -551,7 +551,11 @@ onUnmounted(() => {
:round="currentRound - 1"
:bluePoint="currentBluePoint"
:redPoint="currentRedPoint"
:roundData="roundResults[roundResults.length - 1]"
:roundData="
roundResults[roundResults.length - 2]
? roundResults[roundResults.length - 2]
: []
"
:onAutoClose="() => (showRoundTip = false)"
/>
</ScreenHint>

View File

@@ -77,10 +77,7 @@ const onCreateRoom = async () => {
<view class="create-room">
<image src="../static/battle-bg.png" mode="widthFix" />
<view>
<image
src="https://api.shelingxingqiu.com/attachment/2025-07-12/db9x4i9g536xerkv9i.png"
mode="widthFix"
/>
<image :src="user.avatar" mode="widthFix" />
<image src="../static/versus.png" mode="widthFix" />
<view>
<image src="../static/question-mark.png" mode="widthFix" />
@@ -151,6 +148,7 @@ const onCreateRoom = async () => {
.create-room > image:first-of-type {
position: absolute;
width: 100%;
border-radius: 50%;
}
.create-room > view {
margin: 0 30px;

View File

@@ -31,7 +31,7 @@ onLoad(async (options) => {
</script>
<template>
<Container title="5人大乱斗 - 靶纸">
<Container title="靶纸">
<view class="container">
<view class="players" v-if="data.players">
<view

View File

@@ -21,7 +21,7 @@ onLoad(async (options) => {
</script>
<template>
<Container title="个人练习 - 靶纸">
<Container title="靶纸">
<view class="container">
<!-- <view class="header">
<view>

View File

@@ -85,7 +85,7 @@ const onClickTab = (index) => {
</script>
<template>
<Container title="1v1排位赛 - 靶纸">
<Container title="靶纸">
<view class="container">
<view>
<view

View File

@@ -124,6 +124,7 @@ async function onReceiveMessage(messages = []) {
battleId.value = msg.id;
redTeam.value = msg.groupUserStatus.redTeam;
blueTeam.value = msg.groupUserStatus.blueTeam;
uni.$hideHint();
};
}
if (msg.id !== battleId.value) return;