81 lines
2.6 KiB
HTML
81 lines
2.6 KiB
HTML
<!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> |