diff --git a/frontend/views/common/index.php b/frontend/views/common/index.php index bf1d253..b784d8f 100644 --- a/frontend/views/common/index.php +++ b/frontend/views/common/index.php @@ -162,7 +162,7 @@ - + diff --git a/frontend/web/assets/js/model.js b/frontend/web/assets/js/model.js index e69de29..ad462b7 100644 --- a/frontend/web/assets/js/model.js +++ b/frontend/web/assets/js/model.js @@ -0,0 +1,38 @@ +$(function(){ + var arr=[1,3,5,6,7,8,12]; + $(".prompt").click(function(){ + $(".model_wrap").show(); + $(".model-bg").eq(0).removeClass("unchoose"); + $('.jump').removeClass('unchoose'); + + $('#side-menu .av').eq(0).click().addClass('boo'); + }); + + + + $(".model-bg").each(function (i) { + let _that=$(this); + _that.find(".nextPage").click(function () { + let key= i-1; + console.log(key); + _that.addClass("unchoose"); + $(".model-bg").eq(i+1).removeClass("unchoose"); + $('#side-menu .av').eq(arr[i]).addClass('boo').eq(arr[key]).removeClass('boo'); + }); + _that.find(".Previous").click(function () { + _that.addClass("unchoose"); + $(".model-bg").eq(i-1).removeClass("unchoose"); + }); + }); + + $(".perfection").click(function () { + $(".jump").addClass('unchoose'); + $(".model_wrap").hide(); + }); + + $(".jump").click(function () { + $(this).addClass('unchoose'); + $(".model_wrap").hide(); + $(".model-bg").addClass("unchoose"); + }); +}); \ No newline at end of file diff --git a/frontend/web/assets/js/pop.js b/frontend/web/assets/js/pop.js index ad462b7..e69de29 100644 --- a/frontend/web/assets/js/pop.js +++ b/frontend/web/assets/js/pop.js @@ -1,38 +0,0 @@ -$(function(){ - var arr=[1,3,5,6,7,8,12]; - $(".prompt").click(function(){ - $(".model_wrap").show(); - $(".model-bg").eq(0).removeClass("unchoose"); - $('.jump').removeClass('unchoose'); - - $('#side-menu .av').eq(0).click().addClass('boo'); - }); - - - - $(".model-bg").each(function (i) { - let _that=$(this); - _that.find(".nextPage").click(function () { - let key= i-1; - console.log(key); - _that.addClass("unchoose"); - $(".model-bg").eq(i+1).removeClass("unchoose"); - $('#side-menu .av').eq(arr[i]).addClass('boo').eq(arr[key]).removeClass('boo'); - }); - _that.find(".Previous").click(function () { - _that.addClass("unchoose"); - $(".model-bg").eq(i-1).removeClass("unchoose"); - }); - }); - - $(".perfection").click(function () { - $(".jump").addClass('unchoose'); - $(".model_wrap").hide(); - }); - - $(".jump").click(function () { - $(this).addClass('unchoose'); - $(".model_wrap").hide(); - $(".model-bg").addClass("unchoose"); - }); -}); \ No newline at end of file