Browse Source

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
bug修改

1004749546@qq.com 4 years ago
parent
commit
fb3799f489
1 changed files with 8 additions and 6 deletions
  1. 8 6
      pages/getOrder/getOrder.vue

+ 8 - 6
pages/getOrder/getOrder.vue

@@ -407,14 +407,16 @@
 				let content = '支付失败,请重试'
 				if(err.errMsg.indexOf("cancel")>=0){
 					content = '支付取消'
+					this.toashMsg(content)
+					// 取消支付 跳到订单列表
+					setTimeout(()=>{
+						uni.redirectTo({
+							url: `/pages/order/order`
+						})
+					},500)
 				}
 				this.toashMsg(content)
-				// 付款失败或取消 跳到订单列表
-				setTimeout(()=>{
-					uni.redirectTo({
-						url: `/pages/order/order`
-					})
-				},500)
+				
 			}
 		}
 	}