Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_question2
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
ww_question2
Commits
be1ec04f
Commit
be1ec04f
authored
Aug 10, 2020
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
f07b1776
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
4 deletions
+29
-4
play.component.ts
src/app/play/play.component.ts
+29
-4
No files found.
src/app/play/play.component.ts
View file @
be1ec04f
...
@@ -97,9 +97,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -97,9 +97,9 @@ export class PlayComponent implements OnInit, OnDestroy {
// 数据
// 数据
data
;
data
;
constructor
()
{
constructor
()
{
this
.
rightAudio
.
src
=
'
/
assets/right.mp3
'
;
this
.
rightAudio
.
src
=
'
assets/right.mp3
'
;
this
.
rightAudio
.
load
();
this
.
rightAudio
.
load
();
this
.
wrongAudio
.
src
=
'
/
assets/wrong.mp3
'
;
this
.
wrongAudio
.
src
=
'
assets/wrong.mp3
'
;
this
.
wrongAudio
.
load
();
this
.
wrongAudio
.
load
();
this
.
questionAudio
.
addEventListener
(
'
play
'
,
()
=>
{
this
.
questionAudio
.
addEventListener
(
'
play
'
,
()
=>
{
this
.
playerState
.
next
({
isPlaying
:
true
});
this
.
playerState
.
next
({
isPlaying
:
true
});
...
@@ -115,8 +115,33 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -115,8 +115,33 @@ export class PlayComponent implements OnInit, OnDestroy {
ngOnInit
()
{
ngOnInit
()
{
this
.
data
=
{
this
.
data
=
{
contentObj
:
{}
"
contentObj
"
:
{
};
"
title
"
:
"
ssssss
"
,
"
pic_id
"
:
"
http://staging-teach.cdn.ireadabc.com/5502addf299f5f34dc181f993f81e311.png
"
,
"
options
"
:
[{
"
text
"
:
"
111
"
,
"
pic_id
"
:
null
,
"
right
"
:
false
,
"
type
"
:
1
},
{
"
text
"
:
"
222
"
,
"
pic_id
"
:
null
,
"
right
"
:
true
,
"
type
"
:
1
},
{
"
text
"
:
"
333
"
,
"
pic_id
"
:
null
,
"
right
"
:
false
,
"
type
"
:
1
},
{
"
text
"
:
"
dddd
"
,
"
pic_id
"
:
null
,
"
right
"
:
false
,
"
type
"
:
1
}],
"
question_audio_id
"
:
"
http://staging-teach.cdn.ireadabc.com/ab0872d9ed584c06181d41d9c7c4bf75.mp3
"
}
}
this
.
zoomIn
=
false
;
this
.
zoomIn
=
false
;
this
.
options
=
_
.
get
(
this
.
data
.
contentObj
,
'
options
'
,
[]).
map
(
item
=>
{
this
.
options
=
_
.
get
(
this
.
data
.
contentObj
,
'
options
'
,
[]).
map
(
item
=>
{
item
.
state
=
''
;
item
.
state
=
''
;
...
...
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