book_inventory.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!--president/pages/book_inventory/book_inventory.wxml-->
  2. <import src="../../../templates/nodata/nodata.wxml" />
  3. <import src="../../../templates/footer/footer.wxml" />
  4. <import src="../../../templates/loading/loading.wxml" />
  5. <view class='container'>
  6. <template is='loading' wx:if='{{!isLoaded}}'></template>
  7. <view class='wrapper pb' wx:else>
  8. <view class='header'>
  9. <view class='month' data-url='president/pages/book_month/book_month' data-paras='{{({callType:2})}}' bindtap='navigateTo'>
  10. <text>本次已提交列表</text>
  11. <image class='linkicon-image' src='../../../assets/right_white.png'></image>
  12. </view>
  13. <view class='apply-items' bindtap='applybookLists'>
  14. <text class='apply-item-text'>申请书单</text>
  15. <image class='linkicon-image' src='../../../assets/linkicon.png'></image>
  16. </view>
  17. </view>
  18. <view class='header-items'>
  19. <text class='header-item-text'>调入列表</text>
  20. <text class='header-item-num'>{{bookInNum}}/</text>
  21. <text class='header-item-num'>{{bookExchangeNum}}本</text>
  22. </view >
  23. <view class='nav' wx:if='{{list.length > 0}}'>
  24. <view class='nav-item' wx:for='{{navList}}' wx:key='index' data-index='{{index}}' bindtap='selectNavCtl'>
  25. <view class='nav-item-row {{navIndex == index ? "nav-item-row-active" : ""}}'>
  26. <view class='nav-item-text nav-item-text-active'>{{item.text}}</view>
  27. </view>
  28. </view>
  29. </view>
  30. <view wx:if='{{list.length == 0}}'>
  31. <template is='nodata' data='{{...nodataArray}}'></template>
  32. <view class='firstaddBooks' data-url='president/pages/good_books_new/good_books_new' bindtap='navigateTo'>去选书</view>
  33. </view>
  34. <view class='list' wx:else style='padding-bottom:98rpx;'>
  35. <view class='li' wx:for='{{list}}' wx:key='index'>
  36. <view class='book-container'>
  37. <view class='book-wrapper-items'>
  38. <view class='book-images-items'>
  39. <image class='book-image-item' mode='aspectFill' src='{{item.local_image ? baseImgUrl + item.local_image + thumbnail : "../../../assets/default_headicon.png"}}' data-images='{{([item.local_image])}}' data-baseurl='{{baseImgUrl}}' bindtap='viewImage'></image>
  40. </view>
  41. <view style='padding:15rpx;' data-url='president/pages/book_Imformation/book_Imformation' data-paras='{{({bookInfoId: item.book_info_id})}}' bindtap='navigateTo'>
  42. <view class='book-title-new' wx:if='{{item.title}}'>{{item.title}}</view>
  43. <view class='li-right-tips-items' wx:if='{{item.theme}}'>{{item.theme}}</view>
  44. <view class='book-text'>
  45. <image class='book-icon-two' wx:for='{{item.heat}}' wx:key='index' src="../../../assets/fire.png"></image>
  46. </view>
  47. <!-- <view class='book-text-empty' wx:if='{{item.book_size<1}}'>库存为空,无法调入</view> -->
  48. </view>
  49. <!-- <view class='book-footer' wx:if='{{item.book_size<1}}'>
  50. <view class='book-footer-delete' data-isbn13='{{item.isbn13}}' data-detailid='{{item.book_detail_id}}' data-infoid='{{item.book_info_id}}' data-size='{{item.book_size}}' data-index='{{index}}' data-number='{{item.number}}' bindtap='subtractionBook'>删除</view>
  51. </view> -->
  52. <view class='book-footer'>
  53. <image src='../../../assets/jian_fa.png' class='ul-num-img' data-isbn13='{{item.isbn13}}' data-detailid='{{item.book_detail_id}}' data-infoid='{{item.book_info_id}}' data-size='{{item.book_size}}' data-index='{{index}}' data-number='{{item.number}}' bindtap='subtractionBook'></image>
  54. <text class='ul-num-text'>{{item.number}}</text>
  55. <image src='../../../assets/jia_fa.png' class='ul-num-img' data-size='{{item.book_size}}' data-isbn13='{{item.isbn13}}' data-detailid='{{item.book_detail_id}}' data-infoid='{{item.book_info_id}}' data-index='{{index}}' data-number='{{item.number}}' bindtap='addBook'></image>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class='load' wx:if='{{isDown}}'>已经到底了</view>
  61. <view class='load' wx:if='{{isLoad}}'>
  62. <image src='../../../assets/zai_jia.png' class='load-img'></image>
  63. <view>正在玩命加载...</view>
  64. </view>
  65. </view>
  66. <!-- 调书规则提示弹框 -->
  67. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenGetallModel}}'></view>
  68. <view class='model' wx:if='{{hiddenGetallModel}}'>
  69. <view class='model-tips'>
  70. <view>规定每两月可调整一次,且每次只能调入150本</view>
  71. <view class='model-tips-btn' bindtap='allShowModel'>知道啦</view>
  72. </view>
  73. </view>
  74. </view>
  75. <template is='footer' data='{{...footerData}}'></template>
  76. </view>