zhengkaixin hace 3 años
padre
commit
b667a9c167
Se han modificado 1 ficheros con 8 adiciones y 4 borrados
  1. 8 4
      pages/searchPile/apointment/apointmentRecharge.vue

+ 8 - 4
pages/searchPile/apointment/apointmentRecharge.vue

@@ -23,7 +23,7 @@
 		<view class="reserved-time box">
 			<p>充电桩预留时长</p>
 		
-			<picker-view class="picker-view"  :value="[0]"  @change="bindChange2" >
+			<picker-view class="picker-view"  :value="[value2]"  @change="bindChange2" >
 				<picker-view-column  >
 					<view class="item"   v-for="(item,i) in  timeList" :key="i">
 						<view  >{{item}}分钟</view>
@@ -40,7 +40,7 @@
 		<view class="reserved-time box">
 			<p>预计充电时长</p>
 			
-		<picker-view class="picker-view"  :value="[0]"  @change="bindChange" >
+		<picker-view class="picker-view"  :value="[value1]"  @change="bindChange" >
 			<picker-view-column  >
 				<view class="item"   v-for="(item,i) in  numList" :key="i">
 					<view  >{{getPercent(item)}}</view>
@@ -102,7 +102,7 @@
 		data() {
 			return {
 				
-			
+				
 				
 				id:0,
 				lockStatus:false,
@@ -113,8 +113,10 @@
 				apointment:"",
 				selectTime:15,
 				selectNum:60,
+				value2:0,
+				value1:1,
 				show:false,
-				checked:false
+				checked:true
 			}
 		},
 		onLoad(op) {
@@ -127,6 +129,7 @@
 				var index=e.detail.value[0];
 				var obj=this.numList[index];
 				if(obj){
+					this.value1=index
 					this.selectNum=obj;
 				}
 			
@@ -137,6 +140,7 @@
 				var index=e.detail.value[0];
 				var obj=this.timeList[index];
 				if(obj){
+					this.value2=index
 					this.selectTime=obj;
 				}
 			},