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.
26 lines
1.4 KiB
26 lines
1.4 KiB
<view class="container">
|
|
<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>
|
|
</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> |