|
@@ -0,0 +1,46 @@
|
|
|
+import CourseVideoItem from "@/business-components/course-video-item";
|
|
|
+import SectionDetail from "@/business-components/section-detail";
|
|
|
+import UserDetail from "@/business-components/user-detail";
|
|
|
+import UserList from "@/business-components/user-list";
|
|
|
+import { Tab, Tabs } from "vant";
|
|
|
+import { defineComponent } from "vue";
|
|
|
+import styles from './video-detail.module.less';
|
|
|
+
|
|
|
+export default defineComponent({
|
|
|
+ name: 'VideoDetail',
|
|
|
+ methods: {
|
|
|
+ onPlay(detail: any) {
|
|
|
+ console.log(detail);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ render() {
|
|
|
+ return (
|
|
|
+ <div class={[styles['video-detail'], 'mb12']}>
|
|
|
+ <UserDetail />
|
|
|
+ <SectionDetail>
|
|
|
+ <p class={styles.introduction}>小酷老师带您零基础学习竖笛,通过4节课的学习掌握竖笛演奏的基本方式,培养娘好的吐息习惯。</p>
|
|
|
+ </SectionDetail>
|
|
|
+
|
|
|
+ <SectionDetail title="课程列表" icon="courseList" titleShow={false} contentStyle={{ paddingTop: '0' }}>
|
|
|
+ <Tabs color="var(--van-primary)" lineWidth={20} sticky>
|
|
|
+ <Tab title="全部课程" titleClass="van-hairline--bottom">
|
|
|
+ {[1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3].map(item => (
|
|
|
+ <CourseVideoItem class={'mb12'} detail={{
|
|
|
+ id: 1,
|
|
|
+ title: "竖笛演奏基础",
|
|
|
+ content: "使学生初步了解竖笛的构造,学会吹奏姿势掌握基本呼吸掌握基本呼吸掌握基本呼吸方法。",
|
|
|
+ imgUrl: 'https://daya.ks3-cn-beijing.ksyun.com/202201/SvB6tqR.png'
|
|
|
+ }} onPlay={this.onPlay} />
|
|
|
+ ))}
|
|
|
+ </Tab>
|
|
|
+ <Tab title="已购课程" titleClass="van-hairline--bottom">
|
|
|
+ {[1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3].map(item => (
|
|
|
+ <UserList class="mb12" />
|
|
|
+ ))}
|
|
|
+ </Tab>
|
|
|
+ </Tabs>
|
|
|
+ </SectionDetail>
|
|
|
+ </div >
|
|
|
+ )
|
|
|
+ }
|
|
|
+})
|