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.

17 lines
673 B

<view class="body">
<form bindsubmit="onSubmit">
<view class="search">
<view class="search-bar">
<icon type="search"></icon>
<input placeholder="学校/单位" auto-focus="1" name="keyword" bindinput="onInput" value="{{keyword}}" bindconfirm="onConfirm"></input>
<icon wx:if="{{_keyword}}" type="clear" bindtap="clearKeyword"></icon>
</view>
<button form-type="submit" size="mini" type="main">搜索</button>
</view>
</form>
<scroll-view class="schools" scroll-y="1">
<view class="school-wrap" wx:for="{{schools}}" wx:key="id">
<school-item _id="{{item.id}}" name="{{item.name}}"/>
</view>
</scroll-view>
</view>