From d79d6f9ed6d959ca77983a6ee8175723cd5c2635 Mon Sep 17 00:00:00 2001 From: Lee <342694918@qq.com> Date: Sun, 11 Sep 2022 15:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=BD=E5=A5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/script.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/js/script.js b/js/script.js index 6c40178..7b3ca33 100644 --- a/js/script.js +++ b/js/script.js @@ -35,17 +35,20 @@ jQuery(function($){ $('.turntable').css({transition: 'all 3s'}); $('.turntable').css({transform: 'rotate('+needNum+'deg)'}); } + // 打开弹窗 setTimeout(function(){ $('.pull-bg').addClass('show'); $('.result-tips').addClass('show'); - $('.turntable').css({transition: 'all 0s'}); - $('.turntable').css({transform: 'rotate(0)'}); },3000) }); // 关闭弹窗 $('.tips-btn').click(function(){ - // 刷新当前页面 - location.reload(true); + // 关闭弹窗 + $('.pull-bg').removeClass('show'); + $('.result-tips').removeClass('show'); + // 归零 + $('.turntable').css({transition: 'all 0s'}); + $('.turntable').css({transform: 'rotate(0)'}); }); }