提交 c6b28b78 authored 作者: lhh's avatar lhh

修改问题

上级 8ea96fcb
......@@ -27,6 +27,8 @@ getCourseDetail({ id: route.query?.id as string }).then((res: any) => {
const goExam = function () {
router.push(`/exam?type=course&id=${route.query?.id}&eId=${data.course?.exams[0].examination_id}`)
}
const isExam = function () {}
</script>
<template>
......@@ -41,7 +43,12 @@ const goExam = function () {
></CourseCatalog>
</div>
<van-button
v-if="data.course?.exams && data.course?.exams.length && data.course.is_free_name !== '收费'"
v-if="
data.course?.exams &&
data.course?.exams.length &&
data.course?.exams[0].status !== 1 &&
data.course.is_free_name !== '收费'
"
@click="goExam"
type="primary"
size="large"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论