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.

19 lines
886 B

<view class="container">
<text>课堂资源</text>
<view class="no-file-view">
<image hidden="{{files.length!=0 || loading}}" src="cloud://educoder.6564-educoder-1300855313/images/blank2.png" class="no-file"></image>
</view>
<view class="file-list form-wrap">
<block wx:for="{{files}}" wx:for-item="file" wx:key="objectId">
<image wx:if="{{file.ispic}}" src="{{file.fileid}}" bindtap="preview_pic" data-fileid="{{file.fileid}}"></image>
<view class="file-item flex-wrap" bindtap="{{file.ispic?'preview_pic':'download'}}" data-id="{{file.id}}" data-url="{{file.url}}">
<text>{{file.title}}</text>
<text class="hint file-uploader">上传者:{{file.author.name}}</text>
</view>
</block>
</view>
</view>
<view wx:if="{{false}}" class="upload-file foot">
<button type="primary" bindtap="upload">上传文件资源</button>
</view>