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
75adef29
Commit
75adef29
authored
Nov 12, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽奖预约
parent
5909e197
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
src/components/blessingPreheat/formal-draw/index.js
+19
-4
No files found.
src/components/blessingPreheat/formal-draw/index.js
View file @
75adef29
...
...
@@ -34,11 +34,11 @@ class FormalDraw extends Component {
}
shouldComponentUpdate
(
nextProps
,
nextState
,
nextContext
)
{
if
(
this
.
props
.
isApp
!==
nextProps
.
isApp
)
{
if
(
this
.
props
.
isApp
!==
nextProps
.
isApp
)
{
this
.
getPrizeData
()
return
false
;
return
false
}
return
true
;
return
true
}
getPrizeData
=
()
=>
{
...
...
@@ -161,7 +161,8 @@ class FormalDraw extends Component {
if
(
this
.
subscribePopupInstance
)
{
return
}
http
.
get
(
`
${
API
[
"base-api"
]}
/sys/activity/create_pre_qrcode`
,{
params
:{
id
}})
if
(
!
this
.
state
.
userValue
[
'is_pre'
])
{
http
.
get
(
`
${
API
[
"base-api"
]}
/sys/activity/create_pre_qrcode`
,
{
params
:
{
id
}})
.
then
(
res
=>
{
const
{
code
,
data
,
msg
}
=
res
.
data
if
(
code
==
200
)
{
...
...
@@ -180,6 +181,20 @@ class FormalDraw extends Component {
Toast
.
info
(
msg
,
2
,
null
,
false
)
}
})
}
else
{
http
.
get
(
`
${
API
[
"base-api"
]}
/activity_pre/
${
id
}
`
)
.
then
(
res
=>
{
const
{
code
}
=
res
.
data
if
(
code
==
200
)
{
Toast
.
info
(
'预约成功'
,
2
,
null
,
false
)
}
})
.
catch
(
err
=>
{
console
.
log
(
err
)
})
}
}
render
()
{
...
...
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