sweeped_books.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--dispatcher/pages/sweeped_books/sweeped_books.wxml-->
  2. <import src="../../../templates/nodata/nodata.wxml" />
  3. <import src="../../../templates/loading/loading.wxml" />
  4. <view class='container'>
  5. <template is='loading' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper {{options.btnText ? "pb" : ""}}' wx:else>
  7. <template is='nodata' data='{{...nodataArray}}' wx:if='{{list.length == 0}}'></template>
  8. <view class='list' wx:else>
  9. <view class="list-title" wx:if='{{!isManage}}'>
  10. <text class="list-title-black">{{options.title}}</text>
  11. <text class="list-title-gray">{{totalNumbers}}本</text>
  12. </view>
  13. <view class='li' wx:else>
  14. <view bindtap='checkAllCtl'>
  15. <image class='li-circle' src='{{isAllCheck ? "../../../assets/circle_blue.png" : "../../../assets/circle_gray.png"}}'></image>
  16. <text class='li-circle-label'>全选</text>
  17. <text class='li-text-gray'>已选{{totalNum}}本</text>
  18. </view>
  19. </view>
  20. <view class='li' wx:for='{{list}}' wx:key='{{index}}' data-index='{{index}}' bindtap='toggleSelectLiCtl'>
  21. <image class='li-circle' wx:if='{{isManage}}' src='{{item.isCheck == 1 ? "../../../assets/circle_blue.png" : "../../../assets/circle_gray.png"}}'></image>
  22. <view class="li-box">
  23. <image class='li-img' mode='aspectFill' src='{{item.local_image ? baseImgUrl + item.local_image: "../../../assets/default_headicon.png"}}'></image>
  24. </view>
  25. <view class="li-col">
  26. <view class="li-text-black" wx:if='{{item.title}}'>{{item.title || ''}}</view>
  27. <view class="li-btn-blue" wx:if='{{item.child_name}}'>{{item.child_name}}</view>
  28. </view>
  29. </view>
  30. <view class='footer-box' wx:if='{{options.btnText}}'>
  31. <block wx:if='{{isManage}}'>
  32. <view class='footer-box-item' bindtap='toggleManageCtl'>取消</view>
  33. <view class='footer-box-item' bindtap='delCtl'>删除</view>
  34. </block>
  35. <block wx:else>
  36. <view class='footer-box-item' bindtap='toggleManageCtl'>管理</view>
  37. <view class='footer-box-item' bindtap='submitCtl'>{{options.btnText}}</view>
  38. </block>
  39. </view>
  40. </view>
  41. <view class='scan' bindtap='navigateBack'>
  42. <image class='scan-icon' src='../../../assets/scan.png'></image>
  43. <view class='scan-text'>扫书</view>
  44. </view>
  45. <view class='home' data-url='dispatcher/pages/home/home' data-zindex='3' bindtap='redirectTo'>
  46. <image class='home-icon' src='../../../assets/home.png'></image>
  47. <view class='home-text'>选馆</view>
  48. </view>
  49. </view>
  50. </view>