UI调整
This commit is contained in:
@@ -462,7 +462,7 @@ async function onReceiveMessage(messages = []) {
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.MatchOver) {
|
||||
uni.setStorageSync("last-battle", msg.endStatus);
|
||||
if (msg.endStatus.nosaved) {
|
||||
if (msg.endStatus.noSaved) {
|
||||
uni.showToast({
|
||||
title: "游戏结束",
|
||||
icon: "none",
|
||||
|
||||
@@ -72,6 +72,8 @@ function recoverData(battleInfo) {
|
||||
start.value = true;
|
||||
}
|
||||
if (battleInfo.status === 2) {
|
||||
const elapsedTime = (Date.now() - Date.parse(battleInfo.createdAt)) / 1000;
|
||||
console.log("elapsedTime:", elapsedTime);
|
||||
startCount.value = true;
|
||||
// 这里的开始时间不是游戏开始时间,而是上半场或者下半场或者中场的开始时间,还要根据状态来判断
|
||||
tips.value = battleInfo.halfGame
|
||||
|
||||
Reference in New Issue
Block a user