Commit 410540a6 by FE

拼团成功后分享人数修复

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