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

讨论问题等

上级 f3c894e1
<template>
<div class="course-comment">
<div class="item" v-for="(item, index) in comments" :key="index">
<div v-show="comments.length" class="item" v-for="(item, index) in comments" :key="index">
<img class="img" :src="item.imageUrl || 'https://file.yunqueyi.com/File/doctor_default.png'" alt="头像" @error="onAvatarError" />
<div class="info-box">
<div class="info-user">
......@@ -23,6 +23,9 @@
</div>
</div>
</div>
<div v-show="!comments.length">
<img class="img-big" src="~@/images/course/no_comment.png" alt="" />
</div>
<div class="go-app" @click="download">
<span>打开App,查看更多讨论内容</span>
</div>
......@@ -91,7 +94,7 @@ export default {
display: flex;
font-size: 14px;
padding: 20px 0;
&::after{
&::after {
position: absolute;
content: "";
left: 0;
......@@ -103,6 +106,11 @@ export default {
border-bottom: 1px solid #F0F0F0;
}
}
.img-big {
display: block;
width: 100px;
margin: 40px auto 5px;
}
.img{
display: block;
width: 32px;
......
......@@ -84,6 +84,11 @@ export default {
canvas.height = viewport.height;
canvas.style.display = 'block';
canvas.style.width = '100%';
if (!this.visible) {
canvas.style['-webkit-filter'] = 'blur(20px)';
canvas.style.filter = 'blur(20px)';
}
let ctx = canvas.getContext("2d");
let renderTask = pdfPage.render({
canvasContext: ctx,
......@@ -100,8 +105,6 @@ export default {
cover.style.background = `url(${coverImg}) no-repeat center center`;
cover.style.backgroundSize = '50px auto';
// cover.style.backgroundColor = 'rgba(255, 255, 255, .98)';
cover.style['-webkit-filter'] = 'blur(20px)';
cover.style.filter = 'blur(20px)';
cover.onclick = () => {
if (!this.$store.getters.logged) {
this.$store.dispatch('goLogin');
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册