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
c899ab2a
Commit
c899ab2a
authored
Jun 20, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化引导UI
parent
9ba1f079
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
stage.module.scss
src/pages/main/main-underground/scene/stage.module.scss
+11
-0
stage.tsx
src/pages/main/main-underground/scene/stage.tsx
+6
-2
No files found.
src/pages/main/main-underground/scene/stage.module.scss
View file @
c899ab2a
...
@@ -57,6 +57,17 @@
...
@@ -57,6 +57,17 @@
color
:
#FFFFFF
;
color
:
#FFFFFF
;
line-height
:
50px
;
line-height
:
50px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
&
.place_0
{
margin-left
:
-200px
;
}
&
.place_1
{
margin-left
:
-390px
;
}
&
.place_2
{
margin-left
:
0
;
}
.em
{
.em
{
font-size
:
48px
;
font-size
:
48px
;
font-weight
:
600
;
font-weight
:
600
;
...
...
src/pages/main/main-underground/scene/stage.tsx
View file @
c899ab2a
...
@@ -154,10 +154,14 @@ const StageComp = (props: StageProps) => {
...
@@ -154,10 +154,14 @@ const StageComp = (props: StageProps) => {
const
updateGuideState
=
useStoreActions
(
state
=>
state
.
guideModel
.
updateState
)
const
updateGuideState
=
useStoreActions
(
state
=>
state
.
guideModel
.
updateState
)
const
isPkGuideShow
=
useMemo
(()
=>
{
const
isPkGuideShow
=
useMemo
(()
=>
{
const
force
=
pkGuideStep
===
2
&&
pkGuideActive
&&
stage
.
$stageIndex
===
1
if
(
force
)
{
return
force
}
if
(
stage
.
$lastPassedStage
)
{
if
(
stage
.
$lastPassedStage
)
{
return
showPkGuideFromHis
return
showPkGuideFromHis
}
}
return
pkGuideStep
===
2
&&
pkGuideActive
&&
stage
.
$stageIndex
===
1
},
[
pkGuideActive
,
pkGuideStep
,
stage
,
showPkGuideFromHis
])
},
[
pkGuideActive
,
pkGuideStep
,
stage
,
showPkGuideFromHis
])
const
handleClick
=
()
=>
{
const
handleClick
=
()
=>
{
...
@@ -235,7 +239,7 @@ const StageComp = (props: StageProps) => {
...
@@ -235,7 +239,7 @@ const StageComp = (props: StageProps) => {
guideContent=
{
(
guideContent=
{
(
<
View
className=
{
styles
.
pk_guide
}
>
<
View
className=
{
styles
.
pk_guide
}
>
<
Image
src=
{
assetsGuide
[
'longpress.png'
].
u
}
className=
{
styles
.
pk_guide_finger
}
></
Image
>
<
Image
src=
{
assetsGuide
[
'longpress.png'
].
u
}
className=
{
styles
.
pk_guide_finger
}
></
Image
>
<
View
className=
{
styles
.
pk_guide_text
}
><
Text
className=
{
styles
.
em
}
>
长按
</
Text
>
已通关的关卡,启动PK模式~
</
View
>
<
View
className=
{
classNames
(
styles
.
pk_guide_text
,
styles
[
`place_${stage.index % 3}`
])
}
><
Text
className=
{
styles
.
em
}
>
长按
</
Text
>
已通关的关卡,启动PK模式~
</
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