Authored by wangqing

增加主食

... ... @@ -720,7 +720,10 @@ function actionNav() {
});
}
/**
* 获取三级导航的tip图标
* @return {[type]} [description]
*/
function actionTipPic() {
var tipscode = {};
var $contentcode = '';
... ... @@ -732,7 +735,7 @@ function actionTipPic() {
$(document).on('mouseenter', '.sub-nav-item', function() {
$contentcode = $(this).find('.showdetail').attr('data-code');
if ($contentcode) {
if(!tipscode[$contentcode]){
if (!tipscode[$contentcode]) {
tipscode[$contentcode] = $contentcode;
$img = $(this).find('.showdetail').find('img');
$title = $(this).find('.showdetail').find('.title');
... ... @@ -743,11 +746,8 @@ function actionTipPic() {
$title.text(rsdata.data.title);
}, 'jsonp');
}
}
});
}
/**
... ...