aleyds 3 vuotta sitten
vanhempi
commit
5f49fc94f4
2 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 6 1
      pages/getin/getin.vue
  2. 1 0
      pages/parking/parking.vue

+ 6 - 1
pages/getin/getin.vue

@@ -87,7 +87,7 @@
 		<view class="bottom-btn-wrap">
 			<view class="bottom-btn-box u-flex">
 				<view class="bottom-btn bg-blue" @click="submit">入场</view>
-				<view class="bottom-btn bg-gray" @click="openPage('pages/getout/getout')">取消</view>
+				<view class="bottom-btn bg-gray" @click="onCancel">取消</view>
 			</view>
 		</view>
 		
@@ -323,6 +323,11 @@
 				    delta: 1
 				});
 			},
+			onCancel(){
+				uni.navigateBack({
+				    delta: 1
+				});
+			},
 			openPage(path) {
 				console.log('path',path);
 				this.$u.route({ 

+ 1 - 0
pages/parking/parking.vue

@@ -206,6 +206,7 @@
 								that.carImg =  res.data.url;
 								that.vehicleImage =  res.data.url;
 								this.$u.route({
+									type: 'redirectTo',
 									url: 'pages/getin/getin',
 									params: {
 										spaceId: this.spaceId,