Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_question
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_question
Commits
8a5c234c
Commit
8a5c234c
authored
Aug 10, 2020
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www
parent
37b631eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
play.component.ts
src/app/play/play.component.ts
+28
-3
No files found.
src/app/play/play.component.ts
View file @
8a5c234c
...
...
@@ -94,9 +94,9 @@ export class PlayComponent implements OnInit, OnDestroy {
// 数据
data
;
constructor
()
{
this
.
rightAudio
.
src
=
'
/
assets/right.mp3
'
;
this
.
rightAudio
.
src
=
'
assets/right.mp3
'
;
this
.
rightAudio
.
load
();
this
.
wrongAudio
.
src
=
'
/
assets/wrong.mp3
'
;
this
.
wrongAudio
.
src
=
'
assets/wrong.mp3
'
;
this
.
wrongAudio
.
load
();
}
...
...
@@ -105,7 +105,32 @@ export class PlayComponent implements OnInit, OnDestroy {
ngOnInit
()
{
this
.
data
=
{
contentObj
:
{}
contentObj
:
{
pic_id
:
'
http://staging-teach.cdn.ireadabc.com/5502addf299f5f34dc181f993f81e311.png
'
,
title
:
'
123123123
'
,
options
:
[{
text
:
'
1111
'
,
pic_id
:
null
,
right
:
true
,
type
:
3
,
audio_id
:
'
http://staging-teach.cdn.ireadabc.com/ab0872d9ed584c06181d41d9c7c4bf75.mp3
'
},
{
text
:
'
222
'
,
pic_id
:
'
http://staging-teach.cdn.ireadabc.com/d4bf481e893b0a46cac9eef21930f822.png
'
,
right
:
false
,
type
:
2
},
{
text
:
'
3333
'
,
pic_id
:
null
,
right
:
false
,
type
:
1
},
{
text
:
'
4444
'
,
pic_id
:
null
,
right
:
false
,
type
:
1
}]
}
};
this
.
zoomIn
=
false
;
this
.
options
=
_
.
get
(
this
.
data
.
contentObj
,
'
options
'
,
[]).
map
(
item
=>
{
...
...
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