|
@@ -24,14 +24,14 @@
|
|
|
<view class="view-wrap" v-if="data.fileUrl">
|
|
|
<view v-for="(item, index) in JSON.parse(data.fileUrl)" :key="index" class="fileImg">
|
|
|
<a :href="item.url" style="color: #333;">
|
|
|
- <img src="@/static/images/system/doc.svg" alt="" v-if="item.name.split('.').pop() == 'doc'">
|
|
|
- <img src="@/static/images/system/docx.svg" alt="" v-if="item.name.split('.').pop() == 'docx'">
|
|
|
- <img src="@/static/images/system/pdf.svg" alt="" v-if="item.name.split('.').pop() == 'pdf'">
|
|
|
- <img src="@/static/images/system/ppt.svg" alt="" v-if="item.name.split('.').pop() == 'ppt'">
|
|
|
- <img src="@/static/images/system/pptx.svg" alt="" v-if="item.name.split('.').pop() == 'pptx'">
|
|
|
- <img src="@/static/images/system/xls.svg" alt="" v-if="item.name.split('.').pop() == 'xls'">
|
|
|
- <img src="@/static/images/system/xlsx.svg" alt="" v-if="item.name.split('.').pop() == 'xlsx'">
|
|
|
- <img src="@/static/images/system/zip.svg" alt="" v-if="item.name.split('.').pop() == 'zip'">
|
|
|
+ <image src="/static/images/system/doc.svg" alt="" v-if="item.name.split('.').pop() == 'doc'" />
|
|
|
+ <image src="/static/images/system/docx.svg" alt="" v-if="item.name.split('.').pop() == 'docx'" />
|
|
|
+ <image src="/static/images/system/pdf.svg" alt="" v-if="item.name.split('.').pop() == 'pdf'" />
|
|
|
+ <image src="/static/images/system/ppt.svg" alt="" v-if="item.name.split('.').pop() == 'ppt'" />
|
|
|
+ <image src="/static/images/system/pptx.svg" alt="" v-if="item.name.split('.').pop() == 'pptx'" />
|
|
|
+ <image src="/static/images/system/xls.svg" alt="" v-if="item.name.split('.').pop() == 'xls'" />
|
|
|
+ <image src="/static/images/system/xlsx.svg" alt="" v-if="item.name.split('.').pop() == 'xlsx'" />
|
|
|
+ <image src="/static/images/system/zip.svg" alt="" v-if="item.name.split('.').pop() == 'zip'" />
|
|
|
<span>{{ item.name }}</span>
|
|
|
</a>
|
|
|
</view>
|
|
@@ -100,8 +100,10 @@ onShow(() => {
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
.fileImg{
|
|
|
- img{
|
|
|
+ height:auto;
|
|
|
+ image{
|
|
|
width:20px;
|
|
|
+ height:20px;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
span{
|