Commit 7a52f778 authored by liujiangnan's avatar liujiangnan

feat: 添加默认数据

parent aa6ee4e7
......@@ -13,8 +13,6 @@ export class FormComponent implements OnInit {
// 储存对象
item;
test;
constructor(private appRef: ApplicationRef,
private changeDetectorRef: ChangeDetectorRef,
......@@ -49,12 +47,6 @@ export class FormComponent implements OnInit {
}
imageUploadedTest($event) {
this.test = $event.url;
console.log("******"+this.test);
this.save();
}
imageUploaded($event, option) {
option.pic_id = $event.url;
this.save();
......
......@@ -3,7 +3,7 @@
.p-content {
width: 100%;
height: 100%;
background-image: url("/assets/daily-conversation/bg.jpg");
background-image: url("../../assets/daily-conversation/bg.jpg");
@include k-img-bg();
}
......
......@@ -47,7 +47,16 @@ export class PlayComponent implements OnInit {
curOption: any;
ngOnInit() {
this.data = {};
this.data = {
contentObj: {
list: [
{text: 'banana', options: [
{pic_id: "../../assets/daily-conversation/2.png"},
{pic_id: "../../assets/daily-conversation/3.png"}
]}
]
}
};
// 获取数据
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