parent
fd385582be
commit
9e90dde6a4
@ -0,0 +1,24 @@
|
||||
<view class="container">
|
||||
<view class="header">
|
||||
<text class="title">课堂点名系统</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<button class="btn" bindtap="randomRollCall">随机点名</button>
|
||||
<view wx:if="{{selectedStudent}}">
|
||||
<view class="student-info">
|
||||
<text>当前点名学生: {{selectedStudent.name}} ({{selectedStudent.id}})</text>
|
||||
<text>当前积分: {{selectedStudent.points}}</text>
|
||||
</view>
|
||||
<view class="score-input">
|
||||
<button class="btn" bindtap="setQuestionRepeatedCorrectlyTrue">正确复述问题</button>
|
||||
<button class="btn" bindtap="setQuestionRepeatedCorrectlyFalse">未正确复述问题</button>
|
||||
<input type="number" placeholder="输入评分" bindinput="inputScore" />
|
||||
<button class="btn" bindtap="updatePoints">更新积分</button>
|
||||
<button class="btn" bindtap="studentAbsent">学生未到</button>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{students.length === 0}}">
|
||||
<text>没有学生信息</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
Loading…
Reference in new issue