lex-xin 2 months ago
parent
commit
9c59eb27b1

+ 1 - 1
src/views/courseList/index.module.less

@@ -3,7 +3,7 @@
   background-color: #F8F8F8;;
   background-image: url('./image/list-top-bg.png'); // linear-gradient(180deg, #7DEFE6 0%, rgba(248, 248, 248, 0) 315px);
   background-repeat: no-repeat;
-  background-size: contain;
+  background-size: 100%;
   // padding: 0 0 10px;
   box-sizing: border-box;
   display: flex;

+ 1 - 0
src/views/coursewarePlay/component/point.module.less

@@ -50,6 +50,7 @@
     font-size: 14px;
     .loadingText {
       padding-left: 8px;
+      color: rgba(255, 255, 255, 0.8);
     }
   }
 }

+ 1 - 1
src/views/coursewarePlay/component/points-search.tsx

@@ -97,7 +97,7 @@ export default defineComponent({
         </div>
         <div class={styles.content}>
         {props.loading && <div class={styles.lading}>
-            <Loading size={24} color='#fff' /> <span class={styles.loadingText}>加载中...</span>
+            <Loading size={24} color='rgba(255, 255, 255, 0.8)' /> <span class={styles.loadingText}>加载中...</span>
           </div>}
           
           {/* {props.loading && <OLoading />} */}

+ 3 - 3
src/views/coursewarePlay/index.tsx

@@ -536,7 +536,7 @@ export default defineComponent({
           );
           _firstIndex = _firstIndex > -1 ? _firstIndex : 0;
           const item = allList[_firstIndex];
-          console.log(item, 'item')
+          // console.log(item, 'item')
           // console.log(_firstIndex, '_firstIndex', route.query.kId, 'route.query.kId', item)
           // 是否自动播放
           if (activeData.isAutoPlay) {
@@ -889,8 +889,8 @@ export default defineComponent({
     // 轮播切换
     const handleSwipeChange = async (index: number) => {
       if(data.source === 'search') {
-        // const item = data.itemList[index];
-        // data.detail = detailList.value?.find((child: any) => child.coursewareDetailId === item.coursewareDetailId)
+        const item = data.itemList[index];
+        data.detail = detailList.value?.find((child: any) => child.coursewareDetailId === item.coursewareDetailId)
       }
       // 如果是当前正在播放 或者是视频最后一个
       if (popupData.activeIndex == index) return;