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
b6efbee3
Commit
b6efbee3
authored
Apr 23, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
a7f2bb25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
main-component.tsx
src/pages/main/components/main-component.tsx
+1
-1
stage.tsx
src/pages/main/components/scene/stage.tsx
+4
-2
No files found.
src/pages/main/components/main-component.tsx
View file @
b6efbee3
...
@@ -56,7 +56,7 @@ const MainPage = () => {
...
@@ -56,7 +56,7 @@ const MainPage = () => {
if
(
if
(
!
isFocus
||
!
isFocus
||
isGroupGuideComplete
||
isGroupGuideComplete
||
!
userInfo
.
pointReceive
||
userInfo
.
pointReceive
===
'N'
||
!
userInfo
.
city
||
!
userInfo
.
city
||
!
userInfo
.
grade
!
userInfo
.
grade
)
{
)
{
...
...
src/pages/main/components/scene/stage.tsx
View file @
b6efbee3
...
@@ -103,6 +103,8 @@ const getIconClassNames = (type?: StageType, extra: string[] = []) => {
...
@@ -103,6 +103,8 @@ const getIconClassNames = (type?: StageType, extra: string[] = []) => {
return
classNames
(
styles
.
icon
,
type
===
StageType
.
OneStop
&&
styles
.
isOneStop
,
...
extra
)
return
classNames
(
styles
.
icon
,
type
===
StageType
.
OneStop
&&
styles
.
isOneStop
,
...
extra
)
}
}
const
isProduction
=
process
.
env
.
SERVER_ENDPOINT
===
'https://geek.jkwljy.com'
const
StageComp
=
(
props
:
StageProps
)
=>
{
const
StageComp
=
(
props
:
StageProps
)
=>
{
const
{
stage
}
=
props
const
{
stage
}
=
props
const
updateState
=
useStoreActions
(
actions
=>
actions
.
gameModel
.
updateState
)
const
updateState
=
useStoreActions
(
actions
=>
actions
.
gameModel
.
updateState
)
...
@@ -112,7 +114,7 @@ const StageComp = (props: StageProps) => {
...
@@ -112,7 +114,7 @@ const StageComp = (props: StageProps) => {
const
mainGuideActive
=
useStoreState
(
state
=>
state
.
guideModel
.
mainGuideActive
)
const
mainGuideActive
=
useStoreState
(
state
=>
state
.
guideModel
.
mainGuideActive
)
const
handleClick
=
()
=>
{
const
handleClick
=
()
=>
{
if
(
stage
.
status
!==
StageStatus
.
DISABLED
)
{
if
(
stage
.
status
!==
StageStatus
.
DISABLED
||
!
isProduction
)
{
/** 从首页进入更新状态 */
/** 从首页进入更新状态 */
updateState
({
isSubmit
:
false
})
updateState
({
isSubmit
:
false
})
navigateTo
({
url
:
`/pages/prepare/index?id=
${
stage
.
id
}
`
})
navigateTo
({
url
:
`/pages/prepare/index?id=
${
stage
.
id
}
`
})
...
@@ -185,7 +187,7 @@ const StageComp = (props: StageProps) => {
...
@@ -185,7 +187,7 @@ const StageComp = (props: StageProps) => {
onClick=
{
handleClick
}
onClick=
{
handleClick
}
>
>
{
renderRound
(
isReady
)
}
{
renderRound
(
isReady
)
}
<
View
className=
{
styles
.
roundName
}
>
{
stage
.
name
}
</
View
>
<
View
className=
{
styles
.
roundName
}
>
{
!
isProduction
?
`${stage.id}.`
:
''
}{
stage
.
name
}
</
View
>
</
View
>
</
View
>
)
)
}
}
...
...
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