hot.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template name="hot">
  2. <swiper indicator-dots="{{hotData.indicatorDots}}" autoplay="{{hotData.autoplay}}" interval="{{hotData.interval}}" duration="{{hotData.duration}}" circular="{{hotData.circular}}">
  3. <block wx:for="{{hotData.imgUrls}}" wx:key="{{index}}">
  4. <swiper-item>
  5. <image src="{{item}}" class="slide-image" width="750" height="318" />
  6. </swiper-item>
  7. </block>
  8. </swiper>
  9. <view class="searchSection">
  10. <input bindinput="inputHandler" bindconfirm="searchHandler" placeholder="{{hotData.hotSearch}}" placeholder-style="text-indent:20rpx" confirm-type="search"></input>
  11. <button bindtap="searchHandler" class="searchBtn" plain="{{true}}">
  12. <icon type="search" size="17" />
  13. </button>
  14. <view class="allBooks" bindtap="goToBooks">全部课本</view>
  15. </view>
  16. <view class="hotSection">
  17. <view class="title">
  18. <image src="../../static/image/hot_recommand.png" alt="" />
  19. <text>热门推荐</text>
  20. </view>
  21. <view class="hotWares" style="flex-direction:row;">
  22. <view class="hotWareCard" wx:for="{{hotData.wareCards}}" wx:key="">
  23. <image class="wareCardImg" src="{{item.img}}" />
  24. <text class="wareCardTitle">{{item.title}}</text>
  25. <text class="wareCardTip">{{item.grade}}</text>
  26. <view class="bottomData">
  27. <view class="wareCardPlays">
  28. <image class="wareCardPlaysImg" src="../../static/image/hotPlays.png" />
  29. <text>{{item.plays}}</text>
  30. </view>
  31. <view class="wareCardLikes">
  32. <image class="wareCardLikesImg" src="../../static/image/like.png" />
  33. <text>{{item.likes}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>