|
|
@@ -962,8 +962,20 @@ export default defineComponent({
|
|
|
const handleSwipeChange = async (index: number) => {
|
|
|
if(data.source === 'search') {
|
|
|
const item = data.itemList[index];
|
|
|
- console.log(item, detailList.value, "value");
|
|
|
- data.detail = detailList.value?.find((child: any) => child.lessonCoursewareDetailId === item.lessonCoursewareDetailId)
|
|
|
+ // console.log(item, detailList.value, "value");
|
|
|
+
|
|
|
+ // return
|
|
|
+ const detail = detailList.value?.find((child: any) => child.lessonCoursewareDetailId === item.lessonCoursewareDetailId)
|
|
|
+ // 自动切换的时候判断是否需要可以播放
|
|
|
+ if(String(detail?.accessScope) === '1') {
|
|
|
+ const hasVip = handleCheckVip(false)
|
|
|
+ if (!hasVip) {
|
|
|
+ handleStop()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ data.detail = detail
|
|
|
popupData.tabActive = item.knowledgePointId;
|
|
|
popupData.itemActive = item.id;
|
|
|
popupData.itemName = item.name;
|