<template>
	<view class="content">
		<view class="header">
			<view class="header-top" :style="backgroundStyle" @click="goNav('/my/vip/index')">
				<image src="../../static/servicePackage/member_ba.png" mode="widthFix" v-if="!isVIP"></image>
				<!--<image src="../../static/activate2.png" mode="widthFix" v-if="isVIP"></image>-->
			</view>
			<view class="group-buy">
				<view class="group-buy-left">
					<view class="group_amount">
						<span>￥</span>
						<span>{{mainData.price}}</span>
					</view>
					<view class="group-rule">
						<span>￥{{mainData.oldPrice}}</span>
						<span>{{mainData.groupNum}}人团</span>
					</view>
				</view>
				<view class="group-buy-right">
					<view class="group-text">距结束仅剩</view>
					<u-count-down :timestamp="endOfServiceTimer" @change="onCountdownChange"></u-count-down>
					<!-- <uni-countdown :show-day="false" :font-size="13" :day="day" :hour="hours" :minute="minutes" :second="seconds" /> -->
					<!-- <view><span>08</span>:<span>08</span>:<span>08</span></view> -->
				</view>
			</view>

			<view class="header-bottom">
				<view class="header-bottom-top">
					<view class="header-bottom-title">
						<view class="header-bottom-title-text">
							<span>{{mainData.title}}</span>
							<!-- <span class="header-bottom-title-liao">
								疗程
							</span> -->
						</view>
						<view class="header-bottom-title-num">
							<span> 已拼</span>
							<span>{{mainData.sales}}</span>
							<span> 次</span>
						</view>
					</view>
					<view class="tewmwork-prompt" v-if="mainData.isNewer=='1'">
						(人人可开团·仅新用户参团)
					</view>
					<view class="tewmork-key">
						<view class="header-bottom-money1"><span v-for="item in labels" :key="item">{{item}}</span></view>
						<view class="xiaoer item-view-biao">{{mainData.levelName}}</view>
					</view>
				</view>
			</view>
		</view>
		<view class="teamwork-plate" v-if="ordersData!=''&&newTime>0">
			<view class="teamwork-list">{{mainData.buyGroupNum}}人在拼团，可直接参与</view>
			<view class=" flex teamwork-line" v-for="(itema,index) in ordersData" :key="index">
				<view>
					<view v-for="(itemL,indexL) in itema.orderList" :key="indexL" class="avatar">
						<image style="width: 30px; height: 30px; border-radius:50%;" :src="itemL.avatar"></image>
						<span>{{itemL.phone}}</span>
					</view>
				</view>
				<view class="flex" style="align-items: center;">
					<view class="teamwork-se">
						<view>还差<span class="team-text">{{itema.lessNum}}人</span>拼成</view>
						<!-- <view>剩余</text>
						<u-count-down :timestamp="endOfServiceTimer" @change="onCountdownChange"></u-count-down>
						</view> -->
					</view>
					<view class="teamwork-button" :class="[newTime<=0?'hBtn':'aBtn']" @click="goumai(mainData,itema.groupNo)" v-if="mainData.isNewer!='1'&&newTime>0">去拼团</view>
				</view>
			</view>
		</view>
		<view class="teamwork-plate">
		<view class="header-bottom-foot-cont">
			<view class="header-bottom-foot-view">
				<image class="header-bottom-foot-view-img1" src="../../static/servicePackage/idCard.png" mode=""></image>
				<span>未服务全额退款</span>
			</view>
			<view class="header-bottom-foot-view" style="margin: 0px 7px;width: 26%;">
				<image class="header-bottom-foot-view-img2" src="../../static/servicePackage/money.png" mode=""></image>
				<span>不满意重做</span>
			</view>
			<view class="header-bottom-foot-view">
				<image class="header-bottom-foot-view-img3" src="../../static/servicePackage/shuangyue.png" mode=""></image>
				<span>最快30分钟上门</span>
			</view>
		</view>
		</view>
		<view class="detail-foot">
			<view class="detail-foot-nav">
				<span class="detail-foot-nav-text">项目详情</span>
				<span class="detail-foot-nav-bor"></span>
			</view>
			<view class="detail-foot-mian">
				<image class="detail-foot-mian-img" v-for="(item,index) in contentImg" :key="index" :src="item" mode="widthFix"></image>
			</view>
		</view>
		<view v-if="isStart" class="detail-btn aBtn" @click="goumai(mainData,'',detailData)">
		<!-- <view v-if="isStart" class="detail-btn" :class="[newTime<=0?'hBtn':'aBtn']" @click="goumai(mainData,'',detailData)"> -->
			<span>￥{{mainData.price}}</span>
			<span> 一键开团</span>
		</view>
		<view v-else class="detail-btn hBtn">
			<span>{{startTime}} 开团</span>
		</view>
		<!-- 支付方式 -->

	</view>
