java-mall-app/unpackage/dist/dev/mp-weixin/components/zy-search/zy-search.wxml
2025-12-12 17:04:03 +08:00

1 line
2.1 KiB
Plaintext

<view class="data-v-c880309c"><view class="search data-v-c880309c"><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-c880309c"/></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-c880309c"/></block><image class="search-icon data-v-c880309c" src="https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/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-c880309c','s-'+theme]}}"><view class="header data-v-c880309c">{{''+$root.m2+''}}<image src="https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/zy-search/delete.svg" mode="aspectFit" data-event-opts="{{[['tap',[['delhistory',['$event']]]]]}}" bindtap="__e" class="data-v-c880309c"></image></view><view class="list data-v-c880309c"><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-c880309c">{{item}}</view></block></view></view></block><block wx:if="{{showWant}}"><view class="{{['data-v-c880309c','wanted-'+theme]}}"><view class="header data-v-c880309c">{{$root.m3}}</view><view class="list data-v-c880309c"><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-c880309c">{{item}}</view></block></view></view></block></view>