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
029084fa
Commit
029084fa
authored
Apr 14, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
e1c64303
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
18 deletions
+14
-18
index.tsx
src/components/EyeProtectionView/index.tsx
+1
-3
index.tsx
src/pages/game/play/index.tsx
+13
-15
No files found.
src/components/EyeProtectionView/index.tsx
View file @
029084fa
...
@@ -3,9 +3,7 @@ import classNames from 'classnames'
...
@@ -3,9 +3,7 @@ import classNames from 'classnames'
import
{
useStoreState
}
from
'@/store/hooks'
import
{
useStoreState
}
from
'@/store/hooks'
import
styles
from
'./index.module.scss'
import
styles
from
'./index.module.scss'
type
EyeProtectionViewProps
=
ViewProps
const
EyeProtectionView
=
(
props
:
ViewProps
)
=>
{
const
EyeProtectionView
=
(
props
:
EyeProtectionViewProps
)
=>
{
const
{
className
,
children
,
...
rest
}
=
props
const
{
className
,
children
,
...
rest
}
=
props
const
isEyeProtectionMode
=
useStoreState
(
states
=>
states
.
userModel
.
isEyeProtectionMode
)
const
isEyeProtectionMode
=
useStoreState
(
states
=>
states
.
userModel
.
isEyeProtectionMode
)
...
...
src/pages/game/play/index.tsx
View file @
029084fa
...
@@ -63,9 +63,7 @@ const GamePlay = () => {
...
@@ -63,9 +63,7 @@ const GamePlay = () => {
<
EyeProtectionView
className=
{
styles
.
viewport
}
>
<
EyeProtectionView
className=
{
styles
.
viewport
}
>
<
PageHead
/>
<
PageHead
/>
{
currentQuestion
&&
stageDetail
&&
(
{
currentQuestion
&&
stageDetail
&&
(
<>
<
CountUp
stageDetail=
{
stageDetail
}
/>
<
CountUp
stageDetail=
{
stageDetail
}
/>
</>
)
}
)
}
<
ScrollView
className=
{
styles
.
body
}
scrollY
>
<
ScrollView
className=
{
styles
.
body
}
scrollY
>
{
currentQuestion
&&
(
{
currentQuestion
&&
(
...
@@ -74,18 +72,18 @@ const GamePlay = () => {
...
@@ -74,18 +72,18 @@ const GamePlay = () => {
</
ScrollView
>
</
ScrollView
>
{
currentQuestion
&&
(
{
currentQuestion
&&
(
<>
<>
{
currentQuestion
?.
questionType
!==
'选择题'
&&
(
{
currentQuestion
?.
questionType
!==
'选择题'
&&
(
<
number
-
keyboard
onType=
{
updateUserAnswer
}
/>
<
number
-
keyboard
onType=
{
updateUserAnswer
}
/>
)
}
)
}
{
rightIcon
&&
(
{
rightIcon
&&
(
<
Image
src=
{
rightIcon
}
className=
{
styles
.
right_icon
}
></
Image
>
<
Image
src=
{
rightIcon
}
className=
{
styles
.
right_icon
}
></
Image
>
)
}
)
}
<
PageFooter
<
PageFooter
clearUserAnswer=
{
clearUserAnswer
}
clearUserAnswer=
{
clearUserAnswer
}
handleGoNext=
{
handleGoNext
}
handleGoNext=
{
handleGoNext
}
isLastQuestion=
{
isLastQuestion
}
isLastQuestion=
{
isLastQuestion
}
canGoNext=
{
canGoNext
}
canGoNext=
{
canGoNext
}
/>
/>
</>
</>
)
}
)
}
</
EyeProtectionView
>
</
EyeProtectionView
>
...
...
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