index.wxml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <view class="tabs">
  2. <view style="flex: 1;width: 0;">
  3. <van-tabs swipe-threshold='{{threshold}}' active="{{ active }}" tab-active-class='tab-active-class' color='#3874F6' bind:change="onChange">
  4. <van-tab wx:for="{{tabs}}" wx:key="title" title="{{language[item.title]||item.title}}" />
  5. </van-tabs>
  6. </view>
  7. <view class="right">
  8. <view class="option" hover-class="navigator-hover" bind:tap="clickSearch">
  9. <text class="iconfont icon-a-sousuolansousuo" />
  10. </view>
  11. <view class="option" hover-class="navigator-hover" bind:tap="clickFiltration">
  12. <text class="iconfont icon-shaixuan_xianxing" />
  13. </view>
  14. </view>
  15. </view>
  16. <van-transition show="{{ startUsing }}" custom-class="block">
  17. <van-search custom-class='Yl_search' value="{{ condition }}" bindfocus='onFocus' bind:blur='onBlur' shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' bind:clear='endSearch' />
  18. <view class="Yl_history" wx:if="{{record}}">
  19. <view class="label" wx:if="{{showHistory && history.length}}">
  20. <text>{{language['最近搜索记录']||'最近搜索记录'}}</text>
  21. </view>
  22. <view class="content" wx:if="{{showHistory}}">
  23. <van-tag wx:for="{{history}}" style="margin-left: 6rpx;" wx:key="item" size="medium" round data-name="{{item}}" catch:close="delteTag" catchtap="clickTag">
  24. {{language[item]||item}}
  25. </van-tag>
  26. </view>
  27. </view>
  28. </van-transition>