From d33e60ff1aee1442708038b4350c7a0092232f85 Mon Sep 17 00:00:00 2001 From: ZHAOTONGHUA <2066753415@qq.com> Date: Thu, 21 Nov 2019 15:39:43 +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/popo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/web/assets/js/popo.js b/frontend/web/assets/js/popo.js index 0884d4f..95602b3 100644 --- a/frontend/web/assets/js/popo.js +++ b/frontend/web/assets/js/popo.js @@ -5,11 +5,9 @@ $(function(){ $(".model-bg").eq(0).removeClass("unchoose"); $('.jump').removeClass('unchoose'); - $('#side-menu .av').eq(0).click().addClass('boo'); + $('#side-menu .av').eq(arr[0]).click().addClass('boo'); }); - - $(".model-bg").each(function (i) { let _that=$(this); _that.find(".nextPage").click(function () { @@ -22,6 +20,8 @@ $(function(){ _that.find(".Previous").click(function () { _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'); }); });