<template>
	<view style="width: 100vw;height: auto;padding: 30rpx 20rpx;background-color: #f6f6f6;">
		<view style="width: 100%;height: 100%;">
			<text style="font-size: 30rpx;font-weight: bold;">官方套餐</text>
			<view v-for="item,index in array" :key='index'>
				<view class="card">
					<view class="taocan" @click="details">
						<view class="tc_left">
							<text>{{item.title}}</text>
						</view>
						<view class="tc_right">
							<view style="width: 100%;">
								<view class="text">{{item.describe1}}</view>
								<view class="text">{{item.describe2}}</view>
								<view class="text">
									<text style="text-align: left;">时长:{{item.time}}</text>
									<text style="float: right;color: #FF4F61;font-weight: bold;">¥{{item.price}}</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: [{
					title: '套餐一',
					describe1: '疫苗接种+门诊预约+儿保预约',
					describe2: '成都所有社区医院，十名医生专业团队',
					time: '一年',
					price: '599.99'
				}, {
					title: '套餐二',
					describe1: '电话咨询+图文咨询',
					describe2: '不限次数',
					time: '一年',
					price: '199.99'
				}, {
					title: '套餐三',
					describe1: '疫苗接种+门诊预约+儿保预约',
					describe2: '成都所有社区医院，十名医生专业团队',
					time: '一年',
					price: '699.99'
				},{
					title: '套餐四',
					describe1: '代码套餐',
					describe2: '网吧',
					time: '30min',
					price: '9999999'
				},
				{
					title: '套餐五',
					describe1: 'bug套餐',
					describe2: '网吧',
					time: '60min',
					price: '8888888'
				},
				{
					title: '套餐六',
					describe1: '病毒套餐',
					describe2: '自己电脑',
					time: '永久',
					price: '6666666'
				}]
			}
		},
		methods:{
			details(e){
				uni.navigateTo({
					url:'/pages/service_packs/packs_details'
				})
			}
		}
	}
</script>

<style lang="scss">
	.card {
		width: 100%;
		height: auto;
		margin-top: 20rpx;

		// background-image: url(../../static/服务包.png);
		.taocan {
			width: 710rpx;
			height: 230rpx;
			position: relative;
			display: flex;
			border-radius: 10rpx;
			background: radial-gradient(circle at right top, transparent 15rpx, #ffffff 0) top left / 152rpx 51% no-repeat,
				radial-gradient(circle at right bottom, transparent 15rpx, #ffffff 0) bottom left /152rpx 51% no-repeat,
				radial-gradient(circle at left top, transparent 15rpx, #ffffff 0) top right /560rpx 51% no-repeat,
				radial-gradient(circle at left bottom, transparent 15rpx, #ffffff 0) bottom right /560rpx 51% no-repeat;
			filter: drop-shadow(0rpx 2rpx 12rpx 0rpx rgba(0, 0, 0, 0.04));
		}
	}

	.tc_left {
		display: flex;

		justify-content: center;
		align-items: center;
		width: 152rpx;

		text {
			font-size: 30rpx;
			font-weight: bold;
		}
	}

	.tc_right {
		display: flex;
		align-items: center;
		width: 550rpx;
		padding: 0 20rpx;
		font-size: 26rpx;
		.text {
			padding: 10rpx 0rpx;
			width: 100%;
		}
	}
</style>
