
<!-- 搜索 -->
<view class="search">
    <!-- search -->
    <form bindsubmit="searchForm">
        <view class="search-input">
            <input class="search-navigator" placeholder="输入关键字" name="search" value="{{searchTitle}}" focus></input>
            <button class="search-btn" form-type="submit">搜索</button>
        </view>
    </form>
</view>

<!-- 搜索历史 -->
<view class="search-history" wx:if="{{searchHistory != ''}}" style="padding-top: {{systemInfo.barHeight + 90}}px">
    <view class="search-history-title">搜索历史
        <text bindtap="removeSearchHistory">清理</text>
    </view>
    <view class="search-history-tag">
        <view wx:for="{{searchHistory}}" wx:key="searchHistory" bindtap="bindSearch" data-value="{{item}}">{{item}}</view>
    </view>
</view>

<view class="search-history-null" wx:else style="padding-top: {{systemInfo.barHeight + 90}}px">无历史搜索</view>