Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-blk into release/1.0
Showing
8 changed files
with
42 additions
and
8 deletions
1 | {{# classicBrands}} | 1 | {{# classicBrands}} |
2 | <div class="brand-img-box {{#if right}}right{{/if}} {{#if bottomSpace}}mb10{{/if}}"> | 2 | <div class="brand-img-box {{#if right}}right{{/if}} {{#if bottomSpace}}mb10{{/if}}"> |
3 | - <a href="{{url}}"> | 3 | + <a href="{{url}}" target="_blank"> |
4 | {{# big}} | 4 | {{# big}} |
5 | <img class="big-img lazy-img" data-original="{{image src 565 340}}" alt="big-img"> | 5 | <img class="big-img lazy-img" data-original="{{image src 565 340}}" alt="big-img"> |
6 | {{/ big}} | 6 | {{/ big}} |
@@ -43,6 +43,7 @@ const btnMap = { | @@ -43,6 +43,7 @@ const btnMap = { | ||
43 | classStr: 'btn white cancel-btn mr' | 43 | classStr: 'btn white cancel-btn mr' |
44 | }, | 44 | }, |
45 | { | 45 | { |
46 | + isEditBtn: true, | ||
46 | name: '修改订单', | 47 | name: '修改订单', |
47 | classStr: 'btn white edit-btn' | 48 | classStr: 'btn white edit-btn' |
48 | } | 49 | } |
@@ -518,6 +519,12 @@ const getOrderDetail = (uid, code) => { | @@ -518,6 +519,12 @@ const getOrderDetail = (uid, code) => { | ||
518 | } | 519 | } |
519 | }); | 520 | }); |
520 | 521 | ||
522 | + if (detail.canUpdateDeliveryAddress === 'N') { | ||
523 | + _.remove(detail.btns, btn => { | ||
524 | + return btn.isEditBtn; | ||
525 | + }); | ||
526 | + } | ||
527 | + | ||
521 | if (parseInt(detail.paymentType, 10) === 2 && | 528 | if (parseInt(detail.paymentType, 10) === 2 && |
522 | (statusMap[st].valueStr === '备货中' || | 529 | (statusMap[st].valueStr === '备货中' || |
523 | detail.statusStr === '备货中')) { | 530 | detail.statusStr === '备货中')) { |
@@ -85,7 +85,7 @@ const callback = (req, res) => { | @@ -85,7 +85,7 @@ const callback = (req, res) => { | ||
85 | cost: data.pay, | 85 | cost: data.pay, |
86 | orderNum: data.orderCode, | 86 | orderNum: data.orderCode, |
87 | onlineCost: data.pay, | 87 | onlineCost: data.pay, |
88 | - orderHref: helpers.urlFormat('/me/order/detail', {code: data.orderCode}), | 88 | + orderHref: helpers.urlFormat('/me/order/detail', {orderCode: data.orderCode}), |
89 | walkHref: helpers.urlFormat('/') | 89 | walkHref: helpers.urlFormat('/') |
90 | } | 90 | } |
91 | }); | 91 | }); |
@@ -17,6 +17,19 @@ function showOrNot() { | @@ -17,6 +17,19 @@ function showOrNot() { | ||
17 | } | 17 | } |
18 | } | 18 | } |
19 | 19 | ||
20 | +function reposReturnTop() { | ||
21 | + var $top = $returnTop.parent(); | ||
22 | + | ||
23 | + if (!$top.hasClass('service-top')) { | ||
24 | + $top = $returnTop; | ||
25 | + } | ||
26 | + if ($(window).width() < 1380) { | ||
27 | + $top.addClass('for-min'); | ||
28 | + } else { | ||
29 | + $top.removeClass('for-min'); | ||
30 | + } | ||
31 | +} | ||
32 | + | ||
20 | $returnTop.click(function() { | 33 | $returnTop.click(function() { |
21 | $('html,body').animate({ | 34 | $('html,body').animate({ |
22 | scrollTop: 0 | 35 | scrollTop: 0 |
@@ -36,4 +49,10 @@ if ($returnTop.hasClass('hide')) { | @@ -36,4 +49,10 @@ if ($returnTop.hasClass('hide')) { | ||
36 | $('img').load(showOrNot); | 49 | $('img').load(showOrNot); |
37 | } | 50 | } |
38 | 51 | ||
52 | +reposReturnTop(); | ||
53 | + | ||
54 | +if ($returnTop.length) { | ||
55 | + $(window).resize(reposReturnTop); | ||
56 | +} | ||
57 | + | ||
39 | exports.returnTopShowOrNot = showOrNot; | 58 | exports.returnTopShowOrNot = showOrNot; |
@@ -11,8 +11,15 @@ | @@ -11,8 +11,15 @@ | ||
11 | position: relative; | 11 | position: relative; |
12 | 12 | ||
13 | h4 { | 13 | h4 { |
14 | + height: 18px; | ||
15 | + line-height: 18px; | ||
16 | + padding-right: 10px; | ||
17 | + display: -webkit-box; | ||
14 | font-size: 16px; | 18 | font-size: 16px; |
15 | font-weight: bold; | 19 | font-weight: bold; |
20 | + overflow: hidden; | ||
21 | + -webkit-line-clamp: 1; | ||
22 | + -webkit-box-orient: vertical; | ||
16 | } | 23 | } |
17 | 24 | ||
18 | p { | 25 | p { |
-
Please register or login to post a comment