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
2ac8d260
Commit
2ac8d260
authored
Apr 11, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
21a9fd64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
lazy-player.tsx
src/pages/group/components/lazy-player.tsx
+18
-0
index.tsx
src/pages/market/index.tsx
+2
-2
No files found.
src/pages/group/components/lazy-player.tsx
0 → 100644
View file @
2ac8d260
import
{
useStoreState
}
from
'@/store/hooks'
import
{
useFocus
}
from
'@/hooks'
import
{
useEffect
}
from
'react'
export
function
LazyPlayer
()
{
const
player
=
useStoreState
(
state
=>
state
.
mainModel
.
player
)
const
isFocus
=
useFocus
()
useEffect
(()
=>
{
if
(
isFocus
)
{
player
.
play
()
}
else
{
player
.
pause
()
}
},
[
player
,
isFocus
])
return
null
}
src/pages/market/index.tsx
View file @
2ac8d260
...
@@ -36,7 +36,7 @@ const StudyMarket = () => {
...
@@ -36,7 +36,7 @@ const StudyMarket = () => {
const
list
:
ExchangeGoods
[]
=
useMemo
(()
=>
{
const
list
:
ExchangeGoods
[]
=
useMemo
(()
=>
{
return
[
return
[
{
{
title
:
'
答题卡
'
,
title
:
'
道具
'
,
subTitle
:
'答题卡'
,
subTitle
:
'答题卡'
,
description
:
'答题卡是不断追求更高档位与排名的必备道具'
,
description
:
'答题卡是不断追求更高档位与排名的必备道具'
,
price
:
setting
.
pointToCard
,
price
:
setting
.
pointToCard
,
...
@@ -45,7 +45,7 @@ const StudyMarket = () => {
...
@@ -45,7 +45,7 @@ const StudyMarket = () => {
},
},
{
{
title
:
'
月度神秘大礼
'
,
title
:
'
礼品屋
'
,
subTitle
:
'神秘大礼'
,
subTitle
:
'神秘大礼'
,
description
:
'兑换神秘大礼,线下领取超级大礼'
,
description
:
'兑换神秘大礼,线下领取超级大礼'
,
price
:
1000
,
price
:
1000
,
...
...
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