hot.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template name="hot">
  2. <view class="searchSection">
  3. <input bindinput="inputHandler" value="{{hotData.inputValue}}" focus="{{hotData.inputFocus}}" bindfocus="searchIconDisappear" bindblur="searchIconCome" bindconfirm="searchHandler" placeholder="{{hotData.hotSearch}}" placeholder-style="text-indent:20rpx" confirm-type="search"></input>
  4. <view>{{searchIcon}}</view>
  5. <view bindtap="inputFocus" class="searchBtn" wx:if="{{hotData.searchIcon}}">
  6. <!-- <icon type="search" size="14" /> -->
  7. <image src="../../static/image/search_new.png" alt="" />
  8. </view>
  9. <view class="allBooks" bindtap="goToBooks">全部课程</view>
  10. <!-- <form bindsubmit="submitTest" report-submit="{{true}}" class="allBooks">
  11. <button formType="submit">Reset</button>
  12. </form> -->
  13. </view>
  14. <view class="recommdSection">
  15. <view class="recommd-title">热门作品</view>
  16. <view class="hotWares">
  17. <view wx:for="{{hotData.hotWorks}}" wx:key="{{index}}" class="worksCard" bindtap="openWorks" data-readId="{{item.classId}}" data-title="{{item.title}}">
  18. <view class="topData">
  19. <view class="worksLeft" catchtap="goToUsers" data-uid="{{item.uid}}">
  20. <image class="authorAvatar" lazy-load="true" src="{{item.avatar}}" />
  21. <view class="profession" wx:if="{{item.profession}}">
  22. {{item.profession}}
  23. </view>
  24. <view class="worksInfo">
  25. <view class="authorName">{{item.nickName}}</view>
  26. <view class="time">{{item.time}}</view>
  27. </view>
  28. </view>
  29. <view class="numberInfo">
  30. <view class="wareCardPlays">
  31. <image class="wareCardPlaysImg" lazy-load="true" src="../../static/image/hotPlays.png" />
  32. <text>{{item.plays}}</text>
  33. </view>
  34. <view class="wareCardLikes">
  35. <image class="wareCardLikesImg" lazy-load="true" src="../../static/image/flower_small_pink.png" />
  36. <text>{{item.likes}}</text>
  37. </view>
  38. </view>
  39. </view>
  40. <image class="wareCardImg" src="{{item.img}}" />
  41. <view class="titleSummary">
  42. <text class="wareCardTitle">{{item.title}}</text>
  43. <text class="wareCardTip">{{item.summary}}</text>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </template>