diff --git a/frontend/web/assets/js/pop.js b/frontend/web/assets/js/pop.js index c56c460..ad462b7 100644 --- a/frontend/web/assets/js/pop.js +++ b/frontend/web/assets/js/pop.js @@ -17,8 +17,7 @@ $(function(){ console.log(key); _that.addClass("unchoose"); $(".model-bg").eq(i+1).removeClass("unchoose"); - $('#side-menu .av').eq(arr[i]).addClass('boo'); - $('#side-menu .av').eq(arr[key]).removeClass('boo'); + $('#side-menu .av').eq(arr[i]).addClass('boo').eq(arr[key]).removeClass('boo'); }); _that.find(".Previous").click(function () { _that.addClass("unchoose");