排位赛内容完善

This commit is contained in:
kron
2025-06-09 12:24:01 +08:00
parent e49de0e288
commit 0420f770c3
8 changed files with 71 additions and 35 deletions

View File

@@ -31,6 +31,10 @@ onLoad(async (options) => {
totalPoints.value = result.redTotal;
ifWin.value = result.winner === 1;
}
if (result.mode === 2) {
const mine = result.players.find((p) => p.playerId === user.value.id);
if (mine) totalPoints.value = mine.totalScore;
}
});
function exit() {
uni.navigateBack();
@@ -151,7 +155,6 @@ onMounted(async () => {});
flex-direction: column;
align-items: center;
justify-content: center;
/* z-index: -1; */
}
.tag {
position: absolute;
@@ -253,7 +256,7 @@ onMounted(async () => {});
margin: 0 20px;
}
.players {
color: #fff3;
color: #fff6;
display: flex;
flex-direction: column;
align-items: center;
@@ -284,9 +287,9 @@ onMounted(async () => {});
width: 100%;
top: 0;
left: 0;
z-index: -1;
}
.player-crown {
position: relative;
width: 27px;
margin: 0 15px;
}
@@ -299,8 +302,10 @@ onMounted(async () => {});
margin: 0 15px;
color: #fff;
background-color: #676767;
position: relative;
}
.player-title {
position: relative;
display: flex;
flex-direction: column;
margin-left: 15px;