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
48b0a89f
Commit
48b0a89f
authored
Jun 29, 2020
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
pull
parents
d7861203
0edee270
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/components/Index/index.js
+3
-5
src/components/detail/index.js
+0
-0
No files found.
src/components/Index/index.js
View file @
48b0a89f
...
@@ -68,17 +68,15 @@ class Index extends Component {
...
@@ -68,17 +68,15 @@ class Index extends Component {
}
}
userStatus
=
()
=>
{
userStatus
=
()
=>
{
this
.
setState
({
isShowUserGift
:
false
})
http
.
get
(
`
${
API
[
'base-api'
]}
/sys/user/new_user_status`
).
then
((
res
)
=>
{
http
.
get
(
`
${
API
[
'base-api'
]}
/sys/user/new_user_status`
).
then
((
res
)
=>
{
const
{
errno
,
data
}
=
res
.
data
const
{
errno
,
data
}
=
res
.
data
if
(
errno
===
0
)
{
if
(
errno
===
0
)
{
if
(
data
.
status
==
1
)
{
if
(
data
.
status
==
1
)
{
// 新用户登录之后判断是否是新用户
// 新用户登录之后判断是否是新用户
Toast
.
info
(
'新人大礼包已领取成功!'
,
2
)
Toast
.
info
(
'新人大礼包已领取成功!'
,
2
)
}
else
{
// 老用户
this
.
setState
({
isShowUserGift
:
false
})
}
}
}
}
})
})
...
...
src/components/detail/index.js
View file @
48b0a89f
This diff is collapsed.
Click to expand it.
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