123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <template>
- <view>
- <back></back>
- <view class="card-box">
- <view class="card-item" style="width: 100%;">
- <view class="card-info">
- <view class="t-icon t-icon-shuji1"></view>
- <text class="info-text">今日课程列表</text>
- </view>
- <view class="home-title-text" style="margin: 0 0 30rpx 0;">
- <view class="msg">今日课程数:</view>
- <view class="card-content">{{classList.length}}</view>
- <view style="display: flex; align-items: center; margin-left: auto; margin-right: 30rpx;">
- <view class="t-icon t-icon-lishi"></view>
- <view class="msg" style="margin-left: 10rpx;">3月29日</view>
- <view class="msg" style="margin-left: 10rpx;">星期二</view>
- </view>
- </view>
- <view class="class-block" v-for="(item,index) in classList" :key="index">
- <view class="block-title">{{item.name}}</view>
- <view class="block-tag-box">
- <view class="block-tag">{{item.teacher}}</view>
- </view>
- <view class="block-subtitle">{{item.timeFrame}}</view>
- <view class="block-subtitle">{{item.time}}</view>
- </view>
- </view>
- <view class="card-item" style="width: 100%;">
- <view class="card-info">
- <view class="t-icon t-icon-zhishi"></view>
- <text class="info-text">孩子课程表</text>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState
- } from 'vuex'
- export default {
- computed: {
- ...mapState('m_children', ['classList'])
- },
- data() {
- return {
- };
- }
- }
- </script>
- <style lang="scss">
- @import '@/pages/common/blockmsg.scss';
- .card-box {
- display: flex;
- flex-flow: column wrap;
- margin: 0 20rpx 0 20rpx;
- justify-content: space-between;
- .card-item {
- margin: 2% 0;
- width: 48%;
- height: auto;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- background-color: #FFF;
- // box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
- border-radius: $card-border-radius;
- .card-info {
- display: flex;
- align-items: center;
- padding: 20rpx;
- .info-text {
- font-size: 30rpx;
- font-weight: bold;
- color: #3B4144;
- margin-left: 10rpx;
- }
- }
- }
- }
- .card-content {
- font-size: 35rpx;
- margin: 10rpx 0 10rpx 25rpx;
- color: $u-primary;
- font-weight: bold;
- }
- .home-title-text {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- margin: -10rpx 0 10rpx 0;
- .t-icon {
- width: 30rpx;
- height: 30rpx;
- }
- }
- .msg {
- color: $color-title;
- margin-left: 30rpx;
- font-size: 30rpx;
- font-weight: bold;
- }
- .t-icon {
- width: 40rpx;
- height: 40rpx;
- }
- </style>
|