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
da7eb068
Commit
da7eb068
authored
Nov 10, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
399c2cfb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
36 deletions
+45
-36
src/components/blessingPreheat/formal-draw/index.js
+3
-1
src/components/blessingPreheat/index.js
+40
-34
src/components/blessingPreheat/live/index.js
+2
-1
No files found.
src/components/blessingPreheat/formal-draw/index.js
View file @
da7eb068
...
@@ -130,7 +130,7 @@ class FormalDraw extends Component {
...
@@ -130,7 +130,7 @@ class FormalDraw extends Component {
lotteryFunc
=
(
status
,
id
)
=>
{
lotteryFunc
=
(
status
,
id
)
=>
{
const
{
hasError
}
=
this
.
props
.
user
const
{
hasError
}
=
this
.
props
.
user
if
(
hasError
)
{
if
(
hasError
&&
status
!=
4
)
{
this
.
props
.
toLogin
()
this
.
props
.
toLogin
()
return
return
}
}
...
@@ -138,6 +138,8 @@ class FormalDraw extends Component {
...
@@ -138,6 +138,8 @@ class FormalDraw extends Component {
this
.
draw
(
id
)
this
.
draw
(
id
)
}
else
if
(
status
==
2
)
{
}
else
if
(
status
==
2
)
{
this
.
subscribe
(
id
)
this
.
subscribe
(
id
)
}
else
if
(
status
==
4
)
{
location
.
href
=
`/prize-winner-list?tid=
${
id
}
`
}
}
}
}
...
...
src/components/blessingPreheat/index.js
View file @
da7eb068
...
@@ -421,41 +421,47 @@ class BlessingPreheat extends Component {
...
@@ -421,41 +421,47 @@ class BlessingPreheat extends Component {
}
}
getMyPrizeRecord
=
()
=>
{
getMyPrizeRecord
=
()
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/activity/my_lotteries`
)
const
isLoginnew
=
!
this
.
props
.
user
.
hasError
.
then
(
res
=>
{
const
{
history
}
=
this
.
props
const
{
code
,
data
,
msg
}
=
res
.
data
if
(
!
isLoginnew
)
{
if
(
code
==
200
)
{
history
.
push
(
'/passport'
)
this
.
recordInstance
=
Popup
({
}
else
{
title
:
'我的中奖纪录'
,
http
.
get
(
`
${
API
.
home
}
/sys/activity/my_lotteries`
)
className
:
'prize-record-popup'
,
.
then
(
res
=>
{
content
:
(
const
{
code
,
data
,
msg
}
=
res
.
data
<
div
className
=
{
'record-container'
}
>
if
(
code
==
200
)
{
<
div
className
=
"list-title"
>
this
.
recordInstance
=
Popup
({
<
div
>
时间
<
/div
>
title
:
'我的中奖纪录'
,
<
div
>
奖品名称
<
/div
>
className
:
'prize-record-popup'
,
<
/div
>
content
:
(
<
ul
>
<
div
className
=
{
'record-container'
}
>
{
<
div
className
=
"list-title"
>
Array
.
isArray
(
data
)
<
div
>
时间
<
/div
>
?
data
.
map
((
item
,
index
)
=>
{
<
div
>
奖品名称
<
/div
>
return
(
<
/div
>
<
li
key
=
{
index
}
>
<
ul
>
<
div
className
=
"time"
>
{
item
.
time
}
<
/div
>
{
<
div
className
=
"name"
Array
.
isArray
(
data
)
onClick
=
{
this
.
showAddressPopup
.
bind
(
this
,
item
[
'is_virtual'
],
item
.
prize
)}
>
{
item
.
prize
}
<
/div
>
?
data
.
map
((
item
,
index
)
=>
{
<
/li
>
return
(
)
<
li
key
=
{
index
}
>
})
<
div
className
=
"time"
>
{
item
.
time
}
<
/div
>
:
<
li
style
=
{{
justifyContent
:
'center'
}}
>
暂无中奖纪录
<
/li
>
<
div
className
=
"name"
}
onClick
=
{
this
.
showAddressPopup
.
bind
(
this
,
item
[
'is_virtual'
],
item
.
prize
)}
>
{
item
.
prize
}
<
/div
>
<
/ul
>
<
/li
>
<
/div
>
)
)
})
:
<
li
style
=
{{
justifyContent
:
'center'
}}
>
暂无中奖纪录
<
/li
>
}
<
/ul
>
<
/div
>
)
})
}
else
{
Toast
.
info
(
msg
,
2
,
null
,
false
)
}
})
})
}
else
{
}
Toast
.
info
(
msg
,
2
,
null
,
false
)
}
})
}
}
submitAddress
=
debounce
(()
=>
{
submitAddress
=
debounce
(()
=>
{
...
...
src/components/blessingPreheat/live/index.js
View file @
da7eb068
...
@@ -124,7 +124,8 @@ class Live extends Component {
...
@@ -124,7 +124,8 @@ class Live extends Component {
})
})
}
}
})
})
}
else
{
}
else
if
(
data
.
errno
==
4030
||
data
.
errno
==
4040
){
}
else
{
Toast
.
info
(
data
.
msg
,
2
,
null
,
false
)
Toast
.
info
(
data
.
msg
,
2
,
null
,
false
)
}
}
})
})
...
...
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