search.wxml 1.3 KB

12345678910111213141516171819202122232425
  1. <template name="search">
  2. <view class="search-container">
  3. <view class="search-video">
  4. <image class="icon" src="../../static/image/search.png"></image>
  5. <input placeholder="输入关键字" bindinput="focus"/>
  6. </view>
  7. <view class="title" wx:if="{{(searchData.searchList.length > 0) || (searchData.recommendList.length > 0)}}">热门搜索</view>
  8. <view class="no-find"wx:else>
  9. <text>没有找到相关的内容</text>
  10. <text>换个关键字再试试吧</text>
  11. </view>
  12. <scroll-view scroll-y style="height: 64%; overflow: hidden;">
  13. <view class="hot-video">
  14. <view class="hot-item" wx:for="{{searchData.searchList}}" wx:key="{{inedex}}" bindtap="details" data-id="{{item.id}}">
  15. <image src="{{item.iconImg}}"></image>
  16. </view>
  17. <!--推荐-->
  18. <view class="hot-item" wx:for="{{searchData.recommendList}}" wx:key="{{inedex}}" bindtap="details" data-id="{{item.courseId}}">
  19. <image src="{{item.courseIcon}}"></image>
  20. </view>
  21. </view>
  22. <view wx:if="{{(searchData.searchList.length > 0) || (searchData.recommendList.length > 0)}}" class="bottom">已经拖到底啦</view>
  23. </scroll-view>
  24. </view>
  25. </template>