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
7efaa0a2
Commit
7efaa0a2
authored
Apr 11, 2023
by
raca
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://118.24.71.244/hewenhao/GeekLearnMathWeapp
parents
218aa7e7
c71f181b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
8 deletions
+32
-8
complete-head.tsx
src/pages/game/complete/components/complete-head.tsx
+1
-1
chapter.module.scss
src/pages/main/components/chapter.module.scss
+2
-2
stage-tag.tsx
src/pages/main/components/scene/stage-tag.tsx
+12
-1
index.tsx
src/pages/market/index.tsx
+3
-3
play-audio.ts
src/utils/play-audio.ts
+14
-1
No files found.
src/pages/game/complete/components/complete-head.tsx
View file @
7efaa0a2
...
...
@@ -127,7 +127,7 @@ const GameCompleteHead = () => {
const
text
=
useMemo
(()
=>
{
const
{
text
:
_text
,
second
,
color
}
=
getLevelText
(
gameResult
?.
level
)
if
(
g
etWeight
(
gameResult
?.
levelBefore
)
<
getWeight
(
gameResult
?.
level
)
)
{
if
(
g
ameResult
?.
levelBefore
!==
null
)
{
return
{
text
:
second
,
color
}
}
return
{
text
:
_text
,
color
}
...
...
src/pages/main/components/chapter.module.scss
View file @
7efaa0a2
...
...
@@ -5,8 +5,8 @@
display
:
flex
;
align-items
:
center
;
box-sizing
:
border-box
;
z-index
:
1
;
box-shadow
:
0
1px
14px
rgba
(
0
,
81
,
231
,
0
.1
);
z-index
:
20
;
box-shadow
:
0
1px
14px
rgba
(
0
,
81
,
231
,
.5
);
position
:
relative
;
overflow
:
hidden
;
...
...
src/pages/main/components/scene/stage-tag.tsx
View file @
7efaa0a2
...
...
@@ -5,11 +5,22 @@ import { useFocus } from '@/hooks'
import
{
usePageScroll
,
createIntersectionObserver
,
getCurrentInstance
,
getMenuButtonBoundingClientRect
,
IntersectionObserver
,
nextTick
,
createInnerAudioContext
createInnerAudioContext
,
onAppHide
,
onAppShow
}
from
'@tarojs/taro'
import
audio
from
'@/assets/oss/assets-audio'
let
isHide
=
false
onAppHide
(()
=>
{
isHide
=
true
})
onAppShow
(()
=>
{
isHide
=
false
})
function
palyAudio
(
src
:
string
)
{
if
(
isHide
)
return
// @ts-ignore
const
innerAudioContext
=
createInnerAudioContext
({
useWebAudioImplement
:
true
})
innerAudioContext
.
src
=
src
...
...
src/pages/market/index.tsx
View file @
7efaa0a2
...
...
@@ -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
,
...
...
@@ -71,7 +71,7 @@ const StudyMarket = () => {
const
pric
=
item
.
price
let
disabledText
=
'积分不足'
let
disabled
=
point
<
pric
||
(
item
.
stock
!==
null
&&
item
.
stock
<
1
)
if
(
item
.
title
===
'月度
神秘大礼'
)
{
if
(
item
.
subTitle
===
'
神秘大礼'
)
{
disabled
=
true
if
(
point
>=
pric
)
{
disabledText
=
'敬请期待'
...
...
src/utils/play-audio.ts
View file @
7efaa0a2
import
{
createInnerAudioContext
}
from
'@tarojs/taro'
import
{
createInnerAudioContext
,
onAppHide
,
onAppShow
}
from
'@tarojs/taro'
const
innerAudioContext
=
createInnerAudioContext
()
let
isHide
=
false
onAppHide
(()
=>
{
isHide
=
true
innerAudioContext
.
pause
()
})
onAppShow
(()
=>
{
isHide
=
false
})
export
function
palyAudio
(
src
:
string
)
{
innerAudioContext
.
src
=
src
if
(
!
isHide
)
{
innerAudioContext
.
play
()
}
return
innerAudioContext
}
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