<template>
	<view>
		<!-- 头部 -->
		<view class="top-box">
			<view class="top">
				<view class="">
					荆州市 <text class="iconfont" style="color: #bdbdbd;">&#xe62a;</text>
				</view>
				<u-search :show-action="false" placeholder="搜索站点名称"></u-search>
				<view class="">
					<text class="iconfont">&#xe613;</text> <text class="list">列表</text>
				</view>
			</view>
			<!-- 条件选项 -->
			<view class="condition">
				<view class="condition-distance">
					10公里<text class="iconfont"
						style="color: #bdbdbd;font-size: 24px;position: absolute;">&#xe62a;</text>
				</view>
				<view class="condition-type">
					直流快充<text class="iconfont"
						style="color: #bdbdbd;font-size: 24px;position: absolute;">&#xe62a;</text>
				</view>
				<view class="condition-screen">
					筛选<text class="iconfont" style="color: #bdbdbd;font-size: 24px;position: absolute;">&#xe62a;</text>
				</view>

			</view>
		</view>

		<!-- 地图 -->
		<view style="height: 88px;"></view>
		<view class="map">
			<view class="station-icon" style="background-color: #fff;"><text class="iconfont" >&#xe606;</text>
				<view class="corner"></view>
			</view>
			<view class="station-icon2">
				<view class="iconfont icon2-left">&#xe606;</view>
				<view class="icon2-right">
					<view class="corner2"></view>
					<view class="corner2-top">
						1.25元
					</view>
					<view class="corner2-bottom">
						空闲10
					</view>
				</view>
			</view>
			<view class="station-icon3"><text class="iconfont">&#xe606;</text>
				<view class="corner3"></view>
			</view>
		
		</view>

		<view class="charing-slow">
			<text class="fast-charge">快/慢</text> <text class="station-items">荆鹏软件园充电站</text>
			<view class="address">
				湖北省荆州市沙市区江津东路附155号
			</view>
			<view class="price">
				<view class="num">1.20</view>
				<view class="unit">
					元/度 起
				</view>
			</view>
			<view class="park">
				<text class="park-p">p</text>
				<text class="park-text">以实际费用为准</text>
				<view class="free-num">
					<text style="color:#009143;">空闲10</text>/总数10
				</view>
			</view>
			<view class="free">
				<view class="scan-qrcode"> <text class="iconfont font">&#xe61b;</text><text class="text">扫码充电</text>
				</view>
				<view class="distance">
					<text class="iconfont distance-font">&#xe615;</text><text class="text">1.2公里 3分钟</text>
				</view>
			</view>
			<view class="img-box"><img src="@/assets/static/img/location.png" alt=""></view>
		</view>
        <view class="position-box">
        	<view class="iconfont position" >&#xe634;</view>
        </view>
		<u-tabbar v-model="current" :list="tabbarList" active-color="#009143"></u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabbarList: [{
						iconPath: "home-3-line",
						selectedIconPath: "home-3-fill",
						text: '主页 ',
						count: 0,
						isDot: true,
						customIcon: true,
					},
					{
						iconPath: "road-map-line",
						selectedIconPath: "road-map-fill",
						text: '找桩',
						midButton: true,
						customIcon: true,
					},
					{
						iconPath: "user-5-line",
						selectedIconPath: "user-5-fill",
						text: '我的',
						count: 0,
						isDot: false,
						customIcon: true,

					}
				],
				current: 0
			}
		}
	}
</script>

