index.wxml 1.7 KB

1
  1. <view style="{{(colorStyle)}}"><view class="searchGood"><view class="search acea-row row-between-wrapper"><view class="input acea-row row-between-wrapper"><text class="iconfont icon-sousuo"></text><input type="text" confirm-type="search" focus="{{true}}" placeholder="点击搜索商品" placeholder-class="placeholder" data-event-opts="{{[['confirm',[['inputConfirm',['$event']]]],['input',[['__set_model',['','searchValue','$event',[]]],['setValue',['$event']]]]]}}" value="{{searchValue}}" bindconfirm="__e" bindinput="__e"/></view><view data-event-opts="{{[['tap',[['searchBut',['$event']]]]]}}" class="bnt" bindtap="__e">搜索</view></view><block wx:if="{{$root.g0}}"><view class="title acea-row row-between-wrapper"><view>搜索历史</view><view data-event-opts="{{[['tap',[['clear',['$event']]]]]}}" class="iconfont icon-shanchu" bindtap="__e"></view></view><view class="list acea-row"><block wx:for="{{history}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{item.keyword}}"><view data-event-opts="{{[['tap',[['setHotSearchValue',['$0'],[[['history','',index,'keyword']]]]]]]}}" class="item history-item line1" bindtap="__e">{{item.keyword}}</view></block></block></block></view></block><block wx:if="{{$root.g1}}"><view class="title">热门搜索</view><view class="list acea-row"><block wx:for="{{hotSearchList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{item.val}}"><view data-event-opts="{{[['tap',[['setHotSearchValue',['$0'],[[['hotSearchList','',index,'val']]]]]]]}}" class="item line1" bindtap="__e">{{item.val}}</view></block></block></block></view></block></view><block wx:if="{{navigation}}"><home vue-id="74510980-1" bind:__l="__l"></home></block></view>