File tree Expand file tree Collapse file tree 2 files changed +26
-10
lines changed
Expand file tree Collapse file tree 2 files changed +26
-10
lines changed Original file line number Diff line number Diff line change 5454 >
5555 <div class =" video_list_item" @click =" handleVideoClick(video)" >
5656 <div class =" video_list_item_img" >
57- <!-- 文件夹图标 -->
58- <div v-if =" isFolder(video)" class =" folder-icon-container" >
57+ <!-- 优先显示vod_pic图片,如果有值的话 -->
58+ <a-image
59+ v-if =" video.vod_pic && video.vod_pic.trim() !== ''"
60+ :preview =" false"
61+ class =" video_list_item_img_cover"
62+ fit =" cover"
63+ :src =" video.vod_pic"
64+ />
65+ <!-- 文件夹图标 (当vod_pic为空且是文件夹时) -->
66+ <div v-else-if =" isFolder(video)" class =" folder-icon-container" >
5967 <i class =" iconfont icon-wenjianjia folder-icon" ></i >
6068 </div >
61- <!-- 文件类型图标 (目录模式下的非文件夹项目 ) -->
69+ <!-- 文件类型图标 (当vod_pic为空且是目录模式下的非文件夹项目时 ) -->
6270 <div v-else-if =" isDirectoryFile(video)" class =" file-icon-container" >
6371 <i class =" iconfont file-type-icon" :class =" getFileTypeIcon(video.vod_name)" ></i >
6472 </div >
65- <!-- 普通视频图片 -->
73+ <!-- 默认图片 (当vod_pic为空且没有特殊标识时) -->
6674 <a-image
6775 v-else
6876 :preview =" false"
6977 class =" video_list_item_img_cover"
7078 fit =" cover"
71- :src =" video.vod_pic"
79+ :src =" video.vod_pic || '/default-poster.svg' "
7280 />
7381 <!-- vod_remarks 浮层 -->
7482 <div v-if =" video.vod_remarks" class =" video_remarks_overlay" v-html =" video.vod_remarks" >
Original file line number Diff line number Diff line change 1414 >
1515 <div class =" video_list_item" @click =" handleVideoClick(video)" >
1616 <div class =" video_list_item_img" >
17- <!-- 文件夹图标 -->
18- <div v-if =" video.vod_tag && video.vod_tag.includes('folder')" class =" folder-icon-container" >
17+ <!-- 优先显示vod_pic图片,如果有值的话 -->
18+ <a-image
19+ v-if =" video.vod_pic && video.vod_pic.trim() !== ''"
20+ :preview =" false"
21+ class =" video_list_item_img_cover"
22+ fit =" cover"
23+ :src =" video.vod_pic"
24+ />
25+ <!-- 文件夹图标 (当vod_pic为空且是文件夹时) -->
26+ <div v-else-if =" video.vod_tag && video.vod_tag.includes('folder')" class =" folder-icon-container" >
1927 <i class =" iconfont icon-wenjianjia folder-icon" ></i >
2028 </div >
21- <!-- 文件类型图标 (目录模式下的非文件夹项目 ) -->
29+ <!-- 文件类型图标 (当vod_pic为空且是目录模式下的非文件夹项目时 ) -->
2230 <div v-else-if =" video.vod_tag && !video.vod_tag.includes('folder')" class =" file-icon-container" >
2331 <i class =" iconfont file-type-icon" :class =" getFileTypeIcon(video.vod_name)" ></i >
2432 </div >
25- <!-- 普通视频图片 -->
33+ <!-- 默认图片 (当vod_pic为空且没有vod_tag时) -->
2634 <a-image
2735 v-else
2836 :preview =" false"
2937 class =" video_list_item_img_cover"
3038 fit =" cover"
31- :src =" video.vod_pic"
39+ :src =" video.vod_pic || '/default-poster.svg' "
3240 />
3341 <!-- vod_remarks 浮层 -->
3442 <div v-if =" video.vod_remarks" class =" video_remarks_overlay" v-html =" video.vod_remarks" >
You can’t perform that action at this time.
0 commit comments