patternMenu.wxml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <view>
  2. <!-- header -->
  3. <view class='header'>
  4. <view class='header-box'>
  5. <view class='f-box f-justify-content-center'>
  6. <view wx:for="{{dataStateArray}}" data-state="{{item.state}}" class='f-item header-item {{item.id == isSelect ? "bdc-theme c-theme":""}}' data-id="{{item.id}}" bindtap='tab'>
  7. {{item.classify_name}}
  8. </view>
  9. </view>
  10. </view>
  11. </view>
  12. <!-- nav 筛选 -->
  13. <view class='header' style='padding-top:84rpx;'>
  14. <view class='header-box' style='height:80rpx;line-height:80rpx;top:104rpx;border-top:2rpx solid #e0e0e0;border-bottom:2rpx solid #e0e0e0;'>
  15. <view class='f-box'>
  16. <view class='f-item f-box f-align-items-center f-justify-content-center' bindtap='timeSortTap'>
  17. <view>最新</view>
  18. <!-- 三角形 -->
  19. <view class='triangle-box'>
  20. <view class='triangle-just {{timeSort == "asc" ? "active" : ""}}'></view>
  21. <view class='triangle-invert {{timeSort == "desc" ? "active" : ""}}'></view>
  22. </view>
  23. </view>
  24. <view class='f-item f-box f-align-items-center f-justify-content-center' bindtap='priceSortTap'>
  25. <view>价格</view>
  26. <!-- 三角形 -->
  27. <view class='triangle-box'>
  28. <view class='triangle-just {{priceSort == "asc" ? "active" : ""}}'></view>
  29. <view class='triangle-invert {{priceSort == "desc" ? "active" : ""}}'></view>
  30. </view>
  31. </view>
  32. <view class='f-item f-box f-align-items-center f-justify-content-center' bindtap='priceMaxMinTap'>
  33. <view>筛选</view>
  34. <!-- 三角形 -->
  35. <view class='triangle-box' style='height:16rpx'>
  36. <view class='triangle-invert'></view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 筛选内容 -->
  41. <view class='filter-main' wx:if="{{filterStatic}}">
  42. <!-- 第一块内容 -->
  43. <view class='filter-frist' wx:if="{{filterArray.length > 0}}">
  44. <radio-group class="radio-group" bindchange="radioChange">
  45. <label class="radio" wx:for="{{filterArray}}">
  46. <radio value="{{item.name}}" color='#e60012' />
  47. {{item.value}}
  48. </label>
  49. </radio-group>
  50. </view>
  51. <view class='filter-next'>
  52. <view class='filter-next-title'>价格区间(元)</view>
  53. <view class='f-box filter-range'>
  54. <view class='f-item'>
  55. <input placeholder='最低价' value="{{minPrice}}" bindblur="blurPriceMin"></input>
  56. </view>
  57. <view class='f-item'>——</view>
  58. <view class='f-item'>
  59. <input placeholder='最高价' value="{{maxPrice}}" bindblur="blurPriceMax"></input>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <!-- 内容 -->
  67. <view class='gift-box'>
  68. <!-- goodsList -->
  69. <view class='f-box f-flex-wrap f-justify-content-between'>
  70. <view class='goods-list' wx:for="{{goodsList}}" data-id="{{item.id}}" bindtap='toGoodsDetail'>
  71. <image src='{{host}}/images/{{item.logo[0]}}' class='goods-img' mode='aspectFit'></image>
  72. <!-- <view class='goods-summary'></view> -->
  73. <view class='goods-title'>{{item.commodity_name}}</view>
  74. <view class='f-box'>
  75. <view wx:if="{{item.commodityChannelPrice && loginStatic}}" class='c-theme'>¥{{item.commodityChannelPrice}}</view>
  76. <view class='c-theme f-item {{item.commodityChannelPrice && loginStatic ? "price-cancel" : ""}}'>¥{{item.commodity_sale}}</view>
  77. </view>
  78. </view>
  79. </view>
  80. <divider wx:if="{{!requestState && page != 1}}"></divider>
  81. <data-none wx:if="{{goodsList.length === 0}}"></data-none>
  82. </view>
  83. </view>
  84. <view class='ceng' bindtap='close' wx:if="{{filterStatic}}"></view>