You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
high-mini/unpackage/dist/dev/mp-weixin/pages/goods/HM-search/HM-search.wxml

1 line
2.4 KiB

<view class="content"><view class="search-box"><m-search class="mSearch-input-box" vue-id="8dc12c92-1" mode="{{2}}" button="inside" placeholder="{{defaultKeyword}}" value="{{keyword}}" data-event-opts="{{[['^search',[['doSearch',[false]]]],['^input',[['__set_model',['','keyword','$event',[]]],['inputChange']]],['^confirm',[['doSearch',[false]]]]]}}" bind:search="__e" bind:input="__e" bind:confirm="__e" bind:__l="__l"></m-search></view><view class="search-keyword"><scroll-view hidden="{{!(isShowKeywordList)}}" class="keyword-list-box" scroll-y="{{true}}"><block wx:for="{{keywordList}}" wx:for-item="row" wx:for-index="index" wx:key="index"><block><view class="keyword-entry" hover-class="keyword-entry-tap"><view data-event-opts="{{[['tap',[['doSearch',['$0'],['keywordList.'+index+'.keyword']]]]]}}" class="keyword-text" catchtap="__e"><rich-text nodes="{{row.htmlStr}}"></rich-text></view><view data-event-opts="{{[['tap',[['setKeyword',['$0'],['keywordList.'+index+'.keyword']]]]]}}" class="keyword-img" catchtap="__e"><image src="../../../static/img/HM-search/back.png"></image></view></view></block></block></scroll-view><scroll-view hidden="{{!(!isShowKeywordList)}}" class="keyword-box" scroll-y="{{true}}"><block wx:if="{{oldKeywordList.length>0}}"><view class="keyword-block"><view class="keyword-list-header"><view>历史搜索</view><view><image src="../../../static/img/HM-search/delete.png" data-event-opts="{{[['tap',[['oldDelete',['$event']]]]]}}" bindtap="__e"></image></view></view><view class="keyword"><block wx:for="{{oldKeywordList}}" wx:for-item="keyword" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['doSearch',['$0'],[[['oldKeywordList','',index]]]]]]]}}" bindtap="__e">{{''+keyword}}</view></block></view></view></block><view class="keyword-block"><view class="keyword-list-header"><view>热门搜索</view><view><image src="{{'../../../static/img/HM-search/attention'+forbid+'.png'}}" data-event-opts="{{[['tap',[['hotToggle',['$event']]]]]}}" bindtap="__e"></image></view></view><block wx:if="{{forbid==''}}"><view class="keyword"><block wx:for="{{hotKeywordList}}" wx:for-item="keyword" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['doSearch',['$0'],[[['hotKeywordList','',index]]]]]]]}}" bindtap="__e">{{''+keyword}}</view></block></view></block><block wx:else><view class="hide-hot-tis"><view>当前搜热门搜索已隐藏</view></view></block></view></scroll-view></view></view>