Commit f674edd5 by FE

pingtuan invite

parent 27d3880a
...@@ -368,16 +368,21 @@ class Detail extends Component { ...@@ -368,16 +368,21 @@ class Detail extends Component {
}; };
invitedFriends = () => { 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; // 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) { // if (browser.isWeixin) {
wxShare({ // wxShare({
title: `【仅剩${number}个名额】我${price}元拼了《${course_title}》`, // title: `【仅剩${number}个名额】我${price}元拼了《${course_title}》`,
desc: course_title, // desc: course_title,
link: location.href, // link: location.href,
imgUrl: image_name, // imgUrl: image_name,
}); // });
} else { // } else {
Toast.info('请在微信中使用分享功能!', 2); // 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}`);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment