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
24 lines
1.0 KiB
5 years ago
|
<!--
|
||
|
所有的页面数据见同目录classes.js中Page.data定义部分
|
||
|
classes: 课程列表 type: Array
|
||
|
元素class: 课程信息 class.objectId 唯一
|
||
|
class.objectId 唯一键
|
||
|
class.name 课程名称
|
||
|
-->
|
||
5 years ago
|
<view class="container">
|
||
5 years ago
|
|
||
5 years ago
|
<view class="course-list">
|
||
5 years ago
|
<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>
|
||
5 years ago
|
<block wx:for="{{classes}}" wx:for-item="class" wx:key="objectId">
|
||
5 years ago
|
<view class="classroom flex-wrap" data-class_id="{{class.objectId}}" data-class_name="{{class.name}}" bindtap="enter_class" catchlongpress="del_class">
|
||
5 years ago
|
<!--icon type="success"></icon-->
|
||
|
<myicon class="classroom-icon" type="internet_class" size="26" color="#2351e4"></myicon>
|
||
5 years ago
|
<text>{{class.name}}</text>
|
||
|
</view>
|
||
|
</block>
|
||
5 years ago
|
</view>
|
||
5 years ago
|
</view>
|
||
5 years ago
|
<myicon class="add-class" type="add" color="#00C7B7" size="56" bindtap="add_class"></myicon>
|
||
5 years ago
|
|