修改幸运数字查看结果页面标题展示总奖池数
This commit is contained in:
@@ -93,6 +93,13 @@ body {
|
||||
font-size: 0.3466666667rem;
|
||||
color: #FFF783;
|
||||
line-height: 0.48rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.receiverList .title img {
|
||||
width: 0.4rem;
|
||||
height: 0.4rem;
|
||||
margin: 0 0.1066666667rem;
|
||||
}
|
||||
.receiverList .receiver_content .receiver_box {
|
||||
background: linear-gradient(0deg, #170D03, #5E2300);
|
||||
|
@@ -114,7 +114,13 @@ body {
|
||||
font-size: px2rem(26);
|
||||
color: #FFF783;
|
||||
line-height: px2rem(36);
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
img{
|
||||
width: px2rem(30);
|
||||
height: px2rem(30);
|
||||
margin: 0 px2rem(8);
|
||||
}
|
||||
}
|
||||
|
||||
.receiver_content {
|
||||
|
@@ -74,6 +74,13 @@ function getData() {
|
||||
hideLoading(layerIndex);
|
||||
if (res.code == 200) {
|
||||
$('.page_title').text(res.data.date + ' ' + langReplace(localLang.demoModule.Fortunate))
|
||||
// 计算总奖池数
|
||||
let totalJackpot = 0;
|
||||
if(res.data.receiverList){
|
||||
totalJackpot = res.data.receiverList.reduce((sum, item) => {
|
||||
return sum + (item.jackpot || 0); // 加上当前项的 jackpot
|
||||
}, 0);
|
||||
}
|
||||
if (res.data.status == 0) {
|
||||
// 没中奖
|
||||
if(!res.data.receiverList){
|
||||
@@ -88,18 +95,20 @@ function getData() {
|
||||
$('.Received_Successful').hide();
|
||||
$('.Put_wallet').hide();
|
||||
$('.receiverList').css('margin-top', '2.6rem')
|
||||
$('.receiverList .title .num').text(totalJackpot)
|
||||
}
|
||||
|
||||
} else if (res.data.status == 1) {
|
||||
// 自己中奖的已领取
|
||||
$('.one_pool').show()
|
||||
$('.No_one_pool').hide()
|
||||
$('.receiverList .title .num').text(res.data?.receiverList.length)
|
||||
$('.receiverList .title .num').text(totalJackpot)
|
||||
$('.top_img .conis_bg .jackpot').text(res.data.jackpot)
|
||||
} else if (res.data.status == -1) {
|
||||
// 自己中奖的已过期
|
||||
$('.one_pool').show()
|
||||
$('.No_one_pool').hide()
|
||||
$('.receiverList .title .num').text(totalJackpot)
|
||||
$('.top_img .topImg').attr('src', './images/jinbibx_guoqi.png')
|
||||
$('.top_img .conis_bg').css({
|
||||
'background-image': "url('./images/conis_bg_guoqi.png')",
|
||||
|
@@ -34,7 +34,7 @@ langAr = {
|
||||
Fortunate:'محظوظ',
|
||||
Coins_expired:'انتهت صلاحية العملات المعدنية',
|
||||
Remember_time:'تذكر أن تجمعها في المرة القادمة',
|
||||
already_claimed:'تمت المطالبة بها بالفعل',
|
||||
already_claimed:'مجموع الأسعار',
|
||||
Only_data_30:'عرض بيانات آخر 30 يوماً فقط',
|
||||
No_one_pool:'لم يشارك أحد في مجموعة الجوائز هذه',
|
||||
Received_Successful:'تم الاستلام بنجاح',
|
||||
|
@@ -34,7 +34,7 @@ langEn = {
|
||||
Fortunate:'Fortunate',
|
||||
Coins_expired:'Coins has expired',
|
||||
Remember_time:'Remember to collect it next time',
|
||||
already_claimed:'have already claimed',
|
||||
already_claimed:'Total Price Pool',
|
||||
Only_data_30:'Only show last 30 days data',
|
||||
No_one_pool:'No one has shared this prize pool',
|
||||
Received_Successful:'Received Successful',
|
||||
|
@@ -34,7 +34,7 @@ langTr = {
|
||||
Fortunate:'Şanslı',
|
||||
Coins_expired:'Madeni paraların süresi doldu',
|
||||
Remember_time:'Bir dahaki sefere toplamayı unutmayın',
|
||||
already_claimed:'zaten talep etti',
|
||||
already_claimed:'Toplam Fiyat Havuzu',
|
||||
Only_data_30:'Yalnızca son 30 günlük verileri göster',
|
||||
No_one_pool:'Kimse bu ödül havuzunu paylaşmadı',
|
||||
Received_Successful:'Başarılı Alındı',
|
||||
|
@@ -34,7 +34,7 @@ langZh = {
|
||||
Fortunate:'幸運',
|
||||
Coins_expired:'硬幣已過期',
|
||||
Remember_time:'下次記得領取',
|
||||
already_claimed:'已經領取',
|
||||
already_claimed:'总奖池',
|
||||
Only_data_30:'只顯示最近30天的數據',
|
||||
No_one_pool:'無人分享此獎金池',
|
||||
Received_Successful:'接收成功',
|
||||
|
@@ -33,7 +33,7 @@
|
||||
<div class="Put_wallet">Put in your wallet</div>
|
||||
|
||||
<div class="receiverList">
|
||||
<div class="title"> <span class="num">0</span> <span class="already_claimed"> have already claimed</span></div>
|
||||
<div class="title"> <span class="already_claimed">Price Pool Total</span> <img src="./images/coins.png" alt=""> <span class="num">0</span> </div>
|
||||
<div class="receiver_content">
|
||||
<!-- <div class="receiver_box">
|
||||
<div class="avatar">
|
||||
|
Reference in New Issue
Block a user