Authored by lore-w

逛点赞联调

... ... @@ -15,7 +15,7 @@ fonts_dir = "public/fonts"
# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true
# sourcemap = true
#sourcemap = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false
... ...
... ... @@ -383,6 +383,10 @@ module.exports = function(flag) {
count: 123,
isLiked: true
},
collect: {
isCollect: true,
likeUrl: ''
},
share: false, //不显示share标签
author: {
id: 1,
... ...
... ... @@ -171,6 +171,12 @@ exports.init = function() {
}
});
}
}).bind('click', function(e) {
if (isLogin === 'Y') {
//阻止链接跳转
e.preventDefault();
}
});
$('#brand-like').bind('touchstart', function(e) {
... ...
... ... @@ -114,9 +114,7 @@ function loadMore() {
html = Mustache.render(tpl, {
msgs: msgs
});
setTimeout(function () {
$msgList.append(html);
},3000);
$msgList.append(html);
page++;
... ... @@ -178,6 +176,12 @@ function bindPriseTap() {
}
});
}
}).bind('click', function(e) {
if (isLogin === 'Y') {
//阻止链接跳转
e.preventDefault();
}
});
}
... ...
... ... @@ -113,6 +113,12 @@ exports.init = function() {
}
});
}
}).bind('click', function(e) {
if (isLogin === 'Y') {
//阻止链接跳转
e.preventDefault();
}
});
/**
... ...
... ... @@ -24,4 +24,9 @@ i {
filter: Alpha(opacity=70);
@include border-radius(10px);
top: 50%;
left: 50%;
margin-top: -30px;
margin-left: -70px;
}
... ...
... ... @@ -5,7 +5,7 @@
<span class="page-view">{{pageView}}</span>
<div class="like-share-container">
{{# collect}}
<a href="javascript:;" class="iconfont like-btn{{#isCollect}} like{{/isCollect}}">&#xe605;</a>
<a href="{{likeUrl}}" class="iconfont like-btn{{#isCollect}} like{{/isCollect}}">&#xe605;</a>
<!--<span class="like-count">{{count}}</span>-->
{{/ collect}}
{{# share}}
... ...