Authored by 2586703@qq.com

Merge branch 'feature/h5detail' of http://git.dev.yoho.cn/web/yohobuy-frontend into feature/h5detail

... ... @@ -42,7 +42,8 @@ exports.init = function() {
$(document).scroll(function() {
var sTop = $(this).scrollTop(),
cur,
parent;
parent,
containerH;
thumbContainer.each(function() {
var pNode = $(this).closest('.article-type-three');
if (sTop > pNode.offset().top) {
... ... @@ -54,7 +55,8 @@ exports.init = function() {
}
});
if (cur) {
if (sTop < parent.offset().top + parent.height()) {
containerH = cur.closest('.thumb-container').outerHeight();
if (sTop < parent.offset().top + parent.height() - containerH) {
cur.addClass('fixed');
} else {
cur.removeClass('fixed')
... ...
{{# smallImage}}
<div class="article-type-four clearfix">
{{# imgs}}
<img src="{{src}}" alt="{{alt}}">
<img class="lazy" src="{{src}}" alt="{{alt}}">
{{/ imgs}}
</div>
{{/ smallImage}}
\ No newline at end of file
... ...
{{# bigImage}}
<div class="article-type-one">
<img class="img" src="{{src}}" alt="{{alt}}">
<img class="img lazy" src="{{src}}" alt="{{alt}}">
</div>
{{/ bigImage}}
\ No newline at end of file
... ...
... ... @@ -4,7 +4,7 @@
<ul class="thumb-container clearfix">
{{# list}}
<li class="thumb">
<img class="thumb-img" src="{{thumb}}">
<img class="thumb-img lazy" src="{{thumb}}">
<span class="arrow"></span>
<span class="clothe-type {{type}}"></span>
</li>
... ...
... ... @@ -7,7 +7,7 @@
<a class="good-islike iconfont" href="javascript:;">&#xe60f;</a>
{{/ isLike}}
<a class="good-thumb" href="{{url}}">
<img src="{{thumb}}">
<img class="lazy" src="{{thumb}}">
</a>
<div class="tag-container">
{{# isNew}}
... ...
... ... @@ -3,7 +3,7 @@
<ul class="brand-list clearfix">
{{# brands}}
<li><a href="{{url}}">
<img src="{{thumb}}" alt="{{name}}">
<img class="lazy" src="{{thumb}}" alt="{{name}}">
</a></li>
{{/ brands}}
</ul>
... ...
... ... @@ -3,7 +3,7 @@
<ul class="post-list">
{{# otherArticle}}
<li><a class="clearfix" href="{{url}}">
<img src="{{thumb}}" alt="">
<img class="lazy" src="{{thumb}}" alt="">
<span>{{title}}</span>
</a></li>
{{/ otherArticle}}
... ...