提交 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>
<div class="course-ware">
<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>
</template>
......@@ -58,9 +61,14 @@ export default {
}
const pages = await Promise.all(pageAll);
this.parentDom.innerHTML = '';
for (let item of pages) {
this.createCanvas(item)
if (!this.visible && pages[0]) {
this.createCanvas(pages[0])
} else {
for (let item of pages) {
this.createCanvas(item)
}
}
this.loadPdf = true;
} catch(err) {
console.log(err)
......@@ -111,10 +119,15 @@ export default {
.course-ware{
padding-top: 20px;
overflow: hidden;
.img{
display: block;
width: 100px;
margin: 40px auto 5px;
}
.tip{
font-size: 14px;
color: #999;
font-size: 12px;
text-align: center;
margin-top: 50px;
}
}
</style>
......@@ -175,6 +175,7 @@ export default {
},
onPause() {
this.reportOnOff(2);
this.reportLeave();
this.isPaused = true;
},
togglePlay() {
......@@ -638,7 +639,7 @@ export default {
color: #fff;
font-size: 12px;
left: 10px;
bottom: 44px;
bottom: 12px;
height: 24px;
line-height: 24px;
padding: 0 12px;
......@@ -669,7 +670,7 @@ export default {
color: #fff;
font-size: 12px;
right: 10px;
bottom: 44px;
bottom: 12px;
height: 24px;
line-height: 24px;
padding: 0 12px 0 22px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册