Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
7 changed files
with
19 additions
and
18 deletions
@@ -49,6 +49,8 @@ if ($('.cart-nav').length > 0) { | @@ -49,6 +49,8 @@ if ($('.cart-nav').length > 0) { | ||
49 | //切换普通商品和预售商品购物车显示 | 49 | //切换普通商品和预售商品购物车显示 |
50 | $cartContent.toggleClass('hide'); | 50 | $cartContent.toggleClass('hide'); |
51 | 51 | ||
52 | + hasChecked = $('.cart-content:not(.hide) .icon-cb-checked').length > 0 ? true : false; | ||
53 | + | ||
52 | //trigger lazyload | 54 | //trigger lazyload |
53 | $(window).trigger('scroll'); | 55 | $(window).trigger('scroll'); |
54 | }); | 56 | }); |
@@ -5,15 +5,6 @@ | @@ -5,15 +5,6 @@ | ||
5 | margin-left: 34rem / $pxConvertRem; | 5 | margin-left: 34rem / $pxConvertRem; |
6 | height: 160rem / $pxConvertRem; | 6 | height: 160rem / $pxConvertRem; |
7 | border-bottom: 1px solid #e0e0e0; | 7 | border-bottom: 1px solid #e0e0e0; |
8 | - | ||
9 | - &:last-child { | ||
10 | - border-bottom: none; | ||
11 | - } | ||
12 | - } | ||
13 | - | ||
14 | - | ||
15 | - .advance-block .gift-advance-good:last-child { | ||
16 | - border-bottom: none; | ||
17 | } | 8 | } |
18 | 9 | ||
19 | .advance-block:last-child .gift-advance-good:last-child { | 10 | .advance-block:last-child .gift-advance-good:last-child { |
@@ -111,6 +111,11 @@ | @@ -111,6 +111,11 @@ | ||
111 | .price { | 111 | .price { |
112 | font-size: 0.6rem; | 112 | font-size: 0.6rem; |
113 | color: $cartRed; | 113 | color: $cartRed; |
114 | + display: inline; | ||
115 | + .sale-price{ | ||
116 | + color: #b0b0b0; | ||
117 | + text-decoration: line-through; | ||
118 | + } | ||
114 | } | 119 | } |
115 | 120 | ||
116 | .count { | 121 | .count { |
@@ -140,10 +140,11 @@ | @@ -140,10 +140,11 @@ | ||
140 | 140 | ||
141 | > li { | 141 | > li { |
142 | box-sizing: border-box; | 142 | box-sizing: border-box; |
143 | - height: 90rem / $pxConvertRem; | ||
144 | - line-height: 90rem / $pxConvertRem; | 143 | + height: 80rem / $pxConvertRem; |
144 | + line-height: 80rem / $pxConvertRem; | ||
145 | margin-bottom: 10rem / $pxConvertRem; | 145 | margin-bottom: 10rem / $pxConvertRem; |
146 | padding: 0 20rem / $pxConvertRem; | 146 | padding: 0 20rem / $pxConvertRem; |
147 | + background: #f1f1f1; | ||
147 | 148 | ||
148 | &:last-child { | 149 | &:last-child { |
149 | margin-bottom: 0; | 150 | margin-bottom: 0; |
@@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
49 | .not-use { | 49 | .not-use { |
50 | display: block; | 50 | display: block; |
51 | width: pxToRem(560px); | 51 | width: pxToRem(560px); |
52 | - margin: pxToRem(30px) auto; | 52 | + margin: pxToRem(30px) auto 0; |
53 | text-align: center; | 53 | text-align: center; |
54 | font-size: pxToRem(32px); | 54 | font-size: pxToRem(32px); |
55 | line-height: 2.5; | 55 | line-height: 2.5; |
@@ -41,10 +41,12 @@ | @@ -41,10 +41,12 @@ | ||
41 | </p> | 41 | </p> |
42 | </div> | 42 | </div> |
43 | <p class="row"> | 43 | <p class="row"> |
44 | - <span class="price"> | ||
45 | - ¥{{price}} | ||
46 | - </span> | ||
47 | - | 44 | + <p class="price"> |
45 | + <span class="market-price">¥{{price}}</span> | ||
46 | + {{#if isAdvanceBuy}} | ||
47 | + <span class="sale-price">¥{{salesPrice}}</span> | ||
48 | + {{/if}} | ||
49 | + </p> | ||
48 | {{#if isVipPrice}} | 50 | {{#if isVipPrice}} |
49 | <span class="vip"> | 51 | <span class="vip"> |
50 | VIP | 52 | VIP |
@@ -555,8 +555,8 @@ class CartModel | @@ -555,8 +555,8 @@ class CartModel | ||
555 | $notAvailableRes = self::searchCoupon($uid, $val['couponCode']); | 555 | $notAvailableRes = self::searchCoupon($uid, $val['couponCode']); |
556 | // 处理可用的优惠券 | 556 | // 处理可用的优惠券 |
557 | if ($val['isValidity'] === 'N' || (isset($notAvailableRes['code']) && $notAvailableRes['code'] !== 200)) { | 557 | if ($val['isValidity'] === 'N' || (isset($notAvailableRes['code']) && $notAvailableRes['code'] !== 200)) { |
558 | -// $val['notAvailable'] = true; | ||
559 | - continue; | 558 | + $val['notAvailable'] = true; |
559 | + // continue; | ||
560 | } | 560 | } |
561 | $result[] = $val; | 561 | $result[] = $val; |
562 | } | 562 | } |
-
Please register or login to post a comment