<template>
	<view class="page">
		<u-navbar title="预定" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
			title-size='36' height='36' id="navbar">
		</u-navbar>
		<image src="https://api.ccttiot.com/smartmeter/img/static/u7MDpwrQJKm7kflVVnRb" mode="" class="imgbj"></image>
		<view class="topxx">
			<view class="lt">
				<image src="https://api.ccttiot.com/smartmeter/img/static/uWPPuS75kFuDg83Rvyeq" mode=""></image>
			</view>
			<view class="rt">
				<view class="">
					预定门店：【福鼎-西湖店】
				</view>
				<view class="">
					预定桌台：1号桌
				</view>
				<view class="">
					收费价格：￥10/小时，押金100
				</view>
			</view>
		</view>
		
	<!-- 	<view class="moshis" @click="show = true">
			<view class="top">
				<view class="lt">
					开台模式
				</view>
				<view class="rt">
					{{ktmode}}  <image src="https://api.ccttiot.com/smartmeter/img/static/unGhc5oBVgoqaNk3GqPO" mode=""></image>
				</view>
			</view>
			<view class="zixuan" v-if="ktmode == '自选时长'">
				<view class="list" v-for="(item,index) in 5" :key="index" :id="tabindex == index ? 'active' : ''" @click.stop="btnitem(index)">
					1小时
				</view>
			</view>
		</view>
		
		<view class="moshi">
			<view class="lt">
				是否锁台 <image @click.stop="tishiflag = true" src="https://api.ccttiot.com/smartmeter/img/static/ukLX4u9alPoxvArisxV8" mode=""></image>
			</view>
			<view class="rt" style="color: #48893B;">
				锁台金10元  <image style="width: 30rpx;height: 30rpx;" src="https://api.ccttiot.com/smartmeter/img/static/uqmSUM2Akgx7LQBXlNos" mode=""></image>
			</view>
		</view> -->
		
		<view class="money">
			<image src="https://api.ccttiot.com/smartmeter/img/static/uP8ymRHTDQ6YdwwnxQAb" mode="" class="moneyimg">
			</image>
			<view class="moneytop">
				<view class="zongjia">
					<view class="">订单总价</view>
					<view class="pricered">￥162</view>
				</view>
				<view class="yuding">
					<view class="">押金</view>
					<view class="">￥100</view>
				</view>
				<view class="yudingtime">
					<view class="">时长单价</view>
					<view class="time">￥10/小时</view>
				</view>
			</view>
			<view class="moneybot">
				<view class="xudan">
					<view class="">锁台金</view>
					<view class="">￥10（押金代扣）</view>
				</view>
				<view class="koukuan" >
					<view class="">扣款策略</view>
					<view class="">微信支付
						<image src="https://api.ccttiot.com/smartmeter/img/static/uYHtrgPzlait1i05RQYy" mode=""></image>
					</view>
				</view>
			</view>
		</view>
		
		<!-- <view class="wxtishi">
			<view class="name">
				温馨提示
			</view>
			<view class="wz">
				锁台将持续10分钟，若10分钟后，未 到店将扣除锁台金并取消订单
			</view>
			<view class="anniu">
				我知道了
			</view>
		</view> -->
		
		<u-select v-model="show" :list="list" @confirm="confirm"></u-select>
		
		<view class="kaitai">
			<view class="lt">
				总计：<text>￥166.00</text>
			</view>
			<view class="rt">
				立即开台
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bgc: {
					backgroundColor: "",
				},
				show: false,
				list: [
					{
						value: '1',
						label: '押金开台'
					},
					{
						value: '2',
						label: '自选时长'
					}
				],
				ktmode:'押金开台',
				tabindex:-1,
				tishiflag:false
			}
		},
		onLoad() {
			
		},
		onShow() {
			
		},
		mounted() {
			
		},
		methods: {
             // 选择开台模式
			 confirm(e){
				this.ktmode = e[0].label
			 },
			 // 自选选择时长
			 btnitem(index){
				 this.tabindex = index
			 }
		}
	}
</script>

<style lang="scss">
	#active{
		background: #DEF1DA !important;
		color: #48893B !important;
		border: 2rpx solid #48893B !important;
	}
	.wxtishi{
		width: 542rpx;
		height: 372rpx;
		background: #FFFFFF;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		.name{
			font-weight: 600;
			font-size: 40rpx;
			color: #3D3D3D;
			width: 100%;
			text-align: center;
		}
		.wz{
			font-size: 28rpx;
			color: #3D3D3D;
		}
		.anniu{
			width: 316rpx;
			height: 72rpx;
			background: #48893B;
			border-radius: 36rpx 36rpx 36rpx 36rpx;
			text-align: center;
			line-height: 72rpx;
			font-size: 32rpx;
			color: #FFFFFF;
		}
	}
	.kaitai{
		width: 668rpx;
		height: 116rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 8rpx 20rpx 0rpx rgba(0,0,0,0.3);
		border-radius: 83rpx 83rpx 83rpx 83rpx;
		position: fixed;
		bottom: 50rpx;
		left: 50%;
		transform: translateX(-50%);
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20rpx;
		box-sizing: border-box;
		.rt{
			width: 258rpx;
			height: 76rpx;
			background: #48893B;
			border-radius: 49rpx 49rpx 49rpx 49rpx;
			font-size: 40rpx;
			color: #FFFFFF;
			text-align: center;
			line-height: 76rpx;
		}
		.lt{
			font-weight: 600;
			font-size: 32rpx;
			color: #3D3D3D;
			text{
				color: #FF1818;
			}
		}
	}
	.money {
		width: 710rpx;
		margin: auto;
		position: relative;
		margin-top: 30rpx;
		.moneybot {
			padding: 30rpx 38rpx;
			box-sizing: border-box;
	
			.xudan {
				display: flex;
				justify-content: space-between;
	
				view {
					font-size: 28rpx;
					color: #3D3D3D;
				}
			}
	
			.yu_e {
				display: flex;
				justify-content: space-between;
				margin-top: 20rpx;
	
				view {
					font-size: 28rpx;
					color: #3D3D3D;
					display: flex;
					align-items: center;
				}
	
				.yu_eno {
					color: #FF1818;
					display: flex;
					align-items: center;
	
					image {
						width: 14rpx;
						height: 36rpx;
						display: flex;
						align-items: center;
						margin-left: 12rpx;
					}
				}
			}
	
			.koukuan {
				display: flex;
				justify-content: space-between;
				margin-top: 20rpx;
	
				view {
					font-size: 28rpx;
					color: #3D3D3D;
					display: flex;
					align-items: center;
	
					image {
						width: 14rpx;
						height: 36rpx;
						display: flex;
						align-items: center;
						margin-left: 12rpx;
					}
				}
			}
		}
	
		.moneytop {
			padding: 46rpx 38rpx;
			box-sizing: border-box;
	
			.yudingtime {
				font-size: 28rpx;
				color: #3D3D3D;
				display: flex;
				justify-content: space-between;
				margin-top: 20rpx;
	
				.time {
					color: #48893B;
				}
			}
	
			.yuding {
				margin-top: 34rpx;
				display: flex;
				justify-content: space-between;
				font-size: 28rpx;
				color: #3D3D3D;
			}
	
			.zongjia {
				display: flex;
				justify-content: space-between;
				border-bottom: 1px solid #D8D8D8;
				padding-bottom: 20rpx;
				box-sizing: border-box;
	
				view {
					font-weight: 600;
					font-size: 36rpx;
					color: #3D3D3D;
				}
	
				.pricered {
					font-size: 36rpx;
					color: #FF1818;
					font-weight: 600;
				}
			}
		}
	
		.moneyimg {
			width: 710rpx;
			height: 529rpx;
			position: absolute;
			top: 0;
			left: 0;
			z-index: -1;
		}
	}
	.moshis{
		width: 674rpx;
		max-height: 996rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0,0,0,0.15);
		border-radius: 18rpx 18rpx 18rpx 18rpx;
		margin: auto;
		padding: 0 30rpx;
		box-sizing: border-box;
		margin-top: 24rpx;
		.zixuan{
			padding-bottom: 32rpx;
			box-sizing: border-box;
			border-top: 1px solid #7C7C7C;
			display: flex;
			flex-wrap: wrap;
			.list:nth-child(3n) {
			    margin-right: 0;
			}
			.list{
				width: 198rpx;
				height: 104rpx;
				border-radius: 10rpx 10rpx 10rpx 10rpx;
				border: 2rpx solid #7C7C7C;
				margin-top: 34rpx;
				text-align: center;
				line-height: 104rpx;
				font-size: 36rpx;
				color: #3D3D3D;
				margin-right: 10rpx;
			}
		}
		.top{
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			height: 100rpx;
		}
		.rt{
			font-size: 28rpx;
			color: #3D3D3D;
			display: flex;
			align-items: center;
			image{
				width: 14rpx;
				height: 36rpx;
				margin-left: 10rpx;
			}
		}
		.lt{
			font-size: 28rpx;
			color: #3D3D3D;
			display: flex;
			align-items: center;
			image{
				width: 30rpx;
				height: 30rpx;
				margin-left: 10rpx;
			}
		}
	}
	.moshi{
		width: 674rpx;
		height: 96rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0,0,0,0.15);
		border-radius: 18rpx 18rpx 18rpx 18rpx;
		margin: auto;
		display: flex;
		justify-content: space-between;
		padding: 0 30rpx;
		box-sizing: border-box;
		margin-top: 24rpx;
		.rt{
			font-size: 28rpx;
			color: #3D3D3D;
			display: flex;
			align-items: center;
			image{
				width: 14rpx;
				height: 36rpx;
				margin-left: 10rpx;
			}
		}
		.lt{
			font-size: 28rpx;
			color: #3D3D3D;
			display: flex;
			align-items: center;
			image{
				width: 30rpx;
				height: 30rpx;
				margin-left: 10rpx;
			}
		}
	}
	.topxx{
		width: 674rpx;
		height: 228rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0,0,0,0.15);
		border-radius: 18rpx 18rpx 18rpx 18rpx;
		display: flex;
		margin: auto;
		margin-top: 38rpx;
		padding: 34rpx 30rpx;
		box-sizing: border-box;
		.rt{
			view{
				font-size: 28rpx;
				color: #3D3D3D;
				margin-bottom: 22rpx;
			}
		}
		.lt{
			margin-right: 34rpx;
			image{
				width: 158rpx;
				height: 158rpx;
				border-radius: 10rpx;
			}
		}
	}
	page {
		background: #fff;
		margin-top: 18rpx;
		padding-bottom: 220rpx;
		box-sizing: border-box;
	    height: 100vh;
		overflow: hidden;
	}
        .imgbj {
        	width: 750rpx;
        	height: 424rpx;
        	position: fixed;
        	top: 0;
        	left: 0;
        	z-index: -1;
        }
</style>