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
f674edd5
Commit
f674edd5
authored
Aug 26, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pingtuan invite
parent
27d3880a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
src/components/detail/index.js
+15
-10
No files found.
src/components/detail/index.js
View file @
f674edd5
...
...
@@ -368,16 +368,21 @@ class Detail extends Component {
};
invitedFriends
=
()
=>
{
const
{
course_title
,
image_name
,
course_id
,
pdd_group_info
,
pdd_group_info
:
{
groupon_member
,
groupon_member
:
{
number
},
price
}}
=
this
.
state
.
course
.
course_info
;
if
(
browser
.
isWeixin
)
{
wxShare
({
title
:
`【仅剩
${
number
}
个名额】我
${
price
}
元拼了《
${
course_title
}
》`
,
desc
:
course_title
,
link
:
location
.
href
,
imgUrl
:
image_name
,
});
}
else
{
Toast
.
info
(
'请在微信中使用分享功能!'
,
2
);
// const {course_title, image_name, course_id, pdd_group_info, pdd_group_info: {groupon_member, groupon_member: {number}, price}} = this.state.course.course_info;
// if (browser.isWeixin) {
// wxShare({
// title: `【仅剩${number}个名额】我${price}元拼了《${course_title}》`,
// desc: course_title,
// link: location.href,
// imgUrl: image_name,
// });
// } else {
// Toast.info('请在微信中使用分享功能!', 2);
// }
const
{
history
}
=
this
.
props
;
const
{
course
=
{}
}
=
this
.
state
;
if
(
course
.
course_info
&&
course
.
course_info
.
self_oid
)
{
history
.
push
(
`/togroup?id=
${
course
.
course_info
.
self_oid
}
`
);
}
}
...
...
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