Commit 410540a6 by FE

拼团成功后分享人数修复

parent 2dd741af
......@@ -183,6 +183,7 @@ class Bargain extends Component {
}
render() {
console.log(this.state);
const { list, outList, barInfo } = this.state;
const {user} = this.props
const uid = user && user.data && user.data.uid
......
......@@ -153,7 +153,6 @@ 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) {
console.log(0);
let share = this.state.share;
this.setState({
share: !share,
......@@ -221,9 +220,9 @@ class Detail extends Component {
// if (this.props.courseInfo.course_info) {
// courseInfo = this.props.courseInfo.course_info;
// service = courseInfo.service;
// if (courseInfo.group_status === 3 || courseInfo.group_status === 4) {
// number = courseInfo.pdd_group_info.groupon_member.number;
// }
if (course_info.group_status === 3 || course_info.group_status === 4) {
number = course_info.pdd_group_info.groupon_member.number;
}
// }
const {share, countdown, list, outList} = this.state;
const href = this.props.location && this.props.location.state? this.props.location.state.href : undefined;
......@@ -360,15 +359,17 @@ class Detail extends Component {
{
share ? (
<div className='groupSuccessMbc' onClick={() => {
this.setState({share: false})
}}>
<div
className='groupSuccessMbc'
onClick={() => {
this.setState({share: false})
}}
>
<div className='tipContent'>
{`还差${number}人,分享到3个群,成团率高达98%`}
</div>
<div className='tipArrow'>
<i className='iconfont iconyindao'></i>
<i className='iconfont iconyindao' />
</div>
</div>
) : null
......
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