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
ceeb00dd
Commit
ceeb00dd
authored
Nov 07, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
抽奖加toast
parents
b8272ff1
bda3e512
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/components/blessingPreheat/formal-draw/index.js
+5
-0
No files found.
src/components/blessingPreheat/formal-draw/index.js
View file @
ceeb00dd
...
@@ -78,6 +78,7 @@ class FormalDraw extends Component {
...
@@ -78,6 +78,7 @@ class FormalDraw extends Component {
draw
=
id
=>
{
draw
=
id
=>
{
var
_czc
=
_czc
||
[]
var
_czc
=
_czc
||
[]
_czc
.
push
([
"_trackEvent"
,
'点击抽奖'
,
'm端双十一正式活动-点击抽奖'
])
_czc
.
push
([
"_trackEvent"
,
'点击抽奖'
,
'm端双十一正式活动-点击抽奖'
])
<<<<<<<
HEAD
let
{
surplus
,
is_prize
,
hot_value
}
=
this
.
state
.
userValue
let
{
surplus
,
is_prize
,
hot_value
}
=
this
.
state
.
userValue
if
(
hot_value
<
50
){
if
(
hot_value
<
50
){
Toast
.
info
(
'你的福气值未达到参与抽奖所需福气值分数,快去积攒福气值吧'
,
2
,
null
,
false
)
Toast
.
info
(
'你的福气值未达到参与抽奖所需福气值分数,快去积攒福气值吧'
,
2
,
null
,
false
)
...
@@ -89,6 +90,10 @@ class FormalDraw extends Component {
...
@@ -89,6 +90,10 @@ class FormalDraw extends Component {
}
}
if
(
surplus
<
1
){
if
(
surplus
<
1
){
Toast
.
info
(
'你的抽奖次数已用光,快去积攒福气值可获得更多抽奖机会'
,
2
,
null
,
false
)
Toast
.
info
(
'你的抽奖次数已用光,快去积攒福气值可获得更多抽奖机会'
,
2
,
null
,
false
)
=======
let
{
surplus
,
is_prize
}
=
this
.
state
.
userValue
if
(
is_prize
||
this
.
popupInstance
||
surplus
<=
0
)
{
>>>>>>>
bda3e512eab055c3737e2b8e95c5dcc7a5e45d53
return
return
}
}
http
.
post
(
`
${
API
.
home
}
/sys/activity/prize`
,
{
http
.
post
(
`
${
API
.
home
}
/sys/activity/prize`
,
{
...
...
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