<template>
<view class="box">
<homenav :iStatusBarHeight="iStatusBarHeight" :title="'商品详情'"></homenav>
 <view class="spwBox">
 	<swiper class="swiper" circular  :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#EC0F0A">
 		<swiper-item v-for="(item,index) in 3">
 			<view class="swiper-item">
 				<img mode="aspectFit" src="http://dmsphoto.66km.com.cn/thFiles/339E5DB5-F727-4F0F-AD41-1A2EBAB73883.png" alt="" class="swiper-itemImg" >
 				
 			</view>
 		</swiper-item>
 		
 	</swiper>
 </view>
 <view class="shopCont">
	 <view style="display: flex;padding-left: 24rpx;">
		<view  class="biaoqian">4条到手单价</view>
		<!-- <view v-if="itemDefault.salesLabel==2" class="biaoqian">促销价</view>
		<view v-if="itemDefault.salesLabel==3" class="biaoqian">特价</view>
		<view v-if="itemDefault.salesLabel==4" class="biaoqian">限量抢购</view>
		<view v-if="itemDefault.salesLabel==5" class="biaoqian">{{itemDefault.salesLabelCustom}}</view> -->
			 
	 </view>
	
 	<view class="shopCtop">
 		<view class="goodsPrice" >
 			<view class="goodsPrice2">￥</view>
 			<view class="goodsPrice3" >294.90</view>
 			<view class="goodsPrice4" >优惠前:
			 <span class="goodsPrice41">¥666</span>
			</view>
 		</view>
		<button open-type="share" class="shareBox" >
			<view class="shareTxt">分享</view>
			<image class="shareIcon" src="../../static/timg/share.png" mode=""></image>
		</button>
 	<!-- 	<view class="shareBox" >
			
			
		</view> -->
 	</view>
	<view class="nameBox">
		<view class="shipei">适配</view>
		<view class="goodsName">
			路博（ROADBOSS）轮胎 195/65R5 91H HP601
		</view>
	</view>
 	
 	<view class="goodsMSBox" >
		<!-- <view class="goodsMs" v-if="detail.showOilType">机油类型|{{detail.showOilType}}</view>
		<view class="goodsMs" v-if="detail.showOilLevel">机油等级|{{detail.showOilLevel}}</view>
		<view class="goodsMs" v-if="detail.showFit">适配粘度|{{detail.showFit}}</view> -->
		<view class="goodsMs" v-for="(item,index) in 4">标签</view>
	</view>
	<!-- <view class="timeBox">
		<view class="itemTime" v-if="detail.validityType==1">套餐有效期：{{detail.validityTime}}</view>
		<view class="sell" v-if="itemDefault.showSalesCount==1">
			<span>已售：</span><span style="color: #FFC107;">{{itemDefault.dummyCount}}</span>
		</view>
	</view> -->
	<view class="topGuigeBox">
		<view class="topGuigeLeft">
		  <image src="../../static/img2/duihao.png" mode="" class="duihaoImg"></image>
		  <span>品牌·规格·花纹·载重系数</span>	
		</view>
		<image src="../../static/img2/hjt.png" mode="" class="jtImg1"></image>
	</view>
 </view>
 <!-- 促销-->
 <view class="promotion">
	 <view class="promotionLeft">
		 <view class="promotionTitle">促销</view>
		 <view class="promotionBox">
			 <view class="promotionLine" v-for="(item,index) in 5">
				 <view class="chu">赠</view>
				 <view class="promotionLineTxt">3年换新保障x1</view>
			 </view>
		 </view>
	 </view>
	<image src="../../static/img2/hjt.png" mode="" class="jtImg1"></image>
 </view>
 <!-- 促销-->
 
 
 <view class="buyBOx">
	 <view class="buyLine" @click="ckCar" style="padding-bottom: 10rpx;">
		 <view class="buyTitle">已选车型</view>
		 <view class="buyData" style="display: flex;">
			 <view class="carModelLine">   {{carInfo.carModel?carInfo.carModel:'请选择车辆'}}</view>
		
		   <image class="jtIcon" src="../../static/img2/byjt.png" mode=""></image>
		 </view>
	 </view>
	 <view class="carTis" v-if="isRecommend!='true'">此轮胎可能与爱车不适配</view>

	 <view class="buyLine" style="padding: 12rpx 24rpx;"><!--  -->
	 		 <view class="buyTitle" style="line-height: 44rpx;">商品数量</view>
	 		 <view class="buyData">
				 <view class="numJsbox">
				 	<view class="numJj" @click="calculation(1)">-</view>
				 	<view class="goodsnum">
				 	 <input type="number" value="" v-model="goodsnum" class="goodsnumInput"/>
				 	</view>
				 	<view class="numJj" @click="calculation(2)">+</view>
				 </view>
			 </view>
	 </view>
	 <view class="buyLine">
	 		 <view class="buyTitle">服务方式</view>
	 		 <view class="buyData">到店使用</view>
	 </view>
	 <view class="buyLine">
	 		 <view class="buyTitle">服务门店</view>
	 		 <view class="buyData" v-if="itemDefault.packTimeShopName=='全部'">全部门店</view>
			 <view @click="keyongFn" class="buyData " style="display: flex;" v-else>{{itemDefault.packTimeShopName.split(',').length}}个门店可用
			   <image src="../../static/img2/byjt.png" mode="" class="hjt"></image>
			 </view>
	 </view>
	 <view class="buyLine" style="padding-bottom: 10rpx;">
	 		 <view class="buyTitle">商品库存</view>
	 		 <view class="buyData" >
	 			 <view class="carModelLine"> 有货/门店 </view>
	 		
	 		 </view>
	 </view>
	 <view class="carTis" style="color: #797979;">当天23:59分之前下单，次日内即可进店</view>
 </view>
 <!-- 购买流程-->
 <view class="gmlc">
	 <view class="gmlcTitle">购买流程</view>
	 <view>
		 <image class="gmlcImg" src="http://dmsphoto.66km.com.cn/thFiles/789E7F17-D744-4E80-9EFD-75FF15BA2584.png" mode="widthFix"></image>
	 </view>
 </view>
 
 <view class="mealBox" v-if="itemDefault.content">
	 <view class="fwlcTitle">套餐内容</view>
	  <rich-text :nodes="itemDefault.content" style="background: #fff;"></rich-text>
<!-- 	 <view class="mealTop">
	 	<view class="mealName">套餐名称</view>
	 	<view class="mealNum">数量</view>
	 	<view class="mealexpire">有效期</view>
	 </view>
	 <view class="mealTop2">
	 	<view class="mealName">【豪华车型】全合成机油保养套餐</view>
	 	<view class="mealNum">2</view>
	 	<view class="mealexpire">18个月</view>
	 </view>
	 <view class="mealXj">
		 <view class="xjLine">
			 <view class="xjyd"></view>
			 <view class="xjTxt">20项检查</view>
		 </view>
		 <view class="xjLine">
			 <view class="xjyd"></view>
			 <view class="xjTxt">20美日韩车型专用保养套餐适配机油</view>
		 </view>
	 </view>
	 <view class="mealMs">
		 <view class="mealMsline">
			 1.本套餐不限车辆使用；
			 2.机油套餐包含：机油，机油滤，工时费
			 3.购买此套餐，共享有2次保养次数。
		 </view>
	 </view> -->
 </view>
 
 <!-- 商品详情 -->
 <view class="goodsDetail" v-if="detail.detailContent">
 	<view class="goodsDetailTitle">商品详情</view>
 	<!-- <view v-html="info.details" style="background: #fff;"></view> -->
 	 <rich-text :nodes="detail.detailContent" style="background: #fff;"></rich-text>
 </view>
 
 <view class="bottomTianc"></view>
  
  <view class="bottom">
 	 <view class="bleft" @click="makePhoneCall(showSetting.tel)">
 		<image class="kefuIcon" src="../../static/img2/kefu.png" mode=""></image>
 		<view style="text-align: center;font-size: 20rpx;color: #110B01;">客服</view>
 	</view>
 		 <view class="Btn commonBtn" @click="submitFn">立即购买</view>
 	</view>
 
 
 
 <!-- 提交订单弹框-->
 <view class="tkBox" v-if="tkShow" @click="closeTk">
 	 <view class="tkCont" @click.stop="">
 		 <view class="tkTop">
			 <image class="tkImg" v-if="itemDefaultTk.mainImgUrl" :src="itemDefaultTk.mainImgUrl" mode="" ></image>
 			 <image class="tkImg" v-else src="../../static/timg/noimg.png" mode="" ></image>
 			 <view class="tkNameBox">
 				 <view class="tkName"> <span class="isRecommend">适配</span>
				      <span class="tkltName">路博（ROADBOSS）轮胎 195/65R5 91H HP601</span>
				 </view>
				 <view style="display: flex;padding-bottom: 24rpx;">
				 		<view  class="biaoqian">4条到手单价</view>
				 	
				 			 
				 </view>
 				 <view class="goodsPrice">
 				 	<view class="goodsPrice2">￥</view>
 				 	<view class="goodsPrice3">299</view>
 				 	<view class="goodsPrice4">
						<span style="color: #EC0F0A;padding-right: 20rpx;"></span>/条
					<span class="goodsPrice41">优惠前￥399</span>
					
					</view>
 				 </view>
 				 
 			 </view>
 			 <image class="chahao" src="../../static/img2/chahao.png" mode=""  @click="closeTk"></image>
 		 </view>
		 <view class="buyNumBox">
			 <view class="buyNumTitle">购买数量</view>
			 <view class="buyNumLineBox">
				 <view class="buyNumline">1条</view>
				 <view class="buyNumline">2条</view>
				 <view class="buyNumline">3条</view>
				 <view class="buyNumline">4条</view>
			 </view>
		 </view>
		
 		

 		 
 		 <view class="tkBottom">
 			 <view class="tkBottomBtn commonBtn" @click="goSubmit">立即购买</view>
 		 </view>
 		 
 	 </view>
 </view>
 
 
 
 <!-- 提交订单弹框-->
 
 <!-- 门店列表-->
 <view class="tkBox" v-if="keyongShow" @click="keyongClose">
	 <view class="tkCont2">
		 <view class="tkTOp2">
			  <view class="chahao"></view>
			  <view class="kymd">可用门店</view>
			  <image class="chahao" src="../../static/img2/chahao.png" mode=""  @click="closeTk"></image>
		 </view>
		 <view class="keyongBOx">
			 <view class="keyongLine" v-for="(item,index) in itemDefault.packTimeShopName.split(',')">
				 {{item}}
			 </view>
		 </view>
	 </view>
 </view>
 
 <!-- 产品弹框-->
 <view class="tkBox canpinTkBox" v-if="canpinShow">
	 <view class="tkCont2 canpinTk">
	 		 <view class="tkTOp2">
	 			  <view class="chahao"></view>
	 			  <view class="kymd">产品参数</view>
	 			  <image class="chahao" src="../../static/img2/chahao.png" mode=""  @click="closeTk"></image>
	 		 </view>
	 		 <view class="canpinBox">
	 			 <view class="canpinLine">
					 <view class="canpinLineLeft">轮胎规格</view>
					 <view class="canpinRgiht">215/50 R18</view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">速度级别</view>
					 <view class="canpinRgiht">215/50 R18</view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">载重系数</view>
					 <view class="canpinRgiht">96</view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">花纹</view>
					 <view class="canpinRgiht">96</view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">轮箍直径</view>
					 <view class="canpinRgiht">96</view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">横截面宽度</view>
					 <view class="canpinRgiht">96</view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">扁平比</view>
					 <view class="canpinRgiht">96</view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">品牌</view>
					 <view class="canpinRgiht">96</view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">商品编码</view>
					 <view class="canpinRgiht" style="display: flex;">
						 <span>TTMTP20240570001</span>
						 <image src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
					 </view>
				 </view>
				 <view class="canpinLine">
					 <view class="canpinLineLeft">DOT</view>
					 <view class="canpinRgiht">-</view>
				 </view>
	 		 </view>
	 </view>
 </view>
 <!-- 产品弹框-->
 <!-- 促销介绍-->
 <view class="tkBox cktk" v-if="cxShow">
 	 <view class="tkCont2">
 		 <view class="tkTOp2">
 			  <view class="chahao"></view>
 			  <view class="kymd">促销介绍</view>
 			  <image class="chahao" src="../../static/img2/chahao.png" mode=""  @click="closeTk"></image>
 		 </view>
 		 <view class="keyongBOx">
 			 <view class="promotionBox cktkLineBox">
					 <view class="promotionLine " v-for="(item,index) in 5">
						 <view class="chu">赠</view>
						 <view class="promotionLineTxt">3年换新保障x1</view>
					 </view>
 			 </view>
 		 </view>
 	 </view>
 </view>
 <!-- 促销介绍-->
