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.

37 lines
2.1 KiB

<view class="container">
<radio-group class="flex-wrap categories top" name="category" bindchange="onCategoryChange">
<radio class="category" wx:for="{{categories}}" wx:for-item="category" value="{{category.value}}" checked="{{category.checked}}">{{category.name}}</radio>
</radio-group>
<radio-group class="flex-wrap statuses top" name="status" bindchange="onStatusChange">
<radio class="status" wx:for="{{statuses}}" wx:for-item="status" value="{{status.value}}" checked="{{status.checked}}">{{status.name}}</radio>
</radio-group>
<view class="loading" wx:if="{{loading}}">
<image src="../../images/loading_min.gif" style="width:20px;height:20px;"></image>
</view>
<view class="course-list">
<view wx:if="{{courses.length==0 && !loading}}" class="none-content">
<image class="none-content" src="../../images/none.png" mode="aspectFit"></image>
<text class="none-content hint">空空如也!</text>
</view>
<block wx:for="{{courses}}" wx:for-item="course" wx:key="id">
<view class="classroom flex-wrap" data-id="{{course.id}}" data-course_name="{{course.name}}" bindtap="enter_course">
<!--icon type="success"></icon-->
<myicon class="classroom-icon" type="internet_class" size="26" color="#2351e4"></myicon>
<text>{{course.name}}</text>
</view>
</block>
5 years ago
</view>
</view>
<myicon class="add-class" type="add" color="#00C7B7" size="56" bindtap="show_join_course_modal"></myicon>
<modal id="modal" hidden="{{!show_join_course_modal}}" title="加入课堂" confirm-text="提交" cancel-text="取消" bindcancel="cancel_join_course_modal" bindconfirm="join_course">
<input type='text' bindinput="update_invite_code" class="code-input" placeholder="邀请码" auto-focus/>
<checkbox-group bindchange="update_identities">
<text>身份:</text>
<lable class="identity"><checkbox value="professor"/>教师</lable>
<lable class="identity"><checkbox value="assistant_professor"/>助教</lable>
<lable class="identity"><checkbox value="student"/>学生</lable>
</checkbox-group>
</modal>