Commit b6194389 by dazhou

活动页title调整

parent 6c13d4dc
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[67],{1060:function(e,t,a){},1171:function(e,t,a){"use strict";a.r(t);var n=a(74),l=a(3),c=a(5),s=a(6),i=a(7),r=(a(36),a(10)),m=a.n(r),u=a(0),o=a.n(u),d=(a(1060),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="\u5145\u7535\u5b63\uff0cAI\u597d\u8bfe\u514d\u8d39\u5b66\uff01\u6298\u53e0\u952e\u76d8\u3001\u84dd\u7259\u8033\u673a\u3001\u7eb8\u8d28\u4e66\u7b49\u5305\u90ae\u9001\uff01",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=window._czc||[];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}}]); (this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[67],{1060:function(e,t,a){},1171:function(e,t,a){"use strict";a.r(t);var n=a(74),l=a(3),c=a(5),s=a(6),i=a(7),r=(a(36),a(10)),m=a.n(r),u=a(0),o=a.n(u),d=(a(1060),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="\u0041\u0049\u63d0\u5347\u5b63\u002c\u6b63\u4ef7\u8bfe\u514d\u8d39\u5b66\uff0c\u0056\u0049\u0050\u4f1a\u5458\u3001\u673a\u68b0\u952e\u76d8\u3001\u7eb8\u8d28\u4e66\u3001\u786c\u76d8\u7b49\u5305\u90ae\u9001\u0021\u002d\u002d\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=window._czc||[];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.5ac8b435.chunk.js.map //# sourceMappingURL=67.5ac8b435.chunk.js.map
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment