Commit 5a52d8d6 by wangshuo

当日剩余次数增加

parent 3dd04d46
...@@ -184,7 +184,16 @@ class FormalDraw extends Component { ...@@ -184,7 +184,16 @@ class FormalDraw extends Component {
{ {
list.map((listItem, index) => { list.map((listItem, index) => {
return ( return (
<div className="content" key={index}> <div className={`content ${today === userValue.today ? 'current':''}`} key={index}>
{
(isLogin && (today === userValue.today))
?
<div className="prize_number_con">
当日剩余抽奖次数:
<span className={'prize__number'}>{userValue.surplus}</span>
</div>
: ""
}
<div className="title"> <div className="title">
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-left.png" <img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-left.png"
alt=""/> alt=""/>
...@@ -199,6 +208,7 @@ class FormalDraw extends Component { ...@@ -199,6 +208,7 @@ class FormalDraw extends Component {
src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-right.png" src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-right.png"
alt=""/> alt=""/>
</div> </div>
{ {
isLogin ? isLogin ?
<div className="progress-bar"> <div className="progress-bar">
...@@ -231,7 +241,7 @@ class FormalDraw extends Component { ...@@ -231,7 +241,7 @@ class FormalDraw extends Component {
case 3: case 3:
statusContent = ( statusContent = (
<> <>
<div>参与抽奖</div> <div>立即抽奖</div>
<div>{item.num}人正在参与</div> <div>{item.num}人正在参与</div>
</> </>
) )
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
.content { .content {
position: relative;
.title { .title {
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -126,6 +127,26 @@ ...@@ -126,6 +127,26 @@
} }
} }
.prize_number_con {
width:280px;
height:30px;
background:rgba(255,255,255,1);
border-radius:15px;
font-size:14px;
font-weight:400;
color:rgba(83,39,250,1);
text-align: center;
text-align-last: center;
line-height: 30px;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 18px;
}
}
.current {
padding-top: 50px;
} }
.progress-bar { .progress-bar {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment