优化抽奖

master
Lee 2022-09-11 15:32:21 +08:00
parent 9a86ec0eb0
commit d79d6f9ed6
1 changed files with 7 additions and 4 deletions

View File

@ -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)'});
});
}