|
|
@@ -5,7 +5,7 @@
|
|
|
<div class="user-info-container">
|
|
|
<div class="video-info" style="width: 850px">
|
|
|
<div
|
|
|
- v-if="videoFormat == 'jpg' || videoFormat == 'bmp' || videoFormat == 'png' || videoFormat == 'jpeg'"
|
|
|
+ v-if="['jpg', 'bmp', 'png', 'jpeg'].includes(videoFormat)"
|
|
|
style="width: 850px; height: 350px"
|
|
|
>
|
|
|
<!-- <img :src="imgs + itemData.coverImagePath" style="width: 100%; height: 100%" /> -->
|
|
|
@@ -15,32 +15,14 @@
|
|
|
</div>
|
|
|
<!-- "wmv","avi","flv","mpeg","mpg","rmvb","mov","mkv" -->
|
|
|
<div
|
|
|
- v-if="
|
|
|
- videoFormat == 'mkv' ||
|
|
|
- videoFormat == 'mp4' ||
|
|
|
- videoFormat == 'wmv' ||
|
|
|
- videoFormat == 'avi' ||
|
|
|
- videoFormat == 'flv' ||
|
|
|
- videoFormat == 'mpeg' ||
|
|
|
- videoFormat == 'mpg' ||
|
|
|
- videoFormat == 'rmvb' ||
|
|
|
- videoFormat == 'mov'
|
|
|
- "
|
|
|
+ v-else-if="['mkv', 'mp4', 'wmv', 'avi', 'flv', 'mpeg', 'mpg', 'rmvb', 'mov'].includes(videoFormat)"
|
|
|
style="width: 850px; height: 350px"
|
|
|
>
|
|
|
<video :src="resSrc" controls style="width: 100%; height: 100%" />
|
|
|
</div>
|
|
|
<!-- "doc","docx","ppt","pptx","xls","xlsx" -->
|
|
|
<div
|
|
|
- v-if="
|
|
|
- videoFormat == 'docx' ||
|
|
|
- videoFormat == 'doc' ||
|
|
|
- videoFormat == 'ppt' ||
|
|
|
- videoFormat == 'pptx' ||
|
|
|
- videoFormat == 'xls' ||
|
|
|
- videoFormat == 'xlsx' ||
|
|
|
- videoFormat == 'pdf'
|
|
|
- "
|
|
|
+ v-else-if="['docx', 'doc', 'ppt', 'pptx', 'xls', 'xlsx', 'pdf'].includes(videoFormat)"
|
|
|
style="width: 850px; height: 350px"
|
|
|
>
|
|
|
<!-- <PDF :src="resSrc" :width="850" :height="350" /> -->
|
|
|
@@ -48,6 +30,15 @@
|
|
|
<!-- <a-image width="200px" height="220px" :src="pdfRes" :preview="false" @click="handleDownload(resSrc)" /> -->
|
|
|
<!-- <a-button type="primary" @click="handleDownload(resSrc)">去预览</a-button> -->
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ v-else
|
|
|
+ style="width: 850px; height: 350px; border: 1px solid #dfe2e5; display: flex; justify-content: center; align-items: center"
|
|
|
+ >
|
|
|
+ <span style="display: block">本资源格式不可预览</span>
|
|
|
+ <!-- <PDF :src="resSrc" :width="850" :height="350" /> -->
|
|
|
+ <!-- <a-image width="200px" height="220px" :src="pdfRes" :preview="false" @click="handleDownload(resSrc)" /> -->
|
|
|
+ <!-- <a-button type="primary" @click="handleDownload(resSrc)">去预览</a-button> -->
|
|
|
+ </div>
|
|
|
<div style="height: 20px"></div>
|
|
|
<!-- 用户信息部分 -->
|
|
|
<div class="user-info" style="display: flex; flex-direction: column">
|