...
|
...
|
@@ -64,6 +64,21 @@ function refreshBag() { |
|
|
});
|
|
|
}
|
|
|
|
|
|
function getNavImg(code, dom) {
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/common/getBanner',
|
|
|
data: {
|
|
|
code: code
|
|
|
},
|
|
|
success: function(result) {
|
|
|
if (result.code === 200) {
|
|
|
dom.data('show', true).html('<img src="' + result.data.src + '">');
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
refreshBag();
|
|
|
|
|
|
$('.yoho-group a').hover(function() {
|
...
|
...
|
@@ -111,7 +126,16 @@ $bagGoodsList.on('click', '.del-good-btn', function() { |
|
|
|
|
|
$('.contain-third').on({
|
|
|
mouseenter: function() {
|
|
|
var $thirdWrapper = $(this).children('.third-nav-wrapper');
|
|
|
var $thirdWrapper = $(this).children('.third-nav-wrapper'),
|
|
|
$detail = $thirdWrapper.find('.show-detail');
|
|
|
var data;
|
|
|
|
|
|
if ($detail) {
|
|
|
data = $detail.data();
|
|
|
if (data.code && !data.show) {
|
|
|
getNavImg(data.code, $detail);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
delayer = setTimeout(function() {
|
|
|
$thirdWrapper.show();
|
...
|
...
|
|