From 8f0f9a9987c7ebe1e48b9f8506496b9ca1c11698 Mon Sep 17 00:00:00 2001 From: ZHAOTONGHUA <2066753415@qq.com> Date: Wed, 20 Nov 2019 17:41:47 +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/css/model.css | 2 +- frontend/web/assets/js/model.js | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/frontend/web/assets/css/model.css b/frontend/web/assets/css/model.css index a68deb2..4d1c9e2 100644 --- a/frontend/web/assets/css/model.css +++ b/frontend/web/assets/css/model.css @@ -92,5 +92,5 @@ top:17px; } .boo{ - border:5px solid #fff; + border:2px solid #fff; } \ No newline at end of file diff --git a/frontend/web/assets/js/model.js b/frontend/web/assets/js/model.js index 677872b..b220ae9 100644 --- a/frontend/web/assets/js/model.js +++ b/frontend/web/assets/js/model.js @@ -1,23 +1,26 @@ $(function(){ + var arr=[1,3,5,6,7,8,9]; $(".prompt").click(function(){ $(".model_wrap").show(); $(".model-bg").eq(0).removeClass("unchoose"); $('.jump').removeClass('unchoose'); - $('#side-menu .av').eq(3).addClass('boo'); - $('#side-menu').addClass('boo'); + $('#side-menu .av').eq(0).addClass('boo'); }); $(".model-bg").each(function (i) { var _that=$(this); - _that.find(".nextPage").click(function () { - _that.addClass("unchoose"); - $(".model-bg").eq(i+1).removeClass("unchoose"); + $.each(arr,function (index) { + console.log(index); + _that.find(".nextPage").click(function () { + _that.addClass("unchoose"); + $(".model-bg").eq(i+1).removeClass("unchoose"); - }); - _that.find(".Previous").click(function () { - _that.addClass("unchoose"); - $(".model-bg").eq(i-1).removeClass("unchoose"); + }); + _that.find(".Previous").click(function () { + _that.addClass("unchoose"); + $(".model-bg").eq(i-1).removeClass("unchoose"); + }); }); });