Authored by lore-w

逛点赞联调

@@ -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
@@ -113,6 +113,12 @@ exports.init = function() { @@ -113,6 +113,12 @@ exports.init = function() {
113 } 113 }
114 }); 114 });
115 } 115 }
  116 + }).bind('click', function(e) {
  117 + if (isLogin === 'Y') {
  118 +
  119 + //阻止链接跳转
  120 + e.preventDefault();
  121 + }
116 }); 122 });
117 123
118 /** 124 /**
@@ -24,4 +24,9 @@ i { @@ -24,4 +24,9 @@ i {
24 filter: Alpha(opacity=70); 24 filter: Alpha(opacity=70);
25 25
26 @include border-radius(10px); 26 @include border-radius(10px);
  27 +
  28 + top: 50%;
  29 + left: 50%;
  30 + margin-top: -30px;
  31 + margin-left: -70px;
27 } 32 }
@@ -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}}">&#xe605;</a> 8 + <a href="{{likeUrl}}" class="iconfont like-btn{{#isCollect}} like{{/isCollect}}">&#xe605;</a>
9 <!--<span class="like-count">{{count}}</span>--> 9 <!--<span class="like-count">{{count}}</span>-->
10 {{/ collect}} 10 {{/ collect}}
11 {{# share}} 11 {{# share}}