Files
peko-h5/view/peko/modules/rule/red-packet-rule.html
2023-11-01 14:55:44 +08:00

81 lines
2.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>红包规则</title>
<link rel="stylesheet" href="../../common/css/reset.css">
<style>
body {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 15px;
}
.title {
font-weight: bold;
}
.title,
p {
line-height: 22px;
margin-bottom: 16px;
}
.noBottom {
margin-bottom: 0;
}
.tit {
width: 100%;
text-align: center;
line-height: 40px;
font-weight: bold;
font-size: 16px;
}
</style>
</head>
<body>
<!-- <p class="tit">红包规则</p> -->
<p class="show"><b class="b1"></b>发红包收取<span></span>%的手续费不足1鉆石则取整到1鉆石</p>
<p><b class="b2"></b>厅内发红包会发送到直播间,增加直播间的活跃</p>
<p><b class="b3"></b>每个用户抢到的鉆石数将随机分配</p>
<!-- <p>5、抢到礼物红包的用户会在礼物面板背包中使用时与正常送出的礼物完全相同</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/common2.js"></script>
<script>
let urlPrefix = getUrlPrefix()
getInfoFromClient()
setTimeout(() => {
networkRequest({
type: 'GET',
url: urlPrefix + '/client/init',
success (res) {
if (res.code === 200) {
let num = 100 - res.data.redEnvelopeConfig.exchangeDiamondsRate * 100
$('span').html(num)
$('.min').text(res.data.redEnvelopeConfig.endSecond / 60 / 60)
if (num == 0) {
$('.show').hide();
for (let index = 1; index <= 4; index++) {
$(`.b${index + 1}`).text(`${index}`)
}
} else {
for (let index = 1; index <= 4; index++) {
$(`.b${index}`).text(`${index}`)
}
}
}
}
})
}, 50)
</script>
</body>
</html>