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
7c8a9b23
Commit
7c8a9b23
authored
Nov 03, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
邀请好友
parent
66b845c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/components/activity/index.js
+1
-1
src/components/activity/invite.js
+4
-4
No files found.
src/components/activity/index.js
View file @
7c8a9b23
...
...
@@ -12,7 +12,7 @@ class Activity extends Component {
componentWillMount
()
{
jsCookie
.
set
(
'blessing_invite_uid'
,
getParam
(
'shareuid'
));
jsCookie
.
set
(
'blessing_invite_code'
,
getParam
(
'
c
ode'
));
jsCookie
.
set
(
'blessing_invite_code'
,
getParam
(
'
inviteC
ode'
));
}
getGift
=
()
=>
{
...
...
src/components/activity/invite.js
View file @
7c8a9b23
...
...
@@ -24,7 +24,7 @@ class Invite extends Component {
if
(
uid
===
shareuid
)
{
}
else
{
if
(
getParam
(
'new'
))
{
this
.
props
.
history
.
push
(
`/activity?shareuid=
${
shareuid
}
&
c
ode=
${
inviteCode
}
`
);
this
.
props
.
history
.
push
(
`/activity?shareuid=
${
shareuid
}
&
inviteC
ode=
${
inviteCode
}
`
);
}
}
}
...
...
@@ -90,14 +90,14 @@ class Invite extends Component {
history
.
push
(
'/passport'
);
}
else
{
http
.
get
(
`
${
API
.
home
}
/sys/user/invite/link`
).
then
(
res
=>
{
let
{
code
,
data
,
msg
}
=
res
;
let
{
code
,
data
,
msg
}
=
res
.
data
;
if
(
code
===
200
)
{
let
inviteCode
=
data
.
blessing_invite_code
;
if
(
is_weixin
())
{
wxShare
({
title
:
'AI充电节,积福气享1折秒课,超10万元奖品来就送!!'
,
desc
:
'把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线'
,
link
:
encodeURI
(
location
.
origin
+
`/invite?shareuid=
${
jsCookie
.
get
(
'uid'
)}
&new=1&
c
ode=
${
inviteCode
}
`
),
link
:
encodeURI
(
location
.
origin
+
`/invite?shareuid=
${
jsCookie
.
get
(
'uid'
)}
&new=1&
inviteC
ode=
${
inviteCode
}
`
),
imgUrl
:
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png'
,
});
this
.
setState
({
...
...
@@ -105,7 +105,7 @@ class Invite extends Component {
isWeiXin
:
true
,
});
}
else
{
history
.
replaceState
(
null
,
null
,
`invite?shareuid=
${
jsCookie
.
get
(
'uid'
)}
&new=1&c
ode=
${
inviteCode
}
`
)
history
.
push
(
`invite?shareuid=
${
jsCookie
.
get
(
'uid'
)}
&new=1&inviteC
ode=
${
inviteCode
}
`
)
this
.
setState
({
showTip
:
true
,
});
...
...
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