|
@@ -994,6 +994,22 @@ export default defineComponent({
|
|
|
|
|
|
// 上一个知识点, 下一个知识点
|
|
|
const handlePreAndNext = (type: string) => {
|
|
|
+
|
|
|
+ if(data.source === 'search') {
|
|
|
+ // 判断是否需要会员
|
|
|
+ const index = type === "up" ? popupData.activeIndex - 1 : popupData.activeIndex + 1
|
|
|
+ const item = data.itemList[index]
|
|
|
+ const parentItem = detailList.value?.find((n: any) => n.lessonCoursewareDetailId == item?.lessonCoursewareDetailId)
|
|
|
+ if(String(parentItem?.accessScope) === '1') {
|
|
|
+ const hasVip = handleCheckVip()
|
|
|
+ console.log(hasVip, parentItem, "parentItem");
|
|
|
+ if (!hasVip) {
|
|
|
+ handleStop()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (type === 'up') {
|
|
|
handleSwipeChange(popupData.activeIndex - 1)
|
|
|
} else {
|