于添 8 bulan lalu
induk
melakukan
c2ff673ec6

+ 8 - 1
src/views/resourceDetails/components/TallList.vue

@@ -191,7 +191,14 @@
 	}
 	const getPageComment = () => {
 		pageComment({ resourceId: id })
-			.then((res) => {})
+			.then((res) => {
+				if (res.code == 200) {
+					res.value = res.data.records
+
+					res.data.pages
+					res.data.size
+				}
+			})
 			.catch((err) => {
 				console.log(err)
 			})

+ 14 - 7
src/views/resourceDetails/components/VideoDetails.vue

@@ -38,7 +38,8 @@
 						videoFormat == 'ppt' ||
 						videoFormat == 'pptx' ||
 						videoFormat == 'xls' ||
-						videoFormat == 'xlsx'
+						videoFormat == 'xlsx' ||
+						videoFormat == 'pdf'
 					"
 					style="width: 850px; height: 350px"
 				>
@@ -105,7 +106,7 @@
 			<div class="resInfo">
 				<div style="display: flex; align-items: center">
 					<div class="resInfoTitile"></div>
-					<span style="display: block; font-weight: bold">课程信息</span>
+					<span style="display: block; font-weight: bold">资源信息</span>
 				</div>
 				<div style="display: flex; justify-content: center; align-items: center; height: 40px">
 					<span style="display: block; font-weight: bold">{{ resName }}</span>
@@ -123,19 +124,19 @@
 					<span style="display: block">{{ major }}</span>
 				</div>
 				<div style="display: flex; align-items: center">
-					<span style="font-weight: bold; margin-right: 10px">课程类型: </span>
+					<span style="font-weight: bold; margin-right: 10px">资源类型: </span>
 					<span style="display: block">{{ courseType }}</span>
 				</div>
 				<div style="display: flex; align-items: center">
-					<span style="font-weight: bold; margin-right: 10px">课件格式: </span>
+					<span style="font-weight: bold; margin-right: 10px">资源格式: </span>
 					<span style="display: block">{{ videoFormat }}</span>
 				</div>
-				<div style="display: flex; align-items: center" v-if="videoFormat != 'jpg'">
+				<!-- <div style="display: flex; align-items: center" v-if="videoFormat != 'jpg'">
 					<span style="font-weight: bold; margin-right: 10px">视频时长: </span>
 					<span style="display: block">{{ videoDuration }}</span>
-				</div>
+				</div> -->
 				<div style="display: flex; align-items: center">
-					<span style="font-weight: bold; margin-right: 10px">视频大小: </span>
+					<span style="font-weight: bold; margin-right: 10px">容量大小: </span>
 					<span style="display: block">{{ videoSize }}</span>
 				</div>
 				<div style="display: flex; align-items: center">
@@ -248,6 +249,12 @@
 					releaseTime.value = itemData.value.uploadTime
 					videoSize.value = itemData.value.FILESIZE + 'b'
 
+					tags.value = []
+					itemData.value.keywordList.forEach((item) => {
+						tags.value.push(item.wordName)
+					})
+					console.log('应该施舍你们', tags.value)
+					//关键的资源在线地址
 					resSrc.value = sysConfig.FILE_URL + itemData.value.priviewFileUrl
 					// imagess.value = ''+itemData.value.coverImagePath
 					// imagess.value = 'http://192.168.1.245:10005/education/' + itemData.value.priviewFileUrl