提交 a4b3e935 编写于 作者: guangjun.yang's avatar guangjun.yang

Merge branch 'dev-coursedetail-0817' of...

Merge branch 'dev-coursedetail-0817' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam into dev-coursedetail-0817

* 'dev-coursedetail-0817' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam:
  修改提示文字样式
  修改样式
  修改上报
<template> <template>
<div class="course-ware"> <div class="course-ware">
<div v-show="url && loadPdf" class="canvas-box"></div> <div v-show="url && loadPdf" class="canvas-box"></div>
<p v-show="!url" class="tip">无相关课件</p> <template v-show="!url">
<img class="img" src="~@/images/course/empty_ware.png" alt="" />
<p class="tip">暂无相关课件</p>
</template>
</div> </div>
</template> </template>
...@@ -58,9 +61,14 @@ export default { ...@@ -58,9 +61,14 @@ export default {
} }
const pages = await Promise.all(pageAll); const pages = await Promise.all(pageAll);
this.parentDom.innerHTML = ''; this.parentDom.innerHTML = '';
if (!this.visible && pages[0]) {
this.createCanvas(pages[0])
} else {
for (let item of pages) { for (let item of pages) {
this.createCanvas(item) this.createCanvas(item)
} }
}
this.loadPdf = true; this.loadPdf = true;
} catch(err) { } catch(err) {
console.log(err) console.log(err)
...@@ -111,10 +119,15 @@ export default { ...@@ -111,10 +119,15 @@ export default {
.course-ware{ .course-ware{
padding-top: 20px; padding-top: 20px;
overflow: hidden; overflow: hidden;
.img{
display: block;
width: 100px;
margin: 40px auto 5px;
}
.tip{ .tip{
font-size: 14px; color: #999;
font-size: 12px;
text-align: center; text-align: center;
margin-top: 50px;
} }
} }
</style> </style>
...@@ -175,6 +175,7 @@ export default { ...@@ -175,6 +175,7 @@ export default {
}, },
onPause() { onPause() {
this.reportOnOff(2); this.reportOnOff(2);
this.reportLeave();
this.isPaused = true; this.isPaused = true;
}, },
togglePlay() { togglePlay() {
...@@ -638,7 +639,7 @@ export default { ...@@ -638,7 +639,7 @@ export default {
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
left: 10px; left: 10px;
bottom: 44px; bottom: 12px;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
padding: 0 12px; padding: 0 12px;
...@@ -669,7 +670,7 @@ export default { ...@@ -669,7 +670,7 @@ export default {
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
right: 10px; right: 10px;
bottom: 44px; bottom: 12px;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
padding: 0 12px 0 22px; padding: 0 12px 0 22px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册