|
@@ -12,6 +12,7 @@ import { defineComponent } from 'vue'
|
|
|
import { shareCall } from '../share'
|
|
|
import styles from './index.module.less'
|
|
|
import qs from 'query-string'
|
|
|
+import GroupPlanStep from '@/business-components/group-plan-step'
|
|
|
export const getAssetsHomeFile = (fileName: string) => {
|
|
|
const path = `../images/${fileName}`
|
|
|
const modules = import.meta.globEager('../images/*')
|
|
@@ -20,8 +21,9 @@ export const getAssetsHomeFile = (fileName: string) => {
|
|
|
interface IProps {
|
|
|
courseTime: string
|
|
|
coursePlan: string
|
|
|
- videoPosterUrl?: string
|
|
|
roomUid?: string
|
|
|
+ teacherName: string
|
|
|
+ subjectName: string
|
|
|
liveState?: number
|
|
|
id?: number | string
|
|
|
}
|
|
@@ -65,6 +67,7 @@ export default defineComponent({
|
|
|
},
|
|
|
courseInfo() {
|
|
|
const tempArr = [] as IProps[]
|
|
|
+ const live = this.live
|
|
|
const coursePlanList = this.live.planList || []
|
|
|
coursePlanList.forEach((item: any) => {
|
|
|
const startTime = item.startTime || new Date()
|
|
@@ -74,6 +77,8 @@ export default defineComponent({
|
|
|
startTime
|
|
|
).format('HH:mm')}~${dayjs(endTime).format('HH:mm')}`,
|
|
|
coursePlan: item.plan,
|
|
|
+ teacherName: live.userName,
|
|
|
+ subjectName: live.subjectName,
|
|
|
roomUid: item.roomUid,
|
|
|
liveState: item.liveState,
|
|
|
id: item.courseId
|
|
@@ -171,14 +176,7 @@ export default defineComponent({
|
|
|
<p class={styles.introduction}>{this.userInfo.lessonDesc}</p>
|
|
|
</SectionDetail>
|
|
|
|
|
|
- <SectionDetail
|
|
|
- title="课程列表"
|
|
|
- icon="courseList"
|
|
|
- border
|
|
|
- // contentStyle={{ paddingTop: '0' }}
|
|
|
- >
|
|
|
- <CoursePlanStep courseInfo={this.courseInfo} hideVideo={true} />
|
|
|
- </SectionDetail>
|
|
|
+ <GroupPlanStep courseInfo={this.courseInfo as any} />
|
|
|
|
|
|
<ColSticky position="bottom">
|
|
|
<div class={['btnGroup']} style={{ paddingTop: '12px' }}>
|