字段完善

This commit is contained in:
kron
2025-06-18 13:58:44 +08:00
parent 256efcb04b
commit 38301f2f68
2 changed files with 3 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ export const getGameAPI = async (battleId) => {
const { battleStats = {}, playerStats = {} } = result;
const data = {
mode: battleStats.mode,
gameMode: battleStats.gameMode,
};
if (battleStats.mode === 1) {
data.winner = battleStats.winner;

View File

@@ -125,7 +125,8 @@ onMounted(async () => {
</block>
<view class="battle-e">
<image src="../static/row-yellow-bg.png" mode="widthFix" />
<text>经验 +{{ totalPoints }}</text>
<text v-if="data.gameMode === 1">经验 +{{ totalPoints }}</text>
<text v-if="data.gameMode === 2">积分 +{{ totalPoints }}</text>
</view>
<text v-if="data.mode === 1" class="description">你是朋友中的佼佼者哦</text>
<text v-if="data.mode === 2" class="description"