<view>
    <view class="fixed">
        <view class="top">
            <view class="search">
                <input bindconfirm="submit" bindinput="input" class="input-placeholder" placeholder="搜索你心仪的商品" placeholderClass="placeholder" value="{{kw}}"></input>
                <view class="icon-search iconfont icon-sousuo"></view>
                <view class="img-close iconfont icon-guanbi"></view>
            </view>
        </view>
    </view>
    <view class="message" wx:if="{{historyList.length>0&&data.length==0}}">
        <view class="title">历史记录 <view bindtap="clearHistory" class="delete">
                <image src="/img/delete.png"></image>
            </view>
        </view>
        <view class="tag-list">
            <view :key="index" bindtap="selectKw" class="tag" data-kw="{{item}}" wx:for="{{historyList}}"> {{item}} </view>
        </view>
    </view>
    <view class="goods-list">
        <recomond-list list="{{data}}"></recomond-list>
    </view>
    <view class="loading" wx:if="{{loading}}">正在加载...</view>
</view>
