<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">
					<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月30日</view>
						<view class="msg" style="margin-left: 10rpx;">星期三</view>
					</view>
				</view>
				<!-- 课程列表 -->
				<view style="margin-bottom: 20rpx;">
					<view style="display: flex; align-items: center;" v-for="(item,index) in classList" :key="index">
						<view class="index"></view>

						<view class="class-block" style="width: 90%;">
							<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-title">{{item.time}}</view>
						</view>
					</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;
				}
			}

			.index {
				width: 1%;
				height: 120rpx;
				background-color: #3C9CFF;
				border-radius: 20rpx;
				margin-left: 20rpx;
			}
		}
	}

	.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;
	}

	.t-icon {
		width: 40rpx;
		height: 40rpx;
	}
</style>
