小精灵:动效改为播放一秒后请求
This commit is contained in:
@@ -369,7 +369,7 @@ $(function () {
|
||||
if (userDiamonds < diamondNum * currentNum) {
|
||||
return $('.not-enough').show()
|
||||
}
|
||||
draw()
|
||||
playAnimate()
|
||||
} else if ($(this).hasClass('again')) {
|
||||
window.location.reload()
|
||||
}
|
||||
@@ -432,7 +432,7 @@ function prizeRecordFun() {
|
||||
requestStatus = false;
|
||||
result = prizeRecordDom();
|
||||
$('.table').append(result)
|
||||
if(arrLen <10){
|
||||
if (arrLen < 10) {
|
||||
$('.table').append(`<li class="dropload-noData">沒有更多了</li>`)
|
||||
$('.table .dropload-noData').show()
|
||||
}
|
||||
@@ -441,7 +441,7 @@ function prizeRecordFun() {
|
||||
if (page == 1) {
|
||||
$('.table').append(`<li class="dropload-noData">暫無數據</li>`)
|
||||
$('.table .dropload-noData').show()
|
||||
}else {
|
||||
} else {
|
||||
$('.table .dropload-noData').remove()
|
||||
$('.table').append(`<li class="dropload-noData">沒有更多了</li>`)
|
||||
$('.table .dropload-noData').show()
|
||||
@@ -515,7 +515,6 @@ const getUserInfo = () => {
|
||||
}
|
||||
|
||||
const draw = () => {
|
||||
playAnimate()
|
||||
const prodId = prodID;
|
||||
const roomUid = roomId;
|
||||
const cardList = cardID;
|
||||
@@ -531,12 +530,12 @@ const draw = () => {
|
||||
success: function (res) {
|
||||
if (res.code == 200) {
|
||||
getUserInfo()
|
||||
setTimeout(() => {
|
||||
$('.svga').hide()
|
||||
result = res.data
|
||||
console.log('結果', res.data);
|
||||
renderResult()
|
||||
}, 1000)
|
||||
// setTimeout(() => {
|
||||
$('.svga').hide()
|
||||
result = res.data
|
||||
console.log('結果', res.data);
|
||||
renderResult()
|
||||
// }, 1000)
|
||||
}
|
||||
},
|
||||
error: function (res) {
|
||||
@@ -557,6 +556,9 @@ const playAnimate = () => {
|
||||
player.clearsAfterStop = false;
|
||||
player.setVideoItem(videoItem);
|
||||
player.startAnimation();
|
||||
setTimeout(function () {
|
||||
draw()
|
||||
}, 1000)
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user