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
afb43270
Commit
afb43270
authored
Apr 20, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
39726ce6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
nickname-words.json
assets/setting/nickname-words.json
+8
-0
stage.tsx
src/pages/main/components/scene/stage.tsx
+10
-9
No files found.
assets/setting/nickname-words.json
View file @
afb43270
...
@@ -225,6 +225,7 @@
...
@@ -225,6 +225,7 @@
"雕刻家"
"雕刻家"
],
],
"adj"
:
[
"adj"
:
[
"英俊的"
,
"美丽的"
,
"美丽的"
,
"幸福的"
,
"幸福的"
,
"快乐的"
,
"快乐的"
,
...
@@ -242,6 +243,13 @@
...
@@ -242,6 +243,13 @@
"真诚的"
,
"真诚的"
,
"诚实的"
,
"诚实的"
,
"安静的"
,
"安静的"
,
"英俊的"
,
"帅气的"
,
"冲动的"
,
"淘气的"
,
"乖巧的"
,
"机灵的"
,
"天真的"
,
"优雅的"
,
"优雅的"
,
"舒适的"
,
"舒适的"
,
"轻松的"
,
"轻松的"
,
...
...
src/pages/main/components/scene/stage.tsx
View file @
afb43270
...
@@ -108,6 +108,15 @@ const StageComp = (props: StageProps) => {
...
@@ -108,6 +108,15 @@ const StageComp = (props: StageProps) => {
const
isReady
=
useStoreState
(
state
=>
state
.
mainModel
.
isReady
)
const
isReady
=
useStoreState
(
state
=>
state
.
mainModel
.
isReady
)
const
player
=
useStoreState
(
state
=>
state
.
mainModel
.
player
)
const
player
=
useStoreState
(
state
=>
state
.
mainModel
.
player
)
const
handleClick
=
()
=>
{
if
(
stage
.
status
!==
StageStatus
.
DISABLED
)
{
/** 从首页进入更新状态 */
updateState
({
isSubmit
:
false
})
navigateTo
({
url
:
`/pages/prepare/index?id=
${
stage
.
id
}
`
})
player
.
stop
()
}
}
const
renderRound
=
(
ready
:
boolean
)
=>
{
const
renderRound
=
(
ready
:
boolean
)
=>
{
switch
(
stage
.
status
)
{
switch
(
stage
.
status
)
{
case
StageStatus
.
DISABLED
:
{
case
StageStatus
.
DISABLED
:
{
...
@@ -126,6 +135,7 @@ const StageComp = (props: StageProps) => {
...
@@ -126,6 +135,7 @@ const StageComp = (props: StageProps) => {
verticalPadding=
{
4
}
verticalPadding=
{
4
}
horizonPadding=
{
4
}
horizonPadding=
{
4
}
wrapClass=
{
styles
.
guide_wrap
}
wrapClass=
{
styles
.
guide_wrap
}
onClickConent=
{
handleClick
}
guideContent=
{
(
guideContent=
{
(
<
View
style=
{
{
color
:
'#ffffff'
}
}
>
123123123234234234sdfsdf sdfsdfsdf sdf sdf sdf sdf sdfsd fsd
</
View
>
<
View
style=
{
{
color
:
'#ffffff'
}
}
>
123123123234234234sdfsdf sdfsdfsdf sdf sdf sdf sdf sdfsd fsd
</
View
>
)
}
)
}
...
@@ -156,15 +166,6 @@ const StageComp = (props: StageProps) => {
...
@@ -156,15 +166,6 @@ const StageComp = (props: StageProps) => {
)
)
}
}
const
handleClick
=
()
=>
{
if
(
stage
.
status
!==
StageStatus
.
DISABLED
)
{
/** 从首页进入更新状态 */
updateState
({
isSubmit
:
false
})
navigateTo
({
url
:
`/pages/prepare/index?id=
${
stage
.
id
}
`
})
player
.
stop
()
}
}
return
(
return
(
<
View
<
View
className=
{
classNames
(
props
.
className
,
cs
.
bounce_btn
)
}
className=
{
classNames
(
props
.
className
,
cs
.
bounce_btn
)
}
...
...
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