解决问题: 1. 购物车点击物品勾选框时容易点到图片。 2.替换为你优选的人民币符号。code review by XWG
Showing
3 changed files
with
12 additions
and
3 deletions
@@ -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: 0.5rem; | ||
8 | + height: 5rem; | ||
9 | + position: absolute; | ||
10 | + background-color: transprent; | ||
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