Преглед изворни кода

订单支付失败跳转订单页

xiaoxin пре 1 година
родитељ
комит
10401814a2
2 измењених фајлова са 14 додато и 2 уклоњено
  1. 7 1
      pages/index/shop/confirmOrder.vue
  2. 7 1
      pages/index/shop/payOrder.vue

+ 7 - 1
pages/index/shop/confirmOrder.vue

@@ -1243,8 +1243,14 @@ export default {
 								uni.setStorageSync('isClear', true)
 								uni.showToast({
 									title: '支付失败',
-									icon: 'none'
+									icon: 'none',
+									mask: true
 								})
+								setTimeout(() => {
+									uni.reLaunch({
+										url: '/pages/order/index'
+									})
+								}, 1500)
 							}
 						})
 					} else {

+ 7 - 1
pages/index/shop/payOrder.vue

@@ -1106,8 +1106,14 @@ export default {
 								that.isThrottle = true
 								uni.showToast({
 									title: '支付失败',
-									icon: 'none'
+									icon: 'none',
+									mask: true
 								})
+								setTimeout(() => {
+									uni.reLaunch({
+										url: '/pages/order/index'
+									})
+								}, 1500)
 							}
 						})
 					} else {