<template>
	<view class="content">
		<view class="banner">
			<image src="../../static/img/tc1.png" mode=""></image>
		</view>
		<view class="title">满园春养发店</view>
		<view class="tip flex">
			<view class="time">营业中 周一至周日 11:30-01:00</view>
			<view class="num">780人消费</view>
		</view>
		<view class="address-box flex">
			<view class="address-title">
				<view class="address">康平路星星村综合楼20号</view>
				<view class="ql">距您780m</view>
			</view>
			<view class="btn-box">
				<view class="btn-item">
					<image class="btn-image" src="../../static/icon/call.png" mode=""></image>
					<view class="btn-font">电话</view>
				</view>
				<view class="btn-item">
					<image class="btn-image" src="../../static/icon/dh.png" mode=""></image>
					<view class="btn-font">导航</view>
				</view>
			</view>
		</view>
		<view class="appointment flex" @click="navTo('/pages/shoping/booked')">
			<view class="appointment-left">
				<image class="appointment-icon" src="../../static/icon/dh.png" mode=""></image>
				<view class="appointment-title">预约到店</view>
			</view>
			<view class="appointment-right">
				<view class="appointment-tip">近半年到店200人</view>
				<image class="appointment-jt" src="../../static/user/right.png" mode=""></image>
			</view>
		</view>
		<view class="xian"></view>
		<view class="shop-box">
			<view class="shop-item" v-for="(item,index) in 10">
				<image class="shop-img" src="../../static/icon/hym.png" mode=""></image>
				<view class="shop-info flex">
					<view class="shop-main">
						<view class="shop-title">【舒缓神经】头皮护理I深层清洁</view>
						<view class="shop-tip">80分钟 I 足部 I 足疗</view>
						<view class="shop-pirce">￥189</view>
					</view>
					<view class="shop-right">
						<view class="btn">抢购</view>
						<view class="people">1425人已购买</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		onLoad() {},
		onShow() {},
		onReachBottom() {},
		onReady() {},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url
				})
			}
		}
	};
</script>

<style lang="scss">
	page,
	.content {
		min-height: 100%;
		height: auto;
		background: #ffffff;
	}

	.banner {
		margin: 20rpx auto 0;
		width: 697rpx;
		height: 391rpx;
		background: #FF4C4C;
		border-radius: 20rpx;

		image {
			width: 100%;
			height: 100%;
			border-radius: 20rpx;
		}
	}

	.title {
		padding: 20rpx 26rpx 0;
		font-size: 34rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #101010;
	}

	.tip {
		margin: 0 26rpx;
		padding: 20rpx 0 24rpx;
		border-bottom: 1px solid #F1F1F1;

		.time {
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #101010;
		}

		.num {
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #666666;
		}
	}

	.address-box {
		padding: 32rpx 0;
		margin: 0 26rpx;
		line-height: 1;
		border-bottom: 1px solid #F1F1F1;

		.address {
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #101010;
		}

		.ql {
			margin-top: 10rpx;
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #666666;
		}

		.btn-box {
			display: flex;
			justify-content: flex-end;
			align-items: center;

			.btn-item {
				margin-left: 50rpx;
				display: flex;
				flex-direction: column;
				align-items: center;

				.btn-image {
					width: 46rpx;
					height: 46rpx;
				}

				.btn-font {
					margin-top: 8rpx;
					font-size: 16rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #666666;
					line-height: 24rpx;
				}
			}
		}
	}

	.appointment {
		padding: 24rpx 26rpx 32rpx;

		.appointment-left {
			display: flex;
			align-items: center;

			.appointment-icon {
				width: 36rpx;
				height: 36rpx;
			}

			.appointment-title {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #101010;
				margin-left: 14rpx;
			}
		}

		.appointment-right {
			display: flex;
			align-items: center;

			.appointment-tip {
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
				margin-right: 10rpx;
			}

			.appointment-jt {
				width: 13rpx;
				height: 23rpx;
			}
		}
	}

	.xian {
		height: 20rpx;
		width: 750rpx;
		background: #F5F5F5;
	}

	.shop-box {
		padding: 0 30rpx 50rpx 38rpx;

		.shop-item {
			border-bottom: 1px solid #EFEFEF;
			display: flex;
			align-items: center;
			padding: 20rpx 0;

			.shop-img {
				flex-shrink: 0;
				width: 120rpx;
				height: 120rpx;
				border-radius: 10rpx;
			}

			.shop-info {
				width: 100%;
				margin-left: 14rpx;
				align-items: flex-end;

				.shop-main {
					line-height: 1;

					.shop-title {
						font-size: 26rpx;
						font-family: PingFang SC;
						font-weight: bold;
						color: #000000;
					}

					.shop-tip {
						margin-top: 20rpx;
						font-size: 20rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #666666;
					}

					.shop-pirce {
						margin-top: 16rpx;
						font-size: 28rpx;
						font-family: PingFang SC;
						font-weight: bold;
						color: #F65920;
					}
				}

				.shop-right {
					display: flex;
					flex-direction: column;
					justify-content: flex-end;
					align-items: flex-end;

					.btn {
						width: 105rpx;
						height: 47rpx;
						background: #FF4C4C;
						border-radius: 24rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						font-size: 28rpx;
						font-family: PingFang SC;
						font-weight: bold;
						color: #FFFFFF;
					}

					.people {
						margin-top: 22rpx;
						font-size: 24rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #999999;
					}
				}
			}
		}
	}
</style>