parent
2e74396251
commit
27f1600197
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
<!--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>
|
||||
|
@ -0,0 +1,77 @@
|
||||
/* pages/course/course.wxss */
|
||||
|
||||
|
||||
page{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.farther_box{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
/* 头部样式 */
|
||||
.header_box{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
}
|
||||
.header_item{
|
||||
flex: 5;
|
||||
text-align: center;
|
||||
/*border: 1rpx solid black;*/
|
||||
margin-left: 10rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
/* 表体样式 */
|
||||
.content_box{
|
||||
display: flex;
|
||||
height: 100%;
|
||||
}
|
||||
/* 左边 */
|
||||
.content_left{
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
padding-top: 50rpx;
|
||||
flex-direction: column;
|
||||
}
|
||||
.content_left_item{
|
||||
flex: 1;
|
||||
}
|
||||
/* 右边 */
|
||||
.content_right{
|
||||
flex: 8;
|
||||
display: flex;
|
||||
position: relative;
|
||||
}
|
||||
.content_right_week_item{
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
z-index: 99;
|
||||
}
|
||||
.content_right_course_item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
.course_box{
|
||||
flex: 1;
|
||||
margin:8rpx 2rpx;
|
||||
}
|
||||
.course_item{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #9afffa;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.block{
|
||||
flex: 1;
|
||||
}
|
||||
.gildLines{
|
||||
display: flex;
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
}
|
Loading…
Reference in new issue