|
@@ -56,6 +56,14 @@ export default defineComponent({
|
|
|
if (value == 'hidden') {
|
|
|
handleStop()
|
|
|
}
|
|
|
+ if (value === "visible") {
|
|
|
+ if(data.source === 'search') {
|
|
|
+ getSearchDetail({
|
|
|
+ type: 'visible',
|
|
|
+ search: data.search
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
)
|
|
|
/** 设置播放容器 16:9 */
|
|
@@ -426,10 +434,8 @@ export default defineComponent({
|
|
|
: null;
|
|
|
const useStatus = materialRefs.length > 0
|
|
|
? materialRefs[0]?.extend?.useStatus : null
|
|
|
- const isLock = useStatus === 'LOCK' && state.platformType === "STUDENT" ? true : false
|
|
|
return {
|
|
|
...item,
|
|
|
- isLock,
|
|
|
materialMusicId,
|
|
|
content: item.content,
|
|
|
coursewareDetailId: itemResult.lessonCoursewareDetailId,
|
|
@@ -453,10 +459,8 @@ export default defineComponent({
|
|
|
: null;
|
|
|
const useStatus = materialRefs.length > 0
|
|
|
? materialRefs[0]?.extend?.useStatus : null
|
|
|
- const isLock = useStatus === 'LOCK' && state.platformType === "STUDENT" ? true : false
|
|
|
return {
|
|
|
...item,
|
|
|
- isLock,
|
|
|
materialMusicId,
|
|
|
coursewareDetailId: itemResult.lessonCoursewareDetailId,
|
|
|
lessonCoursewareDetailId: itemResult.lessonCoursewareDetailId,
|
|
@@ -994,15 +998,13 @@ 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");
|
|
|
+ const hasVip = handleCheckVip(false)
|
|
|
if (!hasVip) {
|
|
|
handleStop()
|
|
|
return
|
|
@@ -1593,7 +1595,7 @@ export default defineComponent({
|
|
|
const item = data.itemList.find((n: any) => n.id == res.itemActive)
|
|
|
const parentItem = detailList.value?.find((n: any) => n.lessonCoursewareDetailId == item?.lessonCoursewareDetailId)
|
|
|
if(String(parentItem?.accessScope) === '1') {
|
|
|
- const hasVip = handleCheckVip()
|
|
|
+ const hasVip = handleCheckVip(false)
|
|
|
if (!hasVip) return
|
|
|
}
|
|
|
|