红包规则新增配置失效时间
This commit is contained in:
@@ -2,79 +2,80 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
<title>红包规则</title>
|
<title>红包规则</title>
|
||||||
<link rel="stylesheet" href="../../common/css/reset.css">
|
<link rel="stylesheet" href="../../common/css/reset.css">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title,
|
.title,
|
||||||
p {
|
p {
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noBottom {
|
.noBottom {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tit {
|
.tit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<!-- <p class="tit">红包规则</p> -->
|
<!-- <p class="tit">红包规则</p> -->
|
||||||
<p class="show"><b class="b1"></b>发红包收取<span></span>%的手续费,不足1鉆石则取整到1鉆石</p>
|
<p class="show"><b class="b1"></b>发红包收取<span></span>%的手续费,不足1鉆石则取整到1鉆石</p>
|
||||||
<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>
|
||||||
<script>
|
<script>
|
||||||
let urlPrefix = getUrlPrefix()
|
let urlPrefix = getUrlPrefix()
|
||||||
getInfoFromClient()
|
getInfoFromClient()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
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)
|
||||||
$('.show').hide();
|
if (num == 0) {
|
||||||
for (let index = 1; index <=4; index++) {
|
$('.show').hide();
|
||||||
$(`.b${index+1}`).text(`${index}、`)
|
for (let index = 1; index <= 4; index++) {
|
||||||
|
$(`.b${index + 1}`).text(`${index}、`)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (let index = 1; index <= 4; index++) {
|
||||||
|
$(`.b${index}`).text(`${index}、`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else{
|
})
|
||||||
for (let index = 1; index <=4; index++) {
|
}, 50)
|
||||||
$(`.b${index}`).text(`${index}、`)
|
</script>
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}, 50)
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Reference in New Issue
Block a user