Commit 3acb8158 by xuzhenghua

设置密码缺少参数bug

parent 848b92fe
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["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[59],{1070:function(e,t,a){},1177:function(e,t,a){"use strict";a.r(t);a(39);var c=a(10),n=a.n(c),r=a(4),o=a(5),s=a(6),l=a(7),i=a(0),u=a.n(i),m=a(1),d=a(24),h=a(592),f=a(594),_=(a(1070),function(e){Object(s.a)(a,e);var t=Object(l.a)(a);function a(e){var c;return Object(r.a)(this,a),(c=t.call(this,e)).fetchCourseList=function(){var e=c.props.match.params.id||0;m.f.get("".concat(API.home,"/sys/school/").concat(e)).then((function(e){var t=e.data,a=t.code,n=t.data;200===a&&(c.setState({header:n.name,courseList:n.data}),document.title="\u52a9\u529b\u9ad8\u6821\u5728\u7ebf\u6559\u5b66\u8ba1\u5212\u4e4b".concat(n.name,"\u4e13\u533a - \u4e03\u6708\u5728\u7ebf"))}))},c.toCourseDetail=function(e){var t=c.props,a=t.history,r=t.match.params.id||0;m.f.post("".concat(API.home,"/sys/school/verify"),{school_id:r,course_id:e}).then((function(t){var c=t.data,r=c.code,o=c.msg;200===r?a.push("/detail?id=".concat(e)):4030===r||4013===r?a.push("/passport/login"):n.a.info("".concat(o,"~"))}))},c.state={header:"",courseList:[]},c}return Object(o.a)(a,[{key:"componentDidMount",value:function(){this.fetchCourseList()}},{key:"render",value:function(){var e=this,t=this.state,a=t.courseList,c=void 0===a?[]:a,n=t.header;return u.a.createElement(u.a.Fragment,null,u.a.createElement(d.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),u.a.createElement(h.a,null),u.a.createElement(f.a,{headerStyle:{marginTop:"20px"},title:n}),u.a.createElement("p",{className:"college-course__desc"},"\u70b9\u51fb\u9700\u8981\u5b66\u4e60\u7684\u8bfe\u7a0b\u5c01\u9762\uff0c\u5728\u8bfe\u7a0b\u8be6\u60c5\u9875\u8fdb\u5165\u8d2d\u4e70\u6d41\u7a0b\u51ed\u514d\u5355\u5238\u514d\u8d39\u5151\u6362\u8bfe\u7a0b\u3002"),u.a.createElement("div",{className:"college-course__body"},c.map((function(t){return u.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},u.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),u.a.createElement("p",{className:"college-course__title"},t.course_title))}))))}}]),a}(i.Component));t.default=_},592:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(593);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},593:function(e,t,a){},594:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(595);t.a=function(e){var t=e.title,a=e.isDecorate,c=void 0===a||a,r=e.headerStyle,o=void 0===r?{}:r;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"college-header",style:o},n.a.createElement("i",{className:"college-header__icon","data-direction":"left"}),n.a.createElement("h2",{className:"college-header__text"},t),n.a.createElement("i",{className:"college-header__icon","data-direction":"right"})),c&&n.a.createElement("i",{className:"college-header__decorate"}))}},595:function(e,t,a){}}]);
//# sourceMappingURL=59.f4d650a6.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[59],{1070:function(e,t,a){},1177:function(e,t,a){"use strict";a.r(t);a(40);var c=a(10),n=a.n(c),r=a(4),o=a(5),s=a(6),l=a(7),i=a(0),u=a.n(i),m=a(1),d=a(24),h=a(592),f=a(594),_=(a(1070),function(e){Object(s.a)(a,e);var t=Object(l.a)(a);function a(e){var c;return Object(r.a)(this,a),(c=t.call(this,e)).fetchCourseList=function(){var e=c.props.match.params.id||0;m.f.get("".concat(API.home,"/sys/school/").concat(e)).then((function(e){var t=e.data,a=t.code,n=t.data;200===a&&(c.setState({header:n.name,courseList:n.data}),document.title="\u52a9\u529b\u9ad8\u6821\u5728\u7ebf\u6559\u5b66\u8ba1\u5212\u4e4b".concat(n.name,"\u4e13\u533a - \u4e03\u6708\u5728\u7ebf"))}))},c.toCourseDetail=function(e){var t=c.props,a=t.history,r=t.match.params.id||0;m.f.post("".concat(API.home,"/sys/school/verify"),{school_id:r,course_id:e}).then((function(t){var c=t.data,r=c.code,o=c.msg;200===r?a.push("/detail?id=".concat(e)):4030===r||4013===r?a.push("/passport/login"):n.a.info("".concat(o,"~"))}))},c.state={header:"",courseList:[]},c}return Object(o.a)(a,[{key:"componentDidMount",value:function(){this.fetchCourseList()}},{key:"render",value:function(){var e=this,t=this.state,a=t.courseList,c=void 0===a?[]:a,n=t.header;return u.a.createElement(u.a.Fragment,null,u.a.createElement(d.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),u.a.createElement(h.a,null),u.a.createElement(f.a,{headerStyle:{marginTop:"20px"},title:n}),u.a.createElement("p",{className:"college-course__desc"},"\u70b9\u51fb\u9700\u8981\u5b66\u4e60\u7684\u8bfe\u7a0b\u5c01\u9762\uff0c\u5728\u8bfe\u7a0b\u8be6\u60c5\u9875\u8fdb\u5165\u8d2d\u4e70\u6d41\u7a0b\u51ed\u514d\u5355\u5238\u514d\u8d39\u5151\u6362\u8bfe\u7a0b\u3002"),u.a.createElement("div",{className:"college-course__body"},c.map((function(t){return u.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},u.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),u.a.createElement("p",{className:"college-course__title"},t.course_title))}))))}}]),a}(i.Component));t.default=_},592:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(593);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},593:function(e,t,a){},594:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(595);t.a=function(e){var t=e.title,a=e.isDecorate,c=void 0===a||a,r=e.headerStyle,o=void 0===r?{}:r;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"college-header",style:o},n.a.createElement("i",{className:"college-header__icon","data-direction":"left"}),n.a.createElement("h2",{className:"college-header__text"},t),n.a.createElement("i",{className:"college-header__icon","data-direction":"right"})),c&&n.a.createElement("i",{className:"college-header__decorate"}))}},595:function(e,t,a){}}]);
//# sourceMappingURL=59.e8e90aad.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[68],{1e3:function(e,a,t){},1158:function(e,a,t){"use strict";t.r(a);t(39);var n=t(10),c=t.n(n),i=t(4),r=t(5),s=t(6),l=t(7),o=t(0),m=t.n(o),u=(t(1e3),t(1)),p=t(20),d=function(e){Object(s.a)(t,e);var a=Object(l.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=a.call.apply(a,[this].concat(r))).state={data:""},e.getIndexData=function(){u.f.post("".concat(API["base-api"],"/m/deposit/coupon"),{order_id:Object(u.c)("order_id")}).then((function(a){if(200==a.data.errno){var t=a.data.data;e.setState({data:t})}else c.a.info(a.data.msg,2)}))},e.invitation=function(a){var t=e.props,n=t.user;t.history;n&&n.data&&n.data.uid?window.location.href=a:e.props.history.push("/passport/login")},e}return Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getIndexData()}},{key:"render",value:function(){var e=this,a=this.state.data;return m.a.createElement("div",{className:"callback-box"},m.a.createElement("div",{className:"banner"}),m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title"},"\u606d\u559c\u4f60\uff0c\u83b7\u5f97\u4e00\u5f20"),m.a.createElement("div",{className:"coupon"},m.a.createElement("p",{className:"coupon-name"},"\u81a8\u80c0\u5238"),m.a.createElement("p",{className:"coupon-price"},m.a.createElement("span",null,a.amount),"\u5143"),m.a.createElement("p",{className:"coupon-time"},"\u6709\u6548\u671f\u81f3\uff1a",a.expire_time)),m.a.createElement("div",{className:"tip"},m.a.createElement("ul",null,new Array(19).fill("1").map((function(e,a){return m.a.createElement("li",{key:a})}))),"\u5168\u573a\u901a\u7528"),m.a.createElement("div",{className:"expand"},m.a.createElement("span",{className:"expand-small"},a.amount),"\u5143",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/expand.png",alt:""}),m.a.createElement("span",{className:"expand-big"},a.limit_amount),"\u5143"),m.a.createElement("button",{className:"invitation",onClick:function(){return e.invitation(a.share_url)}},"\u9080\u8bf7\u597d\u53cb\u52a9\u529b\uff0c",a.amount,"\u5143\u53d8",a.limit_amount,"\u5143"),m.a.createElement("div",{className:"active-time"},"\u6d3b\u52a8\u65f6\u95f4\uff1a",a.start_time,"-",a.end_time),m.a.createElement("div",{className:"active-tip"},"\u9001\u52a9\u529b\u597d\u53cb",a.limit_amount,"\u5143\uff01")))}}]),t}(o.Component);a.default=Object(p.b)((function(e){return{user:e.user}}))(d)}}]);
//# sourceMappingURL=68.cf2948f8.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[68],{1e3:function(e,a,t){},1158:function(e,a,t){"use strict";t.r(a);t(40);var n=t(10),c=t.n(n),i=t(4),r=t(5),s=t(6),l=t(7),o=t(0),m=t.n(o),u=(t(1e3),t(1)),p=t(20),d=function(e){Object(s.a)(t,e);var a=Object(l.a)(t);function t(){var e;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=a.call.apply(a,[this].concat(r))).state={data:""},e.getIndexData=function(){u.f.post("".concat(API["base-api"],"/m/deposit/coupon"),{order_id:Object(u.c)("order_id")}).then((function(a){if(200==a.data.errno){var t=a.data.data;e.setState({data:t})}else c.a.info(a.data.msg,2)}))},e.invitation=function(a){var t=e.props,n=t.user;t.history;n&&n.data&&n.data.uid?window.location.href=a:e.props.history.push("/passport/login")},e}return Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getIndexData()}},{key:"render",value:function(){var e=this,a=this.state.data;return m.a.createElement("div",{className:"callback-box"},m.a.createElement("div",{className:"banner"}),m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title"},"\u606d\u559c\u4f60\uff0c\u83b7\u5f97\u4e00\u5f20"),m.a.createElement("div",{className:"coupon"},m.a.createElement("p",{className:"coupon-name"},"\u81a8\u80c0\u5238"),m.a.createElement("p",{className:"coupon-price"},m.a.createElement("span",null,a.amount),"\u5143"),m.a.createElement("p",{className:"coupon-time"},"\u6709\u6548\u671f\u81f3\uff1a",a.expire_time)),m.a.createElement("div",{className:"tip"},m.a.createElement("ul",null,new Array(19).fill("1").map((function(e,a){return m.a.createElement("li",{key:a})}))),"\u5168\u573a\u901a\u7528"),m.a.createElement("div",{className:"expand"},m.a.createElement("span",{className:"expand-small"},a.amount),"\u5143",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/expand.png",alt:""}),m.a.createElement("span",{className:"expand-big"},a.limit_amount),"\u5143"),m.a.createElement("button",{className:"invitation",onClick:function(){return e.invitation(a.share_url)}},"\u9080\u8bf7\u597d\u53cb\u52a9\u529b\uff0c",a.amount,"\u5143\u53d8",a.limit_amount,"\u5143"),m.a.createElement("div",{className:"active-time"},"\u6d3b\u52a8\u65f6\u95f4\uff1a",a.start_time,"-",a.end_time),m.a.createElement("div",{className:"active-tip"},"\u9001\u52a9\u529b\u597d\u53cb",a.limit_amount,"\u5143\uff01")))}}]),t}(o.Component);a.default=Object(p.b)((function(e){return{user:e.user}}))(d)}}]);
//# sourceMappingURL=68.af53eecc.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/expand/callback.js"],"names":["ExpandCallback","state","data","getIndexData","http","post","API","order_id","getParam","then","res","errno","setState","info","msg","invitation","url","props","user","history","uid","window","location","href","push","this","className","amount","expire_time","Array","fill","map","item","index","key","src","alt","limit_amount","onClick","share_url","start_time","end_time","Component","connect"],"mappings":"8OAMMA,E,4MACFC,MAAQ,CACJC,KAAM,I,EAQVC,aAAe,WACXC,IAAKC,KAAL,UAAaC,IAAI,YAAjB,qBAAiD,CAACC,SAAUC,YAAS,cAAcC,MAAK,SAACC,GACrF,GAAsB,KAAlBA,EAAIR,KAAKS,MAAc,CAAC,IACjBT,EAAQQ,EAAIR,KAAZA,KACP,EAAKU,SAAS,CACVV,KAAMA,SAGV,IAAMW,KAAKH,EAAIR,KAAKY,IAAK,O,EAOrCC,WAAa,SAACC,GAAS,IAAD,EACM,EAAKC,MAAtBC,EADW,EACXA,KADW,EACLC,QACDD,GAAQA,EAAKhB,MAAQgB,EAAKhB,KAAKkB,IAIvCC,OAAOC,SAASC,KAAOP,EAFvB,EAAKC,MAAME,QAAQK,KAAK,oB,kEAvB5BC,KAAKtB,iB,+BA8BC,IAAD,OACDD,EAAOuB,KAAKxB,MAAMC,KACtB,OACI,yBAAKwB,UAAU,gBACX,yBAAKA,UAAU,WACf,yBAAKA,UAAU,WACX,yBAAKA,UAAU,SAAf,oDACA,yBAAKA,UAAU,UACX,uBAAGA,UAAU,eAAb,sBACA,uBAAGA,UAAU,gBAAe,8BAAOxB,EAAKyB,QAAxC,UACA,uBAAGD,UAAU,eAAb,iCAAiCxB,EAAK0B,cAE1C,yBAAKF,UAAU,OACX,4BAEQ,IAAIG,MAAM,IAAIC,KAAK,KAAKC,KAAI,SAACC,EAAMC,GAC/B,OAAO,wBAAIC,IAAKD,QAJhC,4BAUA,yBAAKP,UAAU,UACX,0BAAMA,UAAU,gBAAgBxB,EAAKyB,QADzC,SAEI,yBAAKQ,IAAI,4EAA4EC,IAAI,KACzF,0BAAMV,UAAU,cAAcxB,EAAKmC,cAHvC,UAKA,4BAAQX,UAAU,aACVY,QAAS,kBAAM,EAAKvB,WAAWb,EAAKqC,aAD5C,6CACgErC,EAAKyB,OADrE,eAC+EzB,EAAKmC,aADpF,UAGA,yBAAKX,UAAU,eAAf,iCAAmCxB,EAAKsC,WAAxC,IAAqDtC,EAAKuC,UAC1D,yBAAKf,UAAU,cAAf,iCAAkCxB,EAAKmC,aAAvC,sB,GAnESK,aA2EdC,uBACX,SAAA1C,GAAK,MAAK,CACNiB,KAAMjB,EAAMiB,QAFLyB,CAIb3C","file":"mrstaticjs/68.cf2948f8.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './callback.scss'\nimport {http, getParam} from 'src/utils'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\";\n\nclass ExpandCallback extends Component {\n state = {\n data: ''\n }\n\n componentDidMount() {\n this.getIndexData()\n }\n\n // 获取膨胀券相关\n getIndexData = () => {\n http.post(`${API['base-api']}/m/deposit/coupon`, {order_id: getParam('order_id')}).then((res) => {\n if (res.data.errno == 200) {\n const {data} = res.data\n this.setState({\n data: data,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n // 邀请好友助力\n invitation = (url) => {\n const {user, history} = this.props;\n const uid = user && user.data && user.data.uid;\n if (!uid) {\n this.props.history.push('/passport/login')\n } else {\n window.location.href = url\n }\n }\n\n\n render() {\n let data = this.state.data\n return (\n <div className=\"callback-box\">\n <div className=\"banner\"></div>\n <div className=\"content\">\n <div className=\"title\">恭喜你,获得一张</div>\n <div className=\"coupon\">\n <p className=\"coupon-name\">膨胀券</p>\n <p className=\"coupon-price\"><span>{data.amount}</span>元</p>\n <p className=\"coupon-time\">有效期至:{data.expire_time}</p>\n </div>\n <div className=\"tip\">\n <ul>\n {\n new Array(19).fill('1').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n 全场通用\n </div>\n <div className=\"expand\">\n <span className=\"expand-small\">{data.amount}</span>元\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/expand.png\" alt=\"\"/>\n <span className=\"expand-big\">{data.limit_amount}</span>元\n </div>\n <button className=\"invitation\"\n onClick={() => this.invitation(data.share_url)}>邀请好友助力,{data.amount}元变{data.limit_amount}元\n </button>\n <div className=\"active-time\">活动时间:{data.start_time}-{data.end_time}</div>\n <div className=\"active-tip\">送助力好友{data.limit_amount}元!</div>\n </div>\n </div>\n )\n }\n\n}\n\nexport default connect(\n state => ({\n user: state.user\n }),\n)(ExpandCallback)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/expand/callback.js"],"names":["ExpandCallback","state","data","getIndexData","http","post","API","order_id","getParam","then","res","errno","setState","info","msg","invitation","url","props","user","history","uid","window","location","href","push","this","className","amount","expire_time","Array","fill","map","item","index","key","src","alt","limit_amount","onClick","share_url","start_time","end_time","Component","connect"],"mappings":"8OAMMA,E,4MACFC,MAAQ,CACJC,KAAM,I,EAQVC,aAAe,WACXC,IAAKC,KAAL,UAAaC,IAAI,YAAjB,qBAAiD,CAACC,SAAUC,YAAS,cAAcC,MAAK,SAACC,GACrF,GAAsB,KAAlBA,EAAIR,KAAKS,MAAc,CAAC,IACjBT,EAAQQ,EAAIR,KAAZA,KACP,EAAKU,SAAS,CACVV,KAAMA,SAGV,IAAMW,KAAKH,EAAIR,KAAKY,IAAK,O,EAOrCC,WAAa,SAACC,GAAS,IAAD,EACM,EAAKC,MAAtBC,EADW,EACXA,KADW,EACLC,QACDD,GAAQA,EAAKhB,MAAQgB,EAAKhB,KAAKkB,IAIvCC,OAAOC,SAASC,KAAOP,EAFvB,EAAKC,MAAME,QAAQK,KAAK,oB,kEAvB5BC,KAAKtB,iB,+BA8BC,IAAD,OACDD,EAAOuB,KAAKxB,MAAMC,KACtB,OACI,yBAAKwB,UAAU,gBACX,yBAAKA,UAAU,WACf,yBAAKA,UAAU,WACX,yBAAKA,UAAU,SAAf,oDACA,yBAAKA,UAAU,UACX,uBAAGA,UAAU,eAAb,sBACA,uBAAGA,UAAU,gBAAe,8BAAOxB,EAAKyB,QAAxC,UACA,uBAAGD,UAAU,eAAb,iCAAiCxB,EAAK0B,cAE1C,yBAAKF,UAAU,OACX,4BAEQ,IAAIG,MAAM,IAAIC,KAAK,KAAKC,KAAI,SAACC,EAAMC,GAC/B,OAAO,wBAAIC,IAAKD,QAJhC,4BAUA,yBAAKP,UAAU,UACX,0BAAMA,UAAU,gBAAgBxB,EAAKyB,QADzC,SAEI,yBAAKQ,IAAI,4EAA4EC,IAAI,KACzF,0BAAMV,UAAU,cAAcxB,EAAKmC,cAHvC,UAKA,4BAAQX,UAAU,aACVY,QAAS,kBAAM,EAAKvB,WAAWb,EAAKqC,aAD5C,6CACgErC,EAAKyB,OADrE,eAC+EzB,EAAKmC,aADpF,UAGA,yBAAKX,UAAU,eAAf,iCAAmCxB,EAAKsC,WAAxC,IAAqDtC,EAAKuC,UAC1D,yBAAKf,UAAU,cAAf,iCAAkCxB,EAAKmC,aAAvC,sB,GAnESK,aA2EdC,uBACX,SAAA1C,GAAK,MAAK,CACNiB,KAAMjB,EAAMiB,QAFLyB,CAIb3C","file":"mrstaticjs/68.af53eecc.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './callback.scss'\nimport {http, getParam} from 'src/utils'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\";\n\nclass ExpandCallback extends Component {\n state = {\n data: ''\n }\n\n componentDidMount() {\n this.getIndexData()\n }\n\n // 获取膨胀券相关\n getIndexData = () => {\n http.post(`${API['base-api']}/m/deposit/coupon`, {order_id: getParam('order_id')}).then((res) => {\n if (res.data.errno == 200) {\n const {data} = res.data\n this.setState({\n data: data,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n // 邀请好友助力\n invitation = (url) => {\n const {user, history} = this.props;\n const uid = user && user.data && user.data.uid;\n if (!uid) {\n this.props.history.push('/passport/login')\n } else {\n window.location.href = url\n }\n }\n\n\n render() {\n let data = this.state.data\n return (\n <div className=\"callback-box\">\n <div className=\"banner\"></div>\n <div className=\"content\">\n <div className=\"title\">恭喜你,获得一张</div>\n <div className=\"coupon\">\n <p className=\"coupon-name\">膨胀券</p>\n <p className=\"coupon-price\"><span>{data.amount}</span>元</p>\n <p className=\"coupon-time\">有效期至:{data.expire_time}</p>\n </div>\n <div className=\"tip\">\n <ul>\n {\n new Array(19).fill('1').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n 全场通用\n </div>\n <div className=\"expand\">\n <span className=\"expand-small\">{data.amount}</span>元\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/expand.png\" alt=\"\"/>\n <span className=\"expand-big\">{data.limit_amount}</span>元\n </div>\n <button className=\"invitation\"\n onClick={() => this.invitation(data.share_url)}>邀请好友助力,{data.amount}元变{data.limit_amount}元\n </button>\n <div className=\"active-time\">活动时间:{data.start_time}-{data.end_time}</div>\n <div className=\"active-tip\">送助力好友{data.limit_amount}元!</div>\n </div>\n </div>\n )\n }\n\n}\n\nexport default connect(\n state => ({\n user: state.user\n }),\n)(ExpandCallback)\n"],"sourceRoot":""}
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[69],{1120:function(e,t,a){},1182:function(e,t,a){"use strict";a.r(t);a(39);var n=a(10),c=a.n(n),o=a(4),r=a(5),s=a(6),i=a(7),l=a(0),m=a.n(l),h=(a(1120),a(24)),p=a(1),u=a(15),d=function(e){Object(s.a)(a,e);var t=Object(i.a)(a);function a(){var e;Object(o.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).state={isShowAnswer:!1,isShowCaptcha:!1,instance:null,problem:{}},e.onVerify=function(t){p.f.post("".concat(API.home,"/m/safety"),t).then((function(t){200===t.data.code?(e.setState({isShowCaptcha:!1}),e.getProblem()):e.state.instance&&e.state.instance.reset()}))},e.getInstance=function(t){e.setState({instance:t})},e.getProblem=function(){p.f.get("".concat(API.home,"/m/question/").concat(e.props.match.params.id)).then((function(t){var a=t.data,n=a.code,o=a.msg,r=a.data;200===n?e.setState({problem:r}):1===n?e.setState({isShowCaptcha:!0}):c.a.info(o)}))},e.goBack=function(){if(document.referrer.includes(API.www))history.go(-1);else{var t=e.props.location,a=t.state;if(t.hash.includes("goback"))return window.history.go(-1);p.b.isWeixin&&Object(p.c)("code")&&Object(p.c)("state")&&window.history.go(-2),a.records&&a.records.length>1?window.history.go(-1):a.from&&a.from.pathname?location.replace("".concat(a.from.pathname).concat(a.from.search)):window.location.href=window.location.origin}},e}return Object(r.a)(a,[{key:"componentDidMount",value:function(){this.getProblem()}},{key:"componentDidUpdate",value:function(e,t){e.match.params.id!==this.props.match.params.id&&(this.setState({problem:{},isShowAnswer:!1}),this.getProblem())}},{key:"render",value:function(){var e=this,t=this.state,a=t.isShowAnswer,n=t.problem,c=n.quesInfo,o=n.between,r=t.isShowCaptcha;return c||r?m.a.createElement("article",{id:"problems"},r?m.a.createElement("div",{className:"captcha-container"},m.a.createElement("div",null,"\u4eb2\uff0c\u7cfb\u7edf\u6b63\u5fd9\uff0c\u6ed1\u52a8\u4e00\u4e0b\u9a6c\u4e0a\u56de\u6765"),m.a.createElement(h.b,{getInstance:this.getInstance,onVerify:this.onVerify})):m.a.createElement(m.a.Fragment,null,m.a.createElement(h.e,{title:c&&c.category,arrow:!0,cart:!1,goBack:this.goBack}),m.a.createElement("div",{className:"topic"},m.a.createElement("span",null,c&&c.order_id,"."),m.a.createElement("span",{dangerouslySetInnerHTML:{__html:c&&c.ques}})),!a&&m.a.createElement("div",{className:"btn",onClick:function(){e.setState({isShowAnswer:!0})}},m.a.createElement("button",null,"\u67e5\u770b\u89e3\u6790 ",m.a.createElement("i",{className:"iconfont iconiconfront-69"}))),a&&m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title"},"\u89e3\u6790"),m.a.createElement("span",{dangerouslySetInnerHTML:{__html:c.analysis}})),m.a.createElement("footer",null,m.a.createElement("div",{className:"app"},"\u66f4\u591a\u9898\u76ee\u8bf7 ",m.a.createElement(h.a,{text:"\u524d\u5f80APP"})),m.a.createElement("div",{className:"op"},o&&!!o.up&&m.a.createElement(u.b,{to:"/problems/".concat(o.up),replace:!0,className:"nav"},"\u4e0a\u4e00\u9898"),o&&!!o.down&&m.a.createElement(u.b,{to:"/problems/".concat(o.down),replace:!0,className:"nav"},"\u4e0b\u4e00\u9898"))))):null}}]),a}(l.Component);t.default=d}}]);
//# sourceMappingURL=69.4e53183b.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[69],{1120:function(e,t,a){},1182:function(e,t,a){"use strict";a.r(t);a(40);var n=a(10),c=a.n(n),o=a(4),r=a(5),s=a(6),i=a(7),l=a(0),m=a.n(l),h=(a(1120),a(24)),p=a(1),u=a(15),d=function(e){Object(s.a)(a,e);var t=Object(i.a)(a);function a(){var e;Object(o.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).state={isShowAnswer:!1,isShowCaptcha:!1,instance:null,problem:{}},e.onVerify=function(t){p.f.post("".concat(API.home,"/m/safety"),t).then((function(t){200===t.data.code?(e.setState({isShowCaptcha:!1}),e.getProblem()):e.state.instance&&e.state.instance.reset()}))},e.getInstance=function(t){e.setState({instance:t})},e.getProblem=function(){p.f.get("".concat(API.home,"/m/question/").concat(e.props.match.params.id)).then((function(t){var a=t.data,n=a.code,o=a.msg,r=a.data;200===n?e.setState({problem:r}):1===n?e.setState({isShowCaptcha:!0}):c.a.info(o)}))},e.goBack=function(){if(document.referrer.includes(API.www))history.go(-1);else{var t=e.props.location,a=t.state;if(t.hash.includes("goback"))return window.history.go(-1);p.b.isWeixin&&Object(p.c)("code")&&Object(p.c)("state")&&window.history.go(-2),a.records&&a.records.length>1?window.history.go(-1):a.from&&a.from.pathname?location.replace("".concat(a.from.pathname).concat(a.from.search)):window.location.href=window.location.origin}},e}return Object(r.a)(a,[{key:"componentDidMount",value:function(){this.getProblem()}},{key:"componentDidUpdate",value:function(e,t){e.match.params.id!==this.props.match.params.id&&(this.setState({problem:{},isShowAnswer:!1}),this.getProblem())}},{key:"render",value:function(){var e=this,t=this.state,a=t.isShowAnswer,n=t.problem,c=n.quesInfo,o=n.between,r=t.isShowCaptcha;return c||r?m.a.createElement("article",{id:"problems"},r?m.a.createElement("div",{className:"captcha-container"},m.a.createElement("div",null,"\u4eb2\uff0c\u7cfb\u7edf\u6b63\u5fd9\uff0c\u6ed1\u52a8\u4e00\u4e0b\u9a6c\u4e0a\u56de\u6765"),m.a.createElement(h.b,{getInstance:this.getInstance,onVerify:this.onVerify})):m.a.createElement(m.a.Fragment,null,m.a.createElement(h.e,{title:c&&c.category,arrow:!0,cart:!1,goBack:this.goBack}),m.a.createElement("div",{className:"topic"},m.a.createElement("span",null,c&&c.order_id,"."),m.a.createElement("span",{dangerouslySetInnerHTML:{__html:c&&c.ques}})),!a&&m.a.createElement("div",{className:"btn",onClick:function(){e.setState({isShowAnswer:!0})}},m.a.createElement("button",null,"\u67e5\u770b\u89e3\u6790 ",m.a.createElement("i",{className:"iconfont iconiconfront-69"}))),a&&m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title"},"\u89e3\u6790"),m.a.createElement("span",{dangerouslySetInnerHTML:{__html:c.analysis}})),m.a.createElement("footer",null,m.a.createElement("div",{className:"app"},"\u66f4\u591a\u9898\u76ee\u8bf7 ",m.a.createElement(h.a,{text:"\u524d\u5f80APP"})),m.a.createElement("div",{className:"op"},o&&!!o.up&&m.a.createElement(u.b,{to:"/problems/".concat(o.up),replace:!0,className:"nav"},"\u4e0a\u4e00\u9898"),o&&!!o.down&&m.a.createElement(u.b,{to:"/problems/".concat(o.down),replace:!0,className:"nav"},"\u4e0b\u4e00\u9898"))))):null}}]),a}(l.Component);t.default=d}}]);
//# sourceMappingURL=69.a9b182aa.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[5],{1160:function(e,t,n){"use strict";n.r(t);var s=n(4),a=n(5),i=n(6),r=n(7),c=n(0),u=n.n(c),o=n(20),l=n(1),p=n(42),b=n.n(p),m=(n(579),function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e){var a;return Object(s.a)(this,n),(a=t.call(this,e)).getGift=function(){a.props.user.hasError?a.props.history.push("/passport",{from:a.props.location.pathname}):a.props.history.push("/blessingPreheat")},a.state={butText:"\u7acb\u5373\u9886\u53d6"},a}return Object(a.a)(n,[{key:"componentWillMount",value:function(){b.a.set("blessing_invite_uid",Object(l.c)("shareuid"),{domain:".julyedu.com",expires:30}),b.a.set("blessing_invite_code",Object(l.c)("inviteCode"),{domain:".julyedu.com",expires:30}),b.a.get("uid")&&this.setState((function(){return{butText:"\u5df2\u9886\u53d6\uff0c\u53bb\u4f7f\u7528"}}))}},{key:"render",value:function(){var e=this.state.butText;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"content__con"},u.a.createElement("div",{className:"button__get",onClick:this.getGift},e)))}}]),n}(c.Component));t.default=Object(o.b)((function(e){return{user:e.user}}),null)(m)},579:function(e,t,n){}}]);
//# sourceMappingURL=Activity.609c5691.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[5],{1160:function(e,t,n){"use strict";n.r(t);var s=n(4),a=n(5),i=n(6),r=n(7),c=n(0),u=n.n(c),o=n(20),l=n(1),p=n(37),b=n.n(p),m=(n(579),function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e){var a;return Object(s.a)(this,n),(a=t.call(this,e)).getGift=function(){a.props.user.hasError?a.props.history.push("/passport",{from:a.props.location.pathname}):a.props.history.push("/blessingPreheat")},a.state={butText:"\u7acb\u5373\u9886\u53d6"},a}return Object(a.a)(n,[{key:"componentWillMount",value:function(){b.a.set("blessing_invite_uid",Object(l.c)("shareuid"),{domain:".julyedu.com",expires:30}),b.a.set("blessing_invite_code",Object(l.c)("inviteCode"),{domain:".julyedu.com",expires:30}),b.a.get("uid")&&this.setState((function(){return{butText:"\u5df2\u9886\u53d6\uff0c\u53bb\u4f7f\u7528"}}))}},{key:"render",value:function(){var e=this.state.butText;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"content__con"},u.a.createElement("div",{className:"button__get",onClick:this.getGift},e)))}}]),n}(c.Component));t.default=Object(o.b)((function(e){return{user:e.user}}),null)(m)},579:function(e,t,n){}}]);
//# sourceMappingURL=Activity.2c8a64e6.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/1111/index.js"],"names":["Activity","props","getGift","user","hasError","history","push","from","location","pathname","state","jsCookie","set","getParam","domain","expires","cookie","get","this","setState","butText","className","onClick","Component","connect"],"mappings":"wMAQMA,G,yDACJ,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IAgBRC,QAAU,WACL,EAAKD,MAAME,KAAKC,SACjB,EAAKH,MAAMI,QAAQC,KAAK,YAAa,CAACC,KAAM,EAAKN,MAAMO,SAASC,WAEhE,EAAKR,MAAMI,QAAQC,KAAK,qBAnB1B,EAAKI,MAAQ,CACX,QAAW,4BAHI,E,iEAQjBC,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,KAC5FC,IAAOC,IAAI,QACZC,KAAKC,UAAS,iBAAK,CACjBC,QAAS,mD,+BAaL,IACDA,EAAWF,KAAKR,MAAhBU,QACP,OACE,yBAAKC,UAAU,iBACb,yBAAKA,UAAU,gBACf,yBAAKA,UAAU,gBACb,yBAAKA,UAAU,cAAcC,QAASJ,KAAKhB,SAAUkB,S,GAhCxCG,cAuCRC,uBACb,SAAAd,GAAK,MAAK,CAACP,KAAMO,EAAMP,QACvB,KAFaqB,CAGbxB,I","file":"mrstaticjs/Activity.609c5691.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from 'src/utils';\nimport cookie from 'js-cookie'\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n this.state = {\n 'butText': '立即领取'\n }\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com', expires: 30});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com', expires: 30});\n if(cookie.get('uid')) {\n this.setState(()=>({\n butText: '已领取,去使用'\n }));\n }\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport', {from: this.props.location.pathname});\n } else {\n this.props.history.push('/blessingPreheat');\n }\n }\n\n render() {\n const {butText} = this.state;\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>{butText}</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/activity/1111/index.js"],"names":["Activity","props","getGift","user","hasError","history","push","from","location","pathname","state","jsCookie","set","getParam","domain","expires","cookie","get","this","setState","butText","className","onClick","Component","connect"],"mappings":"wMAQMA,G,yDACJ,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IAgBRC,QAAU,WACL,EAAKD,MAAME,KAAKC,SACjB,EAAKH,MAAMI,QAAQC,KAAK,YAAa,CAACC,KAAM,EAAKN,MAAMO,SAASC,WAEhE,EAAKR,MAAMI,QAAQC,KAAK,qBAnB1B,EAAKI,MAAQ,CACX,QAAW,4BAHI,E,iEAQjBC,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,KAC5FC,IAAOC,IAAI,QACZC,KAAKC,UAAS,iBAAK,CACjBC,QAAS,mD,+BAaL,IACDA,EAAWF,KAAKR,MAAhBU,QACP,OACE,yBAAKC,UAAU,iBACb,yBAAKA,UAAU,gBACf,yBAAKA,UAAU,gBACb,yBAAKA,UAAU,cAAcC,QAASJ,KAAKhB,SAAUkB,S,GAhCxCG,cAuCRC,uBACb,SAAAd,GAAK,MAAK,CAACP,KAAMO,EAAMP,QACvB,KAFaqB,CAGbxB,I","file":"mrstaticjs/Activity.2c8a64e6.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from 'src/utils';\nimport cookie from 'js-cookie'\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n this.state = {\n 'butText': '立即领取'\n }\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com', expires: 30});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com', expires: 30});\n if(cookie.get('uid')) {\n this.setState(()=>({\n butText: '已领取,去使用'\n }));\n }\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport', {from: this.props.location.pathname});\n } else {\n this.props.history.push('/blessingPreheat');\n }\n }\n\n render() {\n const {butText} = this.state;\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>{butText}</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[13],{1152:function(e,t,a){"use strict";a.r(t);a(39);var n=a(10),s=a.n(n),i=a(4),c=a(5),l=a(6),o=a(7),u=a(0),r=a.n(u),m=(a(211),a(20)),d=a(1),h=a(24),p=a(23),v=a(25),f=a(60),b=function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).toEditName=function(e){n.setState({isShow:!0,value:e})},n.cancle=function(){n.setState({isShow:!1})},n.handleChange=function(e){n.setState({value:e.target.value})},n.outLogin=function(){n.props.logout(),s.a.info("\u5df2\u9000\u51fa",2,null,!1),n.props.history.push("/my")},n.submit=function(){if(n.state.value.length>12)s.a.info("\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26",2);else if(0===n.state.value.length)s.a.info("\u8bf7\u8f93\u5165\u6635\u79f0",2);else{var e={user_name:n.state.value};d.f.post("".concat(API.home,"/m/user_info/update"),e).then((function(e){200===e.data.code?(n.setState({isShow:!1}),n.props.updateUser({data:{username:n.state.value}}),s.a.info("\u4fee\u6539\u6210\u529f",2)):4008===e.data.code?n.setState({isShow:!1}):s.a.info(e.data.msg,2)}))}},n.state={isShow:!1,value:""},n}return Object(c.a)(a,[{key:"render",value:function(){var e=this.props.user,t=e&&e.data&&e.data.username,a=e&&e.data&&e.data.avatar;return r.a.createElement("div",{className:"edit-name"},r.a.createElement(h.e,{title:"\u8d26\u53f7",arrow:!0,cart:!1}),r.a.createElement("div",{className:"my-mess"},r.a.createElement("img",{src:a,alt:""}),r.a.createElement("span",{className:"name"},t),r.a.createElement("span",{onClick:this.toEditName.bind(this,t),className:"edit"},"\u7f16\u8f91")),r.a.createElement("div",{className:"out-login",onClick:this.outLogin},"\u9000\u51fa\u767b\u5f55"),this.state.isShow&&r.a.createElement("div",{className:"edit-mbc"},r.a.createElement("div",{className:"edit-content"},r.a.createElement("div",{className:"edit-title"},"\u4fee\u6539\u6635\u79f0"),r.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)}),r.a.createElement("div",{className:"edit-btn"},r.a.createElement("button",{className:"cancle",onClick:this.cancle},"\u53d6\u6d88"),r.a.createElement("button",{className:"submit",onClick:this.submit},"\u786e\u8ba4")))))}}]),a}(u.PureComponent);t.default=Object(v.d)(Object(m.b)((function(e){return{user:e.user}}),{logout:p.g,updateUser:p.l}),f.a)(b)}}]);
//# sourceMappingURL=MyEdit.90583638.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[13],{1152:function(e,t,a){"use strict";a.r(t);a(40);var n=a(10),s=a.n(n),i=a(4),c=a(5),l=a(6),o=a(7),u=a(0),r=a.n(u),m=(a(211),a(20)),d=a(1),h=a(24),p=a(23),v=a(25),f=a(60),b=function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(e){var n;return Object(i.a)(this,a),(n=t.call(this,e)).toEditName=function(e){n.setState({isShow:!0,value:e})},n.cancle=function(){n.setState({isShow:!1})},n.handleChange=function(e){n.setState({value:e.target.value})},n.outLogin=function(){n.props.logout(),s.a.info("\u5df2\u9000\u51fa",2,null,!1),n.props.history.push("/my")},n.submit=function(){if(n.state.value.length>12)s.a.info("\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26",2);else if(0===n.state.value.length)s.a.info("\u8bf7\u8f93\u5165\u6635\u79f0",2);else{var e={user_name:n.state.value};d.f.post("".concat(API.home,"/m/user_info/update"),e).then((function(e){200===e.data.code?(n.setState({isShow:!1}),n.props.updateUser({data:{username:n.state.value}}),s.a.info("\u4fee\u6539\u6210\u529f",2)):4008===e.data.code?n.setState({isShow:!1}):s.a.info(e.data.msg,2)}))}},n.state={isShow:!1,value:""},n}return Object(c.a)(a,[{key:"render",value:function(){var e=this.props.user,t=e&&e.data&&e.data.username,a=e&&e.data&&e.data.avatar;return r.a.createElement("div",{className:"edit-name"},r.a.createElement(h.e,{title:"\u8d26\u53f7",arrow:!0,cart:!1}),r.a.createElement("div",{className:"my-mess"},r.a.createElement("img",{src:a,alt:""}),r.a.createElement("span",{className:"name"},t),r.a.createElement("span",{onClick:this.toEditName.bind(this,t),className:"edit"},"\u7f16\u8f91")),r.a.createElement("div",{className:"out-login",onClick:this.outLogin},"\u9000\u51fa\u767b\u5f55"),this.state.isShow&&r.a.createElement("div",{className:"edit-mbc"},r.a.createElement("div",{className:"edit-content"},r.a.createElement("div",{className:"edit-title"},"\u4fee\u6539\u6635\u79f0"),r.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)}),r.a.createElement("div",{className:"edit-btn"},r.a.createElement("button",{className:"cancle",onClick:this.cancle},"\u53d6\u6d88"),r.a.createElement("button",{className:"submit",onClick:this.submit},"\u786e\u8ba4")))))}}]),a}(u.PureComponent);t.default=Object(v.d)(Object(m.b)((function(e){return{user:e.user}}),{logout:p.g,updateUser:p.l}),f.a)(b)}}]);
//# sourceMappingURL=MyEdit.8a633014.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[15],{1149:function(e,a,n){"use strict";n.r(a);var r=n(4),o=n(5),t=n(6),l=n(7),i=(n(39),n(10)),c=n.n(i),s=n(3),p=(n(135),n(71)),u=n.n(p),d=(n(576),n(578)),f=n.n(d),m=(n(985),n(987)),v=n.n(m),h=n(0),q=n.n(h),b=n(16),g=n(24),y=n(1),j=Object(b.f)({mapPropsToValues:function(e){return Object(s.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,r=e.cellphone,o=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(r)if(/1\d{10}/g.test("".concat(r).replace(/\s+/g,"")))if(o)if(/\d{5,}/g.test(o)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===r&&(t+=1),l.qq===o&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?y.f.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?(c.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(s.a)({},e))):c.a.info(n.data.msg,void 0,void 0,!1)})):a.props.history.replace(i,Object(s.a)({},e))}else c.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})((function(e){var a=e.values,n=e.setFieldValue,r=e.handleSubmit;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(u.a,null,q.a.createElement(f.a,{type:"primary",onClick:r},"\u786e\u8ba4"))))})),E=function(e){Object(t.a)(n,e);var a=Object(l.a)(n);function n(e){return Object(r.a)(this,n),a.call(this,e)}return Object(o.a)(n,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(g.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(j,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(h.Component);a.default=E}}]);
//# sourceMappingURL=Orderinfo.d7b5d857.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[15],{1149:function(e,a,n){"use strict";n.r(a);var r=n(4),o=n(5),t=n(6),l=n(7),i=(n(40),n(10)),c=n.n(i),s=n(3),p=(n(135),n(71)),u=n.n(p),d=(n(576),n(578)),f=n.n(d),m=(n(985),n(987)),v=n.n(m),h=n(0),q=n.n(h),b=n(16),g=n(24),y=n(1),j=Object(b.f)({mapPropsToValues:function(e){return Object(s.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,r=e.cellphone,o=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(r)if(/1\d{10}/g.test("".concat(r).replace(/\s+/g,"")))if(o)if(/\d{5,}/g.test(o)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===r&&(t+=1),l.qq===o&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?y.f.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?(c.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(s.a)({},e))):c.a.info(n.data.msg,void 0,void 0,!1)})):a.props.history.replace(i,Object(s.a)({},e))}else c.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})((function(e){var a=e.values,n=e.setFieldValue,r=e.handleSubmit;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(u.a,null,q.a.createElement(f.a,{type:"primary",onClick:r},"\u786e\u8ba4"))))})),E=function(e){Object(t.a)(n,e);var a=Object(l.a)(n);function n(e){return Object(r.a)(this,n),a.call(this,e)}return Object(o.a)(n,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(g.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(j,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(h.Component);a.default=E}}]);
//# sourceMappingURL=Orderinfo.2d3690a8.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[19],{1156:function(e,t,a){"use strict";a.r(t);a(39);var n=a(10),r=a.n(n),c=a(4),o=a(5),s=a(58),i=a(6),l=a(7),u=a(0),m=a.n(u),p=(a(998),a(24)),d=a(1),f=function(e){Object(i.a)(a,e);var t=Object(l.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).toCourseDetail=function(e){Object(s.a)(n).state.fromApp?Object(d.a)("toCourse",e):n.props.history.push("/detail?id=".concat(e))},n.state={list:[],fromApp:!!Object(d.c)("from")},n}return Object(o.a)(a,[{key:"componentDidMount",value:function(){var e=this;d.f.get("".concat(API.home,"/sys/red_packet/share_course")).then((function(t){200===t.data.code?e.setState({list:t.data.data}):r.a.info(t.data.msg,2)}))}},{key:"render",value:function(){var e=this,t=this.state.list;return m.a.createElement("div",{className:"share-course"},!this.state.fromApp&&m.a.createElement(p.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),t&&t.length>0?m.a.createElement("div",null,t.map((function(t,a){var n=m.a.createElement("div",{className:"info"},m.a.createElement("p",{className:"title text-overflow-1"},t.course_title),m.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),m.a.createElement("button",null,"\u5206\u4eab\u9886\u7ea2\u5305"));return m.a.createElement("div",{key:a},m.a.createElement(p.k,{img:t.image_name,info:n,id:t.course_id,toDetail:e.toCourseDetail}))}))):m.a.createElement("div",null,m.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),a}(u.Component);t.default=f},998:function(e,t,a){}}]);
//# sourceMappingURL=ShareCourse.19c72a0e.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[19],{1156:function(e,t,a){"use strict";a.r(t);a(40);var n=a(10),r=a.n(n),c=a(4),o=a(5),s=a(58),i=a(6),l=a(7),u=a(0),m=a.n(u),p=(a(998),a(24)),d=a(1),f=function(e){Object(i.a)(a,e);var t=Object(l.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).toCourseDetail=function(e){Object(s.a)(n).state.fromApp?Object(d.a)("toCourse",e):n.props.history.push("/detail?id=".concat(e))},n.state={list:[],fromApp:!!Object(d.c)("from")},n}return Object(o.a)(a,[{key:"componentDidMount",value:function(){var e=this;d.f.get("".concat(API.home,"/sys/red_packet/share_course")).then((function(t){200===t.data.code?e.setState({list:t.data.data}):r.a.info(t.data.msg,2)}))}},{key:"render",value:function(){var e=this,t=this.state.list;return m.a.createElement("div",{className:"share-course"},!this.state.fromApp&&m.a.createElement(p.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),t&&t.length>0?m.a.createElement("div",null,t.map((function(t,a){var n=m.a.createElement("div",{className:"info"},m.a.createElement("p",{className:"title text-overflow-1"},t.course_title),m.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),m.a.createElement("button",null,"\u5206\u4eab\u9886\u7ea2\u5305"));return m.a.createElement("div",{key:a},m.a.createElement(p.k,{img:t.image_name,info:n,id:t.course_id,toDetail:e.toCourseDetail}))}))):m.a.createElement("div",null,m.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),a}(u.Component);t.default=f},998:function(e,t,a){}}]);
//# sourceMappingURL=ShareCourse.a2533a21.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/ShareCourse/index.js"],"names":["ShareCourse","props","toCourseDetail","id","state","fromApp","SendMessageToApp","history","push","list","getParam","http","get","API","home","then","res","data","code","setState","info","msg","this","className","title","arrow","length","map","item","index","Info","course_title","simpledescription","key","img","image_name","course_id","toDetail","Component"],"mappings":"gOAOMA,E,kDAEF,WAAYC,GAAQ,IAAD,8BACf,cAAMA,IAmBVC,eAAiB,SAACC,GACH,eACDC,MAAMC,QACZC,YAAiB,WAAYH,GAEX,EAAKF,MAAhBM,QACCC,KAAR,qBAA2BL,KAxB/B,EAAKC,MAAQ,CACTK,KAAM,GACNJ,UAAUK,YAAS,SAJR,E,gEAQE,IAAD,OAChBC,IAAKC,IAAL,UAAYC,IAAIC,KAAhB,iCAAoDC,MAAK,SAACC,GAChC,MAAlBA,EAAIC,KAAKC,KACT,EAAKC,SAAS,CACVV,KAAMO,EAAIC,KAAKA,OAGnB,IAAMG,KAAKJ,EAAIC,KAAKI,IAAK,Q,+BAe3B,IAAD,OACEZ,EAAQa,KAAKlB,MAAbK,KACP,OACI,yBAAKc,UAAW,iBAEPD,KAAKlB,MAAMC,SACZ,kBAAC,IAAD,CAAWmB,MAAM,iCAAQC,OAAO,IAIhChB,GAAQA,EAAKiB,OAAS,EAAI,6BAEdjB,EAAKkB,KAAI,SAACC,EAAMC,GACZ,IAAMC,EACF,yBAAKP,UAAU,QACX,uBAAGA,UAAW,yBAA0BK,EAAKG,cAC7C,uBAAGR,UAAW,2BAA4BK,EAAKI,mBAC/C,mEAGR,OACI,yBAAKC,IAAKJ,GACN,kBAAC,IAAD,CACIK,IAAKN,EAAKO,WACVf,KAAMU,EACN3B,GAAIyB,EAAKQ,UACTC,SAAU,EAAKnC,sBAQvC,6BACI,uBAAGqB,UAAU,YAAb,kF,GAnEFe,aA4EXtC,a","file":"mrstaticjs/ShareCourse.19c72a0e.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from 'src/common';\nimport {http, getParam, SendMessageToApp} from 'src/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
{"version":3,"sources":["components/ShareCourse/index.js"],"names":["ShareCourse","props","toCourseDetail","id","state","fromApp","SendMessageToApp","history","push","list","getParam","http","get","API","home","then","res","data","code","setState","info","msg","this","className","title","arrow","length","map","item","index","Info","course_title","simpledescription","key","img","image_name","course_id","toDetail","Component"],"mappings":"gOAOMA,E,kDAEF,WAAYC,GAAQ,IAAD,8BACf,cAAMA,IAmBVC,eAAiB,SAACC,GACH,eACDC,MAAMC,QACZC,YAAiB,WAAYH,GAEX,EAAKF,MAAhBM,QACCC,KAAR,qBAA2BL,KAxB/B,EAAKC,MAAQ,CACTK,KAAM,GACNJ,UAAUK,YAAS,SAJR,E,gEAQE,IAAD,OAChBC,IAAKC,IAAL,UAAYC,IAAIC,KAAhB,iCAAoDC,MAAK,SAACC,GAChC,MAAlBA,EAAIC,KAAKC,KACT,EAAKC,SAAS,CACVV,KAAMO,EAAIC,KAAKA,OAGnB,IAAMG,KAAKJ,EAAIC,KAAKI,IAAK,Q,+BAe3B,IAAD,OACEZ,EAAQa,KAAKlB,MAAbK,KACP,OACI,yBAAKc,UAAW,iBAEPD,KAAKlB,MAAMC,SACZ,kBAAC,IAAD,CAAWmB,MAAM,iCAAQC,OAAO,IAIhChB,GAAQA,EAAKiB,OAAS,EAAI,6BAEdjB,EAAKkB,KAAI,SAACC,EAAMC,GACZ,IAAMC,EACF,yBAAKP,UAAU,QACX,uBAAGA,UAAW,yBAA0BK,EAAKG,cAC7C,uBAAGR,UAAW,2BAA4BK,EAAKI,mBAC/C,mEAGR,OACI,yBAAKC,IAAKJ,GACN,kBAAC,IAAD,CACIK,IAAKN,EAAKO,WACVf,KAAMU,EACN3B,GAAIyB,EAAKQ,UACTC,SAAU,EAAKnC,sBAQvC,6BACI,uBAAGqB,UAAU,YAAb,kF,GAnEFe,aA4EXtC,a","file":"mrstaticjs/ShareCourse.a2533a21.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from 'src/common';\nimport {http, getParam, SendMessageToApp} from 'src/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
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["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[38],{1144:function(e,t,a){"use strict";a.r(t);a(39);var s=a(10),i=a.n(s),c=a(4),r=a(5),n=a(6),o=a(7),u=a(0),l=a.n(u),m=(a(731),a(24)),d=a(1),p=a(15),f=a(20),h=a(61),v=function(e){Object(n.a)(a,e);var t=Object(o.a)(a);function a(e){var s;return Object(c.a)(this,a),(s=t.call(this,e)).getList=function(){d.f.get("".concat(API.home,"/m/my/courses")).then((function(e){200===e.data.code?s.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)}))},s.toCourseDetail=function(e){var t=s.props;t.dispatch;t.history.push("/detail?id=".concat(e))},s.state={data:[],isLoading:!0},s}return Object(r.a)(a,[{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 l.a.createElement("div",{className:"purchased-box"},l.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),l.a.createElement(h.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?l.a.createElement("div",{className:"purchased-body"},l.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=l.a.createElement("div",{className:"info"},l.a.createElement("p",{className:"title text-overflow-2",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),l.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),t.is_aist&&l.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"des"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq)),i=t.is_aist&&l.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),c=t.course_expire&&""!=t.course_expire&&l.a.createElement("span",{className:"course-expire"},t.course_expire);return l.a.createElement(m.k,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,courseExpire:c,toDetail:e.toCourseDetail})}))):l.a.createElement("div",{className:"cart-tip"},l.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),l.a.createElement(p.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),a}(u.Component);t.default=Object(f.b)((function(e){return{user:e.user}}),null)(v)},731:function(e,t,a){}}]);
//# sourceMappingURL=purchased.2c99a627.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[38],{1144:function(e,t,a){"use strict";a.r(t);a(40);var s=a(10),i=a.n(s),c=a(4),r=a(5),n=a(6),o=a(7),u=a(0),l=a.n(u),m=(a(731),a(24)),d=a(1),p=a(15),f=a(20),h=a(61),v=function(e){Object(n.a)(a,e);var t=Object(o.a)(a);function a(e){var s;return Object(c.a)(this,a),(s=t.call(this,e)).getList=function(){d.f.get("".concat(API.home,"/m/my/courses")).then((function(e){200===e.data.code?s.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)}))},s.toCourseDetail=function(e){var t=s.props;t.dispatch;t.history.push("/detail?id=".concat(e))},s.state={data:[],isLoading:!0},s}return Object(r.a)(a,[{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 l.a.createElement("div",{className:"purchased-box"},l.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),l.a.createElement(h.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?l.a.createElement("div",{className:"purchased-body"},l.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=l.a.createElement("div",{className:"info"},l.a.createElement("p",{className:"title text-overflow-2",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),l.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),t.is_aist&&l.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"des"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq)),i=t.is_aist&&l.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),c=t.course_expire&&""!=t.course_expire&&l.a.createElement("span",{className:"course-expire"},t.course_expire);return l.a.createElement(m.k,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,courseExpire:c,toDetail:e.toCourseDetail})}))):l.a.createElement("div",{className:"cart-tip"},l.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),l.a.createElement(p.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),a}(u.Component);t.default=Object(f.b)((function(e){return{user:e.user}}),null)(v)},731:function(e,t,a){}}]);
//# sourceMappingURL=purchased.cee77a3d.chunk.js.map
\ No newline at end of file
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