index.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!--
  2. - Copyright (C) 2018-2019
  3. - All rights reserved, Designed By www.joolun.com
  4. - 注意:
  5. - 本软件为www.joolun.com开发研制,项目使用请保留此说明
  6. -->
  7. <view class="cu-bar search bg-white">
  8. <view class="search-form round">
  9. <text class="cuIcon-search"></text>
  10. <input type="text" placeholder="请输入商品名" confirm-type="search" bindconfirm="searchHandle" focus></input>
  11. </view>
  12. </view>
  13. <view wx:if="{{searchHistory.length > 0}}">
  14. <view class="cu-bar bg-white">
  15. <view class="action"><text class="cuIcon-time"></text>历史搜索</view>
  16. <view class="action">
  17. <text class="cuIcon-delete lg text-gray" bindtap="clearSearchHistory"></text>
  18. </view>
  19. </view>
  20. <view class="padding-sm flex flex-wrap bg-white">
  21. <view class="padding-xs" wx:for="{{searchHistory}}" wx:key="index">
  22. <view class="cu-tag round" bindtap="searchHandle" data-name="{{item.name}}">{{item.name}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view wx:if="{{goodsList}}">
  27. <view class="cu-bar bg-white">
  28. <view class="action"><text class="cuIcon-hot text-orange"></text>全网热榜</view>
  29. </view>
  30. <view class="cu-list menu card-menu sm-border margin-top-sm">
  31. <view class="cu-item" wx:for="{{goodsList}}" wx:key="index">
  32. <navigator hover-class='none' url='/pages/goods/goods-detail/index?id={{item.id}}' class="content overflow-1" data-name="{{item.name}}">
  33. <text class="margin-right-sm text-bold text-orange">{{index+1}}</text>{{item.name}}
  34. </navigator>
  35. </view>
  36. </view>
  37. </view>