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
434ea1a9
Commit
434ea1a9
authored
Jun 20, 2023
by
raca
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/2023-06-12-v1.1' of…
Merge branch 'feature/2023-06-12-v1.1' of
https://118.24.71.244/hewenhao/GeekLearnMathWeapp
into feature/2023-06-12-v1.1
parents
4cf410d9
86699f7a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
10 deletions
+22
-10
index.tsx
src/pages/battles/index.tsx
+8
-0
question-vertical-add-minus.tsx
.../play/components/question/question-vertical-add-minus.tsx
+7
-1
question-vertical-add-minus.tsx
...wrong/components/question/question-vertical-add-minus.tsx
+7
-1
chapter.tsx
src/pages/main/main-underground/chapter.tsx
+0
-8
No files found.
src/pages/battles/index.tsx
View file @
434ea1a9
...
...
@@ -10,6 +10,7 @@ import { View, Text, Image } from '@tarojs/components'
import
Button
from
'@/components/Button'
import
{
useStoreState
,
useStoreActions
}
from
'@/store/hooks'
import
assets
from
'@/assets/oss/assets-pk'
import
{
StageStatus
}
from
'@/api'
import
TopHeader
from
'./components/top-header'
import
PlayerDetails
from
'./components/player-details'
...
...
@@ -21,6 +22,11 @@ const Battles = () => {
const
addPkGuideTimes
=
useStoreActions
((
state
)
=>
state
.
guideModel
.
addPkGuideTimes
)
const
getSetting
=
useStoreActions
((
state
)
=>
state
.
userModel
.
getSetting
)
const
setting
=
useStoreState
((
state
)
=>
state
.
userModel
.
setting
)
const
stageList
=
useStoreState
(
state
=>
state
.
mainModel
.
stageList
)
const
hasPassed
=
useMemo
(()
=>
{
return
stageList
.
findIndex
(
c
=>
c
.
status
===
StageStatus
.
CURRENT
)
>
0
},
[
stageList
])
const
fetchUserSummary
=
useStoreActions
(
(
actions
)
=>
actions
.
battlesModel
.
fetchUserSummary
...
...
@@ -75,6 +81,7 @@ const Battles = () => {
<
pk
-
record
list=
{
summary
?.
records
||
[]
}
config=
{
setting
}
ref=
{
pkRecords
}
/>
</
View
>
</
View
>
{
hasPassed
&&
(
<
View
className=
{
styles
.
bottom
}
>
<
Button
size=
"large"
...
...
@@ -85,6 +92,7 @@ const Battles = () => {
<
Image
src=
{
assets
[
'pk.png'
].
u
}
className=
{
styles
.
bottomText
}
/>
</
Button
>
</
View
>
)
}
</
View
>
)
}
...
...
src/pages/game/play/components/question/question-vertical-add-minus.tsx
View file @
434ea1a9
...
...
@@ -78,7 +78,13 @@ const formatContent = (str: string): FormatContentRet => {
}
}
const
list
=
genNewNode
(
str
)
const
list
=
genNewNode
(
str
).
filter
(
c
=>
{
if
(
c
.
type
===
'text'
)
{
return
!
/
\s
/
.
test
(
c
.
content
)
}
return
true
})
let
signIndex
=
list
.
findIndex
(
c
=>
c
.
type
===
'text'
&&
c
.
content
===
'+'
)
let
signal
:
FormatContentRet
[
'sign'
]
=
'ADD'
...
...
src/pages/game/wrong/components/question/question-vertical-add-minus.tsx
View file @
434ea1a9
...
...
@@ -78,7 +78,13 @@ const formatContent = (str: string): FormatContentRet => {
}
}
const
list
=
genNewNode
(
str
)
const
list
=
genNewNode
(
str
).
filter
(
c
=>
{
if
(
c
.
type
===
'text'
)
{
return
!
/
\s
/
.
test
(
c
.
content
)
}
return
true
})
let
signIndex
=
list
.
findIndex
(
c
=>
c
.
type
===
'text'
&&
c
.
content
===
'+'
)
let
signal
:
FormatContentRet
[
'sign'
]
=
'ADD'
...
...
src/pages/main/main-underground/chapter.tsx
View file @
434ea1a9
...
...
@@ -5,18 +5,12 @@ import { useStoreActions, useStoreState } from '@/store/hooks'
import
{
useMemo
}
from
'react'
import
styles
from
'./chapter.module.scss'
import
{
StageStatus
}
from
'./scene/constants'
const
MainHeader
=
()
=>
{
const
nav
=
useMemo
(
getMenuButtonBoundingClientRect
,
[])
const
sys
=
useMemo
(
getSystemInfoSync
,
[])
const
completeAddDeskGuide
=
useStoreActions
(
actions
=>
actions
.
guideModel
.
completeAddDeskGuide
)
const
isAddDeskTopGuideComplete
=
useStoreState
(
state
=>
state
.
guideModel
.
isAddDeskTopGuideComplete
)
const
stageList
=
useStoreState
(
state
=>
state
.
mainModel
.
stageList
)
const
hasPassed
=
useMemo
(()
=>
{
return
stageList
.
findIndex
(
c
=>
c
.
status
===
StageStatus
.
CURRENT
)
>
0
},
[
stageList
])
const
guideStyle
=
useMemo
(()
=>
{
return
{
...
...
@@ -52,12 +46,10 @@ const MainHeader = () => {
</
View
>
</
View
>
)
}
{
hasPassed
&&
(
<
View
className=
{
styles
.
pk
}
onClick=
{
()
=>
navigateTo
({
url
:
'/pages/battles/index'
})
}
>
{
/* <View className={styles.dot}></View> */
}
<
Image
src=
{
assetsMainNext
[
'pk-btn.png'
].
u
}
className=
{
styles
.
pkIcon
}
></
Image
>
</
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