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

38 lines
1.2 KiB

5 years ago
$(function(){
5 years ago
var arr=[1,3,5,6,7,8,9];
5 years ago
$(".prompt").click(function(){
$(".model_wrap").show();
$(".model-bg").eq(0).removeClass("unchoose");
$('.jump').removeClass('unchoose');
5 years ago
5 years ago
$('#side-menu .av').eq(0).addClass('boo');
5 years ago
});
$(".model-bg").each(function (i) {
var _that=$(this);
5 years ago
$.each(arr,function (key,value) {
5 years ago
_that.find(".nextPage").click(function () {
_that.addClass("unchoose");
$(".model-bg").eq(i+1).removeClass("unchoose");
5 years ago
console.log(key);
console.log(value);
5 years ago
// $('#side-menu .av').eq(index).addClass('boo');
5 years ago
});
_that.find(".Previous").click(function () {
_that.addClass("unchoose");
$(".model-bg").eq(i-1).removeClass("unchoose");
});
5 years ago
});
});
$(".perfection").click(function () {
$(".jump").addClass('unchoose');
$(".model_wrap").hide();
});
$(".jump").click(function () {
$(this).addClass('unchoose');
$(".model_wrap").hide();
$(".model-bg").addClass("unchoose");
});
});