30 lines
1.4 KiB
Plaintext
30 lines
1.4 KiB
Plaintext
<!--pages/my-student/my-students.wxml-->
|
|
<view class="page" data-weui-theme="{{theme}}">
|
|
<view class="page__hd">
|
|
<view class="page__title">我的学生</view>
|
|
<view class="page__desc">我管理的学生们</view>
|
|
</view>
|
|
<view class="page__bd">
|
|
<view class="weui-search-bar {{inputShowed ? 'weui-search-bar_focusing' : ''}}" id="searchBar">
|
|
<form class="weui-search-bar__form">
|
|
<view class="weui-search-bar__box">
|
|
<i class="weui-icon-search"></i>
|
|
<input type="text" class="weui-search-bar__input" placeholder="搜索" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" />
|
|
<span class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput"></span>
|
|
</view>
|
|
<label class="weui-search-bar__label" bindtap="showInput">
|
|
<i class="weui-icon-search"></i>
|
|
<span class="weui-search-bar__text">输入学号搜索</span>
|
|
</label>
|
|
</form>
|
|
<view class="weui-search-bar__cancel-btn" bindtap="hideInput">取消</view>
|
|
</view>
|
|
<view class="weui-cells searchbar-result" wx:if="{{inputVal.length > 0}}">
|
|
<view class="weui-cell weui-cell_active weui-cell_access" wx:for="{{searchStudentsList}}" wx:key="index" data-index="{{index}}" bindtap="onClickShowDocument">
|
|
<view class="weui-cell__bd weui-cell_primary">
|
|
<view>[{{item.numbering}}] {{item.realName}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> |