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.
simple-yewu/frontend/web/assets/js/model.js

19 lines
564 B

5 years ago
$(function(){
$(".prompt").click(function(){
$(".model_wrap").show();
5 years ago
$(".model-bg").removeClass("unchoose");
5 years ago
$(".model-bg .content").removeClass("unchoose");
5 years ago
console.log(1);
})
5 years ago
$(".nextPage").click(function () {
$(".content").each(function (i,item) {
console.log(i);
console.log(item);
if(!$(this).eq(i).toggleClass("unchoose")){
$(this).eq(i).addClass("unchoose");
$(this).eq(i+1).removeClass("unchoose");
}
})
})
5 years ago
});