Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
5a52d8d6
Commit
5a52d8d6
authored
Nov 08, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
当日剩余次数增加
parent
3dd04d46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
src/components/blessingPreheat/formal-draw/index.js
+12
-2
src/components/blessingPreheat/formal-draw/index.scss
+21
-0
No files found.
src/components/blessingPreheat/formal-draw/index.js
View file @
5a52d8d6
...
...
@@ -184,7 +184,16 @@ class FormalDraw extends Component {
{
list
.
map
((
listItem
,
index
)
=>
{
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"
>
<
img
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-left.png"
alt
=
""
/>
...
...
@@ -199,6 +208,7 @@ class FormalDraw extends Component {
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-right.png"
alt
=
""
/>
<
/div
>
{
isLogin
?
<
div
className
=
"progress-bar"
>
...
...
@@ -231,7 +241,7 @@ class FormalDraw extends Component {
case
3
:
statusContent
=
(
<>
<
div
>
参与
抽奖
<
/div
>
<
div
>
立即
抽奖
<
/div
>
<
div
>
{
item
.
num
}
人正在参与
<
/div
>
<
/
>
)
...
...
src/components/blessingPreheat/formal-draw/index.scss
View file @
5a52d8d6
...
...
@@ -85,6 +85,7 @@
.content
{
position
:
relative
;
.title
{
display
:
flex
;
justify-content
:
center
;
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment