<template>
	<view class="page-container">
		<view class="status_bar" :style="{ height: statusBarHeight }"></view>
		<!-- 顶部导航栏 -->
		<view class="top-bar">
			<image class="back-icon" src="/static/back_white.png" mode="aspectFit" @click="goBack"></image>
			<text class="title">中医降脂养肝课</text>
			<view class="top-right">
			</view>
		</view>

		<!-- Banner区域 -->
		<view class="banner">
			<image class="banner-image" src="/static/famous_doctor_img.png" mode="aspectFill"></image>
		</view>

		<!-- 福利专区 -->


		<!-- 底部操作区 -->
		<view class="bottom-action">
			<view class="bottom">
				<view class="countdown">
					<text class="countdown-label">倒计时</text>
					<view class="countdown-time">
						<view class="time">04</view>
						<view class="symbol">:</view>
						<view class="time">32</view>
						<view class="symbol">:</view>
						<view class="time">18</view>
					</view>
					<!-- <text class="countdown-time">{{ countdownTime }}</text> -->
				</view>
				<view class="reserve-btn" @click="reserveCourse">
					<view class="txt">立即预约</view>
					<image class="img" src="/static/appointment_button_bg.png"></image>
					</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
				countdownTime: '04:32:18'
			};
		},
		methods: {
			goBack() {
				uni.navigateBack();
			},
			reserveCourse() {
				// 立即预约
				uni.showToast({
					title: '立即预约',
					icon: 'none'
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	.page-container {
		width: 100%;
		min-height: 100vh;
		background-color: #f8f8f8;

		.top-bar {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 16rpx 24upx;
			// background-color: #ffffff;

			.back-icon {
				width: 40upx;
				height: 40upx;
			}

			.title {
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
			}

		}

		.banner {
			position: relative;
			width: 100%;
			height: 500upx;

			.banner-image {
				width: 100%;
				height: 100%;
			}

			.activity-rule {
				position: absolute;
				top: 20upx;
				right: 20upx;
				padding: 10upx 20upx;
				background-color: #ffffff;
				border-radius: 20upx;
				font-size: 24upx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #333333;
			}
		}

		.bottom-action {
			width: 100%;
			background: #fff;
			position: fixed;
			bottom: 0;
			left: 0;
			right: 0;
			padding: 16rpx 32rpx;

			.bottom {
				height: 88rpx;
				background: #E4F6ED;
				border-radius: 44rpx 44rpx 44rpx 44rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.countdown {
					display: flex;
					align-items: center;
					justify-content: center;
					flex: 1;

					.countdown-label {
						font-size: 28rpx;
						color: #222222;
						margin-right: 10upx;
					}

					.countdown-time {
						font-size: 28upx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #fff;
						display: flex;
						.time{
							width: 40rpx;
							height: 36rpx;
							background: #FBA351;
							border-radius: 8rpx 8rpx 8rpx 8rpx;
							text-align: center;
						}
						.symbol{
							margin: 0 4rpx;
						}
					}
				}

				.reserve-btn {
					width: 274rpx;
					height: 88upx;
					border-radius: 30upx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-size: 28upx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #ffffff;
					position: relative;
					z-index: 2;
					.txt{
						
					}
					.img{
						position: absolute;
						right: 0;
						z-index: -1;
						width: 100%;
						height: 100%;
					}
				}
			}


		}
	}
</style>