aleyds 3 anni fa
parent
commit
8310a233d2

+ 2 - 3
pages/getin/getin.vue

@@ -319,9 +319,8 @@
 				this.confirmTime = e;
 			},
 			customBack(){
-				this.$u.route({
-					// type:'switchTab',
-					url: 'pages/parking/parking'
+				uni.navigateBack({
+				    delta: 1
 				});
 			},
 			openPage(path) {

+ 5 - 7
pages/getout/getout.vue

@@ -195,15 +195,13 @@
 				}
 			},
 			jumpToMain(){
-				this.$u.route({
-					type: 'redirectTo',
-					url: '/pages/index/index'
-				})
+				uni.reLaunch({
+				    url: '/pages/index/index'
+				});
 			},
 			customBack(){
-				this.$u.route({
-					type: 'redirectTo',
-					url: 'pages/index/index'
+				uni.reLaunch({
+				    url: '/pages/index/index'
 				});
 			},
 			handleGetRoadspace(roadNo,page){

+ 3 - 7
pages/owelist/owelist.vue

@@ -47,9 +47,8 @@
 		},
 		methods:{
 			customBack(){
-				this.$u.route({
-					// type:'switchTab',
-					url: 'pages/index/index'
+				uni.reLaunch({
+				    url: '/pages/index/index'
 				});
 			},
 			handleEntranceOutDetail(){
@@ -57,10 +56,7 @@
 				this.$u.api.entranceOutDetail({spaceId:this.orderID})
 				.then(res=>{
 					uni.hideLoading();
-					// this.$refs.uToast.show({
-					// 	title: res.msg,
-					// 	type: 'success',
-					// });
+
 					this.leaveDetail = res.data;
 					this.owelist = res.data.oweList;
 					if(this.owelist?.length<=0||!this.owelist){this.listEmpty = true};

+ 2 - 3
pages/parking/parking.vue

@@ -147,9 +147,8 @@
 				}
 			},
 			customBack(){
-				this.$u.route({
-					// type:'switchTab',
-					url: 'pages/index/index'
+				uni.reLaunch({
+				    url: '/pages/index/index'
 				});
 			},
 			openPage(path) {

+ 2 - 3
pages/performance/performance.vue

@@ -84,9 +84,8 @@
 		},
 		methods:{
 			customBack(){
-				this.$u.route({
-					// type:'switchTab',
-					url: 'pages/index/index'
+				uni.reLaunch({
+				    url: '/pages/index/index'
 				});
 			},
 			calendarChange(e){