shopSearch.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!--pages/search-page/search-page.wxml-->
  2. <view class='container'>
  3. <!-- 搜索框 -->
  4. <view class='search-bar'>
  5. <view class='search-box'>
  6. <input placeholder="搜索本店所有商品" class='sear-input' confirm-type='search' bindconfirm='toSearchProdPage' bindinput='getSearchContent' value='{{prodName}}'></input>
  7. <image src='../../images/icon/search.png' class='search-img'></image>
  8. </view>
  9. <text class='search-hint' bindtap='toSearchProdPage' data-shopid="{{shopId}}">搜索</text>
  10. </view>
  11. <view class='search-display'>
  12. <!-- 热门搜索 -->
  13. <view class='hot-search'>
  14. <view class='title-text'>
  15. 店铺热搜
  16. </view>
  17. <view class='hot-search-tags'>
  18. <block wx:for='{{hotSearchList}}' wx:key='index'>
  19. <text class='tags' bindtap='onHistSearch' data-name="{{item.content}}" >{{item.title}}</text>
  20. </block>
  21. </view>
  22. </view>
  23. <!-- 搜索历史 -->
  24. <view class='history-search'>
  25. <view class='title-text history-line'>
  26. 搜索历史
  27. <view class='clear-history'>
  28. <image src='../../images/icon/clear-his.png' bindtap='clearSearch'></image>
  29. </view>
  30. </view>
  31. <block wx:for="{{recentSearch}}" wx:key='index'>
  32. <view class='his-search-tags'>
  33. <text class='tags' bindtap='onHistSearch' data-name="{{item}}">{{item}}</text>
  34. </view>
  35. </block>
  36. </view>
  37. </view>
  38. <shop-tabbar style="position:fixed;bottom:0;width:100%;left:0;right:0;" currentTab="3"></shop-tabbar>
  39. </view>