Przeglądaj źródła

课程到视频

psycho 6 lat temu
rodzic
commit
5dc74db515

+ 6 - 3
TEAMModelOS.SmartClass/ClientApp/static/lessonDetails.json

@@ -1,5 +1,6 @@
 [
   {
+    "rowKey": 0,
     "data": {
       "activityStatusTip": "已结束",
       "commentCount": 52,
@@ -8,7 +9,7 @@
       "employeeName": "胡颖",
       "liveHls": "https://teammodelstorage.blob.core.chinacloudapi.cn/teammodelcontest/20190517/demo/2019.m3u8",
       "liveRtmp": "rtmp://jpkt.sxedu.org:1935/hls/13CA5E3AD6DB4DF5865839BB47C134F8",
-      "name": "创新实验室(学科教室)课例20180518直播",
+      "name": "高新区智慧课堂优秀课例直播",
       "notice": "<br>",
       "ownUnit": "高新区教师发展中心",
       "parentCategoryName": "英语",
@@ -361,6 +362,7 @@
     ]
   },
   {
+    "rowKey": 1,
     "data": {
       "activityStatusTip": "已结束",
       "commentCount": 52,
@@ -369,7 +371,7 @@
       "employeeName": "钟源",
       "liveHls": "https://teammodelstorage.blob.core.chinacloudapi.cn/teammodelcontest/20190517/history/history.m3u8",
       "liveRtmp": "rtmp://jpkt.sxedu.org:1935/hls/13CA5E3AD6DB4DF5865839BB47C134F8",
-      "name": "创新实验室(学科教室)课例20180518直播",
+      "name": "高新区智慧课堂优秀课例直播",
       "notice": "<br>",
       "ownUnit": "高新区教师发展中心",
       "parentCategoryName": "历史",
@@ -722,6 +724,7 @@
     ]
   },
   {
+    "rowKey": 2,
     "data": {
       "activityStatusTip": "已结束",
       "commentCount": 52,
@@ -730,7 +733,7 @@
       "employeeName": "杨悦婷",
       "liveHls": "https://teammodelstorage.blob.core.chinacloudapi.cn/teammodelcontest/20190517/math/math.m3u8",
       "liveRtmp": "rtmp://jpkt.sxedu.org:1935/hls/13CA5E3AD6DB4DF5865839BB47C134F8",
-      "name": "创新实验室(学科教室)课例20180518直播",
+      "name": "高新区智慧课堂优秀课例直播",
       "notice": "<br>",
       "ownUnit": "高新区教师发展中心",
       "parentCategoryName": "数学",

+ 1 - 1
TEAMModelOS.SmartClass/ClientApp/view/smart-class/CommentVideo.vue

@@ -6,7 +6,7 @@
     <div class="video-info">
       <div class="comment-video-src">
         <div>
-          <p style=" font-size: 14px; margin-bottom: 20px;"><span class="title-header">标题 : <span class="title-content">{{lessonInfo.name}}</span></span> <span class="title-header">主讲人 : {{lessonInfo.speaker}}<span class="title-content"></span></span> <span class="liveStatus">播放成功</span></p>
+          <p style=" font-size: 14px; margin-bottom: 20px;"><span class="title-header">标题 : <span class="title-content">{{lessonInfo.name}} 《 {{lessonInfo.parentProjectName}} 》</span></span> <span class="title-header">主讲人 : {{lessonInfo.speaker}}<span class="title-content"></span></span> <span class="liveStatus">播放成功</span></p>
         </div>
         <video-player class="video-player-box" style="width:800px;"
                       ref="videoPlayer"

+ 10 - 3
TEAMModelOS.SmartClass/ClientApp/view/smart-class/LessonDetails.vue

@@ -6,7 +6,7 @@
     <div class="details-container">
       <div class="activity-brief center-row">
         <div class="activity-brief-left">
-          <img src="../../assets/image/lessonCover.png" width="100%" />
+          <img :src="getThumb(rowKey)" width="100%" />
         </div>
         <div class="activity-brief-right">
           <div class="activity-brief-title">
@@ -95,7 +95,6 @@
       this.attachmentsList = lessonInfo[this.rowKey].attachments;
       this.activityInfo = lessonInfo[this.rowKey].data;
       this.commentList = lessonInfo[this.rowKey].commentList;
-      console.log(lessonInfo[this.rowKey].data);
 
     },
     methods: {
@@ -105,7 +104,15 @@
             path:'commentVideo'
           }
         );
-      }
+      },
+      getThumb(type) {
+        let thumb = {
+          "0": require("../../assets/image/lessonCover.png"),
+          "1": require("../../assets/image/lessonCover2.png"),
+          "2": require("../../assets/image/lessonCover3.png"),
+         };
+         return thumb[type];
+        },
     },
     mounted() {
       let myChart = this.$echarts.init(document.getElementById('views'));