</view>
</template>

<script>
	import homenav from "../../components/homenav/nav.vue"
	export default {
		components: {
			homenav
		},
		
		data() {
			return {
				themeColor:'',
				ext:'',
				
				goodsnum:1,
				details:'11233',
				maintainId:'',
				detail:'',
				itemDefault:'',
				carInfo:'',
				userInfo:'',
				isRecommend:'',
				tkShow:false,
				keyongShow:false,
				showSetting:'',
				iStatusBarHeight:'',
				itemDefaultTk:'',
				canpinShow:false,
				cxShow:false,
			}
		},
		onLoad(opt) {
			this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
			this.ext = this.$common.getExtStoreId();
			this.themeColor = uni.getStorageSync("themeColor");
			this.maintainId=opt.maintainId
			this.carInfo=this.$store.state.carInfo;
			this.userInfo=this.$store.state.userInfo;
			this.isRecommend=opt.isRecommend
			//console.log("this.isRecommend=="+this.isRecommend)
			if(this.userInfo){
				this.getdetail()
				this.getInfo()
			}else{
				this.$common.automaticlogin().then(val => {
					this.userInfo=this.$store.state.userInfo;
					this.getdetail()
					this.getInfo()
				})
			}
			
		},
		onShow() {
			var car =uni.getStorageSync("byCar")
			if(car){
				this.carInfo=car;
				this.getdetail()
				this.isRecommend=false
			}
			
		},
		methods: {
			makePhoneCall(tel){
				uni.makePhoneCall({
				  phoneNumber: tel,
				});
			},
			getInfo(){
				this.$http('openreservation/getInfo', {
					lat: '',
					lng: '',
				
				}, 'GET').then(res => {
					 this.showSetting=res.data.showSetting
				})
			},
			ckCar(){
				uni.navigateTo({
					url:'../user/addCar/cailist?type=5'
				})
			},
			goodsGuige(item){
				this.itemDefault=item
				this.itemDefault.mainImgUrl=this.detail.openMaintainImgUrls[0]
				this.itemDefaultTk=this.itemDefault
			},
			goodsGuige2(item){
				this.itemDefaultTk=item
				this.itemDefaultTk.mainImgUrl=this.detail.openMaintainImgUrls[0]
			},
			goSubmit(){
				this.itemDefaultTk.goodsnum=this.goodsnum
				this.itemDefaultTk.goodsname=this.detail.title
				this.itemDefaultTk.itemId=this.detail.id
				this.itemDefaultTk.mainImgUrl=this.detail.openMaintainImgUrls[0]
				uni.setStorage({
					key: 'itemDefault',
					data: this.itemDefaultTk,
					 success: function () {
					    uni.navigateTo({
					    	url:'maintainSubmit'
					    })
					 }
				}); 
			},
			closeTk(){
				this.tkShow=false
			},
			keyongClose(){
				this.keyongShow=false;
			},
			keyongFn(){
				this.keyongShow=true;
			},
			submitFn(){
				/* if(!this.carInfo){
					uni.showToast({
						 title: '请先选择车辆',
						 icon:'none',
						 duration: 3000
					});
					return false
				} */
				
				this.tkShow=true
				
				
			},
			calculation(type){
				if(type==1){
					if(this.goodsnum>1){
						this.goodsnum--
					}
				}else{
					console.log("+++")
						this.goodsnum++
				}
			},
			getdetail(){
				uni.showLoading({
					title: '加载中'
				})
				this.$http('openMaintain/detail/'+this.maintainId, {
				   /* maintainId:this.maintainId */
				}, 'GET').then(res => {
					uni.hideLoading();
					this.detail=res.data
					this.detail.packageItems.forEach(item=>{
						if(item.isDefault==1){
							 this.itemDefault=item
							 this.itemDefault.mainImgUrl=this.detail.openMaintainImgUrls[0]
							 if(item.isShow==1){
								 this.itemDefaultTk=item
							 }
						}
						if(item.content){
							item.content=item.content.replace(/\<img/gi, '<img style="max-width:100% !important;height:auto" ');
						}
						
					})
					if(this.detail.detailContent){
						this.detail.detailContent=this.detail.detailContent.replace(/\<img/gi, '<img style="max-width:100% !important;height:auto" ');
					}
					
				   
				})
			},
			
			
			
		},
		onShareAppMessage(res) {
			var img='';
			if(this.detail.openMaintainImgUrls.length>0){
				img=this.detail.openMaintainImgUrls[0]
			}
			return {
				title: this.detail.title,
				imageUrl:img,
				path: 'pages/subPack/maintainItem?maintainId=' + this.maintainId+'&isRecommend='+this.isRecommend+'&shareId='+this.userInfo.openId,
				success(res){
					uni.showToast({
						title:'分享成功'
					})
				},
				fail(res){
					uni.showToast({
						title:'分享失败',
						icon:'none',
						duration: 3000
					})
				}
			}
		},
	}
