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.

24 lines
1.0 KiB

5 years ago
<!--
所有的页面数据见同目录classes.js中Page.data定义部分
classes: 课程列表 type: Array
元素class: 课程信息 class.objectId 唯一
class.objectId 唯一键
class.name 课程名称
-->
<view class="container">
<view class="course-list">
<image wx:if="{{classes.length==0 && !loading}}" class="none-content" src="../../images/none.png" mode="aspectFit"></image>
<text wx:if="{{classes.length==0 && !loading}}" class="none-content hint">你的课程表空空如也</text>
<block wx:for="{{classes}}" wx:for-item="class" wx:key="objectId">
<view class="classroom flex-wrap" data-class_id="{{class.objectId}}" data-class_name="{{class.name}}" bindtap="enter_class" catchlongpress="del_class">
<!--icon type="success"></icon-->
<myicon class="classroom-icon" type="internet_class" size="26" color="#2351e4"></myicon>
<text>{{class.name}}</text>
</view>
</block>
5 years ago
</view>
</view>
<myicon class="add-class" type="add" color="#00C7B7" size="56" bindtap="add_class"></myicon>