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

<!--pages/classroom/classroom.wxml-->
<view class="index">
<view class="grid-cell">
<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>
</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>
</view>
</view>
</view>
<!-- -->
<view wx:if="{{current_user.objectId!=teacher.objectId}}">
<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>