</script>

<style scoped lang="less">
.box {
	width: 100vw;
	min-height: 100vh;
	background: #F4F4F4;
}
.jtImg1{
	width: 10rpx;height: 20rpx;
}
.topGuigeBox{
	display: flex;justify-content: space-between;
	padding: 20rpx 24rpx;
	font-size: 24rpx;
	color: #828282;
}
.shipei{
	background: #57C73D;
	border-radius: 4rpx;
	width: 52rpx;
	height: 32rpx;
	line-height: 32rpx;
	font-size: 22rpx;
	color: #FFFFFF;
	text-align: center;
	margin-top: 6rpx;
	margin-right: 8rpx;
}
.goodsName{
	width: 580rpx;
}
.nameBox{
	display: flex;	padding: 20rpx 24rpx;
}
.swiper{
	width: 750rpx;
	height: 700rpx;
	background: #FFFFFF;
/* 	border-bottom: 1px solid #EEEEEE; */
}
.swiper-item{
	width: 750rpx;
	height: 700rpx;
}
.swiper-itemImg{
	width: 750rpx;
	height: 700rpx;
}
.goodsPrice{
		display: flex;
}
.goodsPrice1{
	font-size: 24rpx;
	font-weight: 400;
	color: #EC0F0A;
	padding-top: 14rpx;
	padding-right: 14rpx;
}
.goodsPrice2{
	font-size: 28rpx;
	font-weight: 400;
	color: #EC0F0A;
	padding-top: 16rpx;
	
}

