修改结果弹窗礼物名称字段,中奖记录弹窗初始化

This commit is contained in:
qf
2023-01-10 15:40:07 +08:00
parent ab175d9390
commit edfeb646f6

View File

@@ -306,6 +306,7 @@ $(function () {
// $('.dropload-refresh').css({ display: 'block' })
// $('.dropload-down').hide()
// $('.dom').hide();
$('.table li').remove();
prizeRecord = [];
prizeRecordFun()
$('.table-shade').show()
@@ -416,12 +417,16 @@ function prizeRecordFun() {
requestStatus = false;
result = prizeRecordDom();
$('.table').append(result)
if(arrLen <10){
$('.table').append(`<li class="dropload-noData">沒有更多了</li>`)
$('.table .dropload-noData').show()
}
} else {// 如果沒有數據
requestStatus = true
if (page == 0) {
$('.table').append(`<li class="noData">暫無數據</li>`)
$('.table .noData').show()
} else {
if (page == 1) {
$('.table').append(`<li class="dropload-noData">暫無數據</li>`)
$('.table .dropload-noData').show()
}else {
$('.table').append(`<li class="dropload-noData">沒有更多了</li>`)
$('.table .dropload-noData').show()
}
@@ -542,7 +547,7 @@ const renderResult = () => {
$('.result-content p span').html(animalArr[index].animalName)
$('.result-content .awardD span').html(result.receiveGoldNum)
$('.result-content .headwear').attr('src', result.headwearPic)
$('.result-content .indate').html(`${result.receiveGiftName}${result.headwearDays}`)
$('.result-content .indate').html(`${result.headwearName}${result.headwearDays}`)
if (result.win) {
$('.result-content').addClass('success')