java-mall-app/unpackage/dist/build/mp-weixin/components/zy-search/zy-search.wxml
2024-11-01 16:35:40 +08:00

1 line
2.0 KiB
Plaintext

<view class="data-v-44f99b8f"><view class="search data-v-44f99b8f"><slot></slot><block wx:if="{{isFocus}}"><input maxlength="20" focus="{{true}}" type="text" value="{{searchText}}" confirm-type="search" placeholder="{{$root.m0}}" data-event-opts="{{[['confirm',[['searchStart']]],['input',[['__set_model',['','searchText','$event',['trim']]]]],['blur',[['$forceUpdate']]]]}}" bindconfirm="__e" bindinput="__e" bindblur="__e" class="data-v-44f99b8f"/></block><block wx:else><input maxlength="20" type="text" value="{{searchText}}" confirm-type="search" placeholder="{{$root.m1}}" data-event-opts="{{[['confirm',[['searchStart']]],['input',[['__set_model',['','searchText','$event',['trim']]]]],['blur',[['$forceUpdate']]]]}}" bindconfirm="__e" bindinput="__e" bindblur="__e" class="data-v-44f99b8f"/></block><image class="search-icon data-v-44f99b8f" src="https://static.lancerdt.com/xcxfile/appicon/zy-search/search.svg" mode="aspectFit" data-event-opts="{{[['tap',[['searchStart']]]]}}" bindtap="__e"></image></view><block wx:if="{{$root.g0>0}}"><view class="{{['data-v-44f99b8f','s-'+theme]}}"><view class="header data-v-44f99b8f">{{''+$root.m2+''}}<image src="https://static.lancerdt.com/xcxfile/appicon/zy-search/delete.svg" mode="aspectFit" data-event-opts="{{[['tap',[['delhistory',['$event']]]]]}}" bindtap="__e" class="data-v-44f99b8f"></image></view><view class="list data-v-44f99b8f"><block wx:for="{{hList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['keywordsClick',['$0'],[[['hList','',index]]]]]]]}}" bindtap="__e" class="data-v-44f99b8f">{{item}}</view></block></view></view></block><block wx:if="{{showWant}}"><view class="{{['data-v-44f99b8f','wanted-'+theme]}}"><view class="header data-v-44f99b8f">{{$root.m3}}</view><view class="list data-v-44f99b8f"><block wx:for="{{hotList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['keywordsClick',['$0'],[[['hotList','',index]]]]]]]}}" bindtap="__e" class="data-v-44f99b8f">{{item}}</view></block></view></view></block></view>