index.wxml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <navbar parameter="{{parameter}}"></navbar>
  2. <view class="searchGood">
  3. <view class="search acea-row row-between-wrapper">
  4. <view class="input acea-row row-between-wrapper">
  5. <text class="iconfont icon-sousuo2"></text>
  6. <input
  7. type="text"
  8. value="{{searchValue}}"
  9. focus="{{focus}}"
  10. placeholder="点击搜索商品"
  11. placeholder-class="placeholder"
  12. bindinput="setValue"
  13. bindconfirm="searchBut"
  14. />
  15. </view>
  16. <view class="bnt" bindtap="searchBut">搜索</view>
  17. </view>
  18. <view class="title">热门搜索</view>
  19. <view class="list acea-row">
  20. <block wx:for="{{hotSearchList}}" wx:key="index">
  21. <view class="item" bindtap="setHotSearchValue" data-item="{{item}}">{{item}}</view>
  22. </block>
  23. </view>
  24. <view class="line"></view>
  25. <goodList bastList="{{bastList}}" wx:if="{{bastList.length > 0}}"></goodList>
  26. <view class="loadingicon acea-row row-center-wrapper" wx:if="{{bastList.length > 0}}">
  27. <text class="loading iconfont icon-jiazai" hidden="{{loading==false}}"></text>{{loadTitle}}
  28. </view>
  29. </view>
  30. <view class="noCommodity">
  31. <view class="pictrue" wx:if="{{bastList.length == 0}}">
  32. <image src="/images/noSearch.png"></image>
  33. </view>
  34. <recommend host_product="{{host_product}}" wx:if="{{bastList.length == 0 && page > 1}}"></recommend>
  35. </view>