红包规则新增配置失效时间

This commit is contained in:
Dragon
2023-11-01 14:55:44 +08:00
parent d260b7ca19
commit c2ace6d362

View File

@@ -45,7 +45,7 @@
<p><b class="b2"></b>厅内发红包会发送到直播间,增加直播间的活跃</p> <p><b class="b2"></b>厅内发红包会发送到直播间,增加直播间的活跃</p>
<p><b class="b3"></b>每个用户抢到的鉆石数将随机分配</p> <p><b class="b3"></b>每个用户抢到的鉆石数将随机分配</p>
<!-- <p>5、抢到礼物红包的用户会在礼物面板背包中使用时与正常送出的礼物完全相同</p> --> <!-- <p>5、抢到礼物红包的用户会在礼物面板背包中使用时与正常送出的礼物完全相同</p> -->
<p><b class="b4"></b>未领取的红包,会在30分钟之后发起退款</p> <p><b class="b4"></b>未领取的红包,会在<b class="min"></b>小时之后发起退款</p>
<script src="../../common/js/jquery-3.2.1.min.js"></script> <script src="../../common/js/jquery-3.2.1.min.js"></script>
<script src="../../common/js/common2.js"></script> <script src="../../common/js/common2.js"></script>
@@ -56,17 +56,18 @@
networkRequest({ networkRequest({
type: 'GET', type: 'GET',
url: urlPrefix + '/client/init', url: urlPrefix + '/client/init',
success(res) { success (res) {
if (res.code === 200) { if (res.code === 200) {
let num = 100 - res.data.redEnvelopeConfig.exchangeDiamondsRate * 100 let num = 100 - res.data.redEnvelopeConfig.exchangeDiamondsRate * 100
$('span').html(num) $('span').html(num)
if(num == 0){ $('.min').text(res.data.redEnvelopeConfig.endSecond / 60 / 60)
if (num == 0) {
$('.show').hide(); $('.show').hide();
for (let index = 1; index <=4; index++) { for (let index = 1; index <= 4; index++) {
$(`.b${index+1}`).text(`${index}`) $(`.b${index + 1}`).text(`${index}`)
} }
}else{ } else {
for (let index = 1; index <=4; index++) { for (let index = 1; index <= 4; index++) {
$(`.b${index}`).text(`${index}`) $(`.b${index}`).text(`${index}`)
} }
} }