...
|
...
|
@@ -1490,27 +1490,17 @@ function initInfosEvt($container) { |
|
|
type: 'POST',
|
|
|
url: '/guang/opt/collectArticle',
|
|
|
data: {
|
|
|
id: getUrlParam('id'),
|
|
|
id: $info.data('id'),
|
|
|
opt: opt,
|
|
|
yh_channel: yhChannel,
|
|
|
uid: getUrlParam('uid')
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data.code && data.code === 200) {
|
|
|
if (data.data.jump) {
|
|
|
if ($('#intimacy-link').length <= 0) {
|
|
|
$('body').append('<a href=\'' + data.data.jumpUrl +
|
|
|
'\' style="display:none;" id="intimacy-link">' +
|
|
|
'<span class="intimacy-link"></span></a>');
|
|
|
}
|
|
|
|
|
|
$('.intimacy-link').click();
|
|
|
} else {
|
|
|
|
|
|
//切换收藏状态
|
|
|
$btn.toggleClass('collected');
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
error: function() {
|
|
|
tip.show('网络断开连接了~');
|
...
|
...
|
@@ -9664,7 +9654,7 @@ function search(opt) { |
|
|
|
|
|
$listNav.children('.active').removeClass('active');
|
|
|
$pre.addClass('active');
|
|
|
if (opt.id) {
|
|
|
if (opt.hasOwnProperty('id')) {
|
|
|
switch (opt.type) {
|
|
|
case 'shop_id':
|
|
|
ext = {
|
...
|
...
|
@@ -10027,7 +10017,7 @@ $listNav.on('touchstart', 'li', function(e) { |
|
|
$nav2.on('touchstart', 'li', function(e) {
|
|
|
$(this).addClass('bytouch');
|
|
|
}).on('touchend touchcancel', function() {
|
|
|
$listNav.find('li').removeClass('bytouch');
|
|
|
$nav2.find('li').removeClass('bytouch');
|
|
|
myScroll.refresh();
|
|
|
});
|
|
|
|
...
|
...
|
|