Commit 46d4d994 by wangshuo

合并Pre

parents 8624032a 36e22dc8
This source diff could not be displayed because it is too large. You can view the blob instead.
#root,.page-body,body{height:100%}.country-header{margin:0;padding:0 3.466667vw;font-size:4vw;font-family:Hiragino Sans GB;font-weight:400;color:#3e3e3e;line-height:7.466667vw;background-color:#f5f5f5}.country-list .country-item:nth-child(n+2){border-top:1px solid #ececec}.country-item{margin-left:3.2vw;padding-right:5.866667vw}.country-item__link{display:flex;align-items:center;justify-content:space-between;height:13.333333vw}.country-name{color:#3e3e3e}.country-name,.country-num{font-size:4vw;font-family:Hiragino Sans GB}.country-num{color:#555}.letter-nav{position:fixed;top:11.733333vw;bottom:0;right:.533333vw;height:124.8vw;margin:auto;z-index:999}.letter-nav__item{width:3.2vw;margin-bottom:1.6vw;font-size:2.666667vw;font-family:Hiragino Sans GB;color:#09f;text-align:center;line-height:3.2vw;cursor:pointer}.letter-nav__item--active{border-radius:50%;color:#fff;background-color:#09f}
/*# sourceMappingURL=33.400393b7.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/fe/frontCode/mr-julyedu/src/components/country/index.scss"],"names":[],"mappings":"AA2GA,sBACE,WAAY,CAId,gBACE,QAAA,CACA,oBAAA,CACA,aAAA,CACA,4BAAA,CACA,eAAA,CACA,aAAA,CACA,sBAAA,CACA,wBAAyB,CAG3B,2CAKM,4BAA6B,CAKnC,cACE,iBAAA,CACA,wBAAmB,CAGrB,oBACE,YAAA,CACA,kBAAA,CACA,6BAAA,CACA,kBAAY,CAGd,cAGE,aAAc,CAGhB,2BALE,aAAA,CACA,4BAOW,CAHb,aAGE,UAAW,CAIb,YACE,cAAA,CACA,eAAA,CACA,QAAA,CACA,eAAA,CACA,cAAA,CACA,WAAA,CACA,WAAY,CAGd,kBACE,WAAA,CAEA,mBAAA,CACA,oBAAA,CACA,4BAAA,CACA,UAAA,CACA,iBAAA,CACA,iBAAA,CACA,cAAe,CAGjB,0BACE,iBAAA,CACA,UAAA,CACA,qBAAyB","file":"33.400393b7.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\nbody {\n height: 100%; }\n\n#root {\n height: 100%; }\n\n.page-body {\n height: 100%; }\n\n.country-header {\n margin: 0;\n padding: 0 13px;\n font-size: 15px;\n font-family: Hiragino Sans GB;\n font-weight: normal;\n color: #3E3E3E;\n line-height: 28px;\n background-color: #F5F5F5; }\n\n.country-list .country-item:nth-child(n+2) {\n border-top: 1px solid #ECECEC; }\n\n.country-item {\n margin-left: 12px;\n padding-right: 22px; }\n\n.country-item__link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 50px; }\n\n.country-name {\n font-size: 15px;\n font-family: Hiragino Sans GB;\n color: #3E3E3E; }\n\n.country-num {\n font-size: 15px;\n font-family: Hiragino Sans GB;\n color: #555; }\n\n.letter-nav {\n position: fixed;\n top: 44px;\n bottom: 0;\n right: 2px;\n height: 468px;\n margin: auto;\n z-index: 999; }\n\n.letter-nav__item {\n width: 12px;\n margin-bottom: 6px;\n font-size: 10px;\n font-family: Hiragino Sans GB;\n color: #0099FF;\n text-align: center;\n line-height: 12px;\n cursor: pointer; }\n\n.letter-nav__item--active {\n border-radius: 50%;\n color: #fff;\n background-color: #0099FF; }\n"]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1170:function(e,t,a){},1190:function(e,t,a){"use strict";a.r(t);a(43);var n=a(13),c=a.n(n),o=a(5),r=a(7),i=a(6),s=a(8),l=a(89),u=a(9),m=a(0),d=a.n(m),p=(a(1170),a(27)),f=a(3),h=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(s.a)(t).call(this,e))).toCourseDetail=function(e){Object(l.a)(a).state.fromApp?Object(f.a)("toCourse",e):a.props.history.push("/detail?id=".concat(e))},a.state={list:[],fromApp:!!Object(f.c)("from")},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;f.d.get("".concat(API.home,"/sys/red_packet/share_course")).then(function(t){200===t.data.code?e.setState({list:t.data.data}):c.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this,t=this.state.list;return d.a.createElement("div",{className:"share-course"},!this.state.fromApp&&d.a.createElement(p.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),t&&t.length>0?d.a.createElement("div",null,t.map(function(t,a){var n=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title text-overflow-1"},t.course_title),d.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),d.a.createElement("button",null,"\u5206\u4eab\u9886\u7ea2\u5305"));return d.a.createElement("div",{key:a},d.a.createElement(p.j,{img:t.image_name,info:n,id:t.course_id,toDetail:e.toCourseDetail}))})):d.a.createElement("div",null,d.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),t}(m.Component);t.default=h}}]);
//# sourceMappingURL=32.27cc44c2.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/ShareCourse/index.js"],"names":["ShareCourse","props","_this2","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","state","fromApp","SendMessageToApp","history","push","concat","list","getParam","_this3","http","get","API","home","then","res","data","code","setState","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this4","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","length","map","item","index","Info","course_title","simpledescription","key","img","image_name","course_id","toDetail","Component"],"mappings":"yOAOMA,cAEF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAmBVQ,eAAiB,SAACC,GACHP,OAAAQ,EAAA,EAAAR,CAAAD,GACDU,MAAMC,QACZC,YAAiB,WAAYJ,GAEXR,EAAKD,MAAhBc,QACCC,KAAR,cAAAC,OAA2BP,KAxB/BR,EAAKU,MAAQ,CACTM,KAAM,GACNL,UAAUM,YAAS,SAJRjB,mFAQC,IAAAkB,EAAAf,KAChBgB,IAAKC,IAAL,GAAAL,OAAYM,IAAIC,KAAhB,iCAAoDC,KAAK,SAACC,GAChC,MAAlBA,EAAIC,KAAKC,KACTR,EAAKS,SAAS,CACVX,KAAMQ,EAAIC,KAAKA,OAGnBG,EAAAC,EAAMC,KAAKN,EAAIC,KAAKM,IAAK,sCAe5B,IAAAC,EAAA7B,KACEa,EAAQb,KAAKO,MAAbM,KACP,OACIiB,EAAAJ,EAAAK,cAAA,OAAKC,UAAW,iBAEPhC,KAAKO,MAAMC,SACZsB,EAAAJ,EAAAK,cAACE,EAAA,EAAD,CAAWC,MAAM,iCAAQC,OAAO,IAIhCtB,GAAQA,EAAKuB,OAAS,EAAIN,EAAAJ,EAAAK,cAAA,WAEdlB,EAAKwB,IAAI,SAACC,EAAMC,GACZ,IAAMC,EACFV,EAAAJ,EAAAK,cAAA,OAAKC,UAAU,QACXF,EAAAJ,EAAAK,cAAA,KAAGC,UAAW,yBAA0BM,EAAKG,cAC7CX,EAAAJ,EAAAK,cAAA,KAAGC,UAAW,2BAA4BM,EAAKI,mBAC/CZ,EAAAJ,EAAAK,cAAA,iDAGR,OACID,EAAAJ,EAAAK,cAAA,OAAKY,IAAKJ,GACNT,EAAAJ,EAAAK,cAACE,EAAA,EAAD,CACIW,IAAKN,EAAKO,WACVlB,KAAMa,EACNnC,GAAIiC,EAAKQ,UACTC,SAAUlB,EAAKzB,qBAQvC0B,EAAAJ,EAAAK,cAAA,WACID,EAAAJ,EAAAK,cAAA,KAAGC,UAAU,YAAb,qFAnEFgB,aA4EXrD","file":"mrstatic/js/32.27cc44c2.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '@/common';\nimport {http, getParam, SendMessageToApp} from '@/utils';\nimport {Toast} from 'antd-mobile';\n\n\nclass ShareCourse extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n list: [],\n fromApp: !getParam('from') ? false : true\n };\n }\n\n componentDidMount() {\n http.get(`${API.home}/sys/red_packet/share_course`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n list: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n toCourseDetail = (id) => {\n const _this = this\n if (_this.state.fromApp) {\n SendMessageToApp(\"toCourse\", id)\n } else {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n }\n }\n\n render() {\n const {list} = this.state;\n return (\n <div className={'share-course'}>\n {\n !this.state.fromApp &&\n <HeaderBar title='分享领红包' arrow={true}/>\n }\n\n {\n list && list.length > 0 ? <div>\n {\n list.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className={'title text-overflow-1'}>{item.course_title}</p>\n <p className={'contact text-overflow-1'}>{item.simpledescription}</p>\n <button>分享领红包</button>\n </div>\n )\n return (\n <div key={index}>\n <VList\n img={item.image_name}\n info={Info}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n\n )\n })\n }\n </div> :\n <div>\n <p className='not-data'>暂时没有可分享的课程哦〜</p>\n </div>\n }\n\n </div>\n )\n }\n}\n\nexport default ShareCourse;\n"],"sourceRoot":""}
\ No newline at end of file
<<<<<<< HEAD:build/mrstatic/js/DrawDocument.7730f3de.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1176:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(91);var n=t(25),c=t.n(n),l=(t(154),t(35)),s=t.n(l),i=(t(155),t(76)),r=t.n(i),m=t(5),o=t(7),d=t(6),p=t(8),E=t(9),u=t(0),N=t.n(u),v=(t(897),t(102)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},897:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.7730f3de.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1181:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(90);var n=t(26),c=t.n(n),l=(t(154),t(35)),s=t.n(l),i=(t(156),t(74)),r=t.n(i),m=t(5),o=t(7),d=t(6),p=t(8),E=t(9),u=t(0),N=t.n(u),v=(t(901),t(101)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},901:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.64517bad.chunk.js.map
>>>>>>> pre:build/mrstatic/js/DrawDocument.64517bad.chunk.js
{"version":3,"sources":["components/scholarship/DrawDocument/DrawDocument.js"],"names":["DrawDocument","props","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","react__WEBPACK_IMPORTED_MODULE_11___default","a","createElement","className","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","onClick","history","goBack","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","size","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","align","style","height","_common_CallApp__WEBPACK_IMPORTED_MODULE_13__","text","Component"],"mappings":"4RAKqBA,cACjB,SAAAA,EAAYC,GAAQ,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAJ,GAAAE,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAF,GAAAO,KAAAH,KACVH,0EAGN,OACIO,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBACZH,EAAAC,EAAAC,cAAA,WACIF,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,CAAWE,UAAW,UAClBH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,iCAAkCE,QAAST,KAAKH,MAAMa,QAAQC,SAC5EP,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBAAhB,8BAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,WACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,0XACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,+KACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,qgBACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,iFAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,UACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAAQ,EAAAT,EAAA,CAAMU,QAAQ,UAAUC,MAAM,SAASC,MAAO,CAACC,OAAQ,SACnDd,EAAAC,EAAAC,cAAA,KAAGC,UAAW,OAAd,iGAEAH,EAAAC,EAAAC,cAACa,EAAA,EAAD,CAASZ,UAAU,MAAMa,KAAK,qCAlChBC","file":"mrstatic/js/DrawDocument.64517bad.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WhiteSpace, WingBlank } from 'antd-mobile';\nimport './DrawDocument.scss';\nimport OpenApp from '@/common/CallApp';\n\nexport default class DrawDocument extends Component {\n constructor(props) {\n super(props);\n }\n render() {\n return (\n <div className={'drawDocument'}>\n <div>\n <WingBlank className={'navbar'}>\n <i className={'iconfont iconiconfront-68 back'} onClick={this.props.history.goBack}></i>\n <div className={\"common-ft-15\"}>规则说明</div>\n </WingBlank>\n </div>\n\n <div className={'content'}>\n <WingBlank>\n <div className={'directions-div'}>分销规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>点击『分享赚钱』生成您的专属海报,把专属海报分享到微信、微博、QQ、知乎、贴吧等,他人通过您的海报购买后您可获得相应的佣金奖励。</p>\n <WhiteSpace size='lg'></WhiteSpace>\n <WhiteSpace size='lg'></WhiteSpace>\n <div className={'directions-div'}>提现规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>1. 已开始的直播课程,用户购买后佣金会实时转入您的账号余额;</p>\n <p className={'directions-p'}>2. 尚未开课的直播课程,用户购买后归属您的佣金户暂时存放在『待确认金额』中,直到该课程正式开课。如果用户没有退款,对应的订单金额会自动转入您的账号余额,否则该佣金会自动收回;</p>\n <p className={'directions-p'}>3. 余额中的金额可随时提现。</p>\n </WingBlank>\n </div>\n\n <div className={'bottom'}>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <p className={'tip'}>收支明细及待确认金额请前往App查看</p>\n {/* <div className={'app'}>在APP打开</div> */}\n <OpenApp className='app' text='在APP打开'/>\n </Flex>\n </WingBlank>\n </div>\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
<<<<<<< HEAD:build/mrstatic/js/DrawDocument.7730f3de.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1176:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(91);var n=t(25),c=t.n(n),l=(t(154),t(35)),s=t.n(l),i=(t(155),t(76)),r=t.n(i),m=t(5),o=t(7),d=t(6),p=t(8),E=t(9),u=t(0),N=t.n(u),v=(t(897),t(102)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},897:function(e,a,t){}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1176:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(91);var n=t(25),c=t.n(n),l=(t(154),t(35)),s=t.n(l),i=(t(155),t(76)),r=t.n(i),m=t(5),o=t(7),d=t(6),p=t(8),E=t(9),u=t(0),N=t.n(u),v=(t(897),t(102)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},897:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.7730f3de.chunk.js.map //# sourceMappingURL=DrawDocument.7730f3de.chunk.js.map
\ No newline at end of file =======
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1181:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(90);var n=t(26),c=t.n(n),l=(t(154),t(35)),s=t.n(l),i=(t(156),t(74)),r=t.n(i),m=t(5),o=t(7),d=t(6),p=t(8),E=t(9),u=t(0),N=t.n(u),v=(t(901),t(101)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},901:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.64517bad.chunk.js.map
>>>>>>> pre:build/mrstatic/js/DrawDocument.64517bad.chunk.js
<<<<<<< HEAD:build/mrstatic/js/Examination.df98c5b3.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1195:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),m=(a(904),a(15)),u=a.n(m),p=a(30),w=(a(905),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(p.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),h=a(3),d=a(906);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,r=t.analysis,c=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(p.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(p.i,{className:"category-tag"},c),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:r,isShowAnswer:!0}),l.a.createElement(w,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},904:function(e,t,a){},905:function(e,t,a){}}]);
//# sourceMappingURL=Examination.df98c5b3.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1199:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),m=(a(909),a(16)),u=a.n(m),p=a(27),w=(a(910),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(p.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),h=a(3),d=a(911);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,r=t.analysis,c=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(p.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(p.i,{className:"category-tag"},c),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:r,isShowAnswer:!0}),l.a.createElement(w,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},909:function(e,t,a){},910:function(e,t,a){}}]);
//# sourceMappingURL=Examination.715386e2.chunk.js.map
>>>>>>> pre:build/mrstatic/js/Examination.715386e2.chunk.js
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"2LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,QAAb,6DACAH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAASD,UAAU,SAAnB,sFCISE,cAEjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,WAAa,WACTP,EAAKQ,SAAS,CAACC,cAAeT,EAAKU,MAAMD,gBApBzCT,EAAKU,MAAQ,CACTD,cAAc,EACdE,aAAc,IAJHX,mFAQC,IAAAY,EAAAT,KAChBU,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,qBACKC,KAAK,SAAAC,GAAO,IAAAC,EACwBD,EAAzBE,KAAQA,EADPD,EACOC,KAChB,GAAY,MAFHD,EACaE,KACL,CACb,IAAMC,EAAUtB,SAAOuB,OAAOH,EAAM,CAACI,SAAUJ,EAAKI,SAASC,OAAQ,EAAGL,EAAKI,SAASE,MAAM,MAAO,KACnGf,EAAKJ,SAAS,CACVG,aAAcY,wCAUzB,IAAAK,EAMDzB,KAAKO,MANJmB,EAAAD,EAEDjB,aACImB,EAHHD,EAGGC,KAAMC,EAHTF,EAGSE,QAASC,EAHlBH,EAGkBG,QAASP,EAH3BI,EAG2BJ,SAAUQ,EAHrCJ,EAGqCI,SAEtCxB,EALCmB,EAKDnB,aAEJ,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAAWqC,MAAM,2BAAOC,OAAO,EAAMC,MAAM,IAC3C3C,EAAAC,EAAAC,cAAA,OAAKC,UAAU,sBACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SACXH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAAKD,UAAU,gBAAgBqC,GAC/BxC,EAAAC,EAAAC,cAAA,QAAM0C,wBAAyB,CAACC,OAAQR,MAG5B,IAAZC,GAAiBtC,EAAAC,EAAAC,cAAC4C,EAAD,CAAa3C,UAAU,UAAUoC,QAASA,EAC7BQ,YAAarC,KAAKO,MAAMD,gBAIrDA,GAEGhB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cAAc6C,QAAStC,KAAKI,YACvCd,EAAAC,EAAAC,cAAA,uCAAUF,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAMnCa,GAAgBhB,EAAAC,EAAAC,cAAC+C,EAAD,CAAQC,QAASlB,EAAUhB,cAAY,IAE3DhB,EAAAC,EAAAC,cAACiD,EAAD,cA3DyBC,iBAiEnCN,EAAcO,IAAMC,KAAK,SAAAC,GAA4B,IAA1BhB,EAA0BgB,EAA1BhB,QAASQ,EAAiBQ,EAAjBR,YACtC,OACI/C,EAAAC,EAAAC,cAAA,MAAIC,UAAU,WAENoC,EAAQiB,IAAI,SAACC,EAAMC,GAAP,OACR1D,EAAAC,EAAAC,cAAA,MAAIyD,IAAKD,EAAOvD,UAAWyD,IAAW,SAAU,CAACC,OAA0B,IAAhBJ,EAAKK,QAAgBf,KAC5E/C,EAAAC,EAAAC,cAAA,QAAMC,UAAU,YAAY4D,OAAOC,aAAa,GAAKN,IACpDD,EAAKQ,UAQxBhB,EAASI,IAAMC,KAAK,SAAAY,GAA6B,IAA3BhB,EAA2BgB,EAA3BhB,QAASlC,EAAkBkD,EAAlBlD,aACjC,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAWyD,IAAW,SAAU,CAACO,MAAOnD,KACzChB,EAAAC,EAAAC,cAAA,KAAGC,UAAU,UAAb,gBACC+C,EAAQjB,OAAO,GAAKiB,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"mrstatic/js/Examination.715386e2.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
<<<<<<< HEAD:build/mrstatic/js/Examination.df98c5b3.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1195:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),m=(a(904),a(15)),u=a.n(m),p=a(30),w=(a(905),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(p.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),h=a(3),d=a(906);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,r=t.analysis,c=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(p.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(p.i,{className:"category-tag"},c),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:r,isShowAnswer:!0}),l.a.createElement(w,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},904:function(e,t,a){},905:function(e,t,a){}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1195:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),m=(a(904),a(15)),u=a.n(m),p=a(30),w=(a(905),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(p.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),h=a(3),d=a(906);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,r=t.analysis,c=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(p.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(p.i,{className:"category-tag"},c),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:r,isShowAnswer:!0}),l.a.createElement(w,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},904:function(e,t,a){},905:function(e,t,a){}}]);
//# sourceMappingURL=Examination.df98c5b3.chunk.js.map //# sourceMappingURL=Examination.df98c5b3.chunk.js.map
\ No newline at end of file =======
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1199:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),m=(a(909),a(16)),u=a.n(m),p=a(27),w=(a(910),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(p.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),h=a(3),d=a(911);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,r=t.analysis,c=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(p.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(p.i,{className:"category-tag"},c),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:r,isShowAnswer:!0}),l.a.createElement(w,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},909:function(e,t,a){},910:function(e,t,a){}}]);
//# sourceMappingURL=Examination.715386e2.chunk.js.map
>>>>>>> pre:build/mrstatic/js/Examination.715386e2.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1186:function(e,t,a){"use strict";a.r(t);a(43);var n=a(13),s=a.n(n),i=a(5),c=a(7),o=a(6),l=a(8),r=a(9),u=a(0),m=a.n(u),d=(a(257),a(20)),h=a(3),p=a(27),v=a(31),f=a(24),b=a(63),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).toEditName=function(e){a.setState({isShow:!0,value:e})},a.cancle=function(){a.setState({isShow:!1})},a.handleChange=function(e){a.setState({value:e.target.value})},a.outLogin=function(){a.props.logout(),s.a.info("\u5df2\u9000\u51fa",2),a.props.history.push("/my")},a.submit=function(){if(a.state.value.length>12)s.a.info("\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26",2);else if(0===a.state.value.length)s.a.info("\u8bf7\u8f93\u5165\u6635\u79f0",2);else{var e={user_name:a.state.value};h.d.post("".concat(API.home,"/m/user_info/update"),e).then(function(e){200===e.data.code?(a.setState({isShow:!1}),a.props.updateUser({data:{username:a.state.value}}),s.a.info("\u4fee\u6539\u6210\u529f",2)):4008===e.data.code?a.setState({isShow:!1}):s.a.info(e.data.msg,2)})}},a.state={isShow:!1,value:""},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props.user,t=e&&e.data&&e.data.username,a=e&&e.data&&e.data.avatar;return m.a.createElement("div",{className:"edit-name"},m.a.createElement(p.e,{title:"\u8d26\u53f7",arrow:!0,cart:!1}),m.a.createElement("div",{className:"my-mess"},m.a.createElement("img",{src:a,alt:""}),m.a.createElement("span",{className:"name"},t),m.a.createElement("span",{onClick:this.toEditName.bind(this,t),className:"edit"},"\u7f16\u8f91")),m.a.createElement("div",{className:"out-login",onClick:this.outLogin},"\u9000\u51fa\u767b\u5f55"),this.state.isShow&&m.a.createElement("div",{className:"edit-mbc"},m.a.createElement("div",{className:"edit-content"},m.a.createElement("div",{className:"edit-title"},"\u4fee\u6539\u6635\u79f0"),m.a.createElement("input",{type:"text",placeholder:"\u8bf7\u8f93\u5165\u6635\u79f0\uff08\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26\uff09",value:this.state.value,onChange:this.handleChange.bind(this)}),m.a.createElement("div",{className:"edit-btn"},m.a.createElement("button",{className:"cancle",onClick:this.cancle},"\u53d6\u6d88"),m.a.createElement("button",{className:"submit",onClick:this.submit},"\u786e\u8ba4")))))}}]),t}(u.PureComponent);t.default=Object(f.d)(Object(d.b)(function(e){return{user:e.user}},{logout:v.e,updateUser:v.i}),b.a)(E)}}]);
//# sourceMappingURL=MyEdit.fe4ce0d0.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/my/edit.js"],"names":["MyEdut","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toEditName","name","setState","isShow","value","cancle","handleChange","e","target","outLogin","logout","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","history","push","submit","state","length","data","user_name","http","post","concat","API","home","then","res","code","updateUser","username","msg","user","avatar","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","src","alt","onClick","bind","type","placeholder","onChange","PureComponent","compose","connect","WithFullSize"],"mappings":"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","file":"mrstatic/js/MyEdit.fe4ce0d0.chunk.js","sourcesContent":["import React, {PureComponent} from 'react'\nimport './index.scss'\nimport {connect} from \"react-redux\"\nimport {Toast} from 'antd-mobile'\nimport {http} from \"@/utils\"\nimport {HeaderBar} from \"@/common\"\nimport {logout, updateUser} from '@/store/userAction'\nimport {compose} from \"redux\";\nimport {WithFullSize} from '@/HOCs'\n\nclass MyEdut extends PureComponent {\n constructor(props) {\n super(props)\n this.state = {\n isShow: false,\n value: ''\n }\n }\n\n // 点击编辑\n toEditName = (name) => {\n this.setState({\n isShow: true,\n value: name\n })\n }\n // 取消\n cancle = () => {\n this.setState({\n isShow: false\n })\n }\n\n // 获取input的值\n handleChange = (e) => {\n this.setState({\n value: e.target.value\n })\n }\n // 退出登录\n outLogin = () => {\n this.props.logout()\n Toast.info('已退出', 2)\n this.props.history.push('/my')\n }\n\n // 确定修改\n submit = () => {\n if (this.state.value.length > 12) {\n Toast.info('不超过12个字符', 2)\n } else if (this.state.value.length === 0) {\n Toast.info('请输入昵称', 2)\n } else {\n let data = {\n user_name: this.state.value\n }\n http.post(`${API.home}/m/user_info/update`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShow: false\n })\n this.props.updateUser({data: {username: this.state.value}})\n Toast.info('修改成功', 2)\n } else if (res.data.code === 4008) {\n this.setState({\n isShow: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n }\n\n render() {\n const {user} = this.props\n const username = user && user.data && user.data.username\n const avatar = user && user.data && user.data.avatar\n return (\n <div className=\"edit-name\">\n <HeaderBar title='账号' arrow={true} cart={false}></HeaderBar>\n\n <div className='my-mess'>\n <img src={avatar} alt=\"\"/>\n <span className=\"name\">{username}</span>\n <span onClick={this.toEditName.bind(this, username)} className=\"edit\">编辑</span>\n </div>\n <div className=\"out-login\" onClick={this.outLogin}>\n 退出登录\n </div>\n\n {\n this.state.isShow &&\n <div className=\"edit-mbc\">\n <div className=\"edit-content\">\n <div className=\"edit-title\">修改昵称</div>\n <input type=\"text\" placeholder='请输入昵称(不超过12个字符)'\n value={this.state.value}\n onChange={this.handleChange.bind(this)}\n />\n <div className=\"edit-btn\">\n <button className='cancle' onClick={this.cancle}>取消</button>\n <button className='submit' onClick={this.submit}>确认</button>\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {logout, updateUser}\n ),\n WithFullSize\n)(MyEdut)\n"],"sourceRoot":""}
\ No newline at end of file
<<<<<<< HEAD:build/mrstatic/js/Orderinfo.eaea6ad9.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1179:function(e,a,n){"use strict";n.r(a);var o=n(5),r=n(7),t=n(6),l=n(8),i=n(9),c=(n(44),n(14)),s=n.n(c),p=n(18),u=(n(155),n(76)),d=n.n(u),f=(n(1149),n(1151)),h=n.n(f),m=(n(1152),n(1154)),v=n.n(m),b=n(0),q=n.n(b),g=n(19),E=n(30),j=n(3),y=Object(g.f)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,o=e.cellphone,r=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?j.d.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(n){200===n.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(p.a)({},e))):s.a.info(n.data.msg,void 0,void 0,!1)}):a.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var a=e.values,n=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return q.a.createElement("form",null,q.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return n("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:a.real_name},"\u59d3\u540d"),q.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return n("cellphone",e)},value:a.cellphone},"\u7535\u8bdd"),q.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return n("qq",e)},value:a.qq},"QQ"),q.a.createElement("div",{style:{marginTop:"21px"}},q.a.createElement(d.a,null,q.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function a(e){return Object(o.a)(this,a),Object(t.a)(this,Object(l.a)(a).call(this,e))}return Object(i.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),a}(b.Component);a.default=O}}]);
//# sourceMappingURL=Orderinfo.eaea6ad9.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1183:function(e,a,n){"use strict";n.r(a);var o=n(5),r=n(7),t=n(6),l=n(8),i=n(9),c=(n(43),n(13)),s=n.n(c),p=n(19),u=(n(156),n(74)),d=n.n(u),f=(n(1154),n(1156)),h=n.n(f),m=(n(1157),n(1159)),v=n.n(m),b=n(0),q=n.n(b),g=n(18),E=n(27),j=n(3),y=Object(g.f)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,o=e.cellphone,r=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?j.d.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(n){200===n.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(p.a)({},e))):s.a.info(n.data.msg,void 0,void 0,!1)}):a.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var a=e.values,n=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return q.a.createElement("form",null,q.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return n("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:a.real_name},"\u59d3\u540d"),q.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return n("cellphone",e)},value:a.cellphone},"\u7535\u8bdd"),q.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return n("qq",e)},value:a.qq},"QQ"),q.a.createElement("div",{style:{marginTop:"21px"}},q.a.createElement(d.a,null,q.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function a(e){return Object(o.a)(this,a),Object(t.a)(this,Object(l.a)(a).call(this,e))}return Object(i.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),a}(b.Component);a.default=O}}]);
//# sourceMappingURL=Orderinfo.74536538.chunk.js.map
>>>>>>> pre:build/mrstatic/js/Orderinfo.74536538.chunk.js
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"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","file":"mrstatic/js/Orderinfo.74536538.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n // console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n // console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
<<<<<<< HEAD:build/mrstatic/js/Orderinfo.eaea6ad9.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1179:function(e,a,n){"use strict";n.r(a);var o=n(5),r=n(7),t=n(6),l=n(8),i=n(9),c=(n(44),n(14)),s=n.n(c),p=n(18),u=(n(155),n(76)),d=n.n(u),f=(n(1149),n(1151)),h=n.n(f),m=(n(1152),n(1154)),v=n.n(m),b=n(0),q=n.n(b),g=n(19),E=n(30),j=n(3),y=Object(g.f)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,o=e.cellphone,r=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?j.d.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(n){200===n.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(p.a)({},e))):s.a.info(n.data.msg,void 0,void 0,!1)}):a.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var a=e.values,n=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return q.a.createElement("form",null,q.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return n("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:a.real_name},"\u59d3\u540d"),q.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return n("cellphone",e)},value:a.cellphone},"\u7535\u8bdd"),q.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return n("qq",e)},value:a.qq},"QQ"),q.a.createElement("div",{style:{marginTop:"21px"}},q.a.createElement(d.a,null,q.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function a(e){return Object(o.a)(this,a),Object(t.a)(this,Object(l.a)(a).call(this,e))}return Object(i.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),a}(b.Component);a.default=O}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1179:function(e,a,n){"use strict";n.r(a);var o=n(5),r=n(7),t=n(6),l=n(8),i=n(9),c=(n(44),n(14)),s=n.n(c),p=n(18),u=(n(155),n(76)),d=n.n(u),f=(n(1149),n(1151)),h=n.n(f),m=(n(1152),n(1154)),v=n.n(m),b=n(0),q=n.n(b),g=n(19),E=n(30),j=n(3),y=Object(g.f)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,o=e.cellphone,r=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?j.d.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(n){200===n.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(p.a)({},e))):s.a.info(n.data.msg,void 0,void 0,!1)}):a.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var a=e.values,n=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return q.a.createElement("form",null,q.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return n("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:a.real_name},"\u59d3\u540d"),q.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return n("cellphone",e)},value:a.cellphone},"\u7535\u8bdd"),q.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return n("qq",e)},value:a.qq},"QQ"),q.a.createElement("div",{style:{marginTop:"21px"}},q.a.createElement(d.a,null,q.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function a(e){return Object(o.a)(this,a),Object(t.a)(this,Object(l.a)(a).call(this,e))}return Object(i.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),a}(b.Component);a.default=O}}]);
//# sourceMappingURL=Orderinfo.eaea6ad9.chunk.js.map //# sourceMappingURL=Orderinfo.eaea6ad9.chunk.js.map
\ No newline at end of file =======
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1183:function(e,a,n){"use strict";n.r(a);var o=n(5),r=n(7),t=n(6),l=n(8),i=n(9),c=(n(43),n(13)),s=n.n(c),p=n(19),u=(n(156),n(74)),d=n.n(u),f=(n(1154),n(1156)),h=n.n(f),m=(n(1157),n(1159)),v=n.n(m),b=n(0),q=n.n(b),g=n(18),E=n(27),j=n(3),y=Object(g.f)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,o=e.cellphone,r=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?j.d.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(n){200===n.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(p.a)({},e))):s.a.info(n.data.msg,void 0,void 0,!1)}):a.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var a=e.values,n=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return q.a.createElement("form",null,q.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return n("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:a.real_name},"\u59d3\u540d"),q.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return n("cellphone",e)},value:a.cellphone},"\u7535\u8bdd"),q.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return n("qq",e)},value:a.qq},"QQ"),q.a.createElement("div",{style:{marginTop:"21px"}},q.a.createElement(d.a,null,q.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function a(e){return Object(o.a)(this,a),Object(t.a)(this,Object(l.a)(a).call(this,e))}return Object(i.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),a}(b.Component);a.default=O}}]);
//# sourceMappingURL=Orderinfo.74536538.chunk.js.map
>>>>>>> pre:build/mrstatic/js/Orderinfo.74536538.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1180:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(156);var n=t(74),i=t.n(n),c=(t(90),t(26)),o=t.n(c),r=(t(154),t(35)),s=t.n(r),l=(t(43),t(13)),d=t.n(l),p=t(5),u=t(7),m=t(6),y=t(8),f=t(89),g=t(9),h=(t(896),t(898)),b=t.n(h),v=(t(117),t(47)),w=t.n(v),E=t(0),S=t.n(E),x=t(3),_=t(27),k=t(15),j=(t(900),w.a.Item.Brief,b.a.RadioItem),I=[];I=x.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var P=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.c)("status"),a=Object(x.c)("type"),n=Object(x.c)("oid"),i=t.props.history;if(e||a)if(0===parseInt(e,10))if(2===parseInt(a,10))i.push("/togroup?id=".concat(n));else if(4===parseInt(a,10)){c&&window.localStorage.setItem("payCourse",c);var c=window.localStorage.getItem("payCourse");c&&i.push("/detail?id=".concat(c),{oid:n})}else i.push("/purchased");else d.a.info("\u652f\u4ed8\u5f02\u5e38",2)},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.f)()?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":x.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(f.a)(t),a=Object(x.c)("code");if(a){if(void 0===Object(x.c)("oid"))return;x.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(f.a)(t);e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(f.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);x.d.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(g.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay();var a={};a=this.props.location.state&&this.props.location.state.group?{order_id:this.state.orderId,type:2}:{order_id:this.state.orderId},x.d.post("".concat(API["base-api"],"/m/order/detail"),a).then(function(a){if(200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg,2)}),(1===Object(x.c)("is_class")||Object(x.c)("weixinpay"))&&this.payCallback(),Object(x.f)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,l=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(s.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(s.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(k.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.j,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(s.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(s.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},I.map(function(a){return S.a.createElement(j,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(l,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(j,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},900:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.10f70607.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1139:function(e,t,a){},1140:function(e,t,a){},1201:function(e,t,a){"use strict";a.r(t);var n,r=a(5),s=a(7),c=a(6),o=a(8),i=a(9),l=a(0),u=a.n(l),h=a(705),p=a(162),d=a(3),m=(a(1139),a(43),a(13)),f=a.n(m),v=a(20),g=(a(1140),a(27)),w=a(49),y=(a(73),Object(v.b)()(n=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(a=Object(c.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).state={courses:[]},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;d.d.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):f.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return u.a.createElement("div",{className:"recommendation"},u.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),u.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var a=u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},t.price1),u.a.createElement("span",{className:"old-price"},t.price0));return u.a.createElement(g.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})})))}}]),t}(l.Component))||n),b=Object(w.g)(y),E=a(1141),S=a.n(E),N=u.a.forwardRef(function(e,t){return u.a.createElement(h.a,Object.assign({},e,{forwardedRef:t}))}),C=function(e){var t=e.item;return u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},"\xa5",t.price1),u.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},O=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(a=Object(c.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).prevScrollY=0,a.searchHead=u.a.createRef(),a.swipeUp="up",a.swipeDown="down",a.state={courseList:[],value:decodeURIComponent(Object(d.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:a.swipeUp},a.getCourses=function(e){d.d.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&a.setState({courseList:t.data.info.search_data.course})})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleSearch=function(){a.state.value&&a.getCourses(a.state.value)},a.handleChange=function(e){a.setState({value:e})},a.toCourseDetail=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleScroll=S()(function(){var e=window.scrollY,t=a.searchHead.current.offsetTop;e<a.prevScrollY?a.state.swipeDirection===a.swipeDown?e<=t&&"fixed"!==a.state.searchHeadStyle.position&&a.setState({searchHeadStyle:{top:"0",position:"fixed"}}):a.setState({swipeDirection:a.swipeDown},function(){a.state.swipeDirection===a.swipeDown&&a.setState({searchHeadStyle:{top:"".concat(e>t?e-44:e,"px")}})}):a.state.swipeDirection!==a.swipeUp&&a.setState({swipeDirection:a.swipeUp,searchHeadStyle:{position:"absolute",top:"".concat(e,"px")}}),a.prevScrollY=e},0),a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(d.c)("word")),document.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.state.courseList;return u.a.createElement("div",{className:"search-result"},u.a.createElement(N,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead}),t&&t.length>0?u.a.createElement("ul",null,t.map(function(t){var a=u.a.createElement("div",{className:"info"},u.a.createElement("p",{className:"title"},t.course_title),u.a.createElement("p",{className:"des"},t.simpledescription),u.a.createElement(C,{item:t})),n=t.bargain_num||t.groupon_num?u.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return u.a.createElement(p.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:a,id:t.course_id,status:n})})):u.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),u.a.createElement(b,null))}}]),t}(l.PureComponent);t.default=O},705:function(e,t,a){"use strict";a(605);var n=a(607),r=a.n(n),s=a(5),c=a(7),o=a(6),i=a(8),l=a(9),u=a(0),h=a.n(u),p=a(49),d=a(16),m=a.n(d),f=(a(706),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),c=0;c<n;c++)r[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).state={isFocus:!1},a.returnPage=function(){a.props.history.go(-1)},a.search=function(){a.storeKeyword(),a.props.handleSearch()},a.storeKeyword=function(){var e=a.props,t=e.searchHistory,n=void 0===t?[]:t,r=e.value,s=n.some(function(e){return e===r})?n:n.concat([r]);localStorage.setItem("searchHistory",JSON.stringify(s))},a.changeFontColor=function(e){a.setState({isFocus:e})},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,a=m()("submit-btn",{"submit-btn--active":t});return h.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},h.a.createElement("div",{className:"left",onClick:this.returnPage},h.a.createElement("i",{className:"iconfont iconiconfront-68"})),h.a.createElement("div",{className:"center"},h.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),h.a.createElement("div",{className:"right right-btn",onClick:this.search},h.a.createElement("div",{className:a},"\u641c\u7d22")))}}]),t}(u.PureComponent));t.a=Object(p.g)(f)},706:function(e,t,a){}}]);
//# sourceMappingURL=SearchResult.8f828883.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1197:function(e,t,a){"use strict";a.r(t);a(739);var c=a(740),n=a.n(c),r=a(19),s=(a(43),a(13)),i=a.n(s),o=a(5),l=a(7),u=a(6),d=a(8),h=a(9),m=(a(254),a(92)),p=a.n(m),f=a(0),v=a.n(f),k=a(20),g=a(27),E=a(62),b=a(15),N=a(159),C=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).state={val:e.item.value},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"onChange",value:function(e,t){var a=e.target.checked;this.props.checkChange(t,a)}},{key:"render",value:function(){var e=this,t=this.props.item,a=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.props.toDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"order-content text-overflow-2"},t.simpledescription),v.a.createElement("p",{className:"order-des"},v.a.createElement("span",{className:"order-newprice"},"\xa5",t.price1),v.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return v.a.createElement("div",{className:"cart-c-item"},v.a.createElement("div",{className:"cart-c-check"},v.a.createElement(n.a,{checked:t.check,onChange:function(a){e.onChange(a,t.course_id)}})),v.a.createElement("div",{className:"card-wrap"},v.a.createElement(N.a,{info:a,src:t.image_name,id:t.course_id,toDetail:this.props.toDetail})))}}]),t}(f.Component),j=function(e){function t(){return Object(o.a)(this,t),Object(u.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-main"},v.a.createElement("div",{className:"cart-c-body"},this.props.data.length>0?this.props.data.map(function(t,a){return v.a.createElement(C,{index:a,changeStock:function(t,a){e.props.changeStock(t,a)},checkChange:function(t,a){e.props.checkChange(t,a)},key:a,item:t,toDetail:e.props.toDetail})}):v.a.createElement("div",{className:"cart-tip"},v.a.createElement("p",{className:"cart-mess"},"\u8fd9\u91cc\u662f\u7a7a\u7684\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),v.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(f.Component),y=(a(908),a(16)),O=a.n(y),w=a(3),I=(a(73),p.a.alert),S=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).getList=function(){w.d.get("".concat(API.home,"/m/cart/list")).then(function(e){200===e.data.code?a.setState({data:e.data.data.courses,isLoading:!1}):i.a.info(e.data.msg,2)})},a.tobuy=function(){w.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(a.state.courseIdarr,"]")).then(function(e){0==e.data.errno?a.props.history.push("/order?id=[".concat(a.state.courseIdarr,"]"),{simple:1}):i.a.info(e.data.msg,2)})},a.todelete=function(){a.state.courseIdarr.length>0&&I("","\u786e\u5b9a\u4ece\u8d2d\u7269\u8f66\u4e2d\u5220\u9664\uff1f",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var e={course_ids:a.state.courseIdarr};w.d.post("".concat(API.home,"/m/cart/remove"),e).then(function(e){200===e.data.code?(a.getList(),a.setState({checkedNum:0,allPrice:0})):i.a.info(e.data.msg,2)})}}])},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],checkedNum:0,allPrice:0,cartNmu:0,courseIdarr:[],isLoading:!0},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"allChange",value:function(e){var t=e.target.checked,a=this.state.data.map(function(e,a){return Object(r.a)({},e,{check:t})});if(this.setState({data:a}),this.calc(a),t){var c=[];a.map(function(e,t){c.push(e.course_id)}),this.setState({courseIdarr:c})}else this.setState({courseIdarr:[]})}},{key:"checkChange",value:function(e,t){var a=this,c=this.state.data.map(function(a,c){return a.course_id===e?Object(r.a)({},a,{check:t}):a});this.setState({data:c}),this.calc(c);var n=[];c.forEach(function(e,t){e.check?(n.push(e.course_id),a.setState({courseIdarr:n})):a.setState({courseIdarr:n})})}},{key:"calc",value:function(e){var t=0,a=0,c=0,n=[];e.forEach(function(e,r){e.check&&(n.push(e),c+=1,a=n.length,t+=parseFloat(e.price1))}),this.setState({checkedNum:a,allPrice:t,cartNmu:c})}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-page",style:{overflow:"hidden"}},v.a.createElement(g.e,{title:"\u8d2d\u7269\u8f66",arrow:!0,cart:!1,delete:!0,toDelete:this.todelete}),v.a.createElement(E.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"cart-body"},v.a.createElement(j,{checkChange:this.checkChange.bind(this),data:this.state.data,toDetail:this.toCourseDetail}),v.a.createElement("div",{className:"cart-footer"},v.a.createElement("div",{className:"cart-label"},v.a.createElement(n.a,{onChange:function(t){e.allChange(t)}}),v.a.createElement("div",null,"\u5168\u9009")),v.a.createElement("div",{className:"all-pirce"},v.a.createElement("p",null,v.a.createElement("span",null,"\u5408\u8ba1\uff1a"),v.a.createElement("span",null,"\uffe5",this.state.allPrice))),v.a.createElement("div",{className:O()({active:this.state.checkedNum>0}),onClick:function(){e.state.checkedNum>0&&e.tobuy()}},"\u7ed3\u7b97",v.a.createElement("span",null," ( ",this.state.checkedNum," ) "))))))}}]),t}(f.Component);t.default=Object(k.b)()(S)},908:function(e,t,a){}}]);
//# sourceMappingURL=ShopCart.708254be.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1172:function(e,a,t){},1192:function(e,a,t){"use strict";t.r(a);var s=t(5),c=t(7),n=t(6),r=t(8),l=t(9),i=t(0),m=t.n(i),o=(t(1172),t(160)),d=t(3),u=(t(146),t(15)),v=function(e){function a(){var e,t;Object(s.a)(this,a);for(var c=arguments.length,l=new Array(c),i=0;i<c;i++)l[i]=arguments[i];return(t=Object(n.a)(this,(e=Object(r.a)(a)).call.apply(e,[this].concat(l)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},t}return Object(l.a)(a,e),Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this,a=new URLSearchParams(this.props.location.search);d.d.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(a.get("id"),"/").concat(a.get("vId"))).then(function(a){if(200==a.data.errno){var t=a.data.data;e.setState({course:{title:t.course_title,des:t.course_desc,img:t.image_name,id:t.course_id},user:{avatar:t.avatar,name:t.username,time:t.create_time},progress:{days:t.learn_day_num,action:t.action_power}}),Object(d.i)({title:t.share_title,desc:t.share_desc,imgUrl:t.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,a=e.user,t=e.course,s=e.progress;return m.a.createElement("div",{className:"aist-share"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"user"},m.a.createElement("img",{src:a.avatar,alt:"\u5934\u50cf"}),m.a.createElement("span",{className:"username"},a.name),m.a.createElement("span",{className:"time"},a.time)),m.a.createElement(u.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},m.a.createElement("div",{className:"course"},m.a.createElement("div",{className:"course-cover"},m.a.createElement("img",{src:t.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),m.a.createElement("div",{className:"course-info"},m.a.createElement("div",{className:"title"},t.title),m.a.createElement("div",{className:"des"},t.des)))),m.a.createElement("ul",{className:"progress"},m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.days),"\u5929")),m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.action),"%"))),m.a.createElement("div",{className:"recommend-app"},m.a.createElement("div",{className:"text"},m.a.createElement("div",{className:"bold"},m.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),m.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),m.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),m.a.createElement("div",{className:"qrcode"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),a}(i.PureComponent);a.default=Object(o.a)(v)}}]);
//# sourceMappingURL=aist-share.936a4b09.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/index.js"],"names":["AistShare","state","course","title","des","img","id","progress","days","action","showShareCover","user","avatar","name","time","_this2","this","search","URLSearchParams","props","location","http","get","concat","API","then","res","data","errno","setState","course_title","course_desc","image_name","course_id","username","create_time","learn_day_num","action_power","wxShare","share_title","desc","share_desc","imgUrl","link","href","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","pathname","PureComponent","withFullSize"],"mappings":"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","file":"mrstatic/js/aist-share.936a4b09.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport './aist-share.scss'\nimport withFullSize from '@/HOCs/WithFullSize'\nimport { http, wxShare } from \"@/utils\";\nimport { getWXObject } from \"@/utils/wechat/base\";\nimport {Link} from \"react-router-dom\";\n\nclass AistShare extends PureComponent {\n state = {\n course: {\n title: '',\n des: '',\n img: '',\n id: ''\n },\n progress: {\n days: 0,\n action: 0\n },\n showShareCover: true,\n user: {\n avatar: '',\n name: '',\n time: ''\n }\n }\n\n componentDidMount() {\n const search = new URLSearchParams(this.props.location.search);\n http.get(`${API['base-api']}/m/aist/share_ground_data/${search.get('id')}/${search.get('vId')}`)\n .then(res => {\n if (res.data.errno == 200) {\n const data = res.data.data;\n this.setState({\n course: {\n title: data.course_title,\n des: data.course_desc,\n img: data.image_name,\n id: data.course_id\n },\n user: {\n avatar: data.avatar,\n name: data.username,\n time: data.create_time\n },\n progress: {\n days: data.learn_day_num,\n action: data.action_power\n }\n })\n wxShare({\n title: data.share_title,\n desc: data.share_desc,\n imgUrl: data.image_name,\n link: location.href\n })\n }\n\n })\n }\n\n\n render() {\n const {user, course, progress} = this.state\n return (\n <div className='aist-share'>\n <div className=\"content\">\n <div className=\"user\">\n <img src={user.avatar} alt=\"头像\"/>\n <span className=\"username\">{user.name}</span>\n <span className=\"time\">{user.time}</span>\n </div>\n <Link to={{pathname: '/detail', search: `?id=${this.state.course.id}`}}>\n <div className=\"course\">\n <div className=\"course-cover\">\n <img src={course.img} alt=\"课程封面\"/>\n </div>\n <div className=\"course-info\">\n <div className=\"title\">{course.title}</div>\n <div className=\"des\">{course.des}</div>\n </div>\n </div>\n </Link>\n <ul className=\"progress\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.days}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.action}</span>%</div>\n </li>\n </ul>\n <div className=\"recommend-app\">\n <div className=\"text\">\n <div className=\"bold\">\n <div>立即下载【七月在线】</div>\n <div>众多好课免费学</div>\n </div>\n <div className=\"light\">\n 长按识别右侧二维码\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png\"\n alt=\"\"/>\n </div>\n </div>\n <div className=\"qrcode\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default withFullSize(AistShare);"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{1178:function(e,t,a){"use strict";a.r(t);a(43);var s=a(13),i=a.n(s),c=a(5),n=a(7),r=a(6),o=a(8),l=a(9),u=a(0),d=a.n(u),m=(a(894),a(27)),p=a(3),f=a(15),h=a(20),v=(a(73),a(62)),E=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.d.get("".concat(API.home,"/m/my/courses")).then(function(e){200===e.data.code?a.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],isLoading:!0},a}return Object(l.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return d.a.createElement("div",{className:"purchased-box"},d.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),d.a.createElement(v.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?d.a.createElement("div",{className:"purchased-body"},d.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist&&d.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return d.a.createElement(m.j,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,toDetail:e.toCourseDetail})})):d.a.createElement("div",{className:"cart-tip"},d.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),d.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(u.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(E)},894:function(e,t,a){}}]);
//# sourceMappingURL=purchased.fa603b7f.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","contact_type","course_qq","status","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"yOAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAYVQ,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,kBAAsCC,KAAK,SAACC,GAClB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVF,KAAMD,EAAIC,KAAKA,KACfG,WAAW,IAGfC,EAAAC,EAAMC,KAAKP,EAAIC,KAAKO,IAAK,MArBlBtB,EA0BnBuB,eAAiB,SAACC,GAAO,IAAAC,EACSzB,EAAKD,MADd0B,EACbC,SADaD,EACHE,QAENC,KAAR,cAAAlB,OAA2Bc,KA3B/BxB,EAAK6B,MAAQ,CACTd,KAAM,GACNG,WAAW,GAJAlB,mFASfG,KAAKI,2CAyBA,IAAAuB,EAAA3B,KACE4B,EAAQ5B,KAAKJ,MAAbgC,KACDC,EAAMD,GAAQA,EAAKhB,MAAQgB,EAAKhB,KAAKiB,IAC3C,OACIC,EAAAb,EAAAc,cAAA,OAAKC,UAAU,iBACXF,EAAAb,EAAAc,cAACE,EAAA,EAAD,CAAWC,OAAO,EAAMC,MAAM,2BAAOC,MAAM,EAAOC,OAAO,QACzDP,EAAAb,EAAAc,cAACO,EAAA,EAAD,CAASvB,UAAWf,KAAK0B,MAAMX,WAEvBf,KAAK0B,MAAMd,MAAQZ,KAAK0B,MAAMd,KAAK2B,OAAS,EACxCT,EAAAb,EAAAc,cAAA,OAAKC,UAAU,kBACXF,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,+DAAgCH,GAE5B7B,KAAK0B,MAAMd,KAAK4B,IAAI,SAACC,EAAMC,GACvB,IAAMC,EACFb,EAAAb,EAAAc,cAAA,OAAKC,UAAU,QACXF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,QAAQY,QAAS,kBAAMjB,EAAKP,eAAeqB,EAAKI,aAEpDJ,EAAKK,cAGdhB,EAAAb,EAAAc,cAAA,KAAGC,UAAU,2BAA2BS,EAAKM,mBAGzCN,EAAKO,SACAlB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iCAA2BS,EAAKQ,gBAGpCR,EAAKO,SAAgC,GAArBP,EAAKS,cAAqBT,EAAKU,WAChDrB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iBAA0BS,EAAKU,YAG9BV,EAAKO,SAAgC,GAArBP,EAAKS,cAAqBT,EAAKU,WAChDrB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,uCAA4BS,EAAKU,YAIvCC,EACFX,EAAKO,SAAWlB,EAAAb,EAAAc,cAAA,QAAMC,UAAU,UAAhB,gBAEpB,OACIF,EAAAb,EAAAc,cAACE,EAAA,EAAD,CACIoB,IAAKX,EACLY,IAAKb,EAAKc,WACVlC,GAAIoB,EAAKI,UACT3B,KAAMyB,EACNS,OAAQA,EACRI,SAAU7B,EAAKP,oBAMjCU,EAAAb,EAAAc,cAAA,OAAKC,UAAU,YACbF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,aAAb,mFACAF,EAAAb,EAAAc,cAAC0B,EAAA,EAAD,CAAMC,GAAG,aAAT,gCAzFRC,aAmGTC,sBACX,SAAAlC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFWgC,CAGbjE","file":"mrstatic/js/purchased.fa603b7f.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '../../common'\nimport { http } from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {getCourses} from './../detail/actions';\nimport Loading from '@/common/Loading'\n\nclass Purchased extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/courses`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n return (\n <div className='purchased-box'>\n <HeaderBar arrow={true} title='已购课程' cart={false} toHref='/my' />\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && this.state.data.length > 0 ?\n <div className=\"purchased-body\">\n <div className='tip'>加群请备注您的学号:{uid}</div>\n {\n this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\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\n {\n item.is_aist &&\n <div className='des'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='des'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='des'>班主任微信:{item.course_qq}</div>\n }\n </div>\n )\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n status={status}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n </div>\n : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有课程哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </Loading>\n\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Purchased)\n"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],f=r[1],u=r[2],d=0,l=[];d<i.length;d++)a=i[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={19:0},o={19:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,7:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,17:1,18:1,20:1,21:1,22:1,23:1,24:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"36de17cb",2:"127d35ae",3:"f9591fc3",4:"1bd3da48",5:"17af9370",6:"31d6cfe0",7:"e46f87f2",8:"31d6cfe0",9:"68a25070",10:"312f2a43",11:"b11acd73",12:"887eb690",13:"f4398072",14:"cf38c16e",15:"d29af7a6",17:"e3d68b58",18:"c9466779",20:"e26f3ee9",21:"cde549fc",22:"c5bde985",23:"ffd8be6c",24:"b8d615d9",26:"31d6cfe0",27:"0710e3e3",28:"51412fcd",29:"e292ab6b",30:"1133c967",31:"37fb0c23",32:"6e885738",33:"400393b7"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var u=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var s;if((u=(s=d[f]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=function(e){return i.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"f7d72649",1:"07a763d0",2:"b83ef43f",3:"0b291f92",4:"64517bad",5:"715386e2",6:"fe4ce0d0",7:"493a3c85",8:"74536538",9:"10f70607",10:"9b1d015f",11:"8f828883",12:"708254be",13:"936a4b09",14:"86ed52ec",15:"174c1250",17:"135a788e",18:"fa603b7f",20:"987e041e",21:"f5c3672b",22:"87355657",23:"a17c7832",24:"de65a949",26:"4f6e8aa4",27:"609e1388",28:"0e072caa",29:"3aa86bb6",30:"4df9490e",31:"c642c90d",32:"27cc44c2",33:"e0c873a6"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],u=f.push.bind(f);f.push=r,f=f.slice();for(var d=0;d<f.length;d++)r(f[d]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.3dec521d.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1176:function(e,t,a){"use strict";a.r(t);a(43);var n=a(13),c=a.n(n),r=a(5),i=a(7),s=a(6),o=a(8),d=a(89),l=a(9),m=a(0),u=a.n(m),g=(a(872),a(27)),v=a(3),h=a(662),f=a.n(h),p=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(s.a)(this,Object(o.a)(t).call(this,e))).initCanvas=function(e,t){var n=Object(d.a)(a),c=e[t].poster,r=450*e[t].header_position_x,i=800*e[t].header_position_y,s=(e[t].qr_code_x,e[t].qr_code_y,e[t].qr_code_width,e[t].qr_code_height,"https://m.julyedu.com/detail?id=".concat(Object(v.c)("courseId"),"&dist_code").concat(Object(v.c)("dist_code")),document.getElementById("canvas")),o=s.getContext("2d");n.getBase64(c).then(function(a){var c=new Image;c.src=a;var s=document.getElementById("qrcode"),d=navigator.userAgent.toLowerCase();d.indexOf("Android")>-1||d.indexOf("Adr"),d.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?s=document.getElementById("qrcode"):/(Android)/i.test(navigator.userAgent)&&(s=document.getElementById("qrcode")),c.setAttribute("crossOrigin","anonymous"),c.onload=function(){o.drawImage(c,0,0,450,800),o.drawImage(s,320,685,100,100),o.fillStyle=e[t].username_color,o.font="16px serif",o.fillText("@"+n.state.name,r+50+20,i+25),o.font="14px serif",o.fillText("\u6b63\u5728\u5b66\u4e60\u8be5\u8bfe\u7a0b",r+50+20,i+25+20),o.restore()}}).then(function(){n.getBase64(n.state.imgUrl).then(function(e){var t=new Image;t.src=e,t.setAttribute("crossOrigin","anonymous"),t.setAttribute("border-Radius","50%"),t.onload=function(){n.imgPosition(o,t,r,i,24),o.drawImage(t,r,i,48,48),o.restore(),n.setState({billSrc:n.convertCanvasToImage(s)})}})})},a.children=function(e,t){var a=e.childNodes,n=[];if(/MSIE(6|7|8)/.test(navigator.userAgent))for(var c=0;c<a.length;c++){var r=a[c];1===r.nodeType&&(n[n.length]=r)}else n=Array.prototype.slice.call(e.children);if("string"===typeof t)for(var i=0;i<n.length;i++)(e=n[i]).nodeName.toLowerCase()!==t.toLowerCase()&&(n.splice(i,1),i--);return n},a.imgPosition=function(e,t,a,n,c){e.save();var r=a+c,i=n+c;e.beginPath(),e.arc(r,i,c,0,2*Math.PI),e.clip()},a.getBase64Image=function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height);var a=e.src.substring(e.src.lastIndexOf(".")+1).toLowerCase();return t.toDataURL("image/"+a)},a.convertCanvasToImage=function(e){var t=new Image;return t.src=e.toDataURL("image/png"),t},a.squareClick=function(e){a.setState({smallactive:e}),a.initCanvas(a.state.bgImage,e)},a.state={codeSrc:"",billSrc:"",imgUrl:"",smallListImg:[],smallactive:0,distPrice:"",name:"",bgImage:[]},a}return Object(l.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getCodeWe(),v.d.get("".concat(API.home,"/m/dist/posters/").concat(Object(v.c)("courseId"),"/").concat(Object(v.c)("uid"))).then(function(t){200===t.data.code?(e.setState({imgUrl:t.data.data.avatar,smallListImg:t.data.data.list,distPrice:t.data.data.dist_course,bgImage:t.data.data.list,name:t.data.data.username}),e.initCanvas(e.state.bgImage,0)):c.a.info(t.data.msg,2)})}},{key:"getCodeWe",value:function(){var e=this,t="https://m.julyedu.com/detail?id=".concat(Object(v.c)("courseId"),"&dist_code=").concat(Object(v.c)("dist_code"));return new Promise(function(a){f.a.toDataURL(t,{},function(t,a){e.setState({codeSrc:a})}),a()})}},{key:"getBase64",value:function(e){var t=this;return new Promise(function(a){var n=null,c=new Image,r=+new Date;c.setAttribute("crossOrigin","anonymous"),c.src=e+"?"+r,c.onload=function(){n=t.getBase64Image(c),a(n)},c.onerror=function(){var a=+new Date;t.getBase64(e+"?"+a)}})}},{key:"render",value:function(){var e=this,t=this.state,a=t.distPrice,n=void 0===a?{}:a,c=t.smallListImg,r=void 0===c?[]:c,i=t.smallactive;return u.a.createElement("div",{className:"share-poster"},u.a.createElement(g.e,{title:"\u751f\u6210\u4e13\u5c5e\u6d77\u62a5",arrow:!0,cart:!1}),u.a.createElement("div",{className:"total-container"},u.a.createElement("div",{className:"placard-img-container",id:"imgWrapper"},u.a.createElement("img",{src:this.state.billSrc.src,alt:""})),u.a.createElement("img",{src:this.state.codeSrc,alt:"",id:"qrcode",className:"placard-code"}),u.a.createElement("canvas",{id:"canvas",width:"450",height:"800",className:""===this.state.billSrc?"":"hide"})),u.a.createElement("div",{className:"placard-desc"},u.a.createElement("span",{className:"placard-sharetxt"},"\u957f\u6309\u4fdd\u5b58\u6d77\u62a5\u5206\u4eab\u7ed9\u597d\u53cb\uff0c\u6bcf\u6709\u4e00\u4eba\u901a\u8fc7\u60a8\u7684\u5206\u4eab\u8d2d\u4e70\u8be5\u8bfe\u7a0b\uff0c\u60a8\u53ef\u4ee5",0===n.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97",n.first_level_tip,"\u5143\u7684\u4f63\u91d1\u5956\u52b1\u3002"),1===n.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97\u6210\u4ea4\u91d1\u989d\u7684",n.first_level_scale,"%\u4f5c\u4e3a\u4f63\u91d1\u5956\u52b1\u3002"))),u.a.createElement("div",{className:"placard-swiper"},u.a.createElement("ul",{className:"placard-list"},r.length>0&&r.map(function(t,a){return u.a.createElement("li",{onClick:e.squareClick.bind(e,a),key:a,className:i===a?"active":""},u.a.createElement("img",{src:t.square,alt:""}))}))))}}]),t}(m.Component);t.default=p},872:function(e,t,a){}}]);
//# sourceMappingURL=shareposter.f5c3672b.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1179:function(e,a,t){"use strict";t.r(a);t(156);var n,s=t(74),c=t.n(s),r=(t(90),t(26)),i=t.n(r),o=(t(154),t(35)),l=t.n(o),m=(t(254),t(92)),u=t.n(m),d=(t(43),t(13)),p=t.n(d),E=t(5),f=t(7),v=t(6),N=t(8),h=t(9),_=t(0),g=t.n(_),b=(t(895),t(27)),y=t(3),w=t(20),C=t(15),k=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function a(e){var t;return Object(E.a)(this,a),(t=Object(v.a)(this,Object(N.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,s=e.data;if(y.b.isWeixin){var c=t.state.share;t.setState({share:!c}),Object(y.i)({title:"\u3010\u4ec5\u5269".concat(n,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(s.course_title,"\u300b"),desc:s.course_title,link:location.href,imgUrl:s.image_name})}else p.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){return t.props.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.handleToGroup=function(){var e=t.state,a=e.isBuy,n=void 0!==a&&a,s=e.data,c=void 0===s?{}:s,r=t.props,i=r.user,o=r.history,l=r.location;i.hasError?o.push("/passport",{from:l}):n?t.setState({modal:!0}):o.push("/order?id=".concat(c.course_id),{group:1})},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,number:0,isBuy:!1,modal:!1},t}return Object(h.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;y.d.get("".concat(API["base-api"],"/pdd/info/").concat(Object(y.c)("id"))).then(function(a){if(0===a.data.errno){if(e.setState({data:a.data.data.course_info,pdd_price:a.data.data.pdd_price,groupon_member:a.data.data.groupon_member,is_success:a.data.data.is_success,person_num:a.data.data.person_num,course_list:a.data.data.course_list,number:a.data.data.number,countdown:"",isBuy:a.data.data.is_buy}),0===a.data.data.is_success){var t=1e3*a.data.data.end_time,n=0,s=0,c=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),c="".concat(parseInt((t-36e5*n-6e4*s)/1e3)).padStart(2,0),e.setState({countdown:"".concat(n,":").concat(s,":").concat(c)})},1e3)}}else p.a.info(a.data.msg,2)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,s=t.course_title,c=t.simpledescription,r=t.price0,i=t.price1,o=(a.pdd_price,a.is_success),m=(a.person_num,a.groupon_member,a.course_list),d=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},s),g.a.createElement("p",{className:"contact text-overflow-2"},c),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",i),g.a.createElement("span",{className:"old"},"\xa5",r))));return g.a.createElement("div",{className:"to-group-box"},g.a.createElement(b.e,{title:"\u62fc\u56e2",cart:!1,toHref:"/"}),g.a.createElement(u.a,{transparent:!0,visible:this.state.modal,title:"\u63d0\u793a",footer:[{text:"\u786e\u5b9a",onPress:function(){e.setState({modal:!1}),e.props.history.push("/")}}]},g.a.createElement("p",null,"\u60a8\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u8be5\u8bfe\u7a0b\uff5e")),!o&&g.a.createElement(b.j,{img:this.state.data.image_name,id:this.state.data.course_id,info:d,toDetail:this.toCourseDetail}),g.a.createElement(j,{data:this.state,invitedFriends:this.invitedFriends,handleToGroup:this.handleToGroup,userInfo:this.props.user}),g.a.createElement(l.a,null),g.a.createElement("div",{className:"group-course"},g.a.createElement("div",{className:"top-title"},g.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),g.a.createElement(C.b,{to:"/preferential",className:"more"},"\u66f4\u591a",g.a.createElement("i",{className:"iconfont iconiconfront-70"}))),m&&m.length>0&&m[0].course&&m[0].course.length>0&&m[0].course.slice(0,4).map(function(a){var t=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",a.price1),g.a.createElement("span",{className:"old"},"\xa5",a.price0))));return g.a.createElement(b.j,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(_.Component))||n;function j(e){for(var a,t,n,s,r=e.data,o=r.pdd_price,l=r.data,m=r.groupon_member,u=r.is_success,d=r.person_num,p=r.share,E=r.number,f=r.countdown,v=e.userInfo,N=[],h=E;0!=h;)N.push(h),h--;if(s=g.a.createElement("div",{className:"group-user-list"},g.a.createElement(i.a,{justify:"center",className:"imgList"},m.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?g.a.createElement("div",{className:"leaderFlag"},g.a.createElement("span",null,"\u56e2\u957f")):null)}),N.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("div",{className:"imgname"},g.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),m&&m.length>0){var _=!1;!v.hasError&&m.map(function(e){e.uid==v.data.uid&&(_=!0)}),_?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("a",{href:"javascript:;",className:"group-btn",onClick:e.handleToGroup},"\u4e00\u952e\u53c2\u56e2"))}return 1===u&&(a=g.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=g.a.createElement(C.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),g.a.createElement("div",{className:"gorup-content"},p?g.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},g.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),g.a.createElement("div",{className:"tipArrow"},g.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,g.a.createElement(c.a,null,s),g.a.createElement(c.a,null,t),n,!u&&g.a.createElement("div",{className:"group-dec"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),g.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(d,"\u4eba\u6210\u56e2"))))}a.default=k},895:function(e,a,t){}}]);
//# sourceMappingURL=togroup.a17c7832.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -422,6 +422,9 @@ Created by iconfont ...@@ -422,6 +422,9 @@ Created by iconfont
<glyph glyph-name="play_hovericon" unicode="&#59011;" d="M512 896c282.763636 0 512-229.236364 512-512s-229.236364-512-512-512S0 101.236364 0 384 229.236364 896 512 896z m182.760727-552.680727a46.545455 46.545455 0 0 1 0 81.361454l-311.086545 172.846546A23.272727 23.272727 0 0 1 349.090909 577.163636v-386.327272a23.272727 23.272727 0 0 1 34.583273-20.363637l311.086545 172.846546z" horiz-adv-x="1024" /> <glyph glyph-name="play_hovericon" unicode="&#59011;" d="M512 896c282.763636 0 512-229.236364 512-512s-229.236364-512-512-512S0 101.236364 0 384 229.236364 896 512 896z m182.760727-552.680727a46.545455 46.545455 0 0 1 0 81.361454l-311.086545 172.846546A23.272727 23.272727 0 0 1 349.090909 577.163636v-386.327272a23.272727 23.272727 0 0 1 34.583273-20.363637l311.086545 172.846546z" horiz-adv-x="1024" />
<glyph glyph-name="gengduo" unicode="&#58960;" d="M511.616 883.328c-137.344 0-254.72-49.024-352.128-147.2C61.824 638.72 13.184 521.344 13.184 384c0-137.856 48.768-255.616 146.304-353.024 97.408-97.536 214.912-146.304 352.128-146.304 137.856 0 255.616 48.768 353.152 146.304 97.408 97.408 146.176 215.168 146.176 353.024 0 137.344-48.768 254.72-146.176 352.256C767.104 834.304 649.472 883.328 511.616 883.328zM198.528 696.96C285.312 783.744 389.76 827.136 511.616 827.136c122.496 0 227.072-43.392 313.856-130.176 86.784-86.144 130.176-190.464 130.176-312.96 0-122.496-43.392-227.072-130.176-313.856C738.688-16.768 633.984-60.16 511.616-60.16c-122.496 0-226.816 43.52-313.088 130.304C111.744 156.928 68.352 261.504 68.352 383.872c0 121.856 43.52 226.304 130.176 313.088z m469.12-313.088c0-14.208 4.736-26.496 14.336-36.608 10.112-9.472 22.016-14.336 35.712-14.336 13.568-0.128 26.496 5.12 36.096 14.72s14.848 22.528 14.72 36.096c-0.128 13.312-5.504 26.112-15.104 35.456-9.472 9.344-22.4 14.592-35.712 14.464-13.696 0-25.6-4.736-35.712-14.208-9.6-9.984-14.336-21.76-14.336-35.584z m-105.216 0c0 13.696-4.736 25.6-14.336 35.712-9.856 9.344-22.912 14.464-36.608 14.208-13.696 0-25.6-4.736-35.712-14.208-9.472-10.112-14.336-22.016-14.336-35.712 0-14.208 4.736-26.496 14.336-36.608 10.112-9.472 22.016-14.336 35.712-14.336 14.336 0 26.496 4.736 36.608 14.336 9.472 9.984 14.592 23.168 14.336 36.608z m-206.08 0c0 13.696-4.736 25.6-14.336 35.712-9.6 9.216-22.4 14.336-35.712 14.208-27.776 0-50.432-22.528-50.432-50.432 0-27.776 22.528-50.432 50.432-50.432 13.696 0 25.6 4.736 35.712 14.336 9.472 9.984 14.592 23.04 14.336 36.608z m0 0" horiz-adv-x="1024" />
</font> </font>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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