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
105a10d2
Commit
105a10d2
authored
Dec 22, 2019
by
FE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '00'
parents
25dcce8b
b9631254
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
src/components/activity/newyear-2019/common/splitSuccess/index.js
+1
-2
src/components/activity/newyear-2019/myTreasure/index.js
+13
-7
No files found.
src/components/activity/newyear-2019/common/splitSuccess/index.js
View file @
105a10d2
...
...
@@ -16,7 +16,6 @@ class SplitSuccess extends Component {
http
.
post
(
`
${
API
.
home
}
/sys/split_treasure`
,
params
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
;
if
(
code
===
200
)
{
debugger
;
successSplitTreasure
(
data
);
if
(
data
.
bind_phone
)
{
setTimeout
(()
=>
{
...
...
@@ -24,7 +23,7 @@ class SplitSuccess extends Component {
},
500
);
}
else
if
(
data
.
bind_address
)
{
setTimeout
(()
=>
{
handleToBindAddress
(
data
.
id
);
handleToBindAddress
(
data
.
id
,
data
.
prize_name
);
},
500
);
}
}
else
if
(
code
===
12000
)
{
...
...
src/components/activity/newyear-2019/myTreasure/index.js
View file @
105a10d2
...
...
@@ -162,7 +162,7 @@ class MyTreasure extends Component {
},
500
)
}
else
if
(
data
.
bind_address
)
{
setTimeout
(()
=>
{
this
.
handleToBindAddress
(
data
.
id
)
this
.
handleToBindAddress
(
data
.
id
,
data
.
prize_name
)
},
500
)
}
}
else
if
(
code
===
12000
)
{
...
...
@@ -218,14 +218,20 @@ class MyTreasure extends Component {
}
// 绑定地址--展示
handleToBindAddress
=
(
id
)
=>
{
handleToBindAddress
=
(
id
,
prizeName
=
''
)
=>
{
if
(
id
)
{
const
{
teams
}
=
this
.
state
const
data
=
teams
.
filter
(
item
=>
item
.
id
==
id
)
if
(
data
.
length
>
0
)
{
if
(
prizeName
)
{
this
.
setState
({
prizeName
:
data
[
0
][
'prize_name'
]
})
prizeName
});
}
else
{
const
{
teams
}
=
this
.
state
const
data
=
teams
.
filter
(
item
=>
item
.
id
==
id
)
if
(
data
.
length
>
0
)
{
this
.
setState
({
prizeName
:
data
[
0
][
'prize_name'
]
})
}
}
}
this
.
setState
({
...
...
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