Commit 5fb385f7 by xuzhenghua

title

parent 9b3edcfe
......@@ -115,8 +115,8 @@
"python-class.css": "/mrstaticcss/python-class.0a272536.chunk.css",
"python-class.js": "/mrstaticjs/python-class.3110ac8e.chunk.js",
"python-class.js.map": "/mrstaticjs/python-class.3110ac8e.chunk.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.58bd6d8d.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.58bd6d8d.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.e7d50e71.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.e7d50e71.js.map",
"search.css": "/mrstaticcss/search.98d4a9bc.chunk.css",
"search.js": "/mrstaticjs/search.64373ee8.chunk.js",
"search.js.map": "/mrstaticjs/search.64373ee8.chunk.js.map",
......@@ -192,8 +192,8 @@
"mrstaticjs/66.a9d2bb41.chunk.js": "/mrstaticjs/66.a9d2bb41.chunk.js",
"mrstaticjs/66.a9d2bb41.chunk.js.map": "/mrstaticjs/66.a9d2bb41.chunk.js.map",
"mrstaticcss/67.7f124ed1.chunk.css": "/mrstaticcss/67.7f124ed1.chunk.css",
"mrstaticjs/67.ea3f392a.chunk.js": "/mrstaticjs/67.ea3f392a.chunk.js",
"mrstaticjs/67.ea3f392a.chunk.js.map": "/mrstaticjs/67.ea3f392a.chunk.js.map",
"mrstaticjs/67.435c40e1.chunk.js": "/mrstaticjs/67.435c40e1.chunk.js",
"mrstaticjs/67.435c40e1.chunk.js.map": "/mrstaticjs/67.435c40e1.chunk.js.map",
"mrstaticcss/68.cb98e30a.chunk.css": "/mrstaticcss/68.cb98e30a.chunk.css",
"mrstaticjs/68.cf2948f8.chunk.js": "/mrstaticjs/68.cf2948f8.chunk.js",
"mrstaticjs/68.cf2948f8.chunk.js.map": "/mrstaticjs/68.cf2948f8.chunk.js.map",
......@@ -274,11 +274,11 @@
"mrstaticmedia/iconfont.css": "/mrstaticmedia/iconfont.d9c813a4.svg",
"mrstaticmedia/kanjia_cg_icon.png": "/mrstaticmedia/kanjia_cg_icon.81a489ac.png",
"mrstaticmedia/video.scss": "/mrstaticmedia/progress-share-bg.80011994.png",
"precache-manifest.96a42126d613734060782639271352e8.js": "/precache-manifest.96a42126d613734060782639271352e8.js",
"precache-manifest.55504ea30df07333638a5c67b2e9c932.js": "/precache-manifest.55504ea30df07333638a5c67b2e9c932.js",
"service-worker.js": "/service-worker.js"
},
"entrypoints": [
"mrstaticjs/runtime-main.58bd6d8d.js",
"mrstaticjs/runtime-main.e7d50e71.js",
"mrstaticcss/51.c2d1472d.chunk.css",
"mrstaticjs/51.6943e95c.chunk.js",
"mrstaticcss/main.e4995dc0.chunk.css",
......
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[67],{1061:function(e,t,a){},1173:function(e,t,a){"use strict";a.r(t);var n=a(73),l=a(4),c=a(5),s=a(6),i=a(7),r=(a(39),a(10)),m=a.n(r),u=a(0),o=a.n(u),d=(a(1061),a(1)),E=a(15);function g(e){m.a.info(e,2,null,!1)}var p=function(e){Object(s.a)(a,e);var t=Object(i.a)(a);function a(){var e;Object(l.a)(this,a);for(var c=arguments.length,s=new Array(c),i=0;i<c;i++)s[i]=arguments[i];return(e=t.call.apply(t,[this].concat(s))).state={banner:"",courses:[],rule:"",awardstext:"",rankList:{},isShow:!1,animate:!1,marqueeList:[]},e.getRankList=function(){d.f.get("".concat(API["base-api"],"/assistance/ranking_list/50")).then((function(t){var a=t.data,n=a.data,l=a.errno,c=a.msg;200===l?e.setState({rankList:{list:n.list,first:n.list[0],second:n.list[1],third:n.list[2],other:n.list.slice(3,50),isMyList:n.nickname,myList:n.nickname&&n}}):g(c)}))},e.getMarqueeList=function(){d.f.get("".concat(API["base-api"],"/assistance/roll_tip")).then((function(t){var a=t.data,n=a.errno,l=a.msg,c=a.data;200===n?e.setState({marqueeList:c}):g(l)}))},e.showMarquee=function(){e.setState({animate:!0},(function(){setTimeout((function(){var t=Object(n.a)(e.state.marqueeList,2),a=t[0],l=t[1];e.setState({animate:!1,marqueeList:[l,a]})}),500)}))},e.isRouter=function(t){decodeURIComponent(Object(d.c)("activename"))!=t&&e.props.history.push("/")},e}return Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this;document.title="AI\u653b\u57ce\u72ee\u8d85\u8f66\u5b63\uff0c\u547c\u670b\u5524\u53cb\u514d\u8d39\u5b66\u7206\u6b3eAI\u597d\u8bfe\uff01VIP\u4f1a\u5458\u3001\u673a\u68b0\u952e\u76d8\u3001AI\u7ecf\u5178\u7eb8\u8d28\u4e66\u7b49\u514d\u8d39\u9001\uff01--\u4e03\u6708\u5728\u7ebf",d.f.get("".concat(API["base-api"],"/assistance/detail")).then((function(t){var a=t.data,n=a.data,l=a.errno,c=a.msg;200===l?(e.setState({banner:n.active_info.m_banner,courses:n.course_info,rule:n.active_info.rule,awardstext:n.active_info.awards_text.split("\n\n"),query:n.active_info.activity_name}),e.isRouter(n.active_info.activity_name)):g(c)})),this.getRankList(),this.getMarqueeList(),setInterval(this.showMarquee,5e3),setInterval(this.getMarqueeList,6e4)}},{key:"render",value:function(){var e=this,t=this.state,a=t.banner,n=t.courses,l=t.rule,c=t.awardstext,s=t.rankList,i=t.isShow,r=t.animate,m=t.marqueeList,u=u||[];return o.a.createElement("div",{id:"give-courses"},o.a.createElement("div",{className:"banner"},o.a.createElement("img",{src:a,alt:""})),o.a.createElement("div",{className:"give-box"},n.map((function(t){return o.a.createElement("div",{className:"give-course",key:t.id},o.a.createElement(E.b,{className:"give-course-img",to:"/detail?id=".concat(t.course_id)},o.a.createElement("img",{src:t.image_name,alt:""})),o.a.createElement("ul",{className:"give-course-mess"},o.a.createElement("li",{className:"course-title"},o.a.createElement("a",{href:"javascript:"},t.course_title)),o.a.createElement("li",{className:"course-teacher"},o.a.createElement("span",{className:"tag"},"\u8bb2\u5e08"),t.teachers),o.a.createElement("li",{className:"course-time"},o.a.createElement("span",{className:"tag"},"\u5f00\u8bfe\u65f6\u95f4"),t.start_time),o.a.createElement("li",{className:"toreceive",onClick:function(){u&&u.push(["_trackEvent","\u8bfe\u7a0bid=".concat(t.course_id),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"]),console.log(t.course_id),e.setState({isShow:!0})}},"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b")))})),o.a.createElement("p",{className:"rule-title"},"\u6d3b\u52a8\u89c4\u5219"),o.a.createElement("div",{className:"rule-list",dangerouslySetInnerHTML:{__html:l}}),o.a.createElement("div",{className:"marquee_box"},o.a.createElement("ul",{className:"marquee_list ".concat(r?"marquee_top":"")},m.length?m.map((function(e,t){return o.a.createElement("li",{key:t},o.a.createElement("img",{src:e.head_img,alt:""}),o.a.createElement("span",null,e.nickname),e.word)})):null))),o.a.createElement("div",{className:"set-prize"},o.a.createElement("p",{className:"set-prize-title"},o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/jpsz_icon.png",alt:""}),"\u5956\u54c1\u8bbe\u7f6e"),o.a.createElement("div",{className:"set-prize-content"},c&&c.length&&c.map((function(e,t){return o.a.createElement("p",{key:t},e)})))),o.a.createElement("div",{className:"ranking-list"},o.a.createElement("div",{className:"ranking_title"},o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/jbei_icon.png",alt:""}),o.a.createElement("span",null,"\u6392\u884c\u699c"),o.a.createElement("p",null,"\u6570\u636e\u5b9e\u65f6\u66f4\u65b0 \u53ea\u663e\u793aTop50")),o.a.createElement("table",{border:"0",cellPadding:"0",cellSpacing:"0"},o.a.createElement("thead",null,o.a.createElement("tr",null,o.a.createElement("td",null,"\u6392\u540d"),o.a.createElement("td",null,"\u7528\u6237"),o.a.createElement("td",null,"\u9080\u8bf7\u4eba\u6570"))),o.a.createElement("tbody",null,s.list&&s.list.length>0?o.a.createElement("tr",null,o.a.createElement("td",null,o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/jin1_icon.png",alt:""})),o.a.createElement("td",null,o.a.createElement("img",{src:s.first.head_img,alt:""}),o.a.createElement("span",null,s.first.name)),o.a.createElement("td",null,s.first.num)):null,s.list&&s.list.length>1?o.a.createElement("tr",null,o.a.createElement("td",null,o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/yin2_icon.png",alt:""})),o.a.createElement("td",null,o.a.createElement("img",{src:s.second.head_img,alt:""}),o.a.createElement("span",null,s.second.name)),o.a.createElement("td",null,s.second.num)):null,s.list&&s.list.length>2?o.a.createElement("tr",null,o.a.createElement("td",null,o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/tong_icon.png",alt:""})),o.a.createElement("td",null,o.a.createElement("img",{src:s.third.head_img,alt:""}),o.a.createElement("span",null,s.third.name)),o.a.createElement("td",null,s.third.num)):null,s.list&&s.list.length&&s.list.length>3?s.other.map((function(e,t){return o.a.createElement("tr",{key:t},o.a.createElement("td",null,t+4),o.a.createElement("td",null,o.a.createElement("img",{src:e.head_img,alt:""}),o.a.createElement("span",null,e.name)),o.a.createElement("td",null,e.num))})):null,s.isMyList&&o.a.createElement("tr",{className:"ismylist"},o.a.createElement("td",null,s.myList.ranking),o.a.createElement("td",null,o.a.createElement("img",{src:s.myList.head_img,alt:""}),o.a.createElement("span",null,s.myList.nickname)),o.a.createElement("td",null,s.myList.inviter_num)))),o.a.createElement("p",{className:"btm"})),o.a.createElement("p",{className:"julynotice"},"*\u672c\u6d3b\u52a8\u6700\u7ec8\u89e3\u91ca\u6743\u5f52\u4e03\u6708\u5728\u7ebf\u6240\u6709*"),i&&o.a.createElement("div",{className:"code-mbc"},o.a.createElement("div",{className:"code-box"},o.a.createElement("p",{className:"code-title"},"\u8fdb\u5165\u670d\u52a1\u53f7\u56de\u590d",o.a.createElement("i",null,"77"),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"),o.a.createElement("img",{id:"qrCodeWpay",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),o.a.createElement("p",{className:"btmmess"},"\u957f\u6309\u626b\u7801\u8fdb\u5165\u670d\u52a1\u53f7")),o.a.createElement("i",{className:"close iconfont iconiconfront-2",onClick:function(){e.setState({isShow:!1})}})))}}]),a}(u.Component);t.default=p}}]);
//# sourceMappingURL=67.435c40e1.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[67],{1061:function(e,t,a){},1173:function(e,t,a){"use strict";a.r(t);var n=a(73),l=a(4),c=a(5),s=a(6),i=a(7),r=(a(39),a(10)),m=a.n(r),u=a(0),o=a.n(u),d=(a(1061),a(1)),E=a(15);function g(e){m.a.info(e,2,null,!1)}var p=function(e){Object(s.a)(a,e);var t=Object(i.a)(a);function a(){var e;Object(l.a)(this,a);for(var c=arguments.length,s=new Array(c),i=0;i<c;i++)s[i]=arguments[i];return(e=t.call.apply(t,[this].concat(s))).state={banner:"",courses:[],rule:"",awardstext:"",rankList:{},isShow:!1,animate:!1,marqueeList:[]},e.getRankList=function(){d.f.get("".concat(API["base-api"],"/assistance/ranking_list/50")).then((function(t){var a=t.data,n=a.data,l=a.errno,c=a.msg;200===l?e.setState({rankList:{list:n.list,first:n.list[0],second:n.list[1],third:n.list[2],other:n.list.slice(3,50),isMyList:n.nickname,myList:n.nickname&&n}}):g(c)}))},e.getMarqueeList=function(){d.f.get("".concat(API["base-api"],"/assistance/roll_tip")).then((function(t){var a=t.data,n=a.errno,l=a.msg,c=a.data;200===n?e.setState({marqueeList:c}):g(l)}))},e.showMarquee=function(){e.setState({animate:!0},(function(){setTimeout((function(){var t=Object(n.a)(e.state.marqueeList,2),a=t[0],l=t[1];e.setState({animate:!1,marqueeList:[l,a]})}),500)}))},e.isRouter=function(t){decodeURIComponent(Object(d.c)("activename"))!=t&&e.props.history.push("/")},e}return Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this;d.f.get("".concat(API["base-api"],"/assistance/detail")).then((function(t){var a=t.data,n=a.data,l=a.errno,c=a.msg;200===l?(e.setState({banner:n.active_info.m_banner,courses:n.course_info,rule:n.active_info.rule,awardstext:n.active_info.awards_text.split("\n\n"),query:n.active_info.activity_name}),e.isRouter(n.active_info.activity_name)):g(c)})),this.getRankList(),this.getMarqueeList(),setInterval(this.showMarquee,5e3),setInterval(this.getMarqueeList,6e4)}},{key:"render",value:function(){var e=this,t=this.state,a=t.banner,n=t.courses,l=t.rule,c=t.awardstext,s=t.rankList,i=t.isShow,r=t.animate,m=t.marqueeList;return o.a.createElement("div",{id:"give-courses"},o.a.createElement("div",{className:"banner"},o.a.createElement("img",{src:a,alt:""})),o.a.createElement("div",{className:"give-box"},n.map((function(t){return o.a.createElement("div",{className:"give-course",key:t.id},o.a.createElement(E.b,{className:"give-course-img",to:"/detail?id=".concat(t.course_id)},o.a.createElement("img",{src:t.image_name,alt:""})),o.a.createElement("ul",{className:"give-course-mess"},o.a.createElement("li",{className:"course-title"},o.a.createElement("a",{href:"javascript:"},t.course_title)),o.a.createElement("li",{className:"course-teacher"},o.a.createElement("span",{className:"tag"},"\u8bb2\u5e08"),t.teachers),o.a.createElement("li",{className:"course-time"},o.a.createElement("span",{className:"tag"},"\u5f00\u8bfe\u65f6\u95f4"),t.start_time),o.a.createElement("li",{className:"toreceive",onClick:function(){_czc&&_czc.push(["_trackEvent","\u8bfe\u7a0bid=".concat(t.course_id),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"]),console.log(t.course_id),e.setState({isShow:!0})}},"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b")))})),o.a.createElement("p",{className:"rule-title"},"\u6d3b\u52a8\u89c4\u5219"),o.a.createElement("div",{className:"rule-list",dangerouslySetInnerHTML:{__html:l}}),o.a.createElement("div",{className:"marquee_box"},o.a.createElement("ul",{className:"marquee_list ".concat(r?"marquee_top":"")},m.length?m.map((function(e,t){return o.a.createElement("li",{key:t},o.a.createElement("img",{src:e.head_img,alt:""}),o.a.createElement("span",null,e.nickname),e.word)})):null))),o.a.createElement("div",{className:"set-prize"},o.a.createElement("p",{className:"set-prize-title"},o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/jpsz_icon.png",alt:""}),"\u5956\u54c1\u8bbe\u7f6e"),o.a.createElement("div",{className:"set-prize-content"},c&&c.length&&c.map((function(e,t){return o.a.createElement("p",{key:t},e)})))),o.a.createElement("div",{className:"ranking-list"},o.a.createElement("div",{className:"ranking_title"},o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/jbei_icon.png",alt:""}),o.a.createElement("span",null,"\u6392\u884c\u699c"),o.a.createElement("p",null,"\u6570\u636e\u5b9e\u65f6\u66f4\u65b0 \u53ea\u663e\u793aTop50")),o.a.createElement("table",{border:"0",cellPadding:"0",cellSpacing:"0"},o.a.createElement("thead",null,o.a.createElement("tr",null,o.a.createElement("td",null,"\u6392\u540d"),o.a.createElement("td",null,"\u7528\u6237"),o.a.createElement("td",null,"\u9080\u8bf7\u4eba\u6570"))),o.a.createElement("tbody",null,s.list&&s.list.length>0?o.a.createElement("tr",null,o.a.createElement("td",null,o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/jin1_icon.png",alt:""})),o.a.createElement("td",null,o.a.createElement("img",{src:s.first.head_img,alt:""}),o.a.createElement("span",null,s.first.name)),o.a.createElement("td",null,s.first.num)):null,s.list&&s.list.length>1?o.a.createElement("tr",null,o.a.createElement("td",null,o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/yin2_icon.png",alt:""})),o.a.createElement("td",null,o.a.createElement("img",{src:s.second.head_img,alt:""}),o.a.createElement("span",null,s.second.name)),o.a.createElement("td",null,s.second.num)):null,s.list&&s.list.length>2?o.a.createElement("tr",null,o.a.createElement("td",null,o.a.createElement("img",{src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/tong_icon.png",alt:""})),o.a.createElement("td",null,o.a.createElement("img",{src:s.third.head_img,alt:""}),o.a.createElement("span",null,s.third.name)),o.a.createElement("td",null,s.third.num)):null,s.list&&s.list.length&&s.list.length>3?s.other.map((function(e,t){return o.a.createElement("tr",{key:t},o.a.createElement("td",null,t+4),o.a.createElement("td",null,o.a.createElement("img",{src:e.head_img,alt:""}),o.a.createElement("span",null,e.name)),o.a.createElement("td",null,e.num))})):null,s.isMyList&&o.a.createElement("tr",{className:"ismylist"},o.a.createElement("td",null,s.myList.ranking),o.a.createElement("td",null,o.a.createElement("img",{src:s.myList.head_img,alt:""}),o.a.createElement("span",null,s.myList.nickname)),o.a.createElement("td",null,s.myList.inviter_num)))),o.a.createElement("p",{className:"btm"})),o.a.createElement("p",{className:"julynotice"},"*\u672c\u6d3b\u52a8\u6700\u7ec8\u89e3\u91ca\u6743\u5f52\u4e03\u6708\u5728\u7ebf\u6240\u6709*"),i&&o.a.createElement("div",{className:"code-mbc"},o.a.createElement("div",{className:"code-box"},o.a.createElement("p",{className:"code-title"},"\u8fdb\u5165\u670d\u52a1\u53f7\u56de\u590d",o.a.createElement("i",null,"77"),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"),o.a.createElement("img",{id:"qrCodeWpay",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),o.a.createElement("p",{className:"btmmess"},"\u957f\u6309\u626b\u7801\u8fdb\u5165\u670d\u52a1\u53f7")),o.a.createElement("i",{className:"close iconfont iconiconfront-2",onClick:function(){e.setState({isShow:!1})}})))}}]),a}(u.Component);t.default=p}}]);
//# sourceMappingURL=67.ea3f392a.chunk.js.map
\ No newline at end of file
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "cfdb1e011f38f1ebe90e4ebdbfdc87ce",
"revision": "98c058139c88000bf6951062badfbeb3",
"url": "/index.html"
},
{
......@@ -68,7 +68,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/66.368d7543.chunk.css"
},
{
"revision": "a10db89d8d730ddad51c",
"revision": "0c46ca60bc8b29c613e2",
"url": "/mrstaticcss/67.7f124ed1.chunk.css"
},
{
......@@ -356,8 +356,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/66.a9d2bb41.chunk.js"
},
{
"revision": "a10db89d8d730ddad51c",
"url": "/mrstaticjs/67.ea3f392a.chunk.js"
"revision": "0c46ca60bc8b29c613e2",
"url": "/mrstaticjs/67.435c40e1.chunk.js"
},
{
"revision": "d833e2c16eb9f4cf5285",
......@@ -512,8 +512,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/python-class.3110ac8e.chunk.js"
},
{
"revision": "c48a215e69306c909884",
"url": "/mrstaticjs/runtime-main.58bd6d8d.js"
"revision": "ecafd40b78c7aa1bb94c",
"url": "/mrstaticjs/runtime-main.e7d50e71.js"
},
{
"revision": "1b5a0fa452d41dcf9206",
......
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"/precache-manifest.96a42126d613734060782639271352e8.js"
"/precache-manifest.55504ea30df07333638a5c67b2e9c932.js"
);
self.addEventListener('message', (event) => {
......
......@@ -23,6 +23,8 @@ class GiveCourses extends Component {
}
componentDidMount() {
document.title = 'AI攻城狮超车季,呼朋唤友免费学爆款AI好课!VIP会员、机械键盘、AI经典纸质书等免费送!--七月在线'
http.get(`${API["base-api"]}/assistance/detail`)
.then(res => {
const {data, errno, msg} = res.data
......@@ -119,6 +121,7 @@ class GiveCourses extends Component {
animate,
marqueeList
} = this.state
var _czc = _czc || []
return (
<div id={'give-courses'}>
<div className="banner">
......
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