38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
|
<!--pages/my-student/my-students.wxml-->
|
||
|
<view class="page" data-weui-theme="{{theme}}">
|
||
|
<view class="page__hd" wx:if="{{!showGraph}}">
|
||
|
<view class="page__title">学生成绩波动趋势</view>
|
||
|
<view class="page__desc">学生各学期成绩的变化</view>
|
||
|
</view>
|
||
|
<view class="page__hd" wx:else>
|
||
|
<view class="page__title">{{realName}}</view>
|
||
|
<view class="page__desc">学号 {{numbering}}</view>
|
||
|
</view>
|
||
|
<view class="page__bd" wx:if="{{!showGraph}}">
|
||
|
<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 class="graph" wx:else>
|
||
|
<ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec }}"></ec-canvas>
|
||
|
<a class="weui-btn weui-btn_disabled weui-btn_default" bindtap="onClickBack">返回搜索</a>
|
||
|
</view>
|
||
|
</view>
|