<view class="search">
	<view class="top">
		<view class="input">
			<text class="icon iconfont icon-search"></text>
			<input placeholder="请输入搜索关键词" placeholder-class="placeholder" confirm-type="search" bindinput="bindinput" value="{{value}}" bindconfirm="bindSearch" focus />
		</view>
		<view class="btn" bindtap="bindSearch">搜索</view>
	</view>
	<view class="content" hidden="{{search}}">
		<view class="hot">
			<view class="title">热门标签</view>
			<view class="label">
				<text wx:for="{{hotLabel}}" wx:key="unique" data-text="{{item.keyword}}" bindtap="bindLabel">{{item.keyword}}</text>
			</view>
		</view>
		<view class="record" wx:if="{{record.length>0}}">
			<view class="title">搜索记录</view>
			<view class="label">
				<text wx:for="{{record}}" wx:key="unique" data-text="{{item}}" bindtap="bindLabel">{{item}}</text>
			</view>
			<view class="clean" bindtap="clean">清空搜索记录</view>
		</view>
	</view>
	<view class="searchResult" hidden="{{!search}}">
		<view class="list" wx:if="{{dataList.length>0&&type!='goods'}}" wx:for="{{dataList}}" wx:key="unique" bindtap="choose" data-aid="{{item.aid}}">{{item.title}}</view>
		<goodList list="{{dataList}}" wx:if="{{dataList.length>0&&type=='goods'}}"></goodList>
		<view class="noData" wx:if="{{dataList.length==0}}">
			<view class="column">
				<view class="icon-info"></view>
				<view class="col-text">没有查找到您想找的内容</view>
			</view>
		</view>
	</view>
</view>