viewPage.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132
  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' sort="{{sort}}" />
  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: {{padBot?'200rpx;':'50rpx'}}" />
  14. </My_listBox>
  15. <van-action-sheet show="{{ show }}" bind:click-overlay='closeShow'>
  16. <view class="sheet-header">
  17. <image src="{{fileSelected.cover}}" />
  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'}}" bindtap="dowmLoad" url='#' class="option">
  29. <text class="iconfont icon-a-tonggaoshujuxiazailiang icon" />复制下载地址
  30. </navigator>
  31. <view wx:if="{{padBot}}" style="height: 115rpx;" />
  32. </van-action-sheet>