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
01b93f3e
Commit
01b93f3e
authored
Nov 11, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app-bug
parent
9b5257be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
src/components/blessingPreheat/formal-draw/index.js
+12
-0
src/components/blessingPreheat/index.js
+1
-1
No files found.
src/components/blessingPreheat/formal-draw/index.js
View file @
01b93f3e
...
...
@@ -30,6 +30,18 @@ class FormalDraw extends Component {
}
componentDidMount
()
{
this
.
getPrizeData
()
}
shouldComponentUpdate
(
nextProps
,
nextState
,
nextContext
)
{
if
(
this
.
props
.
isApp
!==
nextProps
.
isApp
)
{
this
.
getPrizeData
()
return
false
;
}
return
true
;
}
getPrizeData
=
()
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/activity/prize_data`
)
.
then
(
res
=>
{
const
{
data
,
code
,
msg
}
=
res
.
data
...
...
src/components/blessingPreheat/index.js
View file @
01b93f3e
...
...
@@ -586,7 +586,7 @@ class BlessingPreheat extends Component {
<
button
className
=
"luck-draw__button"
onClick
=
{()
=>
this
.
handleToShow
(
'isRule'
)}
>
活动规则
><
/button
>
<
button
className
=
'prize-record'
onClick
=
{
this
.
getMyPrizeRecord
}
>
中奖记录
><
/button
>
<
/div
>
<
FormalDraw
toLogin
=
{
this
.
toLogin
}
/
>
<
FormalDraw
toLogin
=
{
this
.
toLogin
}
isApp
=
{
isApp
}
/
>
<
/
>
}
...
...
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