index.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <van-search value="{{ content.where.condition }}" bind:search='searchInput' bind:clear='searchClear' shape="round" background="var(--bgColor)" placeholder="搜索文件" />
  2. <van-tabs class="tabs" color='var(--assist)' bind:change='tabsChange' title-active-color='var(--assist)' sticky>
  3. <van-tab title="列表" />
  4. <van-tab title="收藏夹" />
  5. <view slot='nav-right' class="switch">
  6. <My_switch bindchange='changeSwitch' sort="{{sort}}" />
  7. </view>
  8. </van-tabs>
  9. <Yl_ListBox id="ListBox" bind:getlist='getList'>
  10. <view class="unread">总共{{total}}个</view>
  11. <My_files list="{{list}}" checkedId='{{fileSelected.attachmentid}}' bindchangeId='changeId' />
  12. <Yl_Empty wx:if="{{list.length==0}}" />
  13. </Yl_ListBox>
  14. <van-action-sheet show="{{ show }}" bind:click-overlay='closeShow'>
  15. <view class="sheet-header">
  16. <image src="{{fileSelected.cover}}" />
  17. <view class="line-1">{{fileSelected.document}}</view>
  18. </view>
  19. <navigator url='#' class="option" bindtap="changeCollect">
  20. <block wx:if="{{fileSelected.isCollect==0}}">
  21. <van-icon class="icon star-o" name="star-o" />收藏
  22. </block>
  23. <block wx:else>
  24. <van-icon class="icon star" name="star" />取消收藏
  25. </block>
  26. </navigator>
  27. <navigator wx:if="{{fileSelected.postfix!='folder'}}" bindtap="dowmLoad" url='#' class="option">
  28. <text class="iconfont icon-a-tonggaoshujuxiazailiang icon" />复制下载地址
  29. </navigator>
  30. <view wx:if="{{padBot}}" style="height: 115rpx;" />
  31. </van-action-sheet>