</template>
<script>
	export default{
		data(){
			return{
				detailData:[],
				dataList:[],
				mainData:[],
				isVIP:false,
				// 背景图片的URL可以是动态的，比如从API获取或根据条件生成
				backgroundImageUrl: '',
				liaoTime:'',
				contentImg:[],
				couponId:'',
				couponData:[],
				checkbox:false,
				showpay:false,
				closeable: true,
				openWay: 1,
				paySel: 0,
				tpayMoney: '',
				page:1,
				limit:10,
				mainId:'',
				serviceCount:'',
				labels:[],
				ordersData:[],
				endOfServiceTimer:null,
				newTime:0,
				hours:0,
				minutes:0,
				seconds:0,
				day:0,
				startTime:'',
				isStart:false,
				isEnd:false,
				user:null
			}
		},
		computed: {
		    backgroundStyle() {
		      return {
		        backgroundImage: `url(${this.backgroundImageUrl})`,
		        backgroundSize: 'cover', // 根据需要调整
		      };
		    },
		  },
		onLoad(e) {
			var that=this;
			that.dataList=e;
			that.isVIP=this.$queue.getData('isVIP');
			that.getData();
			that.getUserData();
		},
		methods:{
			//老订单 方法
			onCountdownChange(e) {
				this.newTime=e
			},
			goumai(item,groupNo,detailData){//立即购买
				let currentTimeStamp = new Date().getTime() / 1000;
				let createTimeStamp = new Date(this.user.createTime).getTime() / 1000;
				let timeDiff = currentTimeStamp - createTimeStamp;
				let day = Math.floor(timeDiff/(60*60*24));
				if(day>7&&this.mainData.isNewer=='1'){
					uni.showToast({
						icon:'error',
						title:'该团购只限新人！'
					})
				}else{
					this.mainData.groupNo=groupNo
					this.$queue.setData('mainData',this.mainData);
					this.$queue.setData('detailData',this.detailData);
					this.$queue.setData('youhui','');
					if(this.isEnd){
						uni.showToast({
							icon:'error',
							title:'已过开团时间，无法开团！'
						})
					}else{
						uni.navigateTo({
							url:'/my/order/payModifyPt?ordersId='+item.id
						})
					}
				}
			},
			goNav(e) {
				uni.navigateTo({
					url: e
				})
			},
			openpay(item) {//立即预约
				item.packagePrice=this.detailData[0].packagePrice;
				item.massageImg=this.detailData[0].massageImg;
				item.serviceCount=this.detailData[0].serviceCount;
				this.$queue.setData('mainData',item)
				this.$queue.setData('detailData',this.detailData)
				this.$queue.setData('xiangmu',item)
				this.$queue.setData('youhui','');
				uni.navigateTo({
					url:'/my/order/payModifyLiao?ordersId='+item.id
				})
				// this.goOrder()
				// this.showpay = true
			},
			getTimeInMilliseconds(timeString) {
			  return new Date(timeString).getTime();
			},
			// 将毫秒转换为时分秒
			toHMS(milliseconds) {
			  let day = Math.floor(milliseconds / (24 * 3600 * 1000));
			  var hours = Math.floor(milliseconds / 3600000);
			  var minutes = Math.floor((milliseconds % 3600000) / 60000);
			  var seconds = ((milliseconds % 3600000) % 60000) / 1000;
			  this.day=day;
			  this.hours=hours;
			  this.minutes=minutes;
			  this.seconds=seconds;
			},
			getData(){
				var that=this;
				if(that.dataList.name=='index'){
					let data = {
							  id: that.dataList.id,
							  page: that.page,
							  limit:  that.limit,
							}
					that.$Request.get('/app/massage/package/getAppGroupDetail', data).then(res => {
						if (res.code == 0) {
							if(res.groupData.level == 3){
								res.groupData.levelName = "新手"
							}
							if(res.groupData.level == 4){
								res.groupData.levelName = "专家"
							}
							if(res.groupData.level == 5){
								res.groupData.levelName = "资深"
							}
							that.mainData=res.groupData;
							that.ordersData=res.ordersData;
							that.backgroundImageUrl=res.groupData.packageImg
							that.contentImg=res.groupData.contentImg.split(",");
							that.labels=res.groupData.labels.split(',');
							let afterTimeStamp = new Date(res.groupData.endTime).getTime() / 1000;
							let currentTimeStamp = new Date().getTime() / 1000;
							let formatTimeStamp = Math.floor(afterTimeStamp - currentTimeStamp);
							this.endOfServiceTimer = formatTimeStamp;
							let beforeTimeStamp = new Date(res.groupData.startTime).getTime() / 1000;
							if(beforeTimeStamp > currentTimeStamp){
								that.startTime = res.groupData.startTime;
								that.isStart = false;
							}else{
								that.isStart = true;
							}
							if(currentTimeStamp > afterTimeStamp){
								that.isEnd = true;
							}else{
								that.isEnd = false;
							}
							// console.log("eeee",this.endOfServiceTimer);
							// var starTime=that.getTimeInMilliseconds(res.groupData.startTime);
							// var endTime=that.getTimeInMilliseconds(res.groupData.endTime);
							// var serTime=endTime-starTime;
							// that.countdown = serTime; // 转换为时分秒
							// that.toHMS(serTime); // 转换为时分秒
							that.detailData=res.detailData.list;
						}
					})
				}else{
					let data = {
							  mainId: that.dataList.id,
							  page: that.page,
							  limit:  that.limit,
							}
					that.$Request.get('/app/user/package/detail/findMyPackageDetailList', data).then(res => {
						if (res.code == 0) {
							if(res.data.mainData.level == 3){
								res.data.mainData.levelName = "新手"
							}
							if(res.data.mainData.level == 4){
								res.data.mainData.levelName = "专家"
							}
							if(res.data.mainData.level == 5){
								res.data.mainData.levelName = "资深"
							}
							that.mainData=res.data.mainData;
							that.detailData=res.data.detailData;
							that.contentImg=that.mainData.contentImg.split(",");
							that.mainId=that.mainData.id
							that.liaoTime=res.data.detailData[0].intervalDaysStr;
							that.backgroundImageUrl=that.mainData.packageImg;
							that.labels=that.mainData.labels.split(',')
						}
					})
				}
			},
			getUserData(){
				var that=this;
				if(that.dataList.name=='index'){
					let data = {
						userId: uni.getStorageSync('userId')
					}
					that.$Request.get('app/user/selectUserInfo', data).then(res => {
						if (res.code == 0) {
							that.user = res.data
						}
					})
				}
			},
		}
	}
