日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

<view class="m-list">
<view class="list">
<view class="item {{item.error ? 'z-error':''}}"
bind:tap="handleTapItem"
data-index="{{index}}"
wx:key="*this"
wx:for="{{showList}}">
<view class="item-file">
<view class="item-file-ico">
<image mode="aspectFill"
wx:if="{{item.type==='image'}}"
src="{{item.url}}" />
<image mode="aspectFill"
wx:elif="{{item.type==='video'}}"
src="/assets/images/upload/video.png" />
<image mode="aspectFill"
wx:elif="{{item.format==='doc' || item.format==='docx'}}"
src="/assets/images/upload/word.png" />
<image mode="aspectFill"
wx:elif="{{item.format==='xls' || item.format==='xlsx'}}"
src="/assets/images/upload/excel.png" />
<image mode="aspectFill"
wx:elif="{{item.format==='ppt' || item.format==='pptx'}}"
src="/assets/images/upload/ppt.png" />
<image mode="aspectFill"
wx:elif="{{item.format==='pdf'}}"
src="/assets/images/upload/pdf.png" />
</view>
<view class="item-file-name">{{item.showName}}</view>
<view class="item-file-format">.{{item.format}}</view>
</view>
</view>
</view>
</view>