优化选择食材动效

This commit is contained in:
Dragon
2023-06-27 14:16:41 +08:00
parent 609dea5884
commit 9974ad913c
3 changed files with 10 additions and 6 deletions

View File

@@ -82,6 +82,7 @@ const getUserPieceNum = () => {
success (res) {
if (res.code === 200) {
$('.info-bottom').find('.fragment span').html(res.data.diamonds)
$('.wrap .info-bottom .info-wrap .diamond-num span').text(res.data.diamonds)
myFragment = res.data.diamonds;
} else {
return toastMsg(res.message)
@@ -704,8 +705,9 @@ const sendUserDrawInfo = (itemId, num, tais) => {
tais.data('total-num').number = parseInt(tais.data('total-num').number) + fragmentNum
tais
.stop(true, true)
.animate({ scale: 1.1 }, 200)
.animate({ scale: 1 }, 200, function () {
.animate({ scale: 1.4,rotate:-30,}, 50)//skew(10deg, 10deg)
.animate({ scale: 1.4,rotate:30,}, 20)//skew(10deg, 10deg)
.animate({ scale: 1,rotate:0 }, 200, function () {
if (lock) {
tais.find('.select-num').html('+' + tais.data('total-num').number).hide().fadeIn(200)
}
@@ -1295,7 +1297,7 @@ $(function () {
$countDown.html(countDownTime)
}
})
})
})
//返回页面 重新请求接口
var hiddenProperty = 'hidden' in document ? 'hidden' :
'webkitHidden' in document ? 'webkitHidden' :