预览
This commit is contained in:
@@ -59,15 +59,28 @@
|
|||||||
<div class="file_content">
|
<div class="file_content">
|
||||||
<img class="text_left" src="https://cdn.cunwuyun.cn/dvcp/announce/avatar.png" />
|
<img class="text_left" src="https://cdn.cunwuyun.cn/dvcp/announce/avatar.png" />
|
||||||
<div class="text_right file_right">
|
<div class="text_right file_right">
|
||||||
<!-- 居民每个月最多接收来自同一企业管理员的4条群发消息,咨询电话: -->
|
|
||||||
<div class="cont_left">
|
<div class="cont_left">
|
||||||
<h4>企微协同宣发测cs试测试pptx</h4>
|
<h4>企微协同宣发测cs试测试pptx</h4>
|
||||||
<p>847k</p>
|
<p>847k</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="cont_right">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <img src="https://cdn.cunwuyun.cn/dvcp/announce/ppt.png" alt=""> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -110,6 +123,36 @@ export default {
|
|||||||
this.showPopup = true;
|
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() {
|
getDeptUser() {
|
||||||
this.selectEnterpriseContact({
|
this.selectEnterpriseContact({
|
||||||
fromDepartmentId: 0,
|
fromDepartmentId: 0,
|
||||||
@@ -283,6 +326,10 @@ export default {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
color: #888888;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.cont_right {
|
.cont_right {
|
||||||
|
|||||||
Reference in New Issue
Block a user