Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_03_1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
OP_03_1
Commits
1d79a986
Commit
1d79a986
authored
Dec 01, 2021
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改音频
parent
44b71499
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
59 deletions
+58
-59
OP_03_1.fire
play/assets/OP_03_1/scene/OP_03_1.fire
+3
-1
OP_03_1.js
play/assets/OP_03_1/scene/OP_03_1.js
+9
-2
defaultData.js
play/assets/OP_03_1/script/defaultData.js
+46
-56
No files found.
play/assets/OP_03_1/scene/OP_03_1.fire
View file @
1d79a986
...
@@ -2594,7 +2594,9 @@
...
@@ -2594,7 +2594,9 @@
"__id__": 55
"__id__": 55
},
},
"_enabled": true,
"_enabled": true,
"_clip": null,
"_clip": {
"__uuid__": "58b7914c-5652-4c51-b14e-5c99e5627fcc"
},
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
...
...
play/assets/OP_03_1/scene/OP_03_1.js
View file @
1d79a986
...
@@ -130,9 +130,16 @@ cc.Class({
...
@@ -130,9 +130,16 @@ cc.Class({
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
).
concat
(
this
.
_animaResList
);
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
).
concat
(
this
.
_animaResList
);
cc
.
assetManager
.
loadAny
(
preloadArr
,
null
,
null
,
(
err
,
data
)
=>
{
cc
.
assetManager
.
loadAny
(
preloadArr
,
null
,
null
,
(
err
,
data
)
=>
{
this
.
loadEnd
();
if
(
window
&&
window
[
"
air
"
])
{
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
hideAirClassLoading
();
cc
.
find
(
'
Canvas
'
).
opacity
=
0
;
window
.
air
.
onCourseInScreen
=
(
next
)
=>
{
cc
.
find
(
'
Canvas
'
).
opacity
=
255
;
this
.
loadEnd
();
next
();
}
window
.
air
.
hideAirClassLoading
();
}
else
{
this
.
loadEnd
();
}
}
cc
.
debug
.
setDisplayStats
(
false
);
cc
.
debug
.
setDisplayStats
(
false
);
...
...
play/assets/OP_03_1/script/defaultData.js
View file @
1d79a986
export
const
defaultData
=
{
export
const
defaultData
=
{
"
exercises
"
:{
"
exercises
"
:
{
"
wordArr
"
:[
"
wordArr
"
:
[{
{
"
val
"
:
"
A
"
,
"
val
"
:
"
A
"
,
"
lrcData
"
:
{
"
lrcData
"
:{
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/e896863da284cf8ba738caf98d568d39.mp3
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/e896863da284cf8ba738caf98d568d39.mp3
"
,
"
fontSize
"
:
24
,
"
fontSize
"
:
24
,
"
lineHeight
"
:
32
,
"
lineHeight
"
:
32
,
"
lyrics
"
:
[{
"
lyrics
"
:[
"
time
"
:
0
,
{
"
data
"
:
""
,
"
time
"
:
0.040271
,
"
newLine
"
:
false
"
data
"
:
""
,
},
{
"
newLine
"
:
false
"
time
"
:
1.211424
,
"
data
"
:
""
,
"
newLine
"
:
false
},
{
"
time
"
:
2.411394
,
"
data
"
:
""
,
"
newLine
"
:
false
}]
},
},
{
"
audioUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/e896863da284cf8ba738caf98d568d39.mp3
"
"
time
"
:
1.277515
,
},
{
"
data
"
:
""
,
"
val
"
:
"
a
"
,
"
newLine
"
:
false
"
lrcData
"
:
{
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/9747c77fc914684e151aac636e1b47b6.mp3
"
,
"
fontSize
"
:
24
,
"
lineHeight
"
:
32
,
"
lyrics
"
:
[{
"
time
"
:
0
,
"
data
"
:
""
,
"
newLine
"
:
false
},
{
"
time
"
:
1.258075
,
"
data
"
:
""
,
"
newLine
"
:
false
},
{
"
time
"
:
2.532695
,
"
data
"
:
""
,
"
newLine
"
:
false
}]
},
},
{
"
audioUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/9747c77fc914684e151aac636e1b47b6.mp3
"
"
time
"
:
2.574908
,
}],
"
data
"
:
""
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/d125fe9022b0528cfbb621dd5b9f701a.png
"
"
newLine
"
:
false
}
]
}
},
{
"
val
"
:
"
a
"
,
"
lrcData
"
:{
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/9747c77fc914684e151aac636e1b47b6.mp3
"
,
"
fontSize
"
:
24
,
"
lineHeight
"
:
32
,
"
lyrics
"
:[
{
"
time
"
:
0.120777
,
"
data
"
:
""
,
"
newLine
"
:
false
},
{
"
time
"
:
1.158266
,
"
data
"
:
""
,
"
newLine
"
:
false
},
{
"
time
"
:
2.447526
,
"
data
"
:
""
,
"
newLine
"
:
false
}
]
}
}
],
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/101cdabba6404b73292d3b676f4683b1.png
"
,
"
audioUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/bbab99eb9f5fe3cbe2d24cf80594d8c9.mp3
"
}
}
}
}
...
...
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