|
|
@ -13,11 +13,11 @@ $(function(){ |
|
|
|
$(".model-bg").each(function (i) { |
|
|
|
$(".model-bg").each(function (i) { |
|
|
|
let _that=$(this); |
|
|
|
let _that=$(this); |
|
|
|
_that.find(".nextPage").click(function () { |
|
|
|
_that.find(".nextPage").click(function () { |
|
|
|
let key= i-1; |
|
|
|
console.log(i); |
|
|
|
console.log(key); |
|
|
|
|
|
|
|
_that.addClass("unchoose"); |
|
|
|
_that.addClass("unchoose"); |
|
|
|
$(".model-bg").eq(i+1).removeClass("unchoose"); |
|
|
|
$(".model-bg").eq(i+1).removeClass("unchoose"); |
|
|
|
$('#side-menu .av').eq(arr[i+1]).addClass('boo').eq(arr[i]).removeClass('boo'); |
|
|
|
$('#side-menu .av').eq(arr[i+1]).addClass('boo'); |
|
|
|
|
|
|
|
$('#side-menu .av').eq(arr[i]).removeClass('boo'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
_that.find(".Previous").click(function () { |
|
|
|
_that.find(".Previous").click(function () { |
|
|
|
_that.addClass("unchoose"); |
|
|
|
_that.addClass("unchoose"); |
|
|
|