Merge branch 'feature/cart' of http://git.yoho.cn/fe/yohobuywap-node into feature/cart
Showing
4 changed files
with
7 additions
and
2 deletions
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | * @Author: Targaryen | 3 | * @Author: Targaryen |
4 | * @Date: 2017-01-04 15:17:51 | 4 | * @Date: 2017-01-04 15:17:51 |
5 | * @Last Modified by: Targaryen | 5 | * @Last Modified by: Targaryen |
6 | - * @Last Modified time: 2017-01-10 16:43:54 | 6 | + * @Last Modified time: 2017-01-17 16:02:22 |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 'use strict'; | 9 | 'use strict'; |
@@ -53,6 +53,10 @@ const _getOthersBuy2 = (param) => { | @@ -53,6 +53,10 @@ const _getOthersBuy2 = (param) => { | ||
53 | 53 | ||
54 | // 订单信息 | 54 | // 订单信息 |
55 | const _getOtherDetail = (param) => { | 55 | const _getOtherDetail = (param) => { |
56 | + if (!param.uid || !param.orderCode) { | ||
57 | + return Promise.resolve({}); | ||
58 | + } | ||
59 | + | ||
56 | return api.get('', { | 60 | return api.get('', { |
57 | method: 'app.SpaceOrders.detail', | 61 | method: 'app.SpaceOrders.detail', |
58 | uid: param.uid, | 62 | uid: param.uid, |
@@ -307,7 +307,7 @@ function submitOrder() { | @@ -307,7 +307,7 @@ function submitOrder() { | ||
307 | // 货到付款的进入订单页面 | 307 | // 货到付款的进入订单页面 |
308 | url = '/home/orderDetail?order_code=' + res.data.order_code; | 308 | url = '/home/orderDetail?order_code=' + res.data.order_code; |
309 | } else { | 309 | } else { |
310 | - url = '/cart/index/new/pay?order_code=' + res.data.order_code; | 310 | + url = '/home/orders/paynew?order_code=' + res.data.order_code; |
311 | } | 311 | } |
312 | 312 | ||
313 | /* tar add 161116 */ | 313 | /* tar add 161116 */ |
-
Please register or login to post a comment