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
c88bf5b7
Commit
c88bf5b7
authored
Apr 24, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
12589d81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
15 deletions
+36
-15
modal-result.tsx
src/pages/main/components/tutorial/modal-result.tsx
+36
-15
No files found.
src/pages/main/components/tutorial/modal-result.tsx
View file @
c88bf5b7
...
@@ -16,6 +16,41 @@ const ModalResult = (props: ModalResultProps) => {
...
@@ -16,6 +16,41 @@ const ModalResult = (props: ModalResultProps) => {
return
grade
===
'一年级'
return
grade
===
'一年级'
},
[
grade
])
},
[
grade
])
const
isLevel2
=
useMemo
(()
=>
{
return
grade
===
'二年级'
},
[
grade
])
const
renderContent
=
()
=>
{
if
(
isLevel1
)
{
return
(
<
View
>
一年级匹配的内容还在准备中,如果孩子比较
<
Text
className=
{
styles
.
em
}
>
可以来试试
</
Text
>
哦。
</
View
>
)
}
if
(
isLevel2
)
{
return
(
<
View
>
已经为你准备好了二年级(下学期)所必须掌握的
<
Text
className=
{
styles
.
em
}
>
计算达标
</
Text
>
、
<
Text
className=
{
styles
.
em
}
>
常考的应用题
</
Text
>
、
以及
<
Text
className=
{
styles
.
em
}
>
附加思维题
</
Text
>
哦。
</
View
>
)
}
return
(
<
View
>
让我们先从基本功开始。已经为你准备好了打好基本功所必须掌握的
<
Text
className=
{
styles
.
em
}
>
计算达标
</
Text
>
、
<
Text
className=
{
styles
.
em
}
>
常考的应用题
</
Text
>
、
以及
<
Text
className=
{
styles
.
em
}
>
附加思维题
</
Text
>
哦。
</
View
>
)
}
return
(
return
(
<
RootPortal
>
<
RootPortal
>
<
View
className=
{
styles
.
mask
}
catchMove
></
View
>
<
View
className=
{
styles
.
mask
}
catchMove
></
View
>
...
@@ -23,21 +58,7 @@ const ModalResult = (props: ModalResultProps) => {
...
@@ -23,21 +58,7 @@ const ModalResult = (props: ModalResultProps) => {
<
Image
src=
{
tutorialAssets
[
'cat.png'
].
u
}
className=
{
styles
.
result_cat
}
/>
<
Image
src=
{
tutorialAssets
[
'cat.png'
].
u
}
className=
{
styles
.
result_cat
}
/>
<
View
className=
{
styles
.
result_main
}
>
<
View
className=
{
styles
.
result_main
}
>
<
View
className=
{
classNames
(
styles
.
dialog
,
isLevel1
&&
styles
.
is_lower
)
}
onClick=
{
()
=>
onConfirm
()
}
>
<
View
className=
{
classNames
(
styles
.
dialog
,
isLevel1
&&
styles
.
is_lower
)
}
onClick=
{
()
=>
onConfirm
()
}
>
{
isLevel1
{
renderContent
()
}
?
(
<
View
>
一年级匹配的内容还在准备中,如果孩子比较
<
Text
className=
{
styles
.
em
}
>
可以来试试
</
Text
>
哦。
</
View
>
)
:
(
<
View
>
让我们先从基本功开始。已经为你准备好了打好基本功所必须掌握的
<
Text
className=
{
styles
.
em
}
>
计算达标
</
Text
>
、
<
Text
className=
{
styles
.
em
}
>
常考的应用题
</
Text
>
、
以及
<
Text
className=
{
styles
.
em
}
>
附加思维题
</
Text
>
哦。
</
View
>
)
}
<
View
className=
{
styles
.
continue
}
>
<
View
className=
{
styles
.
continue
}
>
<
View
className=
{
styles
.
continue_btn
}
>
<
View
className=
{
styles
.
continue_btn
}
>
继续
<
Image
src=
{
tutorialAssets
[
'continue-arrow.png'
].
u
}
className=
{
styles
.
continue_icon
}
/>
继续
<
Image
src=
{
tutorialAssets
[
'continue-arrow.png'
].
u
}
className=
{
styles
.
continue_icon
}
/>
...
...
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