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
86557b8f
Commit
86557b8f
authored
Jun 20, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 替换音乐
parent
631e2ec4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
.oss
assets/audio/.oss
+4
-0
Peak A Soul.mp3
assets/audio/Peak A Soul.mp3
+0
-0
assets-audio.ts
src/assets/oss/assets-audio.ts
+3
-0
model.ts
src/pages/main/model.ts
+1
-2
No files found.
assets/audio/.oss
View file @
86557b8f
...
...
@@ -54,5 +54,9 @@
"首页-背景音乐.mp3": {
"u": "https://cdn.jkwljy.com/pk-math/41JjW5zMK8jz2WUzc7GvCnsunENM.mp3",
"ossName": "/pk-math/41JjW5zMK8jz2WUzc7GvCnsunENM.mp3"
},
"Peak A Soul.mp3": {
"u": "https://cdn.jkwljy.com/pk-math/3CA25BTY4TsA2jxzFD52sWhfgmUH.mp3",
"ossName": "/pk-math/3CA25BTY4TsA2jxzFD52sWhfgmUH.mp3"
}
}
assets/audio/Peak A Soul.mp3
0 → 100644
View file @
86557b8f
File added
src/assets/oss/assets-audio.ts
View file @
86557b8f
...
...
@@ -42,5 +42,8 @@ export default {
},
"首页-背景音乐.mp3"
:
{
"u"
:
"https://cdn.jkwljy.com/pk-math/41JjW5zMK8jz2WUzc7GvCnsunENM.mp3"
},
"Peak A Soul.mp3"
:
{
"u"
:
"https://cdn.jkwljy.com/pk-math/3CA25BTY4TsA2jxzFD52sWhfgmUH.mp3"
}
}
as
const
src/pages/main/model.ts
View file @
86557b8f
...
...
@@ -5,11 +5,10 @@ import { createInnerAudioContext, type InnerAudioContext } from '@tarojs/taro'
import
{
AppStoreModel
}
from
'@/store/store-model'
import
{
type
Stage
,
getStageList
}
from
'@/api'
import
audio
from
'@/assets/oss/assets-audio'
import
{
getStorage
,
StorageKeys
,
updateStorage
}
from
'@/utils/storage'
const
getPlayer
=
()
=>
{
const
player
=
createInnerAudioContext
()
player
.
src
=
audio
[
'
首页-背景音乐
.mp3'
].
u
player
.
src
=
audio
[
'
Peak A Soul
.mp3'
].
u
player
.
loop
=
true
return
player
...
...
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