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
818acc64
Commit
818acc64
authored
Apr 10, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
0af1923d
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
150 additions
and
40 deletions
+150
-40
index.module.scss
src/pages/main/guide/index.module.scss
+39
-1
index.tsx
src/pages/main/guide/index.tsx
+26
-20
scene-2.module.scss
src/pages/main/guide/scene-2.module.scss
+14
-6
scene-2.tsx
src/pages/main/guide/scene-2.tsx
+7
-4
scene-3.tsx
src/pages/main/guide/scene-3.tsx
+4
-1
scene-4.module.scss
src/pages/main/guide/scene-4.module.scss
+34
-0
scene-4.tsx
src/pages/main/guide/scene-4.tsx
+10
-3
scene-5.module.scss
src/pages/main/guide/scene-5.module.scss
+10
-0
scene-5.tsx
src/pages/main/guide/scene-5.tsx
+6
-5
No files found.
src/pages/main/guide/index.module.scss
View file @
818acc64
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
top
:
50%
;
top
:
50%
;
margin-left
:
-150px
;
margin-left
:
-150px
;
margin-top
:
-60px
;
margin-top
:
-60px
;
transition
:
all
.3s
ease-in-out
;
&
.step_1
{
&
.step_1
{
left
:
0
;
left
:
0
;
...
@@ -72,6 +71,24 @@
...
@@ -72,6 +71,24 @@
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.scene_wrap
{
display
:
flex
;
flex-wrap
:
nowrap
;
}
.scene_item
{
height
:
100vh
;
width
:
100vw
;
position
:
relative
;
flex-shrink
:
0
;
opacity
:
0
;
transform
:
translateX
(
0
);
transition
:
transform
.5s
ease-in-out
,
opacity
.5s
ease-out
;
&
.is_current
{
opacity
:
1
;
}
}
.viewport_body
{
.viewport_body
{
flex
:
1
;
flex
:
1
;
position
:
relative
;
position
:
relative
;
...
@@ -84,3 +101,24 @@
...
@@ -84,3 +101,24 @@
top
:
0
;
top
:
0
;
bottom
:
0
;
bottom
:
0
;
}
}
.slide_in
{
animation-name
:
slideIn
;
animation-duration
:
.5s
;
animation-timing-function
:
ease-out
;
animation-fill-mode
:
backwards
;
animation-iteration-count
:
1
;
}
@keyframes
slideIn
{
0
%
{
transform
:
translateX
(
33
.33333%
);
opacity
:
0
;
}
100
%
{
transform
:
translateX
(
0
);
opacity
:
1
;
}
}
src/pages/main/guide/index.tsx
View file @
818acc64
import
{
useState
,
useMemo
,
useEffect
}
from
'react'
import
{
useState
,
useMemo
,
useEffect
}
from
'react'
import
{
View
}
from
'@tarojs/components'
import
{
getMenuButtonBoundingClientRect
}
from
'@tarojs/taro'
import
{
getMenuButtonBoundingClientRect
}
from
'@tarojs/taro'
import
{
preloadImage
}
from
'@/utils/preload-image'
import
{
preloadImage
}
from
'@/utils/preload-image'
import
assets
from
'@/assets/oss/assets-guide'
import
assets
from
'@/assets/oss/assets-guide'
import
classNames
from
'classnames'
import
styles
from
'./index.module.scss'
import
Scene1
from
'./scene-1'
import
Scene1
from
'./scene-1'
import
Scene2
from
'./scene-2'
import
Scene2
from
'./scene-2'
import
Scene3
from
'./scene-3'
import
Scene3
from
'./scene-3'
...
@@ -25,6 +29,10 @@ type GuideProps = {
...
@@ -25,6 +29,10 @@ type GuideProps = {
onDone
:
()
=>
void
;
onDone
:
()
=>
void
;
}
}
const
getStyle
=
(
index
:
number
,
currentIndex
:
number
,
len
:
number
)
=>
{
return
`transform: translateX(
${
-
currentIndex
*
100
}
%)`
}
const
Guide
=
(
props
:
GuideProps
)
=>
{
const
Guide
=
(
props
:
GuideProps
)
=>
{
const
{
onDone
}
=
props
const
{
onDone
}
=
props
const
[
step
,
setStep
]
=
useState
(
0
)
const
[
step
,
setStep
]
=
useState
(
0
)
...
@@ -42,27 +50,25 @@ const Guide = (props: GuideProps) => {
...
@@ -42,27 +50,25 @@ const Guide = (props: GuideProps) => {
return
0
return
0
},
[
nav
,
step
])
},
[
nav
,
step
])
const
sceneList
=
useMemo
(()
=>
{
return
[
<
Scene1
onNext=
{
()
=>
setStep
(
1
)
}
key=
{
1
}
/>,
<
Scene2
spriteTop=
{
spriteTop
}
isCurrent=
{
step
===
1
}
onNext=
{
()
=>
setStep
(
2
)
}
key=
{
2
}
/>,
<
Scene3
spriteTop=
{
spriteTop
}
isCurrent=
{
step
===
2
}
onNext=
{
(
val
:
number
)
=>
{
setStep
(
3
);
setTime
(
val
)
}
}
key=
{
3
}
/>,
<
Scene4
spriteTop=
{
spriteTop
}
isCurrent=
{
step
===
3
}
onNext=
{
()
=>
setStep
(
4
)
}
time=
{
time
}
key=
{
4
}
/>,
<
Scene5
spriteTop=
{
spriteTop
}
isCurrent=
{
step
===
4
}
onNext=
{
()
=>
setStep
(
5
)
}
key=
{
5
}
/>,
<
Scene6
spriteTop=
{
spriteTop
}
onNext=
{
onDone
}
key=
{
6
}
/>
]
},
[
onDone
,
spriteTop
,
time
,
step
])
return
(
return
(
<>
<
View
className=
{
styles
.
scene_wrap
}
>
{
step
===
0
&&
(
{
sceneList
.
map
((
item
,
index
)
=>
(
<
Scene1
onNext=
{
()
=>
setStep
(
1
)
}
/>
<
View
className=
{
classNames
(
styles
.
scene_item
,
index
===
step
&&
styles
.
is_current
)
}
key=
{
index
}
style=
{
getStyle
(
index
,
step
,
6
)
}
>
)
}
{
index
===
step
||
index
-
1
===
step
?
item
:
null
}
{
step
===
1
&&
(
</
View
>
<
Scene2
spriteTop=
{
spriteTop
}
onNext=
{
()
=>
setStep
(
2
)
}
/>
))
}
)
}
</
View
>
{
step
===
2
&&
(
<
Scene3
spriteTop=
{
spriteTop
}
onNext=
{
(
val
:
number
)
=>
{
setStep
(
3
);
setTime
(
val
)
}
}
/>
)
}
{
step
===
3
&&
(
<
Scene4
spriteTop=
{
spriteTop
}
onNext=
{
()
=>
setStep
(
4
)
}
time=
{
time
}
/>
)
}
{
step
===
4
&&
(
<
Scene5
spriteTop=
{
spriteTop
}
onNext=
{
()
=>
setStep
(
5
)
}
/>
)
}
{
step
===
5
&&
(
<
Scene6
spriteTop=
{
spriteTop
}
onNext=
{
onDone
}
/>
)
}
</>
)
)
}
}
...
...
src/pages/main/guide/scene-2.module.scss
View file @
818acc64
...
@@ -30,13 +30,8 @@
...
@@ -30,13 +30,8 @@
}
}
.option
{
.option
{
bottom
:
-64px
;
padding
:
64px
32px
32px
32px
;
position
:
absolute
;
left
:
0
;
padding
:
0
32px
;
width
:
100vw
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
transform
:
translateY
(
100%
);
}
}
.option_item
{
.option_item
{
...
@@ -49,6 +44,19 @@
...
@@ -49,6 +44,19 @@
margin-bottom
:
28px
;
margin-bottom
:
28px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
&
:nth-child
(
1
)
{
animation-delay
:
.4s
;
}
&
:nth-child
(
2
)
{
animation-delay
:
.7s
;
}
&
:nth-child
(
3
)
{
animation-delay
:
1s
;;
}
&
.active
{
&
.active
{
border-color
:
#FFC056
;
border-color
:
#FFC056
;
}
}
...
...
src/pages/main/guide/scene-2.tsx
View file @
818acc64
...
@@ -8,10 +8,11 @@ import styles from './scene-2.module.scss'
...
@@ -8,10 +8,11 @@ import styles from './scene-2.module.scss'
type
Scene2Props
=
{
type
Scene2Props
=
{
spriteTop
:
number
;
spriteTop
:
number
;
onNext
:
()
=>
void
;
onNext
:
()
=>
void
;
isCurrent
:
boolean
;
}
}
const
Scene2
=
(
props
:
Scene2Props
)
=>
{
const
Scene2
=
(
props
:
Scene2Props
)
=>
{
const
{
spriteTop
,
onNext
}
=
props
const
{
spriteTop
,
onNext
,
isCurrent
}
=
props
const
[
active1
,
active1Action
]
=
useBoolean
(
false
)
const
[
active1
,
active1Action
]
=
useBoolean
(
false
)
const
[
active2
,
active2Action
]
=
useBoolean
(
false
)
const
[
active2
,
active2Action
]
=
useBoolean
(
false
)
const
[
active3
,
active3Action
]
=
useBoolean
(
false
)
const
[
active3
,
active3Action
]
=
useBoolean
(
false
)
...
@@ -55,27 +56,29 @@ const Scene2 = (props: Scene2Props) => {
...
@@ -55,27 +56,29 @@ const Scene2 = (props: Scene2Props) => {
<
Text
>
请问同学有哪些
<
Text
className=
{
styles
.
em
}
>
计算问题
</
Text
>
需要提高呢?
<
Text
className=
{
styles
.
select
}
>
多选
</
Text
></
Text
>
<
Text
>
请问同学有哪些
<
Text
className=
{
styles
.
em
}
>
计算问题
</
Text
>
需要提高呢?
<
Text
className=
{
styles
.
select
}
>
多选
</
Text
></
Text
>
</
View
>
</
View
>
{
isCurrent
&&
(
<
View
className=
{
styles
.
option
}
>
<
View
className=
{
styles
.
option
}
>
<
View
className=
{
classNames
(
styles
.
option_item
,
active1
&&
styles
.
active
,
active3
&&
styles
.
disabled
)
}
onClick=
{
handleClick1
}
>
<
View
className=
{
classNames
(
styles
.
option_item
,
cs
.
slide_in
,
active1
&&
styles
.
active
,
active3
&&
styles
.
disabled
)
}
onClick=
{
handleClick1
}
>
{
active3
{
active3
?
(<
Image
src=
{
assets
[
'up-1-off.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>)
?
(<
Image
src=
{
assets
[
'up-1-off.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>)
:
(<
Image
src=
{
assets
[
'up-1.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>)
:
(<
Image
src=
{
assets
[
'up-1.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>)
}
}
<
View
className=
{
styles
.
option_content
}
>
计算时不时会出错,想提高正确率
</
View
>
<
View
className=
{
styles
.
option_content
}
>
计算时不时会出错,想提高正确率
</
View
>
</
View
>
</
View
>
<
View
className=
{
classNames
(
styles
.
option_item
,
active2
&&
styles
.
active
,
active3
&&
styles
.
disabled
)
}
onClick=
{
handleClick2
}
>
<
View
className=
{
classNames
(
styles
.
option_item
,
cs
.
slide_in
,
active2
&&
styles
.
active
,
active3
&&
styles
.
disabled
)
}
onClick=
{
handleClick2
}
>
{
active3
{
active3
?
(<
Image
src=
{
assets
[
'up-2-off.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>)
?
(<
Image
src=
{
assets
[
'up-2-off.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>)
:
(<
Image
src=
{
assets
[
'up-2.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>)
:
(<
Image
src=
{
assets
[
'up-2.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>)
}
}
<
View
className=
{
styles
.
option_content
}
>
计算不熟练,想提高运算速度
</
View
>
<
View
className=
{
styles
.
option_content
}
>
计算不熟练,想提高运算速度
</
View
>
</
View
>
</
View
>
<
View
className=
{
classNames
(
styles
.
option_item
,
active3
&&
styles
.
active
)
}
onClick=
{
handleClick3
}
>
<
View
className=
{
classNames
(
styles
.
option_item
,
cs
.
slide_in
,
active3
&&
styles
.
active
)
}
onClick=
{
handleClick3
}
>
<
Image
src=
{
assets
[
'up-3.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>
<
Image
src=
{
assets
[
'up-3.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>
<
View
className=
{
styles
.
option_content
}
>
计算完全没有问题了,已经又快又准
</
View
>
<
View
className=
{
styles
.
option_content
}
>
计算完全没有问题了,已经又快又准
</
View
>
</
View
>
</
View
>
</
View
>
</
View
>
)
}
</
View
>
</
View
>
</
ScrollView
>
</
ScrollView
>
</
View
>
</
View
>
...
...
src/pages/main/guide/scene-3.tsx
View file @
818acc64
...
@@ -14,6 +14,7 @@ import CountUp from './components/count-up'
...
@@ -14,6 +14,7 @@ import CountUp from './components/count-up'
type
Scene3Props
=
{
type
Scene3Props
=
{
spriteTop
:
number
;
spriteTop
:
number
;
isCurrent
:
boolean
;
onNext
:
(
val
:
number
)
=>
void
;
onNext
:
(
val
:
number
)
=>
void
;
}
}
...
@@ -37,7 +38,7 @@ const getCounter = () => {
...
@@ -37,7 +38,7 @@ const getCounter = () => {
}
}
const
Scene3
=
(
props
:
Scene3Props
)
=>
{
const
Scene3
=
(
props
:
Scene3Props
)
=>
{
const
{
spriteTop
,
onNext
}
=
props
const
{
spriteTop
,
onNext
,
isCurrent
}
=
props
const
[
state
,
actions
]
=
useLocalStore
<
QuestionModel
>
(()
=>
({
const
[
state
,
actions
]
=
useLocalStore
<
QuestionModel
>
(()
=>
({
values
:
[
''
,
''
,
''
],
values
:
[
''
,
''
,
''
],
...
@@ -123,7 +124,9 @@ const Scene3 = (props: Scene3Props) => {
...
@@ -123,7 +124,9 @@ const Scene3 = (props: Scene3Props) => {
</
View
>
</
View
>
<
View
className=
{
styles
.
question
}
>
<
View
className=
{
styles
.
question
}
>
{
isCurrent
&&
(
<
CountUp
currentIndex=
{
state
.
current
}
isSubmit=
{
state
.
isSubmit
}
id=
{
countupId
}
></
CountUp
>
<
CountUp
currentIndex=
{
state
.
current
}
isSubmit=
{
state
.
isSubmit
}
id=
{
countupId
}
></
CountUp
>
)
}
<
View
className=
{
styles
.
item
}
>
<
View
className=
{
styles
.
item
}
>
{
questionList
[
state
.
current
].
content
}
{
questionList
[
state
.
current
].
content
}
</
View
>
</
View
>
...
...
src/pages/main/guide/scene-4.module.scss
View file @
818acc64
...
@@ -25,11 +25,37 @@
...
@@ -25,11 +25,37 @@
.tag_item
{
.tag_item
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
animation-name
:
fadeInUp
;
animation-duration
:
.5s
;
animation-timing-function
:
ease-out
;
animation-fill-mode
:
backwards
;
animation-iteration-count
:
1
;
&
:nth-child
(
1
)
{
animation-delay
:
.7s
;
}
&
:nth-child
(
2
)
{
animation-delay
:
1s
;
}
&
:first-child
{
&
:first-child
{
margin-right
:
32px
;
margin-right
:
32px
;
}
}
}
}
@keyframes
fadeInUp
{
0
%
{
opacity
:
0
;
transform
:
translateY
(
82px
)
scale
(
0
.5
,
0
.5
);
}
100
%
{
opacity
:
1
;
transform
:
translateY
(
0
)
scale
(
1
,
1
);
}
}
.tag_icon
{
.tag_icon
{
width
:
60px
;
width
:
60px
;
height
:
60px
;
height
:
60px
;
...
@@ -39,6 +65,14 @@
...
@@ -39,6 +65,14 @@
z-index
:
1
;
z-index
:
1
;
}
}
.result_2
{
animation-delay
:
.7s
;
}
.result_1
{
animation-delay
:
.4s
;
}
.tag_text
{
.tag_text
{
height
:
56px
;
height
:
56px
;
background
:
#F4F6F8
;
background
:
#F4F6F8
;
...
...
src/pages/main/guide/scene-4.tsx
View file @
818acc64
...
@@ -11,6 +11,7 @@ type Scene4Props = {
...
@@ -11,6 +11,7 @@ type Scene4Props = {
spriteTop
:
number
;
spriteTop
:
number
;
time
:
number
;
time
:
number
;
onNext
:
()
=>
void
;
onNext
:
()
=>
void
;
isCurrent
:
boolean
;
}
}
function
getIcon
(
level
:
'S'
|
'A'
|
'B'
)
{
function
getIcon
(
level
:
'S'
|
'A'
|
'B'
)
{
...
@@ -42,7 +43,7 @@ function getLevelName (level: 'S' | 'A' | 'B') {
...
@@ -42,7 +43,7 @@ function getLevelName (level: 'S' | 'A' | 'B') {
}
}
const
Scene4
=
(
props
:
Scene4Props
)
=>
{
const
Scene4
=
(
props
:
Scene4Props
)
=>
{
const
{
spriteTop
,
onNext
,
time
}
=
props
const
{
spriteTop
,
onNext
,
time
,
isCurrent
}
=
props
const
level
=
useMemo
(()
=>
{
const
level
=
useMemo
(()
=>
{
if
(
time
<=
15
)
return
'S'
if
(
time
<=
15
)
return
'S'
...
@@ -66,6 +67,7 @@ const Scene4 = (props: Scene4Props) => {
...
@@ -66,6 +67,7 @@ const Scene4 = (props: Scene4Props) => {
<
Text
>
恭喜你,表内乘除法,你掌握得不错哦
</
Text
>
<
Text
>
恭喜你,表内乘除法,你掌握得不错哦
</
Text
>
</
View
>
</
View
>
</
View
>
</
View
>
{
isCurrent
&&
(
<
View
className=
{
styles
.
tag
}
>
<
View
className=
{
styles
.
tag
}
>
<
View
className=
{
styles
.
tag_item
}
>
<
View
className=
{
styles
.
tag_item
}
>
<
Image
src=
{
assets
[
'all-right.png'
].
u
}
className=
{
styles
.
tag_icon
}
></
Image
>
<
Image
src=
{
assets
[
'all-right.png'
].
u
}
className=
{
styles
.
tag_icon
}
></
Image
>
...
@@ -76,7 +78,9 @@ const Scene4 = (props: Scene4Props) => {
...
@@ -76,7 +78,9 @@ const Scene4 = (props: Scene4Props) => {
<
View
className=
{
styles
.
tag_text
}
>
{
timeFmt
.
minutes
}
:
{
timeFmt
.
seconds
}
</
View
>
<
View
className=
{
styles
.
tag_text
}
>
{
timeFmt
.
minutes
}
:
{
timeFmt
.
seconds
}
</
View
>
</
View
>
</
View
>
</
View
>
</
View
>
<
View
>
)
}
{
isCurrent
&&
(
<
View
className=
{
classNames
(
cs
.
slide_in
,
styles
.
result_1
)
}
>
<
View
className=
{
styles
.
title
}
>
达标等级:
</
View
>
<
View
className=
{
styles
.
title
}
>
达标等级:
</
View
>
<
View
className=
{
styles
.
card
}
>
<
View
className=
{
styles
.
card
}
>
<
Image
src=
{
icons
[
0
]
}
className=
{
styles
.
icon
}
></
Image
>
<
Image
src=
{
icons
[
0
]
}
className=
{
styles
.
icon
}
></
Image
>
...
@@ -84,7 +88,9 @@ const Scene4 = (props: Scene4Props) => {
...
@@ -84,7 +88,9 @@ const Scene4 = (props: Scene4Props) => {
</
View
>
</
View
>
<
View
className=
{
styles
.
tips
}
>
* 共有 B → A → S 三个水准
</
View
>
<
View
className=
{
styles
.
tips
}
>
* 共有 B → A → S 三个水准
</
View
>
</
View
>
</
View
>
<
View
>
)
}
{
isCurrent
&&
(
<
View
className=
{
classNames
(
cs
.
slide_in
,
styles
.
result_2
)
}
>
<
View
className=
{
styles
.
title
}
>
排行成就:
</
View
>
<
View
className=
{
styles
.
title
}
>
排行成就:
</
View
>
<
View
className=
{
styles
.
card
}
>
<
View
className=
{
styles
.
card
}
>
<
Image
src=
{
icons
[
1
]
}
className=
{
styles
.
icon
}
></
Image
>
<
Image
src=
{
icons
[
1
]
}
className=
{
styles
.
icon
}
></
Image
>
...
@@ -95,6 +101,7 @@ const Scene4 = (props: Scene4Props) => {
...
@@ -95,6 +101,7 @@ const Scene4 = (props: Scene4Props) => {
</
View
>
</
View
>
<
View
className=
{
styles
.
tips
}
>
* 共有 TOP30% → TOP20% → TOP10% 三个成就
</
View
>
<
View
className=
{
styles
.
tips
}
>
* 共有 TOP30% → TOP20% → TOP10% 三个成就
</
View
>
</
View
>
</
View
>
)
}
</
ScrollView
>
</
ScrollView
>
</
View
>
</
View
>
<
View
className=
{
cs
.
footer
}
>
<
View
className=
{
cs
.
footer
}
>
...
...
src/pages/main/guide/scene-5.module.scss
View file @
818acc64
...
@@ -41,6 +41,16 @@
...
@@ -41,6 +41,16 @@
border
:
6px
solid
transparent
;
border
:
6px
solid
transparent
;
margin-bottom
:
28px
;
margin-bottom
:
28px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
&
:nth-child
(
1
)
{
animation-delay
:
.4s
;
}
&
:nth-child
(
2
)
{
animation-delay
:
.7s
;
}
&
:nth-child
(
3
)
{
animation-delay
:
1s
;
}
&
.active
{
&
.active
{
border-color
:
#FFC056
;
border-color
:
#FFC056
;
...
...
src/pages/main/guide/scene-5.tsx
View file @
818acc64
...
@@ -8,10 +8,11 @@ import styles from './scene-5.module.scss'
...
@@ -8,10 +8,11 @@ import styles from './scene-5.module.scss'
type
Scene5Props
=
{
type
Scene5Props
=
{
spriteTop
:
number
;
spriteTop
:
number
;
onNext
:
()
=>
void
;
onNext
:
()
=>
void
;
isCurrent
:
boolean
;
}
}
const
Scene5
=
(
props
:
Scene5Props
)
=>
{
const
Scene5
=
(
props
:
Scene5Props
)
=>
{
const
{
spriteTop
,
onNext
}
=
props
const
{
spriteTop
,
onNext
,
isCurrent
}
=
props
const
[
active1
,
active1Action
]
=
useBoolean
(
false
)
const
[
active1
,
active1Action
]
=
useBoolean
(
false
)
const
[
active2
,
active2Action
]
=
useBoolean
(
false
)
const
[
active2
,
active2Action
]
=
useBoolean
(
false
)
const
[
active3
,
active3Action
]
=
useBoolean
(
false
)
const
[
active3
,
active3Action
]
=
useBoolean
(
false
)
...
@@ -68,17 +69,17 @@ const Scene5 = (props: Scene5Props) => {
...
@@ -68,17 +69,17 @@ const Scene5 = (props: Scene5Props) => {
</
View
>
</
View
>
</
View
>
</
View
>
)
}
)
}
{
!
isSubmit
&&
(
{
!
isSubmit
&&
isCurrent
&&
(
<
View
className=
{
styles
.
option
}
>
<
View
className=
{
styles
.
option
}
>
<
View
className=
{
classNames
(
styles
.
option_item
,
active1
&&
styles
.
active
)
}
onClick=
{
active1Action
.
toggle
}
>
<
View
className=
{
classNames
(
styles
.
option_item
,
cs
.
slide_in
,
active1
&&
styles
.
active
)
}
onClick=
{
active1Action
.
toggle
}
>
<
Image
src=
{
assets
[
'book-1.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>
<
Image
src=
{
assets
[
'book-1.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>
<
View
className=
{
styles
.
option_content
}
><
Text
className=
{
styles
.
b
}
>
常考应用题
</
Text
>
时不时会出错,想让应用题掌握更
</
View
>
<
View
className=
{
styles
.
option_content
}
><
Text
className=
{
styles
.
b
}
>
常考应用题
</
Text
>
时不时会出错,想让应用题掌握更
</
View
>
</
View
>
</
View
>
<
View
className=
{
classNames
(
styles
.
option_item
,
active2
&&
styles
.
active
)
}
onClick=
{
active2Action
.
toggle
}
>
<
View
className=
{
classNames
(
styles
.
option_item
,
cs
.
slide_in
,
active2
&&
styles
.
active
)
}
onClick=
{
active2Action
.
toggle
}
>
<
Image
src=
{
assets
[
'book-2.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>
<
Image
src=
{
assets
[
'book-2.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>
<
View
className=
{
styles
.
option_content
}
><
Text
className=
{
styles
.
b
}
>
灵活应用题
</
Text
>
没有思路,想提升问题分析能力
</
View
>
<
View
className=
{
styles
.
option_content
}
><
Text
className=
{
styles
.
b
}
>
灵活应用题
</
Text
>
没有思路,想提升问题分析能力
</
View
>
</
View
>
</
View
>
<
View
className=
{
classNames
(
styles
.
option_item
,
active3
&&
styles
.
active
)
}
onClick=
{
active3Action
.
toggle
}
>
<
View
className=
{
classNames
(
styles
.
option_item
,
cs
.
slide_in
,
active3
&&
styles
.
active
)
}
onClick=
{
active3Action
.
toggle
}
>
<
Image
src=
{
assets
[
'book-3.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>
<
Image
src=
{
assets
[
'book-3.png'
].
u
}
className=
{
styles
.
option_icon
}
></
Image
>
<
View
className=
{
styles
.
option_content
}
><
Text
className=
{
styles
.
b
}
>
附加拓展题
</
Text
>
时常不会,想提升数学思维,掌握
</
View
>
<
View
className=
{
styles
.
option_content
}
><
Text
className=
{
styles
.
b
}
>
附加拓展题
</
Text
>
时常不会,想提升数学思维,掌握
</
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