Commit b98fe2e6 by FE

build

parent 32fc456d
...@@ -101,8 +101,8 @@ ...@@ -101,8 +101,8 @@
"python-class.css": "/mrstatic/css/python-class.821064f5.chunk.css", "python-class.css": "/mrstatic/css/python-class.821064f5.chunk.css",
"python-class.js": "/mrstatic/js/python-class.9631044b.chunk.js", "python-class.js": "/mrstatic/js/python-class.9631044b.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.9631044b.chunk.js.map", "python-class.js.map": "/mrstatic/js/python-class.9631044b.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.0c5d3afa.js", "runtime~main.js": "/mrstatic/js/runtime~main.640be112.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.0c5d3afa.js.map", "runtime~main.js.map": "/mrstatic/js/runtime~main.640be112.js.map",
"search.css": "/mrstatic/css/search.efa1dd44.chunk.css", "search.css": "/mrstatic/css/search.efa1dd44.chunk.css",
"search.js": "/mrstatic/js/search.309bbfcf.chunk.js", "search.js": "/mrstatic/js/search.309bbfcf.chunk.js",
"search.js.map": "/mrstatic/js/search.309bbfcf.chunk.js.map", "search.js.map": "/mrstatic/js/search.309bbfcf.chunk.js.map",
...@@ -141,11 +141,11 @@ ...@@ -141,11 +141,11 @@
"mrstatic/js/48.0d5cb797.chunk.js": "/mrstatic/js/48.0d5cb797.chunk.js", "mrstatic/js/48.0d5cb797.chunk.js": "/mrstatic/js/48.0d5cb797.chunk.js",
"mrstatic/js/48.0d5cb797.chunk.js.map": "/mrstatic/js/48.0d5cb797.chunk.js.map", "mrstatic/js/48.0d5cb797.chunk.js.map": "/mrstatic/js/48.0d5cb797.chunk.js.map",
"mrstatic/css/49.aa3e1aa3.chunk.css": "/mrstatic/css/49.aa3e1aa3.chunk.css", "mrstatic/css/49.aa3e1aa3.chunk.css": "/mrstatic/css/49.aa3e1aa3.chunk.css",
"mrstatic/js/49.407334ce.chunk.js": "/mrstatic/js/49.407334ce.chunk.js", "mrstatic/js/49.0238acf9.chunk.js": "/mrstatic/js/49.0238acf9.chunk.js",
"mrstatic/js/49.407334ce.chunk.js.map": "/mrstatic/js/49.407334ce.chunk.js.map", "mrstatic/js/49.0238acf9.chunk.js.map": "/mrstatic/js/49.0238acf9.chunk.js.map",
"mrstatic/css/50.fdda6116.chunk.css": "/mrstatic/css/50.fdda6116.chunk.css", "mrstatic/css/50.fdda6116.chunk.css": "/mrstatic/css/50.fdda6116.chunk.css",
"mrstatic/js/50.76e1d3e9.chunk.js": "/mrstatic/js/50.76e1d3e9.chunk.js", "mrstatic/js/50.5594c632.chunk.js": "/mrstatic/js/50.5594c632.chunk.js",
"mrstatic/js/50.76e1d3e9.chunk.js.map": "/mrstatic/js/50.76e1d3e9.chunk.js.map", "mrstatic/js/50.5594c632.chunk.js.map": "/mrstatic/js/50.5594c632.chunk.js.map",
"mrstatic/css/51.753b6eea.chunk.css": "/mrstatic/css/51.753b6eea.chunk.css", "mrstatic/css/51.753b6eea.chunk.css": "/mrstatic/css/51.753b6eea.chunk.css",
"mrstatic/js/51.7c7785b0.chunk.js": "/mrstatic/js/51.7c7785b0.chunk.js", "mrstatic/js/51.7c7785b0.chunk.js": "/mrstatic/js/51.7c7785b0.chunk.js",
"mrstatic/js/51.7c7785b0.chunk.js.map": "/mrstatic/js/51.7c7785b0.chunk.js.map", "mrstatic/js/51.7c7785b0.chunk.js.map": "/mrstatic/js/51.7c7785b0.chunk.js.map",
...@@ -224,6 +224,6 @@ ...@@ -224,6 +224,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff", "mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png", "mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png", "mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.d226b5668aea45053b3469d673ad2875.js": "/precache-manifest.d226b5668aea45053b3469d673ad2875.js", "precache-manifest.c70b193bc85373f8007da3cccb621a87.js": "/precache-manifest.c70b193bc85373f8007da3cccb621a87.js",
"service-worker.js": "/service-worker.js" "service-worker.js": "/service-worker.js"
} }
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{1269:function(e,t,a){},1309:function(e,t,a){"use strict";a.r(t);a(37);var c=a(11),n=a.n(c),o=a(4),r=a(7),s=a(5),l=a(8),i=a(9),u=a(0),d=a.n(u),m=a(2),h=a(27),f=a(742),_=a(744),p=(a(1269),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;m.d.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;m.d.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 d.a.createElement(d.a.Fragment,null,d.a.createElement(h.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),d.a.createElement(f.a,null),d.a.createElement(_.a,{headerStyle:{marginTop:"20px"},title:n}),d.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"),d.a.createElement("div",{className:"college-course__body"},c.map(function(t){return d.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},d.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),d.a.createElement("p",{className:"college-course__title"},t.course_title))})))}}]),t}(u.Component));t.default=p},742:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(743);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},743:function(e,t,a){},744:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(745);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"}))}},745:function(e,t,a){}}]);
//# sourceMappingURL=49.0238acf9.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/college/courseList.js","components/college/banner.js","components/college/header.js"],"names":["CollegeCourse","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","fetchCourseList","id","match","params","http","get","concat","API","then","res","_res$data","data","code","setState","header","name","courseList","document","title","toCourseDetail","_this$props","history","school_id","post","course_id","_res$data2","msg","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","state","_this2","_this$state","_this$state$courseLis","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","_banner__WEBPACK_IMPORTED_MODULE_10__","_header__WEBPACK_IMPORTED_MODULE_11__","headerStyle","marginTop","className","map","item","onClick","key","style","backgroundImage","image_name","course_title","Component","react__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","react__WEBPACK_IMPORTED_MODULE_0___default","n","__webpack_exports__","banner","_props$isDecorate","isDecorate","_props$headerStyle","data-direction"],"mappings":"yOAQMA,uBAEJ,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,KAWRQ,gBAAkB,WAAM,IAEhBC,EADYR,EAAKD,MAAfU,MACSC,OAAOF,IAAM,EAC9BG,IAAKC,IAAL,GAAAC,OAAYC,IAAG,KAAf,gBAAAD,OAAsCL,IAAMO,KAAK,SAAAC,GAAO,IAAAC,EAC/BD,EAAIE,KAAnBC,EAD8CF,EAC9CE,KAAMD,EADwCD,EACxCC,KACF,MAATC,IACDnB,EAAKoB,SAAS,CACZC,OAAQH,EAAKI,KACbC,WAAYL,EAAKA,OAEnBM,SAASC,MAAT,qEAAAZ,OAA+BK,EAAKI,KAApC,+CAtBatB,EA2BnB0B,eAAiB,SAAClB,GAAO,IAAAmB,EACI3B,EAAKD,MAAxB6B,EADeD,EACfC,QACFC,EAFiBF,EACNlB,MACOC,OAAOF,IAAM,EACrCG,IAAKmB,KAAL,GAAAjB,OAAaC,IAAG,KAAhB,sBAA8C,CA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,OACEH,EAAA3B,EAAAO,cAAA,OAAKQ,UAAU,4ECfnB,IAAAU,EAAAC,EAAA,GAAAC,EAAAD,EAAAE,EAAAH,GAAAC,EAAA,KAGeG,EAAA,WAAClE,GAAU,IAChB0B,EAA+C1B,EAA/C0B,MADgB0C,EAC+BpE,EAAxCqE,kBADS,IAAAD,KAAAE,EAC+BtE,EAArBkD,mBADV,IAAAoB,EACwB,GADxBA,EAExB,OACEN,EAAA3B,EAAAO,cAAAoB,EAAA3B,EAAAQ,SAAA,KACEmB,EAAA3B,EAAAO,cAAA,OAAKQ,UAAU,iBAAiBK,MAAOP,GACrCc,EAAA3B,EAAAO,cAAA,KAAGQ,UAAU,uBAAuBmB,iBAAe,SACnDP,EAAA3B,EAAAO,cAAA,MAAIQ,UAAU,wBAAwB1B,GACtCsC,EAAA3B,EAAAO,cAAA,KAAGQ,UAAU,uBAAuBmB,iBAAe,WAGnDF,GACAL,EAAA3B,EAAAO,cAAA,KAAGQ,UAAU","file":"mrstatic/js/49.0238acf9.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { http } from '@/utils';\nimport { HeaderBar } from \"@/common\";\nimport CollegeBanner from './banner';\nimport CollegeHeader from './header';\nimport './courseList.scss';\nimport { Toast } from 'antd-mobile';\n\nclass CollegeCourse extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n header: '',\n courseList: []\n };\n }\n\n componentDidMount() {\n this.fetchCourseList();\n }\n\n fetchCourseList = () => {\n const { match } = this.props;\n const id = match.params.id || 0;\n http.get(`${API['home']}/sys/school/${id}`).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n this.setState({\n header: data.name,\n courseList: data.data\n });\n document.title = `助力高校在线教学计划之${data.name}专区 - 七月在线`\n }\n });\n }\n\n toCourseDetail = (id) => {\n const { history, match } = this.props;\n const school_id = match.params.id || 0\n http.post(`${API['home']}/sys/school/verify`, {\n school_id,\n course_id: id,\n }).then(res => {\n const { code, msg } = res.data;\n if(code === 200) {\n history.push(`/detail?id=${id}`);\n }else if(code === 4030 || code === 4013) {\n history.push('/passport/login');\n }else {\n Toast.info(`${msg}~`);\n }\n });\n }\n\n render() {\n const { courseList = [], header } = this.state;\n return (\n <>\n <HeaderBar title={'助学计划'} arrow={true}/>\n <CollegeBanner />\n <CollegeHeader\n headerStyle={{\n marginTop: '20px'\n }}\n title={header}\n />\n <p className=\"college-course__desc\">点击需要学习的课程封面,在课程详情页进入购买流程凭免单券免费兑换课程。</p>\n <div className=\"college-course__body\">\n {\n courseList.map(item => (\n <div\n className=\"college-course__item\"\n onClick={() => this.toCourseDetail(item.course_id)}\n key={item.course_id}\n >\n <i className=\"college-course__cover\" style={{'backgroundImage': `url(${item.image_name})`}}></i>\n <p className=\"college-course__title\">{item.course_title}</p>\n </div>\n ))\n }\n </div>\n </>\n )\n }\n}\n\nexport default CollegeCourse;","import React from 'react';\nimport './banner.scss';\n\nexport default (props) => {\n const { banner = '' } = props;\n const style = () => {\n if(banner) {\n return {\n backgroundImage: `url(${banner})`\n }\n }\n return {};\n }\n\n return (\n <div className=\"college-banner\"></div>\n )\n}","import React from 'react';\nimport './header.scss';\n\nexport default (props) => {\n const { title, isDecorate = true, headerStyle = {} } = props;\n return (\n <>\n <div className=\"college-header\" style={headerStyle}>\n <i className=\"college-header__icon\" data-direction=\"left\"></i>\n <h2 className=\"college-header__text\">{title}</h2>\n <i className=\"college-header__icon\" data-direction=\"right\"></i>\n </div>\n {\n isDecorate &&\n <i className=\"college-header__decorate\"></i>\n }\n </>\n );\n};\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{1269:function(e,t,a){},1309:function(e,t,a){"use strict";a.r(t);a(37);var c=a(11),n=a.n(c),o=a(4),r=a(7),s=a(5),l=a(8),i=a(9),u=a(0),d=a.n(u),m=a(2),h=a(27),f=a(742),_=a(744),p=(a(1269),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;m.d.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})})},a.toCourseDetail=function(e){var t=a.props,c=t.history,o=t.match.params.id||0;m.d.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(),document.title="\u52a9\u529b\u9ad8\u6821\u5728\u7ebf\u6559\u5b66\u8ba1\u5212\u4e4b\u4e2d\u79d1\u5927\u8f6f\u9662(\u82cf\u5dde)\u4e13\u533a - \u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this,t=this.state,a=t.courseList,c=void 0===a?[]:a,n=t.header;return d.a.createElement(d.a.Fragment,null,d.a.createElement(h.e,{title:"\u52a9\u5b66\u8ba1\u5212",arrow:!0}),d.a.createElement(f.a,null),d.a.createElement(_.a,{headerStyle:{marginTop:"20px"},title:n}),d.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"),d.a.createElement("div",{className:"college-course__body"},c.map(function(t){return d.a.createElement("div",{className:"college-course__item",onClick:function(){return e.toCourseDetail(t.course_id)},key:t.course_id},d.a.createElement("i",{className:"college-course__cover",style:{backgroundImage:"url(".concat(t.image_name,")")}}),d.a.createElement("p",{className:"college-course__title"},t.course_title))})))}}]),t}(u.Component));t.default=p},742:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(743);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},743:function(e,t,a){},744:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(745);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"}))}},745:function(e,t,a){}}]);
//# sourceMappingURL=49.407334ce.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/college/courseList.js","components/college/banner.js","components/college/header.js"],"names":["CollegeCourse","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","fetchCourseList","id","match","params","http","get","concat","API","then","res","_res$data","data","code","setState","header","name","courseList","toCourseDetail","_this$props","history","school_id","post","course_id","_res$data2","msg","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","state","document","title","_this2","_this$state","_this$state$courseLis","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","_banner__WEBPACK_IMPORTED_MODULE_10__","_header__WEBPACK_IMPORTED_MODULE_11__","headerStyle","marginTop","className","map","item","onClick","key","style","backgroundImage","image_name","course_title","Component","react__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","react__WEBPACK_IMPORTED_MODULE_0___default","n","__webpack_exports__","banner","_props$isDecorate","isDecorate","_props$headerStyle","data-direction"],"mappings":"yOAQMA,uBAEJ,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,KAYRQ,gBAAkB,WAAM,IAEhBC,EADYR,EAAKD,MAAfU,MACSC,OAAOF,IAAM,EAC9BG,IAAKC,IAAL,GAAAC,OAAYC,IAAG,KAAf,gBAAAD,OAAsCL,IAAMO,KAAK,SAAAC,GAAO,IAAAC,EAC/BD,EAAIE,KAAnBC,EAD8CF,EAC9CE,KAAMD,EADwCD,EACxCC,KACF,MAATC,GACDnB,EAAKoB,SAAS,CACZC,OAAQH,EAAKI,KACbC,WAAYL,EAAKA,UArBNlB,EA2BnBwB,eAAiB,SAAChB,GAAO,IAAAiB,EACIzB,EAAKD,MAAxB2B,EADeD,EACfC,QACFC,EAFiBF,EACNhB,MACOC,OAAOF,IAAM,EACrCG,IAAKiB,KAAL,GAAAf,OAAaC,IAAG,KAAhB,sBAA8C,CAC5Ca,YACAE,UAAWrB,IACVO,KAAK,SAAAC,GAAO,IAAAc,EACSd,EAAIE,KAAlBC,EADKW,EACLX,KAAMY,EADDD,EACCC,IACF,MAATZ,EACDO,EAAQM,KAAR,cAAAnB,OAA2BL,IACX,OAATW,GAA0B,OAATA,EACxBO,EAAQM,KAAK,mBAEbC,EAAAC,EAAMC,KAAN,GAAAtB,OAAckB,EAAd,SAtCJ/B,EAAKoC,MAAQ,CACXf,OAAQ,GACRE,WAAY,IAJGvB,mFASjBG,KAAKI,kBACL8B,SAASC,MAAT,yLAmCO,IAAAC,EAAApC,KAAAqC,EAC6BrC,KAAKiC,MADlCK,EAAAD,EACCjB,kBADD,IAAAkB,EACc,GADdA,EACkBpB,EADlBmB,EACkBnB,OACzB,OACEqB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,cAAA,MAAIQ,UAAU,wBAAwBb,GACtCyB,EAAA7B,EAAAS,cAAA,KAAGQ,UAAU,uBAAuBmB,iBAAe,WAGnDF,GACAL,EAAA7B,EAAAS,cAAA,KAAGQ,UAAU","file":"mrstatic/js/49.407334ce.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { http } from '@/utils';\nimport { HeaderBar } from \"@/common\";\nimport CollegeBanner from './banner';\nimport CollegeHeader from './header';\nimport './courseList.scss';\nimport { Toast } from 'antd-mobile';\n\nclass CollegeCourse extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n header: '',\n courseList: []\n };\n }\n\n componentDidMount() {\n this.fetchCourseList();\n document.title = `助力高校在线教学计划之中科大软院(苏州)专区 - 七月在线`\n }\n\n fetchCourseList = () => {\n const { match } = this.props;\n const id = match.params.id || 0;\n http.get(`${API['home']}/sys/school/${id}`).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n this.setState({\n header: data.name,\n courseList: data.data\n });\n }\n });\n }\n\n toCourseDetail = (id) => {\n const { history, match } = this.props;\n const school_id = match.params.id || 0\n http.post(`${API['home']}/sys/school/verify`, {\n school_id,\n course_id: id,\n }).then(res => {\n const { code, msg } = res.data;\n if(code === 200) {\n history.push(`/detail?id=${id}`);\n }else if(code === 4030 || code === 4013) {\n history.push('/passport/login');\n }else {\n Toast.info(`${msg}~`);\n }\n });\n }\n\n render() {\n const { courseList = [], header } = this.state;\n return (\n <>\n <HeaderBar title={'助学计划'} arrow={true}/>\n <CollegeBanner />\n <CollegeHeader\n headerStyle={{\n marginTop: '20px'\n }}\n title={header}\n />\n <p className=\"college-course__desc\">点击需要学习的课程封面,在课程详情页进入购买流程凭免单券免费兑换课程。</p>\n <div className=\"college-course__body\">\n {\n courseList.map(item => (\n <div\n className=\"college-course__item\"\n onClick={() => this.toCourseDetail(item.course_id)}\n key={item.course_id}\n >\n <i className=\"college-course__cover\" style={{'backgroundImage': `url(${item.image_name})`}}></i>\n <p className=\"college-course__title\">{item.course_title}</p>\n </div>\n ))\n }\n </div>\n </>\n )\n }\n}\n\nexport default CollegeCourse;","import React from 'react';\nimport './banner.scss';\n\nexport default (props) => {\n const { banner = '' } = props;\n const style = () => {\n if(banner) {\n return {\n backgroundImage: `url(${banner})`\n }\n }\n return {};\n }\n\n return (\n <div className=\"college-banner\"></div>\n )\n}","import React from 'react';\nimport './header.scss';\n\nexport default (props) => {\n const { title, isDecorate = true, headerStyle = {} } = props;\n return (\n <>\n <div className=\"college-header\" style={headerStyle}>\n <i className=\"college-header__icon\" data-direction=\"left\"></i>\n <h2 className=\"college-header__text\">{title}</h2>\n <i className=\"college-header__icon\" data-direction=\"right\"></i>\n </div>\n {\n isDecorate &&\n <i className=\"college-header__decorate\"></i>\n }\n </>\n );\n};\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{1268:function(e,t,a){},1308:function(e,t,a){"use strict";a.r(t);var c=a(4),n=a(7),l=a(5),o=a(8),s=a(9),i=a(0),r=a.n(i),m=a(2),u=a(27),d=a(742),g=a(744),h=(a(1268),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.d.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(\u5c4f\u5e55\u5b9e\u65f6\u6f14\u793a)\uff0c\u652f\u6301\u89c6\u9891\u56de\u653e\u3001\u4e92\u52a8\u7b54\u7591\u3002",icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/system.png"},{title:"\u5185\u5bb9\u8d5e\u52a9 ",desc:"\u514d\u8d39\u5f00\u653e\u76f8\u5173\u8bfe\u7a0b\u7684\u89c6\u9891\u3001\u8bfe\u4ef6\u3001\u4f5c\u4e1a\u3001\u8003\u8bd5\u3001\u9879\u76ee\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},742:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(743);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},743:function(e,t,a){},744:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(745);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"}))}},745:function(e,t,a){}}]);
//# sourceMappingURL=50.5594c632.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/college/index.js","components/college/banner.js","components/college/header.js"],"names":["CollegePage","props","_this","Object","_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","fetchSchoolList","schoolList","state","http","get","concat","API","then","res","_res$data","data","code","setState","toCollegeCourse","id","history","push","sectionInfo","title","desc","icon","document","_this2","_this$state","_this$state$sectionIn","_this$state$schoolLis","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_7__","arrow","_banner__WEBPACK_IMPORTED_MODULE_8__","className","_header__WEBPACK_IMPORTED_MODULE_9__","headerStyle","marginTop","map","_ref","index","key","style","backgroundImage","isDecorate","_ref2","name","logo","onClick","Component","react__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","react__WEBPACK_IMPORTED_MODULE_0___default","n","__webpack_exports__","banner","_props$isDecorate","_props$headerStyle","data-direction"],"mappings":"kNAOMA,uBACJ,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,KAuBRQ,gBAAkB,WAAM,IACdC,EAAeR,EAAKS,MAApBD,WACRE,IAAKC,IAAL,GAAAC,OAAYC,IAAG,KAAf,qBAA2CC,KAAK,SAAAC,GAAO,IAAAC,EAC9BD,EAAIE,KAAnBC,EAD6CF,EAC7CE,KAAMD,EADuCD,EACvCC,KACF,MAATC,GACDlB,EAAKmB,SAAS,CACZX,WAAYS,EAAKL,OAAOJ,QA9BbR,EAoCnBoB,gBAAkB,SAACC,GAAO,IAChBC,EAAYtB,EAAKD,MAAjBuB,QACLD,GACDC,EAAQC,KAAR,YAAAX,OAAyBS,KArC3BrB,EAAKS,MAAQ,CACXe,YAAa,CACX,CACEC,MAAO,2BACPC,KAAM,mLACNC,KAAM,2EAER,CACEF,MAAO,4BACPC,KAAM,6NACNC,KAAM,6EAGVnB,WAAY,IAfGR,mFAoBjBG,KAAKI,kBACLqB,SAASH,MAAT,wLAsBO,IAAAI,EAAA1B,KAAA2B,EACuC3B,KAAKM,MAD5CsB,EAAAD,EACCN,mBADD,IAAAO,EACe,GADfA,EAAAC,EAAAF,EACmBtB,kBADnB,IAAAwB,EACgC,GADhCA,EAEP,OACEC,EAAAC,EAAAC,cAAAF,EAAAC,EAAAE,SAAA,KACEH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAAWZ,MAAO,2BAAQa,OAAO,IACjC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D,OAUR,OACEH,EAAAxB,EAAAC,cAAA,OAAKK,UAAU,4ECfnB,IAAAgB,EAAAC,EAAA,GAAAC,EAAAD,EAAAE,EAAAH,GAAAC,EAAA,KAGeG,EAAA,WAAC7D,GAAU,IAChB0B,EAA+C1B,EAA/C0B,MADgBqC,EAC+B/D,EAAxCmD,kBADS,IAAAY,KAAAC,EAC+BhE,EAArB2C,mBADV,IAAAqB,EACwB,GADxBA,EAExB,OACEL,EAAAxB,EAAAC,cAAAuB,EAAAxB,EAAAE,SAAA,KACEsB,EAAAxB,EAAAC,cAAA,OAAKK,UAAU,iBAAiBQ,MAAON,GACrCgB,EAAAxB,EAAAC,cAAA,KAAGK,UAAU,uBAAuBwB,iBAAe,SACnDN,EAAAxB,EAAAC,cAAA,MAAIK,UAAU,wBAAwBf,GACtCiC,EAAAxB,EAAAC,cAAA,KAAGK,UAAU,uBAAuBwB,iBAAe,WAGnDd,GACAQ,EAAAxB,EAAAC,cAAA,KAAGK,UAAU","file":"mrstatic/js/50.5594c632.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { http } from '@/utils';\nimport { HeaderBar } from \"@/common\";\nimport CollegeBanner from './banner';\nimport CollegeHeader from './header';\nimport './index.scss';\n\nclass CollegePage extends Component {\n constructor(props) {\n super(props);\n this.state = {\n sectionInfo: [\n {\n title: '系统赞助',\n desc: '免费提供在线直播系统(屏幕实时演示),支持视频回放、互动答疑。',\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/system.png',\n },\n {\n title: '内容赞助 ',\n desc: '免费开放相关课程的视频、课件、作业、考试、项目云平台(在线编译、在线批改)。',\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/content.png',\n },\n ],\n schoolList: [],\n };\n }\n\n componentDidMount() {\n this.fetchSchoolList();\n document.title = `免费提供在线教学系统 助力全国高校在线教学 - 七月在线`\n }\n\n fetchSchoolList = () => {\n const { schoolList } = this.state;\n http.get(`${API['home']}/sys/school/list`).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n this.setState({\n schoolList: data.concat(schoolList),\n });\n }\n });\n }\n\n toCollegeCourse = (id) => {\n const { history } = this.props;\n if(id) {\n history.push(`/college/${id}`);\n }\n }\n\n render() {\n const { sectionInfo = [], schoolList = [] } = this.state;\n return (\n <>\n <HeaderBar title={'助学计划'} arrow={true}/>\n <CollegeBanner />\n <div className=\"college-page__banner\"></div>\n <CollegeHeader\n headerStyle={{\n marginTop: '20px'\n }}\n title=\"助力高校在线教学计划\"\n />\n <p className=\"college-page__contact\">免费入驻联系周先生:18910848502(微信同)</p>\n {\n sectionInfo.map(({title, desc, icon}, index) => (\n <div className=\"college-page__section\" key={index}>\n <i className=\"section__icon\" style={{'backgroundImage': `url(${icon})`}}></i>\n <div className=\"section__body\">\n <h2 className=\"section__title\">{title}</h2>\n <p className=\"section__desc\">{desc}</p>\n </div>\n </div>\n ))\n }\n <CollegeHeader\n headerStyle={{\n marginTop: '20px'\n }}\n isDecorate={false} \n title=\"入驻院校\" \n />\n <div className=\"college-page__college\">\n {\n schoolList.map(({id, name, logo}) => (\n <div\n className=\"college__item\"\n onClick={() => this.toCollegeCourse(id)}\n key={id}\n >\n <i className=\"college__iamge\" style={{'backgroundImage': `url(${logo})`}}></i>\n <p className=\"college__name\">{name}</p>\n </div>\n ))\n }\n </div>\n </>\n )\n }\n}\n\nexport default CollegePage;","import React from 'react';\nimport './banner.scss';\n\nexport default (props) => {\n const { banner = '' } = props;\n const style = () => {\n if(banner) {\n return {\n backgroundImage: `url(${banner})`\n }\n }\n return {};\n }\n\n return (\n <div className=\"college-banner\"></div>\n )\n}","import React from 'react';\nimport './header.scss';\n\nexport default (props) => {\n const { title, isDecorate = true, headerStyle = {} } = props;\n return (\n <>\n <div className=\"college-header\" style={headerStyle}>\n <i className=\"college-header__icon\" data-direction=\"left\"></i>\n <h2 className=\"college-header__text\">{title}</h2>\n <i className=\"college-header__icon\" data-direction=\"right\"></i>\n </div>\n {\n isDecorate &&\n <i className=\"college-header__decorate\"></i>\n }\n </>\n );\n};\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{1268:function(e,t,a){},1308:function(e,t,a){"use strict";a.r(t);var c=a(4),n=a(7),l=a(5),o=a(8),s=a(9),i=a(0),r=a.n(i),m=a(2),u=a(27),d=a(742),g=a(744),h=(a(1268),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.d.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(\u5c4f\u5e55\u5b9e\u65f6\u6f14\u793a)\uff0c\u652f\u6301\u89c6\u9891\u56de\u653e\u3001\u4e92\u52a8\u7b54\u7591\u3002",icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/system.png"},{title:"\u5185\u5bb9\u8d5e\u52a9 ",desc:"\u514d\u8d39\u5f00\u653e\u76f8\u5173\u8bfe\u7a0b\u7684\u89c6\u9891\u3001\u8bfe\u4ef6\u3001\u4f5c\u4e1a\u3001\u8003\u8bd5\u3001\u9879\u76ee\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:[{id:null,name:"\u4e1c\u534e\u7406\u5de5\u5927\u5b66\u8f6f\u4ef6\u5b66\u9662",logo:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/dhlg_logo.png"}]},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},742:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(743);t.a=function(e){e.banner;return n.a.createElement("div",{className:"college-banner"})}},743:function(e,t,a){},744:function(e,t,a){"use strict";var c=a(0),n=a.n(c);a(745);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"}))}},745:function(e,t,a){}}]);
//# sourceMappingURL=50.76e1d3e9.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/college/index.js","components/college/banner.js","components/college/header.js"],"names":["CollegePage","props","_this","Object","_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","fetchSchoolList","schoolList","state","http","get","concat","API","then","res","_res$data","data","code","setState","toCollegeCourse","id","history","push","sectionInfo","title","desc","icon","name","logo","document","_this2","_this$state","_this$state$sectionIn","_this$state$schoolLis","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_7__","arrow","_banner__WEBPACK_IMPORTED_MODULE_8__","className","_header__WEBPACK_IMPORTED_MODULE_9__","headerStyle","marginTop","map","_ref","index","key","style","backgroundImage","isDecorate","_ref2","onClick","Component","react__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","react__WEBPACK_IMPORTED_MODULE_0___default","n","__webpack_exports__","banner","_props$isDecorate","_props$headerStyle","data-direction"],"mappings":"kNAOMA,uBACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAA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BADV,IAAAmB,EACwB,GADxBA,EAExB,OACEL,EAAAtB,EAAAC,cAAAqB,EAAAtB,EAAAE,SAAA,KACEoB,EAAAtB,EAAAC,cAAA,OAAKK,UAAU,iBAAiBQ,MAAON,GACrCc,EAAAtB,EAAAC,cAAA,KAAGK,UAAU,uBAAuBsB,iBAAe,SACnDN,EAAAtB,EAAAC,cAAA,MAAIK,UAAU,wBAAwBjB,GACtCiC,EAAAtB,EAAAC,cAAA,KAAGK,UAAU,uBAAuBsB,iBAAe,WAGnDZ,GACAM,EAAAtB,EAAAC,cAAA,KAAGK,UAAU","file":"mrstatic/js/50.76e1d3e9.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { http } from '@/utils';\nimport { HeaderBar } from \"@/common\";\nimport CollegeBanner from './banner';\nimport CollegeHeader from './header';\nimport './index.scss';\n\nclass CollegePage extends Component {\n constructor(props) {\n super(props);\n this.state = {\n sectionInfo: [\n {\n title: '系统赞助',\n desc: '免费提供在线直播系统(屏幕实时演示),支持视频回放、互动答疑。',\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/system.png',\n },\n {\n title: '内容赞助 ',\n desc: '免费开放相关课程的视频、课件、作业、考试、项目云平台(在线编译、在线批改)。',\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/content.png',\n },\n ],\n schoolList: [\n {\n id: null,\n name: '东华理工大学软件学院',\n logo: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/college-plan/dhlg_logo.png'\n }\n ],\n };\n }\n\n componentDidMount() {\n this.fetchSchoolList();\n document.title = `免费提供在线教学系统 助力全国高校在线教学 - 七月在线`\n }\n\n fetchSchoolList = () => {\n const { schoolList } = this.state;\n http.get(`${API['home']}/sys/school/list`).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n this.setState({\n schoolList: data.concat(schoolList),\n });\n }\n });\n }\n\n toCollegeCourse = (id) => {\n const { history } = this.props;\n if(id) {\n history.push(`/college/${id}`);\n }\n }\n\n render() {\n const { sectionInfo = [], schoolList = [] } = this.state;\n return (\n <>\n <HeaderBar title={'助学计划'} arrow={true}/>\n <CollegeBanner />\n <div className=\"college-page__banner\"></div>\n <CollegeHeader\n headerStyle={{\n marginTop: '20px'\n }}\n title=\"助力高校在线教学计划\"\n />\n <p className=\"college-page__contact\">免费入驻联系周先生:18910848502(微信同)</p>\n {\n sectionInfo.map(({title, desc, icon}, index) => (\n <div className=\"college-page__section\" key={index}>\n <i className=\"section__icon\" style={{'backgroundImage': `url(${icon})`}}></i>\n <div className=\"section__body\">\n <h2 className=\"section__title\">{title}</h2>\n <p className=\"section__desc\">{desc}</p>\n </div>\n </div>\n ))\n }\n <CollegeHeader\n headerStyle={{\n marginTop: '20px'\n }}\n isDecorate={false} \n title=\"入驻院校\" \n />\n <div className=\"college-page__college\">\n {\n schoolList.map(({id, name, logo}) => (\n <div\n className=\"college__item\"\n onClick={() => this.toCollegeCourse(id)}\n key={id}\n >\n <i className=\"college__iamge\" style={{'backgroundImage': `url(${logo})`}}></i>\n <p className=\"college__name\">{name}</p>\n </div>\n ))\n }\n </div>\n </>\n )\n }\n}\n\nexport default CollegePage;","import React from 'react';\nimport './banner.scss';\n\nexport default (props) => {\n const { banner = '' } = props;\n const style = () => {\n if(banner) {\n return {\n backgroundImage: `url(${banner})`\n }\n }\n return {};\n }\n\n return (\n <div className=\"college-banner\"></div>\n )\n}","import React from 'react';\nimport './header.scss';\n\nexport default (props) => {\n const { title, isDecorate = true, headerStyle = {} } = props;\n return (\n <>\n <div className=\"college-header\" style={headerStyle}>\n <i className=\"college-header__icon\" data-direction=\"left\"></i>\n <h2 className=\"college-header__text\">{title}</h2>\n <i className=\"college-header__icon\" data-direction=\"right\"></i>\n </div>\n {\n isDecorate &&\n <i className=\"college-header__decorate\"></i>\n }\n </>\n );\n};\n"],"sourceRoot":""}
\ No newline at end of file
...@@ -268,8 +268,8 @@ self.__precacheManifest = [ ...@@ -268,8 +268,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/python-class.9631044b.chunk.js" "url": "/mrstatic/js/python-class.9631044b.chunk.js"
}, },
{ {
"revision": "19478120b228a7b6a93a", "revision": "5d1fad3f9c10f607025b",
"url": "/mrstatic/js/runtime~main.0c5d3afa.js" "url": "/mrstatic/js/runtime~main.640be112.js"
}, },
{ {
"revision": "49f4c2b655792a7fab4a", "revision": "49f4c2b655792a7fab4a",
...@@ -368,20 +368,20 @@ self.__precacheManifest = [ ...@@ -368,20 +368,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/48.0d5cb797.chunk.js" "url": "/mrstatic/js/48.0d5cb797.chunk.js"
}, },
{ {
"revision": "a22e0626c183591a3fa2", "revision": "c0f85070ce5db54d201e",
"url": "/mrstatic/css/49.aa3e1aa3.chunk.css" "url": "/mrstatic/css/49.aa3e1aa3.chunk.css"
}, },
{ {
"revision": "a22e0626c183591a3fa2", "revision": "c0f85070ce5db54d201e",
"url": "/mrstatic/js/49.407334ce.chunk.js" "url": "/mrstatic/js/49.0238acf9.chunk.js"
}, },
{ {
"revision": "ceb52c4ea7fb16387853", "revision": "0bb53ac1f9e7ba1cbcca",
"url": "/mrstatic/css/50.fdda6116.chunk.css" "url": "/mrstatic/css/50.fdda6116.chunk.css"
}, },
{ {
"revision": "ceb52c4ea7fb16387853", "revision": "0bb53ac1f9e7ba1cbcca",
"url": "/mrstatic/js/50.76e1d3e9.chunk.js" "url": "/mrstatic/js/50.5594c632.chunk.js"
}, },
{ {
"revision": "910d6a58b7598dfaf8e6", "revision": "910d6a58b7598dfaf8e6",
...@@ -472,10 +472,6 @@ self.__precacheManifest = [ ...@@ -472,10 +472,6 @@ self.__precacheManifest = [
"url": "/mrstatic/media/progress-share-bg.80011994.png" "url": "/mrstatic/media/progress-share-bg.80011994.png"
}, },
{ {
"revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae",
"url": "/mrstatic/media/redb_chai_bj@2x.8edaf2ff.png"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078", "revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png" "url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
}, },
...@@ -484,11 +480,15 @@ self.__precacheManifest = [ ...@@ -484,11 +480,15 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png" "url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
}, },
{ {
"revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae",
"url": "/mrstatic/media/redb_chai_bj@2x.8edaf2ff.png"
},
{
"revision": "79139f6aad350256e151f9f73c226348", "revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png" "url": "/mrstatic/media/hb_bj.79139f6a.png"
}, },
{ {
"revision": "5b5b77e360a6e59c006d34b54d9dd4b3", "revision": "f54964b1be97b7f6b8b23e92eb3114b9",
"url": "/index.html" "url": "/index.html"
} }
]; ];
\ 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.d226b5668aea45053b3469d673ad2875.js" "/precache-manifest.c70b193bc85373f8007da3cccb621a87.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