<template>
	<view>
		<ujp-navbar title="缴费详情"></ujp-navbar>
		<view class="header">
			<view class="state">
				生效中
			</view>
			<view class="expire">
				2023.09.16 到期 距到期还剩 <text style="color:#E60012;">{{' '}}29{{' '}}</text> 天
			</view>
		</view>
		<view class="card">
			
			<view class="card-infos">
				<view class="picture">
					<img src="../../assets/img/productPic.png" alt="">
				</view>
				<view class="infos">
					<view class="name">
						自营站充电服务费6折卡
					</view>
					<view class="usable">
						可用338度（有效期30天）
					</view>
					<view class="price">
						12.9元
					</view>
				</view>
				<view class="amount">
					x1
				</view>
			</view>
			
			<view class="order-amount">
				<view class="title">
					订单金额
				</view>
				<view class="value">
					12.9元
				</view>
			</view>
			
			<u-line color="#f2f2f2" margin="40rpx 0"></u-line>
			<view class="infos-group">
				<view class="item">
					<view class="title">
						商品总金额
					</view>
					<view class="value">
						12.9元
					</view>
				</view>
				<view class="item">
					<view class="title">
						交易手机号
					</view>
					<view class="value">
						155****0001
					</view>
				</view>
				<view class="item">
					<view class="title">
						订单号
					</view>
					<view class="value">
						T20230816112557708460925<text><img src="../../assets/img/file-copy-2-line.svg" alt=""></text>
					</view>
				</view>
				<view class="item">
					<view class="title">
						创建时间
					</view>
					<view class="value">
						2023-08-20 10:29:00
					</view>
				</view>
				<view class="item">
					<view class="title">
						下单时间
					</view>
					<view class="value">
						2023-08-20 10:29:30
					</view>
				</view>
				
			</view>
			<view class="agreement">
				我已阅读并同意<text>《自营站充电服务费6折卡购买协议》</text>
			</view>
		</view>
		<view class="bottom">
			<view class="btn cancel">
				取消订单
			</view>
			<view class="btn service">
				联系客服
			</view>
			<view class="btn payment">
				立即支付
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>
<style>
	page{
		background-color: #fff;
		padding-bottom: 100px;
	}
</style>
<style lang="scss" scoped>
	.header{
		padding:56rpx 48rpx;
		background-color: rgba(246, 246, 246, 1);
		.state{
			color: rgba(51, 51, 51, 1);
			font-size: 36rpx;
		}
		.expire{
			color: rgba(119, 119, 119, 1);
			font-size: 24rpx;
			margin-top: 8rpx;
		}
	} 
	.card{
		
		padding: 32rpx 48rpx;
		background-color: #fff;
		border-radius: 16rpx;
		
		.card-infos{
			
			display: flex;
			align-items: center;
			.picture{
				width: 152rpx;
				height: 152rpx;
				border-radius: 4px;
				img{
					width: 100%;
				}
			}
			.infos{
				margin-left: 26rpx;
				.name{
					color: rgba(51, 51, 51, 1);
					font-size: 32rpx;
					font-weight: bold;
				}
				.usable{
					color: rgba(119, 119, 119, 1);
					font-size: 24rpx;
					margin-top: 8rpx;
				}
				.price{
					color: rgba(16, 16, 16, 1);
					font-size: 32rpx;
					margin-top: 24rpx;
				}
			}
			.amount{
				margin-left: auto;
				color: rgba(51, 51, 51, 1);
				font-size: 32rpx;
			}
		}
		.order-amount{
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 40rpx;
			color: rgba(51, 51, 51, 1);
			.value{
				font-size: 32rpx;
			}
		}
		.text{
				 text-align: center;
				 color: rgba(16, 16, 16, 1);
				 font-size: 48rpx;
		}
		.infos-group{
				 margin-top: 80rpx;
				 
				 .item{
					 display: flex;
					 align-items: center;
					 justify-content: space-between;
					 margin-bottom: 24rpx;
					 .title{
						 color: rgba(119, 119, 119, 1);
					 }
					 .value{
						 color: rgba(51, 51, 51, 1);
						 text{
							 display: inline-block;
							 width: 32rpx;
							 height: 32rpx;
							 margin-left: 8rpx;
							 img{
								 width: 100%;
								 vertical-align: middle;
							 }
						 }
					 }
				 }
		}
		
		.agreement{
			color: rgba(16, 16, 16, 1);
			font-size: 24rpx;
			text-align: right;
			margin-top: 48rpx;
			text{
				color: #E60012;
			}
		}
	}
   .bottom{
	   position: fixed;
	   bottom: 0;
	   left: 0;
	   right: 0;
	   padding: 20rpx 0 20rpx 80rpx;
	   border: 1px solid rgba(232, 232, 232, 1);
	   display: flex;
	   .btn{
		   width: 200rpx;
		   height: 72rpx;
		   line-height: 72rpx;
		   border-radius: 50px;
		   background-color: rgba(255, 255, 255, 1);
		   color: rgba(119, 119, 119, 1);
		   font-size: 32rpx;
		   text-align: center;
		   border: 1px solid rgba(204, 204, 204, 1);
		   margin-right: 16rpx;
		   margin-left: auto;
	   }
	   .payment{
		   background-color: rgba(0, 185, 98, 1);
		   color: rgba(255, 255, 255, 1);
	   }
   }
</style>
