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
e223f4d5
Commit
e223f4d5
authored
Jun 06, 2026
by
董政锦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复 game5 跑道和倒计时蒙层在375px宽度问题;
parent
43ac0066
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
35 deletions
+12
-35
Game4.vue
frontend-h5/src/pages/game4/Game4.vue
+6
-5
Game5.vue
frontend-h5/src/pages/game5/Game5.vue
+6
-30
PlayingView.vue
frontend-h5/src/pages/game5/views/PlayingView.vue
+0
-0
No files found.
frontend-h5/src/pages/game4/Game4.vue
View file @
e223f4d5
...
...
@@ -232,11 +232,12 @@ onBeforeUnmount(() => {
<div
class=
"rule-title"
>
游戏规则
</div>
<div
class=
"rule-txt"
>
<!-- 微信用户通过扫描大屏幕二维码参与,可容纳多人同时进行,摇晃手机控制赛马奔跑,摇晃越快赛马跑得越快,游戏结束按分值高低先后排名,有机会获得新疆福彩定制周边礼品一份。 -->
1. 主持人开赛即可摇手机,单次摇晃得 5 分;
2. 得分越高大屏幕上面的马跑得越快;
3. 限时比拼摇速,结束后按积分排名;
4. 高分用户有机会领取新疆福彩定制周边;
5. 禁止外挂作弊,违规账号取消成绩与领奖资格;
1. 主持人开赛即可摇手机,单次摇晃得 5 分;
<br
/>
2. 得分越高大屏幕上面的马跑得越快;
<br
/>
3. 限时比拼摇速,结束后按积分排名;
<br
/>
4. 高分用户有机会领取新疆福彩定制周边;
<br
/>
5. 禁止外挂作弊,违规账号取消成绩与领奖资格;
<br
/><br
/>
祝您游戏愉快!
</div>
</div>
<div
class=
"rule-close"
>
...
...
frontend-h5/src/pages/game5/Game5.vue
View file @
e223f4d5
...
...
@@ -191,34 +191,10 @@ function handleRoomBack() {
},
200
)
}
const
touchHandler
=
()
=>
{
if
(
isGuPlaying
.
value
)
{
return
}
tick
.
value
+=
5
const
hitHandler
=
(
score
:
number
)
=>
{
tick
.
value
+=
score
submitScore
()
playGame1Music
();
isGuPlaying
.
value
=
true
let
frameIndex
=
0
const
playNextFrame
=
()
=>
{
currentGu
.
value
=
guFrames
[
frameIndex
]
??
imageUrls
.
gu01
frameIndex
+=
1
if
(
frameIndex
>=
guFrames
.
length
)
{
guFrameTimer
=
window
.
setTimeout
(()
=>
{
currentGu
.
value
=
guFrames
[
0
]
isGuPlaying
.
value
=
false
guFrameTimer
=
undefined
},
200
)
return
}
guFrameTimer
=
window
.
setTimeout
(
playNextFrame
,
200
)
}
playNextFrame
()
playGame1Music
()
}
if
(
wechat
)
{
...
...
@@ -350,10 +326,10 @@ const rankCloseHandler = () => {
</
template
>
<LoadingView
v-if=
"currentView === 'loading'"
:image-urls=
"imageUrls"
:user-join-status=
"userJoinStatus"
@
touchGameRule=
"showGameRuleHandler"
/>
<PlayingView
v-else-if=
"currentView === 'playing'"
:image-urls=
"imageUrls"
:tick=
"tick"
:rank=
"rank"
<!-- <PlayingView v-else :image-urls="imageUrls" :tick="tick" :rank="rank" -->
<PlayingView
v-else-if=
"currentView === 'playing'"
:image-urls=
"imageUrls"
:tick=
"tick"
:rank=
"rank"
:current-gu=
"currentGu"
:countdown-interval=
"countdownInterval"
:is-div-desc-visible=
"isDivDescVisible"
@
touch=
"touchHandler"
/>
<!-- <PlayingView v-else :image-urls="imageUrls" :tick="tick" :rank="rank" -->
@
hit=
"hitHandler"
/>
<!-- <ScoreView v-else :image-urls="imageUrls" :rank="rank" :tick="tick" /> -->
</MobileStage>
<div
v-else
style=
"text-align: center; width: 100vw; height: 100vh; line-height: 30; font-size: 20px;"
>
...
...
frontend-h5/src/pages/game5/views/PlayingView.vue
View file @
e223f4d5
This diff is collapsed.
Click to expand it.
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