(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1230:function(e,t,a){},1231:function(e,t,a){},1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},659:function(e,t,a){"use strict";var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(737),function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(r.a)(t).apply(this,arguments))}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,s=e.id;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(s)}})),this.props.children)}}]),t}(i.Component));t.a=u},660:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(1234),function(e){function t(e){return Object(s.a)(this,t),Object(c.a)(this,Object(r.a)(t).call(this,e))}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.id;return l.a.createElement("div",{className:"common_container",id:e},l.a.createElement("div",{className:"container_top"}),l.a.createElement("div",{className:"container_content"},this.props.title&&l.a.createElement("div",{className:"title_container"},l.a.createElement("i",null),l.a.createElement("p",null,this.props.title),l.a.createElement("i",null)),l.a.Children.map(this.props.children,function(e){return l.a.createElement(l.a.Fragment,null,e)})),l.a.createElement("div",{className:"container_bottom"}))}}]),t}(i.Component))},737:function(e,t,a){},739:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(1235),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).computedStyle=function(){return{top:"".concat(a.props.top,"px"),width:"".concat(a.props.width,"px")}},a.closePopup=function(){a.props.mark&&a.props.closePopup()},a}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"popup__container",onClick:this.closePopup},l.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},l.a.createElement("img",{className:"close__btn",onClick:this.props.closePopup,src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",alt:""}),l.a.Children.map(this.props.children,function(e){return l.a.createElement(l.a.Fragment,null,e)})))}}]),t}(i.Component))},816:function(e,t,a){"use strict";a(39);var s=a(12),n=a.n(s),c=a(5),r=a(7),o=a(6),i=a(8),l=a(9),u=a(0),m=a.n(u),d=a(3),p=(a(1230),a(27)),h=a(14),g=Object(h.a)(function(){return a.e(40).then(a.bind(null,1251))}),f=function(e){function t(){var e,a;Object(c.a)(this,t);for(var s=arguments.length,r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return(a=Object(o.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.state={prizes:[],notices:[],rule:[],unfoldList:!1},a.getPrizes=function(){d.d.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,s=t.code,c=t.data,r=t.msg;200==s?a.setState({prizes:c.prize_data,notices:c.notices,rule:c.rule}):n.a.info(r,2,null,!1)})},a.showRules=function(){Object(p.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:m.a.createElement("div",{dangerouslySetInnerHTML:{__html:a.state.rule}}),closeIcon:a.closeIcon})},a.showMore=function(){a.setState(function(e){if(a.state.unfoldList)a.bg.style=a.innerBox.style=a.prizeBox.style="";else{var t=parseFloat(getComputedStyle(a.prizeBox,":before").getPropertyValue("height")),s=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),n=a.prizeList.scrollHeight,c=t+n-.12458*t-.595*s+s;a.prizeBox.style.height="".concat(c+27,"px"),a.innerBox.style.height="".concat(n,"px"),a.bg.style.height="".concat(n-s+.12458*t+27,"px")}return{unfoldList:!e.unfoldList}})},a}return Object(l.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices,a=this.state.notices;return m.a.createElement(m.a.Fragment,null,t&&a&&a.length&&m.a.createElement(g,{bullets:a}),m.a.createElement("div",{className:"prizes-box",ref:function(t){return e.prizeBox=t}},m.a.createElement("a",{href:"javascript:;",className:"rule-btn",onClick:this.showRules},"\u6d3b\u52a8\u89c4\u5219 > "),m.a.createElement("div",{className:"bg",ref:function(t){return e.bg=t}}),m.a.createElement("div",{className:"inner-box",ref:function(t){return e.innerBox=t}},m.a.createElement("ul",{className:"prize-list",ref:function(t){return e.prizeList=t}},this.state.prizes.map(function(e,t){return m.a.createElement("li",{key:t},e.img_name?m.a.createElement("i",{className:"prize-list__image",style:{backgroundImage:"url(".concat(e.img_name,")")}}):m.a.createElement("i",{className:"prize-list__image"}),0!=e.is_captain&&m.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&m.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u6b21\u5fc5\u4e2d"),e.grant_max?m.a.createElement("div",{className:"bottom-bar"},m.a.createElement("div",{className:"progress-bar"},m.a.createElement("span",{className:"progress"})),m.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):m.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))}),m.a.createElement("li",null,m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),m.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?m.a.createElement("div",null,"\u6536\u8d77",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):m.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),t}(u.Component);t.a=f},817:function(e,t,a){"use strict";var s=a(119),n=a(5),c=a(7),r=a(6),o=a(8),i=a(9),l=a(73),u=a(0),m=a.n(u),d=a(3),p=a(162),h=(a(258),a(1231),function(e){function t(){var e,a;Object(n.a)(this,t);for(var c=arguments.length,i=new Array(c),u=0;u<c;u++)i[u]=arguments[u];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={bulletScreenData:[]},a.initializeBulletScreen=function(){var e=Object(l.a)(Object(l.a)(a)),t=Object(s.a)(Array(19).keys()),n=!1;a.swiper=new p.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var a=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),e.getBulletScreenData().then(function(s){n=!0,a.removeSlide(t),a.appendSlide(e.getSlides(s)),setTimeout(function(){a.autoplay.start(),n=!1})}))}}})},a.getSlides=function(e){return e.map(function(e){return'\n <li class="swiper-slide">\n <img class="avatar" src="'.concat(e.avatar_file,'" alt="">\n <span>').concat(e.user_name," ").concat(e.msg,"</span>\n </li>\n ")})},a.getBulletScreenData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d.d.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var s=t.data,n=s.data;if(200==s.code){if(!e)return n;a.setState({bulletScreenData:n},function(){a.initializeBulletScreen()})}})},a}return Object(i.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getBulletScreenData(!0)}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy()}},{key:"render",value:function(){var e=this.state.bulletScreenData;return m.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},m.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map(function(e,t){return m.a.createElement("li",{className:"swiper-slide",key:t},m.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),m.a.createElement("span",null,e.user_name," ",e.msg))})))}}]),t}(u.Component));t.a=h},818:function(e,t,a){"use strict";a(39);var s,n=a(12),c=a.n(n),r=a(19),o=a(5),i=a(7),l=a(6),u=a(8),m=a(9),d=a(73),p=a(0),h=a.n(p),g=(a(1233),a(3)),f=a(660),E=a(659),b=a(48),y=a(739),_=a(587),v=a.n(_),N=a(22),j=Object(N.b)(function(e){return{user:e.user}})(s=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(l.a)(this,Object(u.a)(t).call(this,e))).getLength=function(){var e=Object(d.a)(Object(d.a)(a));g.d.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,s=a.code,n=a.data;200==s&&e.setState({sum:n.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;g.d.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var s=t.data,n=s.code,c=s.data;200===n&&a.setState({bigcourse:Object.assign({},e,{isMore:c.length>4,course:c.length>4?c.filter(function(e,t){return t<4}):c,courseList:c})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;g.d.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var s=t.data,n=s.errno,c=s.data;200===n&&a.setState({freecourse:Object.assign({},e,{isMore:c.course_info.length>4,course:c.course_info.length>4?c.course_info.filter(function(e,t){return t<4}):c.course_info,courseList:c.course_info})})})},a.fetchGroupCourse=function(){var e=a.state.groupcourse;g.d.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var s=t.data,n=s.code,c=s.data;200===n&&a.setState({groupcourse:Object.assign({},e,{isMore:c.length>4,course:c.length>4?c.filter(function(e,t){return t<4}):c,courseList:c})})})},a.fetchAICourse=function(e,t){g.d.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(s){var n=s.data,c=n.code,r=n.data;200===c&&a.getList(e,r,t)})},a.getList=function(e,t,s){var n=a.state,c=n.basic,r=n.advanced,o=n.higher,i=n.expand;"one"===e&&a.setState({basic:Object.assign({},c,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"two"===e&&a.setState({advanced:Object.assign({},r,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"three"===e&&a.setState({higher:Object.assign({},o,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})})},a.toQQque=function(){Object(g.c)("version")?Object(g.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="https://q.url.cn/AB8aue?_type=wpa&qidian=true"},a.toCourse=function(e){var t=a.props.history;Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.handleToMore=function(e){var t={};a.state[e].isMore?(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList,courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(r.a)({},t))):(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(r.a)({},t)))},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.freeStudy=function(){a.setState({tofreeStudy:!0})},a.closePopup=function(){a.setState({tofreeStudy:!1})},a.closePopupWish=function(){var e=Object(d.a)(Object(d.a)(a));e.setState({isshowFollow:!1}),setTimeout(function(){e.toJoinList(e.state.wish.id,e.state.wish.key)},200)},a.getQRcodeUrl=function(){var e=Object(d.a)(Object(d.a)(a));g.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data,s=t.errno,n=t.data,r=t.msg;0==s?v.a.toDataURL(n.url,function(e,t){a.setState({followBarcode:t})}):c.a.info(r,2)})},a.addWishList=function(e,t){var s=Object(d.a)(Object(d.a)(a)),n=!a.props.user.hasError;s.setState({wish:{id:e,key:t}}),n?s.isFollow(e,t):s.toLogin()},a.isFollow=function(e,t){var s=Object(d.a)(Object(d.a)(a));g.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var n=a.data,r=n.code,o=n.data,i=n.msg;200===r?(s.setState({isshowFollow:!o.is_follow}),s.state.isshowFollow?s.getQRcodeUrl():s.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var s=Object(d.a)(Object(d.a)(a));g.d.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,n=a.code,r=a.msg;200==n?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),s.getLength(),"1"===t&&s.fetchAICourse("one",s.state.basic.addshowMore),"2"===t&&s.fetchAICourse("two",s.state.advanced.addshowMore),"3"===t&&s.fetchAICourse("three",s.state.higher.addshowMore),"4"===t&&s.fetchAICourse("four",s.state.expand.addshowMore),"group"===t&&s.fetchGroupCourse()):c.a.info(r,2)})},a.saveImage=function(){var e=Object(g.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("generateQRCode","//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,s=t.code,n=t.data,r=t.msg;if(200===s){var o=n.info,i=n.removable_data;a.setState({removable:o.removable,currentId:o.removable>0?i[0].id:null})}else c.a.info(r)})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentId,s="";t&&(s="?id=".concat(t)),e?Object(g.c)("version")?a.props.history.push("/year/yearTreasure".concat(s,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/year/yearTreasure".concat(s)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?Object(g.c)("version")?a.props.history.push("/year/yearWish?version=".concat(Object(g.c)("version"))):a.props.history.push("/year/yearWish"):a.toLogin()},a.state={tofreeStudy:!1,basic:{course:[],courseList:[],isMore:!1,addshowMore:!1},advanced:{course:[],courseList:[],isMore:!1,addshowMore:!1},higher:{course:[],courseList:[],isMore:!1,addshowMore:!1},expand:{course:[],courseList:[],isMore:!1,addshowMore:!1},bigcourse:{course:[],courseList:[],isMore:!1},freecourse:{course:[],courseList:[],isMore:!1},groupcourse:{course:[],courseList:[],isMore:!1},isshowFollow:!1,wish:{id:"",key:""},followBarcode:"",sum:"",removable:"",currentId:""},a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchFreeCourse(),this.fetchGroupCourse(),this.fetchAICourse("one",!1),this.fetchAICourse("two",!1),this.fetchAICourse("three",!1),this.fetchAICourse("four",!1)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchFreeCourse(),this.fetchGroupCourse(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.bigcourse,s=t.freecourse,n=t.groupcourse,c=t.basic,r=t.advanced,o=t.higher,i=t.expand,l=t.removable,u=t.sum;return h.a.createElement("div",{className:"year-index-course"},h.a.createElement("div",{className:"nav-right"},h.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",l>0&&h.a.createElement("i",{className:"nav-right__number"},l)),h.a.createElement("a",{onClick:function(){return e.toYearWish()},className:"nav-right__link"},"\u5fc3\u613f\u5355",u>0&&h.a.createElement("i",{className:"nav-right__number"},u))),h.a.createElement(f.a,{title:"\u91cd\u78c5\u597d\u8bfe",id:"year-course"},h.a.createElement("div",null,a.course&&a.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"bigcourse course-box"},a.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toQQque()},className:"btn big-course"},"\u901f\u62a2\u62fc\u56e2\u540d\u989d")))})),a.courseList&&a.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("bigcourse")}},a.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66",id:"year-free"},h.a.createElement("div",null,s.course&&s.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"freecourse course-box"},s.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.freeStudy()},className:"btn free-study"},"\u70b9\u51fb\u514d\u8d39\u5b66"),h.a.createElement("p",{className:"free-course-num"},"\u5df2\u9001\u51fa",h.a.createElement("span",null,t.act_num),"\u4e2a\u8bfe\u7a0b")))})),s.courseList&&s.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("freecourse")}},s.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u5f00\u62a2",id:"year-group"},h.a.createElement("div",null,n.course&&n.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},n.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12\u670823\u65e5\u5f00\u56e2")),h.a.createElement("div",{className:"price"},"\xa5",h.a.createElement("span",{className:"new-price"},"0.01"),h.a.createElement("span",{className:"old-price"},"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"group")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),n.courseList&&n.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u597d\u8bfe\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95",id:"year-discount"},h.a.createElement("div",null,h.a.createElement("h4",{className:"ai-course__subtitle"},"\u57fa\u7840"),c.course&&c.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},c.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"1")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),c.courseList&&c.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("basic")}},c.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u8fdb\u9636"),r.course&&r.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},r.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"2")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),r.courseList&&r.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("advanced")}},r.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u9ad8\u9636"),o.course&&o.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},o.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"3")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),o.courseList&&o.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("higher")}},o.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u6269\u5c55"),i.course&&i.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},i.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"4")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),i.courseList&&i.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("expand")}},i.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),this.state.tofreeStudy&&h.a.createElement(y.a,{top:100,closePopup:this.closePopup,mark:!1},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u8fdb\u5165\u670d\u52a1\u53f7\u56de\u590d",h.a.createElement("i",null,"77"),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))),this.state.isshowFollow&&h.a.createElement(y.a,{top:100,closePopup:this.closePopupWish,mark:!1},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u8bfe\u7a0b\u5f00\u552e\u7acb\u5373\u63d0\u9192\uff0c\u4e0d\u9519\u8fc7\u4efb\u4f55\u4f18\u60e0\u54e6\uff01"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:this.state.followBarcode,alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))))}}]),t}(p.Component))||s;t.a=Object(b.g)(j)}}]); //# sourceMappingURL=2.858addcf.chunk.js.map