Kaynağa Gözat

站点详情(游客模式)

常志远 1 yıl önce
ebeveyn
işleme
412149f797

BIN
assets/img/electricQuantity.png


BIN
assets/img/pileIcon.png


BIN
assets/img/riFill-navigation-fill@1x.png


BIN
assets/img/stationPic.png


+ 9 - 0
pages.json

@@ -731,6 +731,15 @@
             }
             
         }
+        ,{
+            "path" : "pages/newPage/stationDetailVmode/stationDetailVmode",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationStyle": "custom", // 隐藏系统导航栏

+ 816 - 0
pages/newPage/stationDetailVmode/stationDetailVmode.vue

@@ -0,0 +1,816 @@
+<template>
+	<view>
+		<ujp-navbar title="站点详情(游客模式)">
+			<view slot="right" style="margin-right: 10px;">
+				<view class="iconfont qr-code">
+					&#xe60d;
+				</view>
+			</view>
+		</ujp-navbar>
+		<view class="head">
+			<img src="../../../assets/img/stationPic.png" mode=""></img>
+		</view>
+		<!-- 站点详情 -->
+		<view class="stationDetail">
+			<!-- 标题 -->
+			<view class="title">
+				江津路荆鹏软件园充电站
+			</view>
+			<!-- 标签 -->
+			<view class="tags">
+				<view class="tag1">
+					会员服务费8.5折
+				</view>
+				<view class="tag2">
+					月卡
+				</view>
+				<view class="tag2">
+					服务费代金券
+				</view>
+				<view class="tag2">
+					超级代金券
+				</view>
+			</view>
+			<u-line color="#EEF2F0" margin="24rpx 0"></u-line>
+			<!-- 定位 -->
+			<view class="position" v-for="item in 2">
+				<view class="block">
+					A区
+				</view>
+				<view class="address">
+					荆州市沙市区江津东路附155号荆鹏软件园院内地面停车场
+				</view>
+				<view class="distance">
+					<view class="distance-icon">
+						<img src="../../../assets/img/riFill-navigation-fill@1x.png" alt="">
+					</view>
+					<view class="distance-text">
+						小于100米
+					</view>
+				</view>
+			</view>
+			<!-- 充电桩类型 -->
+			<view class="type">
+				<view class="type-box" :class="{'checked':flag===true}" @click="changeFlag()">
+					<view class="box-top">
+						<view class="fast">
+							快
+						</view>
+						<view class="pile-type">
+							直流快充
+						</view>
+					</view>
+					<view class="pile-amount">
+						<view class="free">
+							0空闲
+						</view>
+						<view class="cut">
+							|
+						</view>
+						<view class="sum">
+							4总
+						</view>
+					</view>
+					<!-- 尖角 -->
+					<view class="angle" v-if="flag">
+					</view>
+
+
+				</view>
+				<view class="type-box" :class="{'checked':flag===true}" @click="changeFlag()">
+					<view class="box-top">
+						<view class="slow">
+							慢
+						</view>
+						<view class="pile-type">
+							交流慢充
+						</view>
+					</view>
+					<view class="pile-amount">
+						<view class="free">
+							0空闲
+						</view>
+						<view class="cut">
+							|
+						</view>
+						<view class="sum">
+							4总
+						</view>
+					</view>
+					<!-- 尖角 -->
+					<view class="angle" v-if="flag">
+
+					</view>
+				</view>
+
+
+			</view>
+			<!-- 充电桩状态 -->
+			<view class="pile-state">
+				<!-- 总计 -->
+				<view class="statistics">
+					<view class="free">
+						2 空闲
+					</view>
+					<view class="cut">
+						|
+					</view>
+					<view class="busy">
+						1 占用
+					</view>
+					<view class="cut">
+						|
+					</view>
+					<view class="malfunction">
+						1故障
+					</view>
+				</view>
+				<!-- 充电枪详情 -->
+				<view class="gun-details">
+					<view class="item" v-for="item in 2">
+						<!-- 充电桩状态 -->
+						<view class="state">
+							<view class="state-icon">
+								<img src="../../../assets/img/pileIcon.png" alt="">
+							</view>
+							<view class="state-text">
+								空闲中
+							</view>
+						</view>
+						<!-- 详细信息 -->
+						<view class="infos">
+							<view class="gun-name">
+								1号<text>/</text>1#桩枪1
+							</view>
+							<view class="else">
+								<view class="gun-type">
+									直流快充
+								</view>|
+								<view class="voltage">
+									80kW
+								</view>
+								<view class="more">
+									<u-icon name="arrow-down" color="#999999" size="12"></u-icon>
+								</view>
+							</view>
+						</view>
+						<!-- 充电按钮 -->
+						<view class="charge">
+							充电
+						</view>
+					</view>
+					<!-- 充电中 -->
+					<view class="item">
+						<!-- 充电桩状态 -->
+						<view class="state charging">
+							<view class="state-icon">
+								<img src="../../../assets/img/pileIcon.png" alt="">
+							</view>
+							<view class="state-text">
+								充电中
+							</view>
+						</view>
+						<!-- 详细信息 -->
+						<view class="infos">
+							<view class="gun-name">
+								1号<text>/</text>1#桩枪1
+							</view>
+							<view class="else">
+								<view class="gun-type">
+									直流快充
+								</view>|
+								<view class="voltage">
+									80kW
+								</view>
+								<view class="more">
+									<u-icon name="arrow-down" color="#999999" size="12"></u-icon>
+								</view>
+							</view>
+						</view>
+						<!-- 电量 -->
+						<view class="electric-quantity">
+							<img src="../../../assets/img/electricQuantity.png" alt="">
+							<view class="percentage">
+								50%
+							</view>
+						</view>
+					</view>
+					<!-- 离线 -->
+					<view class="item">
+						<!-- 充电桩状态 -->
+						<view class="state ">
+							<view class="state-icon">
+								<img src="../../../assets/img/pileIcon.png" alt="">
+							</view>
+							<view class="state-text ">
+								离线
+							</view>
+						</view>
+						<!-- 详细信息 -->
+						<view class="infos">
+							<view class="gun-name">
+								1号<text>/</text>1#桩枪1
+							</view>
+							<view class="else">
+								<view class="gun-type">
+									直流快充
+								</view>|
+								<view class="voltage">
+									80kW
+								</view>
+								<view class="more">
+									<u-icon name="arrow-down" color="#999999" size="12"></u-icon>
+								</view>
+							</view>
+						</view>
+
+						<!-- 充电按钮 -->
+						<view class="charge">
+							充电
+						</view>
+					</view>
+				</view>
+			</view>
+
+			<!-- 价格信息 -->
+			<view class="price-infos">
+				<view class="title">
+					价格信息<text>(16:00-20:00)</text>
+				</view>
+                <view class="classify">
+                	<view class="item item-visitor">
+                		<view class="visitor">
+                			游客价
+                		</view>
+						<view class="unit-price">
+							<text>1.29</text>
+							<text class="unit">元/度</text>
+						</view>
+                	</view>
+					
+					<view class="item item-member">
+						<view class="visitor">
+							会员价
+						</view>
+						<view class="unit-price">
+							<text>1.19</text>
+							<text class="unit">元/度</text>
+							<text class="register">注册</text>
+						</view>
+					</view>
+                </view>
+				<!-- 提示 -->
+				<p class="hint">*该价格为含服务费价格,实际价格以扫码价格为准。</p>
+				<!-- 表格 -->
+				<view class="chat-box">
+					<view class="chat-infos">
+						<view class="item">
+							<view class="name">
+								<view class="icon icon1">
+									
+								</view>
+								<view class="text">
+									时段
+								</view>
+							</view>
+							<view class="value">
+								14:00-20:00
+							</view>
+							
+						</view>
+						<view class="item">
+							<view class="name">
+								<view class="icon icon2">
+									
+								</view>
+								<view class="text">
+									0.70元/度
+								</view>
+							</view>
+							<view class="value">
+								14:00-20:00
+							</view>
+							
+						</view>
+						<view class="item">
+							<view class="name">
+								<view class="icon icon3">
+									
+								</view>
+								<view class="text">
+									服务费
+								</view>
+							</view>
+							<view class="value">
+								0.28元/度
+							</view>
+							
+						</view>
+					</view>
+					<view class="chat">
+						
+					</view>
+				</view>
+			</view>
+		  <!-- 附加信息 -->
+		  <view class="overhead-infos">
+		   	  <view class="item">
+		   	     <view class="title">
+		   	     	营业时间
+		   	     </view>
+				 <view class="value">
+				 	周一至周日全天开放<text><u-icon name="arrow-right" color="#999999" size="28"></u-icon></text>
+				 </view>
+		   	  </view>
+			  <u-line margin="24rpx 0 " color="#F0F0F2"></u-line>
+			  <view class="item">
+			     <view class="title">
+			     	停车费
+			     </view>
+			  				 <view class="value">
+			  				 	2小时免费停车<text><u-icon name="arrow-right" color="#999999" size="28"></u-icon></text>
+			  				 </view>
+			  </view>
+		   </view>
+		</view>
+
+    
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				flag: false
+			}
+		},
+		methods: {
+			changeFlag() {
+				this.flag = !this.flag
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	page {
+		background-color: #F2F2F2;
+		
+	}
+
+	.head {
+		width: 100%;
+		height: 360rpx;
+     
+		img {
+			width: 100%;
+			height: 100%;
+		}
+	}
+
+	// 站点详情
+	.stationDetail {
+		border-radius: 24rpx 24rpx 0px 0px;
+		background-color: #F2F2F2;
+		// background: linear-gradient(180deg, rgba(255,255,255,1) 59%,rgba(255,255,255,0) 100%);
+		padding: 24rpx 32rpx;
+		margin-top: -48rpx;
+		color: #101010;
+		z-index: 999;
+		position: absolute;
+		left: 0;
+		right: 0;
+padding-bottom: 100rpx;
+		// 标题
+		.title {
+			color: rgba(16, 16, 16, 1);
+			font-size: 40rpx;
+			font-weight: bold;
+		}
+
+		// 标签
+		.tags {
+			display: flex;
+			margin-top: 8rpx;
+
+			.tag1 {
+				border: 1px solid rgba(255, 139, 0, 1);
+				height: 40rpx;
+				line-height: 40rpx;
+				border-radius: 4px;
+				color: rgba(255, 139, 0, 1);
+				font-size: 24rpx;
+				text-align: center;
+				padding: 0 8rpx;
+				margin-right: 16rpx;
+			}
+
+			.tag2 {
+				border: 1px solid rgba(204, 204, 204, 1);
+				height: 40rpx;
+				line-height: 40rpx;
+				border-radius: 4px;
+				color: rgba(153, 153, 153, 1);
+				font-size: 24rpx;
+				text-align: center;
+				padding: 0 8rpx;
+				margin-right: 16rpx;
+			}
+		}
+
+		// 定位
+		.position {
+			display: flex;
+			justify-content: space-between;
+			margin-bottom: 24rpx;
+
+			.block {
+				width: 88rpx;
+				height: 40rpx;
+				line-height: 40rpx;
+				border-radius: 50px;
+				background-color: rgba(0, 185, 98, 1);
+				color: rgba(255, 255, 255, 1);
+				font-size: 22rpx;
+				text-align: center;
+			}
+
+			.address {
+				width: 460rpx;
+				margin-left: 16rpx;
+				color: rgba(16, 16, 16, 1);
+				font-size: 32rpx;
+				line-height: 44rpx;
+			}
+
+			.distance {
+				display: flex;
+				flex-direction: column;
+				align-items: center;
+
+				.distance-icon {
+					width: 40rpx;
+					height: 40rpx;
+					display: flex;
+					justify-content: center;
+					align-items: center;
+					background-color: rgba(0, 185, 98, 1);
+					border-radius: 999px;
+				}
+
+				.distance-text {
+					color: rgba(153, 153, 153, 1);
+					font-size: 24rpx;
+					margin-top: 16rpx;
+				}
+			}
+		}
+
+		// 充电桩类型
+		.type {
+			display: flex;
+			justify-content: space-between;
+
+			.checked {
+				background-color: rgba(20, 23, 43, 1) !important;
+
+				.pile-type {
+					color: #fff !important;
+				}
+
+				.cut {
+					color: #fff !important;
+				}
+			}
+
+			.type-box {
+				width: 334rpx;
+				padding: 16rpx 84rpx;
+				border-radius: 8px;
+				background-color: rgba(255, 255, 255, 1);
+				position: relative;
+
+				.box-top {
+					display: flex;
+					align-items: center;
+
+					.fast {
+						width: 32rpx;
+						height: 32rpx;
+						display: flex;
+						justify-content: center;
+						align-items: center;
+						border-radius: 4px;
+						background-color: rgba(22, 119, 255, 1);
+						color: rgba(255, 255, 255, 1);
+						font-size: 24rpx
+					}
+
+					.slow {
+						width: 32rpx;
+						height: 32rpx;
+						display: flex;
+						justify-content: center;
+						align-items: center;
+						border-radius: 4px;
+						background-color: rgba(0, 185, 98, 1);
+						color: rgba(255, 255, 255, 1);
+						font-size: 24rpx
+					}
+
+					.pile-type {
+						color: #333333;
+						font-size: 32rpx;
+						margin-left: 4rpx;
+					}
+				}
+
+				.pile-amount {
+					display: flex;
+					justify-content: center;
+
+					.free {
+						color: rgba(0, 255, 135, 1);
+						margin-right: 8rpx;
+					}
+
+					.sum {
+						color: #B6BBB8;
+						margin-left: 8rpx;
+					}
+				}
+			}
+
+			// 尖角
+			.angle {
+				position: absolute;
+				width: 0;
+				height: 0;
+				display: inline-block;
+				border-top: 16rpx solid #000000;
+				border-left: 16rpx solid transparent;
+				border-right: 16rpx solid transparent;
+				bottom: -16rpx;
+				left: 167rpx;
+			}
+		}
+
+
+		// 充电桩状态
+		.pile-state {
+			border-radius: 8px 8px 0 0 ;
+			margin-top: 32rpx;
+			background-color: rgba(255, 255, 255, 1);
+			padding: 24rpx;
+
+			// 总计
+			.statistics {
+				width: 316rpx;
+				border: 1px solid rgba(204, 204, 204, 1);
+				padding: 0 16rpx;
+				height: 48rpx;
+				display: flex;
+				justify-content: space-between;
+				align-items: center;
+				color: #777777;
+
+				.cut {
+					color: #8FCFB1;
+				}
+
+			}
+
+			// 充电枪详情
+			.gun-details {
+
+
+				.item {
+					margin-top: 24rpx;
+					display: flex;
+					align-items: center;
+
+					.state {
+						width: 100rpx;
+						border-radius: 4px;
+						background: linear-gradient(180deg, rgba(98, 228, 167, 1) 0%, rgba(0, 180, 95, 1) 100%);
+						padding: 8rpx 0;
+						display: flex;
+						flex-direction: column;
+						align-items: center;
+
+						.state-text {
+							color: rgba(255, 255, 255, 1);
+							font-size: 22rpx;
+						}
+					}
+
+					//充电中
+					.charging {
+						background: linear-gradient(180deg, rgba(154, 192, 255, 1) 0%, rgba(22, 119, 255, 1) 100%);
+					}
+
+					// 离线
+					.off-line {
+						background: linear-gradient(180deg, rgba(209, 204, 204, 1) 0%, rgba(148, 145, 145, 1) 100%);
+					}
+
+					// 详细信息
+					.infos {
+						margin-left: 16rpx;
+
+						.gun-name {
+							color: rgba(51, 51, 51, 1);
+							font-size: 36rpx;
+							font-weight: bold;
+
+							text {
+								color: #D6D6D6;
+								font-weight: normal;
+							}
+						}
+					}
+
+					.else {
+						display: flex;
+						align-items: center;
+						margin-top: 8rpx;
+
+						.gun-type {
+							color: rgba(22, 119, 255, 1);
+							margin-right: 8rpx;
+						}
+
+						.voltage {
+							margin: 0 8rpx;
+						}
+					}
+				}
+
+				// 充电按钮
+				.charge {
+					width: 96rpx;
+					height: 48rpx;
+					line-height: 48rpx;
+					border-radius: 50px;
+					background-color: rgba(0, 185, 98, 1);
+					color: rgba(255, 255, 255, 1);
+
+					text-align: center;
+					margin-left: auto;
+				}
+
+				.electric-quantity {
+					width: 96rpx;
+					height: 52rpx;
+					margin-left: auto;
+					position: relative;
+
+					img {}
+
+					.percentage {
+						color: rgba(255, 255, 255, 1);
+						font-size: 24rpx;
+						position: absolute;
+						left: 50%;
+						top: 50%;
+						transform: translate(-50%, -50%);
+
+					}
+				}
+			}
+		}
+     // 价格信息
+	 .price-infos{
+		 background-color: #fff;
+		 padding:  24rpx;
+		 border-radius: 0 0 8px 8px;
+		 .title{
+			 color: rgba(51, 51, 51, 1);
+			 font-weight: bold;
+			 font-size: 32rpx;
+			 text{
+				 color:#777777;
+				 font-weight: normal;
+			 }
+		 }
+		 // 分类
+		 .classify{
+			 display: flex;
+			 justify-content: space-between;
+			 margin-top: 24rpx;
+			 .item{
+				 border-radius: 4px;
+				 background-color: rgba(230, 245, 237, 1);
+				 padding: 22rpx;
+				 .unit-price{
+				 					 font-size: 56rpx;
+				 }
+				 .unit{
+				 					 color: rgba(119, 119, 119, 1);
+				 					 font-size:28rpx
+				 }
+			 }
+			 // 游客价
+			 .item-visitor{
+				 color: #333333;
+				
+			 }
+			 // 会员价
+			 .item-member{
+				 color: #27B148 ;
+			 }
+			 .register{
+				padding:4rpx 12rpx;
+				height: 24px;
+				border-radius: 50px;
+				background: linear-gradient(87.64deg, rgba(253,129,69,1) 1.81%,rgba(252,63,3,1) 100.04%);
+				color: rgba(255, 255, 255, 1);
+				font-size: 14px;
+				text-align: center;
+				margin-left: 38rpx;
+			 }
+		 }
+	
+	// 提示
+	.hint{
+		margin-top: 16rpx;
+		color: rgba(119, 119, 119, 1);
+	}
+	// 图表
+	.chat-box{
+		border-radius: 4px;
+		background-color: rgba(249, 249, 249, 1);
+		padding: 24rpx;
+		.chat-infos{
+			
+			.item{
+				display: flex;
+				justify-content: space-between;
+				align-items: center;
+				margin-bottom: 32rpx;
+				.name{
+					display: flex;
+					align-items: center;
+					.icon{
+						width: 56rpx;
+						height: 28rpx;
+						
+						margin-right: 8rpx;
+					}
+					.icon1{
+						border: 2px solid rgba(0, 0, 0, 1);
+					}
+					.icon2{
+						
+						background-color: rgba(87, 228, 160, 1);
+					}
+					.icon3{
+						background-color: rgba(220, 220, 220, 1);
+					}
+					.text{
+						color: rgba(102, 102, 102, 1);
+						font-size: 32rpx;
+					}
+				}
+				.value{
+					color: rgba(16, 16, 16, 1);
+					font-size: 32rpx;
+					font-weight: bold;
+				}
+			}
+	}
+	
+	.chat{
+		height: 100px;
+	}
+	
+	}
+	
+	 }
+	
+	// 附加信息
+	.overhead-infos{
+		margin-top: 24rpx;
+		background-color: #fff;
+		padding: 24rpx;
+		border-radius: 8px;
+		.item{
+			display: flex;
+			align-items: center;
+			justify-content: space-between;
+			font-size: 32rpx;
+			
+			
+			.title{
+				color: rgba(119, 119, 119, 1);
+				font-size: 32rpx;
+				
+			}
+			.value{
+				color: rgba(51, 51, 51, 1);
+			}
+		}
+	}
+	}
+</style>