diff --git a/frontend/web/assets/js/popo.js b/frontend/web/assets/js/popo.js index a219f31..25e9f79 100644 --- a/frontend/web/assets/js/popo.js +++ b/frontend/web/assets/js/popo.js @@ -1,5 +1,5 @@ $(function(){ - var arr=[1,3,5,6,7,8,12]; + var arr=[0,1,3,5,6,7,8,12]; $(".prompt").click(function(){ $(".model_wrap").show(); $(".model-bg").eq(0).removeClass("unchoose"); @@ -17,7 +17,7 @@ $(function(){ console.log(key); _that.addClass("unchoose"); $(".model-bg").eq(i+1).removeClass("unchoose"); - $('#side-menu .av').eq(arr[i+1]).addClass('boo').eq(arr[i]).removeClass('boo'); + $('#side-menu .av').eq(arr[i]).addClass('boo').parent(arr[i-1]).removeClass('boo'); }); _that.find(".Previous").click(function () { _that.addClass("unchoose");