lex il y a 2 ans
Parent
commit
90476c3efa
2 fichiers modifiés avec 17 ajouts et 9 suppressions
  1. 15 8
      src/student/video-class/video-detail.tsx
  2. 2 1
      src/views/video-class/index.tsx

+ 15 - 8
src/student/video-class/video-detail.tsx

@@ -25,7 +25,7 @@ export default defineComponent({
         groupId: query.groupId
       },
       shareStatus: false,
-      shareUrl: '',
+      shareUrl: ''
     }
   },
   async mounted() {
@@ -172,17 +172,24 @@ export default defineComponent({
   render() {
     return (
       <div class={[styles['video-detail']]}>
-        <ColHeader v-slots={{
-          right: () => (
-            <img src={iconShare} onClick={() => this.shareStatus = true} />
-          )
-        }} />
+        <ColHeader
+          v-slots={{
+            right: () => (
+              <img src={iconShare} onClick={() => (this.shareStatus = true)} />
+            )
+          }}
+        />
         <UserDetail userInfo={this.userInfo} />
-        <SectionDetail border>
+        <SectionDetail border={false}>
           <p class={styles.introduction}>{this.userInfo.lessonDesc}</p>
         </SectionDetail>
 
-        <SectionDetail title="课程列表" icon="courseList" class="mb12" border>
+        <SectionDetail
+          title="课程列表"
+          icon="courseList"
+          class="mb12"
+          border={false}
+        >
           {this.detailList.map((item: any) => (
             <CourseVideoItem
               class={['mb12', styles.videoItem]}

+ 2 - 1
src/views/video-class/index.tsx

@@ -24,7 +24,7 @@ export default defineComponent({
       dataShow: true, // 判断是否有数据
       loading: false,
       finished: false,
-      listLoading: false,
+      listLoading: true,
       params: {
         search: '',
         lessonSubject: null as any,
@@ -66,6 +66,7 @@ export default defineComponent({
         })
       })
     }
+    this.listLoading = false
     this.getList()
 
     useEventTracking('视频课')