Merge branch 'feature/cart' of http://git.yoho.cn/fe/yohobuywap-node into feature/cart
Showing
3 changed files
with
15 additions
and
30 deletions
@@ -288,10 +288,17 @@ const orderDetailData = (uid, orderCode) => { | @@ -288,10 +288,17 @@ const orderDetailData = (uid, orderCode) => { | ||
288 | 288 | ||
289 | // 为支付的拆单配送信息 | 289 | // 为支付的拆单配送信息 |
290 | if (orderDetail.isMultiPackage && orderDetail.isMultiPackage === 'Y') { | 290 | if (orderDetail.isMultiPackage && orderDetail.isMultiPackage === 'Y') { |
291 | - orderDetail = _.assign(orderDetail, { | ||
292 | - isJit: true | 291 | + let jitInfo = { |
292 | + deliveryId: orderDetail.deliveryId, | ||
293 | + paymentType: orderDetail.paymentType, | ||
294 | + couponCode: orderDetail.couponCode, | ||
295 | + yohoCoin: orderDetail.yohoCoin, | ||
296 | + cartType: 'ordinary' | ||
297 | + }; | ||
293 | 298 | ||
294 | - // jitDetailUrl: '/cart/index/jitDetailUrl' | 299 | + orderDetail = _.assign(orderDetail, { |
300 | + isJit: true, | ||
301 | + jitDetailUrl: helpers.urlFormat('/cart/index/new/jitDetail', jitInfo) | ||
295 | }); | 302 | }); |
296 | } | 303 | } |
297 | 304 |
@@ -9,27 +9,6 @@ const crypto = global.yoho.crypto; | @@ -9,27 +9,6 @@ const crypto = global.yoho.crypto; | ||
9 | * 地址数据 | 9 | * 地址数据 |
10 | * @param uid | 10 | * @param uid |
11 | * @return | 11 | * @return |
12 | - * { | ||
13 | - * "code":200, | ||
14 | - * "data":[ | ||
15 | - * { | ||
16 | - * "area":"江苏省 南京市 浦口区", | ||
17 | - * "address":"沿江街道******, | ||
18 | - * "consignee":"孟令阶", | ||
19 | - * "is_support":"Y", | ||
20 | - * "area_code":"320111", | ||
21 | - * "mobile":"180****2255", | ||
22 | - * "address_id":"6117354", // 会被加密 | ||
23 | - * "is_default":"N", | ||
24 | - * "is_delivery":"Y", | ||
25 | - * "zip_code":"", | ||
26 | - * "uid":"14616040", | ||
27 | - * "phone":"", | ||
28 | - * "email":""} | ||
29 | - * ], | ||
30 | - * "md5":"c35872955397cd0aabff4583cd41ac4b", | ||
31 | - * "message":"Address List" | ||
32 | - * } | ||
33 | */ | 12 | */ |
34 | exports.addressData = (uid) => { | 13 | exports.addressData = (uid) => { |
35 | let params = { | 14 | let params = { |
@@ -38,7 +17,7 @@ exports.addressData = (uid) => { | @@ -38,7 +17,7 @@ exports.addressData = (uid) => { | ||
38 | }; | 17 | }; |
39 | 18 | ||
40 | let options = { | 19 | let options = { |
41 | - cache: true | 20 | + cache: false |
42 | }; | 21 | }; |
43 | 22 | ||
44 | return api.get('', params, options) | 23 | return api.get('', params, options) |
@@ -698,12 +698,11 @@ | @@ -698,12 +698,11 @@ | ||
698 | height: 510px; | 698 | height: 510px; |
699 | background-color: #fff; | 699 | background-color: #fff; |
700 | z-index: 2; | 700 | z-index: 2; |
701 | - margin: auto; | ||
702 | - left: 0; | ||
703 | - right: 0; | ||
704 | - top: 0; | ||
705 | - bottom: 0; | ||
706 | border-radius: 10px; | 701 | border-radius: 10px; |
702 | + left: 50%; | ||
703 | + margin-left: -270px; | ||
704 | + top: 50%; | ||
705 | + margin-top: -255px; | ||
707 | 706 | ||
708 | .yoho-coin-title { | 707 | .yoho-coin-title { |
709 | font-size: 34px; | 708 | font-size: 34px; |
-
Please register or login to post a comment