Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fc-minigame
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈冲
fc-minigame
Commits
02b57a26
Commit
02b57a26
authored
Jun 27, 2026
by
陈冲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复最终排名以实时为准,网络卡顿时会给toast提示
parent
49594881
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
8 deletions
+25
-8
Game.vue
frontend-h5/src/pages/game1/Game.vue
+4
-1
Game.vue
frontend-h5/src/pages/game2/Game.vue
+4
-1
Game3.vue
frontend-h5/src/pages/game3/Game3.vue
+4
-1
Game4.vue
frontend-h5/src/pages/game4/Game4.vue
+4
-2
Game5.vue
frontend-h5/src/pages/game5/Game5.vue
+5
-2
Game.vue
frontend-h5/src/pages/game6/Game.vue
+4
-1
No files found.
frontend-h5/src/pages/game1/Game.vue
View file @
02b57a26
...
...
@@ -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
}
},
...
...
frontend-h5/src/pages/game2/Game.vue
View file @
02b57a26
...
...
@@ -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
}
},
...
...
frontend-h5/src/pages/game3/Game3.vue
View file @
02b57a26
...
...
@@ -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
}
},
...
...
frontend-h5/src/pages/game4/Game4.vue
View file @
02b57a26
...
...
@@ -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
)
=>
{
...
...
frontend-h5/src/pages/game5/Game5.vue
View file @
02b57a26
...
...
@@ -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
}
},
...
...
frontend-h5/src/pages/game6/Game.vue
View file @
02b57a26
...
...
@@ -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
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment