<template>
	<view class="center">
		<view class="box-title"><image src="../../static/img/index7.png" mode=""></image></view>
		<view class="box-body">
			<view class="navBox">
				<view class="navBox-left">
					<view class="navBox-item" @click="nav('./node')"><image src="../../static/img/index2.png" style="width: 385rpx; height: 398rpx;" mode=""></image></view>
				</view>
				<view class="navBox-right">
					<view class="navBox-item" @click="nav('./convert')"><image src="../../static/img/index3.png" style="width: 385rpx; height: 216rpx; " mode=""></image></view>
					<view class="navBox-item" @click="nav('/pages/index/appointment')">
						<image src="../../static/img/index6.png" style="width: 339rpx; height: 170rpx; margin-top: -12rpx;" mode=""></image>
					</view>
				</view>
			</view>
			<view class="shopBox">
				<view class="shopBox-top">
					<view class="left"><image src="../../static/img/index4.png" mode=""></image></view>
					<view class="between" style="margin-left: -140rpx;">
						<text id="one">FilsCoin矿机拼购</text>
						<text id="two">36轮</text>
					</view>
					<text id="three">预约中</text>
				</view>
				<view class="shopBox-between">
					<view class="number">
						<text class="number-left">100</text>
						<text class="number-right">USDT/份</text>
					</view>
					<view class="quotient"><text class="quotient-children">每轮限购1组，每组限购一份</text></view>
				</view>
				<image src="../../static/img/index5.png" style="width: 635rpx; height: 170rpx; margin: 40rpx 0;" mode=""></image>
				<view class="shopBox-bottom">
					<view class="forward">
						<view class="forward-left">我得预约:&nbsp 0</view>
						<view class="forward-right">每组分数:&nbsp 11份</view>
					</view>
					<view class="consume">
						GAS消耗:
						<text>0.50%LALA</text>
					</view>
					<view class="appointmentTime">
						预约时间:
						<text>2021-07-21 08:00:00-2021-07-21 09:30:00</text>
					</view>
					<view class="lotteryTime">
						开奖时间:
						<text>2021-07-21 08:00:00</text>
					</view>
				</view>
				<view class="submit" @click="buy()">预购</view>
			</view>
		</view>
		<u-popup v-model="show" mode="bottom" border-radius="40" height="868rpx" :closeable="true" close-icon="关闭"><view>出淤泥而不染，濯清涟而不妖</view></u-popup>
	</view>
</template>
<script>
export default {
	data() {
		return {
			show: false, //支付数量
			show1: false //支付密码
		};
	},
	//页面加载即刻发生
	onload() {
		this.loadDate();
	},
	methods: {
		nav(url) {
			uni.navigateTo({
				url: url
			});
		},
		async loadDate() {},
		buy() {
			this.show = true;
		}
	}
};
</script>
<style lang="scss">
.center {
	height: auto;
	min-height: 100%;
	background-color: #ffffff;
}
.box-title {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 436rpx;

	image {
		width: 100%;
		height: 436rpx;
	}
}

.box-body {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 10;
	margin-top: -40rpx;
	border-top-left-radius: 40rpx;
	border-top-right-radius: 40rpx;
	background: #f8fbfe;

	.navBox {
		display: flex;

		justify-content: space-around;

		.navBox-left {
			// margin: 20rpx 5rpx 10rpx 10rpx;
			margin: 20rpx -24rpx 0 0;

			mar .navBox-item {
				image {
					width: 100%;
					height: 100%;
				}
			}
		}

		.navBox-right {
			margin: 20rpx 0 0 -24rpx;

			// margin: 20rpx 10rpx 5rpx 5rpx;
			.navBox-item {
				display: flex;
				flex-direction: column;
				align-items: center;

				image {
				}
			}
		}
	}

	.shopBox {
		padding: 0 30rpx;
		margin-top: 45rpx;
		width: 690rpx;
		// height: 770rpx;
		background: #ffffff;
		box-shadow: 0rpx 0rpx 17rpx 0rpx rgba(0, 0, 0, 0.05);
		border-radius: 10px;
		margin: 0 auto;

		.shopBox-top {
			margin-top: 26rpx;

			display: flex;
			justify-content: space-between;
			align-items: center;

			image {
				height: 46rpx;
				width: 48rpx;
			}

			#one {
				font-size: 34rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #0f253a;
			}

			#two {
				margin-left: 11rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #6d7c88;
			}

			#three {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #ff4c4c;
			}
		}

		.shopBox-between {
			margin-top: 20rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.number {
				.number-left {
					font-size: 40rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #44969d;
				}

				.number-right {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #44969d;
				}
			}

			.quotient {
				.quotient-children {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #6d7c88;
				}
			}
		}

		.forward {
			display: flex;
			justify-content: space-between;
			align-items: center;

			.forward-left {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #44969d;
			}

			.forward-right {
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #6d7c88;
			}
		}
		.consume,
		.appointmentTime,
		.lotteryTime {
			margin: 12rpx 0;
			font-size: 26rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #6d7c88;
		}
		.consume > text,
		.appointmentTime > text,
		.lotteryTime > text {
			font-size: 10rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #000000;
		}
		.submit {
			width: 600rpx;
			height: 70rpx;
			background: linear-gradient(90deg, #60bab0, #45969b);
			border-radius: 35rpx;
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #ffffff;
			text-align: center;
			line-height: 70rpx;
			margin: 40rpx auto;
		}
	}
}
</style>
