Authored by lore-w

点赞bug修复、收藏品牌样式问题、收藏商品icon更换

... ... @@ -21,7 +21,7 @@ var $navLi = $('#fav-tab > li'),
$brandLoadMore = $('.fav-brand-load-more'),
winH = $(window).height(),
$favProductList = $('.fav-product-list'),
$favBrandList = $('.fav-brand-swiper'),
$favBrandList = $('.fav-brand-swiper-wrapper'),
pageId = 1,
brandPageId = 1, //收藏品牌的当前页数
lockId = true,
... ...
... ... @@ -121,7 +121,7 @@ $likeBtn.bind('click', function() {
}).then(function(data) {
if (data.code === 200) {
$that.closest('.suggest-type').removeClass('show');
$('.suggest-good').addClass('show');
$that.closest('.suggest-item').find('.suggest-good').addClass('show');
}
}).fail(function(data) {
... ... @@ -148,7 +148,7 @@ $disLikeBtn.bind('click', function() {
}).then(function(data) {
if (data.code === 200) {
$that.closest('.suggest-type').removeClass('show');
$('.suggest-bad').addClass('show');
$that.closest('.suggest-item').find('.suggest-bad').addClass('show');
}
}).fail(function(data) {
... ...
... ... @@ -171,17 +171,14 @@
}
&.del-fav {
$width: pxToRem(image_width(sprite-file($fav, fav-del)));
$height: pxToRem(image_height(sprite-file($fav, fav-del)));
@include rem-sprite($fav, fav-del);
width: $width;
height: $height;
width: 2rem;
height: 1.5rem;
line-height: 1.5rem;
position: absolute;
top: 50%;
right: pxToRem(30px);
margin-top: -$height / 2;
margin-top: -0.75rem;
right: 0;
color: #666;
}
}
}
... ...
... ... @@ -38,14 +38,15 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px);
color: #444;
border-top: 1px solid #e0e0e0;
border-bottom: pxToRem(30px) solid #f0f0f0;
overflow: hidden;
.suggest-item-img {
width: 100%;
overflow: hidden;
> img {
margin: 0 auto;
display: block;
overflow: hidden;
width: 100%;
max-width: 100%;
}
}
... ... @@ -180,7 +181,8 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px);
.img-form {
padding: 0 pxToRem(30px);
float: left;
padding-top: pxToRem(40px);
overflow: hidden;
.upload-img-list {
float: left;
... ...
... ... @@ -17,7 +17,7 @@
<div class="fav-load-more fav-load-background hide"></div>
</div>
<div class="fav-type">
<div class="fav-brand-swiper"></div>
<div class="fav-brand-swiper-wrapper"></div>
<div class="fav-content-loading"></div>
<div class="fav-null-box hide">
... ...
... ... @@ -24,10 +24,10 @@
<li class="swiper-slide">
<img class="swiper-lazy" data-src="{{imgUrl}}" alt=""/>
<div class="brand-product">
<p class="{{# discount}}price-discount{{/ discount}}">
<div class="{{# discount}}price-discount{{/ discount}}">
{{# discount}}<span>{{.}}<span>{{/ discount}}
<b>{{price}}</b>
</p>
</div>
</div>
<div class="swiper-lazy-preloader"></div>
</li>
... ...
... ... @@ -24,7 +24,7 @@
{{# sellOut}}
<span class="sell-out">已售罄</span>
{{/ sellOut}}
<span class="del-fav"></span>
<span class="del-fav iconfont">&#xe621;</span>
</div>
{{/ savePrice}}
... ...