</script>
<style scoped>
	.teamwork-list{
		font-size: 30rpx;
		padding: 10rpx 0;
	}
	.avatar{
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-top: 5px;
	}
	.avatar span{
		margin-left: 10px;
	}
	.lab-view{
		width:100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
	}
	.detail-foot-mian-txet{
		width: 50%;
		margin-top: 20px;
		text-align: center;
	}
	/deep/uni-checkbox .uni-checkbox-input{
		width: 26px;
		height: 26px;
		border-radius: 50%;
	}
	.youhui-img{
		width: 111.81rpx;
		height: 111.81rpx;
	}
	.youhui-view-right-btn{
		width: 158rpx;
		height: 64rpx;
		background: linear-gradient(-90deg, #019C88, #2DC48E);
		border-radius: 32rpx;
		text-align: center;
		line-height: 64rpx;
		font-weight: 400;
		font-size: 28rpx;
		color: #FFFFFF;
		text-shadow: 0rpx 2rpx 4rpx rgba(0,119,104,0.44);
		margin-left: 10px;
	}
	.youhui-view-right-time{
		font-weight: 400;
		font-size: 22rpx;
		color: #999999;
	}
	.youhui-view-right-title{
		width: 105px;
		font-weight: 400;
		font-size: 32rpx;
		color: #333333;
	}
	.youhui-view-right-top{
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.youhui-view-right{
		width: 502.08rpx;
		height: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-around;
	}
	.youhui-view-left-bottom{
		font-weight: 400;
		font-size: 22rpx;
		color: #FFFFFF;
	}
	.youhui-view-left-yuan{
		display: flex;
		flex-direction: row;
		align-items: baseline;
		color: #FFFFFF;
	}
	.youhui-view-left-num{
		font-weight: bold;
		font-size: 89rpx;
	}
	.youhui-view-left-text{
		font-weight: bold;
		font-size:24.31rpx;
	}
	.youhui-view-left{
		width: 199rpx;
		height: 242rpx;
		display: flex;
		flex-direction:column;
		align-items: center;
		justify-content: center;
	}
	.youhui-yiyong{
		background-image: url('../../static/youhuijuan/coupons7.png');
	}
	.youhui-weiyong{
		background-image: url('../../static/youhuijuan/coupons1.png');
	}
	.youhui-list{
		width: 95%;
		display: flex;
		flex-direction: row;
		height: 242rpx;
		border-radius: 21rpx;
		background-size: 100%;
		margin: 20px auto;
		justify-content: space-between;
	}
	.popup_pay {
		width: 100%;
		position: relative;
		padding-bottom: 45rpx;
		/* height: 400px; */
		/* height: 160px; */
		/* #ifndef MP-WEIXIN */
		/* height: 130px; */
		/* #endif */

	}
	.pay_btn {
		width: 90%;
		margin: 0 auto;
		text-align: center;
		background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
		height: 80rpx;
		border-radius: 60rpx;
		color: #ffffff;
		line-height: 80rpx;
	}

	.dingdan-btn{
		text-align: center;
		width: 80px;
		height: 30px;
		line-height: 30px;
		border-radius: 4px;
		font-weight: bold;
		font-size: 11px;
		border-radius: 30rpx;
	}
	.dingdan-btn-l{
		background: linear-gradient(90deg, #019C88, #0FA78B, #35C495);
		color: #FFFFFF;
	}
	.dingdan-btn-h{
		background: #666;
		color: #FFFFFF;
	}
	.tese span:nth-child(1){
		font-weight: bold;
		font-size: 22rpx;
		color: #333333;
	}
	.tese span:nth-child(2){
		font-weight: 400;
		font-size: 22rpx;
		color: #8D9194;
	}
	.tese{
		width: 100%;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2; /* 显示的行数，可以根据需要修改 */
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.detail-foot-nav-bor{
		width: 64px;
		height: 11rpx;
		border-radius: 6rpx;
		position: absolute;
		bottom: 0;
		background: linear-gradient(90deg,rgba(234, 248, 245,0.7),rgba(132, 211, 196,0.7));
	}
	.detail-foot-nav-text{
		font-weight: bold;
		font-size: 32rpx;
		color: #000000;
	}
	.detail-foot-nav{
		width: 90%;
		display: flex;
		flex-direction: column;
		position: relative;
	}
	.detail-foot-title{
		    width: 115px;
		    height: 32px;
			background-image: url(../../static/servicePackage/horn.png);
		    background-repeat: no-repeat;
		    background-size: 100% 100%;
		    font-weight: 400;
		    font-size: 12px;
		    color: #FFFFFF;
		    text-align: right;
		    line-height: 32px;
		    padding-right: 15px;
			position: absolute;
			    right: 0;
			    top: 0;
	}
	.detail-foot-list-top{
		width: 95%;
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-bottom: 25px;
	}
	.detail-foot-list{
		width: 95%;
		border-radius: 21rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		background-color: #fff;
	}
	.detail-foot{
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.detail-foot-list-top span:nth-child(1){
		font-weight: bold;
		font-size: 31rpx;
		color: #3F3F3F;
	}
	.detail-foot-list-top span:nth-child(2){
		width: 76rpx;
		height: 33rpx;
		line-height: 33rpx;
		text-align: center;
		border-radius: 16rpx;
		border: 1px solid #7D7D7D;
		font-weight: 400;
		font-size: 20rpx;
		color: #777777;
	}
	.detail-foot-list-top span:nth-child(3){
		font-weight: 400;
		font-size: 22rpx;
		color: #777777;
	}

	.detail-foot-mian{
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.header-bottom-title-liao{
		padding: 3px 8px;
		height: 16px;
		line-height: 16px;
		text-align: center;
		background: linear-gradient(-90deg, #FF6F48, #FF9E69);
		border-radius: 7px;
		margin-left: 5px;
		font-size: 10px;
		border-top-left-radius: 20px;
		border-bottom-right-radius: 20px;
		color: #fff;
	}
	.hBtn{
		background: #ccc;
	}
	.aBtn{
		background: linear-gradient(to right, rgb(255, 117, 98), rgb(233, 71, 52));
	}
	.detail-btn{
		width: 94%;
		height: 40px;
		line-height: 40px;
		border-radius: 28px;
		margin: 0 auto;
		text-align: center;
		font-size: 30rpx;
		color: #FFFFFF;
		position: fixed;
		bottom: 0px;
		margin-bottom: 4px;
		padding-top: 2px;
		margin-left:3%;
	}
	.detail-btn span:nth-child(2){
		margin-left: 5px;
	}
	.detail-foot-mian-txet span:nth-child(1){
		color: #777777;
		font-size: 12px;
		font-weight: bold;
		margin-bottom: 5px;
	}
	.detail-foot-mian-txet span:nth-child(2){
		color: #333;
		font-size: 15px;
		font-weight: bold;
		margin-bottom:3px;
	}
	.detail-foot-mian-txetList{
		color: #777777;
		font-size: 14px;
		font-weight: bold;
	}

	.detail-foot-mian-img{
		width: 100%;
		height:auto;
	}
	.detail-foot-mian-top-bottom{
		margin-top: 10px;
	}
	.detail-foot-mian-top-title{
		color: #333333;
	}
	.detail-foot-mian-top-text{
		color: #777777;
		width:80%;
		margin-left: 5px;
	}
	.detail-foot-mian-top,.detail-foot-mian-top-bottom{
		width: 100%;
		display: flex;
		flex-direction: row;
		font-size: 26rpx;
	}
	.header-bottom-title-bottom span{
		font-weight: bold;
		font-size: 24rpx;
		color: #ff6f48;
	}
	.header-bottom-title-bottom image{
		width: 34.03rpx;
		height: 30.56rpx;
		margin-right: 3px;
	}
	.header-bottom-title-bottom{
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		margin: 5px 0px;
		background: linear-gradient(90deg, #feefec, #fef5ec);
		padding: 8rpx 20rpx;
		border-radius: 10rpx;
		border: 1px #efdfda solid ;
		margin-top: 30rpx;
	}
	.shouc image{
		width: 34.03rpx;
		height: 32.64rpx;
	}

	.shouc{
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.detail-foot-nav-bor{
		width: 64px;
		height: 11rpx;
		border-radius: 6rpx;
		position: absolute;
		bottom: 0;
		background: linear-gradient(90deg,rgba(234, 248, 245,0.7),rgba(132, 211, 196,0.7));
	}
	.detail-foot-nav-text{
		font-weight: bold;
		font-size: 32rpx;
		color: #000000;
	}
	.detail-foot-nav{
		width: 90%;
		display: flex;
		flex-direction: column;
		position: relative;
		margin: 30rpx 0;
	}
	.detail-foot{
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.tese span:nth-child(1){
		font-weight: bold;
		font-size: 22rpx;
		color: #333333;
	}
	.tese span:nth-child(2){
		font-weight: 400;
		font-size: 22rpx;
		color: #8D9194;
	}
	.tese{
		width: 100%;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2; /* 显示的行数，可以根据需要修改 */
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.detail-foot-list-top span:nth-child(1){
		font-weight: bold;
		font-size: 31rpx;
		color: #3F3F3F;
	}
	.detail-foot-list-top span:nth-child(2){
		width: 76rpx;
		height: 33rpx;
		line-height: 33rpx;
		text-align: center;
		border-radius: 16rpx;
		border: 1px solid #7D7D7D;
		font-weight: 400;
		font-size: 20rpx;
		color: #777777;
		margin: 0px 25px 0px 5px;
	}
	.detail-foot-list-top span:nth-child(3){
		font-weight: 400;
		font-size: 22rpx;
		color: #777777;
	}

	.detail-foot-mian{
		width: 95%;
		display: flex;
		flex-direction: column;
		margin: 0 auto;
		background-color: #fff;
		border-radius: 21rpx;
		padding: 15px;
	}
	.jianjie{
		font-weight: 400;
		font-size: 22rpx;
		color: #8D9194;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2; /* 显示的行数，可以根据需要修改 */
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.header-bottom-mian{
		margin: 10px 0px;
	}
	.header-bottom-mian-title{
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-bottom: 6px;
	}
	.header-bottom-mian-title span{
		font-weight: 400;
		font-size: 26rpx;
		color: #20AB95;
		margin-left: 5px;
	}
	.header-bottom-mian-title image{
		width: 30.56rpx;
		height: 29.86rpx;
	}
	.header-bottom-foot-view-img1{
		width: 30rpx;
		height: 30rpx;
	}
	.header-bottom-foot-view-img2{
		width: 23rpx;
		height: 23rpx;
	}
	.header-bottom-foot-view-img3{
		width: 26rpx;
		height: 26rpx;
	}
	.header-bottom-foot-view image{
		margin-right: 1px;
	}
	.header-bottom-foot-view{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		padding: 1px 8px;
		height: 22px;
		line-height: 22px;
		border-radius: 15px;
		font-weight: 400;
		font-size: 11px;
		color: #029c88;
	}
	.header-bottom-foot-title{
		height: 22px;
		line-height: 22px;
		text-align: left;
		font-weight: 600;
		font-size: 30rpx;
		color: #029d88;
	}
	.header-bottom-foot-cont{
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.header-bottom-foot{
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.header-bottom-money-jia{
		font-size: 28rpx;
		color: #848484;
		margin-left: 5px;
		text-decoration: line-through;
	}
	.header-bottom-money-zhen span{
		color: #F95900;
	}
	.header-bottom-money-zhen span:nth-child(1){
		font-size: 25rpx;
	}
	.header-bottom-money-zhen span:nth-child(2){
		font-size:46rpx;
		font-weight: bold;
	}
	.header-bottom-money-zhen span:nth-child(3){
		font-size: 25rpx;
	}
	.header-bottom-money-zhen{
		display: flex;
		flex-direction: row;
		align-items: baseline;
	}

	.header-bottom-money-view{
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-top:5px;
	}
	.header-bottom-money{
		padding: 5px 0;
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		margin-top: 5rpx;
	}
	.header-bottom-money1{
		padding: 5px 0;
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-top: 5rpx;
		align-items: baseline;
	}
	.header-bottom-title-num span{
		font-size: 30rpx;
	}
	.header-bottom-title-num span:nth-child(1){
		color: #848485;
	}
	.header-bottom-title-num span:nth-child(2){
		font-weight: bold;
		color: #f52b1b;
	}
	.header-bottom-title-num span:nth-child(3){
		color: #848485;
	}
	.header-bottom-title-text{
		font-weight: bold;
		font-size: 35rpx;
		color: #13141A;
	}
	.header-bottom-title{
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.header-bottom-top{
		width: 100%;
		display: flex;
		flex-direction: column;
	}
	.header-bottom{
		width: 100%;
		background-color: #fff;
		padding: 15px;
		display: flex;
		flex-direction: column;
	}
	.header-top image{
		width: 706.25rpx;
		height: 105.07rpx;
	}
	.header-top{
		width: 100%;
		height: 745.83rpx;
		background-image: url('../../static/servicePackage/display.png');
		background-size: 100%;
		background-repeat: no-repeat;
		display: flex;
		align-items: flex-end;
		justify-content: center;
	}
	.header{
		width: 100%;
		display: flex;
		flex-direction: column;
	}
	.content{
		width: 100%;
		height: auto;
		background-color: #f7f7f7;
	}
	.btn {
	background: linear-gradient(to right, rgb(1, 156, 136), rgb(49, 193, 148));
	color: rgb(255, 255, 255);
	margin: 8px 16px;
	position: fixed;
	bottom: 0px;
	width: 90%;
	border-radius: 27px;
	height: 43px;
	line-height: 43px;
	font-size: 17px;
	text-align: center;
	}
	.group-buy{
	display: flex;
	background: #fef0ed;
	justify-content: space-between;
	}
	.group-buy-left{
	width:65%;
	padding: 30rpx 30rpx;
	background: linear-gradient(to right, rgb(255, 117, 98), rgb(233, 71, 52));
	display: flex;
	}
	.group_amount{
	color: #fff;
	display: flex;
	align-items: flex-end;
	}
	.group_amount span:nth-child(2){
	font-size: 80rpx;
	font-weight: bold;
	line-height:68rpx;
	}
	.group-rule{
	display: flex;
	flex-direction:column;
	align-items: center;
	margin-left: 10rpx;
	}
	.group-rule span:nth-child(1){
	color: #fff;
	font-size:24rpx;
	text-decoration: line-through;
	}
	.group-rule span:nth-child(2){
	text-align: center;
	padding: 1rpx 8rpx;
	background:#fff;
	color: #ed4b3e;
	font-size: 22rpx;
	border-radius: 6rpx;
	}
	.group-buy-right{
	width: 34%;
	display: flex;
	flex-direction:column;
	align-items: center;
	padding: 20rpx 0;
	}
	.group-text{
	 color:#ec4439;
	 margin-bottom: 10rpx;
	}
	.group-buy-right span:nth-child(1){
	background: #000;
	border-radius: 30rpx;
	padding: 8rpx;
	color: #fff;
	}
	.group-buy-right span:nth-child(2){
	background: #000;
	border-radius: 30rpx;
	padding: 8rpx;
	color: #fff;
	}
	.group-buy-right span:nth-child(3){
	background: #000;
	border-radius: 30rpx;
	padding: 8rpx;
	color: #fff;
	}
	.teamwork-plate{
	background:#fff;
	margin: 20rpx 0;
	align-items: center;
	padding:15rpx  26rpx;
	}
	.teamwork-line{
	display: flex;
	padding:14rpx 12rpx;
	justify-content: space-between;
	}
	.teamwork-button{
	padding: 2rpx 15rpx;
	/* background:#ed4b3e ; */
	color:#fff;
	height: 60rpx;
	line-height: 58rpx;
	margin-top: 10rpx;
	border-radius: 6rpx;
	margin-left: 15rpx;
	}
	.team-text{
	color: #ed4b3e;
	}
	.teamwork-se{
	width: 300rpx;
	font-size: 24rpx;
	text-align: left;
	padding: 2rpx 0;
	}
	.tewmwork-prompt{
		font-size: 22rpx;
		color: #ed4b3e;
		margin-top: 12rpx;
	}
	.tewmork-key{
		display: flex;
		text-align: center;
		justify-content: space-between;
		height: 30px;
	}
	.tewmork-key span{
		height: 30rpx;
		line-height: 30rpx;
		padding: 4rpx 14rpx;
		font-size: 22rpx;
		background: linear-gradient(90deg, #feeaf4, #fef0f0, #fdf2ec);
		color: #f52b1b;
		border-radius: 6rpx;
		margin-right: 6rpx;
		margin-top: 6rpx;
	}
	.xiaoer {
		background-color: #f1f8d7;
		color: #58b314;
	}
	.item-view-biao {
		margin: 4px 0px;
		border-radius: 10rpx 3rpx 10rpx 3rpx;
		width: 50px;
		text-align: center;
	}
</style>