.goodsPrice3{
	font-size: 44rpx;
	font-weight: 500;
	color: #EC0F0A;
}
.goodsPrice4{
	font-size: 24rpx;
	font-weight: 400;
	color: #999999;
	padding-top: 20rpx;
	
	padding-left: 10rpx;
}
.goodsPrice41{
	text-decoration:line-through; 
}
.Sold{
		font-weight: 400;
		color: #999999;
		font-size: 24rpx;
		padding-top: 18rpx;
}
.goodsName{
	font-size: 30rpx;
	line-height: 42rpx;
	font-weight: 500;
	color: #333333;

	padding-top: 0;
	
}
.goodsMd{
	font-weight: 400;
	color: #999999;
	font-size: 26rpx;
	padding: 0 24rpx;
	padding-bottom: 20rpx;
}
.shopCont{
	background: #FFFFFF;
}
.shopCtop{
	display: flex;
	padding: 20rpx 24rpx 6rpx 20rpx;
	justify-content: space-between;
	background: #FFFFFF;
}
.goodsMSBox{
	display: flex;padding-left: 24rpx;
}
.goodsMs{
	font-size: 18rpx;
	color: #FF063A;
	padding: 2rpx 8rpx;
	border-radius: 6rpx;
	border: 1rpx solid #FF063A;
	margin-right: 16rpx;
}
.timeBox{
	display: flex;justify-content: space-between;
	padding: 20rpx 24rpx;
	font-size: 26rpx;
	color: #666E80;
}
.shareIcon{
	width: 33rpx;height: 33rpx;margin-left: 10rpx;
}
.shareBox{
	display: flex;font-size: 24rpx;
color: #666666;padding-top: 6rpx;
line-height: 33rpx;
}
.jtIcon{
margin-top: 8rpx;
    width: 12rpx;
    height: 22rpx;
	    margin-left: 6rpx;

}
.buyLine{
	display: flex;justify-content: space-between;
	padding: 15rpx 24rpx;font-size: 26rpx;
color: #666E80;
}
.buyBOx{
	background: #FFFFFF;margin-top: 20rpx;
	padding: 15rpx 0;
}
.buyData{
	color: #222222;display: flex;
}
.goodsGuige{
/* 	width: 150rpx; */
	height: 50rpx;line-height: 50rpx;
	background: #F6F6F6;
	border-radius: 5rpx;
	font-size: 24rpx;
	color: #222222;text-align: center;
	margin-left: 24rpx;
	padding: 0 20rpx;
	display: inline-block;
}
.activeGuige{
/* 	width: 146rpx; */
	height: 46rpx;line-height: 46rpx;
	border: 2rpx solid #FF0035;
	border-radius: 5rpx;
	font-size: 24rpx;
	color: #FF0035;text-align: center;
	background: #ffffff;
}
.numJsbox{
	display: flex;overflow: hidden;
}
.buyCont{
	position: absolute;
	left: 0;
	bottom: 0;
	width: 750rpx;
	height: 688rpx;
	background: #FFFFFF;
	border-radius: 26rpx 26rpx 0px 0px;
}
.buyNumBox{
	padding: 30rpx;
    padding-top: 10rpx;
	padding-bottom: 70rpx;
}
.buyContCh{
	position: absolute;
	top: 53rpx;
	right: 36rpx;
	width: 36rpx;
	height: 36rpx;
}
.goodsnum{
	width: 44rpx;
	height: 44rpx;
	background: #F4F5F7;
	line-height: 44rpx;
	text-align: center;
	font-weight: 500;
	color: #333333;
	font-size: 24rpx;
	margin: 0 4rpx;
	border-left:1px solid #dddddd;
	border-right:1px solid #dddddd;
}
.goodsnumInput{
	width: 44rpx;
	height: 44rpx;
	background: #FFFFFF;
	line-height: 44rpx;
	text-align: center;
	font-weight: 500;
	color: #333333;
	font-size: 24rpx;
}
.numJj{
	width: 44rpx;
	height: 44rpx;
	background: #ffffff;
	border-radius: 0px 6rpx 6rpx 0px;	
	text-align: center;
	line-height: 44rpx;
	font-size: 32rpx;
	color: #999999;
}
.numJsbox{
	border: 1px solid #dddddd;
	border-radius: 6rpx;
}
.mealBox{
	background: #FFFFFF;
	padding: 20rpx 24rpx;
	margin-top: 20rpx;
	font-size: 26rpx;
}
.fwlcTitle{
	font-size: 26rpx;padding-bottom: 24rpx;
	    color: #666E80;
}
.mealTop{
	display: flex;
	justify-content: space-between;
	height: 72rpx;
	line-height: 72rpx;
	font-weight: 500;
	font-size: 26rpx;
	color: #222222;
	font-size: 26rpx;
	padding: 0 20rpx;
}
.mealNum{
	text-align: center;
	width: 120rpx;
}
.mealexpire{
	text-align: center;	width: 120rpx;
}
.mealName{
	width: 460rpx;
}
.mealTop2{
	display: flex;
	justify-content: space-between;
	height: 72rpx;
	line-height: 72rpx;
	font-weight: 500;
	font-size: 26rpx;
	color: #222222;
	font-size: 26rpx;
	padding: 0 20rpx;
	background: #FFF6DB;
}
.mealXj{
	background: #FFFCF3;
}
.xjLine{
	display: flex;
	font-weight: 500;
	font-size: 26rpx;
	color: #222222;
	padding: 20rpx 20rpx;
}
.xjyd{
	width: 8rpx;
	height: 8rpx;
	background: #FABF1B;
	border-radius: 50rpx;
	margin-top: 12rpx;
	margin-right: 10rpx;
}
.mealMs{
	background: #FFFFFF;
	padding: 20rpx;
	font-weight: 400;
	font-size: 24rpx;
	color: #9A9A9A;
	line-height: 38rpx;
}
.goodsDetailTitle{
	font-size: 26rpx;
	color: #666E80;
	
	background: #FFFFFF;
	padding-bottom: 24rpx;
}
.goodsDetail{
	padding: 20rpx;
	background: #FFFFFF;
	font-size: 26rpx;
	margin-top: 20rpx;
}
.goodsDetail img{
	width: 750rpx;
}
.goodsDetail image{
	width: 750rpx;
}.bottom{
	background: #FFFFFF;
	display: flex;
	justify-content: space-between;
	position: fixed;
	width: 100%;
	padding:30rpx 0;
    padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom); 
	left: 0;bottom: 0;
	box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
}
.bleft{
	font-weight: 500;
	color: #222222;
	padding-left: 50rpx;
}
.Btn{
	width: 532rpx;text-align: center;
	height: 86rpx;line-height: 86rpx;
	/* background: #FCD903; */
	border-radius: 43rpx;
	font-size: 32rpx;
	color: #110B01;
	margin-right: 36rpx;
}
.kefuIcon{
	width: 50rpx;height: 50rpx;
}
.bottomTianc{
	height: 160rpx;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom); 
}
.carTis{
	color: #EC0F0A;font-size: 20rpx;
	text-align: right;
	padding-right: 24rpx;
}
.guigeBox{
	/* height: 50rpx; */
    height: 52rpx;
	width: 500rpx;
	overflow: hidden;
}
.guigeBox2{
	flex-wrap: nowrap;justify-content: flex-end;white-space: nowrap;
	height: 50rpx;
}
.tkBox{
	width: 100vw;height: 100vh;background: rgba(0,0,0,0.5);
	position: fixed;left: 0;top: 0;
	z-index: 11;
}
.tkCont{
	width: 750rpx;
	height: 611rpx;
	background: #FFFFFF;
	border-radius: 28rpx 28rpx 0rpx 0rpx;
	position: absolute;
	left: 0;bottom: 0;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
}
.tkCont2{
	width: 750rpx;
	height:50vh;
	background: #FFFFFF;
	border-radius: 28rpx 28rpx 0rpx 0rpx;
	position: absolute;
	left: 0;bottom: 0;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	overflow-y: auto;
}
.tkTop{
	display: flex;padding: 40rpx 24rpx;
	padding-bottom: 25rpx;
}
.tkImg{
	width: 160rpx;
	height: 160rpx;border-radius: 13rpx;
}
.tkName{
	
	text-overflow: -o-ellipsis-lastline;
	overflow: hidden;				
	text-overflow: ellipsis;		
	display: -webkit-box;			
	-webkit-line-clamp: 2;		
	line-clamp: 2;					
	-webkit-box-orient: vertical;
}
.tkNameBox{
	padding-left: 24rpx;width: 496rpx;
}
.chahao{
	width: 22rpx;height: 22rpx;padding-top: 10rpx;
	padding-left: 4rpx;
}
.buyLine{
	display: flex;justify-content: space-between;
	padding: 15rpx 24rpx;font-size: 26rpx;
color: #666E80;
}
.buyBOx{
	background: #FFFFFF;margin-top: 20rpx;
	
}
.buyData{
	color: #222222;display: flex;

	
}
.carModelLine{
		max-width: 560rpx;
	white-space: nowrap;      /* 确保文本在一行内显示 */
	  overflow: hidden;         /* 超出容器部分隐藏 */
	  text-overflow: ellipsis
}

