wish.wxml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!--parents/pages/wish/wish.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' wx:else>
  7. <view class='nav'>
  8. <view class='nav-item' wx:for='{{navList}}' wx:key='{{index}}' data-index='{{index}}' bindtap='selectNavCtl'>
  9. <view class='nav-item-row {{navIndex == index ? "nav-item-row-active" : ""}}'>
  10. <view class='nav-item-text {{navIndex == index ? "nav-item-text-active" : ""}}'>{{item.text}}</view>
  11. <view class='nav-item-button {{navIndex == index ? "nav-item-button-active" : ""}}' wx:if='{{item.num}}'>{{item.num}}本</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class='list'>
  16. <block wx:if='{{navIndex == 0 && navList[navIndex]["list"].length > 0}}'>
  17. <view class='li' wx:for='{{navList[navIndex]["list"]}}' wx:key='{{index}}' data-url='parents/pages/wish_detail/wish_detail' data-paras='{{({isbn13: item.isbn13, libId: options.libId, vipId: options.vipId})}}' data-zindex='3' bindtap='navigateTo'>
  18. <view class='book-container'>
  19. <view class='book-wrapper'>
  20. <view class='book-images'>
  21. <image class='book-image' mode='aspectFill' src='{{item.local_image ? baseImgUrl + item.local_image : "../../../assets/default_headicon.png"}}'></image>
  22. <view class='book-tip-two' wx:if='{{item.wish_day}}'>已加入{{item.wish_day}}天</view>
  23. </view>
  24. <view class='book-content'>
  25. <view class='book-title'>{{item.titile}}</view>
  26. <view class='book-text'>作者:{{item.author}}</view>
  27. <view class='book-context'>{{item.summary}}</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class='li-progress'>
  32. <view class='li-row li-row-center'>
  33. <view class='li-icon-one'>
  34. <image src='../../../assets/circle_red.png'></image>
  35. <text>当前</text>
  36. </view>
  37. </view>
  38. <view class='li-row margin10'>
  39. <view class='li-circle-blue'></view>
  40. <image class='li-icon-two' src='../../../assets/arrow_two_blue.png'></image>
  41. <view class='li-circle-red'></view>
  42. <image class='li-icon-two' src='../../../assets/arrow_two_blue.png'></image>
  43. <view class='li-circle-blue'></view>
  44. <view class='li-line'></view>
  45. </view>
  46. <view class='li-row'>
  47. <view class='li-text-blue'>开始</view>
  48. <view class='li-text-red'>还差{{item.cishu}}人助力</view>
  49. <view class='li-text-blue'>达成</view>
  50. </view>
  51. </view>
  52. <view class='li-footer'>
  53. <button open-type='share' wx:if='{{item.cishu > 0}}' data-index='{{index}}' class='li-footer-btn'>转发邀请好友助力</button>
  54. <button wx:else data-index='{{index}}' class='li-footer-btn'>助力完成</button>
  55. </view>
  56. </view>
  57. </block>
  58. <view class='li' wx:elif='{{navIndex == 1 && navList[navIndex]["list"].length > 0}}'>
  59. <view class='li-items'>
  60. <view class='li-item' wx:for='{{navList[navIndex]["list"]}}' wx:key='{{index}}' data-url='parents/pages/wish_detail/wish_detail' data-paras='{{({isbn13: item.isbn13, libId: options.libId, vipId: options.vipId})}}' data-zindex='3' bindtap='navigateTo'>
  61. <image class='li-item-image' mode='aspectFill' src='{{item.local_image ? baseImgUrl + item.local_image : "../../../assets/default_headicon.png"}}'></image>
  62. <view class='li-item-text'>还差{{item.cishu}}公里</view>
  63. <view class='li-item-btn-red' data-index='{{index}}' bindtap='helpWishCtl'>
  64. <image class='li-item-icon' src='../../../assets/shan_dian_red.png'></image>
  65. <text>助力</text>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <template is='nodata' data='{{...navList[navIndex]["nodataArray"]}}' wx:else></template>
  71. </view>
  72. <view class='modal-container' wx:if='{{isShowWishModal}}' catchtouchmove='true' catchtap='toggleWishModal'>
  73. <view class='modal-wrapper'>
  74. <image class='modal-icon' src='../../../assets/xin_yuan_icon.png'></image>
  75. <view class='modal-context'>当有些书您想看但所在馆没有,可以将其加入心愿单,我们会从其他馆调运书籍或者最优先加入采购清单内,让您能够更快的看到想看的书。</view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>