Commit 5aa35102 by xuzhenghua

微信分享

parent 91ec42f9
......@@ -27,6 +27,10 @@ class ToGroup extends Component {
invitedFriends = () => {
const {pdd_price, number, data} = this.state;
if(browser.isWeixin) {
let share = this.state.share;
this.setState({
share: !share,
});
wxShare({
title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,
desc: data.course_title,
......
......@@ -370,6 +370,10 @@ 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) {
let share = this.state.share;
this.setState({
share: !share,
});
wxShare({
title: `【仅剩${number}个名额】我${price}元拼了《${course_title}》`,
desc: course_title,
......
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