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
18a5f283
Commit
18a5f283
authored
Dec 10, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
85f93209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/components/activity/newyear-2019/treasure-box/team.js
+11
-3
No files found.
src/components/activity/newyear-2019/treasure-box/team.js
View file @
18a5f283
...
...
@@ -26,6 +26,7 @@ class TeamInfo extends Component {
this
.
getTeamInfo
();
}
// 获取队伍信息
getTeamInfo
=
()
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/treasure/teamInfo`
).
then
(
res
=>
{
const
{
code
,
data
,
msg
}
=
res
.
data
;
...
...
@@ -35,7 +36,7 @@ class TeamInfo extends Component {
prize_info
,
is_my_team
,
info
,
member
:
this
.
f
ormat
(
member
),
member
:
this
.
f
illTeam
(
member
),
removable_data
})
}
else
{
...
...
@@ -55,7 +56,14 @@ class TeamInfo extends Component {
this
.
props
.
history
.
push
(
`/year/yearTreasure
${
search
}
`
);
}
format
=
(
list
)
=>
{
// 邀请好友组队
createTeam
=
()
=>
{
// TODO 跳转到邀请落地页
this
.
props
.
history
.
push
(
'/activity/newyear-2019/landing'
)
}
// 队伍成员信息必须满五个 不满的需要填充
fillTeam
=
(
list
)
=>
{
let
len
=
list
.
length
;
for
(
let
i
=
0
;
i
<
5
-
len
;
i
++
)
{
list
.
push
({
...
...
@@ -122,7 +130,7 @@ class TeamInfo extends Component {
}
<
/div
>
<
/div
>
<
div
className
=
'invite__btn'
>
<
div
onClick
=
{
this
.
createTeam
}
className
=
'invite__btn'
>
{
is_my_team
?
(
'继续组队'
)
:
(
'组队开宝箱'
)
}
...
...
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