searchcategory.wxml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <!--pages/pinduoduo/category.wxml-->
  2. <view id="main" wx:if="{{loadover}}" class="{{theme_type}}">
  3. <view id="index-content-v2">
  4. <!-- newnav begin -->
  5. <view id='search-bar'>
  6. <view class='search-title-container-result'>
  7. <view class='view-top-container'>
  8. <view class="search-content-clear search-content-clear-result" bindtap='clear_input'></view>
  9. <view id="search-result-submit">
  10. <input id="result-input" value='{{keyword}}' bindinput="bindKeyInput" bindconfirm="searchbtn" placeholder="输入商品名称" class='search-box-view-main'></input>
  11. </view>
  12. <view class='search-view-icon' bindtap='clear_input'></view>
  13. </view>
  14. <view class='cancel-container-view' bindtap='clear_input'>
  15. <view class='cancel-button-view'>取消</view>
  16. </view>
  17. </view>
  18. </view>
  19. <!-- newnav end-->
  20. <!--new content begin-->
  21. <view id='sr-gl' class='search-goods-list' >
  22. <view class='test-wrap'>
  23. <view class='search-sort-tab-seat search-sort-with-filter'></view>
  24. <view id="searchSortTabWrap" class='search-sort-with-filter search-result-sort-sticky'>
  25. <view class='search-sort-tab'>
  26. <view class='sort-droplist-trigger {{cur_type == "default" ? "sort-tab-highlight":"" }}' bindtap='go_sort_by' data-type="default">
  27. <text>综合</text>
  28. </view>
  29. <view class='recent-hot-sort {{cur_type == "seller_count" ? "sort-tab-highlight":"" }}' bindtap='go_sort_by' data-type="seller_count" >
  30. 销量
  31. </view>
  32. <view class='sort-by-price {{cur_type == "price" ? "sort-tab-highlight":"" }}' bindtap='go_sort_by' data-type="price" data-sort="{{sort}}">
  33. 价格
  34. <view class='price-icon-wrapper'>
  35. <text class='price-icon-up {{cur_type == "price" && sort =="desc" ? "price-up-hightlight":""}}'></text>
  36. <text class='price-icon-down {{cur_type == "price" && sort =="asc" ? "price-down-hightlight":""}}'></text>
  37. </view>
  38. </view>
  39. <view class='search-sort-cut-off' style="display:none;"></view>
  40. <view class='add-filter ' bindtap='show_price_search_do' style="display:none;">
  41. <text>筛选</text>
  42. <text class='sort-droplist-trigger-menu'></text>
  43. </view>
  44. </view>
  45. <view class='filter-panel search-tab-filter-opt' wx:if="{{show_price_search}}">
  46. <view class="filter-panel-mask" bindtap='hide_search'></view>
  47. <view class='filter-content' id="filter-content">
  48. <view class='filter-content-conditions'>
  49. <view class='price-filter price-filter-opt price-padding-bottom' id="price-filter">
  50. <view class='filter-title'>价格区间(元)</view>
  51. <view class='price-items-wrap' id="price-items-wrap">
  52. <view class='price-items'>
  53. <text bindtap='chose_price' data-price_index="1" data-min_price="0" data-max_price="19" class='price-item no-margin-left {{cur_price_index == 1 ? "filter-selected": ""}}'>0-19</text>
  54. <text bindtap='chose_price' data-price_index="2" data-min_price="19" data-max_price="40" class='price-item {{cur_price_index == 2 ? "filter-selected": ""}}'>19-40</text>
  55. <text bindtap='chose_price' data-price_index="3" data-min_price="40" data-max_price="50" class='price-item {{cur_price_index == 3 ? "filter-selected": ""}}'>40-50</text>
  56. <text bindtap='chose_price' data-price_index="4" data-min_price="50" data-max_price="1000000" class='price-item {{cur_price_index == 4 ? "filter-selected": ""}}'>50以上</text>
  57. </view>
  58. </view>
  59. <view class='custom-price '>
  60. <input class='custom-price-item' bindinput="bindKeyInputmin" type='digit' placeholder="最低价"></input>
  61. <text class='custom-price-line'>-</text>
  62. <input class='custom-price-item' bindinput="bindKeyInputmax" type='digit' placeholder="最高价"></input>
  63. </view>
  64. </view>
  65. </view>
  66. <view class='filter-ok-btn' bindtap='go_search'>完成</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <!--new content end-->
  73. <!-- nav begin -->
  74. <view id="navbar" class='nav-bar-container' style="display:none;">
  75. <view class='nav-bar-content' id="navbar-ul">
  76. <view class='nav-bar-item' bindtap='common_go_link' data-link="/pages/index/index">
  77. <view class='span'>首页</view>
  78. </view>
  79. <view class='nav-bar-item ' wx:for="{{nav}}" bindtap='common_go_link' data-link="/pages/goods/category?id={{item.id}}">
  80. <view class='span {{item.id == cur_pid ? "nbi-selected":""}}'>
  81. {{item.name}}
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- nav end -->
  87. <!-- content begin-->
  88. <view id="index-main-content">
  89. <view id="pcv">
  90. <view id="pcv-tv1-14">
  91. <!--开始商品 -->
  92. <view class='react-base-list-wrapper pcl-list-wrapper'>
  93. <view bindtap="goGoods_link" data-type="{{item.goods_id}}" class='double-grid-one double-grid-one-0' wx:for="{{list}}">
  94. <view class='double-grid-item gap-right'>
  95. <view class='std-goods-image-square goods-image'>
  96. <image src='{{item.image}}' mode='widthFix'></image>
  97. </view>
  98. <view class='goods-name'>
  99. {{item.name}}
  100. </view>
  101. <view class='detail'>
  102. <view class='price-icon b'>
  103. </view>
  104. <view class='price b'>
  105. {{item.danprice}}
  106. </view>
  107. <view class='info'>
  108. <view class='span'>
  109. 已售{{item.seller_count}}
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <!--结束商品-->
  117. </view>
  118. </view>
  119. </view>
  120. <!-- content end -->
  121. <view wx:if="{{LoadingComplete}}" class="tips {{hidetip?'hide':''}} ">正在加载...</view>
  122. <view wx:else class="tips ">{{tip_html}}</view>
  123. </view>
  124. </view>