|
@@ -18,14 +18,16 @@
|
|
|
<li class="doc-card-list-item">
|
|
|
<div class='doc-card-list-item-img {{if not $vv.productType}}{{else if Eq $vv.productType 1}}free{{else if Eq $vv.productType 2}}good{{end}}'>
|
|
|
<img class="doc-main-img" src="{{$vv.previewImg}}" alt="doc-name">
|
|
|
- {{if or (eq $vv.docFileSuffix ".doc") (eq $vv.docFileSuffix ".docx") (eq $vv.docFileSuffix "doc")}}
|
|
|
+ {{if or (eq $vv.docFileSuffix "doc") (eq $vv.docFileSuffix "docx")}}
|
|
|
<img class="doc-type-img" src='/images/pc/word.png' alt="doc-type">
|
|
|
- {{else if eq $vv.docFileSuffix ".pdf"}}
|
|
|
+ {{else if eq $vv.docFileSuffix "pdf"}}
|
|
|
<img class="doc-type-img" src='/images/pc/pdf.png' alt="doc-type">
|
|
|
- {{else if eq $vv.docFileSuffix ".ppt"}}
|
|
|
+ {{else if eq $vv.docFileSuffix "ppt"}}
|
|
|
<img class="doc-type-img" src='/images/pc/ppt.png' alt="doc-type">
|
|
|
- {{else if eq $vv.docFileSuffix ".excel"}}
|
|
|
+ {{else if eq $vv.docFileSuffix "xls"}}
|
|
|
<img class="doc-type-img" src='/images/pc/excel.png' alt="doc-type">
|
|
|
+ {{else if eq $vv.docFileSuffix "txt"}}
|
|
|
+ <img class="doc-type-img" src='/images/pc/txt.png' alt="doc-type">
|
|
|
{{end}}
|
|
|
</div>
|
|
|
<a class="doc-card-list-item-title cms-link ellipsis-2" target="_blank" href="/swordfish/docs/content/{{$vv.id}}" title="{{$vv.docName}}">{{$vv.docName}}</a>
|