修改回合得分显示

This commit is contained in:
kron
2025-07-02 15:57:58 +08:00
parent d2aa87e91c
commit 997e2ee756
7 changed files with 179 additions and 54 deletions

View File

@@ -8,7 +8,7 @@ import useStore from "@/store";
import { storeToRefs } from "pinia";
const store = useStore();
const { user } = storeToRefs(store);
const { updateUser } = store;
const { updateUser, getLvlName } = store;
const battleId = ref("");
const ifWin = ref(false);
@@ -133,7 +133,7 @@ const checkBowData = () => {
/>
<view class="player-title">
<text>{{ player.name }}</text>
<text>钻石三级</text>
<text>{{ getLvlName(player.totalScore) }}</text>
</view>
<text
><text :style="{ color: '#fff' }">{{ player.totalRings }}</text>
@@ -152,7 +152,9 @@ const checkBowData = () => {
>积分 {{ totalPoints > 0 ? "+" + totalPoints : totalPoints }}</text
>
</view>
<text v-if="data.mode === 1" class="description">你是朋友中的佼佼者哦</text>
<text v-if="data.mode === 1" class="description">{{
ifWin ? "你已经奔跑在通向王者的路上了" : "失败是成功之母儿子在等你"
}}</text>
<text v-if="data.mode === 2" class="description"
>好成绩全国排位赛等着你</text
>