Showing
7 changed files
with
30 additions
and
5 deletions
@@ -15,7 +15,7 @@ fonts_dir = "public/fonts" | @@ -15,7 +15,7 @@ fonts_dir = "public/fonts" | ||
15 | 15 | ||
16 | # To enable relative paths to assets via compass helper functions. Uncomment: | 16 | # To enable relative paths to assets via compass helper functions. Uncomment: |
17 | relative_assets = true | 17 | relative_assets = true |
18 | -# sourcemap = true | 18 | + #sourcemap = true |
19 | 19 | ||
20 | # To disable debugging comments that display the original location of your selectors. Uncomment: | 20 | # To disable debugging comments that display the original location of your selectors. Uncomment: |
21 | line_comments = false | 21 | line_comments = false |
@@ -383,6 +383,10 @@ module.exports = function(flag) { | @@ -383,6 +383,10 @@ module.exports = function(flag) { | ||
383 | count: 123, | 383 | count: 123, |
384 | isLiked: true | 384 | isLiked: true |
385 | }, | 385 | }, |
386 | + collect: { | ||
387 | + isCollect: true, | ||
388 | + likeUrl: '' | ||
389 | + }, | ||
386 | share: false, //不显示share标签 | 390 | share: false, //不显示share标签 |
387 | author: { | 391 | author: { |
388 | id: 1, | 392 | id: 1, |
@@ -171,6 +171,12 @@ exports.init = function() { | @@ -171,6 +171,12 @@ exports.init = function() { | ||
171 | } | 171 | } |
172 | }); | 172 | }); |
173 | } | 173 | } |
174 | + }).bind('click', function(e) { | ||
175 | + if (isLogin === 'Y') { | ||
176 | + | ||
177 | + //阻止链接跳转 | ||
178 | + e.preventDefault(); | ||
179 | + } | ||
174 | }); | 180 | }); |
175 | 181 | ||
176 | $('#brand-like').bind('touchstart', function(e) { | 182 | $('#brand-like').bind('touchstart', function(e) { |
@@ -114,9 +114,7 @@ function loadMore() { | @@ -114,9 +114,7 @@ function loadMore() { | ||
114 | html = Mustache.render(tpl, { | 114 | html = Mustache.render(tpl, { |
115 | msgs: msgs | 115 | msgs: msgs |
116 | }); | 116 | }); |
117 | - setTimeout(function () { | ||
118 | - $msgList.append(html); | ||
119 | - },3000); | 117 | + $msgList.append(html); |
120 | 118 | ||
121 | page++; | 119 | page++; |
122 | 120 | ||
@@ -178,6 +176,12 @@ function bindPriseTap() { | @@ -178,6 +176,12 @@ function bindPriseTap() { | ||
178 | } | 176 | } |
179 | }); | 177 | }); |
180 | } | 178 | } |
179 | + }).bind('click', function(e) { | ||
180 | + if (isLogin === 'Y') { | ||
181 | + | ||
182 | + //阻止链接跳转 | ||
183 | + e.preventDefault(); | ||
184 | + } | ||
181 | }); | 185 | }); |
182 | } | 186 | } |
183 | 187 |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | <span class="page-view">{{pageView}}</span> | 5 | <span class="page-view">{{pageView}}</span> |
6 | <div class="like-share-container"> | 6 | <div class="like-share-container"> |
7 | {{# collect}} | 7 | {{# collect}} |
8 | - <a href="javascript:;" class="iconfont like-btn{{#isCollect}} like{{/isCollect}}"></a> | 8 | + <a href="{{likeUrl}}" class="iconfont like-btn{{#isCollect}} like{{/isCollect}}"></a> |
9 | <!--<span class="like-count">{{count}}</span>--> | 9 | <!--<span class="like-count">{{count}}</span>--> |
10 | {{/ collect}} | 10 | {{/ collect}} |
11 | {{# share}} | 11 | {{# share}} |
-
Please register or login to post a comment