borrow_car.wxml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!--parents//pages/borrow_car/borrow_car.wxml-->
  2. <import src="../../../templates/footer/footer.wxml" />
  3. <import src="../../../templates/loading/loading.wxml" />
  4. <view class='container'>
  5. <template is='loading' wx:if='{{!isLoaded}}'></template>
  6. <view class='wrapper' wx:else>
  7. <view class='li'>
  8. <view class='list-items' wx:if='{{!isDetail}}'>
  9. <view class='list-items-title'>{{options.list[0].libName}}</view>
  10. <view class='list-item' wx:for='{{list}}' wx:key='index'>
  11. <view class='list-item-img'>
  12. <image src='{{item.img?baseImgUrl+item.img:"../../../assets/banner1.png"}}' class='list-item-img-items'></image>
  13. </view>
  14. <view class='list-item-content'>
  15. <view>{{item.title}}</view>
  16. <view class='list-item-content-tips'>{{item.summary}}</view>
  17. <view class='list-items-del' data-index='{{index}}' bindtap='sureDelete'>
  18. <image src='../../../assets/delete_white.png' class='list-items-del-img'></image>
  19. <view class='list-items-del-text'>删除</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class='list-down' wx:if='{{!isDetail}}'>
  25. <view class='list-down-tips' bindtap='showModel'>
  26. <image src='../../../assets/gan_tan.png' class='list-down-tips-img'></image>
  27. <text>借阅规则说明</text>
  28. </view>
  29. <view class='list-down-footer'>
  30. <view>
  31. <view class='list-down-footer-all'>共计{{list.length}}本</view>
  32. <view class='list-down-footer-num'>还可借{{borromNum}}本</view>
  33. </view>
  34. <view>
  35. <view class='list-down-footer-sao' bindtap='scanCtl'>继续扫书</view>
  36. <view class='list-down-footer-sure' bindtap='submitCtl'>确定借阅</view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class='list-sure' wx:if='{{isDetail}}'>
  41. <view class='list-sure-yes'>
  42. <image src='../../../assets/shape.png' class='list-sure-yes-img'></image>
  43. </view>
  44. <view>借阅成功</view>
  45. </view>
  46. <view class='list-detail' wx:if='{{isDetail}}' >
  47. <view class='list-detail-head'>
  48. <view>借阅详情</view>
  49. <view>{{borrowTime}}</view>
  50. </view>
  51. <view class='list-dedail-item' wx:for='{{borrowList}}' wx:key='index' wx:if='{{borrowList.length>0}}'>
  52. <view class='list-item'>
  53. <view class='list-item-img'>
  54. <image src='{{item.localImage?baseImgUrl+item.localImage:"../../../assets/banner1.png"}}'class='list-item-img-items'></image>
  55. </view>
  56. <view class='list-item-content'>
  57. <view class='list-item-content-title'>{{item.title}}</view>
  58. <view class='list-item-content-tips' wx:if='{{item.summary}}'>{{item.summary}}</view>
  59. </view>
  60. </view>
  61. <view class='list-dedail-date'>
  62. <text>借阅期限:</text>
  63. <text> {{item.borrowedTime}}-{{item.backBookTime}}</text>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 借阅弹幕 -->
  69. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  70. <view class='model' wx:if='{{hiddenModel}}' style='margin:0 130rpx;top:15%'>
  71. <view class='model-list'>
  72. <view class='model-list-title'>借阅规则说明</view>
  73. <view>每个孩子一次最多借两本书,每次借书的期限是7天,7天内还书之后就可以再进行下一次借书了,所以是一个月无限次数借书的。</view>
  74. <view style='padding:40rpx 0;'>如在每月排行榜评选出月度前三名,可获得为期一个月的每次借阅数量调整权限:</view>
  75. <view>第一名:5本;</view>
  76. <view>第二名:4本;</view>
  77. <view>第三名:3本;</view>
  78. <view>第四名以下:2本</view>
  79. </view>
  80. <view class='model-list-del'>
  81. <image src='../../../assets/guan_bi.png' class='model-list-img' bindtap='allShowModel'></image>
  82. </view>
  83. </view>
  84. <!-- 删除弹幕 -->
  85. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{deleteModel}}'></view>
  86. <view class='model-show' wx:if='{{deleteModel}}'>
  87. <view class='model-list'>
  88. <view class='model-list-title'>确定删除该书籍吗?</view>
  89. </view>
  90. <view class='model-list-footer'>
  91. <view class='model-list-footer-cancel' bindtap='allShowModel'>取消</view>
  92. <view class='model-list-footer-sure' bindtap='delBookCtl'>确定删除</view>
  93. </view>
  94. </view>
  95. </view>
  96. <template is='footer' data='{{...footerData}}'></template>
  97. </view>