Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
4 changed files
with
13 additions
and
4 deletions
@@ -93,7 +93,7 @@ function orderCompute() { | @@ -93,7 +93,7 @@ function orderCompute() { | ||
93 | }).then(function(res) { | 93 | }).then(function(res) { |
94 | var priceHtml; | 94 | var priceHtml; |
95 | 95 | ||
96 | - if (!res.length) { | 96 | + if ($.type(res) !== 'object') { |
97 | window.location.reload(); | 97 | window.location.reload(); |
98 | } else { | 98 | } else { |
99 | /*if (res.order_amount) { | 99 | /*if (res.order_amount) { |
@@ -3,6 +3,14 @@ | @@ -3,6 +3,14 @@ | ||
3 | position: relative; | 3 | position: relative; |
4 | padding-left: 16rem / $pxConvertRem; | 4 | padding-left: 16rem / $pxConvertRem; |
5 | 5 | ||
6 | + .prevent-img-click { | ||
7 | + width: 20rem / $pxConvertRem; | ||
8 | + height: 200rem / $pxConvertRem; | ||
9 | + position: absolute; | ||
10 | + background-color: transparent; | ||
11 | + z-index: 99; | ||
12 | + } | ||
13 | + | ||
6 | .checkbox { | 14 | .checkbox { |
7 | position: absolute; | 15 | position: absolute; |
8 | top: 50%; | 16 | top: 50%; |
@@ -8,6 +8,7 @@ | @@ -8,6 +8,7 @@ | ||
8 | {{/if}} | 8 | {{/if}} |
9 | 9 | ||
10 | <div class="info"> | 10 | <div class="info"> |
11 | + <div class="prevent-img-click"></div> | ||
11 | <a href="{{link}}"> | 12 | <a href="{{link}}"> |
12 | <img class="thumb lazy" data-original="{{thumb}}"> | 13 | <img class="thumb lazy" data-original="{{thumb}}"> |
13 | </a> | 14 | </a> |
@@ -5,11 +5,11 @@ | @@ -5,11 +5,11 @@ | ||
5 | <a class="swiper-slide" href="{{url}}"> | 5 | <a class="swiper-slide" href="{{url}}"> |
6 | <img class="swiper-lazy img-box" data-src="{{thumb}}"> | 6 | <img class="swiper-lazy img-box" data-src="{{thumb}}"> |
7 | <div class="price"> | 7 | <div class="price"> |
8 | - <span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span> | ||
9 | - {{#price}}<span class="old-price">¥{{.}}</span>{{/price}} | 8 | + <span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span> |
9 | + {{#price}}<span class="old-price">¥{{.}}</span>{{/price}} | ||
10 | </div> | 10 | </div> |
11 | <div class="swiper-lazy-preloader"></div> | 11 | <div class="swiper-lazy-preloader"></div> |
12 | </a> | 12 | </a> |
13 | {{/recommendList}} | 13 | {{/recommendList}} |
14 | </div> | 14 | </div> |
15 | -</div> | ||
15 | +</div> |
-
Please register or login to post a comment