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
849 B
19 lines
849 B
5 years ago
|
<view class="container">
|
||
|
<text>课堂资源</text>
|
||
|
<view class="no-file-view">
|
||
|
<image wx:if="{{files.length==0 && !loading}}" src="../../images/none2.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>
|