viewPage.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <van-search value="{{ content.where.condition }}" bind:change='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' />
  7. </view>
  8. </van-tabs>
  9. <My_listBox id="ListBox" height='{{listHeight}}' bind:getlist='getList'>
  10. <view class="unread">总共{{inTotal}}个,有1个更新</view>
  11. <My_files list="{{list}}" checkedId='{{fileSelected.attachmentid}}' bindchangeId='changeId' />
  12. <My_empty wx:if="{{list.length==0}}" />
  13. <view style="height: 200rpx;" />
  14. </My_listBox>
  15. <van-action-sheet show="{{ show }}" bind:click-overlay='closeShow'>
  16. <view class="sheet-header">
  17. <image src="/static/image/file/{{fileSelected.postfix}}.png" />
  18. <view class="line-1">{{fileSelected.document}}</view>
  19. </view>
  20. <navigator url='#' class="option" bindtap="isCollect">
  21. <block wx:if="{{fileSelected.isCollect==0}}">
  22. <van-icon class="icon star-o" name="star-o" />收藏
  23. </block>
  24. <block wx:else>
  25. <van-icon class="icon star" name="star" />取消收藏
  26. </block>
  27. </navigator>
  28. <navigator wx:if="{{fileSelected.postfix!='folder'}}" url='#' class="option">
  29. <text class="iconfont icon-a-tonggaoshujuxiazailiang icon" />下载
  30. </navigator>
  31. <view style="height: 115rpx;" />
  32. </van-action-sheet>