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.

14 lines
498 B

5 years ago
<!--
所有的页面数据见同目录classes.js中Page.data定义部分
classes: 课程列表 type: Array
元素class: 课程信息 class.objectId 唯一
class.objectId 唯一键
class.name 课程名称
-->
<view class="class-list">
<block wx:for="{{classes}}" wx:for-item="class" wx:key="objectId">
<view class="flex-wrap classroom" data-class_id="{{class.objectId}}" data-class_name="{{class.name}}" bindtap="enter_class">
<text>{{class.name}}</text>
</view>
</block>
</view>