From 62849f2061446d77b8727ab703d6b8d1b2f8bf6a Mon Sep 17 00:00:00 2001 From: ZHAOTONGHUA <2066753415@qq.com> Date: Wed, 20 Nov 2019 18:01:15 +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/model.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/web/assets/js/model.js b/frontend/web/assets/js/model.js index 0e4387f..f10d706 100644 --- a/frontend/web/assets/js/model.js +++ b/frontend/web/assets/js/model.js @@ -10,19 +10,16 @@ $(function(){ $(".model-bg").each(function (i) { var _that=$(this); - $.each(arr,function (key,value) { _that.find(".nextPage").click(function () { + console.log(i); _that.addClass("unchoose"); $(".model-bg").eq(i+1).removeClass("unchoose"); - console.log(key); - console.log(value); - // $('#side-menu .av').eq(index).addClass('boo'); + $('#side-menu .av').eq(arr[i]).addClass('boo'); }); _that.find(".Previous").click(function () { _that.addClass("unchoose"); $(".model-bg").eq(i-1).removeClass("unchoose"); }); - }); }); $(".perfection").click(function () {