Commit 7a52f778 authored by liujiangnan's avatar liujiangnan

feat: 添加默认数据

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