Commit d109f286 authored by liujiaxin's avatar liujiaxin

www

parent c77a46a1
......@@ -58,7 +58,39 @@ export class PlayComponent extends BaseResizeComponent implements OnInit, AfterV
ngOnInit() {
this.data = {contentObj: {pic_id: 'http://staging-teach.cdn.ireadabc.com/5502addf299f5f34dc181f993f81e311.png', imgData: {naturalWidth: 378, naturalHeight: 452, aspectRatio: 0.8362831858407079, width: 723, height: 864.5396825396825, left: 0, top: 0}, parts: [{word: 'aaaaa', data: {x: 94.5, y: 162.79781509336098, width: 189.41866571576762, height: 40.99860606846473}}, {word: '22222222', data: {x: 94.0649961099585, y: 193.66062629668048, width: 189.41866571576762, height: 40.99860606846473}}]}};
this.data = {
contentObj: {
pic_id: 'http://staging-teach.cdn.ireadabc.com/5502addf299f5f34dc181f993f81e311.png',
imgData: {
naturalWidth: 378,
naturalHeight: 452,
aspectRatio: 0.8362831858407079,
width: 723,
height: 864.5396825396825,
left: 0,
top: 0
},
parts: [{
word: 'aaaaa',
data: {
x: 94.5,
y: 162.79781509336098,
width: 189.41866571576762,
height: 40.99860606846473
}
},
{
word: '22222222',
data: {
x: 94.0649961099585,
y: 193.66062629668048,
width: 189.41866571576762,
height: 40.99860606846473
}
}
]
}
};
// 获取数据
const getData = (window as any).courseware.getData;
......
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