浏览代码

课程资源无预览文件 隐藏占位

la 2 年之前
父节点
当前提交
5374550f40
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/pages/courseResourcesChapter.vue

+ 3 - 3
src/pages/courseResourcesChapter.vue

@@ -51,7 +51,7 @@
 
           </div>
         </div>
-        <div class="chapterAllIn_right">
+        <div class="chapterAllIn_right" v-show="courseDetailData.file_preview">
           <div class="normalT">预览</div>
           <div class="reviewAll">
             <iframe class="network_show" name="content_frame" :src="courseDetailData.file_preview" frameborder=0  scrolling="no"></iframe>
@@ -216,8 +216,7 @@ import { user } from "@/store/user.js";
       margin-bottom:20px;
     }
     .chapterAllIn_left{
-      width:65%;
-      margin-right:10px;
+     
       box-sizing:border-box;
       padding:10px;
       .sourceWidthCoverList{
@@ -322,6 +321,7 @@ import { user } from "@/store/user.js";
       box-shadow: 2px 10px 24px 0px rgba(161,153,168,0.18);
       box-sizing: border-box;
       padding:1%;
+      margin-left:10px;
       .reviewAll{
         height: 400px;
         .network_show{