fix:优化决金箭的数量展示
This commit is contained in:
@@ -160,6 +160,10 @@ function onBattleEnd() {
|
|||||||
function onNewRound(msg, prevRound) {
|
function onNewRound(msg, prevRound) {
|
||||||
showRoundTip.value = true;
|
showRoundTip.value = true;
|
||||||
isFinalShoot.value = msg.current.goldRound;
|
isFinalShoot.value = msg.current.goldRound;
|
||||||
|
// 决金箭轮每人只射一箭,重置箭数显示为 (0/1)
|
||||||
|
if (msg.current.goldRound) {
|
||||||
|
uni.$emit("update-shot", { currentShot: 0, totalShot: 1 });
|
||||||
|
}
|
||||||
// 用传入的 prevRound(捕获时刻的旧轮次)展示结算 Tip,与进度条 currentRound 解耦
|
// 用传入的 prevRound(捕获时刻的旧轮次)展示结算 Tip,与进度条 currentRound 解耦
|
||||||
roundTipRound.value = prevRound;
|
roundTipRound.value = prevRound;
|
||||||
const latestRound = msg.rounds[prevRound - 1];
|
const latestRound = msg.rounds[prevRound - 1];
|
||||||
|
|||||||
Reference in New Issue
Block a user