|
@@ -27,7 +27,7 @@ export default defineComponent({
|
|
|
},
|
|
|
},
|
|
|
setup(props) {
|
|
|
- const router = useRouter()
|
|
|
+ const router = useRouter();
|
|
|
const downRef = ref();
|
|
|
return () => (
|
|
|
<div class={styles.detailInfo}>
|
|
@@ -39,7 +39,7 @@ export default defineComponent({
|
|
|
</div>
|
|
|
<Row justify="space-between">
|
|
|
<Col class={styles.col} style={{ color: "#FF6422" }}>
|
|
|
- <Icon name={tree} size={16} />
|
|
|
+ <Icon name={tree} style size={16} />
|
|
|
<span>共{props.lessonGroup.lessonCount}课时</span>
|
|
|
</Col>
|
|
|
<Col class={styles.col}>
|
|
@@ -54,7 +54,13 @@ export default defineComponent({
|
|
|
|
|
|
<TheTitle title="教学老师" isMore={false} />
|
|
|
<div class={styles.teacher}>
|
|
|
- <Image width={68} height={68} fit="cover" round src={props.teacher.heardUrl || icon_teacher} />
|
|
|
+ <Image
|
|
|
+ width={68}
|
|
|
+ height={68}
|
|
|
+ fit="cover"
|
|
|
+ round
|
|
|
+ src={props.teacher.heardUrl || icon_teacher}
|
|
|
+ />
|
|
|
<div class={styles.teacherContent}>
|
|
|
<div class={styles.name}>{props.teacher.username}</div>
|
|
|
<div class={styles.num}>
|
|
@@ -72,14 +78,22 @@ export default defineComponent({
|
|
|
</Button>
|
|
|
</div>
|
|
|
|
|
|
- <TheTitle title="老师介绍" isMore={false} />
|
|
|
- <div class={styles.des}>{props.teacher.introduction}</div>
|
|
|
+ {props.teacher.introduction && (
|
|
|
+ <>
|
|
|
+ <TheTitle title="老师介绍" isMore={false} />
|
|
|
+ <div class={styles.des}>{props.teacher.introduction}</div>
|
|
|
+ </>
|
|
|
+ )}
|
|
|
|
|
|
- <TheTitle title="老师风采" isMore={false} />
|
|
|
- <VideoList
|
|
|
- list={props.teacher.styleVideo}
|
|
|
- onPlay={() => downRef.value?.toggle()}
|
|
|
- />
|
|
|
+ {props.teacher.styleVideo && props.teacher.styleVideo.length ? (
|
|
|
+ <>
|
|
|
+ <TheTitle title="老师风采" isMore={false} />
|
|
|
+ <VideoList
|
|
|
+ list={props.teacher.styleVideo}
|
|
|
+ onPlay={() => downRef.value?.toggle()}
|
|
|
+ />
|
|
|
+ </>
|
|
|
+ ) : null}
|
|
|
|
|
|
<TheTitle title="其他课程" isMore={false} />
|
|
|
<VideoItem
|