.activeGuige{
	/* width: 146rpx; */
	height: 46rpx;line-height: 46rpx;
	border: 2rpx solid #FF0035;
	border-radius: 5rpx;
	font-size: 24rpx;
	color: #FF0035;text-align: center;
	background: #ffffff;
	font-weight: 500;
}
.numJsbox{
	display: flex;
}
.buyCont{
	position: absolute;
	left: 0;
	bottom: 0;
	width: 750rpx;
	height: 688rpx;
	background: #FFFFFF;
	border-radius: 26rpx 26rpx 0px 0px;
}
.buyNumBox{
	padding: 30rpx;
    padding-top: 10rpx;
	padding-bottom: 70rpx;
}
.buyContCh{
	position: absolute;
	top: 53rpx;
	right: 36rpx;
	width: 36rpx;
	height: 36rpx;
}


.tkBottomBtn{
	width: 661rpx;text-align: center;
	height: 86rpx;line-height: 86rpx;
	/* background: #FCD903; */
	border-radius: 43rpx;
	font-size: 32rpx;
	color: #110B01;
}
.tkBottom{
	width: 750rpx;
	padding-top: 30rpx;
	background: #FFFFFF;
	box-shadow: 0rpx -2rpx 16rpx 0rpx rgba(153,153,153,0.2);
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	display: flex;justify-content: center;align-items: center;
	position: absolute;left: 0;bottom: 0;
}
.tkTOp2{
	display: flex;justify-content: space-between;
	font-size: 30rpx;
	padding: 30rpx;
}
.keyongLine{
	padding: 16rpx 24rpx;
	font-size: 26rpx;
	border-bottom: 1px solid #eaeaea;
}
.mealBox img{
	width: 100%;
}
.mealBox image{
	width: 100%;
}
.goodsDetail image{
		width: 100%;
}
.goodsDetail img{
		width: 100%;
}
.hjt{
	width: 12rpx;height: 24rpx;
	margin-top: 8rpx;margin-left: 10rpx;
}
button::after{
 	border: none;
}
button{
	position: relative;
	display: block;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0px;
	padding-right: 0px;
	box-sizing: border-box;
	// font-size: 18px;
	text-align: center;
	text-decoration: none;
	// line-height: 1;
	line-height: 1.35;
	// border-radius: 5px;
	-webkit-tap-highlight-color: transparent;
	overflow: hidden;
	color: #000000;
	background-color: #fff;
	
	height: 100%;
	}
