123456789101112131415161718192021222324252627 |
- <view class="Yl_nav_box">
- <view class="mian">
- <navigator class="item" url="#" wx:for="{{list}}" wx:key="index" style="width: {{item.width}};" bindtap="onClick" data-item="{{item}}">
- <text class="iconfont {{item.icon}}" style="color: {{item.color}};" />
- <text class="label">{{item.label}}</text>
- </navigator>
- </view>
- <navigator wx:if="{{search}}" class="search" url="#" bindtap="clickSearch">
- <text class="iconfont icon-a-sousuolansousuo" style="color: {{startUsing?'var(--assist)':''}};" />
- </navigator>
- </view>
- <van-transition show="{{ startUsing }}" custom-class="block">
- <van-search custom-class='Yl_search' value="{{ condition }}" bindfocus='onFocus' bind:blur='onBlur' shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='endSearch' />
- <view class="Yl_history" wx:if="{{record}}">
- <view class="label" wx:if="{{showHistory && history.length}}">
- <text>最近搜索记录</text>
- <!-- <text class="iconfont icon-guanlian-shanchu" style="font-size: 24rpx;" bindtap="deleteHistory" /> -->
- </view>
- <view class="content" wx:if="{{showHistory}}">
- <!-- closeable -->
- <van-tag wx:for="{{history}}" style="margin-left: 6rpx;" wx:key="item" size="medium" round data-name="{{item}}" catch:close="delteTag" catchtap="clickTag">
- {{item}}
- </van-tag>
- </view>
- </view>
- </van-transition>
|