调整展示问题
This commit is contained in:
@@ -156,7 +156,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content .lineBox .line .line_in {
|
.content .lineBox .line .line_in {
|
||||||
width: 20%;
|
width: 0%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: linear-gradient(0deg, #FFE993 0%, #EC9409 52%, #FFFC9E 98%);
|
background: linear-gradient(0deg, #FFE993 0%, #EC9409 52%, #FFFC9E 98%);
|
||||||
border-radius: 0.68rem;
|
border-radius: 0.68rem;
|
||||||
|
@@ -158,7 +158,7 @@ body {
|
|||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
|
||||||
.line_in {
|
.line_in {
|
||||||
width: 20%;
|
width: 0%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: linear-gradient(0deg, #FFE993 0%, #EC9409 52%, #FFFC9E 98%);
|
background: linear-gradient(0deg, #FFE993 0%, #EC9409 52%, #FFFC9E 98%);
|
||||||
border-radius: px2rem(51);
|
border-radius: px2rem(51);
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
<div class="text">活动期间全民助力, 每送出一个上新礼物下方进度条+1, 第<b>18/88/128/288/398/488/598/688/788/888</b>名用户成为幸运儿可获得幸运奖励</div>
|
<div class="text">活动期间全民助力, 每送出一个上新礼物下方进度条+1, 第<b>18/88/128/288/398/488/598/688/788/888</b>名用户成为幸运儿可获得幸运奖励</div>
|
||||||
<div class="lineBox">
|
<div class="lineBox">
|
||||||
<div class="line">
|
<div class="line">
|
||||||
<div class="line_in">1/100</div>
|
<div class="line_in"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tavBox">
|
<div class="tavBox">
|
||||||
<!-- <div class="active">18</div>
|
<!-- <div class="active">18</div>
|
||||||
|
@@ -82,17 +82,22 @@ function getConfig () {
|
|||||||
// 处理当前阶段
|
// 处理当前阶段
|
||||||
arr.forEach((val, i) => {
|
arr.forEach((val, i) => {
|
||||||
if (val.luckyUser) {//false
|
if (val.luckyUser) {//false
|
||||||
curstage = val.stage;
|
// curstage = val.stage;
|
||||||
|
// $('.content .lottery .user .tx').attr('src', val.luckyUser.avatar)
|
||||||
|
// $('.content .lottery .user p').text(val.luckyUser.nick);
|
||||||
|
if (i == arr.length - 1) {
|
||||||
|
curstage = arr[arr.length - 1].stage;
|
||||||
$('.content .lottery .user .tx').attr('src', val.luckyUser.avatar)
|
$('.content .lottery .user .tx').attr('src', val.luckyUser.avatar)
|
||||||
$('.content .lottery .user p').text(val.luckyUser.nick);
|
$('.content .lottery .user p').text(val.luckyUser.nick);
|
||||||
|
} else {
|
||||||
|
curstage = arr[i + 1].stage;
|
||||||
|
$('.content .lottery .user .tx').attr('src', `./images/logo.png`);
|
||||||
|
$('.content .lottery .user p').text('虚位以待');
|
||||||
|
}
|
||||||
} else if (i == 0) {
|
} else if (i == 0) {
|
||||||
curstage = arr[0].stage;
|
curstage = arr[0].stage;
|
||||||
$('.content .lottery .user .tx').attr('src', `./images/logo.png`);
|
$('.content .lottery .user .tx').attr('src', `./images/logo.png`);
|
||||||
$('.content .lottery .user p').text('虚位以待');
|
$('.content .lottery .user p').text('虚位以待');
|
||||||
} else if (i == arr[arr.length - 1]) {
|
|
||||||
curstage = arr[arr[arr.length - 1]].stage;
|
|
||||||
$('.content .lottery .user .tx').attr('src', val.luckyUser.avatar)
|
|
||||||
$('.content .lottery .user p').text(val.luckyUser.nick);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// console.log(curstage);
|
// console.log(curstage);
|
||||||
|
Reference in New Issue
Block a user