94 lines
2.1 KiB
JavaScript
Executable File
94 lines
2.1 KiB
JavaScript
Executable File
/*店长推荐*/
|
|
function gpanelOver2(obj){
|
|
var sid = $(obj).attr("id");
|
|
var ids = sid.split("_");
|
|
var preid = ids[0]+"_"+ids[1];
|
|
|
|
$("li[id^="+preid+"_]").removeClass("j-s-rec-selected");
|
|
|
|
$("#"+sid).addClass("j-s-rec-selected");
|
|
|
|
$("div[id^="+preid+"_]").hide();
|
|
$("#"+sid+"_pl").show();
|
|
}
|
|
|
|
/*楼层*/
|
|
function gpanelOver(obj){
|
|
var sid = $(obj).attr("id");
|
|
|
|
var index = $(obj).attr('c');
|
|
|
|
var ids = sid.split("_");
|
|
var preid = ids[0]+"_"+ids[1];
|
|
|
|
$("li[id^="+preid+"_]").removeClass("j-tab-selected"+index);
|
|
$("#"+sid).addClass("j-tab-selected"+index);
|
|
|
|
$("div[id^="+preid+"_]").hide();
|
|
$("#"+sid+"_pl").show();
|
|
}
|
|
|
|
|
|
|
|
function searchShopsGoods(){
|
|
var params = new Array();
|
|
params.push("shopId=" + $("#shopId").val());
|
|
params.push("goodsName=" + $("#goodsName").val());
|
|
document.location.href = WST.U('home/shops/home',params.join('&'),true);
|
|
}
|
|
$(function(){
|
|
$(".s-goods").hover(function(){
|
|
$(this).find(".s-add-cart").slideDown(100);
|
|
},function(){
|
|
$(this).find(".s-add-cart").slideUp(100);
|
|
});
|
|
})
|
|
|
|
|
|
$(function(){
|
|
if($('.s-wst-slide-items a').length>1)WST.slides('.s-wst-slide');
|
|
$('.shop-cat1').hover(function(){
|
|
$(this).addClass('ct1-hover');
|
|
var cid = $(this).attr('cid');
|
|
|
|
var h = 66.3*cid+'px';
|
|
$('.cid'+cid).css('top',h);
|
|
$('.cid'+cid).show();
|
|
},function(){
|
|
$(this).removeClass('ct1-hover');
|
|
var cid = $(this).attr('cid');
|
|
$('.cid'+cid).hide();
|
|
})
|
|
|
|
|
|
$('.shop-cat2').hover(function(){
|
|
var cid = $(this).attr('cid');
|
|
$('#ct1-'+cid).addClass('ct1-hover');
|
|
$(this).show();
|
|
},function(){
|
|
var cid = $(this).attr('cid');
|
|
$('#ct1-'+cid).removeClass('ct1-hover');
|
|
$(this).hide();
|
|
});
|
|
|
|
|
|
|
|
$('.s-cat').hover(function(){
|
|
$('.s-cat-head').addClass('s-cat-head-hover');
|
|
$(this).show();
|
|
},function(){
|
|
$('.s-cat-head').removeClass('s-cat-head-hover');
|
|
$(this).hide();
|
|
});
|
|
|
|
|
|
$('.s-cat-head').hover(function(){
|
|
$(this).addClass('s-cat-head-hover');
|
|
$('.s-cat').css({left:$('.s-cat-head').offset().left}).show();
|
|
},function(){
|
|
$(this).removeClass('s-cat-head-hover');
|
|
$('.s-cat').hide();
|
|
})
|
|
|
|
|
|
}); |