<style lang="scss" scoped>
	.top-box {
		width: 100%;
		height: 88px;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
	}

	.top {
		display: flex;
		justify-content: space-between;
		width: 100%;
		height: 44px;
		color: #666666;
		background-color: rgba(255, 255, 255, 100);
		padding: 12px 16px;


		.u-search[data-v-1a326067] {
			flex: 0.9;
		}

		.list {
			margin-left: 2px;

		}
	}

	.condition {
		width: 100%;
		height: 44px;
		line-height: 20px;
		padding: 12px 16px;
		display: flex;

		background-color: #fff;

		.condition-type {
			margin-left: 36px;
		}

		.condition-screen {
			margin-left: 159px;
		}
	}

	.map {
		width: 100%;

		flex: 1;
		position: relative;

		img {
			width: 100%;
			height: 100%;
		}

		.station-icon {
			width: 36px;
			height: 36px;
			line-height: 36px;
			text-align: center;
			border: 1px solid rgba(133, 140, 255, 100);
			color: #b58cff;
			border-radius: 999px;
			position: absolute;
			top: 89px;
			left: 38px;

			.corner {
				width: 0;
				height: 0;
				position: absolute;
				top: 34px;
				left: 0;
				right: 0;
				margin: auto;
				border-bottom: 4px solid transparent;
				border-left: 4px solid transparent;
				border-right: 4px solid transparent;
				border-top: 6px solid #b58cff;
			}
		}

		

		.station-icon2 {
			width: 100px;
			height: 36px;
			line-height: 20px;
			border-radius: 50px;
			background-color: #00bacb;
			text-align: center;
			display: flex;
			position: absolute;
			top: 188px;
			left: 146px;

			.icon2-left {
				width: 36px;
				height: 36px;
				line-height: 36px;
				text-align: center;
				border: 1px solid rgba(0, 185, 98, 100);
				border-radius: 999px;
				background-color: #fff;
				color: #00bacb;
			}

			.icon2-right {
				color: #ffffff;
				line-height: 14px;
				padding: 4px;
				font-size: 14px
			}
			.corner2 {
				width: 0;
				height: 0;
				position: absolute;
				top: 36px;
				left: 0;
				right: 0;
				margin: auto;
				border-bottom: 6px solid transparent;
				border-left: 6px solid transparent;
				border-right: 6px solid transparent;
				border-top: 8px solid #00bacb;
			
			}
		}

.station-icon3 {
			width: 36px;
			height: 36px;
			line-height: 36px;
			text-align: center;
			border: 1px solid rgba(0, 185, 98, 100);
			color: #00b962;
			border-radius: 999px;
			position: absolute;
			top: 124px;
			left: 255px;

			.corner3 {
				width: 0;
				height: 0;
				position: absolute;
				top: 34px;
				left: 0;
				right: 0;
				margin: auto;
				border-bottom: 4px solid transparent;
				border-left: 4px solid transparent;
				border-right: 4px solid transparent;
				border-top: 6px solid #00b962;
			}
		}
		
	}

	.charing-slow {
		background-color: #fff;
		margin: 0 12px;
		border-radius: 8px;
		padding: 10px 12px 0px;
		position: fixed;
		bottom: 68px;
		left: 0;
		right: 0;
         z-index: 999;
		.fast-charge {
			display: inline-block;
			width: 44px;
			height: 20px;
			line-height: 20px;
			border-radius: 50px;
			background-color: #00bac8;
			color: rgba(255, 255, 255, 100);
			font-size: 12px;
			text-align: center;
		}

		.station-items {
			display: inline-block;
			height: 16px;
			line-height: 16px;
			font-size: 16px;
			margin-left: 4px;
			color: #101010;


		}

		.address {
			margin-top: 8px;
			line-height: 16px;
			font-size: 11px;
			color: rgba(119, 119, 119, 100);
		}

		.price {
			display: flex;
			height: 20px;

			.num {
				height: 20px;
				color: rgba(255, 98, 0, 100);
				font-size: 20px;
				text-align: left;
				font-family: Roboto-medium;
			}

			.unit {
				height: 14px;
				line-height: 14px;
				color: rgba(102, 102, 102, 100);
				font-size: 14px;
				text-align: left;
				font-family: AlibabaPuHui-regular;
				margin-top: 6px;
				margin-left: 4px;
			}
		}

		.park {
			margin-top: 8px;
			display: flex;

			.park-p {
				display: inline-block;
				width: 20px;
				height: 18px;
				line-height: 12px;
				text-align: center;
				background-color: rgba(125, 177, 255, 100);
				color: #fff;
				font-size: 14px
			}

			.park-text {
				display: inline-block;

				height: 17px;
				color: rgba(102, 102, 102, 100);
				font-size: 12px;
				text-align: left;
				margin-left: 4px;
				margin-top: 2px;
			}

			.free-num {
				margin-left: 119px;
				font-size: 14px;

			}
		}

		.free {
			display: flex;
			justify-content: space-between;
			height: 52px;
			border-top: 1px solid rgba(238, 242, 240, 100);
			margin-top: 10px;

			.iconfont {
				font-size: 15px
			}

			.text {
				margin-left: 4px;
			}

			.distance {
				width: 130px;
				height: 28px;
				line-height: 28px;
				color: rgba(255, 255, 255, 100);
				font-size: 14px;
				background-color: #00b962;
				border-radius: 50px;
				margin: 12px;
				text-align: center;



			}

			.scan-qrcode {
				width: 100px;
				height: 28px;
				line-height: 28px;
				border-radius: 50px;
				margin: 12px 0px 12px 89px;
				text-align: center;
				border: 1px solid rgba(0, 185, 98, 100);
				color: rgba(0, 185, 98, 100);
                font-size: 14px
			}
		}
	}
	.img-box{
		width: 36px;
		height: 36px;
		line-height: 36px;
		text-align: center;
		background-color: #fff;
		border-radius: 8px;
		position: fixed;
		top: 377px;
		right: 16px;
		img{
			width: 24px;
			height: 24px;
			vertical-align:middle;
		}
	}
	.position{
		color: #1677ff;
		font-size: 16px
	}
	.position-box{
		position:absolute;
		top: 341px;
		right: 118px;
		width: 16px;
	
		
	}
</style>
