<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>
				<u-modal title="订购须知" :show-cancel-button="true" confirm-text="阅读并同意（9）" cancel-text="不同意" cancel-color="#333333" confirm-color="#00B962" v-model="show"  :title-style="{color: '#101010 '}">
					<view class="slot-content">
					<p>当前购买的产品为自营站充电服务费6折卡：</p>
					<p>【适用人群】本产品限新能源车主购买及使用。</p>
					<p>【使用范围】本产品<text>仅支持在{{projectName}}自营充电站使用</text>，可抵扣充电服务费。</p>
					<p>【使用说明】30天自营站充电服务费6折卡，限338度以内抵扣服务费；90天自营站充电服务费6折卡，限1000度以内抵扣服务费。</p>
					<p>【使用规则】<text>本产品与其他折扣卡不能同时使用；可与账户余额、优惠券叠加使用。</text></p>
					<p>【使用顺序】若同时拥有账户余额、优惠券和服务费折扣卡，使用顺序为：1、服务费折扣卡 2、优惠券 3、账户余额。</p>
					<p>【退货规则】<text>购买后30天内未使用可享受无忧退</text>，详见<text>《自营站充电服务费6折卡购买协议》</text>。</p>		
					</view>
					
					
				</u-modal>
				
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
show: true,
				
			}
		},
		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%;
					}
				}
			}
			::v-deep .uni-radio-input{
				width: 40rpx;
				height: 40rpx;
			}
			::v-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;
		
	}
}

.slot-content {
		font-size: 28rpx;
		color: $u-content-color;
		padding-left: 30rpx;
		margin-top: 40rpx;
		p{
			margin-bottom: 16rpx;
			line-height: 40rpx;
			text{
				color: #00B962;
			}
		}
	}
</style>