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
23ae3a76
Commit
23ae3a76
authored
Jul 13, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周年庆
parent
a52f4919
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/components/activity/2020-717/question/index.js
+4
-3
No files found.
src/components/activity/2020-717/question/index.js
View file @
23ae3a76
...
@@ -81,9 +81,10 @@ class Question extends Component {
...
@@ -81,9 +81,10 @@ class Question extends Component {
})
})
}
}
resultFun
=
()
=>
{
resultFun
=
(
e
)
=>
{
const
{
history
}
=
this
.
props
const
{
history
}
=
this
.
props
if
(
this
.
state
.
is_sign
)
{
let
notNeedSign
=
e
.
target
.
getAttribute
(
'data-sign'
)
==
0
if
(
this
.
state
.
is_sign
||
!
notNeedSign
)
{
history
.
push
(
'/anniversary_2020#lottery'
)
history
.
push
(
'/anniversary_2020#lottery'
)
}
else
{
}
else
{
http
.
get
(
`
${
API
.
home
}
/activity/anniversary/sign`
)
http
.
get
(
`
${
API
.
home
}
/activity/anniversary/sign`
)
...
@@ -281,7 +282,7 @@ function BottomButton({resultFun, result, submit, isTeamHead, redo, isActivityEn
...
@@ -281,7 +282,7 @@ function BottomButton({resultFun, result, submit, isTeamHead, redo, isActivityEn
if
(
result
.
analysis
)
{
if
(
result
.
analysis
)
{
return
!
result
.
is_sign
return
!
result
.
is_sign
?
<
button
className
=
{
'lottery-related'
}
onClick
=
{
resultFun
}
>
签到领取抽奖机会
<
/button
>
?
<
button
className
=
{
'lottery-related'
}
onClick
=
{
resultFun
}
>
签到领取抽奖机会
<
/button
>
:
<
button
className
=
{
'submit'
}
onClick
=
{
resultFun
}
>
去抽奖
<
/button
>
:
<
button
className
=
{
'submit'
}
onClick
=
{
resultFun
}
data
-
sign
=
{
'0'
}
>
去抽奖
<
/button
>
}
}
return
<
button
className
=
{
'submit'
}
onClick
=
{
submit
}
>
提交
<
/button
>
return
<
button
className
=
{
'submit'
}
onClick
=
{
submit
}
>
提交
<
/button
>
}
}
...
...
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