Commit 23c92358 by zhanghaozhe

ai-test

parent 86fb6fdb
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([[53],{1084:function(e,t,a){},1172:function(e,t,a){"use strict";a.r(t);a(37);var c=a(10),n=a.n(c),o=a(3),r=a(5),s=a(4),l=a(6),i=a(7),u=a(0),m=a.n(u),d=a(2),h=a(23),f=a(601),_=a(603),p=(a(1084),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(l.a)(t).call(this,e))).fetchCourseList=function(){var e=a.props.match.params.id||0;d.e.get("".concat(API.home,"/sys/school/").concat(e)).then(function(e){var t=e.data,c=t.code,n=t.data;200===c&&(a.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"))})},a.toCourseDetail=function(e){var t=a.props,c=t.history,o=t.match.params.id||0;d.e.post("".concat(API.home,"/sys/school/verify"),{school_id:o,course_id:e}).then(function(t){var a=t.data,o=a.code,r=a.msg;200===o?c.push("/detail?id=".concat(e)):4030===o||4013===o?c.push("/passport/login"):n.a.info("".concat(r,"~"))})},a.state={header:"",courseList:[]},a}return Object(i.a)(t,e),Object(r.a)(t,[{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 m.a.createElement(m.a.Fragment,null,m.a.createElement(h.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),m.a.createElement(f.a,null),m.a.createElement(_.a,{headerStyle:{marginTop:"20px"},title:n}),m.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"),m.a.createElement("div",{className:"college-course__body"},c.map(function(t){return m.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},m.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),m.a.createElement("p",{className:"college-course__title"},t.course_title))})))}}]),t}(u.Component));t.default=p},601:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(602);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},602:function(e,t,a){},603:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(604);t.a=function(e){var t=e.title,a=e.isDecorate,c=void 0===a||a,o=e.headerStyle,r=void 0===o?{}:o;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"college-header",style:r},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"}))}},604:function(e,t,a){}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[53],{1084:function(e,t,a){},1172:function(e,t,a){"use strict";a.r(t);a(37);var c=a(10),n=a.n(c),o=a(3),r=a(5),s=a(4),l=a(6),i=a(7),u=a(0),m=a.n(u),d=a(2),h=a(23),f=a(602),_=a(604),p=(a(1084),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(l.a)(t).call(this,e))).fetchCourseList=function(){var e=a.props.match.params.id||0;d.e.get("".concat(API.home,"/sys/school/").concat(e)).then(function(e){var t=e.data,c=t.code,n=t.data;200===c&&(a.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"))})},a.toCourseDetail=function(e){var t=a.props,c=t.history,o=t.match.params.id||0;d.e.post("".concat(API.home,"/sys/school/verify"),{school_id:o,course_id:e}).then(function(t){var a=t.data,o=a.code,r=a.msg;200===o?c.push("/detail?id=".concat(e)):4030===o||4013===o?c.push("/passport/login"):n.a.info("".concat(r,"~"))})},a.state={header:"",courseList:[]},a}return Object(i.a)(t,e),Object(r.a)(t,[{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 m.a.createElement(m.a.Fragment,null,m.a.createElement(h.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),m.a.createElement(f.a,null),m.a.createElement(_.a,{headerStyle:{marginTop:"20px"},title:n}),m.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"),m.a.createElement("div",{className:"college-course__body"},c.map(function(t){return m.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},m.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),m.a.createElement("p",{className:"college-course__title"},t.course_title))})))}}]),t}(u.Component));t.default=p},602:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(603);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},603:function(e,t,a){},604:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(605);t.a=function(e){var t=e.title,a=e.isDecorate,c=void 0===a||a,o=e.headerStyle,r=void 0===o?{}:o;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"college-header",style:r},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"}))}},605:function(e,t,a){}}]);
//# sourceMappingURL=53.4599db1d.chunk.js.map //# sourceMappingURL=53.ed8fa7d4.chunk.js.map
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1083:function(e,t,a){},1171:function(e,t,a){"use strict";a.r(t);var c=a(3),n=a(5),l=a(4),o=a(6),s=a(7),i=a(0),r=a.n(i),m=a(2),u=a(23),d=a(601),g=a(603),h=(a(1083),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(o.a)(t).call(this,e))).fetchSchoolList=function(){var e=a.state.schoolList;m.e.get("".concat(API.home,"/sys/school/list")).then(function(t){var c=t.data,n=c.code,l=c.data;200===n&&a.setState({schoolList:l.concat(e)})})},a.toCollegeCourse=function(e){var t=a.props.history;e&&t.push("/college/".concat(e))},a.state={sectionInfo:[{title:"\u7cfb\u7edf\u8d5e\u52a9",desc:"\u514d\u8d39\u63d0\u4f9b\u5728\u7ebf\u76f4\u64ad\u7cfb\u7edf\uff0c\u652f\u6301\u7535\u8111\u5c4f\u5e55\u5b9e\u65f6\u6f14\u793a\uff0c\u4ee5\u53ca\u89c6\u9891\u56de\u653e\u3001\u4e92\u52a8\u7b54\u7591\u3002",icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/system.png"},{title:"\u8bfe\u7a0b\u8d5e\u52a9 ",desc:"\u514d\u8d39\u5f00\u653e\u76f8\u5173\u8bfe\u7a0b\u7684\u89c6\u9891\u3001\u8bfe\u4ef6\u3001\u4f5c\u4e1a\u3001\u8003\u8bd5\u3001\u4ee3\u7801\u3001\u9879\u76ee\u3001\u4e91\u5e73\u53f0(\u5728\u7ebf\u7f16\u8bd1\u3001\u5728\u7ebf\u6279\u6539)\u3002",icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/content.png"}],schoolList:[]},a}return Object(s.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){this.fetchSchoolList(),document.title="\u514d\u8d39\u63d0\u4f9b\u5728\u7ebf\u6559\u5b66\u7cfb\u7edf \u52a9\u529b\u5168\u56fd\u9ad8\u6821\u5728\u7ebf\u6559\u5b66 - \u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this,t=this.state,a=t.sectionInfo,c=void 0===a?[]:a,n=t.schoolList,l=void 0===n?[]:n;return r.a.createElement(r.a.Fragment,null,r.a.createElement(u.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),r.a.createElement(d.a,null),r.a.createElement("div",{className:"college-page__banner"}),r.a.createElement(g.a,{headerStyle:{marginTop:"20px"},title:"\u52a9\u529b\u9ad8\u6821\u5728\u7ebf\u6559\u5b66\u8ba1\u5212"}),r.a.createElement("p",{className:"college-page__contact"},"\u514d\u8d39\u5165\u9a7b\u8054\u7cfb\u5468\u5148\u751f\uff1a18910848502(\u5fae\u4fe1\u540c)"),c.map(function(e,t){var a=e.title,c=e.desc,n=e.icon;return r.a.createElement("div",{className:"college-page__section",key:t},r.a.createElement("i",{className:"section__icon",style:{backgroundImage:"url(".concat(n,")")}}),r.a.createElement("div",{className:"section__body"},r.a.createElement("h2",{className:"section__title"},a),r.a.createElement("p",{className:"section__desc"},c)))}),r.a.createElement(g.a,{headerStyle:{marginTop:"20px"},isDecorate:!1,title:"\u5165\u9a7b\u9662\u6821"}),r.a.createElement("div",{className:"college-page__college"},l.map(function(t){var a=t.id,c=t.name,n=t.logo;return r.a.createElement("div",{className:"college__item",onClick:function(){return e.toCollegeCourse(a)},key:a},r.a.createElement("i",{className:"college__iamge",style:{backgroundImage:"url(".concat(n,")")}}),r.a.createElement("p",{className:"college__name"},c))})))}}]),t}(i.Component));t.default=h},601:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(602);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},602:function(e,t,a){},603:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(604);t.a=function(e){var t=e.title,a=e.isDecorate,c=void 0===a||a,l=e.headerStyle,o=void 0===l?{}:l;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"}))}},604:function(e,t,a){}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1083:function(e,t,a){},1171:function(e,t,a){"use strict";a.r(t);var c=a(3),n=a(5),l=a(4),o=a(6),s=a(7),i=a(0),r=a.n(i),m=a(2),u=a(23),d=a(602),g=a(604),h=(a(1083),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(o.a)(t).call(this,e))).fetchSchoolList=function(){var e=a.state.schoolList;m.e.get("".concat(API.home,"/sys/school/list")).then(function(t){var c=t.data,n=c.code,l=c.data;200===n&&a.setState({schoolList:l.concat(e)})})},a.toCollegeCourse=function(e){var t=a.props.history;e&&t.push("/college/".concat(e))},a.state={sectionInfo:[{title:"\u7cfb\u7edf\u8d5e\u52a9",desc:"\u514d\u8d39\u63d0\u4f9b\u5728\u7ebf\u76f4\u64ad\u7cfb\u7edf\uff0c\u652f\u6301\u7535\u8111\u5c4f\u5e55\u5b9e\u65f6\u6f14\u793a\uff0c\u4ee5\u53ca\u89c6\u9891\u56de\u653e\u3001\u4e92\u52a8\u7b54\u7591\u3002",icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/system.png"},{title:"\u8bfe\u7a0b\u8d5e\u52a9 ",desc:"\u514d\u8d39\u5f00\u653e\u76f8\u5173\u8bfe\u7a0b\u7684\u89c6\u9891\u3001\u8bfe\u4ef6\u3001\u4f5c\u4e1a\u3001\u8003\u8bd5\u3001\u4ee3\u7801\u3001\u9879\u76ee\u3001\u4e91\u5e73\u53f0(\u5728\u7ebf\u7f16\u8bd1\u3001\u5728\u7ebf\u6279\u6539)\u3002",icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/content.png"}],schoolList:[]},a}return Object(s.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){this.fetchSchoolList(),document.title="\u514d\u8d39\u63d0\u4f9b\u5728\u7ebf\u6559\u5b66\u7cfb\u7edf \u52a9\u529b\u5168\u56fd\u9ad8\u6821\u5728\u7ebf\u6559\u5b66 - \u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this,t=this.state,a=t.sectionInfo,c=void 0===a?[]:a,n=t.schoolList,l=void 0===n?[]:n;return r.a.createElement(r.a.Fragment,null,r.a.createElement(u.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),r.a.createElement(d.a,null),r.a.createElement("div",{className:"college-page__banner"}),r.a.createElement(g.a,{headerStyle:{marginTop:"20px"},title:"\u52a9\u529b\u9ad8\u6821\u5728\u7ebf\u6559\u5b66\u8ba1\u5212"}),r.a.createElement("p",{className:"college-page__contact"},"\u514d\u8d39\u5165\u9a7b\u8054\u7cfb\u5468\u5148\u751f\uff1a18910848502(\u5fae\u4fe1\u540c)"),c.map(function(e,t){var a=e.title,c=e.desc,n=e.icon;return r.a.createElement("div",{className:"college-page__section",key:t},r.a.createElement("i",{className:"section__icon",style:{backgroundImage:"url(".concat(n,")")}}),r.a.createElement("div",{className:"section__body"},r.a.createElement("h2",{className:"section__title"},a),r.a.createElement("p",{className:"section__desc"},c)))}),r.a.createElement(g.a,{headerStyle:{marginTop:"20px"},isDecorate:!1,title:"\u5165\u9a7b\u9662\u6821"}),r.a.createElement("div",{className:"college-page__college"},l.map(function(t){var a=t.id,c=t.name,n=t.logo;return r.a.createElement("div",{className:"college__item",onClick:function(){return e.toCollegeCourse(a)},key:a},r.a.createElement("i",{className:"college__iamge",style:{backgroundImage:"url(".concat(n,")")}}),r.a.createElement("p",{className:"college__name"},c))})))}}]),t}(i.Component));t.default=h},602:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(603);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},603:function(e,t,a){},604:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(605);t.a=function(e){var t=e.title,a=e.isDecorate,c=void 0===a||a,l=e.headerStyle,o=void 0===l?{}:l;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"}))}},605:function(e,t,a){}}]);
//# sourceMappingURL=54.5aa245be.chunk.js.map //# sourceMappingURL=54.0621bfa4.chunk.js.map
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1155:function(e,t,n){"use strict";n.r(t);var a=n(3),i=n(5),s=n(4),c=n(6),o=n(7),r=n(0),u=n.n(r),l=n(20),p=n(2),b=n(35),d=n.n(b),m=(n(588),function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(s.a)(this,Object(c.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport",{from:n.props.location.pathname}):n.props.history.push("/blessingPreheat")},n.state={butText:"\u7acb\u5373\u9886\u53d6"},n}return Object(o.a)(t,e),Object(i.a)(t,[{key:"componentWillMount",value:function(){d.a.set("blessing_invite_uid",Object(p.c)("shareuid"),{domain:".julyedu.com",expires:30}),d.a.set("blessing_invite_code",Object(p.c)("inviteCode"),{domain:".julyedu.com",expires:30}),d.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)))}}]),t}(r.Component));t.default=Object(l.b)(function(e){return{user:e.user}},null)(m)},588:function(e,t,n){}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1155:function(e,t,n){"use strict";n.r(t);var a=n(3),i=n(5),s=n(4),c=n(6),o=n(7),r=n(0),u=n.n(r),l=n(20),p=n(2),b=n(35),d=n.n(b),m=(n(589),function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(s.a)(this,Object(c.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport",{from:n.props.location.pathname}):n.props.history.push("/blessingPreheat")},n.state={butText:"\u7acb\u5373\u9886\u53d6"},n}return Object(o.a)(t,e),Object(i.a)(t,[{key:"componentWillMount",value:function(){d.a.set("blessing_invite_uid",Object(p.c)("shareuid"),{domain:".julyedu.com",expires:30}),d.a.set("blessing_invite_code",Object(p.c)("inviteCode"),{domain:".julyedu.com",expires:30}),d.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)))}}]),t}(r.Component));t.default=Object(l.b)(function(e){return{user:e.user}},null)(m)},589:function(e,t,n){}}]);
//# sourceMappingURL=Activity.2dbea1f1.chunk.js.map //# sourceMappingURL=Activity.7ec7f2b9.chunk.js.map
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["components/activity/1111/index.js"],"names":["Activity","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","getGift","user","hasError","history","push","from","location","pathname","state","butText","jsCookie","set","getParam","domain","expires","cookie","get","setState","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","onClick","Component","connect"],"mappings":"yLAQMA,sBACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAgBRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,YAAa,CAACC,KAAMZ,EAAKD,MAAMc,SAASC,WAEhEd,EAAKD,MAAMW,QAAQC,KAAK,qBAnB1BX,EAAKe,MAAQ,CACXC,QAAW,4BAHIhB,oFAQjBiB,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,KAC5FC,IAAOC,IAAI,QACZpB,KAAKqB,SAAS,iBAAK,CACjBR,QAAS,iFAaN,IACAA,EAAWb,KAAKY,MAAhBC,QACP,OACES,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACfH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cAAcC,QAAS1B,KAAKI,SAAUS,YAhCxCc,cAuCRC,sBACb,SAAAhB,GAAK,MAAK,CAACP,KAAMO,EAAMP,OACvB,KAFauB,CAGbjC","file":"mrstatic/js/Activity.2dbea1f1.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/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":""} {"version":3,"sources":["components/activity/1111/index.js"],"names":["Activity","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","getGift","user","hasError","history","push","from","location","pathname","state","butText","jsCookie","set","getParam","domain","expires","cookie","get","setState","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","onClick","Component","connect"],"mappings":"yLAQMA,sBACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAgBRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,YAAa,CAACC,KAAMZ,EAAKD,MAAMc,SAASC,WAEhEd,EAAKD,MAAMW,QAAQC,KAAK,qBAnB1BX,EAAKe,MAAQ,CACXC,QAAW,4BAHIhB,oFAQjBiB,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,KAC5FC,IAAOC,IAAI,QACZpB,KAAKqB,SAAS,iBAAK,CACjBR,QAAS,iFAaN,IACAA,EAAWb,KAAKY,MAAhBC,QACP,OACES,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACfH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cAAcC,QAAS1B,KAAKI,SAAUS,YAhCxCc,cAuCRC,sBACb,SAAAhB,GAAK,MAAK,CAACP,KAAMO,EAAMP,OACvB,KAFauB,CAGbjC","file":"mrstatic/js/Activity.7ec7f2b9.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/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 \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1144:function(e,a,n){"use strict";n.r(a);var o=n(3),r=n(5),t=n(4),l=n(6),i=n(7),c=(n(37),n(10)),s=n.n(c),p=n(18),u=(n(137),n(73)),d=n.n(u),f=(n(585),n(587)),h=n.n(f),m=(n(999),n(1001)),v=n.n(m),b=n(0),q=n.n(b),g=n(16),E=n(23),j=n(2),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.e.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([[15],{1144:function(e,a,n){"use strict";n.r(a);var o=n(3),r=n(5),t=n(4),l=n(6),i=n(7),c=(n(37),n(10)),s=n.n(c),p=n(18),u=(n(137),n(73)),d=n.n(u),f=(n(586),n(588)),h=n.n(f),m=(n(999),n(1001)),v=n.n(m),b=n(0),q=n.n(b),g=n(16),E=n(23),j=n(2),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.e.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.efec5440.chunk.js.map //# sourceMappingURL=Orderinfo.2de132f2.chunk.js.map
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.ea9adf75322c1968d185049e4678eb30.js" "/precache-manifest.4395e72bcd96891d092f2d4a199b9013.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();
......
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