This commit is contained in:
shijingjing
2022-09-01 18:03:38 +08:00
parent db37018a59
commit 798bf8236f

View File

@@ -59,15 +59,28 @@
<div class="file_content">
<img class="text_left" src="https://cdn.cunwuyun.cn/dvcp/announce/avatar.png" />
<div class="text_right file_right">
<!-- 居民每个月最多接收来自同一企业管理员的4条群发消息咨询电话 -->
<div class="cont_left">
<h4>企微协同宣发测cs试测试pptx</h4>
<p>847k</p>
</div>
<div class="cont_right">
<img src="https://cdn.cunwuyun.cn/dvcp/announce/ppt.png" alt="">
<!-- zip rar -->
<!-- <img src="https://cdn.cunwuyun.cn/dvcp/announce/zip.png" alt=""> -->
<!-- doc docx -->
<!-- <img src="https://cdn.cunwuyun.cn/dvcp/announce/world.png" alt=""> -->
<!-- xls xlsx -->
<!-- <img src="https://cdn.cunwuyun.cn/dvcp/announce/xls.png" alt=""> -->
<!-- txt -->
<!-- <img src="https://cdn.cunwuyun.cn/dvcp/announce/txt.png" alt=""> -->
<!-- pdf -->
<!-- <img src="https://cdn.cunwuyun.cn/dvcp/announce/pdf.png" alt=""> -->
<!-- .ppt', '.pptx' -->
<!-- <img src="https://cdn.cunwuyun.cn/dvcp/announce/ppt.png" alt=""> -->
<!-- <img :src="fileIcon(item.name)" alt=""> -->
</div>
</div>
<!-- <img src="https://cdn.cunwuyun.cn/dvcp/announce/ppt.png" alt=""> -->
</div>
</div>
@@ -110,6 +123,36 @@ export default {
this.showPopup = true;
},
fileIcon(name) {
if (['.zip', '.rar'].indexOf(this.getExtension(name)) !== -1) {
return 'https://cdn.cunwuyun.cn/dvcp/announce/zip.png'
}
if (['.doc', '.docx'].indexOf(this.getExtension(name)) !== -1) {
return 'https://cdn.cunwuyun.cn/dvcp/announce/world.png'
}
if (['.xls', '.xlsx'].indexOf(this.getExtension(name)) !== -1) {
return 'https://cdn.cunwuyun.cn/dvcp/announce/xls.png'
}
if (['.txt'].indexOf(this.getExtension(name)) !== -1) {
return 'https://cdn.cunwuyun.cn/dvcp/announce/txt.png'
}
if (['.pdf'].indexOf(this.getExtension(name)) !== -1) {
return 'https://cdn.cunwuyun.cn/dvcp/announce/pdf.png'
}
if (['.ppt', '.pptx'].indexOf(this.getExtension(name)) !== -1) {
return 'https://cdn.cunwuyun.cn/dvcp/announce/ppt.png'
}
},
getExtension(name) {
return name.substring(name.lastIndexOf('.'))
},
getDeptUser() {
this.selectEnterpriseContact({
fromDepartmentId: 0,
@@ -283,6 +326,10 @@ export default {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: normal;
}
p {
color: #888888;
}
}
.cont_right {