소스 검색

修改详情

lex-xin 1 일 전
부모
커밋
a0fa0c62ba
1개의 변경된 파일13개의 추가작업 그리고 6개의 파일을 삭제
  1. 13 6
      src/teacher/group-class/group-detail.tsx

+ 13 - 6
src/teacher/group-class/group-detail.tsx

@@ -14,10 +14,13 @@ import { Button, Popup, Tab, Tabs, Toast } from 'vant'
 import { defineComponent } from 'vue'
 import styles from './group-detail.module.less'
 import ColHeader from '@/components/col-header'
+import GroupPlanStep from '@/business-components/group-plan-step'
 interface IProps {
   courseTime: string
   coursePlan: string
-  videoPosterUrl?: string
+  // videoPosterUrl?: string
+  teacherName: string
+  subjectName: string
   roomUid?: string
   liveState?: number
   id?: number | string
@@ -72,6 +75,7 @@ export default defineComponent({
     courseInfo() {
       const tempArr = [] as IProps[]
       const coursePlanList = this.live.planList || []
+      const live = this.live
       coursePlanList.forEach((item: any) => {
         const startTime = item.startTime || new Date()
         const endTime = item.endTime || new Date()
@@ -80,6 +84,8 @@ export default defineComponent({
             startTime
           ).format('HH:mm')}~${dayjs(endTime).format('HH:mm')}`,
           coursePlan: item.plan,
+          teacherName: live.teacherName,
+          subjectName: live.subjectName,
           roomUid: item.roomUid,
           liveState: item.liveState,
           id: item.courseId
@@ -130,7 +136,6 @@ export default defineComponent({
         }
       )
       this.live = res.data || {}
-
       if (state.platformType === 'TEACHER') {
         this.myself = !res.data.myself
       }
@@ -206,7 +211,9 @@ export default defineComponent({
           <p class={styles.introduction}>{this.userInfo.lessonDesc}</p>
         </SectionDetail>
 
-        {this.myself ? (
+        <GroupPlanStep courseInfo={this.courseInfo}
+                  courseId={Number(this.courseId) || 0} />
+        {/* {this.myself ? (
           <SectionDetail title="课程列表" icon="courseList" border={true}>
             <CoursePlanStep
               courseInfo={this.courseInfo}
@@ -249,7 +256,7 @@ export default defineComponent({
               </Tab>
             </Tabs>
           </SectionDetail>
-        )}
+        )} */}
 
         {this.live.status !== 'OUT_SALE' && (
           <>
@@ -278,7 +285,7 @@ export default defineComponent({
               </ColSticky>
             )}
 
-            {this.share == '1' && this.courseInfo.length > 0 && (
+            {/* {this.share == '1' && this.courseInfo.length > 0 && (
               <ColSticky position="bottom" background="white">
                 <div class={['btnGroup']} style={{ paddingTop: '12px' }}>
                   <Button
@@ -293,7 +300,7 @@ export default defineComponent({
                   </Button>
                 </div>
               </ColSticky>
-            )}
+            )} */}
           </>
         )}