<!--pages/diy_ss/diy_ss.wxml-->
 <!-- wx:if="{{object.style==1}}" -->
 <!-- first --> 
<block wx:if="{{object.style==1}}">
	<view class='ss' style="position: relative;{{transparent ? '' : (nav_backgroundColor ? ('background-color:' + nav_backgroundColor) : 'background-color:#fff;')}}">
		<view bindtap='click_sear'   class="s1_gk_a1 " wx:if="{{first}}">
		   <view class="s_ge {{object.is_bord==1 ? 'is_bord' : ''}}" style="text-align: {{object.searchbox_center}};">
			   <image src='{{imghost}}/miniapp/images/search.png' style="vertical-align:baseline;"></image>
          <text wx:if="{{object.searchbox_text}}">{{object.searchbox_text}}</text>
	           <text wx:else>请输入商品关键字</text>
		   </view>
		</view>
		<!-- 响应搜索事件 -->
		<view   class="s1_gk_a1" wx:else>
		   <view class='s_ge flex'>
			   <image class="find_img" src='{{imghost}}/miniapp/images/search.png' bindtap='sear'></image>
				 <input id="find_inp" class="find_inp" value="{{inputval}}" bindfocus="inputFocus" 
					 bindconfirm="sear"  bindinput='set_input' focus="{{inputShowed}}" bindblur="onblur" />
		   </view>
			 <view class="his_str his_str1" wx:if="{{searchRecord.length>0}}">
				<block wx:for="{{searchRecord}}"> 
			 	   <view class="item" bindtap="sear_key" data-item="{{item}}" >{{item}}</view>
				</block>
			 	<view wx:if="{{searchRecord.length>0}}" class="clear" bindtap="del_his">清除</view>
			 </view>
		</view>		
		
			
	</view>
</block>

<block wx:if="{{object.style==2}}">
<view style="position: relative;">
	<view style='background-color:{{object.top_bgcolor}}; display: flex; align-items: center; justify-content: space-around;padding:16rpx 0;'>
	    <view class='s2_left'>
	        <navigator open-type="switchTab" url="/pages/goods/categoryList/categoryList" class="s1_gk_a1 ">
	        <image wx:if="{{object.leftImage}}" src='{{object.leftImage}}' style="margin:0;position: relative;left: 6rpx"></image>
	        <image wx:else src='{{imghost}}/miniapp/images/model/nav.png' style="margin:0;position: relative;left: 6rpx"></image>
	        </navigator>
	    </view>
	    <view class="s2_cen {{object.is_bord==1 ? 'is_bord' : ''}}" style='background-color:{{object.inner_bgcolor}}'>
	        <navigator wx:if="{{first}}" bindtap='click_sear' class="s1_gk_a2 flex " style='height: 100%;color:{{object.word_color?object.word_color:"#fff"}};'>
	           <text class="iconfont icon-search" style="font-size: 40rpx;"></text>
	           <text wx:if="{{object.searchbox_text}}">{{object.searchbox_text}}</text>
	           <text wx:else>请输入商品关键字</text>
	        </navigator>
			<view wx:else class="s1_gk_a2" style='color:{{object.word_color?object.word_color:"#fff"}}'>
					<!-- <view class="pr"> -->
						<view class="flex ali-c">
							<text style="font-size: 40rpx;" class="iconfont icon-search" bindtap='sear'></text>
							<input  id="find_inp" class="find_inp2" value="{{inputval}}"  bindblur="onblur" bindfocus="inputFocus"
									   bindconfirm="sear"  bindinput='set_input' focus="{{inputShowed}}"/>
						</view>
						<view class="his_str his_str2" wx:if="{{searchRecord.length>0 && is_his}}">
							<block wx:for="{{searchRecord}}">
							   <view class="item" bindtap="sear_key" data-item="{{item}}">{{item}}</view>
							</block>		 	
							<view wx:if="{{searchRecord.length>0}}" class="clear" bindtap="del_his">清除</view>
						</view>
						<!-- wx:if="{{inputShowed}}" -->
						
				  <!-- </view> -->
					
			   
			 </view>
	    </view>
	    <view class='s2_right'>
	        <navigator open-type="switchTab"  url="/pages/cart/cart/cart" class="s1_gk_a1">
	        <image wx:if="{{object.rightImage}}" src='{{object.rightImage}}' style="margin:0;;"></image>
	        <image wx:else src='{{imghost}}/miniapp/images/model/car.png' style="margin:0;;"></image>
	        </navigator>
	    </view>
			
			
		
		<!-- <view class="his_str" style="bottom: -190rpx;" wx:if="{{inputShowed}}">
			<view>历史搜索</view>
			<view>2121</view>
			<view>2121</view>
			<view>2121</view>
		</view> -->
	</view>
</view>

</block>