Merge branch 'release/5.5' of git.yoho.cn:fe/yohobuywap-node into release/5.5
Showing
8 changed files
with
33 additions
and
9 deletions
1 | <div class="address-modify"> | 1 | <div class="address-modify"> |
2 | - <div class="tip">由于需要仓库调拨,目前暂不支持省地址修改,请您谅解!</div> | 2 | + {{#unless changeProvince}} |
3 | + <div class="tip">由于需要仓库调拨,目前暂不支持省地址修改,请您谅解!</div> | ||
4 | + {{/unless}} | ||
3 | <form class="form edit-address" id="areaForm"> | 5 | <form class="form edit-address" id="areaForm"> |
4 | <div class="form-group"> | 6 | <div class="form-group"> |
5 | <label for="username">收货人:</label> | 7 | <label for="username">收货人:</label> |
@@ -20,8 +20,6 @@ const domains = { | @@ -20,8 +20,6 @@ const domains = { | ||
20 | liveApi: 'http://testapi.live.yohops.com:9999/', | 20 | liveApi: 'http://testapi.live.yohops.com:9999/', |
21 | singleApi: 'http://api-test3.yohops.com:9999/', | 21 | singleApi: 'http://api-test3.yohops.com:9999/', |
22 | 22 | ||
23 | - // api: 'http://dev-api.yohops.com:9999/', | ||
24 | - // service: 'http://dev-service.yohops.com:9999/', | ||
25 | // liveApi: 'http://api.live.yoho.cn/', | 23 | // liveApi: 'http://api.live.yoho.cn/', |
26 | // singleApi: 'http://single.yoho.cn/', | 24 | // singleApi: 'http://single.yoho.cn/', |
27 | 25 |
@@ -26,6 +26,11 @@ | @@ -26,6 +26,11 @@ | ||
26 | {{#if ordinaryCart}} | 26 | {{#if ordinaryCart}} |
27 | <div class="cart-content normal-good active"> | 27 | <div class="cart-content normal-good active"> |
28 | {{#commonCart}} | 28 | {{#commonCart}} |
29 | + {{#if shipCost.shippingTip}} | ||
30 | + <div class="tips"> | ||
31 | + {{shipCost.shippingTip}} | ||
32 | + </div> | ||
33 | + {{/if}} | ||
29 | {{> cart-content}} | 34 | {{> cart-content}} |
30 | {{/commonCart}} | 35 | {{/commonCart}} |
31 | </div> | 36 | </div> |
@@ -18,9 +18,9 @@ require('activity/promotion/promotion.page.css'); | @@ -18,9 +18,9 @@ require('activity/promotion/promotion.page.css'); | ||
18 | 18 | ||
19 | var share = require('../common/share'); | 19 | var share = require('../common/share'); |
20 | share({ | 20 | share({ |
21 | - title: 'YOHO!BUY有货邀请同学认证赠好礼!立享【学生专属】4大特权!', | 21 | + title: '【有货】学生认证看过来!专享特价,任性分期,立即走起→', |
22 | link: location.href, | 22 | link: location.href, |
23 | - desc: '每邀请1名同学完成认证立赠300有货币!上不封顶!', | 23 | + desc: '邀请同学认证更有惊喜好礼相送~', |
24 | imgUrl: 'http://img11.static.yhbimg.com/taobaocms/2017/01/17/16/0108d724a0ef1f001d3ee6010aa79d960e.png' | 24 | imgUrl: 'http://img11.static.yhbimg.com/taobaocms/2017/01/17/16/0108d724a0ef1f001d3ee6010aa79d960e.png' |
25 | }); | 25 | }); |
26 | 26 | ||
@@ -303,9 +303,9 @@ $( | @@ -303,9 +303,9 @@ $( | ||
303 | var shareUrl = location.href.replace('userUid=', 'oldUid='); | 303 | var shareUrl = location.href.replace('userUid=', 'oldUid='); |
304 | 304 | ||
305 | share({ | 305 | share({ |
306 | - title: 'YOHO!BUY有货邀请同学认证赠好礼!立享【学生专属】4大特权!', | 306 | + title: '【有货】学生认证看过来!专享特价,任性分期,立即走起→', |
307 | link: shareUrl, | 307 | link: shareUrl, |
308 | - desc: '每邀请1名同学完成认证立赠300有货币!上不封顶!', | 308 | + desc: '邀请同学认证更有惊喜好礼相送~', |
309 | imgUrl: 'http://img11.static.yhbimg.com/taobaocms/2017/01/17/16/0108d724a0ef1f001d3ee6010aa79d960e.png' | 309 | imgUrl: 'http://img11.static.yhbimg.com/taobaocms/2017/01/17/16/0108d724a0ef1f001d3ee6010aa79d960e.png' |
310 | }); | 310 | }); |
311 | } | 311 | } |
@@ -101,8 +101,12 @@ function setPassword() { | @@ -101,8 +101,12 @@ function setPassword() { | ||
101 | showErrTip(data.message); | 101 | showErrTip(data.message); |
102 | } | 102 | } |
103 | }, | 103 | }, |
104 | - error: function() { | 104 | + error: function(data) { |
105 | $btnSure.removeClass('disable'); | 105 | $btnSure.removeClass('disable'); |
106 | + | ||
107 | + if (data && data.responseJSON && data.responseJSON.message) { | ||
108 | + showErrTip(data.message); | ||
109 | + } | ||
106 | } | 110 | } |
107 | }); | 111 | }); |
108 | } | 112 | } |
@@ -10,6 +10,17 @@ | @@ -10,6 +10,17 @@ | ||
10 | display: block; | 10 | display: block; |
11 | } | 11 | } |
12 | 12 | ||
13 | + .tips { | ||
14 | + margin-top: -20px; | ||
15 | + height: 54px; | ||
16 | + line-height: 54px; | ||
17 | + font-size: 25px; | ||
18 | + background: #f0f0f0; | ||
19 | + color: #b7b7b7; | ||
20 | + padding-left: 30px; | ||
21 | + padding-right: 30px; | ||
22 | + } | ||
23 | + | ||
13 | .presell-info { | 24 | .presell-info { |
14 | margin-top: -20px; | 25 | margin-top: -20px; |
15 | height: 105px; | 26 | height: 105px; |
@@ -312,6 +312,10 @@ const procCartData = (data, isAdvanceCart) => { | @@ -312,6 +312,10 @@ const procCartData = (data, isAdvanceCart) => { | ||
312 | return {id: promotion.promotion_id, name: promotion.promotion_title}; | 312 | return {id: promotion.promotion_id, name: promotion.promotion_title}; |
313 | }); | 313 | }); |
314 | } | 314 | } |
315 | + result.shipCost = { | ||
316 | + isFree: _.get(data, 'shipping_cost_prompt.is_shipping_cost_free', 'N'), | ||
317 | + shippingTip: _.get(data, 'shipping_cost_prompt.shipping_cost_tips', '').replace(/¥/g, '¥') | ||
318 | + }; | ||
315 | 319 | ||
316 | // 计算正常商品且有库存的总数 | 320 | // 计算正常商品且有库存的总数 |
317 | let goodCount = _.sum(result.goods | 321 | let goodCount = _.sum(result.goods |
-
Please register or login to post a comment