zxz 3 年之前
父節點
當前提交
aecec1fd3d
共有 5 個文件被更改,包括 421 次插入516 次删除
  1. 134 10
      pages/friend/index.vue
  2. 171 14
      pages/index/index.vue
  3. 22 8
      pages/login/index.vue
  4. 85 7
      pages/news/index.vue
  5. 9 477
      pages/praise/index.vue

+ 134 - 10
pages/friend/index.vue

@@ -1,7 +1,67 @@
 <template>
 	<view>
-		<view class="userHead">
-			<p>1231231231111</p>
+		<view class="home-head">
+			<view class="homeTab">
+				<u-tabs :list="tabList" :current="current" @change="change" :show-bar="false" active-color="#333" inactive-color="#c4c0c0"></u-tabs>
+			</view>
+			<view class="homeAdd">
+				<u-icon custom-prefix="custom-icon" name="filter-2-fill"></u-icon>
+				<span>筛选</span>
+			</view>
+		</view>
+	
+		<view class="friendList">
+			<view class="friendList-item">
+				<u-image class="friendList-img" src="/static/img/user1.jpg" height="160" width="160" border-radius="10"></u-image>
+				<view class="friendList-text">
+					<view class="friendList-name">
+						<span>刘子琪</span>
+						<u-icon custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
+					</view>
+					<view class="friendList-info">
+						24岁 · 160cm · 51kg
+					</view>
+					<view class="friendList-label">
+						<view class="friendList-label-item">
+							<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
+							<span>沙市</span>
+						</view>
+						<view class="friendList-label-item">
+							<span>本科</span>
+						</view>
+						<view class="friendList-label-item">
+							<span>互联网/IT</span>
+						</view>
+					</view>
+				</view>
+			</view>
+			<view class="friendList-item">
+				<u-image class="friendList-img" src="/static/img/user1.jpg" height="160" width="160" border-radius="10"></u-image>
+				<view class="friendList-text">
+					<view class="friendList-name">
+						<span>刘子琪</span>
+						<u-icon custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
+					</view>
+					<view class="friendList-info">
+						24岁 · 160cm · 51kg
+					</view>
+					<view class="friendList-label">
+						<view class="friendList-label-item">
+							<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
+							<span>沙市</span>
+						</view>
+						<view class="friendList-label-item">
+							<span>本科</span>
+						</view>
+						<view class="friendList-label-item">
+							<span>互联网/IT</span>
+						</view>
+					</view>
+				</view>
+			</view>
+			
+			
+			<u-divider color="#B6BDC3" style="margin-top:20px;" bg-color="#f4f0f0">已经到底了</u-divider>
 		</view>
  	</view>
 </template>
