<view class="head">

	{{count}}份资料</view>
<view class="weui-cells weui-cells_after-title" style="margin-top:0px">
	<block wx:for="{{results}}" wx:key="unique">
		<view class="weui-media-box weui-media-box_appmsg">
			<view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
				<image wx:if="{{item.path.indexOf('.pdf')!=-1}}" class="weui-media-box__thumb" src="/images/pdf.svg"></image>
				<image wx:elif="{{item.path.indexOf('.doc')!=-1 || item.path.indexOf('.docx')!=-1}}" class="weui-media-box__thumb" src="/images/word.svg"></image>
				<image wx:elif="{{item.path.indexOf('.ppt')!=-1 || item.path.indexOf('.pptx')!=-1}}" class="weui-media-box__thumb" src="/images/ppt.svg"></image>
				<image wx:else class="weui-media-box__thumb" src="/images/file.svg"></image>
			</view>
			<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
				<view class="weui-media-box__title">
					{{item.name}}</view>
				<view class="weui-media-box__desc">
					{{item.description}}
				</view>
			</view>
			<view class="weui-panel__ft">
				<view class="weui-media-box__desc">
					<a class="weui-btn weui-btn_mini weui-btn_primary" bindtap="downFile" data-id="{{item.id}}" data-index="{{index}}">下载</a>
				</view>
				<view class="weui-media-box__desc">
					下载量:<span style="color:darkblue;font-weight:bold">{{item.down_count}}</span>
				</view>
			</view>
		</view>
	</block>
</view>