You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
859 B

// 2020年4月8
// 许伟杰
$(function () {
// 顶部导航
$(".head-nav li").each(function () {
$(this).hover(function () {
$(this).addClass("move-on").siblings().removeClass("move-on");
})
});
// banner
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
paginationClickable: true,
autoplay: 3000,
autoplayDisableOnInteraction: false,
speed: 300,
// 变手
grabCursor: true,
// 从最后一个跳回第一个
loop: true,
});
// 首页选卡
$(".card-select li").each(function (index) {
$(this).click(function (e) {
$(this).addClass("clickon").siblings().removeClass("clickon");
$(".card-list").eq(index).show().siblings(".card-list").hide();
})
});
})