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.
 
 
 

1 lines
1.4 KiB

<view class="search-box" style="{{'padding:'+(padding+'rpx')+';'+('margin:'+(margin+'rpx')+';')+('border-radius:'+(radius+'rpx')+';')+('background:'+(backgroundColor)+';')}}"><view class="{{['search-item',[(type=='text')?'flex-y-center':''],[(type=='input')?'flex-between':'']]}}" style="{{'border-radius:'+(searchStyleObj[searchStyle])+';'+('background:'+(frontColor)+';')+('justify-content:'+(textAlign)+';')+('height:'+(height)+';')}}"><block wx:if="{{type=='text'}}"><block><image class="search-icon" src="https://lbqny.migugu.com/admin/public/search.png"></image><view class="ml-md placeholder">{{placeholder}}</view></block></block><block wx:if="{{type=='input'}}"><block><view class="flex-y-center flex-1"><image class="search-icon" src="https://lbqny.migugu.com/admin/public/search.png"></image><input class="flex-1 ml-md mr-md f-paragraph c-title" type="text" disabled="{{disabled}}" placeholder="{{placeholder}}" placeholder-class="f-paragraph c-caption" confirm-type="search" auto-focus="{{autofocus}}" data-event-opts="{{[['input',[['handerInput',['$event']]]],['confirm',[['confirm',['$event']]]]]}}" value="{{keyword}}" bindinput="__e" bindconfirm="__e"/></view><block wx:if="{{confirmSearch}}"><view data-event-opts="{{[['tap',[['confirm',['$event']]]]]}}" class="search-item-btn flex-center radius" style="{{'background:'+(primaryColor)+';'}}" bindtap="__e">搜索</view></block></block></block></view></view>