|
@@ -55,7 +55,6 @@ export default defineComponent({
|
|
|
handleStop();
|
|
|
}
|
|
|
if (value === "visible") {
|
|
|
- data.currentId = state.buyVipId || data.currentId;
|
|
|
getDetail('visible', data.currentId)
|
|
|
getRefLevel(data.currentId)
|
|
|
}
|
|
@@ -123,6 +122,7 @@ export default defineComponent({
|
|
|
const headeRef = ref();
|
|
|
const data = reactive({
|
|
|
currentId: route.query.id as any,
|
|
|
+ lessonCoursewareId: "",
|
|
|
detail: null as any,
|
|
|
refLevelList: [] as any, // 课堂类型
|
|
|
knowledgePointList: [] as any,
|
|
@@ -299,6 +299,7 @@ export default defineComponent({
|
|
|
const result = res.data || {}
|
|
|
result.lessonTargetDesc = result.lessonTargetDesc ? result.lessonTargetDesc.replace(/\n/g, "<br />") : ""
|
|
|
data.detail = result;
|
|
|
+ data.lessonCoursewareId = result.lessonCoursewareId
|
|
|
if (res?.data?.lockFlag) {
|
|
|
postMessage({
|
|
|
api: 'courseLoading',
|
|
@@ -1212,7 +1213,7 @@ export default defineComponent({
|
|
|
|
|
|
// 判断当前选择的课程类型是否开通
|
|
|
if(item.useStatus === "LOCK") {
|
|
|
- handleShowVip(data.currentId, "LESSON")
|
|
|
+ handleShowVip(data.lessonCoursewareId, "LESSON")
|
|
|
return
|
|
|
}
|
|
|
|