deposit-pay-order.e64172c9.chunk.js.map 66.9 KB
Newer Older
FE committed
1
{"version":3,"sources":["components/order/deposit/deposit-pay-order/index.js","components/order/deposit/final-order/index.js","common/v-list-base/index.js","../node_modules/antd-mobile/lib/radio/Radio.js","../node_modules/antd-mobile/lib/radio/style/css.js","../node_modules/antd-mobile/lib/radio/index.js","../node_modules/antd-mobile/lib/radio/RadioItem.js"],"names":["RadioItem","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_19___default","a","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_12__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_14__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_15__","call","onChange","setState","payType","checkPeriod","huabei","pay","_this2$state","state","orderId","agree","alipayPay","weixinPay","is_weixin","window","location","href","encodeURIComponent","toLowerCase","http","get","concat","API","then","res","data","errno","url","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_11___default","info","msg","isweixinPay","_this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_16__","weixin_code","getParam","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","history","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","changeAgreement","prevState","pay_amount","stageNumber","singleMoney","periodNumber","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","post","order_id","course_info","salePrice","sale_price","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_20___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_22__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_9___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_7___default","justify","align","style","height","map","item","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_23__","to","course_id","course_title","simpledescription","key","img","image_name","id","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_3___default","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","Item","antd_mobile_lib_checkbox__WEBPACK_IMPORTED_MODULE_1___default","AgreeItem","classnames","onClick","Component","WithFullSize","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_20___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_18___default","OrderList","_ref","courses","toggleSelectedCourse","react__WEBPACK_IMPORTED_MODULE_21___default","wrap","length","course","coupon_desc","coupon_num","deduction_amount","coupon_amount","price1","Fragment","antd_mobile_lib_checkbox__WEBPACK_IMPORTED_MODULE_16___default","defaultChecked","_common_v_list_base__WEBPACK_IMPORTED_MODULE_24__","handleClick","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_14___default","react_router_dom__WEBPACK_IMPORTED_MODULE_27__","pathname","search","from","FinalDepositOrder","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__","submit","createOrder","pay_jump","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","_this2$state2","selectedCourses","useBalance","appliedMoneyOffRule","user_account","course_ids","cut_amount","is_deduction","getBalanceOffset","plat_form","source","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_11__","showInfo","findIndex","splice","totalPrice","getTotalPrice","offset","_ref2","arguments","_ref2$courses","_ref2$useBalance","_ref2$moneyOffRules","moneyOffRules","getOriginTotalPrice","moneyOff","parseFloat","toFixed","rules","sort","b","full_amount","result","rule","_ref3$courses","reduce","accu","originalTotalPrice","currentPrice","finalEndTime","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__","_common_index__WEBPACK_IMPORTED_MODULE_23__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","marginRight","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","position","top","left","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign","borderRadius","border","VList","react__WEBPACK_IMPORTED_MODULE_0___default","bind","status","src","alt","tab","defineProperty","exports","_extends3","_interopRequireDefault","__webpack_require__","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames2","_rcCheckbox2","React","obj","__esModule","newObj","prototype","hasOwnProperty","_interopRequireWildcard","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","Radio","_React$Component","__proto__","getPrototypeOf","apply","_a","restProps","prefixCls","children","wrapCls","mark","type","wrapLabel","defaultProps","module","_Radio2","_RadioItem2","_defineProperty3","_classnames3","_list2","ListItem","noop","listPrefixCls","disabled","radioProps","otherProps","extraProps","forEach","extra"],"mappings":"8bAUMA,EAAYC,EAAAC,EAAMF,UAEpBG,EAAW,GAEXA,EADAC,IAAQC,SACG,CACP,CAACC,MAAO,EAAGC,MAAO,2BAAQC,KAAM,oBAGzB,CACP,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,mBAChC,CAACF,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AC,GAAA,EAAAS,EAAA,SAAAX,EAAA,QAAA9K,GAAA,EAAAwL,EAAA,YAAoHV,EAAA,sBAAAgB,IAEpHA,IACAE,EAAAxJ,WAAAoJ,GAGA,IAAAK,EAAA,GAMA,MALA,0DAAAC,QAAA,SAAAvK,GACAA,KAAAlH,EAAAD,QACAyR,EAAAtK,GAAAlH,EAAAD,MAAAmH,MAGA6H,EAAAzJ,cAAA4L,GAAA,EAAA5C,EAAA,YAAuEiD,EAAA,CACvElB,UAAAe,EACA7L,UAAAgL,EACAmB,MAAA3C,EAAAzJ,cAAAuL,EAAA,WAAAvC,EAAA,YAAmFgD,EAAAE,MAC5ElB,OAGPjR,EA3CA,CA4CC0P,EAAA/G,WAEDqG,EAAA,QAAAhP,EACAA,EAAAsR,aAAA,CACAN,UAAA,WACAe,cAAA,UACAE,WAAA,IAEAV,EAAAvC,UAAA","file":"mrstatic/js/deposit-pay-order.e64172c9.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast, Checkbox } from 'antd-mobile'\nimport { http, getParam, is_weixin, browser } from '@/utils'\nimport { OrderItem, HeaderBar } from '@common/index'\nimport { Link } from 'react-router-dom'\nimport './index.scss'\nimport { VList } from '@/common'\nimport { WithFullSize } from '@/HOCs'\nimport classnames from 'classnames'\n\nconst RadioItem = Radio.RadioItem\n\nlet mockData = []\nif (browser.isWeixin) {\n    mockData = [\n        {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n    ]\n} else {\n    mockData = [\n        {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n        {value: 0, label: '支付宝', icon: 'iconalipay'},\n    ]\n}\n\n\nclass PayOrder extends Component {\n    constructor(props) {\n        super(props)\n        this.state = {\n            pay_amount: 0,\n            payType: 1,\n            stageNumber: 0,\n            checkPeriod: false,\n            singleMoney: 0,\n            periodNumber: 0,\n            orderId: getParam('oid'),\n            huabei: false,\n            fenqiList: [\n                {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n                {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n                {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n            ],\n            categoryList: [],\n            agree: false\n        }\n    }\n\n    onChange = (value) => {\n        this.setState({\n            payType: value,\n            checkPeriod: false,\n        })\n        if (value === 2) {\n            this.setState({\n                huabei: true,\n            })\n        }\n    }\n    // 确定购买\n    pay = () => {\n        const {payType, orderId} = this.state\n        if(!this.state.agree){\n            return\n        }\n        if (payType === 0) {\n            this.alipayPay(orderId)\n        } else if (payType === 1) {\n            this.weixinPay(orderId)\n        }\n    }\n    // 微信支付\n    weixinPay = (orderId) => {\n        // 微信内部-支付\n        if (is_weixin()) {\n            window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"\n        } else {\n            // 微信外部-支付\n            http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n                if (res.data.errno === 0) {\n                    window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase()\n                } else {\n                    Toast.info(res.data.msg, 2)\n                }\n            })\n        }\n    }\n    // 微信内部支付\n    isweixinPay = () => {\n        let _this = this\n        let weixin_code = getParam('code')\n        if (weixin_code) {\n            if (getParam('oid') === undefined) {\n                return\n            } else {\n                http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n                    if (res.data.errno === 0) {\n                        let data = res.data.data\n\n                        function onBridgeReady() {\n                            WeixinJSBridge.invoke(\n                                'getBrandWCPayRequest', {\n                                    appId: data.appId,                //公众号名称,由商户传入\n                                    timeStamp: data.timeStamp,        //时间戳,自1970年以来的秒数\n                                    nonceStr: data.nonceStr,          //随机串\n                                    package: data.package,\n                                    signType: data.signType,          //微信签名方式:\n                                    paySign: data.paySign             //微信签名\n                                },\n                                function (res) {\n                                    if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n                                        Toast.info('支付成功', 2)\n                                        _this.intervalPayStatus = setInterval(function () {\n                                            http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n                                                if (res.data.errno === 401) {\n                                                    clearInterval(_this.intervalPayStatus)\n                                                    _this.intervalPayStatus = null\n                                                    _this.props.history.replace(`/expand/callback?order_id=${getParam('oid')}`)\n                                                }\n                                            })\n                                        }, 1000)\n                                    } else {\n                                        alert('支付失败')\n                                    }\n                                }\n                            )\n                        }\n\n                        if (typeof WeixinJSBridge == \"undefined\") {\n                            if (document.addEventListener) {\n                                document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n                            } else if (document.attachEvent) {\n                                document.attachEvent('WeixinJSBridgeReady', onBridgeReady)\n                                document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n                            }\n                        } else {\n                            onBridgeReady()\n                        }\n                    } else {\n                        Toast.info(res.data.msg, 2)\n                    }\n                })\n            }\n        }\n    }\n    // 支付完成之后获取状态\n    payCallback = () => {\n        const _this = this\n        // 支付回调\n        // 定时器轮训获取订单状态\n        _this.intervalPayStatus = setInterval(function () {\n            http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n                if (res.data.errno === 401) {\n                    clearInterval(_this.intervalPayStatus)\n                    _this.intervalPayStatus = null\n                    window.location.href = '/expand/callback?order_id=' + getParam('oid')\n                }\n            })\n        }, 1000)\n    }\n\n    onBridgeReady1 = (data) => {\n        let _this = this\n        data = data || _this.BridgeData\n\n        WeixinJSBridge.invoke(\n            'getBrandWCPayRequest', {\n                \"appId\": \"wx23dac6775ac82877\",                //公众号名称,由商户传入\n                \"timeStamp\": data.timeStamp,        //时间戳,自1970年以来的秒数\n                \"nonceStr\": data.nonceStr,          //随机串\n                \"package\": data.package,\n                \"signType\": data.signType,          //微信签名方式:\n                \"paySign\": data.paySign             //微信签名\n            },\n            function (res) {\n                if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n                    Toast.info('支付成功', 2)\n                    _this.payCallback()\n                } else {\n                    alert('支付失败')\n                }\n            }\n        )\n    }\n    // 支付宝支付\n    alipayPay = (orderId) => {\n        http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n            if (res.data.errno === 0) {\n                this.payCallback()\n                window.location = res.data.data.url\n            } else {\n                Toast.info(res.data.msg, 2)\n            }\n        })\n    }\n\n    componentDidMount() {\n\n        if (getParam('weixinpay')) {\n            this.payCallback()\n        }\n\n        if (browser.isWeixin) {\n            this.isweixinPay(getParam('oid'))\n        }\n\n\n        http.post(`${API[\"base-api\"]}/m/deposit/detail`, {\n            order_id: this.state.orderId\n        }).then(res => {\n            const {data} = res\n            if (data.errno == 200) {\n                this.setState({\n                    categoryList: [data.data.course_info],\n                    salePrice: data.data.course_info.sale_price\n                })\n            } else {\n                Toast.info(data.msg)\n            }\n        })\n\n    }\n\n    changeAgreement = () => {\n        this.setState((prevState) => ({agree: !prevState.agree}))\n    }\n\n    render() {\n        const {\n            orderId,\n            salePrice,\n            payType,\n            checkPeriod,\n            singleMoney,\n            periodNumber,\n            categoryList,\n            agree\n        } = this.state\n        return (\n            <div className='pay-order'>\n                <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n                <WhiteSpace size='sm'></WhiteSpace>\n                <div className='order-number'>\n                    <WingBlank>\n                        <Flex justify='between' align='center' style={{height: '44px'}}>\n                            <span>订单号</span>\n                            <span className='number'>{orderId}</span>\n                        </Flex>\n                    </WingBlank>\n                </div>\n                <WhiteSpace size='md'></WhiteSpace>\n                {\n                    categoryList.map((item, index) => {\n                        const Info = (\n                            <div className=\"order-info\">\n                                <p className='order-title text-overflow-one'>\n                                    <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n                                </p>\n                                <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n                                <p className='order-des'>\n                                    <span className='order-newprice'>¥{item.sale_price}</span>\n                                    <span className={'price-des'}>(预付定金)</span>\n                                </p>\n                            </div>\n                        )\n                        return (\n                            <VList key={index} img={item.image_name}\n                                   id={item.course_id}\n                                   info={Info}></VList>\n                        )\n                    })\n                }\n                <WhiteSpace size='md'></WhiteSpace>\n                <div className='order-number'>\n                    <WingBlank>\n                        <Flex justify='between' align='center' style={{height: '44px'}}>\n                            <span>支付金额</span>\n                            <span className='money'>{`¥${salePrice}`}</span>\n                        </Flex>\n                    </WingBlank>\n                </div>\n\n                <WhiteSpace size='md'></WhiteSpace>\n                <List renderHeader={() => '支付方式'} className='pay-type-list'>\n                    {mockData.map(i => (\n                        <RadioItem\n                            thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n                            key={i.value}\n                            checked={payType === i.value}\n                            onChange={() => this.onChange(i.value)}>\n                            {\n                                i.value === 2 ? (\n                                    <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n                                        <Flex direction='row' justify='between'\n                                              style={{width: '100%', paddingRight: '30px'}}>\n                                            <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n                                            {\n                                                checkPeriod ? (\n                                                    <span style={{\n                                                        color: '#333333',\n                                                        fontSize: '12px'\n                                                    }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n                                                ) : null\n                                            }\n                                        </Flex>\n                                        <Flex justify='start'>\n                                            <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n                                        </Flex>\n                                    </Flex>\n                                ) : (i.label)\n                            }\n                        </RadioItem>\n                    ))}\n                </List>\n                <Flex>\n                    <Flex.Item className={'agreement'}>\n                        <Checkbox.AgreeItem onChange={this.changeAgreement}>\n                            我已同意定金不退\n                        </Checkbox.AgreeItem>\n                    </Flex.Item>\n                </Flex>\n                {/*<div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>*/}\n\n                <div className={classnames(['pay-button', !agree && 'invalid'])} onClick={this.pay}>确认支付</div>\n            </div>\n        )\n    }\n}\n\nexport default WithFullSize(PayOrder)\n","import React, { Component } from 'react'\nimport { Checkbox, Flex, List, Radio, Toast, WhiteSpace, WingBlank } from 'antd-mobile'\nimport { browser, getParam, http, is_weixin } from '@/utils'\nimport { HeaderBar } from '@common/index'\nimport VlistBase from '@/common/v-list-base'\nimport './index.scss'\nimport { WithFullSize } from '@/HOCs'\nimport { Link } from \"react-router-dom\"\nimport app from \"@/utils/app\"\n\n\nconst RadioItem = Radio.RadioItem\nconst Item = Flex.Item\n\nfunction OrderList({courses, toggleSelectedCourse}) {\n  return (\n    <Flex wrap={'wrap'}>\n      {courses.length && courses.map(course => {\n        const {image_name: img, course_id, coupon_desc, coupon_num} = course\n        const info = (\n          <div className=\"info\">\n            <div className=\"title\">{course.course_title}</div>\n            <div className=\"des\">\n              <div className={'deposit-discount'}>\n                定金折扣:<span className={'price'}>-¥{course.deduction_amount}</span>\n              </div>\n              {\n                course.coupon_amount != 0 &&\n                <div className={'coupon-amount'}>\n                  使用优惠券:<span className={'price'}>-¥{course.coupon_amount}</span>\n                </div>\n              }\n            </div>\n            <div className=\"prices\">\n              <span className={'sale-price price'}>¥{course.sale_price}</span>\n              <span className={'former-price'}>¥{course.price1}</span>\n            </div>\n          </div>\n        )\n        return (\n          <React.Fragment key={course.course_id}>\n            <Item className={'order-item'}>\n              <Flex className=\"select-bar\" justify={'between'}>\n                <Item>\n                  <Checkbox defaultChecked onChange={() => {\n                    toggleSelectedCourse(course)\n                  }}/>\n                </Item>\n                <Item className={'final-payment-hint'}>\n                  待付尾款\n                </Item>\n              </Flex>\n              <VlistBase img={img}\n                         handleClick={() => {\n                         }}\n                         info={info}\n              />\n            </Item>\n            <div className=\"order-prefer\">\n              <List key={course_id}>\n                <List.Item\n                  arrow=\"horizontal\"\n                  onClick={() => {\n                  }}\n                >\n                  <Link to={{\n                    pathname: `/coupons`,\n                    search: `?id=${course_id}`,\n                    state: {\n                      from: '/order'\n                    }\n                  }}>\n                    <Flex justify='between'>\n                            <span\n                              style={{\n                                color: '#333',\n                                fontSize: '15px'\n                              }}\n                            >优惠券</span>\n                      <span\n                        style={{\n                          fontSize: '14px',\n                          color: '#999999'\n                        }}\n                      >\n                              {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n                            </span>\n                    </Flex>\n                  </Link>\n                </List.Item>\n              </List>\n            </div>\n          </React.Fragment>\n        )\n      })}\n\n    </Flex>\n  )\n}\n\nlet mockData = []\nif (browser.isWeixin) {\n  mockData = [\n    {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n  ]\n} else {\n  mockData = [\n    {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n    {value: 0, label: '支付宝', icon: 'iconalipay'},\n  ]\n}\n\n\nclass FinalDepositOrder extends Component {\n  constructor(props) {\n    super(props)\n    this.state = {\n      pay_amount: 0,\n      payType: 1,\n      stageNumber: 0,\n      orderId: getParam('oid'),\n      categoryList: [],\n      selectedCourses: [],\n      salePrice: '',\n      user_account: '',\n      useBalance: false,\n      info: false,\n      order_id: '',\n      moneyOffRules: [],\n      finalEndTime: '',\n      offset: 0,\n      appliedMoneyOffRule: {}\n    }\n  }\n\n  onChange = (value) => {\n    this.setState({\n      payType: value,\n      checkPeriod: false,\n    })\n    if (value === 2) {\n      this.setState({\n        huabei: true,\n      })\n    }\n  }\n  // 确定购买\n  pay = () => {\n    const {payType, order_id} = this.state\n    if (payType === 0) {\n      this.alipayPay(order_id)\n    } else if (payType === 1) {\n      this.weixinPay(order_id)\n    }\n  }\n\n  //提交\n  submit = () => {\n    this.createOrder().then(res => {\n      if (res.data.errno == 200) {\n        this.setState({\n          order_id: res.data.data.order_id\n        }, () => {\n          if (res.data.data.pay_jump === 1) {\n            this.props.history.push('/purchased')\n          } else {\n            this.pay()\n          }\n        })\n      } else {\n        Toast.info(res.data.msg)\n      }\n\n    })\n  }\n\n  //创建订单\n  createOrder = () => {\n    const {selectedCourses, salePrice, useBalance, user_account, appliedMoneyOffRule} = this.state\n    return http.post(`${API[\"base-api\"]}/m/deposit/final/create`, {\n      course_ids: selectedCourses.map(item => item.course_id),\n      cut_amount: appliedMoneyOffRule.cut_amount || 0,\n      pay_amount: salePrice,\n      is_deduction: useBalance ? 1 : 0,\n      deduction_amount: useBalance ? this.getBalanceOffset() : 0,\n      plat_form: 5,\n      source: getParam('source')\n    })\n  }\n  // 微信支付\n  weixinPay = (orderId) => {\n    // 微信内部-支付\n    if (is_weixin()) {\n      window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"\n    } else {\n      // 微信外部-支付\n      http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n        if (res.data.errno === 0) {\n          window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase()\n        } else {\n          Toast.info(res.data.msg, 2)\n        }\n      })\n    }\n  }\n\n  // 微信内部支付\n  isweixinPay = () => {\n    let _this = this\n    let weixin_code = getParam('code')\n    if (weixin_code) {\n      if (getParam('oid') === undefined) {\n        return\n      } else {\n        http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n          if (res.data.errno === 0) {\n            let data = res.data.data\n\n            function onBridgeReady() {\n              WeixinJSBridge.invoke(\n                'getBrandWCPayRequest', {\n                  appId: data.appId,                //公众号名称,由商户传入\n                  timeStamp: data.timeStamp,        //时间戳,自1970年以来的秒数\n                  nonceStr: data.nonceStr,          //随机串\n                  package: data.package,\n                  signType: data.signType,          //微信签名方式:\n                  paySign: data.paySign             //微信签名\n                },\n                function (res) {\n                  if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n                    Toast.info('支付成功', 2)\n                    _this.intervalPayStatus = setInterval(function () {\n                      http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n                        if (res.data.errno === 401) {\n                          clearInterval(_this.intervalPayStatus)\n                          _this.intervalPayStatus = null\n                          _this.props.history.replace(`/expand/callback?order_id=${getParam('oid')}`)\n                        }\n                      })\n                    }, 1000)\n                  } else {\n                    alert('支付失败')\n                  }\n                }\n              )\n            }\n\n            if (typeof WeixinJSBridge == \"undefined\") {\n              if (document.addEventListener) {\n                document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n              } else if (document.attachEvent) {\n                document.attachEvent('WeixinJSBridgeReady', onBridgeReady)\n                document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n              }\n            } else {\n              onBridgeReady()\n            }\n          } else {\n            Toast.info(res.data.msg, 2)\n          }\n        })\n      }\n    }\n  }\n\n  // 支付完成之后获取状态\n  payCallback = () => {\n    const _this = this\n    // 支付回调\n    // 定时器轮训获取订单状态\n    _this.intervalPayStatus = setInterval(function () {\n      http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n        if (res.data.errno === 401) {\n          clearInterval(_this.intervalPayStatus)\n          _this.intervalPayStatus = null\n          window.location.href = '/expand/callback?order_id=' + getParam('oid')\n        }\n      })\n    }, 1000)\n  }\n\n  // 支付宝支付\n  alipayPay = (orderId) => {\n    http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n      if (res.data.errno === 0) {\n        this.payCallback()\n        window.location = res.data.data.url\n      } else {\n        Toast.info(res.data.msg, 2)\n      }\n    })\n  }\n\n  componentDidMount() {\n\n    if (getParam('weixinpay')) {\n      this.payCallback()\n    }\n\n    if (browser.isWeixin) {\n      this.isweixinPay(getParam('oid'))\n    }\n\n    http.get(`${API[\"base-api\"]}/m/deposit/final/preorder`)\n      .then(res => {\n        const {data} = res\n        if (data.errno == 200) {\n          this.setState({\n            categoryList: [...data.data.courses],\n            salePrice: this.getTotalPrice({\n              courses: [...data.data.courses],\n              moneyOffRules: data.data['full_rule']\n            }),\n            selectedCourses: [...data.data.courses],\n            user_account: data.data.user_account,\n            moneyOffRules: data.data['full_rule'],\n            finalEndTime: data.data['final_end_time']\n          })\n        } else {\n          Toast.info(data.msg)\n        }\n      })\n\n  }\n\n  // 展示余额抵扣规则\n  showInfo = () => {\n    this.setState((prevState) => ({\n      info: !prevState.info\n    }))\n  }\n\n\n  toggleSelectedCourse = course => {\n    this.setState(prevState => {\n      const {selectedCourses} = prevState\n      let index = prevState.selectedCourses.findIndex(item => item.course_id == course.course_id)\n      if (index == -1) {\n        selectedCourses.push(course)\n      } else {\n        selectedCourses.splice(index, 1)\n      }\n      let totalPrice = this.getTotalPrice(selectedCourses)\n      return {selectedCourses, salePrice: totalPrice, offset: this.getBalanceOffset(totalPrice)}\n    })\n  }\n\n  //获取支付价格\n  getTotalPrice = (\n    {\n      courses = this.state.selectedCourses,\n      useBalance = this.state.useBalance,\n      moneyOffRules = this.state.moneyOffRules\n    } = {}\n  ) => {\n    let totalPrice = this.getOriginTotalPrice({courses})\n    totalPrice = this.moneyOff(totalPrice, moneyOffRules)\n    if (useBalance) {\n      totalPrice -= parseFloat(this.state.user_account)\n    }\n    return totalPrice < 0 ? 0 : totalPrice.toFixed(2)\n  }\n\n  //满减计算\n  moneyOff = (totalPrice, moneyOffRules = this.state.moneyOffRules) => {\n    let rules = moneyOffRules.sort((a, b) => b.full_amount - a.full_amount)\n    let result = parseFloat(totalPrice)\n    for (let i = 0; i < rules.length; i++) {\n      let rule = rules[i]\n      if (result >= rule.full_amount) {\n        this.setState({\n          appliedMoneyOffRule: rule\n        })\n        return result - parseFloat(rule.cut_amount)\n      }\n    }\n    return result\n  }\n\n  //使用余额\n  useBalance = () => {\n    this.setState(prevState => {\n      const useBalance = !prevState.useBalance\n      let totalPrice = this.getTotalPrice({useBalance})\n      return {\n        useBalance,\n        salePrice: totalPrice,\n        offset: this.getBalanceOffset(totalPrice)\n      }\n    })\n\n  }\n\n  getOriginTotalPrice = ({courses = this.state.selectedCourses} = {}) => {\n    return courses.reduce((accu, item) => {\n      return accu + parseFloat(item['sale_price'])\n    }, 0)\n\n  }\n\n  getBalanceOffset = () => {\n    let originalTotalPrice = this.getOriginTotalPrice()\n    let currentPrice = this.moneyOff(originalTotalPrice)\n    let offset = parseFloat(this.state.user_account) - parseFloat(currentPrice)\n    offset = offset >= 0 ? currentPrice : this.state.user_account\n    return offset\n  }\n\n  render() {\n    const {\n      orderId,\n      salePrice,\n      payType,\n      categoryList,\n      user_account,\n      useBalance,\n      info,\n      finalEndTime,\n      offset,\n      appliedMoneyOffRule\n    } = this.state\n    return (\n      <div className='deposit-pay-order'>\n        <HeaderBar title='课程报名' arrow={true}></HeaderBar>\n        <WhiteSpace size='sm' />\n        {/*<div className='order-number'>\n                    <WingBlank>\n                        <Flex justify='between' align='center' style={{height: '44px'}}>\n                            <span>订单号</span>\n                            <span className='number'>{orderId}</span>\n                        </Flex>\n                    </WingBlank>\n                </div>*/}\n        <WhiteSpace size='md' />\n\n        <div className={'order-list'}>\n          <OrderList \n            courses={categoryList}\n            toggleSelectedCourse={this.toggleSelectedCourse}\n          />\n        </div>\n\n        <div className=\"order-balance\">\n          <List>\n            <Item className=\"order-prefer-text\">\n              <Flex justify='between'>\n                <Flex align='center'>\n                  <span>余额抵扣</span>\n                  <span className=\"order-balanceprice\"> \n                    (余额: \n                    <i className=\"order-money\">{`${user_account}元`}</i>\n                    )\n                  </span>\n                  <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n                </Flex>\n                <Flex>\n                  {\n                    useBalance ? (\n                      <>\n                        <span style={{\n                          color: '#FF2121',\n                          fontSize: '15px',\n                          marginRight: \"6px\"\n                        }}>{`-¥${offset}`}</span>\n                        <i \n                          className={`iconfont icondanseshixintubiao-5 balance-used`}\n                          onClick={this.useBalance}\n                        />\n                      </>\n                    ) : (\n                      <i className='circle-icon' onClick={this.useBalance}></i>\n                    )\n                  }\n                </Flex>\n              </Flex>\n            </Item>\n          </List>\n        </div>\n\n        <WhiteSpace size='md'></WhiteSpace>\n        <div className='order-number'>\n          <WingBlank>\n            <Flex justify='between' align='center' style={{height: '44px'}}>\n              <span>支付金额</span>\n              <span className='money'>{`¥${salePrice}`}</span>\n            </Flex>\n          </WingBlank>\n        </div>\n        <WhiteSpace/>\n        {\n          appliedMoneyOffRule.full_amount &&\n          <div className=\"money-off\">\n            <WingBlank>\n              <Flex justify='end' align='center' style={{height: '44px'}}>\n                <span>满{appliedMoneyOffRule.full_amount}减{appliedMoneyOffRule.cut_amount}:</span>\n                <span className='money'>{`-¥${appliedMoneyOffRule.cut_amount}`}</span>\n              </Flex>\n            </WingBlank>\n          </div>\n        }\n\n        <WhiteSpace size='md'></WhiteSpace>\n        <List renderHeader={() => '支付方式'} className='pay-type-list'>\n          {mockData.map(i => (\n            <RadioItem\n              thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n              key={i.value}\n              checked={payType === i.value}\n              onChange={() => this.onChange(i.value)}>\n              {i.label}\n            </RadioItem>\n          ))}\n        </List>\n        <div className='pay-tip'>{`${finalEndTime}结束支付尾款`}</div>\n\n        <div className='pay-button' onClick={this.submit}>确认支付</div>\n\n        {\n          info ? (\n            <div style={{\n              position: 'fixed',\n              top: 0,\n              left: 0,\n              width: '100%',\n              height: '100%',\n              backgroundColor: 'rgba(0, 0, 0, 0.8)',\n              zIndex: '99'\n            }}>\n              <div style={{\n                padding: '20px',\n                backgroundColor: '#FFF',\n                width: '300px',\n                height: '170px',\n                margin: '0 auto',\n                position: 'absolute',\n                left: '50%',\n                top: '50%',\n                transform: 'translate(-50%, -50%)'\n              }}>\n                <Flex direction='column' justify='between' align='center' style={{height: '100%'}}>\n                  <p style={{fontSize: '16px', color: '#333333'}}>余额抵扣说明</p>\n                  <p style={{\n                    lineHeight: '20px',\n                    fontSize: '13px',\n                    color: '#666666'\n                  }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n                  <div onClick={this.showInfo} style={{\n                    width: '260px',\n                    height: '30px',\n                    lineHeight: '30px',\n                    textAlign: 'center',\n                    borderRadius: '3px',\n                    border: '1px solid #0099FF',\n                    color: '#0099FF',\n                    fontSize: '15px'\n                  }}>知道了\n                  </div>\n                </Flex>\n              </div>\n            </div>\n          ) : null\n        }\n      </div>\n    )\n  }\n}\n\nexport default WithFullSize(FinalDepositOrder)\n","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n    return (\n        <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id, props.item)}>\n            <div className=\"content\">\n                <div className=\"cover\">\n                    {props.status}\n                    <img src={props.img} alt=\"\"/>\n                </div>\n                {props.info}\n            </div>\n            {props.tab}\n        </li>\n    );\n};\n\nexport default VList;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _rcCheckbox = require('rc-checkbox');\n\nvar _rcCheckbox2 = _interopRequireDefault(_rcCheckbox);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n  if (obj && obj.__esModule) {\n    return obj;\n  } else {\n    var newObj = {};\n\n    if (obj != null) {\n      for (var key in obj) {\n        if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n      }\n    }\n\n    newObj['default'] = obj;\n    return newObj;\n  }\n}\n\nfunction _interopRequireDefault(obj) {\n  return obj && obj.__esModule ? obj : {\n    'default': obj\n  };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n  var t = {};\n\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\n\nvar Radio = function (_React$Component) {\n  (0, _inherits3['default'])(Radio, _React$Component);\n\n  function Radio() {\n    (0, _classCallCheck3['default'])(this, Radio);\n    return (0, _possibleConstructorReturn3['default'])(this, (Radio.__proto__ || Object.getPrototypeOf(Radio)).apply(this, arguments));\n  }\n\n  (0, _createClass3['default'])(Radio, [{\n    key: 'render',\n    value: function render() {\n      var _a = this.props,\n          className = _a.className,\n          style = _a.style,\n          restProps = __rest(_a, [\"className\", \"style\"]);\n\n      var prefixCls = restProps.prefixCls,\n          children = restProps.children;\n      var wrapCls = (0, _classnames2['default'])(prefixCls + '-wrapper', className);\n\n      if ('class' in restProps) {\n        // Todo https://github.com/developit/preact-compat/issues/422\n\n        /* tslint:disable:no-string-literal */\n        delete restProps['class'];\n      }\n\n      var mark = React.createElement('label', {\n        className: wrapCls,\n        style: style\n      }, React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, restProps, {\n        type: 'radio'\n      })), children);\n\n      if (this.props.wrapLabel) {\n        return mark;\n      }\n\n      return React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, this.props, {\n        type: 'radio'\n      }));\n    }\n  }]);\n  return Radio;\n}(React.Component);\n\nexports['default'] = Radio;\nRadio.defaultProps = {\n  prefixCls: 'am-radio',\n  wrapLabel: true\n};\nmodule.exports = exports['default'];","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nvar _RadioItem = require('./RadioItem');\n\nvar _RadioItem2 = _interopRequireDefault(_RadioItem);\n\nfunction _interopRequireDefault(obj) {\n  return obj && obj.__esModule ? obj : {\n    'default': obj\n  };\n}\n\n_Radio2['default'].RadioItem = _RadioItem2['default'];\nexports['default'] = _Radio2['default'];\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _list = require('../list');\n\nvar _list2 = _interopRequireDefault(_list);\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nfunction _interopRequireWildcard(obj) {\n  if (obj && obj.__esModule) {\n    return obj;\n  } else {\n    var newObj = {};\n\n    if (obj != null) {\n      for (var key in obj) {\n        if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n      }\n    }\n\n    newObj['default'] = obj;\n    return newObj;\n  }\n}\n\nfunction _interopRequireDefault(obj) {\n  return obj && obj.__esModule ? obj : {\n    'default': obj\n  };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n  var t = {};\n\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\n\nvar ListItem = _list2['default'].Item;\n\nfunction noop() {}\n\nvar RadioItem = function (_React$Component) {\n  (0, _inherits3['default'])(RadioItem, _React$Component);\n\n  function RadioItem() {\n    (0, _classCallCheck3['default'])(this, RadioItem);\n    return (0, _possibleConstructorReturn3['default'])(this, (RadioItem.__proto__ || Object.getPrototypeOf(RadioItem)).apply(this, arguments));\n  }\n\n  (0, _createClass3['default'])(RadioItem, [{\n    key: 'render',\n    value: function render() {\n      var _this2 = this;\n\n      var _a = this.props,\n          listPrefixCls = _a.listPrefixCls,\n          onChange = _a.onChange,\n          disabled = _a.disabled,\n          radioProps = _a.radioProps,\n          onClick = _a.onClick,\n          otherProps = __rest(_a, [\"listPrefixCls\", \"onChange\", \"disabled\", \"radioProps\", \"onClick\"]);\n\n      var prefixCls = otherProps.prefixCls,\n          className = otherProps.className,\n          children = otherProps.children;\n      var wrapCls = (0, _classnames3['default'])(prefixCls + '-item', className, (0, _defineProperty3['default'])({}, prefixCls + '-item-disabled', disabled === true)); // Note: if not omit `onChange`, it will trigger twice on check listitem\n\n      if (!disabled) {\n        otherProps.onClick = onClick || noop;\n      }\n\n      var extraProps = {};\n      ['name', 'defaultChecked', 'checked', 'onChange', 'disabled'].forEach(function (i) {\n        if (i in _this2.props) {\n          extraProps[i] = _this2.props[i];\n        }\n      });\n      return React.createElement(ListItem, (0, _extends3['default'])({}, otherProps, {\n        prefixCls: listPrefixCls,\n        className: wrapCls,\n        extra: React.createElement(_Radio2['default'], (0, _extends3['default'])({}, radioProps, extraProps))\n      }), children);\n    }\n  }]);\n  return RadioItem;\n}(React.Component);\n\nexports['default'] = RadioItem;\nRadioItem.defaultProps = {\n  prefixCls: 'am-radio',\n  listPrefixCls: 'am-list',\n  radioProps: {}\n};\nmodule.exports = exports['default'];"],"sourceRoot":""}