Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeekLearnMathWeapp
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
frontend
GeekLearnMathWeapp
Commits
f209fe0f
Commit
f209fe0f
authored
Jun 19, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 切换到章节二
parent
0a16dc51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
game.ts
src/api/game.ts
+1
-1
constants.ts
src/pages/main/main-underground/scene/constants.ts
+1
-1
No files found.
src/api/game.ts
View file @
f209fe0f
...
@@ -117,7 +117,7 @@ export function getStageList () {
...
@@ -117,7 +117,7 @@ export function getStageList () {
return
requestAfterSilentLogin
<
Stage
[],
{
chapter
:
number
;
userId
?:
number
}
>
(
userInfo
=>
({
return
requestAfterSilentLogin
<
Stage
[],
{
chapter
:
number
;
userId
?:
number
}
>
(
userInfo
=>
({
method
:
'GET'
,
method
:
'GET'
,
url
:
'/service-idea/stage/listStages'
,
url
:
'/service-idea/stage/listStages'
,
data
:
{
chapter
:
1
,
userId
:
userInfo
?.
userId
}
data
:
{
chapter
:
2
,
userId
:
userInfo
?.
userId
}
}))
}))
}
}
...
...
src/pages/main/main-underground/scene/constants.ts
View file @
f209fe0f
...
@@ -54,7 +54,7 @@ function stageToStageNext (stageList: Stage[]): {nextList: StageNext[]; showList
...
@@ -54,7 +54,7 @@ function stageToStageNext (stageList: Stage[]): {nextList: StageNext[]; showList
if
(
currentIndex
===
-
1
)
{
if
(
currentIndex
===
-
1
)
{
showList
=
newList
showList
=
newList
}
else
{
}
else
{
showList
=
newList
.
slice
(
0
,
Math
.
max
(
currentIndex
+
80
,
5
))
showList
=
newList
.
slice
(
0
,
Math
.
max
(
currentIndex
+
3
,
5
))
}
}
let
currentPart
let
currentPart
...
...
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