parent
7a2550afcf
commit
d5225d0c71
@ -0,0 +1,12 @@
|
||||
<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>
|
Loading…
Reference in new issue