修改回合得分显示
This commit is contained in:
@@ -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
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user