diff --git a/view/molistar/activity/luckyNumbers/js/resultsView.js b/view/molistar/activity/luckyNumbers/js/resultsView.js index c4229b99..3ec21b4f 100644 --- a/view/molistar/activity/luckyNumbers/js/resultsView.js +++ b/view/molistar/activity/luckyNumbers/js/resultsView.js @@ -74,28 +74,32 @@ function getData() { hideLoading(layerIndex); if (res.code == 200) { $('.page_title').text(res.data.date + ' ' + langReplace(localLang.demoModule.Fortunate)) - if (res.data.status == 0 || ((!res.data.jackpot||res.data.jackpot==0) && !res.data.receiverList)) { - // 没人中奖 + if (res.data.status == 0) { + // 没中奖 + if(!res.data.receiverList){ + // 都没人没中奖 $('.one_pool').hide() $('.No_one_pool').show() + }else{ + // 有人中奖 自己没中奖 + $('.one_pool').show() + $('.No_one_pool').hide() + $('.top_img').hide(); + $('.Received_Successful').hide(); + $('.Put_wallet').hide(); + $('.receiverList').css('margin-top', '2.6rem') + } } else if (res.data.status == 1) { - // 中奖的已领取 + // 自己中奖的已领取 $('.one_pool').show() $('.No_one_pool').hide() $('.receiverList .title .num').text(res.data?.receiverList.length) $('.top_img .conis_bg .jackpot').text(res.data.jackpot) } else if (res.data.status == -1) { + // 自己中奖的已过期 $('.one_pool').show() $('.No_one_pool').hide() - if (!res.data.jackpot || res.data.jackpot == 0) { - // 没中奖的过期 - $('.top_img').hide(); - $('.Received_Successful').hide(); - $('.Put_wallet').hide(); - $('.receiverList').css('margin-top', '2.6rem') - } else { - // 有中奖的过期 $('.top_img .topImg').attr('src', './images/jinbibx_guoqi.png') $('.top_img .conis_bg').css({ 'background-image': "url('./images/conis_bg_guoqi.png')", @@ -104,7 +108,7 @@ function getData() { $('.top_img .conis_bg .jackpot').text(res.data.jackpot) $('.Received_Successful').text(langReplace(localLang.demoModule.Coins_expired)) $('.Put_wallet').text(langReplace(localLang.demoModule.Remember_time)) - } + } if(res.data.receiverList){