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
179e9441
Commit
179e9441
authored
Jun 19, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完成添加桌面引导
parent
12f3db6c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
battle-complete.tsx
src/pages/game/play/components/battle-complete.tsx
+3
-1
chapter.tsx
src/pages/main/main-underground/chapter.tsx
+6
-1
No files found.
src/pages/game/play/components/battle-complete.tsx
View file @
179e9441
...
@@ -4,7 +4,7 @@ import assetsPrepare from '@/assets/oss/assets-prepare'
...
@@ -4,7 +4,7 @@ import assetsPrepare from '@/assets/oss/assets-prepare'
import
classNames
from
'classnames'
import
classNames
from
'classnames'
import
{
useMemo
}
from
'react'
import
{
useMemo
}
from
'react'
import
{
reLaunch
}
from
'@tarojs/taro'
import
{
reLaunch
}
from
'@tarojs/taro'
import
{
useStoreState
}
from
'@/store/hooks'
import
{
useStoreState
,
useStoreActions
}
from
'@/store/hooks'
import
{
getUserRank
}
from
'@/utils'
import
{
getUserRank
}
from
'@/utils'
import
{
getUserLevelIcon
,
getUserLevelName
,
getUserLevelSubName
}
from
'@/constants'
import
{
getUserLevelIcon
,
getUserLevelName
,
getUserLevelSubName
}
from
'@/constants'
...
@@ -12,8 +12,10 @@ import styles from './battle-complete.module.scss'
...
@@ -12,8 +12,10 @@ import styles from './battle-complete.module.scss'
const
BattleComplete
=
()
=>
{
const
BattleComplete
=
()
=>
{
const
pkResult
=
useStoreState
(
states
=>
states
.
gameModel
.
pkResult
)
const
pkResult
=
useStoreState
(
states
=>
states
.
gameModel
.
pkResult
)
const
updateState
=
useStoreActions
(
actions
=>
actions
.
mainModel
.
updateState
)
const
upSelf
=
()
=>
{
const
upSelf
=
()
=>
{
updateState
({
isCreatePkShow
:
false
,
currentPkStage
:
null
})
reLaunch
({
reLaunch
({
url
:
'/pages/main/main'
url
:
'/pages/main/main'
})
})
...
...
src/pages/main/main-underground/chapter.tsx
View file @
179e9441
import
{
View
,
Image
}
from
'@tarojs/components'
import
{
View
,
Image
}
from
'@tarojs/components'
import
assetsMainNext
from
'@/assets/oss/assets-main-next'
import
assetsMainNext
from
'@/assets/oss/assets-main-next'
import
{
getMenuButtonBoundingClientRect
,
getSystemInfoSync
,
navigateTo
}
from
'@tarojs/taro'
import
{
getMenuButtonBoundingClientRect
,
getSystemInfoSync
,
navigateTo
}
from
'@tarojs/taro'
import
{
useStoreActions
,
useStoreState
}
from
'@/store/hooks'
import
{
useMemo
}
from
'react'
import
{
useMemo
}
from
'react'
import
styles
from
'./chapter.module.scss'
import
styles
from
'./chapter.module.scss'
...
@@ -8,6 +9,8 @@ import styles from './chapter.module.scss'
...
@@ -8,6 +9,8 @@ import styles from './chapter.module.scss'
const
MainHeader
=
()
=>
{
const
MainHeader
=
()
=>
{
const
nav
=
useMemo
(
getMenuButtonBoundingClientRect
,
[])
const
nav
=
useMemo
(
getMenuButtonBoundingClientRect
,
[])
const
sys
=
useMemo
(
getSystemInfoSync
,
[])
const
sys
=
useMemo
(
getSystemInfoSync
,
[])
const
completeAddDeskGuide
=
useStoreActions
(
actions
=>
actions
.
guideModel
.
completeAddDeskGuide
)
const
isAddDeskTopGuideComplete
=
useStoreState
(
state
=>
state
.
guideModel
.
isAddDeskTopGuideComplete
)
const
guideStyle
=
useMemo
(()
=>
{
const
guideStyle
=
useMemo
(()
=>
{
return
{
return
{
...
@@ -33,14 +36,16 @@ const MainHeader = () => {
...
@@ -33,14 +36,16 @@ const MainHeader = () => {
地心历险记
地心历险记
</
View
>
</
View
>
</
View
>
</
View
>
{
!
isAddDeskTopGuideComplete
&&
(
<
View
className=
{
styles
.
guide
}
>
<
View
className=
{
styles
.
guide
}
>
<
View
className=
{
styles
.
dot
}
></
View
>
<
View
className=
{
styles
.
dot
}
></
View
>
<
View
className=
{
styles
.
guideText
}
>
保存【PKMath】到桌面,下次练习更方便。
</
View
>
<
View
className=
{
styles
.
guideText
}
>
保存【PKMath】到桌面,下次练习更方便。
</
View
>
<
View
className=
{
styles
.
guideRight
}
style=
{
guideStyle
}
>
<
View
className=
{
styles
.
guideRight
}
style=
{
guideStyle
}
>
<
Image
src=
{
assetsMainNext
[
'finger.png'
].
u
}
className=
{
styles
.
finger
}
style=
{
fingerStyle
}
></
Image
>
<
Image
src=
{
assetsMainNext
[
'finger.png'
].
u
}
className=
{
styles
.
finger
}
style=
{
fingerStyle
}
></
Image
>
<
Image
src=
{
assetsMainNext
[
'close.png'
].
u
}
className=
{
styles
.
close
}
></
Image
>
<
Image
src=
{
assetsMainNext
[
'close.png'
].
u
}
className=
{
styles
.
close
}
onClick=
{
()
=>
completeAddDeskGuide
()
}
></
Image
>
</
View
>
</
View
>
</
View
>
</
View
>
)
}
<
View
className=
{
styles
.
pk
}
onClick=
{
()
=>
navigateTo
({
url
:
'/pages/battles/index'
})
}
>
<
View
className=
{
styles
.
pk
}
onClick=
{
()
=>
navigateTo
({
url
:
'/pages/battles/index'
})
}
>
<
View
className=
{
styles
.
dot
}
></
View
>
<
View
className=
{
styles
.
dot
}
></
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