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
3fbcff3b
Commit
3fbcff3b
authored
Dec 10, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组队开宝箱
parent
51fcf7fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
11 deletions
+76
-11
src/components/activity/newyear-2019/treasure-box/team.js
+25
-2
src/components/activity/newyear-2019/treasure-box/team.scss
+51
-9
No files found.
src/components/activity/newyear-2019/treasure-box/team.js
View file @
3fbcff3b
...
...
@@ -34,7 +34,7 @@ export default class TeamInfo extends Component {
prize_info
,
is_my_team
,
info
,
member
,
member
:
this
.
format
(
member
)
})
}
else
{
Toast
.
info
(
msg
);
...
...
@@ -42,6 +42,18 @@ export default class TeamInfo extends Component {
})
}
format
=
(
list
)
=>
{
let
len
=
list
.
length
;
for
(
let
i
=
0
;
i
<
5
-
len
;
i
++
)
{
list
.
push
({
head_img
:
''
,
user_name
:
''
,
nobody
:
true
,
})
}
return
list
;
}
render
()
{
const
{
prize_info
:
{
name
,
stage_no
},
is_my_team
,
info
:
{
removable
,
total
},
member
}
=
this
.
state
;
// 显示文案控制
...
...
@@ -62,7 +74,18 @@ export default class TeamInfo extends Component {
member
&&
member
.
length
>
0
&&
(
member
.
map
((
item
,
index
)
=>
{
return
<
li
key
=
{
index
}
className
=
'member__item'
>
<
img
className
=
'head__image'
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png"
alt
=
""
/>
<
div
className
=
'avatar__container'
>
{
item
.
nobody
?
(
<
img
className
=
'head__image'
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png"
alt
=
""
/>
)
:
(
<
img
className
=
'head__image'
src
=
{
item
.
head_img
}
alt
=
""
/>
)
}
<
div
className
=
'shadow'
><
/div
>
<
/div
>
<
div
className
=
{
`member__join
${
item
.
nobody
?
''
:
'join'
}
`
}
><
/div
>
<
/li
>
})
)
...
...
src/components/activity/newyear-2019/treasure-box/team.scss
View file @
3fbcff3b
...
...
@@ -15,20 +15,59 @@
.member__list
{
height
:
50px
;
width
:
224px
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
margin-right
:
12px
;
.member__item
{
width
:
44px
;
height
:
50px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
align-items
:
center
;
.head__image
{
border
:
1px
solid
#FFF
;
border-radius
:
50%
;
margin-left
:
1px
;
&
:first-child
{
margin-left
:
0
;
.member__join
{
border-radius
:
2px
0
0
2px
;
}
}
&
:last-child
{
.member__join
{
border-radius
:
0
2px
2px
0
;
}
}
.avatar__container
{
width
:
27px
;
height
:
27px
;
position
:
relative
;
border
:
1px
solid
#fff
;
border-radius
:
50%
;
.head__image
{
border-radius
:
50%
;
width
:
100%
;
height
:
100%
;
}
.shadow
{
width
:
24px
;
height
:
3px
;
background
:
#1a3528
;
border-radius
:
50%
;
position
:
absolute
;
bottom
:
-6px
;
}
}
.member__join
{
width
:
40px
;
height
:
5px
;
background
:
rgba
(
0
,
88
,
51
,
1
);
box-shadow
:
1px
1px
2px
0px
rgba
(
3
,
52
,
91
,
0
.35
);
}
.join
{
background
:rgba
(
255
,
221
,
29
,
1
)
;
box-shadow
:
1px
2px
2px
0px
rgba
(
253
,
253
,
253
,
0
.46
)
inset
,
1px
2px
2px
0px
rgba
(
253
,
253
,
253
,
0
.46
)
inset
;
}
}
}
...
...
@@ -38,7 +77,7 @@
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
justify-content
:
flex-start
;
align-items
:
center
;
position
:
relative
;
img
{
...
...
@@ -46,11 +85,14 @@
height
:
50px
;
}
.box__text
{
width
:
100
%
;
line-height
:
12
px
;
font-size
:
12px
;
width
:
100
0px
;
font-size
:
100
px
;
transform
:
scale
(
0
.1
)
;
text-decoration
:
underline
;
color
:
rgba
(
255
,
227
,
0
,
1
);
position
:
absolute
;
bottom
:
-72px
;
text-align
:
center
;
}
.position__arrow
{
width
:
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