Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_mb_08
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
dfzx_mb_08
Commits
98133fde
Commit
98133fde
authored
Oct 28, 2020
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug:
parent
01501c48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
play.component.ts
src/app/play/play.component.ts
+10
-7
No files found.
src/app/play/play.component.ts
View file @
98133fde
...
@@ -136,14 +136,17 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -136,14 +136,17 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
data
.
contentObj
=
{};
this
.
data
.
contentObj
=
{};
}
}
console
.
log
(
"
11111111111111111
"
);
this
.
initDefaultData
();
this
.
initDefaultData
();
console
.
log
(
"
222222222222222222
"
);
this
.
initAudio
();
this
.
initAudio
();
console
.
log
(
"
33333333333333
"
);
this
.
initImg
();
this
.
initImg
();
console
.
log
(
"
4444444444444444
"
);
this
.
initListener
();
this
.
initListener
();
console
.
log
(
"
5555555555555555
"
);
},
this
.
KEY
);
},
this
.
KEY
);
}
}
...
@@ -359,7 +362,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -359,7 +362,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
initImg
()
{
initImg
()
{
console
.
log
(
"
666666666666666666
"
);
const
contentObj
=
this
.
data
.
contentObj
;
const
contentObj
=
this
.
data
.
contentObj
;
if
(
contentObj
)
{
if
(
contentObj
)
{
...
@@ -389,12 +392,12 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -389,12 +392,12 @@ export class PlayComponent implements OnInit, OnDestroy {
// 预加载资源
// 预加载资源
console
.
log
(
"
777777777777777
"
);
this
.
loadResources
().
then
(()
=>
{
this
.
loadResources
().
then
(()
=>
{
// this.setfontData();
// this.setfontData();
console
.
log
(
"
888888888888888
"
);
window
[
'
air
'
].
hideAirClassLoading
(
this
.
KEY
,
this
.
data
);
window
[
'
air
'
].
hideAirClassLoading
(
this
.
KEY
,
this
.
data
);
console
.
log
(
"
9999999999999999
"
);
this
.
init
();
this
.
init
();
this
.
update
();
this
.
update
();
});
});
...
@@ -1316,13 +1319,13 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1316,13 +1319,13 @@ export class PlayComponent implements OnInit, OnDestroy {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
audio
=
new
Audio
();
const
audio
=
new
Audio
();
audio
.
oncanplay
=
(
a
)
=>
{
audio
.
oncanplay
=
(
a
)
=>
{
resolve
();
};
};
audio
.
onerror
=
()
=>
{
audio
.
onerror
=
()
=>
{
reject
();
reject
();
};
};
audio
.
src
=
url
;
audio
.
src
=
url
;
audio
.
load
();
audio
.
load
();
resolve
();
});
});
}
}
...
...
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