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.
30 lines
1.0 KiB
30 lines
1.0 KiB
5 years ago
|
<!--pages/classroom/classroom.wxml-->
|
||
|
<view class="index">
|
||
|
<view class="grid-celll">
|
||
|
<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}}">
|
||
|
</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>
|
||
|
<text>{{student.username}}</text>
|
||
|
</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>
|