Sfoglia il codice sorgente

学生课件播放-优化

liushengqiang 1 anno fa
parent
commit
5819eee2db

+ 1 - 2
src/views/courseware-list/component/book/index.module.less

@@ -66,12 +66,11 @@
     position: relative;
     padding: 14Px;
     height: 100%;
-    overflow-y: auto;
+    overflow: hidden;
 
     .item {
         display: flex;
         justify-content: space-between;
-        align-items: center;
         font-size: 14px;
         font-weight: 600;
         color: #333;

+ 4 - 4
src/views/courseware-list/component/book/index.tsx

@@ -183,11 +183,11 @@ export default defineComponent({
       }
     );
     const handleOpenPlay = (item: any) => {
-      if (!item.containMaterial) {
-        showToast('暂无资源');
-        return;
-      }
       if (item.id) {
+        if (!item.containMaterial) {
+          showToast('暂无资源');
+          return;
+        }
         localStorage.setItem('lastTime', item.id);
         const query = queryString.stringify({
           id: item.id,

+ 1 - 0
src/views/courseware-play/index.module.less

@@ -199,6 +199,7 @@
 
 .popup {
   background: rgba(0, 0, 0, 0.5);
+  box-shadow: -5px 0 10px 0 rgba(0, 0, 0, 0.1);
 }
 
 .overlayClass {

+ 1 - 1
src/views/courseware-play/index.tsx

@@ -123,7 +123,7 @@ export default defineComponent({
         data.knowledgePointList = res.data.map((item: any) => {
           return {
             ...item,
-            url: item.coverImg
+            url: item.type === 'SONG' ? 'https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687916228530.png' : item.coverImg
           };
         });
       }