Showing
1 changed file
with
5 additions
and
5 deletions
@@ -720,7 +720,10 @@ function actionNav() { | @@ -720,7 +720,10 @@ function actionNav() { | ||
720 | }); | 720 | }); |
721 | } | 721 | } |
722 | 722 | ||
723 | - | 723 | +/** |
724 | + * 获取三级导航的tip图标 | ||
725 | + * @return {[type]} [description] | ||
726 | + */ | ||
724 | function actionTipPic() { | 727 | function actionTipPic() { |
725 | var tipscode = {}; | 728 | var tipscode = {}; |
726 | var $contentcode = ''; | 729 | var $contentcode = ''; |
@@ -732,7 +735,7 @@ function actionTipPic() { | @@ -732,7 +735,7 @@ function actionTipPic() { | ||
732 | $(document).on('mouseenter', '.sub-nav-item', function() { | 735 | $(document).on('mouseenter', '.sub-nav-item', function() { |
733 | $contentcode = $(this).find('.showdetail').attr('data-code'); | 736 | $contentcode = $(this).find('.showdetail').attr('data-code'); |
734 | if ($contentcode) { | 737 | if ($contentcode) { |
735 | - if(!tipscode[$contentcode]){ | 738 | + if (!tipscode[$contentcode]) { |
736 | tipscode[$contentcode] = $contentcode; | 739 | tipscode[$contentcode] = $contentcode; |
737 | $img = $(this).find('.showdetail').find('img'); | 740 | $img = $(this).find('.showdetail').find('img'); |
738 | $title = $(this).find('.showdetail').find('.title'); | 741 | $title = $(this).find('.showdetail').find('.title'); |
@@ -743,11 +746,8 @@ function actionTipPic() { | @@ -743,11 +746,8 @@ function actionTipPic() { | ||
743 | $title.text(rsdata.data.title); | 746 | $title.text(rsdata.data.title); |
744 | }, 'jsonp'); | 747 | }, 'jsonp'); |
745 | } | 748 | } |
746 | - | ||
747 | } | 749 | } |
748 | - | ||
749 | }); | 750 | }); |
750 | - | ||
751 | } | 751 | } |
752 | 752 | ||
753 | /** | 753 | /** |
-
Please register or login to post a comment