From d6c149a33da0894360ae144279ff5698cc50fecd Mon Sep 17 00:00:00 2001 From: chenruiye <862859104@qq.com> Date: Tue, 20 May 2025 11:17:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B9=B8=E8=BF=90=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E6=9F=A5=E7=9C=8B=E7=BB=93=E6=9E=9C=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activity/luckyNumbers/js/resultsView.js | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) 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){