|
|
|
@ -13,11 +13,11 @@ $(function(){ |
|
|
|
|
$(".model-bg").each(function (i) { |
|
|
|
|
let _that=$(this); |
|
|
|
|
_that.find(".nextPage").click(function () { |
|
|
|
|
let key= i-1; |
|
|
|
|
console.log(key); |
|
|
|
|
console.log(i); |
|
|
|
|
_that.addClass("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.addClass("unchoose"); |
|
|
|
|