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.
24 lines
997 B
24 lines
997 B
2 months ago
|
<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>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view wx:if="{{students.length === 0}}">
|
||
|
<text>没有学生信息</text>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|