index.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <view class="Yl_nav_box">
  2. <view class="mian">
  3. <navigator class="item" url="#" wx:for="{{list}}" wx:key="index" style="width: {{item.width}};" bindtap="onClick" data-item="{{item}}">
  4. <text class="iconfont {{item.icon}}" style="color: {{item.color}};" />
  5. <text class="label">{{item.label}}</text>
  6. </navigator>
  7. </view>
  8. <navigator wx:if="{{search}}" class="search" url="#" bindtap="clickSearch">
  9. <text class="iconfont icon-a-sousuolansousuo" style="color: {{startUsing?'var(--assist)':''}};" />
  10. </navigator>
  11. </view>
  12. <van-transition show="{{ startUsing }}" custom-class="block">
  13. <van-search custom-class='Yl_search' value="{{ condition }}" bindfocus='onFocus' bind:blur='onBlur' shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='endSearch' />
  14. <view class="Yl_history" wx:if="{{record}}">
  15. <view class="label" wx:if="{{showHistory && history.length}}">
  16. <text>最近搜索记录</text>
  17. <!-- <text class="iconfont icon-guanlian-shanchu" style="font-size: 24rpx;" bindtap="deleteHistory" /> -->
  18. </view>
  19. <view class="content" wx:if="{{showHistory}}">
  20. <!-- closeable -->
  21. <van-tag wx:for="{{history}}" style="margin-left: 6rpx;" wx:key="item" size="medium" round data-name="{{item}}" catch:close="delteTag" catchtap="clickTag">
  22. {{item}}
  23. </van-tag>
  24. </view>
  25. </view>
  26. </van-transition>
  27. <van-popup show="{{ sortShow }}" position="right" custom-style="width: 660rpx; height:100vh;overflow: hidden;" safe-area-inset-bottom='{{false}}' bind:close="sortClose">
  28. <view class="Yl_head" />
  29. <Yl_ListBox height="{{listHeight}}" pullDown='{{false}}'>
  30. <view class="groud" wx:if="{{filter.stageList.length!=0}}">
  31. <view class="label">
  32. 排序类型
  33. </view>
  34. <view class="content">
  35. <van-button custom-class='but {{item.sorted==1?"active":""}}' wx:for="{{sort}}" wx:key="item.sortid" bindtap="handleSort" data-id="{{item.sortid}}">{{item.sortname}}</van-button>
  36. </view>
  37. </view>
  38. <view class="groud" wx:if="{{filter.stageList.length!=0}}">
  39. <view class="label">
  40. 查看顺序
  41. </view>
  42. <view class="content">
  43. <van-button custom-class='but {{reversed==0?"active":""}}' bindtap="handleReversed" data-id="0"><text class="iconfont icon-jiangxu1" />降序</van-button>
  44. <van-button custom-class='but {{reversed==1?"active":""}}' bindtap="handleReversed" data-id="1"><text class="iconfont icon-shengxu" />升序</van-button>
  45. </view>
  46. </view>
  47. </Yl_ListBox>
  48. <view class="footer" bindtap="sortClick">
  49. <van-button data-name="close" custom-class='v-but'>关闭</van-button>
  50. <van-button data-name="confirm" custom-class='v-but confirm'>确定</van-button>
  51. </view>
  52. </van-popup>