Commit 3c1ab92f authored by liujiangnan's avatar liujiangnan

feat: 封面

parent afeac0c0
......@@ -92,6 +92,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
onImageUploadSuccess(e) {
this.item.contentObj.pic_id = e.url;
(window as any).courseware.sendEvent("screenshot", {"url": e.url}, this.saveKey);
this.save();
}
......
......@@ -60,7 +60,7 @@
border: 1px solid #555;
position: absolute;
right: 3rem;
top: 60vh;
bottom: 1vh;
background-color: white;
padding: 0.1rem 1rem;
border-radius: 1rem;
......
......@@ -69,11 +69,9 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
const getData = ( window as any).courseware.getData;
getData((data) => {
if (data && typeof data === 'object') {
console.log(3333, data);
this.data = data;
}
console.log(4444, data);
this.audio.pause();
this.audio.currentTime = 0;
this.isPlaying = false;
......
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