优化选择食材动效
This commit is contained in:
@@ -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' :
|
||||
|
Reference in New Issue
Block a user