Authored by xuqi

jump to app

@@ -19,6 +19,8 @@ var tip = require('../../plugin/tip'); @@ -19,6 +19,8 @@ var tip = require('../../plugin/tip');
19 19
20 var brandId = $('#brand-info').data('id'); 20 var brandId = $('#brand-info').data('id');
21 21
  22 +var jumpToApp = $('#jump-to-app').val();
  23 +
22 var mIntro, aIntro; 24 var mIntro, aIntro;
23 25
24 var moreHammer, likeHammer; 26 var moreHammer, likeHammer;
@@ -71,6 +73,12 @@ likeHammer.on('tap', function(e) { @@ -71,6 +73,12 @@ likeHammer.on('tap', function(e) {
71 var opt = 'ok', 73 var opt = 'ok',
72 $this = $(e.target); 74 $this = $(e.target);
73 75
  76 +
  77 + //jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP
  78 + if (jumpToApp === '1') {
  79 + return;
  80 + }
  81 +
74 e.preventDefault(); 82 e.preventDefault();
75 83
76 if ($this.hasClass('like')) { 84 if ($this.hasClass('like')) {
@@ -52,6 +52,8 @@ @@ -52,6 +52,8 @@
52 </div> 52 </div>
53 {{/if}} 53 {{/if}}
54 54
  55 + <input id="jump-to-app" type="hidden" value={{jumpToApp}}>
  56 +
55 {{!-- wx-share --}} 57 {{!-- wx-share --}}
56 <input id="shareLink" type="hidden" value={{shareLink}}> 58 <input id="shareLink" type="hidden" value={{shareLink}}>
57 <input id="shareImg" type="hidden" value={{shareImg}}> 59 <input id="shareImg" type="hidden" value={{shareImg}}>