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
f41284bf
Commit
f41284bf
authored
Dec 16, 2019
by
FE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '00' into dev
parents
60d68290
e6594804
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
8 deletions
+47
-8
src/components/activity/newyear-2019/common/prizes/index.js
+4
-3
src/components/activity/newyear-2019/myTreasure/index.js
+10
-5
src/components/activity/newyear-2019/myTreasure/index.scss
+33
-0
No files found.
src/components/activity/newyear-2019/common/prizes/index.js
View file @
f41284bf
...
...
@@ -67,11 +67,12 @@ class Prizes extends Component {
innerOffsetTop
=
0.12458
,
footerOffsetTop
=
0.595
,
h
=
this
.
prizeList
.
scrollHeight
,
scrollListHeight
=
headHeight
+
h
-
(
innerOffsetTop
*
headHeight
)
-
(
footerOffsetTop
*
footerHeight
)
+
footerHeight
scrollListHeight
=
headHeight
+
h
-
(
innerOffsetTop
*
headHeight
)
-
(
footerOffsetTop
*
footerHeight
)
+
footerHeight
,
bottomOffset
=
27
this
.
prizeBox
.
style
.
height
=
`
${
scrollListHeight
}
px`
this
.
prizeBox
.
style
.
height
=
`
${
scrollListHeight
+
bottomOffset
}
px`
this
.
innerBox
.
style
.
height
=
`
${
h
}
px`
this
.
bg
.
style
.
height
=
`
${
h
-
footerHeight
+
innerOffsetTop
*
headHeight
}
px`
this
.
bg
.
style
.
height
=
`
${
h
-
footerHeight
+
innerOffsetTop
*
headHeight
+
bottomOffset
}
px`
}
return
{
unfoldList
:
!
prev
.
unfoldList
}
})
...
...
src/components/activity/newyear-2019/myTreasure/index.js
View file @
f41284bf
...
...
@@ -248,7 +248,9 @@ class MyTreasure extends Component {
http
.
get
(
`
${
API
.
home
}
/sys/treasure/my`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
this
.
rule
=
data
.
rule
;
this
.
setState
({
rule
:
data
.
rule
});
if
(
Array
.
isArray
(
data
.
team
)
&&
data
.
team
.
length
>
0
)
{
this
.
initNoSplitInfo
(
data
.
team
);
this
.
judgeIsHaveId
(
data
.
team
);
...
...
@@ -263,10 +265,6 @@ class MyTreasure extends Component {
isEmpty
:
true
,
});
}
}
else
if
(
code
===
4030
||
code
===
4040
)
{
this
.
setState
({
isEmpty
:
true
,
});
}
});
}
...
...
@@ -402,6 +400,7 @@ class MyTreasure extends Component {
isCreate
,
createInfo
,
prizeName
,
rule
,
}
=
this
.
state
;
return
(
<
div
data
-
skip
=
"treasure"
>
...
...
@@ -530,6 +529,12 @@ class MyTreasure extends Component {
<
/Mask
>
<
/div
>
}
<
div
className
=
"activity-rule__header"
>
<
i
className
=
"activity-rule__decorate"
><
/i
>
<
h2
className
=
"activity-rule__title"
>
活动规则
<
/h2
>
<
i
className
=
"activity-rule__decorate"
><
/i
>
<
/div
>
<
div
className
=
"activity-rule__body"
dangerouslySetInnerHTML
=
{{
__html
:
rule
}}
><
/div
>
<
/div
>
)
}
...
...
src/components/activity/newyear-2019/myTreasure/index.scss
View file @
f41284bf
...
...
@@ -47,6 +47,39 @@
color
:
#090909
;
background-color
:
#FFE319
;
}
.activity-rule__header
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
margin
:
49px
0
0
;
}
.activity-rule__title
{
margin
:
0
16px
;
font-size
:
18px
;
color
:
#FFE300
;
line-height
:
1
;
}
.activity-rule__decorate
{
display
:
inline-block
;
width
:
11px
;
height
:
12px
;
background-size
:
cover
;
background-image
:
url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-decorate-0.png')
;
}
.activity-rule__body
{
margin
:
13px
0
0
;
padding
:
0
21px
40px
;
p
{
font-size
:
12px
;
color
:
#FFE300
;
line-height
:
18px
;
}
}
}
// 所有弹窗
...
...
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