Authored by 郝肖肖

pay to paynew

... ... @@ -76,7 +76,8 @@ const _getFilterUrl = url => {
if (strrpos(url, 'm.yohobuy.com') && !strrpos(url, 'sale.m.yohobuy.com') && !strrpos(url, 'cuxiao.m.yohobuy.com') &&
!strrpos(url, 'activity.m.yohobuy.com') && !strrpos(url, 'huodong.m.yohobuy.com') &&
strrpos(url, 'cdn.yoho.cn/myohobuy') && !strrpos(url, '/home/orders/pay')) {
strrpos(url, 'cdn.yoho.cn/myohobuy') && !strrpos(url, '/home/orders/pay') &&
!strrpos(url, '/home/orders/paynew')) {
url = url.replace('http://', '//');
}
... ...
... ... @@ -233,7 +233,7 @@ const _getOrderStatus = (order, showLogistics) => {
/* 待付款 */
Object.assign(result, {
unpaid: true,
payUrl: helpers.urlFormat('/home/orders/pay', {order_code: order.order_code})
payUrl: helpers.urlFormat('/home/orders/paynew', {order_code: order.order_code})
});
break;
case 1:
... ...
... ... @@ -538,7 +538,7 @@ function ticketsConfirm() {
//下单成功调整支付页面
if (ticket.code === 200) {
window.location.href = '/home/orders/pay?order_code=' + ticket.data.order_code
window.location.href = '/home/orders/paynew?order_code=' + ticket.data.order_code
} else {
tip.show(ticket.message);
}
... ...
... ... @@ -299,7 +299,7 @@ function submitOrder() {
if (res.data.payment_status || (payType === 2)) {
url = '/home/orderDetail?order_code=' + res.data.order_code;
} else {
url = '/home/orders/pay?order_code=' + res.data.order_code;
url = '/home/orders/paynew?order_code=' + res.data.order_code;
}
cookie.set('order-info', '', actCkOpthn);
window.location.href = url;
... ...