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.

29 lines
1.5 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>
<add-tips/>
<join-course-modal hidden="{{!show_join_course_modal}}"/>