Parcourir la source

提货支付失败跳转订单列表

hwb0 il y a 3 ans
Parent
commit
b10d737f56
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 10 0
      pages/order/settlement.vue

+ 10 - 0
pages/order/settlement.vue

@@ -193,10 +193,20 @@
 								} else {
 									payIng = false
 									uni.$u.toast('支付失败!');
+									setTimeout(() => {
+										uni.redirectTo({
+											url: `/pages/order/index`
+										})
+									}, 500)
 								}
 							}).catch(() => {
 								payIng = false
 								uni.$u.toast('支付失败!');
+								setTimeout(() => {
+									uni.redirectTo({
+										url: `/pages/order/index`
+									})
+								}, 500)
 							})
 						} else {
 							uni.showToast({