.biaoqian{
	background: #FF0035;
	border-radius: 24rpx 24rpx 25rpx 0rpx;
	padding: 4rpx 16rpx;
	font-size: 22rpx;
	color: #FFFFFF;
	margin-top: 24rpx;
	margin-bottom: -15rpx;
}
.tkNameBox .biaoqian{
	margin-top: 16rpx;margin-bottom: -18rpx;
}
.duihaoImg{
	width: 24rpx;height: 24rpx;
	    margin-top: 4rpx;
	    margin-right: 6rpx;
}
.topGuigeLeft{
	display: flex;
}
.promotion{
	background: #ffffff;margin-top: 20rpx;display: flex;justify-content: space-between;
	padding: 36rpx 24rpx;
}
.promotionLeft{
	display: flex;
}
.chu{
	width: 28rpx;
	height: 28rpx;
	border-radius: 3rpx;
	border: 1rpx solid #FF063A;
	text-align: center;
	line-height: 28rpx;
	font-size: 16rpx;
	color: #FF063A;
}
.promotionLineTxt{
	font-size: 24rpx;
	color: #222222;
	line-height: 30rpx;
	padding-left: 20rpx;
}
.promotionLine{
	display: flex;padding-bottom: 10rpx;
}
.promotionTitle{
	font-size: 24rpx;
	color: #828282;
	width: 100rpx;
}
.gmlcImg{
	width: 100%;
}
.gmlc{
	background: #ffffff;margin-top: 20rpx;
	padding: 30rpx 24rpx;
}
.gmlcTitle{
	font-weight: 400;
	font-size: 26rpx;
	color: #666E80;
	line-height: 37rpx;
	padding-bottom: 25rpx;
}
.copyIcon{
	width: 30rpx;height: 30rpx;
	margin-top: 4rpx;margin-left: 6rpx;
}
.canpinLine{
	display: flex;justify-content: space-between;font-size: 24rpx;
color: #666E80;border-bottom: 1px solid #DCDCDC;
padding: 24rpx 0;
}
.canpinRgiht{
	color: #222222;
}
.canpinBox{
	padding: 0 20rpx 40rpx 20rpx;
}
.canpinTkBox .canpinTk{
	height: 60vh;
}
.cktkLineBox .promotionLine{
	padding-left: 15rpx;
	padding-bottom: 30rpx;
}
.isRecommend{
		    font-size: 20rpx;
		    background: #57C73D;
		    height: 30rpx;
		    padding: 0 6rpx;
		    border-radius: 6rpx;
		    color: #fff;
		    margin-top: 2rpx;
		/*    margin-right: 10rpx; */
	}
	.tkltName{
		font-size: 28rpx;
		color: #222222;
		line-height: 40rpx;
		padding-left: 8rpx;
	}
.buyNumLineBox{
	display: flex;justify-content: space-between;
}
.buyNumline{
	width: 149rpx;
	height: 50rpx;
	background: #F6F6F6;
	border-radius: 25rpx;
	font-size: 24rpx;
	color: #222222;
	line-height: 50rpx;text-align: center;
}
.buyNumTitle{
	font-size: 26rpx;
	color: #666E80;
	padding-bottom: 8rpx;
}
</style>
