Commit a79c2139 by zhanghaozhe

ai-test

parent 3f5e3807
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1040:function(e,t,a){},1041:function(e,t,a){},1043:function(e,t,a){},1044:function(e,t,a){},1045:function(e,t,a){},483:function(e,t,a){"use strict";var n=a(3),s=a(5),c=a(4),r=a(6),o=a(7),i=a(0),l=a.n(i),u=(a(501),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).startCountDown=function(e){if(e){var t=1e3*e,n=0,s=0,c=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),c="".concat(parseInt((t-36e5*n-6e4*s)/1e3)).padStart(2,0),a.setState({countdown:"".concat(n,"\u65f6").concat(s,"\u5206").concat(c,"\u79d2\u540e\u7ed3\u675f")})},1e3)}},a.state={countdown:""},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.time;this.startCountDown(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.time;this.props.time!=t&&this.startCountDown(t)}},{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id,s=this.state.countdown;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},s&&l.a.createElement("p",{className:"course__time"},s),l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(i.Component));t.a=u},501:function(e,t,a){},525:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var n=a(3),s=a(5),c=a(4),r=a(6),o=a(7),i=a(0),l=a.n(i),u=(a(1044),function(e){function t(e){return Object(n.a)(this,t),Object(c.a)(this,Object(r.a)(t).call(this,e))}return Object(o.a)(t,e),Object(s.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))},593:function(e,t,a){"use strict";a(37);var n=a(10),s=a.n(n),c=a(3),r=a(5),o=a(4),i=a(6),l=a(7),u=a(0),m=a.n(u),p=a(2),d=(a(1040),a(23)),g=a(9),h=Object(g.a)(function(){return a.e(40).then(a.bind(null,1133))}),E=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,r=new Array(n),l=0;l<n;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(){p.e.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,n=t.code,c=t.data,r=t.msg;200==n?a.setState({prizes:c.prize_data,notices:c.notices,rule:c.rule}):s.a.info(r,2,null,!1)})},a.showRules=function(){Object(d.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")),n=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),s=a.prizeList.scrollHeight,c=t+s-.12458*t-.595*n+n;a.prizeBox.style.height="".concat(c+27,"px"),a.innerBox.style.height="".concat(s,"px"),a.bg.style.height="".concat(s-n+.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(h,{bullets:a}):null,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,"\u4e2a\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",style:{width:"".concat(e.surplus/e.grant_max*100,"%")}})),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=E},594:function(e,t,a){"use strict";var n=a(109),s=a(3),c=a(5),r=a(4),o=a(6),i=a(7),l=a(50),u=a(0),m=a.n(u),p=a(2),d=a(141),g=(a(210),a(1041),function(e){function t(){var e,a;Object(s.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(n.a)(Array(19).keys()),s=!1;a.swiper=new d.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||s||(this.autoplay.stop(),e.getBulletScreenData().then(function(n){s=!0,a.removeSlide(t),a.appendSlide(e.getSlides(n)),setTimeout(function(){a.autoplay.start(),s=!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 p.e.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var n=t.data,s=n.data;if(200==n.code){if(!e)return s;a.setState({bulletScreenData:s},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=g},595:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var n=a(3),s=a(5),c=a(4),r=a(6),o=a(7),i=a(0),l=a.n(i),u=(a(1045),function(e){function t(e){var a;return Object(n.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(s.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))},662:function(e,t,a){"use strict";a(37);var n,s=a(10),c=a.n(s),r=a(18),o=a(3),i=a(5),l=a(4),u=a(6),m=a(7),p=a(50),d=a(0),g=a.n(d),h=(a(1043),a(2)),E=a(525),b=a(483),f=a(46),y=a(595),_=a(434),v=a.n(_),N=a(20),j=Object(N.b)(function(e){return{user:e.user}})(n=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(p.a)(Object(p.a)(a));h.e.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,n=a.code,s=a.data;200==n&&e.setState({sum:s.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;h.e.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var n=t.data,s=n.code,c=n.data;200===s&&a.setState({bigcourse:Object.assign({},e,{isMore:!1,course:c,courseList:c})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;h.e.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var n=t.data,s=n.errno,c=n.data;200===s&&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;h.e.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var n=t.data,s=n.code,c=n.data;200===s&&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){h.e.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(n){var s=n.data,c=s.code,r=s.data;200===c&&a.getList(e,r,t)})},a.getList=function(e,t,n){var s=a.state,c=s.basic,r=s.advanced,o=s.higher,i=s.expand;"one"===e&&a.setState({basic:Object.assign({},c,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"two"===e&&a.setState({advanced:Object.assign({},r,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"three"===e&&a.setState({higher:Object.assign({},o,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})})},a.toQQque=function(){Object(h.c)("version")?Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="http://q.url.cn/s/Vbkup6m?_type=wpa"},a.toCourse=function(e){var t=a.props.history;Object(h.c)("version")?Object(h.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(h.c)("version")?Object(h.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(p.a)(Object(p.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(p.a)(Object(p.a)(a));h.e.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data,n=t.errno,s=t.data,r=t.msg;0==n?(a.setState({qrUrl:s.url}),v.a.toDataURL(s.url,function(e,t){a.setState({followBarcode:t})})):c.a.info(r,2)})},a.addWishList=function(e,t){var n=Object(p.a)(Object(p.a)(a)),s=!a.props.user.hasError;n.setState({wish:{id:e,key:t}}),s?n.isFollow(e,t):n.toLogin()},a.isFollow=function(e,t){var n=Object(p.a)(Object(p.a)(a));h.e.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var s=a.data,r=s.code,o=s.data,i=s.msg;200===r?(n.setState({isshowFollow:!o.is_follow}),n.state.isshowFollow?n.getQRcodeUrl():n.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var n=Object(p.a)(Object(p.a)(a));h.e.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,s=a.code,r=a.msg;200==s?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),n.getLength(),"1"===t&&n.fetchAICourse("one",n.state.basic.addshowMore),"2"===t&&n.fetchAICourse("two",n.state.advanced.addshowMore),"3"===t&&n.fetchAICourse("three",n.state.higher.addshowMore),"4"===t&&n.fetchAICourse("four",n.state.expand.addshowMore),"group"===t&&n.fetchGroupCourse()):c.a.info(r,2)})},a.saveImage=function(){var e=Object(h.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.qrUrl;e&&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(h.a)("generateQRCode",t)},a.saveImage2=function(){var e=Object(h.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(h.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){h.e.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;if(200===n){var o=s.info,i=s.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,n="";t&&(n="?id=".concat(t)),e?Object(h.c)("version")?a.props.history.push("/year/yearTreasure".concat(n,"?version=").concat(Object(h.c)("version"))):a.props.history.push("/year/yearTreasure".concat(n)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?Object(h.c)("version")?a.props.history.push("/year/yearWish?version=".concat(Object(h.c)("version"))):a.props.history.push("/year/yearWish"):a.toLogin()},a.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.props.history;if(Object(h.c)("version")){var s={title:"\u3010\u4ec5\u5269".concat(t.number,"\u4e2a\u540d\u989d\u3011\u6211").concat(t.price,"\u5143\u62fc\u4e86\u300a").concat(t.course_title,"\u300b"),desc:t.course_title,link:"".concat(API.m,"/togroup?id=").concat(e,"&is_originator=1"),imgUrl:t.image_name};Object(h.a)("toShare",s)}else n.push("/togroup?id=".concat(e))},a.isCountDown=function(e,t){return e?t:""},a.formatTitleAndKey=function(e){var t=null;switch(e){case 1:t={title:"\u57fa\u7840",key:"basic"};break;case 2:t={title:"\u8fdb\u9636",key:"advanced"};break;case 3:t={title:"\u9ad8\u9636",key:"higher"};break;case 4:t={title:"\u6269\u5c55",key:"expand"};break;default:t=null}return t},a.formatCourseData=function(e){var t=a.state,n=t.basic,s=t.advanced,c=t.higher,r=t.expand,o=null;switch(e){case 1:o=n;break;case 2:o=s;break;case 3:o=c;break;case 4:o=r;break;default:o=null}return o},a.toCart=function(e){var t=a.props.history;h.e.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then(function(e){var n=e.data,s=n.code,r=n.msg;200===s||15001===s?Object(h.c)("version")?Object(h.a)("toShoppingCart"):t.push("/shopcart"):4030===s||4040===s?a.toLogin():c.a.info(r,2)})},a.toContinueBargain=function(e,t,n,s){var c=a.props.history;if(Object(h.c)("version")){var r={title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(t,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:"".concat(API.m,"/bargain-middle-page?id=").concat(e,"&bargaincode=").concat(n,"&is_originator=1"),imgUrl:s};Object(h.a)("toShare",r)}else c.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(n,"&is_originator=1"))},a.bargainToOrder=function(e){var t=a.props,n=t.history;t.user.hasError?a.toLogin():Object(h.c)("version")?Object(h.a)("toPay",e):h.e.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(t){var a=t.data,s=a.errno,r=a.msg;0===s?n.push("/order?id=[".concat(e,"]"),{bargain:1}):c.a.info(r,2)})},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:"",qrUrl:"",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.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.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,n=(t.freecourse,t.groupcourse),s=t.basic,c=t.advanced,r=t.higher,o=t.expand,i=t.removable,l=(t.sum,this.props),u=l.stage;l.treasureStage;return g.a.createElement("div",{className:"year-index-course"},g.a.createElement("div",{className:"nav-right-wish nav-right"},g.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",i>0&&g.a.createElement("i",{className:"nav-right__number"},i))),g.a.createElement(E.a,{title:"\u9a70\u63f4\u6b66\u6c49 \u6ce8\u518c\u5373\u9001",id:"year-wuhan"},g.a.createElement("div",{className:"course-box course-conter"},g.a.createElement("div",{className:"course-item"},g.a.createElement("span",null,"\u6ce8\u518c\u5373\u9001"),g.a.createElement("a",{href:"/detail?id=224"},g.a.createElement("img",{src:"http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/75d1c3cef5.png",alt:""}))),g.a.createElement("div",{className:"course-item"},g.a.createElement("span",null,"\u6ce8\u518c\u5373\u9001"),g.a.createElement("a",{href:"/detail?id=206"},g.a.createElement("img",{src:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/b001fac23f.png",alt:""}))),g.a.createElement("div",{className:"course-item"},g.a.createElement("span",null,"\u6ce8\u518c\u5373\u9001"),g.a.createElement("a",{href:"/detail?id=230"},g.a.createElement("img",{src:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/d0fb0a479b.png",alt:""}))))),g.a.createElement(E.a,{title:"\u91cd\u78c5\u597d\u8bfe\u9650\u65f6\u514d\u8d39\u8bd5\u542c",id:"year-course"},a.course&&a.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"bigcourse course-box"},a.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_vip&&g.a.createElement("a",{className:"btn big-course",onClick:function(){return e.toQQque()}},"\u9996\u8d2d\xa599\u8d77"),0==t.is_vip&&g.a.createElement(g.a.Fragment,null,1==t.is_buy&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&g.a.createElement("a",{onClick:function(){return e.toQQque()},className:"btn big-course"},1==t.is_audition?"\u514d\u8d39\u8bd5\u542c":"\u62a2\u56e2\u62a5\u540d\u989d"))))})))),1!==Number(u)&&g.a.createElement(g.a.Fragment,null,g.a.createElement(E.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u79d2",id:"year-group"},n.course&&n.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box","data-stage":"2"},n.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,time:e.isCountDown(1===t.is_assemble,t.add_time),toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},2==t.is_assemble&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-group","data-status":"study"},"\u5f00\u59cb\u5b66\u4e60"))),2!=t.is_assemble&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u62fc\u56e2\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},"0.01"),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.price1))),0==t.is_assemble&&g.a.createElement("div",{className:"progree-and-sale"},g.a.createElement("div",{className:"progress"},g.a.createElement("i",{className:"progress_bar",style:{width:"".concat(t.progress,"%")}})),g.a.createElement("p",{className:"sale-sum"},Number(t.sum<=285)?"\u5df2\u62a2".concat(t.sum,"\u4e2a"):"\u5373\u5c06\u552e\u7f44")),g.a.createElement("div",{className:"status"},0==t.is_assemble&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u9a6c\u4e0a\u62a2>>"),1==t.is_assemble&&g.a.createElement("a",{onClick:function(){return e.toInviteFriends(t.order_id,{number:t.number,course_title:t.course_title,image_name:t.image_name,price:.01})},className:"status-btn to-group","data-status":"done"},"\u5df2\u53c2\u56e2\uff0c\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")))))})),n.courseList&&n.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))),g.a.createElement(E.a,{title:"\u201c\u85aa\u201d\u5e74\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95\uff01",id:"year-discount"},[1,2,3,4].map(function(t){var a=e.formatTitleAndKey(t),n=e.formatCourseData(t);return g.a.createElement(g.a.Fragment,{key:t},g.a.createElement("h4",{className:"ai-course__subtitle"},a.title),n.course&&n.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},n.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,time:e.isCountDown(2===t.type,t.end_time),toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},(4===t.type||8===t.type)&&g.a.createElement("div",{className:"bargain-price"},"\u5df2\u780d",t.already_bargain,"\u5143"),0===t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u6d3b\u52a8\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},t.original_price),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.price1)))),(1===t.type||2===t.type)&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u62fc\u56e2\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},t.pdd_price),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.original_price)))),(3===t.type||4===t.type||8===t.type)&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u597d\u53cb\u5e2e\u5e2e\u780d")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\u5230\u624b\u6700\u4f4e\uff1a\xa5"),g.a.createElement("span",{className:"new-price"},t.low_prize),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.original_price)))),6===t.type&&g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("div",{className:"status","data-layout":4===t.type?"row":""},0===t.type&&g.a.createElement("a",{onClick:function(){return e.toCart(t.course_id)},className:"status-btn to-group"},"\u7acb\u5373\u8d2d\u4e70"),1===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u7acb\u5373\u53c2\u4e0e\u62fc\u56e2"),2===t.type&&g.a.createElement("a",{onClick:function(){return e.toInviteFriends(t.order_id,{number:t.number,course_title:t.course_title,image_name:t.image_name,price:t.pdd_price})},className:"status-btn to-group","data-status":"done"},"\u5df2\u53c2\u56e2\uff0c\u9080\u8bf7\u597d\u53cb\u53c2\u56e2"),3===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u6211\u8981\u780d\u4ef7"),4===t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("a",{onClick:function(){return e.toContinueBargain(t.course_id,t.already_bargain,t.bargain_code,t.image_name)},className:"status-btn to-group"},"\u7ee7\u7eed\u780d\u4ef7"),g.a.createElement("a",{onClick:function(){return e.bargainToOrder(t.course_id)},className:"status-btn to-group"},"\u652f\u4ed8",t.actual_payment,"\u5143")),8===t.type&&g.a.createElement("a",{onClick:function(){return e.bargainToOrder(t.course_id)},className:"status-btn to-group"},"\u652f\u4ed8",t.actual_payment,"\u5143"),6===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-group","data-status":"study"},"\u5f00\u59cb\u5b66\u4e60"))))})),n.courseList&&n.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore(a.key)}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))}))),1===Number(u)&&g.a.createElement(g.a.Fragment,null,g.a.createElement(E.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u5f00\u62a2",id:"year-group"},n.course&&n.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},n.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12\u670823\u65e5\u5f00\u56e2")),g.a.createElement("div",{className:"price"},"\xa5",g.a.createElement("span",{className:"new-price"},"0.01"),g.a.createElement("span",{className:"old-price"},"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"group")},className:"status-btn add-wish-success"},g.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&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))),g.a.createElement(E.a,{title:"\u597d\u8bfe\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95",id:"year-discount"},g.a.createElement("h4",{className:"ai-course__subtitle"},"\u57fa\u7840"),s.course&&s.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},s.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"1")},className:"status-btn add-wish-success"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),s.courseList&&s.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("basic")}},s.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u8fdb\u9636"),c.course&&c.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},c.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"2")},className:"status-btn add-wish-success"},g.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&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("advanced")}},c.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u9ad8\u9636"),r.course&&r.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},r.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"3")},className:"status-btn add-wish-success"},g.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&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("higher")}},r.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u6269\u5c55"),o.course&&o.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},o.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"4")},className:"status-btn add-wish-success"},g.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&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("expand")}},o.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),this.state.tofreeStudy&&g.a.createElement(y.a,{top:100,closePopup:this.closePopup,mark:!1},g.a.createElement("div",{className:"sub__code_container"},g.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),g.a.createElement("p",{className:"sub__tip"},"\u8fdb\u5165\u670d\u52a1\u53f7\u56de\u590d",g.a.createElement("i",null,"77"),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"),g.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),h.b.isAndroidApp?g.a.createElement("button",{className:"save-image",onClick:this.saveImage2},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):g.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&&g.a.createElement(y.a,{top:100,closePopup:this.closePopupWish,mark:!1},g.a.createElement("div",{className:"sub__code_container"},g.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),g.a.createElement("p",{className:"sub__tip"},"\u8bfe\u7a0b\u5f00\u552e\u7acb\u5373\u63d0\u9192\uff0c\u4e0d\u9519\u8fc7\u4efb\u4f55\u4f18\u60e0\u54e6\uff01"),g.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:this.state.followBarcode,alt:""}),h.b.isAndroidApp?g.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):g.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))))}}]),t}(d.Component))||n;t.a=Object(f.g)(j)}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1040:function(e,t,a){},1041:function(e,t,a){},1043:function(e,t,a){},1044:function(e,t,a){},1045:function(e,t,a){},483:function(e,t,a){"use strict";var n=a(3),s=a(5),c=a(4),r=a(6),o=a(7),i=a(0),l=a.n(i),u=(a(501),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).startCountDown=function(e){if(e){var t=1e3*e,n=0,s=0,c=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),c="".concat(parseInt((t-36e5*n-6e4*s)/1e3)).padStart(2,0),a.setState({countdown:"".concat(n,"\u65f6").concat(s,"\u5206").concat(c,"\u79d2\u540e\u7ed3\u675f")})},1e3)}},a.state={countdown:""},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.time;this.startCountDown(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.time;this.props.time!=t&&this.startCountDown(t)}},{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id,s=this.state.countdown;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},s&&l.a.createElement("p",{className:"course__time"},s),l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(i.Component));t.a=u},501:function(e,t,a){},525:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var n=a(3),s=a(5),c=a(4),r=a(6),o=a(7),i=a(0),l=a.n(i),u=(a(1044),function(e){function t(e){return Object(n.a)(this,t),Object(c.a)(this,Object(r.a)(t).call(this,e))}return Object(o.a)(t,e),Object(s.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))},593:function(e,t,a){"use strict";a(37);var n=a(10),s=a.n(n),c=a(3),r=a(5),o=a(4),i=a(6),l=a(7),u=a(0),m=a.n(u),p=a(2),d=(a(1040),a(23)),g=a(9),h=Object(g.a)(function(){return a.e(40).then(a.bind(null,1133))}),E=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,r=new Array(n),l=0;l<n;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(){p.e.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,n=t.code,c=t.data,r=t.msg;200==n?a.setState({prizes:c.prize_data,notices:c.notices,rule:c.rule}):s.a.info(r,2,null,!1)})},a.showRules=function(){Object(d.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")),n=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),s=a.prizeList.scrollHeight,c=t+s-.12458*t-.595*n+n;a.prizeBox.style.height="".concat(c+27,"px"),a.innerBox.style.height="".concat(s,"px"),a.bg.style.height="".concat(s-n+.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(h,{bullets:a}):null,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,"\u4e2a\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",style:{width:"".concat(e.surplus/e.grant_max*100,"%")}})),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=E},594:function(e,t,a){"use strict";var n=a(109),s=a(3),c=a(5),r=a(4),o=a(6),i=a(7),l=a(50),u=a(0),m=a.n(u),p=a(2),d=a(141),g=(a(210),a(1041),function(e){function t(){var e,a;Object(s.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(n.a)(Array(19).keys()),s=!1;a.swiper=new d.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||s||(this.autoplay.stop(),e.getBulletScreenData().then(function(n){s=!0,a.removeSlide(t),a.appendSlide(e.getSlides(n)),setTimeout(function(){a.autoplay.start(),s=!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 p.e.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var n=t.data,s=n.data;if(200==n.code){if(!e)return s;a.setState({bulletScreenData:s},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=g},595:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var n=a(3),s=a(5),c=a(4),r=a(6),o=a(7),i=a(0),l=a.n(i),u=(a(1045),function(e){function t(e){var a;return Object(n.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(s.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))},662:function(e,t,a){"use strict";a(37);var n,s=a(10),c=a.n(s),r=a(18),o=a(3),i=a(5),l=a(4),u=a(6),m=a(7),p=a(50),d=a(0),g=a.n(d),h=(a(1043),a(2)),E=a(525),b=a(483),f=a(46),y=a(595),_=a(434),v=a.n(_),N=a(20),j=Object(N.b)(function(e){return{user:e.user}})(n=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(p.a)(Object(p.a)(a));h.e.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,n=a.code,s=a.data;200==n&&e.setState({sum:s.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;h.e.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var n=t.data,s=n.code,c=n.data;200===s&&a.setState({bigcourse:Object.assign({},e,{isMore:!1,course:c,courseList:c})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;h.e.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var n=t.data,s=n.errno,c=n.data;200===s&&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;h.e.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var n=t.data,s=n.code,c=n.data;200===s&&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){h.e.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(n){var s=n.data,c=s.code,r=s.data;200===c&&a.getList(e,r,t)})},a.getList=function(e,t,n){var s=a.state,c=s.basic,r=s.advanced,o=s.higher,i=s.expand;"one"===e&&a.setState({basic:Object.assign({},c,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"two"===e&&a.setState({advanced:Object.assign({},r,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"three"===e&&a.setState({higher:Object.assign({},o,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})})},a.toQQque=function(){Object(h.c)("version")?Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="http://q.url.cn/s/Vbkup6m?_type=wpa"},a.toCourse=function(e){var t=a.props.history;Object(h.c)("version")?Object(h.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(h.c)("version")?Object(h.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(p.a)(Object(p.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(p.a)(Object(p.a)(a));h.e.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data,n=t.errno,s=t.data,r=t.msg;0==n?(a.setState({qrUrl:s.url}),v.a.toDataURL(s.url,function(e,t){a.setState({followBarcode:t})})):c.a.info(r,2)})},a.addWishList=function(e,t){var n=Object(p.a)(Object(p.a)(a)),s=!a.props.user.hasError;n.setState({wish:{id:e,key:t}}),s?n.isFollow(e,t):n.toLogin()},a.isFollow=function(e,t){var n=Object(p.a)(Object(p.a)(a));h.e.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var s=a.data,r=s.code,o=s.data,i=s.msg;200===r?(n.setState({isshowFollow:!o.is_follow}),n.state.isshowFollow?n.getQRcodeUrl():n.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var n=Object(p.a)(Object(p.a)(a));h.e.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,s=a.code,r=a.msg;200==s?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),n.getLength(),"1"===t&&n.fetchAICourse("one",n.state.basic.addshowMore),"2"===t&&n.fetchAICourse("two",n.state.advanced.addshowMore),"3"===t&&n.fetchAICourse("three",n.state.higher.addshowMore),"4"===t&&n.fetchAICourse("four",n.state.expand.addshowMore),"group"===t&&n.fetchGroupCourse()):c.a.info(r,2)})},a.saveImage=function(){var e=Object(h.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.qrUrl;e&&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(h.a)("generateQRCode",t)},a.saveImage2=function(){var e=Object(h.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(h.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){h.e.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;if(200===n){var o=s.info,i=s.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,n="";t&&(n="?id=".concat(t)),e?Object(h.c)("version")?a.props.history.push("/year/yearTreasure".concat(n,"?version=").concat(Object(h.c)("version"))):a.props.history.push("/year/yearTreasure".concat(n)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?Object(h.c)("version")?a.props.history.push("/year/yearWish?version=".concat(Object(h.c)("version"))):a.props.history.push("/year/yearWish"):a.toLogin()},a.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.props.history;if(Object(h.c)("version")){var s={title:"\u3010\u4ec5\u5269".concat(t.number,"\u4e2a\u540d\u989d\u3011\u6211").concat(t.price,"\u5143\u62fc\u4e86\u300a").concat(t.course_title,"\u300b"),desc:t.course_title,link:"".concat(API.m,"/togroup?id=").concat(e,"&is_originator=1"),imgUrl:t.image_name};Object(h.a)("toShare",s)}else n.push("/togroup?id=".concat(e))},a.isCountDown=function(e,t){return e?t:""},a.formatTitleAndKey=function(e){var t=null;switch(e){case 1:t={title:"\u57fa\u7840",key:"basic"};break;case 2:t={title:"\u8fdb\u9636",key:"advanced"};break;case 3:t={title:"\u9ad8\u9636",key:"higher"};break;case 4:t={title:"\u6269\u5c55",key:"expand"};break;default:t=null}return t},a.formatCourseData=function(e){var t=a.state,n=t.basic,s=t.advanced,c=t.higher,r=t.expand,o=null;switch(e){case 1:o=n;break;case 2:o=s;break;case 3:o=c;break;case 4:o=r;break;default:o=null}return o},a.toCart=function(e){var t=a.props.history;h.e.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then(function(e){var n=e.data,s=n.code,r=n.msg;200===s||15001===s?Object(h.c)("version")?Object(h.a)("toShoppingCart"):t.push("/shopcart"):4030===s||4040===s?a.toLogin():c.a.info(r,2)})},a.toContinueBargain=function(e,t,n,s){var c=a.props.history;if(Object(h.c)("version")){var r={title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(t,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:"".concat(API.m,"/bargain-middle-page?id=").concat(e,"&bargaincode=").concat(n,"&is_originator=1"),imgUrl:s};Object(h.a)("toShare",r)}else c.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(n,"&is_originator=1"))},a.bargainToOrder=function(e){var t=a.props,n=t.history;t.user.hasError?a.toLogin():Object(h.c)("version")?Object(h.a)("toPay",e):h.e.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(t){var a=t.data,s=a.errno,r=a.msg;0===s?n.push("/order?id=[".concat(e,"]"),{bargain:1}):c.a.info(r,2)})},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:"",qrUrl:"",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.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.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,n=(t.freecourse,t.groupcourse),s=t.basic,c=t.advanced,r=t.higher,o=t.expand,i=t.removable,l=(t.sum,this.props),u=l.stage;l.treasureStage;return g.a.createElement("div",{className:"year-index-course"},g.a.createElement("div",{className:"nav-right-wish nav-right"},g.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",i>0&&g.a.createElement("i",{className:"nav-right__number"},i))),g.a.createElement(E.a,{title:"\u9a70\u63f4\u6b66\u6c49 \u6ce8\u518c\u5373\u9001",id:"year-wuhan"},g.a.createElement("div",{className:"course-box course-conter"},g.a.createElement("div",{className:"course-item"},g.a.createElement("span",null,"\u6ce8\u518c\u5373\u9001"),g.a.createElement("a",{href:"/detail?id=224"},g.a.createElement("img",{src:"http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/75d1c3cef5.png",alt:""}))),g.a.createElement("div",{className:"course-item"},g.a.createElement("span",null,"\u6ce8\u518c\u5373\u9001"),g.a.createElement("a",{href:"/detail?id=206"},g.a.createElement("img",{src:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/b001fac23f.png",alt:""}))),g.a.createElement("div",{className:"course-item"},g.a.createElement("span",null,"\u6ce8\u518c\u5373\u9001"),g.a.createElement("a",{href:"/detail?id=230"},g.a.createElement("img",{src:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/d0fb0a479b.png",alt:""}))))),g.a.createElement(E.a,{title:"\u91cd\u78c5\u597d\u8bfe\u9650\u65f6\u514d\u8d39\u8bd5\u542c",id:"year-course"},a.course&&a.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"bigcourse course-box"},a.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_vip&&g.a.createElement("a",{className:"btn big-course",onClick:function(){return e.toQQque()}},"\u9996\u8d2d\xa599\u8d77"),0==t.is_vip&&g.a.createElement(g.a.Fragment,null,1==t.is_buy&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&g.a.createElement("a",{onClick:function(){return e.toQQque()},className:"btn big-course"},1==t.is_audition?"\u514d\u8d39\u8bd5\u542c":"\u62a2\u56e2\u62a5\u540d\u989d"))))})))),1!==Number(u)&&g.a.createElement(g.a.Fragment,null,g.a.createElement(E.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u79d2",id:"year-group"},n.course&&n.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box","data-stage":"2"},n.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,time:e.isCountDown(1===t.is_assemble,t.add_time),toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},2==t.is_assemble&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-group","data-status":"study"},"\u5f00\u59cb\u5b66\u4e60"))),2!=t.is_assemble&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u62fc\u56e2\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},"0.01"),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.price1))),0==t.is_assemble&&g.a.createElement("div",{className:"progree-and-sale"},g.a.createElement("div",{className:"progress"},g.a.createElement("i",{className:"progress_bar",style:{width:"".concat(t.progress,"%")}})),g.a.createElement("p",{className:"sale-sum"},Number(t.sum<=285)?"\u5df2\u62a2".concat(t.sum,"\u4e2a"):"\u5373\u5c06\u552e\u7f44")),g.a.createElement("div",{className:"status"},0==t.is_assemble&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u9a6c\u4e0a\u62a2>>"),1==t.is_assemble&&g.a.createElement("a",{onClick:function(){return e.toInviteFriends(t.order_id,{number:t.number,course_title:t.course_title,image_name:t.image_name,price:.01})},className:"status-btn to-group","data-status":"done"},"\u5df2\u53c2\u56e2\uff0c\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")))))})),n.courseList&&n.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))),g.a.createElement(E.a,{title:"\u201c\u85aa\u201d\u5e74\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95\uff01",id:"year-discount"},[1,2,3,4].map(function(t){var a=e.formatTitleAndKey(t),n=e.formatCourseData(t);return g.a.createElement(g.a.Fragment,{key:t},g.a.createElement("h4",{className:"ai-course__subtitle"},a.title),n.course&&n.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},n.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,time:e.isCountDown(2===t.type,t.end_time),toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},(4===t.type||8===t.type)&&g.a.createElement("div",{className:"bargain-price"},"\u5df2\u780d",t.already_bargain,"\u5143"),0===t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u6d3b\u52a8\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},t.original_price),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.price1)))),(1===t.type||2===t.type)&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u62fc\u56e2\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},t.pdd_price),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.original_price)))),(3===t.type||4===t.type||8===t.type)&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u597d\u53cb\u5e2e\u5e2e\u780d")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\u5230\u624b\u6700\u4f4e\uff1a\xa5"),g.a.createElement("span",{className:"new-price"},t.low_prize),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.original_price)))),6===t.type&&g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("div",{className:"status","data-layout":4===t.type?"row":""},0===t.type&&g.a.createElement("a",{onClick:function(){return e.toCart(t.course_id)},className:"status-btn to-group"},"\u7acb\u5373\u8d2d\u4e70"),1===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u7acb\u5373\u53c2\u4e0e\u62fc\u56e2"),2===t.type&&g.a.createElement("a",{onClick:function(){return e.toInviteFriends(t.order_id,{number:t.number,course_title:t.course_title,image_name:t.image_name,price:t.pdd_price})},className:"status-btn to-group","data-status":"done"},"\u5df2\u53c2\u56e2\uff0c\u9080\u8bf7\u597d\u53cb\u53c2\u56e2"),3===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u6211\u8981\u780d\u4ef7"),4===t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("a",{onClick:function(){return e.toContinueBargain(t.course_id,t.already_bargain,t.bargain_code,t.image_name)},className:"status-btn to-group"},"\u7ee7\u7eed\u780d\u4ef7"),g.a.createElement("a",{onClick:function(){return e.bargainToOrder(t.course_id)},className:"status-btn to-group"},"\u652f\u4ed8",t.actual_payment,"\u5143")),8===t.type&&g.a.createElement("a",{onClick:function(){return e.bargainToOrder(t.course_id)},className:"status-btn to-group"},"\u652f\u4ed8",t.actual_payment,"\u5143"),6===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-group","data-status":"study"},"\u5f00\u59cb\u5b66\u4e60"))))})),n.courseList&&n.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore(a.key)}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))}))),1===Number(u)&&g.a.createElement(g.a.Fragment,null,g.a.createElement(E.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u5f00\u62a2",id:"year-group"},n.course&&n.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},n.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12\u670823\u65e5\u5f00\u56e2")),g.a.createElement("div",{className:"price"},"\xa5",g.a.createElement("span",{className:"new-price"},"0.01"),g.a.createElement("span",{className:"old-price"},"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"group")},className:"status-btn add-wish-success"},g.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&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))),g.a.createElement(E.a,{title:"\u597d\u8bfe\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95",id:"year-discount"},g.a.createElement("h4",{className:"ai-course__subtitle"},"\u57fa\u7840"),s.course&&s.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},s.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"1")},className:"status-btn add-wish-success"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),s.courseList&&s.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("basic")}},s.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u8fdb\u9636"),c.course&&c.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},c.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"2")},className:"status-btn add-wish-success"},g.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&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("advanced")}},c.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u9ad8\u9636"),r.course&&r.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},r.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"3")},className:"status-btn add-wish-success"},g.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&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("higher")}},r.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u6269\u5c55"),o.course&&o.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},o.course.map(function(t){return g.a.createElement(b.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.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&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"4")},className:"status-btn add-wish-success"},g.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&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("expand")}},o.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),this.state.tofreeStudy&&g.a.createElement(y.a,{top:100,closePopup:this.closePopup,mark:!1},g.a.createElement("div",{className:"sub__code_container"},g.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),g.a.createElement("p",{className:"sub__tip"},"\u8fdb\u5165\u670d\u52a1\u53f7\u56de\u590d",g.a.createElement("i",null,"77"),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"),g.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),h.b.isAndroidApp?g.a.createElement("button",{className:"save-image",onClick:this.saveImage2},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):g.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&&g.a.createElement(y.a,{top:100,closePopup:this.closePopupWish,mark:!1},g.a.createElement("div",{className:"sub__code_container"},g.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),g.a.createElement("p",{className:"sub__tip"},"\u8bfe\u7a0b\u5f00\u552e\u7acb\u5373\u63d0\u9192\uff0c\u4e0d\u9519\u8fc7\u4efb\u4f55\u4f18\u60e0\u54e6\uff01"),g.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:this.state.followBarcode,alt:""}),h.b.isAndroidApp?g.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):g.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))))}}]),t}(d.Component))||n;t.a=Object(f.g)(j)}}]);
//# sourceMappingURL=1.e825e433.chunk.js.map //# sourceMappingURL=1.8ccb3ba2.chunk.js.map
\ No newline at end of file \ 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