book_detail.wxml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!--parents/pages/book_detail/book_detail.wxml-->
  2. <import src="../../../templates/loading/loading.wxml" />
  3. <view class='container'>
  4. <template is='loading' wx:if='{{!isLoaded}}'></template>
  5. <view class='wrapper pb' wx:else>
  6. <view class='header-one-imgs'>
  7. <view class='header-one-imgs-big'></view>
  8. <image src='{{bookImg ? baseImgUrl + bookImg: "../../../assets/default_headicon.png"}}' class='header-one-imgs-big-items'></image>
  9. <image src='{{bookImg ? baseImgUrl + bookImg: "../../../assets/default_headicon.png"}}' class='header-one-imgs-small'></image>
  10. </view>
  11. <view class='header'>
  12. <view class='header-one'>
  13. <view class='header-one-name'>{{title}}</view>
  14. <view class='header-one-info'>
  15. <view class='header-one-info-left' wx:if='{{theme}}'>{{theme}}</view>
  16. <view class='header-one-info-right' wx:if='{{grade}}'>推荐{{grade}}</view>
  17. </view>
  18. </view>
  19. <view class='detail' wx:if='{{summary}}'>
  20. <view class='detail-title'>内容简介</view>
  21. <view>{{summary}}</view>
  22. </view>
  23. <view class='list-items' wx:if='{{sameList.length>0}}'>
  24. <view class='list-items-title'>同类推荐</view>
  25. <view class='list-item' wx:for='{{sameList}}' wx:key='index' data-url='parents/pages/book_detail/book_detail' data-zindex='3' data-paras='{{({bookInfoId: item.bookInfoId})}}' bindtap='navigateTo'>
  26. <view class='list-item-img'>
  27. <image src='{{item.localImage?baseImgUrl+item.localImage:"../../../assets/banner1.png"}}' class='list-item-img-items'></image>
  28. </view>
  29. <view class='list-item-content'>
  30. <view>{{item.title}}</view>
  31. <view class='list-item-content-tips'>{{item.summary}}</view>
  32. <view class='list-item-content-label'>
  33. <view class='list-item-content-label-one' wx:if='{{item.themeName}}'>{{item.themeName}}</view>
  34. <view class='list-item-content-label-two' wx:if='{{item.grade}}'>推荐{{item.grade}}</view>
  35. </view>
  36. <view>
  37. <image src='../../../assets/fire.png' class='list-item-content-fire' wx:for="{{item.heat}}" wx:key='index'></image>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>