<template>
	<view class="content">
		<view class="per_course" v-for="(item,index) in course" :key="index">
			<view class="per_name">
				<text class="name">懒懒熊</text>
				<text class="course_type">私教课</text>
			</view>
			<view class="per_row">
				<text class="lable">总共预约</text>
				<text class="num">9次</text>
			</view>
			<view class="per_row">
				<text class="lable">剩余预约</text>
				<text class="num">9次</text>
			</view>
			<view class="time_row">
				<text class="lable">到期时间：</text>
				<text class="time">2021.09.12</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				course:[1,2],

			}
		},
		onLoad() {
	
			
		},
		methods: {
			
		},
	}
</script>

<style lang="scss">
	page{
		background-color: #F5F5F5;
		.content{
			.per_course{
				width: 351px;
				margin: 12px auto 0;
				background-color: #FFFFFF;
				color: #333333;
				padding: 12px;
				.per_name{
					display: flex;
					justify-content: space-between;
					align-items: center;
					.name{
						font-size: 17px;
						font-weight: bold;
					}
					.course_type{
						background-color: #E5FAF3;
						width: 54px;
						height: 24px;
						line-height: 24px;
						color: #00A421;
						font-size: 14px;
						text-align: center;
					}
				}
				.per_row{
					margin-top: 6px;
					.lable{
						width: 55px;
						height: 21px;
						display: inline-block;
						line-height: 21px;
						text-align: center;
						background-color: #F5F5F5;
						font-size: 12px;
						margin-right: 7px;
					}
					.num{
						font-size: 16px;
						color: #FF4600;
					}
				}
				.time_row{
					margin-top: 6px;
					.lable{
						display: inline-block;
						width: 60px;
						height: 21px;
						line-height: 21px;
						text-align: center;
						font-size: 12px;
					}
					.time{
						font-size: 14px;
						font-weight: bold;
					}
				}
			}
		}
	}
</style>
