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.

48 lines
1.4 KiB

5 years ago
<!--pages/classroom/classroom.wxml-->
<view class="index">
<view class="grid-cell">
5 years ago
<view class="grid-view">
<view class="grid-cell" wx:for="{{students}}" wx:for-item="student" wx:key="objectId" bindtap="rep">
<view wx:if="{{student.isasking==0}}">
<text>{{student.username}}</text>
5 years ago
</view>
<view wx:elif="{{student.isasking==1}}">
<text class="reed">{{student.username}}</text>
</view>
<view wx:elif="{{student.isasking==2}}">
<text class="gre">{{student.username}}</text>
</view>
5 years ago
</view>
</view>
</view>
<!-- -->
<view wx:if="{{current_user.objectId!=teacher.objectId}}">
5 years ago
<view class="sco">
<button bindtap="ask">提问</button>
</view>
</view>
<view wx:else>
<button data-id='{{students.username}}' bindtap="sco1">打1分</button>
<button data-id='{{students.username}}' bindtap="sco2">打2分</button>
<button data-id='{{students.username}}' bindtap="sco3">打3分</button>
</view>
</view>
<view class="containner">
<view class="student-list">
<block wx:for="{{students}}" wx:for-item="student" wx:key="objectId">
<view class="student">
<text>姓名:{{student.name}} 用户名:{{student.username}}
是否出席:{{student.present}} 提问状态:{{student.isasking}}
</text>
</view>
</block>
</view>
</view>