Commit a24be3487d96888da3659b8d6db5a6b7bdc8a4aa
1 parent
158f9fce
支付失败之后要跳转回去
Showing
1 changed file
with
11 additions
and
0 deletions
packageA/pages/serviceCard_pd/cart/cart.js
... | ... | @@ -403,6 +403,17 @@ Page({ |
403 | 403 | icon: 'none', |
404 | 404 | duration: 2000 |
405 | 405 | }); |
406 | + | |
407 | + //-- 支付失败,要返回 -- | |
408 | + setTimeout(function () { | |
409 | + var cps = getCurrentPages(); | |
410 | + if (cps.length > 1) { | |
411 | + wx.navigateBack({ delta: 1 }) | |
412 | + } else { | |
413 | + getApp().goto("/pages/index/index/index"); | |
414 | + } | |
415 | + }, 1000) | |
416 | + | |
406 | 417 | }) |
407 | 418 | |
408 | 419 | } | ... | ... |