@@ -10,19 +70,83 @@
 	export default {
 		data() {
 			return {
-
+				tabList: [{
+					name: '全部'
+				}, {
+					name: '猜你喜欢'
+				}],
+				current: 0,
 			}
-
-			methods: {
-				
+		},
+		methods: {
+			change(index) {
+				this.current = index;
 			}
-
 		}
 	}
 </script>
-
+<style>
+	page{
+		background-color: #f4f0f0;
+	}
+</style>
 <style lang="scss" scoped>
-	.userHead{
-		p{color:#005500}
+	.home-head{
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+		padding-right: 15px;  
+		background-color: #FFF; 
+		.homeAdd{
+			color: #FF5E5E;
+			span{
+				margin-left: 3px;
+			}
+		}
+	}
+
+	.friendList{
+		padding: 15px;
+		.friendList-item{
+			display: flex;
+			background-color: #fff;
+			padding:12px;
+			border-radius: 12px;
+			margin-bottom: 15px;
+			.friendList-text{
+				flex: 1;
+				min-width: 0;
+				margin-left: 12px;
+				display: flex;
+				flex-direction: column;
+				justify-content: space-between;
+				.friendList-name{
+					font-weight: normal;
+					span{
+						font-size: 18px;
+						margin-right: 8px;
+					}
+				}
+				.friendList-info{
+					color: #999;
+					font-size: 12px;
+				}
+				.friendList-label{
+					display: flex;
+					align-items: center;
+					.friendList-label-item{
+						background: #F1F3F4;
+						padding:2px 8px;
+						color: #A2A9B5;
+						border-radius: 4px;
+						font-size: 12px;
+						margin-right: 8px;
+						span{
+							margin-left: 3px;
+						}
+					}
+				}
+			}
+		}
 	}
 </style>

+ 171 - 14
pages/index/index.vue

@@ -1,26 +1,183 @@
 <template>
 	<view>
-		<view class="userHead">
-			123123
+		<view class="home-head">
+			<view class="homeTab">
+				<u-tabs :list="tabList" :current="current" @change="change" :show-bar="false" active-color="#333" inactive-color="#c4c0c0"></u-tabs>
+			</view>
+			<view class="homeAdd">
+				<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
+				<span>荆州市</span>
+			</view>
+		</view>
+		<view class="homeWrap">
+			<u-swiper :list="wrapList" height="300" border-radius="24"></u-swiper>
+		</view>
+		<view class="homeUser">
+			<view class="homeUser-item">
+				<view class="homeUser-add">
+					<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
+					<span>荆州</span>
+				</view>
+				<view class="homeUser-text">
+					<view class="homeUser-name">
+						<span>刘子琪</span>
+						<u-icon custom-prefix="custom-icon" name="women-line" color="#FF695B"></u-icon>
+					</view>
+					<view class="homeUser-info">
+						24岁 · 160cm · 51kg
+					</view>
+				</view>
+				<u-image class="homeUser-img" src="/static/img/user1.jpg" height="330" mode="aspectFill"></u-image>
+			</view>
+			<view class="homeUser-item">
+				<view class="homeUser-add">
+					<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
+					<span>荆州</span>
+				</view>
+				<view class="homeUser-text">
+					<view class="homeUser-name">
+						<span>刘子琪</span>
+						<u-icon custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
+					</view>
+					<view class="homeUser-info">
+						24岁 · 160cm · 51kg
+					</view>
+				</view>
+				<u-image src="/static/img/user2.jpg" height="330" mode="aspectFill"></u-image>
+			</view>
+			<view class="homeUser-item">
+				<view class="homeUser-add">
+					<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
+					<span>荆州</span>
+				</view>
+				<view class="homeUser-text">
+					<view class="homeUser-name">
+						<span>刘子琪</span>
+						<u-icon custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
+					</view>
+					<view class="homeUser-info">
+						24岁 · 160cm · 51kg
+					</view>
+				</view>
+				<u-image src="/static/img/user3.jpg" height="330" mode="aspectFill"></u-image>
+			</view>
+			<view class="homeUser-item">
+				<view class="homeUser-add">
+					<u-icon custom-prefix="custom-icon" name="map-pin-2-fill"></u-icon>
+					<span>荆州</span>
+				</view>
+				<view class="homeUser-text">
+					<view class="homeUser-name">
+						<span>刘子琪</span>
+						<u-icon custom-prefix="custom-icon" name="women-line" color="#FF695B"></u-icon>
+					</view>
+					<view class="homeUser-info">
+						24岁 · 160cm · 51kg
+					</view>
+				</view>
+				<u-image src="/static/img/user4.jpg" height="330" mode="aspectFill"></u-image>
+			</view>
+			
+			<u-divider color="#B6BDC3" style="margin-top:20px;">已经到底了</u-divider>
 		</view>
  	</view>
 </template>
 
-<script>
-	export default {
-		data() {
-			return {
+<script>
+	export default {
+		data() {
+			return {
+				tabList: [{
+					name: '最新'
+				}, {
+					name: '最热'
+				}],
+				current: 0,
+				wrapList: [{
+						image: '/static/img/banner.png',
+					},
+					{
+						image: '/static/img/banner.png',
+					},
+					{
+						image: '/static/img/banner.png',
+					}
+				],
+			}
+		},
+		methods: {
+			change(index) {
+				this.current = index;
+			}
+		}
+	}
+</script>
 
+<style lang="scss" scoped>
+	.home-head{
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+		padding-right: 15px;  
+		.homeAdd{
+			color: #FF5E5E;
+			span{
+				margin-left: 3px;
 			}
-
-			methods: {
-				
+		}
+	}
+	.homeWrap{
+		padding:0 15px;
+	}
+	.homeUser{
+		display: flex;
+		justify-content: space-between;
+		flex-wrap: wrap;
+		padding: 15px;
+		.homeUser-item{
+			width: 48%;
+			height: 165px;
+			margin-bottom: 15px;
+			position: relative;
+			color: #fff;
+			border-radius: 12px;
+			overflow: hidden;
+			.homeUser-add{
+				position: absolute;
+				z-index: 9;
+				right: 10px;
+				top: 10px;
+				background: rgba(0,0,0,0.5);
+				padding:2px 5px;
+				border-radius: 12px;
+				span{
+					margin-left: 3px;
+					font-size: 14px;
+				}
+			}
+			.homeUser-text{
+				position: absolute;
+				z-index: 9;
+				left:0px ;
+				bottom: 0px;
+				right: 0;
+				padding: 10px;
+				background: linear-gradient( 180deg,rgba(0,0,0,0),rgba(0,0,0,0.5));
+			}
+			.homeUser-name{
+				display: flex;
+				align-items: center;
+				span{
+					margin-right: 3px;
+				}
+			}
+			.homeUser-info{
+				margin-top: 3px;
+			}
+			.homeUser-img{
+				position: relative;
+				z-index: 0;
 			}
-
 		}
 	}
-</script>
-
-<style lang="scss" scoped>
-
 </style>

+ 22 - 8
pages/login/index.vue

@@ -9,15 +9,15 @@
 				<u-form :model="form" ref="uForm">
 					<view class="jpLogin-input">
 						<u-icon custom-prefix="custom-icon" name="profile-fill" class="jpLogin-icon"></u-icon>
-						<u-form-item><u-input v-model="form.name" /></u-form-item>
+						<u-form-item><u-input v-model="form.name" placeholder="请填写18位身份证号" /></u-form-item>
 					</view>
 					<view class="jpLogin-input">
 						<u-icon custom-prefix="custom-icon" name="cellphone-fill" class="jpLogin-icon"></u-icon>
-						<u-form-item><u-input v-model="form.name" /></u-form-item>
+						<u-form-item><u-input v-model="form.name" placeholder="请填写手机号码" /></u-form-item>
 					</view>
 					<view class="jpLogin-input">
 						<u-icon custom-prefix="custom-icon" name="lock-password-fill" class="jpLogin-icon"></u-icon>
-						<u-form-item><u-input v-model="form.name" /></u-form-item>
+						<u-form-item><u-input v-model="form.name" placeholder="请输入验证码" /></u-form-item>
 					</view>
 				</u-form>
 				<view class="jpLogin-link">
@@ -29,7 +29,7 @@
 				</view>
 			</view>
 			<view style="margin-top: 60px;">
-				<u-button type="error" shape="circle">登录</u-button>
+				<u-button type="error" shape="circle" :custom-style="customStyle">登录</u-button>
 			</view>
 			<view class="jpLogin-radio">
 				<u-radio-group v-model="value">
@@ -48,8 +48,8 @@
 					name: '',
 				},
 				value:'0',
-				customStyle:{
-					color: 'red'
+				customStyle: {
+					background: '#FF5E5E'
 				}
 			}
 			methods: {
@@ -64,7 +64,7 @@
 	.jpLogin {
 		background: url(/static/img/loginBg.png) top center no-repeat;
 		background-size: 100%;
-		height: 100vh;
+		min-height: 100vh;
 		padding: 50px;
 	}
 
@@ -94,10 +94,23 @@
 		width: 100%;
 		padding: 0 20px;
 		margin-bottom: 20px;
+		.u-form-item{
+			flex: 1;
+		}
 		.jpLogin-icon{
 			font-size: 20px;
 			color:#FFC1C1;
-			margin-right: 10px;
+			margin-right: 20px;
+			position: relative;
+			&:after{
+				content: '';
+				width: 1px;
+				height: 16px;
+				background-color:#E6D6D6;
+				position: absolute;
+				right: -10px;
+				top: 15px;
+			}
 		}
 	}
 
@@ -125,6 +138,7 @@
 		text-align: center;
 		p{
 			font-size: 14px;
+			color: #a0a4b8;
 		}
 		span{
 			color:#ff5e5e;

+ 85 - 7
pages/news/index.vue

@@ -1,7 +1,30 @@
 <template>
 	<view>
-		<view class="userHead">
+		<view class="home-head">
+			<view class="homeTab">
+				<u-tabs :list="tabList" :current="current" @change="change" :show-bar="false" active-color="#333" inactive-color="#c4c0c0"></u-tabs>
+			</view>
+		</view>
+		<view class="homeWrap">
+			<u-swiper :list="wrapList" height="300" border-radius="24"></u-swiper>
+		</view>
+		<view class="newsList">
+			<view class="newsList-item">
+				<view class="newsList-text">
+					<h4 class="u-line-2">还真别说,我幻想过,假如我脑子里有个大容量硬盘,我把维我把维我把维我把维</h4>
+					<p>2021-12-01</p>
+				</view>
+				<u-image class="newsList-img" src="/static/img/user1.jpg" height="150" width="200" border-radius="10"></u-image>
+			</view>
+			<view class="newsList-item">
+				<view class="newsList-text">
+					<h4 class="u-line-2">还真别说,我幻想过,假如我脑子里有个大容量硬盘,我把维我把维我把维我把维</h4>
+					<p>2021-12-01</p>
+				</view>
+				<u-image class="newsList-img" src="/static/img/user1.jpg" height="150" width="200" border-radius="10"></u-image>
+			</view>
 			
+			<u-divider color="#B6BDC3" style="margin-top:20px;">已经到底了</u-divider>
 		</view>
  	</view>
 </template>
@@ -10,17 +33,72 @@
 	export default {
 		data() {
 			return {
-
+				tabList: [{
+					name: '通知公告'
+				}, {
+					name: '活动报道'
+				},{
+					name: '婚恋课堂'
+				},{
+					name: '问题解答'
+				}],
+				current: 0,
+				wrapList: [{
+						image: '/static/img/banner.png',
+					},
+					{
+						image: '/static/img/banner.png',
+					},
+					{
+						image: '/static/img/banner.png',
+					}
+				],
 			}
-
-			methods: {
-				
+		},
+		methods: {
+			change(index) {
+				this.current = index;
 			}
-
 		}
 	}
 </script>
 
 <style lang="scss" scoped>
-
+	.home-head{
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+		padding-right: 15px;  
+		.homeAdd{
+			color: #FF5E5E;
+			span{
+				margin-left: 3px;
+			}
+		}
+	}
+	.homeWrap{
+		padding:0 15px;
+	}
+	.newsList{
+		padding: 15px;
+		.newsList-item{
+			display: flex;
+			margin-bottom: 24px;
+			.newsList-text{
+				flex: 1;
+				min-width: 0;
+				margin-right: 10px;
+				display: flex;
+				flex-direction: column;
+				justify-content: space-between;
+				h4{
+					font-weight: normal;
+				}
+				p{
+					color: #999;
+					font-size: 12px;
+				}
+			}
+		}
+	}
 </style>

+ 9 - 477
pages/praise/index.vue

@@ -1,494 +1,26 @@
 <template>
 	<view>
-		<u-navbar title="充电">
-			<view class="slot-wrap">
-				<view class="navbar-left"></view>				
-<!-- 				<view class="navbar-right"><u-icon name="iconfontscan" custom-prefix="custom-icon" color="#1677ff" size="40"></u-icon></view>
- -->			</view>
-		</u-navbar>
-		<view class="charge">
-			<view class="chargeInfo">
-				<view class="chargeInfo-row">
-					<view class="u-flex"><p>桩号:</p><h4>{{detail.deviceNo}}</h4></view>
-					<view class="u-flex" @click="switchCharge">
-						<span>切换充电桩</span>
-						<u-icon name="arrow-right" color="#999" size="24"></u-icon>
-					</view>
-				</view>
-				<view class="chargeInfo-row">
-					<view class="u-flex"><p>桩名:</p><h4>{{detail.name}}</h4></view>
-					<view class="u-flex" @click="showTips()">
-						<span>费用说明</span>
-						<u-icon name="error-circle" color="#1677ff" size="32" ></u-icon>
-					</view>
-				</view>
+		<view class="userHead">
 			
-			</view>
-			<view class="chargeMain">
-				<template v-for="(item,i) in list">
-					
-					<view :key="i" class="chargeMain-item "
-					@click="selectItem(item)"
-					:class="{
-						'active':item.channelNo==submitForm.channelNo,
-						'occupy':item.status==1,
-						'fault':item.status==2,
-					}"
-					
-					><p>{{i+1}}</p>
-					<p >{{item.statusStr}}</p>
-					
-					</view>
-					
-				</template>
-				<h2 v-if="isReady&&list.length==0">无可用通道<br/>请联系客服人员</h2>
-				 
-			</view>
 		</view>
-		<view class="charge">
-			<view class="chargeTime">
-				
-				<view v-for="(item,i) in timelist" 
-					class="chargeTime-item " :key="i"
-					@click="submitForm.hour=item.id"
-					:class="{
-						'chargeTime-active':submitForm.hour==item.id,
-						
-						'chargeTime-first':i==0
-					}"
-					>
-					<template v-if="i==0">
-						<p>充满</p><p>自停</p>
-					</template>
-						<template v-else>
-							{{item.name}}
-						</template>
-				</view>
-					
-			</view>
-			<view class="chargeTime-text">
-				<p>充电时长</p>
-				<span>{{timelist[submitForm.hour].name}}</span>
-			</view>
-		</view>
-		<view style="padding-bottom: 100px;">
-			<view class="charge">
-				<view class="chargeRadio">
-					<view class="u-flex">
-						<u-icon name="rmb-circle-fill"  color="#ff9502" size="90"></u-icon>
-						<view class="chargeRadio-text">
-							<p>余额支付</p>
-							<p>现有余额¥{{user.accountBalance}} </p>
-						</view>
-					</view>
-					<u-button type="warning"  style="    height: 34px;"
-						@click='gotoUrl("pages/user/recharge")'
-					>我要充值</u-button>
-				</view>
-			</view>
-		</view>
-	
-		<view class="foot-btn">
-			<u-button type="primary" :custom-style="customStyle" 
-				@click="submit"
-			shape="square">开始充电</u-button>
-		</view>
-		
-		<u-modal v-model="showPriceList" title="费用说明" >
-			
-			<p v-for="(item,i) in detail.priceList" class="showPriceList" :key="i">{{item.minPower}}W-{{item.maxPower}}W <span>{{item.price}}元每小时</span></p>
-			
-			<p style="    padding: 15px;" v-if="detail.roundingMinute!=null&&detail.roundingMinute!=-1">超过{{detail.roundingMinute}}分钟,按1小时记,不足{{detail.roundingMinute}}分钟,不计费</p>
-			<p style="    padding: 15px;" v-if="detail.priceList.length==0">无费用说明或为免费充电模式</p>
-		</u-modal>
-		
-		<u-modal v-model="showmodel" @confirm="confirm" :showCancelButton="true" title="订单信息" >
-			<div class="showmodel" ><p  >桩号</p>{{detail.deviceNo}}</div>
-			<div class="showmodel" ><p  >充电通道</p>{{submitForm.channelNo}}</div>
-			<div class="showmodel" ><p  >支付方式</p>余额支付</div>
-			<div class="showmodel" ><p  >充电时间</p>{{timelist[submitForm.hour].name}}</div>
-			
-			<p class="showmodel" style="color: red;" v-if="submitForm.hour==0" >充满自停模式,设备充满后会自动停止计费,剩余费用会原路返还</p>
-			
-		</u-modal>
-		
-	</view>
+ 	</view>
 </template>
-	
+
 <script>
-	import * as API  from '@/apis/index.js'
-	
 	export default {
 		data() {
 			return {
-				id:"",
-				showPriceList:false,
-				showmodel:false,
-				//充电桩信息
-				detail:{
-					roundingMinute:-1,
-					priceList:[],
-				},
-				user:{},
-				//充电位子list
-				list:[
-					 
-				],
-				timelist:[
-					{
-						id:'0',
-						name:'充满自停'
-					},
-					{
-						id:'1',
-						name:'1小时'
-					},
-					{
-						id:'2',
-						name:'2小时'
-					},
-					{
-						id:'3',
-						name:'3小时'
-					},
-					{
-						id:'4',
-						name:'4小时'
-					},
-					{
-						id:'5',
-						name:'5小时'
-					},
-					{
-						id:'6',
-						name:'6小时'
-					},
-					{
-						id:'7',
-						name:'7小时'
-					},
-					{
-						id:'8',
-						name:'8小时'
-					},
-				],
-				//提交信息
-				submitForm:{
-					deviceNo:'',
-					channelNo:'',
-					hour:'0',
-					//paytype:'YE',
-				},
-				
-				isReady:false,
-				customStyle: {
-					background: '#1677ff'
-				}
-			}
-		},
-		onLoad(op) {
-			
-			if (op.id) {
-				this.id = op.id;
-				this.carhelp.set("qr-default-id",op.id);
-			}else{
-				//用于支付后返回系统  -- 点金计划
-				this.id =this.carhelp.get("qr-default-id");
+
 			}
-			
-			
-			this.init()
-			
-			
-		},
-		methods: {
-			switchCharge(){
-			
-				uni.redirectTo({
-					url:'/pages/charge/switchCharge?id='+this.detail.id
-				})
-			},
-			init(){
-				
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				var data = {
-					
-				};
-				if(this.id){
-					data.deviceId=this.id
-				}
-				API.chargingData(data).then((res) => {
-					
-					this.carhelp.set("qr-default-id",this.id);
-					this.detail = res.data.chargingDevice;
-					this.user = res.data.userAccount;
-					this.list=this.detail.chargeStatusArray
-					this.isReady=true;
-					uni.hideLoading()
-					
-				}).catch(error => {
-					this.isReady=true;
-					uni.showToast({
-						title: error
-					})
-				})
-			},
-			selectItem(row){
-				if(row.status==0){
-					this.submitForm.channelNo=row.channelNo
-				}else{
-					uni.showToast({
-						title:'当前设备不可选'
-					})
-				}
-			},
-			confirm(){
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				
-				this.submitForm.deviceNo=this.detail.deviceNo;
-				API.startCharging(this.submitForm).then((res) => {
-				
-					 this.gotoUrl("pages/index/index");
-					// uni.showModal({
-					//     title: '提示',
-					// 	showCancel:false,
-					//     content: '启动成功',
-					//     success: res=> {
-					//         if (res.confirm) {
-					//            //付钱  改为组件
-					//            this.gotoUrl("pages/index/index");
-					           
-					//         } else if (res.cancel) {
-					//             console.log('用户点击取消');
-					//         }
-					//     }
-					// });
-					// uni.showToast({
-					// 	title: '启动中..'
-					// })
-					// setTimeout(()=>{
-						
-					// },3000)
-					// uni.hideLoading()
-					
-				}).catch(error => {
-					if(error=='用户账户余额不足!'){
-						uni.showModal({
-						    title: '支付',
-						    content: '用户账户余额不足,是否充值?',
-						    success: res=> {
-						        if (res.confirm) {
-						           //付钱  改为组件
-						           this.gotoUrl("pages/user/recharge");
-						           
-						        } else if (res.cancel) {
-						            console.log('用户点击取消');
-						        }
-						    }
-						});
-					}else{
-						uni.showToast({
-							title: error
-						})
-					}
-					
-				})
-			},
-			submit(){
+
+			methods: {
 				
-				if(!this.submitForm.channelNo){
-					uni.showToast({
-						title:'请先选择充电通道'
-					})
-					return
-				}
-				var obj=this.list.find(item=>{
-					return item.channelNo==this.submitForm.channelNo
-				})
-				
-				if(!obj||obj.status!=0){
-					uni.showToast({
-						title:'当前设备不可选'
-					})
-					return
-				}
-				if(this.submitForm.hour==0&&this.user.accountBalance<5){
-					uni.showModal({
-					    title: '支付',
-					    content: '余额不足5元无法开启充满自停,是否充值?',
-					    success: res=> {
-					        if (res.confirm) {
-					           //付钱  改为组件
-					           this.gotoUrl("pages/user/recharge");
-					           
-					        } else if (res.cancel) {
-					            console.log('用户点击取消');
-					        }
-					    }
-					});
-				}else{
-					
-					this.showmodel=true;
-				}
-				 
-				
-			},
-			showTips(){
-				this.showPriceList=true
-			}
-		},onShow() {
-			if(this.isReady){
-				if (this.id) {
-					this.carhelp.set("qr-default-id",this.id);
-				}else{
-					//用于支付后返回系统  -- 点金计划
-					this.id =this.carhelp.get("qr-default-id");
-				}
-				this.init()
 			}
+
 		}
 	}
 </script>
-<style>
-	page{
-		background-color: #f7f7f7;
-	}
-</style>
+
 <style lang="scss" scoped>
-	
-	.showmodel{
-		  margin-left: 20px;
-		   margin-right: 20px;
-		  p{
-			     display: inline-block;
-		  	 width: 100px;
-		  }
-	}
-	.showPriceList{
-		  margin-left: 20px;
-		   margin-right: 20px;
-		  span{
-		  	 float: right;
-		  }
-	}
-	.slot-wrap {
-		display: flex;
-		align-items: center;
-		justify-content: space-between;
-		flex: 1;
-	}
-	.navbar-right {
-		display: flex;
-		margin-right: 20rpx;
-		align-items: center;
-	}
-	.charge{
-		padding: 15px;
-		background-color: #fff;
-		margin-bottom: 10px;
-	}
-	.chargeRadio{
-		display: flex;
-		justify-content: space-between;
-		align-items: center;
-		width: 100%;
-		.chargeRadio-text{
-			margin-left: 5px;
-		}
-	}
-	.chargeTime{
-		display: flex;
-		overflow: scroll;
-		padding-bottom: 15px;
-	
-		.chargeTime-item{
-			border: 1px solid #1677ff;
-			border-radius: 50%;
-			min-width: 56px;
-			height: 56px;
-			text-align: center;
-			line-height: 56px;
-			margin-right: 20px;
-		}
-		.chargeTime-first{
-			line-height: 20px !important;
-			
-			padding-top: 6px;
-			margin-right: 20px;
-		}
-		.chargeTime-active{
-			color:#fff;
-			background-color: #1677ff;
-		}
-	}
-	.chargeTime-text{
-		border-top: 1px solid #f7f7f7;
-		padding-top: 15px;
-		display: flex;
-		align-items: center;
-		span{
-			margin-left: 20px;
-			color:#1677ff;
-		}
-	}
-	.chargeInfo{
-		.chargeInfo-row{
-			display: flex;
-			align-items: center;
-			justify-content: space-between;
-			margin-bottom: 10px;
-			p{
-				color:#999;
-			}
-			h4{
-				font-weight: normal;
-			}
-			span{
-				color:#1677ff;
-				margin-right: 5px;
-			}
-		}
-	}
-	.chargeMain{
-		display: flex;
-		flex-wrap: wrap;
-		justify-content: space-between;
-		margin-top: 20px;
-		.chargeMain-item{
-			width: 18%;
-			text-align: center;
-			padding: 10px;
-			border: 1px solid #1677ff;
-			margin-bottom: 10px;
-			border-radius: 10px;
-			color:#1677ff;
-		}
-		.active{
-			background-color:#1677ff;
-			color:#fff;
-		}
-		.fault{
-			background-color:#e1e1e1;
-			color:#666;
-			border: 1px solid #ccc;
-		}
-		.occupy{
-			color:#FF4F3F;
-			border: 1px solid #FF4F3F;
-		}
-	}
-	.foot-btn{
-		padding: 10px;
-		position: fixed;
-		left: 0;
-		right: 0;
-		bottom: 0;
-		background-color: #fff;
-	}
+
 </style>