Merge branch 'fix/issue' into 'develop'
解决问题 1. 购物车内有“库存不足商品时不能去结算页面。 2. 购物车页面,没有参与活动时的样式问题修复。 See merge request !52
Showing
3 changed files
with
9 additions
and
1 deletions
@@ -65,6 +65,11 @@ $('.freebie').on('touchend', function() { | @@ -65,6 +65,11 @@ $('.freebie').on('touchend', function() { | ||
65 | }); | 65 | }); |
66 | 66 | ||
67 | $('.btn-balance').on('touchend', function() { | 67 | $('.btn-balance').on('touchend', function() { |
68 | + if ($('.low-stocks').length > 0) { | ||
69 | + tip.show('请先删除库存不足商品'); | ||
70 | + return false; | ||
71 | + } | ||
72 | + | ||
68 | if (hasChecked) { | 73 | if (hasChecked) { |
69 | window.location.href = '/cart/index/orderEnsure?cartType=' + cartType; | 74 | window.location.href = '/cart/index/orderEnsure?cartType=' + cartType; |
70 | } else { | 75 | } else { |
@@ -120,7 +120,7 @@ | @@ -120,7 +120,7 @@ | ||
120 | .freebie-and-advance-buy { | 120 | .freebie-and-advance-buy { |
121 | padding: 20rem / $pxConvertRem; | 121 | padding: 20rem / $pxConvertRem; |
122 | font-size: 24rem / $pxConvertRem; | 122 | font-size: 24rem / $pxConvertRem; |
123 | - border-bottom: 1px solid #e0e0e0; | 123 | + //border-bottom: 1px solid #e0e0e0; |
124 | 124 | ||
125 | > li { | 125 | > li { |
126 | box-sizing: border-box; | 126 | box-sizing: border-box; |
@@ -152,6 +152,7 @@ | @@ -152,6 +152,7 @@ | ||
152 | } | 152 | } |
153 | 153 | ||
154 | .activity-title{ | 154 | .activity-title{ |
155 | + border-top: 1px solid #e0e0e0; | ||
155 | font-size: 32rem / $pxConvertRem; | 156 | font-size: 32rem / $pxConvertRem; |
156 | padding: 20rem / $pxConvertRem 20rem / $pxConvertRem 0; | 157 | padding: 20rem / $pxConvertRem 20rem / $pxConvertRem 0; |
157 | } | 158 | } |
@@ -42,6 +42,7 @@ | @@ -42,6 +42,7 @@ | ||
42 | {{/if}} | 42 | {{/if}} |
43 | {{/ promotionInfo}} | 43 | {{/ promotionInfo}} |
44 | 44 | ||
45 | +{{#if promotionInfo}} | ||
45 | <div class="activity"> | 46 | <div class="activity"> |
46 | <ul> | 47 | <ul> |
47 | {{# promotionInfo}} | 48 | {{# promotionInfo}} |
@@ -49,6 +50,7 @@ | @@ -49,6 +50,7 @@ | ||
49 | {{/ promotionInfo}} | 50 | {{/ promotionInfo}} |
50 | </ul> | 51 | </ul> |
51 | </div> | 52 | </div> |
53 | +{{/if}} | ||
52 | 54 | ||
53 | <div class="price-compute"> | 55 | <div class="price-compute"> |
54 | <p> | 56 | <p> |
-
Please register or login to post a comment