Authored by 周少峰

gulp ge

@@ -1490,26 +1490,16 @@ function initInfosEvt($container) { @@ -1490,26 +1490,16 @@ function initInfosEvt($container) {
1490 type: 'POST', 1490 type: 'POST',
1491 url: '/guang/opt/collectArticle', 1491 url: '/guang/opt/collectArticle',
1492 data: { 1492 data: {
1493 - id: getUrlParam('id'), 1493 + id: $info.data('id'),
1494 opt: opt, 1494 opt: opt,
1495 yh_channel: yhChannel, 1495 yh_channel: yhChannel,
1496 uid: getUrlParam('uid') 1496 uid: getUrlParam('uid')
1497 }, 1497 },
1498 success: function(data) { 1498 success: function(data) {
1499 if (data.code && data.code === 200) { 1499 if (data.code && data.code === 200) {
1500 - if (data.data.jump) {  
1501 - if ($('#intimacy-link').length <= 0) {  
1502 - $('body').append('<a href=\'' + data.data.jumpUrl +  
1503 - '\' style="display:none;" id="intimacy-link">' +  
1504 - '<span class="intimacy-link"></span></a>');  
1505 - }  
1506 -  
1507 - $('.intimacy-link').click();  
1508 - } else {  
1509 1500
1510 - //切换收藏状态  
1511 - $btn.toggleClass('collected');  
1512 - } 1501 + //切换收藏状态
  1502 + $btn.toggleClass('collected');
1513 } 1503 }
1514 }, 1504 },
1515 error: function() { 1505 error: function() {
@@ -9664,7 +9654,7 @@ function search(opt) { @@ -9664,7 +9654,7 @@ function search(opt) {
9664 9654
9665 $listNav.children('.active').removeClass('active'); 9655 $listNav.children('.active').removeClass('active');
9666 $pre.addClass('active'); 9656 $pre.addClass('active');
9667 - if (opt.id) { 9657 + if (opt.hasOwnProperty('id')) {
9668 switch (opt.type) { 9658 switch (opt.type) {
9669 case 'shop_id': 9659 case 'shop_id':
9670 ext = { 9660 ext = {
@@ -10027,7 +10017,7 @@ $listNav.on('touchstart', 'li', function(e) { @@ -10027,7 +10017,7 @@ $listNav.on('touchstart', 'li', function(e) {
10027 $nav2.on('touchstart', 'li', function(e) { 10017 $nav2.on('touchstart', 'li', function(e) {
10028 $(this).addClass('bytouch'); 10018 $(this).addClass('bytouch');
10029 }).on('touchend touchcancel', function() { 10019 }).on('touchend touchcancel', function() {
10030 - $listNav.find('li').removeClass('bytouch'); 10020 + $nav2.find('li').removeClass('bytouch');
10031 myScroll.refresh(); 10021 myScroll.refresh();
10032 }); 10022 });
10033 10023
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.