<template>
	<view class="page">
		<u-navbar title="订单详情" :border-bottom="false" :background="bgc" title-color='#2E4975' title-size='36'
			height='36'></u-navbar>
		<map class="map" id="map" ref="map" :scale="zoomSize" :latitude="latitude" :longitude="longitude"
			:show-location='true' :polygons='polygons' :markers="markers" :polyline="polyline"></map>
		<view class="info_card">
			<view class="info_tit">
				基本信息
			</view>
			<view class="lines"></view>
			<view class="cont">
				<view class="info_li">
					订单编号：<span>2169987651526787</span>
				</view>
				<view class="info_li">
					租赁用户：<span style="color:#4C97E7 ;">13056449832</span>
				</view>
				<view class="info_li">
					<view class="half_infoli">
						租赁时长：<span>6分钟</span>
					</view>
					<view class="half_infoli">
						行驶距离：<span>1Km</span>
					</view>
				</view>
				<view class="info_li">
					订单状态：<span>已完成</span>
				</view>
			</view>
		</view>
		<view class="info_card" style="margin-top: 20rpx;">
			<view class="info_tit">
				设备信息
			</view>
			<view class="lines"></view>
			<view class="cont">

				<view class="info_li">
					<view class="half_infoli">
						车牌号：<span>6分钟</span>
					</view>
					<view class="half_infoli">
						IMIE：<span>1Km</span>
					</view>
				</view>
				<view class="info_li">
					<view class="half_infoli">
						车辆编号：<span>6分钟</span>
					</view>
					<view class="half_infoli">
						运营区域：<span>1Km</span>
					</view>
				</view>
			</view>
		</view>
	
		<view class="info_card" style="margin-top: 20rpx;">
			<view class="info_tit">
				 行程记录
			</view>
			<view class="lines"></view>
			<view class="cont">

				<view class="info_li">
					开锁时间：<span>2024-04-29 15:22:56</span>
				</view>
				<view class="info_li">
					开锁地点：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					锁车时间：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					锁车地点：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					解除时间：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					关锁时间：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					关锁地点：<span>120.56189，27.12379</span>
				</view>
			</view>
		</view>
		<view class="info_card" style="margin-top: 20rpx;">
			<view class="info_tit">
				费用明细
				<view class="money">
					结算总费用：￥0.00
				</view>
			</view>
			<view class="lines"></view>
			<view class="cont">
		
				<view class="info_li">
					<view class="half_infoli">
						租赁费用：<span>6分钟</span>
					</view>
					<view class="half_infoli">
						调度费：<span>1Km</span>
					</view>
				</view>
				<view class="info_li">
					<view class="half_infoli">
						管理费：<span>6分钟</span>
					</view>
					<view class="half_infoli">
						实收：<span>1Km</span>
					</view>
				</view>
				<view class="info_li">
					支付方式：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					计费模板：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					支付时间：<span>120.56189，27.12379</span>
				</view>
				
			</view>
			<view class="lines"></view>
			<view class="cont">
					
			
				<view class="info_li">
					<view class="half_infoli">
						租赁费退款：<span>6分钟</span>
					</view>
					<view class="half_infoli">
						调度费退款：<span>1Km</span>
					</view>
				</view>
				<view class="info_li">
					管理费退款：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					退款原因：<span>120.56189，27.12379</span>
				</view>
				<view class="info_li">
					退款时间：<span>120.56189，27.12379</span>
				</view>
				
			</view>
		</view>
		<view class="bot">
			<view class="btn">
				退款
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bgc: {
					backgroundColor: "#F7FAFE",
				},
				latitude: 39.916527,
				longitude: 116.397128,
				isMap: false,
				zoomSize: 15,
				markers: [{
					id: 1,
					latitude: 39.90469,
					longitude: 116.40717,
					title: 'Marker1'
				}, {
					id: 2,
					latitude: 39.90969,
					longitude: 116.41217,
					title: 'Marker2'
				}],
				polyline: [{
					points: [{
						latitude: 39.916527,
						longitude: 116.397128
					}, {
						latitude: 39.926527,
						longitude: 116.397128
					}, {
						latitude: 39.926527,
						longitude: 116.407128
					}, {
						latitude: 39.916527,
						longitude: 116.407128
					}],
					width: 8,
					arrowLine: true,
					color: '#00AF99'
					// strokeWidth: 2,
					// strokeColor: '#00AF99',
					// fillColor: '#00AF99'
				}, ],
				polygons: [{
					points: [{
							latitude: 39.918527,
							longitude: 116.400128
						},
						{
							latitude: 39.922527,
							longitude: 116.400128
						},
						{
							latitude: 39.924527,
							longitude: 116.405128
						},
						{
							latitude: 39.912527,
							longitude: 116.402128
						}
					],
					strokeColor: '#00FF00DD', // 使用不同的颜色来区分第二个区域
					strokeWidth: 2,
					fillColor: '#00FF00DD'
				}],
				cardId: '001区域'

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F3F3F3;
	}

	.page {
		padding-bottom: 200rpx;
		width: 750rpx;

		.map {
			width: 750rpx;
			height: 752rpx;
		}

		.info_card {
			background: #FFFFFF;

			.info_tit {
				display: flex;
				flex-wrap: nowrap;
				padding: 22rpx 28rpx;
				font-weight: 600;
				font-size: 32rpx;
				color: #3D3D3D;
				.money{
					margin-left: auto;
					font-weight: 500;
					font-size: 32rpx;
					color: #4C97E7;
				}
			}

			.lines {
				width: 750rpx;
				height: 2rpx;
				border: 2rpx solid #ccc;
			}

			.cont {
				padding: 26rpx 28rpx;

				.info_li {
					display: flex;
					flex-wrap: nowrap;
					font-weight: 400;
					font-size: 28rpx;
					color: #808080;

					span {
						color: #3D3D3D;
					}

					line-height: 48rpx;

					.half_infoli {
						width: 50%;
						font-weight: 400;
						font-size: 28rpx;
						color: #808080;

						span {
							color: #3D3D3D;
						}
					}
				}
			}
		}

		.bot {
			position: fixed;
			bottom: 0;
			width: 750rpx;
			height: 184rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 10rpx 64rpx 0rpx rgba(0, 0, 0, 0.08), 0rpx 10rpx 64rpx 0rpx rgba(0, 0, 0, 0.08);
			border-radius: 0rpx 0rpx 0rpx 0rpx;

			.btn {
				margin: 46rpx auto;
				display: flex;
				align-items: center;
				justify-content: center;
				width: 680rpx;
				height: 90rpx;
				background: #4C97E7;
				border-radius: 54rpx 54rpx 54rpx 54rpx;
				font-weight: 500;
				font-size: 40rpx;
				color: #FFFFFF;
			}
		}
	}
</style>