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
59d6be5f
Commit
59d6be5f
authored
Nov 02, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '11-11' into dev
parents
39b2b91c
e12f6af6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
src/components/blessingPreheat/index.js
+12
-1
No files found.
src/components/blessingPreheat/index.js
View file @
59d6be5f
...
...
@@ -105,11 +105,23 @@ class BlessingPreheat extends Component {
}
window
[
'getNewData'
]
=
result
=>
{
http
.
post
(
`
${
API
.
home
}
/sys/add/blessing`
,
{
share_platform
:
''
,
// 1 朋友圈 2 微博 3 qq
type
:
4
// 1:签到;3:分享;4:浏览课程;
}).
then
(
res
=>
{
const
{
code
}
=
res
.
data
if
(
code
===
200
)
{
Toast
.
info
(
'+2点福气值~'
,
2
,
null
,
false
)
}
})
this
.
fetchUserBlessing
()
}
window
[
'QQWXWBshare'
]
=
result
=>
{
if
(
result
!=
0
)
{
this
.
handleToAddBlessing
(
result
)
}
this
.
fetchUserBlessing
()
}
}
...
...
@@ -217,7 +229,6 @@ class BlessingPreheat extends Component {
const
{
userInfo
}
=
this
.
state
http
.
get
(
`
${
API
.
home
}
/sys/user/blessing`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
alert
(
code
)
if
(
code
===
200
)
{
this
.
setState
({
isSign
:
!!
data
.
today_signed
,
...
...
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