Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy17_hds
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
hy17_hds
Commits
0458e2d2
Commit
0458e2d2
authored
Jun 22, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
喊大山完成
parent
072e102e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
23 deletions
+13
-23
hy01_danci.ts
assets/hy01_danci/scene/hy01_danci.ts
+11
-11
defaultData_hy01_danci.ts
assets/hy01_danci/script/defaultData_hy01_danci.ts
+2
-12
No files found.
assets/hy01_danci/scene/hy01_danci.ts
View file @
0458e2d2
...
...
@@ -36,13 +36,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
current
:
number
initData
()
{
this
.
sentence_list
=
[{
time
:
2
,
content
:
'
While there is life there is hope
'
},
{
time
:
12
,
content
:
'
While there is life there is apple
'
}
]
let
data
=
this
.
data
;
this
.
sentence_list
=
data
.
questions
.
map
(
question
=>
{
return
{
time
:
question
.
time
,
content
:
question
.
text
}
}
)
}
private
layer_bg
:
cc
.
Node
;
...
...
@@ -238,10 +238,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
playVoice
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
resolve
(
''
);
},
3
*
1000
);
return
;
//
setTimeout(() => {
//
resolve('');
//
}, 3 * 1000);
//
return;
// 播放三遍音效
pg
.
audio
.
playAudioByUrlVolume
(
this
.
recordAudio
,
0.8
,
()
=>
{
pg
.
audio
.
playAudioByUrlVolume
(
this
.
recordAudio
,
0.5
,
()
=>
{
...
...
assets/hy01_danci/script/defaultData_hy01_danci.ts
View file @
0458e2d2
export
const
defaultData
=
{
"
recordFlag
"
:
true
,
"
title
"
:
"
test
"
,
"
questionText
"
:
""
,
"
questionTextAudio
"
:
""
,
"
questions
"
:
[
{
"
questionAudio
"
:
""
,
"
duration
"
:
120
,
"
options
"
:
[
{
"
type
"
:
"
img_audio
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/875862129c75a075b3d710f541258a00.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/43839adb578c7e01456748b8a176a0c3_l.mp3
"
,
"
text
"
:
""
,
"
duration
"
:
10
,
"
content
"
:
"
egg
"
,
"
right
"
:
false
},
{
"
type
"
:
"
img_txt_audio
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/011cf423d6fd8760e810644ca6070e34.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/43839adb578c7e01456748b8a176a0c3_l.mp3
"
,
"
text
"
:
"
hammer
"
,
"
duration
"
:
10
,
"
content
"
:
"
hammer
"
,
"
right
"
:
false
},
{
"
type
"
:
"
img_txt_audio
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/befdc1801d93fd95b3a8ee7c7a2d2d05.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/43839adb578c7e01456748b8a176a0c3_l.mp3
"
,
"
text
"
:
"
clound
"
,
"
duration
"
:
10
,
"
content
"
:
"
clound
"
,
"
right
"
:
false
,
"
audioName
"
:
"
敲碎蛋的声音.mp3
"
}]
}],
"
bgAudio
"
:
""
,
"
bgAudioName
"
:
""
,
"
audioName
"
:
""
"
recordFlag
"
:
false
,
"
title
"
:
""
,
"
questionText
"
:
""
,
"
questionTextAudio
"
:
""
,
"
questions
"
:
[{
"
text
"
:
"
this is info
"
,
"
time
"
:
10
},
{
"
text
"
:
"
test some thing.
"
,
"
time
"
:
10
}],
"
bgAudio
"
:
""
,
"
bgAudioName
"
:
""
,
"
audioName
"
:
""
}
// {
// "recordFlag": true,
...
...
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