浏览代码

充电价格详情页面

常志远 2 年之前
父节点
当前提交
a60822354c

+ 98 - 2
pages/searchPile/stationAndPile/chargePriceDetails.vue

@@ -1,7 +1,7 @@
 <template>
 	<view style="padding-bottom: 296rpx;">
 		<ujp-navbar title="充电价格详情"></ujp-navbar>
-		<view class="main" >
+<!-- 		<view class="main" >
 			<view class="tabs-box" v-show="false">
 				<u-tabs  inactive-color="#888888" active-color="#101010" :list="list" :is-scroll="true"
       					:current="current" @change="change"></u-tabs>
@@ -36,6 +36,41 @@
 				
 			</view>
 <!--			<view class="line-box"><u-line color="#999999" /></view>-->
+		<!-- </view> -->
+		<view class="price-main">
+			<view class="price-item" >
+				<view class="time ">
+					00:00-07:00
+				</view>
+				
+				<view class="price">
+					<text class="price-1"><text class="num">0.85</text> <text >元/度</text></text> <text class="price-2"><text class="num">0.87元/度</text></text>
+				</view>
+				<view class="else-price">
+					<view class="electric-price">
+						电费 0.76元/度
+					</view>
+					<view class="service-price">服务费 0.37元/度(折前0.44元/度)</view>
+				</view>
+			</view>
+			<view class="price-item" >
+				<view class="time curent" >
+					09:00-15:00 <view class="current-time">当前时段</view>
+				</view>
+				
+				<view class="price">
+					<text class="price-1"><text class="num">1.21</text> <text >元/度</text></text> <text class="price-2"><text class="num">0.87元/度</text></text>
+				</view>
+				<view class="else-price">
+					<view class="electric-price">
+						电费 0.76元/度
+					</view>
+					<view class="service-price">服务费 0.37元/度(折前0.44元/度)</view>
+				</view>
+			</view>
+			
+			
+			
 		</view>
 		<u-divider color="#B6BDC3" style="margin-top:20px;" bg-color="#F2F4F4">*充电费用仅供参考,请以充电桩上的费用为准。</u-divider>
 		
@@ -67,6 +102,7 @@
 			}
 		},
 		onLoad(op){
+			
 			_self = this; 
 			if(op.type){
 				this.type=op.type;
@@ -142,13 +178,15 @@
 							if(_self.list.length>0){
 								_self.change(_self.current);
 							}
+							
 							//('站点价格详情'+JSON.stringify(_self.list));
 							
 						}
+						
 					}
 				})
+				
 			}
-
 /*			api.getPriceDetails(op).then(function(res){
 					_self.list = res;
  				},function(err){
@@ -323,4 +361,62 @@
 		.tabs-box{
 			width: 90% !important;
 		}
+		
+		.price-main{
+			background-color: #fff;
+			.price-item{
+				padding: 14px 20px 10px 0;
+				margin-left: 20px;
+				border-bottom:rgb(238, 242, 240) solid 1px;
+				.time{
+					color: #00b962;
+					font-size: 16px;
+					position: relative;
+					
+				}
+				.curent{
+					position: relative;
+					color: #ff8b17;
+					.current-time{
+						background-color: #ffecdd;
+						width: 88px;
+						line-height: 20px;
+						border-radius: 8px;
+						padding:2px;
+						position: absolute;
+						top: 0;
+					    right: 0;
+						text-align: center;
+					}
+				}
+				.price{
+					color: #101010;
+					
+					.price-1{
+						
+						
+						.num{
+							font-size: 28px;
+							font-weight: 550;
+							margin-right: 4px;
+						}
+					}
+					.price-2{
+						margin-left: 8px;
+						text-decoration: line-through;
+						.num{
+							margin-right: 4px;
+						}
+					}
+				}
+				.else-price{
+					
+					display: flex;
+					justify-content: space-between;
+					color: #c2a5b2;
+					font-size: 12px
+				}
+			}
+			
+		}
 </style>

+ 2 - 2
pages/searchPile/stationAndPile/stationDetails.vue

@@ -1700,7 +1700,7 @@
 		margin-left: 20px;
 		border-bottom:rgb(238, 242, 240) solid 1px;
 		.time{
-			color: #27bfa1;
+			color: #00b962;
 			font-size: 16px;
 			position: relative;
 			
@@ -1727,7 +1727,7 @@
 				
 				
 				.num{
-					font-size: 30px;
+					font-size: 28px;
 					font-weight: 550;
 					margin-right: 4px;
 				}