|
@@ -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;
|