Files
addons
app_download_files
extend
hyhproject
admin
app
common
home
behavior
common
conf
controller
model
validate
view
default
css
img
js
apply.js
brandslist.js
carts.js
carts_quick.js
cloudzoom.js
common webuploader ╔╧┤лoss.js
common.js
findpass.js
goods.js
goodslist.js
index.js
jquery.als.js
login.js
qrcode.js
right_cart.js
self_shop.js
shophome.js
shopstreet.js
shops
base.html
footer.html
header.html
header_lite.html
index.html
right_cart.html
self_shop.html
self_shop_header.html
top.html
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5B854518.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
qlg.tsgz.moe/hyhproject/home/view/default/js/shophome.js
2019-09-06 23:53:10 +08:00

39 lines
1.3 KiB
JavaScript
Executable File

$(function() {
WST.dropDownLayer(".wst-shop-code",".wst-shop-codes");
$(".ck-slide-wrapper img").width(1200);
$('.ck-slide').ckSlide({
autoPlay: true,
time:5000,
isAnimate:true,
dir: 'x'
});
$(".wst-shop-goimg").hover(function(){
$(this).find(".js-cart").slideDown(100);
},function(){
$(this).find(".js-cart").slideUp(100);
});
});
function dropDown(obj,id){
if( $(obj).attr('class').indexOf('js-shop-plus') > -1 ){
$(obj).removeClass('js-shop-plus').addClass('js-shop-redu');
$('.tree_'+id).slideUp();
}else{
$(obj).removeClass('js-shop-redu').addClass('js-shop-plus');
$('.tree_'+id).slideDown();
}
}
function searchShopsGoods(obj){
var mdesc = $('#mdesc').val();
if($('#msort').val() != obj)mdesc = 0;
var msort = obj;
var params = new Array();
params.push("shopId=" + $("#shopId").val());
params.push("msort=" + obj);
params.push("mdesc=" + ((mdesc=="0")?"1":"0"));
params.push("sprice=" + $("#sprice").val());
params.push("eprice=" + $("#eprice").val());
params.push("ct1=" + $("#ct1").val());
params.push("ct2=" + $("#ct2").val());
if($("#goodsName").val()!=undefined)params.push("goodsName=" + $("#goodsName").val());
location.href = WST.U('home/shops/home',params.join('&'),true);
}