|
@@ -162,7 +162,7 @@
|
|
|
@click="lookVedio(media.url)"
|
|
|
/> -->
|
|
|
<div style="cursor: pointer" @click="lookText">
|
|
|
- {{ text.length > 0 ? text[0].name : '' }}.doc
|
|
|
+ {{ text.length > 0 ? text[0].name : "" }}.doc
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -752,13 +752,15 @@
|
|
|
>
|
|
|
<el-form style="font-size: 20px">
|
|
|
<el-form-item label="文本标题" class="textTitle">
|
|
|
- <div style="font-size: 20px">{{ text.length > 0 ? text[0].name : '' }}</div>
|
|
|
+ <div style="font-size: 20px">
|
|
|
+ {{ text.length > 0 ? text[0].name : "" }}
|
|
|
+ </div>
|
|
|
<!-- <el-input v-model="AttText.title" auto-complete="off" placeholder="请输入文本标题..."></el-input> -->
|
|
|
</el-form-item>
|
|
|
<div>附文本内容</div>
|
|
|
<!-- <editor-bar v-model="AttText.text" @change="change"></editor-bar> -->
|
|
|
<div
|
|
|
- v-html="text.length > 0 ? text[0].url : '' "
|
|
|
+ v-html="text.length > 0 ? text[0].url : ''"
|
|
|
style="font-size: 18px; padding: 40px 0 0 0"
|
|
|
></div>
|
|
|
</el-form>
|
|
@@ -1256,10 +1258,12 @@ export default {
|
|
|
this.swichTask(0);
|
|
|
|
|
|
this.$nextTick(function () {
|
|
|
- var a =
|
|
|
- document.getElementsByClassName("video-player")[0].offsetHeight;
|
|
|
- document.getElementsByClassName("vedioList")[0].style.height =
|
|
|
- a + "px";
|
|
|
+ setTimeout(() => {
|
|
|
+ var a =
|
|
|
+ document.getElementsByClassName("video-player")[0].offsetHeight;
|
|
|
+ document.getElementsByClassName("vedioList")[0].style.height =
|
|
|
+ a + "px";
|
|
|
+ }, 500);
|
|
|
});
|
|
|
// this.addToolsType(0);
|
|
|
})
|
|
@@ -1674,10 +1678,14 @@ export default {
|
|
|
this.getStudentAsk();
|
|
|
document.scrollingElement.scrollTop = 0;
|
|
|
|
|
|
- window.onresize = function () {
|
|
|
+ // window.onresize = function () {
|
|
|
+ // var a = document.getElementsByClassName("video-player")[0].offsetHeight;
|
|
|
+ // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
|
|
|
+ // };
|
|
|
+ window.addEventListener("resize", () => {
|
|
|
var a = document.getElementsByClassName("video-player")[0].offsetHeight;
|
|
|
document.getElementsByClassName("vedioList")[0].style.height = a + "px";
|
|
|
- };
|
|
|
+ });
|
|
|
},
|
|
|
};
|
|
|
</script>
|