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
4bd2d265
Commit
4bd2d265
authored
Oct 31, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录
parent
49aa67e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
src/components/blessingPreheat/index.js
+3
-11
No files found.
src/components/blessingPreheat/index.js
View file @
4bd2d265
...
...
@@ -195,7 +195,8 @@ class BlessingPreheat extends Component {
// H5
}
const
{
userInfo
}
=
this
.
state
;
const
{
user
,
history
}
=
this
.
props
;
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
;
http
.
get
(
`
${
API
.
home
}
/sys/user/blessing`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
if
(
code
===
200
)
{
...
...
@@ -203,7 +204,7 @@ class BlessingPreheat extends Component {
isSign
:
!!
data
.
today_signed
,
isFormal
:
data
.
is_activity
,
userInfo
:
Object
.
assign
({},
userInfo
,
{
isLogin
:
!!
data
.
is_login
,
isLogin
:
!!
uid
,
blessingVal
:
data
.
user_blessing_value
,
})
})
...
...
@@ -316,15 +317,6 @@ class BlessingPreheat extends Component {
}
}
toLogin
=
()
=>
{
const
{
history
}
=
this
.
props
;
if
(
!
getParam
(
'version'
))
{
history
.
push
(
'/passport'
);
}
else
{
SendMessageToApp
(
"toLogin"
);
}
}
onCopy
=
()
=>
{
Toast
.
info
(
'复制成功'
,
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