uploadFile.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <view class="container">
  2. <van-empty description="暂无信息" wx:if="{{xcpArr.length == 0}}">
  3. </van-empty>
  4. <view wx:for="{{xcpArr}}" wx:key="index">
  5. <view class="dir" hover-class="hover" wx:if="{{item.fileType == '目录'}}" bind:tap="clickDir"
  6. data-item="{{item}}">
  7. <view class="dir-left">
  8. <van-image width="60rpx" height="60rpx" fit="cover" src="/images/ic_folder.png" class="dir-img"/>
  9. {{item.fileName}}
  10. </view>
  11. <van-icon name="arrow" color="#BBBCD0"/>
  12. </view>
  13. <view class="file" wx:else>
  14. <view class="file-left">
  15. <van-image width="55rpx" height="55rpx" fit="cover" src="/images/ic_file.png" class="file-img"/>
  16. </view>
  17. <view class="file-center">
  18. <view class="file-name van-multi-ellipsis--l2">{{item.fileName}}</view>
  19. <view class="file-time">
  20. <view>{{item.updateTime || item.createTime}}</view>
  21. <view class="file-size van-ellipsis">{{item.size}}</view>
  22. </view>
  23. </view>
  24. <view class="file-del" bind:tap="deleteFile" data-item="{{item}}">
  25. <van-image width="40rpx" height="40rpx" fit="cover" src="/images/ic_file_del.png"/>
  26. 删除
  27. </view>
  28. </view>
  29. </view>
  30. <edu-safe-area/>
  31. </view>
  32. <view class="btn" wx:if="{{pid!=0}}">
  33. <edu-button title="上传文件" bind:click="upload"/>
  34. <edu-safe-area/>
  35. </view>