Commit 2ac8d260 authored by hewenhao's avatar hewenhao

feat: update

parent 21a9fd64
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
}
......@@ -36,7 +36,7 @@ const StudyMarket = () => {
const list: ExchangeGoods[] = useMemo(() => {
return [
{
title: '答题卡',
title: '道具',
subTitle: '答题卡',
description: '答题卡是不断追求更高档位与排名的必备道具',
price: setting.pointToCard,
......@@ -45,7 +45,7 @@ const StudyMarket = () => {
},
{
title: '月度神秘大礼',
title: '礼品屋',
subTitle: '神秘大礼',
description: '兑换神秘大礼,线下领取超级大礼',
price: 1000,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment