Jelajahi Sumber

支付完成跳转

aleyds 3 tahun lalu
induk
melakukan
47ab35c728
2 mengubah file dengan 20 tambahan dan 10 penghapusan
  1. 2 2
      common/config.js
  2. 18 8
      pages/getout/getoutpage/getoutpage.vue

+ 2 - 2
common/config.js

@@ -1,5 +1,5 @@
-const host = 'https://wx.hw.hongweisoft.com/parking';//本地
-// const host = 'https://parking.pdzhtc.com';//正式
+// const host = 'https://wx.hw.hongweisoft.com/parking';//本地
+const host = 'https://parking.pdzhtc.com';//正式
 // const host = 'http://172.16.90.64:7000';
 const config = {
 	wxAppid:'wxbe90cc7c5233dd84',// wxAppid 

+ 18 - 8
pages/getout/getoutpage/getoutpage.vue

@@ -419,15 +419,25 @@
 					if (res.data.payStatus==1) {
 						uni.hideLoading();
 					  clearInterval(this.timer)
-					  this.$refs.uToast.show({
-					  	title:'支付成功',
-					  	type: 'success',
-					  	url:'pages/getout/getout',
-						// params: {
-						// 	vehicleNo:this.orderVehicleNo,
-						// },
-						duration:10000
+
+					  uni.showToast({
+					      title: '支付成功',
+					      duration: 3000,
+						  success() {
+						  	uni.redirectTo({
+						  	    url: '/pages/getout/getout'
+						  	});
+						  }
 					  });
+					 //  this.$refs.uToast.show({
+					 //  	title:'支付成功',
+					 //  	type: 'success',
+					 //  	url:'pages/getout/getout',
+						// // params: {
+						// // 	vehicleNo:this.orderVehicleNo,
+						// // },
+						// duration:3000
+					 //  });
 					};
 					console.log('handlePayQuery',res)
 				}).catch(err=>{