Commit 02b57a26 authored by 陈冲's avatar 陈冲

fix: 修复最终排名以实时为准,网络卡顿时会给toast提示

parent 49594881
......@@ -93,7 +93,9 @@ function startGameCountdown(seconds = 60) {
gameCountdownTimer = undefined
setDivDescVisible(false)
submitScore(true)
showScoreView()
if (!userTop10RankStatus.value) {
$toast('成绩提交中,请稍候...', 2000)
}
return
}
......@@ -222,6 +224,7 @@ if (wechat) {
if (Number.isFinite(nextRank) && nextRank > 0) {
rank.value = nextRank
}
showScoreView()
}
return { code: 'JGQF', score: tick.value, rank_no: rank.value }
},
......
......@@ -125,7 +125,7 @@ function startGameCountdown(seconds = 60) {
$toast('一人只能上榜领奖一次,您的福利已到手,把机会留给其他玩家吧', 30000)
//这里还要再发
} else {
showGameOverRank()
$toast('成绩提交中,请稍候...', 2000)
}
return
}
......@@ -242,6 +242,9 @@ if (wechat) {
if (Number.isFinite(nextRank) && nextRank > 0) {
rank.value = nextRank
}
if (!userTop10RankStatus.value) {
showGameOverRank()
}
}
return { code: 'JBJF', score: score.value, rank_no: rank.value }
},
......
......@@ -142,7 +142,7 @@ function startGameCountdown(seconds = 60) {
showGameRank.value = false;
$toast('一人只能上榜领奖一次,您的福利已到手,把机会留给其他玩家吧', 30000)
} else {
showGameOverRank()
$toast('成绩提交中,请稍候...', 2000)
}
return
}
......@@ -270,6 +270,9 @@ if (wechat) {
if (Number.isFinite(nextRank) && nextRank > 0) {
rank.value = nextRank
}
if (!userTop10RankStatus.value) {
showGameOverRank()
}
}
return { code: 'MSYF', score: score.value , rank_no: rank.value}
},
......
......@@ -123,8 +123,7 @@ function startGameCountdown(seconds = 60) {
// showGameRank.value = false;
$toast('一人只能上榜领奖一次,您的福利已到手,把机会留给其他玩家吧', 30000)
} else {
showScoreView();
$toast('成绩提交中,请稍候...', 2000)
}
return;
}
......@@ -251,6 +250,9 @@ if (wechat || isLocalMode) {
if (Number.isFinite(nextRank) && nextRank > 0) {
rank.value = nextRank;
}
if (is_save && !userTop10RankStatus.value) {
showScoreView();
}
return { code: "CMYF", score: tick.value, rank_no: rank.value };
},
onRescoreSubmitted: (_recount) => {
......
......@@ -168,8 +168,8 @@ function startGameCountdown(seconds = 60) {
userJoinStatus.value = false;
// showGameRank.value = false;
$toast('一人只能上榜领奖一次,您的福利已到手,把机会留给其他玩家吧', 30000)
} else {
showGameOverRank()
} else {
$toast('成绩提交中,请稍候...', 2000)
}
return
}
......@@ -300,6 +300,9 @@ if (wechat) {
if (Number.isFinite(nextRank) && nextRank > 0) {
rank.value = nextRank
}
if (!userTop10RankStatus.value) {
showGameOverRank()
}
}
return { code: 'QCNF', score: tick.value, rank_no: rank.value }
},
......
......@@ -131,7 +131,7 @@ function startGameCountdown(seconds = 60) {
showGameRank.value = false;
$toast('一人只能上榜领奖一次,您的福利已到手,把机会留给其他玩家吧', 30000)
} else {
showGameOverRank()
$toast('成绩提交中,请稍候...', 2000)
}
return
}
......@@ -248,6 +248,9 @@ if (wechat) {
if (Number.isFinite(nextRank) && nextRank > 0) {
rank.value = nextRank
}
if (!userTop10RankStatus.value) {
showGameOverRank()
}
}
return { code: 'FYDT', score: score.value, rank_no: rank.value }
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment