Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LuzhouLaojiaoSnake_250428
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
LuzhouLaojiaoSnake_250428
Commits
feb25ffe
Commit
feb25ffe
authored
Apr 28, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
b543dceb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
GamePage.tsx
src/pages/GamePage/GamePage.tsx
+2
-1
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+4
-2
No files found.
src/pages/GamePage/GamePage.tsx
View file @
feb25ffe
...
...
@@ -35,6 +35,7 @@ export interface IGamePageState {
}
import
chooseAudio
from
"@/assets/music/选择.mp3"
;
import
{
PageCtrl
}
from
"@/core/ctrls/PageCtrl.tsx"
;
@
observer
class
GamePage
extends
React
.
Component
{
...
...
@@ -266,7 +267,7 @@ class GamePage extends React.Component {
* 点击返回
*/
clickBack
=
()
=>
{
store
.
changePage
(
PAGE_MAP
.
HOME_PAGE
);
PageCtrl
.
changePage
(
PAGE_MAP
.
HOME_PAGE
);
}
render
()
{
...
...
src/pages/HomePage/HomePage.tsx
View file @
feb25ffe
...
...
@@ -12,6 +12,8 @@ import MusicBtn from "@/core/components/MusicBtn/MusicBtn.tsx";
import
{
ModalCtrl
}
from
"@/core/ctrls/ModalCtrl.tsx"
;
import
PrizePanel
from
"@/panels/PrizePanel/PrizePanel.tsx"
;
import
RulePanel
from
"@/panels/RulePanel/RulePanel.tsx"
;
import
{
PageCtrl
}
from
"@/core/ctrls/PageCtrl.tsx"
;
import
GamePage
from
"@/pages/GamePage/GamePage.tsx"
;
@
observer
class
HomePage
extends
React
.
Component
<
any
,
any
>
{
...
...
@@ -30,7 +32,7 @@ class HomePage extends React.Component<any, any> {
const
suc
=
await
gameStore
.
start
();
if
(
!
suc
)
return
;
store
.
changePage
(
PAGE_MAP
.
GAME_PAGE
);
PageCtrl
.
changePage
(
GamePage
);
})
/** 奖品按钮*/
...
...
@@ -48,7 +50,7 @@ class HomePage extends React.Component<any, any> {
clickPoster
=
()
=>
{
if
(
!
store
.
judgeActTime
(
true
,
false
))
return
;
store
.
changePage
(
PAGE_MAP
.
POSTER_PAGE
);
PageCtrl
.
changePage
(
PAGE_MAP
.
POSTER_PAGE
);
}
clickDraw
=
()
=>
{
...
...
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