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"); + }); }); });