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.
64 lines
2.1 KiB
64 lines
2.1 KiB
<!--pages/course/course.wxml-->
|
|
<text>pages/course/course.wxml</text>
|
|
|
|
|
|
<!--pages/index/index.wxml-->
|
|
<view class="farther_box">
|
|
<!-- 头部 -->
|
|
<view class="header_box">
|
|
<view class="header_item" style="font-weight: bold;font-size: 29rpx;margin-top: 10rpx;">
|
|
<view>10</view>
|
|
<view>月</view>
|
|
</view>
|
|
<block wx:for="{{allOver}}" wx:key="id">
|
|
<view class="header_item">
|
|
<view style="font-weight: bold;margin-bottom: 15rpx;">{{item.week}}</view>
|
|
<view style="color: #b2b2b2;">{{item.date}}</view>
|
|
</view>
|
|
</block>
|
|
|
|
</view>
|
|
|
|
<!-- 下划线 -->
|
|
<view style="width: 100%;height: 1rpx;background-color:#ccc ;margin: 8rpx 0;"></view>
|
|
|
|
<!-- 表体 -->
|
|
<view class="content_box">
|
|
<!-- 左 -->
|
|
<view class="content_left">
|
|
<view class="content_left_item" wx:for="{{8}}" wx:key="*this">
|
|
{{index+1}}
|
|
</view>
|
|
</view>
|
|
<!-- 右 -->
|
|
<view class="content_right">
|
|
<!-- 课表内容 -->
|
|
<view class="content_right_week_item" wx:for="{{courseInfo}}" wx:for-item="item1" wx:for-index="index1" wx:key="id">
|
|
<view class="content_right_course_item">
|
|
<view class="course_box" wx:for="{{4}}" wx:for-item="item2" wx:for-index="index2" wx:key="*this">
|
|
<!-- 根据每个课表的存在属性来判断是否显示 -->
|
|
<block wx:if="{{item1.courseList[index2].ifexist}}">
|
|
<view class="course_item">
|
|
<view style="font-size: small;text-align: center;padding: 5rpx;">
|
|
{{item1.courseList[index2].courseRoom}}
|
|
</view>
|
|
<view style="padding-top: 5rpx;">
|
|
{{item1.courseList[index2].courseName}}
|
|
</view>
|
|
</view>
|
|
</block>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 背景网格线 -->
|
|
<view style="position: absolute;width: 100%;height: 100%;z-index: 1;" >
|
|
<view class="gildLines">
|
|
<view style="flex: 1;border-bottom: 1rpx dashed #ccc;"wx:for="{{8}}" wx:key="*this"></view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|