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.
12 lines
512 B
12 lines
512 B
1 month ago
|
<view class="container">
|
||
|
<button bindtap="randomRollCall">随机点名</button>
|
||
|
<input type="number" placeholder="输入评分" bindinput="inputScore" />
|
||
|
<button bindtap="updatePoints">更新积分</button>
|
||
|
<view wx:if="{{selectedStudent}}">
|
||
|
<text>当前点名学生: {{selectedStudent.name}} ({{selectedStudent.id}})</text>
|
||
|
<text>当前积分: {{selectedStudent.points}}</text>
|
||
|
</view>
|
||
|
<view wx:if="{{students.length === 0}}">
|
||
|
<text>没有学生信息</text>
|
||
|
</view>
|
||
|
</view>
|