Commit 8a5c234c authored by liujiaxin's avatar liujiaxin

www

parent 37b631eb
......@@ -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 => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment