index.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <view class="result-container">
  2. <t-search
  3. t-class="t-search"
  4. t-class-input-container="t-class__input-container"
  5. t-class-left="t-search__left-icon"
  6. t-class-input="t-search__input"
  7. value="{{keywords}}"
  8. leftIcon=""
  9. placeholder="iPhone12pro"
  10. bind:submit="handleSubmit"
  11. >
  12. <t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" />
  13. </t-search>
  14. <filter
  15. wr-class="filter-container"
  16. bind:change="handleFilterChange"
  17. layout="{{layout}}"
  18. sorts="{{sorts}}"
  19. overall="{{overall}}"
  20. bind:showFilterPopup="showFilterPopup"
  21. >
  22. <filter-popup
  23. show="{{show}}"
  24. slot="filterPopup"
  25. bind:showFilterPopupClose="showFilterPopupClose"
  26. bind:reset="reset"
  27. bind:confirm="confirm"
  28. >
  29. <view class="price-container" slot="filterSlot">
  30. <view class="price-between">价格区间</view>
  31. <view class="price-ipts-wrap">
  32. <t-input
  33. type="number"
  34. t-class="price-ipt"
  35. t-class-input="t-class-input"
  36. placeholder="最低价"
  37. value="{{minVal}}"
  38. bindchange="onMinValAction"
  39. />
  40. <view class="price-divided">-</view>
  41. <t-input
  42. type="number"
  43. t-class="price-ipt"
  44. t-class-input="t-class-input"
  45. placeholder="最高价"
  46. value="{{maxVal}}"
  47. bindchange="onMaxValAction"
  48. />
  49. </view>
  50. </view>
  51. </filter-popup>
  52. </filter>
  53. <view class="empty-wrap" wx:if="{{goodsList.length === 0 && hasLoaded}}">
  54. <t-empty t-class="empty-tips" size="240rpx" description="暂无相关商品" />
  55. </view>
  56. <view class="category-goods-list" wx:if="{{goodsList.length}}">
  57. <goods-list
  58. wr-class="wr-goods-list"
  59. goodsList="{{goodsList}}"
  60. bind:click="gotoGoodsDetail"
  61. bind:addcart="handleAddCart"
  62. />
  63. </view>
  64. <load-more wx:if="{{goodsList.length > 0}}" status="{{loadMoreStatus}}" no-more-text="没有更多了" />
  65. </view>
  66. <t-toast id="t-toast" />