<template>
	<view>
		<ujp-navbar title="确认订单"></ujp-navbar>
		<!-- 商品信息 -->
		<view class="product-infos">
			<view class="picture">
				<img src="../../assets/img/productPic.png" alt="">
			</view>
			<view class="infos">
				<view class="name">
					自营站充电服务费6折卡
				</view>
				<view class="specification">
					<view class="title">
						可用338度（有效期30天）
					</view>
					<view class="value">
						x1
					</view>
				</view>
				<view class="price">
					12.9元
				</view>
			</view>
		</view>

		<!-- 订单金额 -->
		<view class="order-price">
			<view class="title">
				订单金额
			</view>
			<view class="price-group">
				<view class="item">
					<view class="item-title">
						商品金额
					</view>
					<view class="item-value">
						12.9元
					</view>
				</view>
				<view class="item">
					<view class="item-title">
						优惠金额
					</view>
					<view class="item-value">
						0元
					</view>
				</view>
				<view class="item">
					<view class="item-title">
						合计
					</view>
					<view class="item-value">
						12.9元
					</view>
				</view>
			</view>
		</view>
        <!-- 支付方式 -->
		<view class="payment-mode">
			<view class="title">
				支付方式
			</view>
			<view class="mode">
				<view class="item">
					<view class="mode-name">
						<view class="img"><img src="../../assets/img/wechat-pay-fill.svg" alt=""></view>微信支付
					</view>
					<view class="mode-radio">
						<label class="radio">
							<radio value="" /><text></text>
						</label>
					</view>
				</view>
				<view class="item">
					<view class="mode-name">
						<view class="img"><img src="../../assets/img/alipay-fill.svg" alt=""></view>微信支付
					</view>
					<view class="mode-radio">
						<label class="radio">
							<radio value="" /><text></text>
						</label>
					</view>
				</view>
			</view>
		</view>
		<!-- 底部 -->
		<view class="bottom">
			<view class="to-be-pay">
				待支付: 12.9元
			</view>
			<view class="btn">
				<button class="submit">提交订单</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style>
	page {
		padding-bottom: 100px;
	}
</style>
<style scoped lang="scss">
	.product-infos {
		display: flex;
		align-items: center;
		margin: 24rpx;
		background-color: #fff;
		padding: 32rpx 24rpx;

		.picture {
			width: 152rpx;
			height: 152rpx;
			border-radius: 4px;
			overflow: hidden;
			margin-right: 16rpx;

			img {
				width: 100%;
			}
		}

		.infos {
			flex: 1;

			.name {
				color: rgba(51, 51, 51, 1);
				font-size: 32rpx;
				font-weight: bold;
			}

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

				.title {
					color: rgba(119, 119, 119, 1);
					font-size: 24rpx;
				}
				.value {
					color: rgba(51, 51, 51, 1);
					font-size: 32rpx;
				}
			}

			.price {
				color: rgba(16, 16, 16, 1);
				font-size: 32rpx;
				margin-top: 24rpx;
			}
		}
	}

	// 订单金额
	.order-price {
		margin: 40rpx;
		padding: 32rpx 24rpx;
		background-color: #fff;
		border-radius: 8px;

		.title {
			color: rgba(51, 51, 51, 1);
			font-size: 32rpx;
			font-weight: bold;
		}

		.price-group {
			margin-top: 32rpx;

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

				.item-title {
					color: rgba(51, 51, 51, 1);

				}

				.item-value {
					color: rgba(51, 51, 51, 1);
					font-size: 32rpx
				}
			}
		}
	}

 // 支付方式
.payment-mode{
	margin: 40rpx;
	padding: 32rpx 24rpx;
	background-color: #fff;
	border-radius: 8px;
	
	.title {
		color: rgba(51, 51, 51, 1);
		font-size: 32rpx;
		font-weight: bold;
	}
	.mode{
		margin-top: 24rpx;
		.item{
			margin-bottom: 24rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.mode-name{
				display: flex;
				align-items: center;
				.img{
					width: 48rpx;
					height: 48rpx;
					margin-right: 8rpx;
					img{
						width: 100%;
					}
				}
			}
			/deep/.uni-radio-input{
				width: 40rpx;
				height: 40rpx;
			}
			/deep/.uni-radio-input-checked{
				background-color: #00B962 !important;
				    border-color: #00B962 !important;
			}
		}
	}
}

// 底部
.bottom{
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #fff;
	padding: 24rpx 32rpx;
	display: flex;
	align-items: center;
	justify-content: space-between;
	.to-be-pay{
		color: rgba(16, 16, 16, 1);
		font-size: 40rpx;
		font-weight: bold;
	}
	.submit{
		width: 318rpx;
		height: 96rpx;
		line-height: 96rpx;
		background-color: rgba(0, 185, 98, 1);
		color: rgba(255, 255, 255, 1);
		font-size: 36rpx;
		border-radius: 50px;
		
	}
}

</style>