...
|
...
|
@@ -720,6 +720,29 @@ function actionNav() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
function actionTipPic() {
|
|
|
var $content_code = ''
|
|
|
var serverApi = 'http://www.yohobuy.com/common/getbanner?content_code=';
|
|
|
var $img = '';
|
|
|
var $title = '';
|
|
|
var $link = '';
|
|
|
|
|
|
$(document).on('mouseenter','.sub-nav-item',function(){
|
|
|
$content_code = $(this).find('.showdetail').attr('data-code');
|
|
|
if($content_code){
|
|
|
$img = $(this).find('.showdetail').find('img');
|
|
|
$title = $(this).find('.showdetail').find('.title');
|
|
|
$link = $(this).find('.showdetail').find('a');
|
|
|
$.get(serverApi + $content_code+'&width=337&height=250&client_type=web', function(rsdata) {
|
|
|
$img.attr('src',rsdata.data.src);
|
|
|
$link.attr('href',rsdata.data.url);
|
|
|
$title.text(rsdata.data.title);
|
|
|
}, 'jsonp');
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询跳转后保留关键字
|
...
|
...
|
@@ -1325,6 +1348,7 @@ function actionLoginInfo() { |
|
|
*/
|
|
|
function init() {
|
|
|
actionNav(); //处理导航
|
|
|
actionTipPic();//鼠标移入后查询
|
|
|
actionExeTemplate(); //处理模板
|
|
|
actionInitCookie(); //初始化cookie
|
|
|
actionExeCookieMap(); //格式化cookie
|
...
|
...
|
|