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/popUps.js

22 lines
585 B

$(function(){
$(".prompt").click(function(){
$(".model_wrap").show();
$(".model-bg").eq(0).removeClass("unchoose");
});
$(".model-bg").each(function (i,item) {
var _that=$(this);
_that.find(".nextPage").click(function () {
_that.addClass("unchoose");
$(".model-bg").eq(i+1).removeClass("unchoose");
console.log(i);
console.log(i+1);
console.log(item);
})
// $(".nextPage").click(function () {
// $('.model-bg').togg
//
// })
})
});