Authored by xuqi

jump to app

... ... @@ -19,6 +19,8 @@ var tip = require('../../plugin/tip');
var brandId = $('#brand-info').data('id');
var jumpToApp = $('#jump-to-app').val();
var mIntro, aIntro;
var moreHammer, likeHammer;
... ... @@ -71,6 +73,12 @@ likeHammer.on('tap', function(e) {
var opt = 'ok',
$this = $(e.target);
//jumpToApp = 1表示APP未登录的情况,此时不发送ajax请求而由a链接直接跳转APP
if (jumpToApp === '1') {
return;
}
e.preventDefault();
if ($this.hasClass('like')) {
... ...
... ... @@ -52,6 +52,8 @@
</div>
{{/if}}
<input id="jump-to-app" type="hidden" value={{jumpToApp}}>
{{!-- wx-share --}}
<input id="shareLink" type="hidden" value={{shareLink}}>
<input id="shareImg" type="hidden" value={{shareImg}}>
... ...