tianhui 3 vuotta sitten
vanhempi
commit
4599d9f915
1 muutettua tiedostoa jossa 11 lisäystä ja 6 poistoa
  1. 11 6
      pages/getin/getin.vue

+ 11 - 6
pages/getin/getin.vue

@@ -330,9 +330,11 @@
 							
 						// });
 						plus.nativeUI.toast(res.msg);
+						setTimeout(() =>{
 						uni.redirectTo({
 						    url: '/pages/getout/getout'
-						});
+						});	
+						},1000)
 						//#ifdef APP-PLUS
 						device.print(res.data.print);
 						speak(res.data.speak);
@@ -349,13 +351,16 @@
 				}else{
 					this.$u.api.entrance(param)//车位空闲调
 				.then(res=>{
-					this.$refs.uToast.show({
-						title: res.msg,
-						type: 'success'
-					});
+					// this.$refs.uToast.show({
+					// 	title: res.msg,
+					// 	type: 'success'
+					// });
+					plus.nativeUI.toast(res.msg);
+					setTimeout(() =>{
 					uni.redirectTo({
 					    url: '/pages/getout/getout'
-					});
+					});	
+					},1000)
 					//#ifdef APP-PLUS
 					device.print(res.data.print);
 					speak(res.data.speak);