diy_searchbox.wxml
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!--pages/diy_ss/diy_ss.wxml-->
<block wx:if="{{object.style==1}}">
<view class='ss' >
<view bindtap='click_sear' class="s1_gk_a1" wx:if="{{first}}">
<view class='s_ge'>
<image src='{{imghost}}/miniapp/images/search.png'></image>
<text>在店铺内搜索</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=""
bindconfirm="sear" bindinput='set_input' focus="{{inputShowed}}" bindblur="onblur" />
</view>
</view>
</view>
</block>
<block wx:if="{{object.style==2}}">
<view style='background-color:{{object.top_bgcolor}}' >
<view class='s2_left'>
<navigator url="/pages/index/index/index" class="s1_gk_a1">
<image src='/public/static/images/model/nav.png'></image>
</navigator>
</view>
<view class='s2_cen' 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>在店铺内搜索</text>
</navigator>
<navigator wx:else class="s1_gk_a2 flex" style='height: 100%;color:{{object.word_color?object.word_color:"#fff"}}'>
<text style="font-size: 40rpx;" class="iconfont icon-search" bindtap='sear'></text>
<input id="find_inp" class="find_inp2" value=""
bindconfirm="sear" bindinput='set_input' focus="{{inputShowed}}" />
</navigator>
</view>
<view class='s2_right'>
<navigator url="/pages/cart/cart/cart" class="s1_gk_a1">
<image src='/public/static/images/model/car.png'></image>
</navigator>
</view>
</view>
</block>