...
|
...
|
@@ -36,6 +36,17 @@ export const prePay = function (productId, orderCode, fromWhere, isStore) { |
|
|
duration: 2000,
|
|
|
icon: 'none'
|
|
|
});
|
|
|
|
|
|
let currentRoute;
|
|
|
let currentPages = getCurrentPages();
|
|
|
if (currentPages && currentPages.length) {
|
|
|
currentRoute = currentPages[currentPages.length - 1].route;
|
|
|
}
|
|
|
let noRedirectRoutes = ['pages/orderDetail/index', 'pages/orderList/index'];
|
|
|
if (noRedirectRoutes.indexOf(currentRoute) > -1) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
setTimeout(() => {
|
|
|
wx.redirectTo({
|
|
|
url: '/pages/orderDetail/index?orderCode=' + orderCode
|
...
|
...
|
|