From cb96a5c5fc5088a4ebd936946fc9fb9c8956c82a Mon Sep 17 00:00:00 2001 From: ZHAOTONGHUA <2066753415@qq.com> Date: Tue, 19 Nov 2019 14:46:38 +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/js/popUps.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/web/assets/js/popUps.js b/frontend/web/assets/js/popUps.js index d25f3ed..585bd00 100644 --- a/frontend/web/assets/js/popUps.js +++ b/frontend/web/assets/js/popUps.js @@ -10,12 +10,13 @@ $(function(){ _that.find(".nextPage").click(function () { _that.addClass("unchoose"); $(".model-bg").eq(i+1).removeClass("unchoose"); + var a=$(".model-bg").last().toggleClass("unchoose"); + if(!a){ + $(this).addClass('unchoose'); + $(".model_wrap").hide(); + $(".model-bg").addClass("unchoose"); + } }); - _that.last().click(function () { - $(this).addClass('unchoose'); - $(".model_wrap").hide(); - $(".model-bg").addClass("unchoose"); - }) }); $(".jump").click(function () {