Authored by xuqi

info icon change

... ... @@ -243,8 +243,7 @@
publishTime: '',
pageView: '',
like: {
isLiked: true,
count: 1
isLiked: true
},
share: false,
isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic
... ...
... ... @@ -18,7 +18,7 @@ var $infoList = $('#info-list'),
$infos = $infoList.children('.info-list'),
$nav = $('#guang-nav'),
$curNav = $nav.children('.focus'),
curIndex = $curNav.index();
curType = $curNav.data('type');
var state = {};
... ... @@ -67,15 +67,11 @@ $nav.delegate('.guang-nav-item', 'touchstart', function() {
setLazyLoadAndMellipsis($content.children('.guang-info'));
$curNav = $this;
curIndex = index;
curType = $this.data('type');
});
$(document).scroll(function() {
if (state[curIndex].end) {
return;
}
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) {
loadMore($infos, state[curIndex]);
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH && !state[curType].end) {
loadMore($infos, state[curType]);
}
});
\ No newline at end of file
... ...
... ... @@ -5,8 +5,7 @@
<span class="page-view">{{pageView}}</span>
<div class="like-share-container">
{{# like}}
<a href="javascript:;" class="iconfont like-btn{{#isLiked}} like{{/isLiked}}">&#xe601;</a>
<span class="like-count">{{count}}</span>
<a href="javascript:;" class="iconfont like-btn{{#isLiked}} like{{/isLiked}}">&#xe605;</a>
{{/ like}}
{{# share}}
<a href="{{.}}" class="iconfont share-btn">&#xe600;</a>
... ...