{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_9__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12__","call","invitedFriends","_this$state","state","pdd_price","number","data","browser","isWeixin","share","setState","shareData","title","concat","course_title","desc","link","location","origin","course_id","imgUrl","image_name","http","post","API","then","res","_res$data","nonce_str","signature","timestamp","wx","config","debug","appId","nonceStr","jsApiList","ready","hideAllNonBaseMenuItem","showMenuItems","menuList","updateAppMessageShareData","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_8__","success","updateTimelineShareData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","a","info","groupon_member","person_num","is_success","userInfo","_this2","Promise","all","get","getParam","home","resultList","console","log","errno","code","course_info","course_list","countdown","date","end_time","hours","minutes","seconds","setInterval","parseInt","padStart","msg","_this$state2","_this$state2$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","className","react_router_dom__WEBPACK_IMPORTED_MODULE_19__","to","_common__WEBPACK_IMPORTED_MODULE_16__","arrow","cart","img","id","GorupContent","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","push","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","onClick","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_M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gE,EAAnE,uBACNuC,EAAMvB,EAAAnC,EAAAoC,cAAA,KAAGC,UAAU,OAAb,kFAENmB,EAAMrB,EAAAnC,EAAAoC,cAAA,KAAGC,UAAU,OAAb,2BAAAtE,OAA2BT,EAA3B,WACNmG,EAAMtB,EAAAnC,EAAAoC,cAACE,EAAA,EAAD,CAAMC,GAAE,aAAAxE,OAAeP,EAAKa,WAAagE,UAAU,aAAnD,6BAQd,OAJmB,IAAfjC,IACAoD,EAAMrB,EAAAnC,EAAAoC,cAAA,KAAGC,UAAU,WAAb,4BACNoB,EAAMtB,EAAAnC,EAAAoC,cAACE,EAAA,EAAD,CAAMC,GAAE,QAAWF,UAAU,WAA7B,uBAGNF,EAAAnC,EAAAoC,cAAA,OAAKC,UAAU,iBAEP1E,EACIwE,EAAAnC,EAAAoC,cAAA,OAAKC,UAAU,kBAAkBmC,QAAS7H,EAAMQ,gBAC5CgF,EAAAnC,EAAAoC,cAAA,OAAKC,UAAU,cAAf,eAAAtE,OAEUR,EAFV,uFAIA4E,EAAAnC,EAAAoC,cAAA,OAAKC,UAAU,YACXF,EAAAnC,EAAAoC,cAAA,KAAGC,UAAU,0BAGrB,KAGPmB,EACDrB,EAAAnC,EAAAoC,cAAAqC,EAAAzE,EAAA,KACK2D,GAELxB,EAAAnC,EAAAoC,cAAAqC,EAAAzE,EAAA,KACKyD,GAEJC,GAEItD,GACD+B,EAAAnC,EAAAoC,cAAA,OAAKC,UAAU,aACXF,EAAAnC,EAAAoC,cAAA,YACID,EAAAnC,EAAAoC,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAAnC,EAAAoC,cAAA,QAAMC,UAAU,UAAhB,eAAAtE,OAA+BoC,EAA/B,yBAOLzD","file":"static/js/togroup.079d79a6.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\n\nimport { api, getParam, http, browser} from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast } from 'antd-mobile'\n\n\nclass ToGroup extends Component {\n    constructor(props) {\n        super(props)\n        this.state = {\n            data: {},\n            share: false,\n            pdd_price: 0,\n            groupon_member: [],\n            person_num: 0, // 共多少人成团\n            is_success: false, // 是否拼团成功\n            userInfo: {},\n            number: 0, // 差几人成团\n        }\n    }\n\n    invitedFriends = () => {\n        const {pdd_price, number, data} = this.state;\n        if(browser.isWeixin) {\n            let share = this.state.share;\n            this.setState({\n                share: !share,\n            });\n            let shareData = {\n                title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n                desc: data.course_title,                               //  分享描述\n                link: location.origin + `/detail??id=${data.course_id}`, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致\n                imgUrl: data.image_name, // 分享图标\n            };\n            http.post(`${API['base-api']}/m/sale/signature`).then(res => {\n                const {nonce_str, signature, timestamp} = res.data;\n                wx.config({\n                    \"debug\": false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。\n                    \"appId\": 'wx23dac6775ac82877', // 必填,公众号的唯一标识\n                    \"timestamp\": timestamp, // 必填,生成签名的时间戳\n                    \"nonceStr\": nonce_str, // 必填,生成签名的随机串\n                    \"signature\": signature, // 必填,签名\n                    jsApiList: [\n                        'hideMenuItems',\n                        'showMenuItems',\n                        'updateAppMessageShareData',\n                        'updateTimelineShareData',\n                        'onMenuShareWeibo',\n                        'onMenuShareAppMessage',\n                    ], // 必填,需要使用的JS接口列表\n                });\n            });\n            wx.ready(function () {   //需在用户可能点击分享按钮前就先调用\n                wx.hideAllNonBaseMenuItem();\n                wx.showMenuItems({\n                    menuList: ['menuItem:share:appMessage' , 'menuItem:share:timeline'] // 要显示的菜单项,所有menu项见附录3\n                  });\n                wx.updateAppMessageShareData({ \n                    ...shareData,\n                    success: function () {\n                      // 设置成功\n                    }\n                })\n                wx.updateTimelineShareData({\n                    ...shareData,\n                    success: function () {\n                      // 设置成功\n                    }\n                })\n            });\n        }else{\n            Toast.info('请在微信中使用分享功能!', 2);\n        }\n    }\n\n    componentDidMount() {\n        Promise.all([http.get(`${API['base-api']}/pdd/goupon_pay_page/${getParam('id')}`), http.get(`${API.home}/m/user_info`)]).then(resultList => {\n            console.log(resultList);\n            let res = resultList[0],\n            userInfo = resultList[1];\n            if(res.data.errno !== 0) {\n                Toast.info(res.data.msg, 2);\n                return;\n            }\n            if(userInfo.data.code !== 200) {\n                Toast.info(res.data.msg, 2);\n                return;\n            }\n            this.setState({\n                data: res.data.data.course_info,\n                pdd_price: res.data.data.pdd_price,\n                groupon_member: res.data.data.groupon_member,\n                is_success: res.data.data.is_success,\n                person_num: res.data.data.person_num,\n                course_list: res.data.data.course_list,\n                userInfo,\n                number: res.data.data.number,\n                countdown: '',\n            });\n\n            if(res.data.data.is_success === 0) {\n                let date = res.data.data.end_time * 1000,\n                hours = 0,\n                minutes = 0,\n                seconds = 0;\n                setInterval(() => {\n                    date -= 1000\n                    hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);\n                    minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);\n                    seconds = `${parseInt((date - hours * 3600000 - minutes * 60000 ) / 1000)}`.padStart(2, 0);\n                    this.setState({\n                        countdown: `${hours}:${minutes}:${seconds}`\n                    });\n                }, 1000)\n            }\n        });\n    }\n\n    render() {\n        const { data: { course_id, course_title, simpledescription, price0, price1 }, pdd_price, is_success, person_num, groupon_member, course_list } = this.state;\n        const Info = (\n            <div className=\"info\">\n                <p className='title'>\n                    <Link to={`/detail?id=${course_id}`}>\n                        {course_title}\n                    </Link>\n                </p>\n                <p className='contact text-overflow-2'>{simpledescription}</p>\n                <div className='des'>\n                    <p className=\"course-price\">\n                        <span className=\"new\">¥{price1}</span>\n                        <span className=\"old\">¥{price0}</span>\n                    </p>\n                </div>\n            </div>\n        )\n        return (\n            <div className='to-group-box'>\n                <HeaderBar title='拼团' arrow={true} cart={false}></HeaderBar>\n                {\n                    !is_success && <VList img={this.state.data.image_name} id={this.state.data.course_id} info={Info}></VList>\n                }\n\n                <GorupContent data={this.state} invitedFriends={this.invitedFriends} />\n\n                <WhiteSpace></WhiteSpace>\n                <div className=\"group-course\">\n                    <div className=\"top-title\">\n                        <span>本周特惠</span>\n                        <Link to={`/preferential`} className='more'>更多<i className='iconfont iconiconfront-70'></i></Link>\n                    </div>\n                    {\n                        (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n                            let weekInfo = <div className=\"info\">\n                            <p className='title'>\n                                <Link to={`/detail?id=${item.course_id}`}>\n                                    {item.course_title}\n                                </Link>\n                            </p>\n                            <p className='contact text-overflow-2'>{item.simpledescription}</p>\n                            <div className='des'>\n                                <p className=\"course-price\">\n                                    <span className=\"new\">¥{item.price1}</span>\n                                    <span className=\"old\">¥{item.price0}</span>\n                                </p>\n                            </div>\n                            </div>\n                            return (<VList img={item.image_name} key={item.uid} id={item.course_id} info={weekInfo}></VList>)\n                        })\n                    }\n\n                </div>\n            </div>\n        )\n    }\n}\n\nfunction GorupContent(props) {\n    let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n    const { pdd_price, data, groupon_member, is_success, person_num, userInfo, share, number, countdown } = props.data;\n    let ary=[],num = number;\n    while(num != 0) {\n        ary.push(num);\n        num--;\n    }\n    groupTip = (<div className='group-user-list'>\n        <Flex justify='center' className='imgList'>\n            {\n                groupon_member.map(item => {\n                    return (\n                        <div className='imgContainer' key={Math.random()}>\n                            <img className='imgname' src={item.avatar} alt='' />\n                            {\n                                item.user_type === 1 ? (\n                                    <div className='leaderFlag'>\n                                        <span>团长</span>\n                                    </div>\n                                ) : null\n                            }\n                        </div>);\n                })\n            }\n            {\n                ary.map(item => {\n                    return (<div className='imgContainer' key={Math.random()}>\n                        <div className='imgname'>\n                            <i className='iconfont iconwode-xianxing no-body'></i>\n                        </div>\n                    </div>)\n                })\n            }\n        </Flex>\n    </div>);\n\n    if (groupon_member && groupon_member.length > 0) {\n        let uid = '';\n        groupon_member.map(item=>{\n            if(item.user_type === 1) {\n                uid = `${item.uid}`;\n            }\n        })\n\n        if(uid === userInfo.data.data.uid) {\n            tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>\n            btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n            dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n        } else {\n            tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>\n            btn = <Link to={`/order?id=${data.course_id}`} className='group-btn'>一键参团</Link>\n        }\n    }\n\n    if (is_success === 1) {\n        tip = <p className='success'>拼团成功</p>\n        btn = <Link to={`/play`} className='tostudy'>去学习</Link>\n    }\n    return (\n        <div className='gorup-content'>\n            {\n                share ? (\n                    <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n                        <div className='tipContent'>\n                            \n                            {`还差${number}人,分享到3个群,成团率高达98%`}\n                        </div>\n                        <div className='tipArrow'>\n                            <i className='iconfont iconyindao'></i>\n                        </div>\n                    </div>\n                ) : null\n            }\n\n            {tip}\n            <WingBlank>\n                {groupTip}\n            </WingBlank>\n            <WingBlank>\n                {btn}\n            </WingBlank>\n            {dec}\n            {\n                !is_success &&\n                <div className=\"group-dec\">\n                    <span>\n                        <i className='iconfont iconiconfront-1'></i>\n                        ·好友参团  ·人满成交  ·人不满退款\n                        </span>\n                    <span className='allNum'>{`累计${person_num}人成团`}</span>\n                </div>\n            }\n        </div>\n    )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}