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
14a7dd47
Commit
14a7dd47
authored
Apr 08, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
3190e1ec
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
17 deletions
+26
-17
top-header.module.scss
src/pages/group/components/top-header.module.scss
+1
-0
chapter.tsx
src/pages/main/components/chapter.tsx
+4
-4
header.module.scss
src/pages/main/components/header.module.scss
+1
-0
main-component.tsx
src/pages/main/components/main-component.tsx
+4
-1
stage.module.scss
src/pages/main/components/scene/stage.module.scss
+1
-1
index.tsx
src/pages/market/index.tsx
+9
-9
index.tsx
src/pages/prepare/index.tsx
+6
-2
No files found.
src/pages/group/components/top-header.module.scss
View file @
14a7dd47
...
...
@@ -25,6 +25,7 @@
.avatar
{
flex
:
1
;
min-width
:
0
;
margin-right
:
8
PX
;
.name
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
src/pages/main/components/chapter.tsx
View file @
14a7dd47
import
{
View
,
Text
,
Image
}
from
'@tarojs/components'
import
{
View
,
Text
}
from
'@tarojs/components'
import
styles
from
'./chapter.module.scss'
...
...
@@ -9,11 +9,11 @@ const MainHeader = () => {
<
View
className=
{
styles
.
chapterName
}
>
<
Text
>
第 1 单元
</
Text
>
</
View
>
<
View
className=
{
styles
.
chapterTips
}
><
Text
>
单元内容名称单元内容名称单元内容名称单元内容名称
</
Text
></
View
>
<
View
className=
{
styles
.
chapterTips
}
><
Text
>
二年级下·上半学期
</
Text
></
View
>
</
View
>
<
View
className=
{
styles
.
help
}
hoverClass=
{
styles
[
'is-hover-btn'
]
}
>
{
/*
<View className={styles.help} hoverClass={styles['is-hover-btn']}>
<Image src={require('../assets/help.png')} className={styles.icon}></Image>
</
View
>
</View>
*/
}
</
View
>
)
}
...
...
src/pages/main/components/header.module.scss
View file @
14a7dd47
...
...
@@ -33,6 +33,7 @@
.avatar
{
flex
:
1
;
min-width
:
0
;
margin-right
:
8
PX
;
.name
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
src/pages/main/components/main-component.tsx
View file @
14a7dd47
...
...
@@ -55,9 +55,12 @@ const MainPage = () => {
scrollToCurrent
(()
=>
{
updateReady
(
true
)
})
setTimeout
(()
=>
{
updateReady
(
true
)
},
300
)
}
})
},
5
00
)
},
2
00
)
})
}
},
[
isFocus
,
fetchAccount
,
fetchStage
,
page
,
scrollToCurrent
,
updateReady
])
...
...
src/pages/main/components/scene/stage.module.scss
View file @
14a7dd47
...
...
@@ -22,7 +22,7 @@
.roundName
{
// position: absolute;
// bottom: -48px;
margin
:
8px
-
20px
0
-2
0px
;
margin
:
8px
-
160px
0
-16
0px
;
text-align
:
center
;
font-size
:
28px
;
font-weight
:
500
;
...
...
src/pages/market/index.tsx
View file @
14a7dd47
...
...
@@ -25,20 +25,20 @@ const ExchangeItems: ExchangeGoods[] = [
{
title
:
'答题卡'
,
subTitle
:
'答题卡'
,
description
:
'答题卡是不断追求更高档位与排名的必备道具
答题卡是不断追求更高档位与排名的必备道具
'
,
description
:
'答题卡是不断追求更高档位与排名的必备道具'
,
price
:
30
,
stock
:
null
,
img
:
require
(
'./assets/ph.png'
),
},
{
title
:
'月度神秘大礼'
,
subTitle
:
'神秘大礼'
,
description
:
'兑换神秘大礼,线下领取超级大礼'
,
price
:
30
,
stock
:
10
,
img
:
require
(
'./assets/gift.png'
),
}
//
{
//
title: '月度神秘大礼',
//
subTitle: '神秘大礼',
//
description: '兑换神秘大礼,线下领取超级大礼',
//
price: 30,
//
stock: 10,
//
img: require('./assets/gift.png'),
//
}
]
const
StudyMarket
=
()
=>
{
...
...
src/pages/prepare/index.tsx
View file @
14a7dd47
import
{
View
,
Text
,
Image
}
from
'@tarojs/components'
import
{
useMemo
,
useState
,
useEffect
,
useCallback
}
from
'react'
import
{
useMemo
,
useState
,
useEffect
,
useCallback
,
useRef
}
from
'react'
import
{
useRouter
,
redirectTo
,
getMenuButtonBoundingClientRect
,
useShareAppMessage
,
navigateTo
,
showLoading
,
hideLoading
,
useDidShow
}
from
'@tarojs/taro'
import
classNames
from
'classnames'
...
...
@@ -23,6 +23,7 @@ import styles from './index.module.scss'
const
Prepare
=
()
=>
{
const
nav
=
useMemo
(
getMenuButtonBoundingClientRect
,
[])
const
router
=
useRouter
<
{
id
:
string
}
>
()
const
isClickRef
=
useRef
(
false
)
const
[
currentTab
,
setCurrentTab
]
=
useState
(
0
)
const
[
isVisible
,
{
setTrue
,
setFalse
}]
=
useBoolean
(
false
)
const
[
isLoad
,
{
toggle
:
toggleLoad
}]
=
useBoolean
(
true
)
...
...
@@ -85,8 +86,8 @@ const Prepare = () => {
const { run: exchange, loading: spinning } = useRequest(pointToCard, {
immediate: false,
onSuccess: () => {
setFalse()
getQuestionList(+router.params.id || 1).then(() => {
setFalse()
navigateTo({
url: `
/
pages
/
game
/
play
/
index
?
id
=
$
{
router
.
params
.
id
}
`
})
...
...
@@ -98,7 +99,10 @@ const Prepare = () => {
if (cardNum < 1 && !stageDetail?.firstTime) {
setTrue()
} else {
if (isClickRef.current) return
isClickRef.current = true
getQuestionList(+router.params.id || 1).then(() => {
isClickRef.current = false
navigateTo({
url: `
/
pages
/
game
/
play
/
index
?
id
=
$
{
router
.
params
.
id
}
`
})
...
...
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