From 485c0f9edd7c764b067564121fa2ad62676bf4d2 Mon Sep 17 00:00:00 2001 From: ZHAOTONGHUA <2066753415@qq.com> Date: Thu, 21 Nov 2019 15:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=80=81=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/web/assets/js/pop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/web/assets/js/pop.js b/frontend/web/assets/js/pop.js index 8b69e5d..9d92586 100644 --- a/frontend/web/assets/js/pop.js +++ b/frontend/web/assets/js/pop.js @@ -13,11 +13,11 @@ $(function(){ $(".model-bg").each(function (i) { var _that=$(this); _that.find(".nextPage").click(function () { - console.log(i); + var key=i-1; _that.addClass("unchoose"); $(".model-bg").eq(i+1).removeClass("unchoose"); $('#side-menu .av').eq(arr[i]).addClass('boo'); - $('#side-menu .av').eq(arr[i-1]).removeClass('boo'); + $('#side-menu .av').eq(arr[key]).removeClass('boo'); }); _that.find(".Previous").click(function () { _that.addClass("unchoose");