Commit 64e11941 by dazhou

组队开宝箱banner图更换

parent 6153bdc0
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[46],{1071:function(e,t,a){},1072:function(e,t,a){},1073:function(e,t,a){},1074:function(e,t,a){},1075:function(e,t,a){},1076:function(e,t,a){},1077:function(e,t,a){},1078:function(e,t,a){},1188:function(e,t,a){"use strict";a.r(t);a(36);var n,r,s=a(10),o=a.n(s),c=a(3),i=a(5),l=a(6),u=a(7),m=a(0),p=a.n(m),d=(a(1071),a(4)),h=a(58),f=(a(1072),a(1)),g=a(28),v=a(419),b=a.n(v),y=a(20),_=Object(y.b)((function(e){return{user:e.user}}))(n=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).getLength=function(){var e=Object(h.a)(n);f.f.get("".concat(API.home,"/activity/wish_sum")).then((function(t){var a=t.data,n=a.code,r=a.data;200==n&&e.setState({sum:r.sum})}))},n.fetchBigCourse=function(){var e=n.state.bigcourse;f.f.get("".concat(API.home,"/activity/preheat_data")).then((function(t){var a=t.data,r=a.code,s=a.data;200===r&&n.setState({bigcourse:Object.assign({},e,{isMore:!1,course:s,courseList:s})})}))},n.fetchFreeCourse=function(){var e=n.state.freecourse;f.f.get("".concat(API["base-api"],"/assistance/detail")).then((function(t){var a=t.data,r=a.errno,s=a.data;200===r&&n.setState({freecourse:Object.assign({},e,{isMore:s.course_info.length>4,course:s.course_info.length>4?s.course_info.filter((function(e,t){return t<4})):s.course_info,courseList:s.course_info})})}))},n.fetchGroupCourse=function(){var e=n.state.groupcourse;f.f.get("".concat(API.home,"/activity/excellent_course")).then((function(t){var a=t.data,r=a.code,s=a.data;200===r&&n.setState({groupcourse:Object.assign({},e,{isMore:s.length>4,course:s.length>4?s.filter((function(e,t){return t<4})):s,courseList:s})})}))},n.fetchAICourse=function(e,t){f.f.get("".concat(API.home,"/activity/four_stage/").concat(e)).then((function(a){var r=a.data,s=r.code,o=r.data;200===s&&n.getList(e,o,t)}))},n.getList=function(e,t,a){var r=n.state,s=r.basic,o=r.advanced,c=r.higher,i=r.expand;"one"===e&&n.setState({basic:Object.assign({},s,{isMore:t.length>4&&!a,course:t.length>4&&!a?t.filter((function(e,t){return t<4})):t,courseList:t,addshowMore:a})}),"two"===e&&n.setState({advanced:Object.assign({},o,{isMore:t.length>4&&!a,course:t.length>4&&!a?t.filter((function(e,t){return t<4})):t,courseList:t,addshowMore:a})}),"three"===e&&n.setState({higher:Object.assign({},c,{isMore:t.length>4&&!a,course:t.length>4&&!a?t.filter((function(e,t){return t<4})):t,courseList:t,addshowMore:a})}),"four"===e&&n.setState({expand:Object.assign({},i,{isMore:t.length>4&&!a,course:t.length>4&&!a?t.filter((function(e,t){return t<4})):t,courseList:t,addshowMore:a})})},n.toQQque=function(){Object(f.c)("version")?Object(f.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):window.location.href="http://q.url.cn/s/Vbkup6m?_type=wpa"},n.toCourse=function(e){var t=n.props.history;Object(f.c)("version")?Object(f.a)("toCourse",e):t.push("/detail?id=".concat(e))},n.handleToMore=function(e){var t={};n.state[e].isMore?(t[e]={isMore:!n.state[e].isMore,course:n.state[e].courseList,courseList:n.state[e].courseList,addshowMore:!n.state[e].addshowMore},n.setState(Object(d.a)({},t))):(t[e]={isMore:!n.state[e].isMore,course:n.state[e].courseList.filter((function(e,t){return t<4})),courseList:n.state[e].courseList,addshowMore:!n.state[e].addshowMore},n.setState(Object(d.a)({},t)))},n.toLogin=function(){Object(f.c)("version")?Object(f.a)("toLogin"):n.props.history.push("/passport/login")},n.freeStudy=function(){n.setState({tofreeStudy:!0})},n.closePopup=function(){n.setState({tofreeStudy:!1})},n.closePopupWish=function(){var e=Object(h.a)(n);e.setState({isshowFollow:!1}),setTimeout((function(){e.toJoinList(e.state.wish.id,e.state.wish.key)}),200)},n.getQRcodeUrl=function(){var e=Object(h.a)(n);f.f.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then((function(e){var t=e.data,a=t.errno,r=t.data,s=t.msg;0==a?(n.setState({qrUrl:r.url}),b.a.toDataURL(r.url,(function(e,t){n.setState({followBarcode:t})}))):o.a.info(s,2)}))},n.addWishList=function(e,t){var a=Object(h.a)(n),r=!n.props.user.hasError;a.setState({wish:{id:e,key:t}}),r?a.isFollow(e,t):a.toLogin()},n.isFollow=function(e,t){var a=Object(h.a)(n);f.f.get("".concat(API.home,"/sys/user/isFollowWeChat")).then((function(n){var r=n.data,s=r.code,c=r.data,i=r.msg;200===s?(a.setState({isshowFollow:!c.is_follow}),a.state.isshowFollow?a.getQRcodeUrl():a.toJoinList(e,t)):o.a.info(i,2)}))},n.toJoinList=function(e,t){var a=Object(h.a)(n);f.f.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then((function(e){var n=e.data,r=n.code,s=n.msg;200==r?(o.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),a.getLength(),"1"===t&&a.fetchAICourse("one",a.state.basic.addshowMore),"2"===t&&a.fetchAICourse("two",a.state.advanced.addshowMore),"3"===t&&a.fetchAICourse("three",a.state.higher.addshowMore),"4"===t&&a.fetchAICourse("four",a.state.expand.addshowMore),"group"===t&&a.fetchGroupCourse()):o.a.info(s,2)}))},n.saveImage=function(){var e=Object(f.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=n.state.qrUrl;e&&parseInt(e)<451?o.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(f.a)("generateQRCode",t)},n.saveImage2=function(){var e=Object(f.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?o.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(f.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},n.getTeamInfo=function(){f.f.get("".concat(API.home,"/sys/treasure/teamInfo")).then((function(e){var t=e.data,a=t.code,r=t.data,s=t.msg;if(200===a){var c=r.info,i=r.removable_data;n.setState({removable:c.removable,currentId:c.removable>0?i[0].id:null})}else o.a.info(s)}))},n.toBoxList=function(){var e=!n.props.user.hasError,t=n.state.currentId,a="";t&&(a="?id=".concat(t)),e?Object(f.c)("version")?n.props.history.push("/box/yearTreasure".concat(a,"?version=").concat(Object(f.c)("version"))):n.props.history.push("/box/yearTreasure".concat(a)):n.toLogin()},n.toYearWish=function(){!n.props.user.hasError?Object(f.c)("version")?n.props.history.push("/year/yearWish?version=".concat(Object(f.c)("version"))):n.props.history.push("/year/yearWish"):n.toLogin()},n.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.props.history;if(Object(f.c)("version")){var r={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(f.a)("toShare",r)}else a.push("/togroup?id=".concat(e))},n.isCountDown=function(e,t){return e?t:""},n.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},n.formatCourseData=function(e){var t=n.state,a=t.basic,r=t.advanced,s=t.higher,o=t.expand,c=null;switch(e){case 1:c=a;break;case 2:c=r;break;case 3:c=s;break;case 4:c=o;break;default:c=null}return c},n.toCart=function(e){var t=n.props.history;f.f.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then((function(e){var a=e.data,r=a.code,s=a.msg;200===r||15001===r?Object(f.c)("version")?Object(f.a)("toShoppingCart"):t.push("/shopcart"):4030===r||4040===r?n.toLogin():o.a.info(s,2)}))},n.toContinueBargain=function(e,t,a,r){var s=n.props.history;if(Object(f.c)("version")){var o={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(a,"&is_originator=1"),imgUrl:r};Object(f.a)("toShare",o)}else s.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(a,"&is_originator=1"))},n.bargainToOrder=function(e){var t=n.props,a=t.history;t.user.hasError?n.toLogin():Object(f.c)("version")?Object(f.a)("toPay",e):f.f.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then((function(t){var n=t.data,r=n.errno,s=n.msg;0===r?a.push("/order?id=[".concat(e,"]"),{bargain:1}):o.a.info(s,2)}))},n.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:""},n}return Object(i.a)(a,[{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.state.removable;return p.a.createElement("div",{className:"year-index-course"},e>0&&p.a.createElement("div",{className:"nav-right-wish nav-right"},p.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",p.a.createElement("i",{className:"nav-right__number"},e))))}}]),a}(m.Component))||n,j=Object(g.g)(_),E=(a(1073),function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){var e=this.props.id;return p.a.createElement("div",{className:"common_container",id:e},p.a.createElement("div",{className:"container_top"}),p.a.createElement("div",{className:"container_content"},this.props.title&&p.a.createElement("div",{className:"title_container"},p.a.createElement("i",null),p.a.createElement("p",null,this.props.title),p.a.createElement("i",null)),p.a.Children.map(this.props.children,(function(e){return p.a.createElement(p.a.Fragment,null,e)}))),p.a.createElement("div",{className:"container_bottom"}))}}]),a}(m.Component)),k=(a(1074),function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).fetchRankInfo=function(){f.f.get("".concat(API.home,"/sys/treasure/ranking")).then((function(e){var t=e.data,a=t.code,r=t.data;200===a&&"{}"!==JSON.stringify(r)&&(r.length>5?n.setState({rank:r.filter((function(e,t){return t<5})),rankList:r,isMore:!0}):n.setState({rank:r,rankList:r,isMore:!1}))}))},n.switchMoreRank=function(){var e=n.state,t=e.rankList;e.isMore?n.setState({rank:t,isMore:!1}):n.setState({rank:t.filter((function(e,t){return t<5})),isMore:!0})},n.handleToVip=function(e){var t=n.props.history;e&&(Object(f.c)("version")?Object(f.a)("toCourse",e):t.push("/detail?id=".concat(e)))},n.state={rank:[],rankList:[],isMore:!1},n}return Object(i.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.rank,n=t.isMore;return p.a.createElement(p.a.Fragment,null,0!==a.length&&p.a.createElement("div",{"data-skip":"rank"},p.a.createElement("div",{className:"rank-title"},p.a.createElement("i",{className:"rank-title__decorate"}),p.a.createElement("h2",{className:"rank-title__txt"},"\u5b9d\u7bb1\u8fbe\u4eba\u699c"),p.a.createElement("i",{className:"rank-title__decorate"})),p.a.createElement("p",{className:"rank-desc"},"\u5b9d\u7bb1\u6570\u91cf\u524d50\u540d\u53ef\u989d\u5916\u83b7\u5f97\u4e00\u4efd\u5956\u54c1\uff0c\u6570\u91cf\u76f8\u540c\u7684\u7528\u65f6\u77ed\u8005\u6392\u540d\u5728\u524d"),p.a.createElement("dl",{className:"rank-header"},p.a.createElement("dd",{className:"rank-column"},"\u6392\u540d"),p.a.createElement("dd",{className:"rank-column"},"\u7528\u6237"),p.a.createElement("dd",{className:"rank-column"},"\u5b9d\u7bb1\u6570\u91cf"),p.a.createElement("dd",{className:"rank-column"},"\u5956\u54c1")),p.a.createElement("div",{className:"rank-body"},a.map((function(t,a){return p.a.createElement("dl",{className:"rank-item",key:a},p.a.createElement("dd",{className:"rank-column"},a<=2?p.a.createElement("span",{className:"rank-column__number","data-num":a}):p.a.createElement("span",null,a+1)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",{className:"rank-column__name"},t.user_name)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",null,t.num)),p.a.createElement("dd",{className:"rank-column"},t.url?p.a.createElement("a",{className:"rank-column__txt",onClick:function(){return e.handleToVip(t.url)}},t.prize_name):p.a.createElement("span",{className:"rank-column__txt"},t.prize_name)))})),p.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},p.a.createElement("span",{className:"rank-more__txt"},n?"\u5c55\u5f00":"\u6536\u8d77"),p.a.createElement("i",{className:"rank-more__icon","data-more":n})))))}}]),a}(m.Component)),w=(a(1075),a(24)),O=a(38),N=a.n(O),I=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).getTeamInfo=function(){f.f.get("".concat(API.home,"/sys/treasure/teamInfo")).then((function(e){var t=e.data,a=t.code,r=t.data,s=t.msg;if(200===a){var c=r.prize_info,i=r.is_my_team,l=r.info,u=r.member,m=r.removable_data,p=r.my_team;n.setState({prize_info:c,is_my_team:i,info:l,member:n.fillTeam(u,i),removable_data:m,my_team:p});var d=null;l.removable>0&&(d=m[0].id),n.props.getRemovable(l.removable,d)}else o.a.info(s)}))},n.toYearTreasure=function(e){if(n.props.user.hasError)n.toLogin();else{var t="";if(e){var a=n.state,r=a.removable_data;if(a.info.removable>0){var s=r[0];t="?id=".concat(s.id)}}Object(f.c)("version")?n.props.history.push("/box/yearTreasure".concat(t,"?version=").concat(Object(f.c)("version"))):n.props.history.push("/box/yearTreasure".concat(t))}},n.toLogin=function(){Object(f.c)("version")?Object(f.a)("toLogin"):n.props.history.push("/passport/login")},n.createTeam=function(){if(n.props.user.hasError)n.toLogin();else{sessionStorage.setItem("showShareTip","1");var e=n.state,t=e.is_my_team,a=e.my_team.treasure_code;t?Object(f.c)("version")?window.location.assign("https://m.julyedu.com/box/landing?origin=1&treasure_code="+a+"&version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/box/landing?origin=1&treasure_code="+a):f.f.get("".concat(API.home,"/sys/treasure/createMyTeam")).then((function(e){var t=e.data,a=t.code,n=t.data,r=t.msg;if(200===a){var s=n.treasure_code;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/box/landing?origin=1&treasure_code="+s+"&version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/box/landing?origin=1&treasure_code="+s)}else o.a.info(r)}))}},n.fillTeam=function(e,t){var a=e.length;if(n.props.user.hasError)for(var r=0;r<5-a;r++)e.push({head_img:"",user_name:"",nobody:!0});else if(0!==a||t)for(var s=0;s<5-a;s++)e.push({head_img:"",user_name:"",nobody:!0});else{e.push({head_img:N.a.get("avatar_file"),user_name:N.a.get("user_name")});for(var o=0;o<4;o++)e.push({head_img:"",user_name:"",nobody:!0})}return e},n.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},n}return Object(i.a)(a,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,r=t.info,s=r.removable,o=r.total,c=t.member,i="",l=0;a.length>0&&(i=a[0].name,l=a[0].stage_no);var u="";return u=0===o?"\u6211\u7684\u5b9d\u7bb1":0===s?"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1/").concat(s,"\u4e2a\u672a\u5f00"),p.a.createElement("div",{className:"team_info__container"},p.a.createElement("div",{className:"team__member"},p.a.createElement("ul",{className:"member__list"},c&&c.length>0&&c.map((function(e,t){return p.a.createElement("li",{key:t,className:"member__item"},p.a.createElement("div",{className:"avatar__container"},e.nobody?p.a.createElement("img",{className:"head__image",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:""}):p.a.createElement("img",{className:"head__image",src:e.head_img,alt:""}),0===t?p.a.createElement("img",{className:"caption__flag",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png",alt:""}):null,p.a.createElement("div",{className:"shadow"})),p.a.createElement("div",{className:"member__join ".concat(e.nobody?"":"join")}))}))),p.a.createElement("div",{className:"box__number"},p.a.createElement("img",{onClick:function(){return e.toYearTreasure(!0)},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),p.a.createElement("p",{onClick:function(){return e.toYearTreasure(!1)},className:"box__text"},u),p.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),s>0&&p.a.createElement("div",{className:"position__number"},s))),p.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&i&&p.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d").concat(i)))}}]),a}(m.Component),S=Object(w.d)(Object(y.b)((function(e){return{user:e.user}}),null),g.g)(I),L=(a(1076),a(25)),C=a(8),M=Object(C.a)((function(){return a.e(44).then(a.bind(null,1135))})),x=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",e.state={prizes:[],notices:[],rule:[],unfoldList:!1},e.getPrizes=function(){f.f.get("".concat(API.home,"/sys/prize_data")).then((function(t){var a=t.data,n=a.code,r=a.data,s=a.msg;200==n?e.setState({prizes:r.prize_data,notices:r.notices,rule:r.rule}):o.a.info(s,2,null,!1)}))},e.showRules=function(){Object(L.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:p.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.state.rule}}),closeIcon:e.closeIcon})},e.showMore=function(){e.setState((function(t){if(e.state.unfoldList)e.bg.style=e.innerBox.style=e.prizeBox.style="";else{var a=parseFloat(getComputedStyle(e.prizeBox,":before").getPropertyValue("height")),n=parseFloat(getComputedStyle(e.prizeBox,":after").getPropertyValue("height")),r=e.prizeList.scrollHeight,s=a+r-.12458*a-.595*n+n;e.prizeBox.style.height="".concat(s+27,"px"),e.innerBox.style.height="".concat(r,"px"),e.bg.style.height="".concat(r-n+.12458*a+27,"px")}return{unfoldList:!t.unfoldList}}))},e}return Object(i.a)(a,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices,a=this.state.notices;return p.a.createElement(p.a.Fragment,null,t&&a&&a.length?p.a.createElement(M,{bullets:a}):null,p.a.createElement("div",{className:"prizes-box",ref:function(t){return e.prizeBox=t}},p.a.createElement("a",{href:"javascript:;",className:"rule-btn",onClick:this.showRules},"\u6d3b\u52a8\u89c4\u5219 >"," "),p.a.createElement("div",{className:"bg",ref:function(t){return e.bg=t}}),p.a.createElement("div",{className:"inner-box",ref:function(t){return e.innerBox=t}},p.a.createElement("ul",{className:"prize-list",ref:function(t){return e.prizeList=t}},this.state.prizes.map((function(e,t){return p.a.createElement("li",{key:t},e.img_name?p.a.createElement("i",{className:"prize-list__image",style:{backgroundImage:"url(".concat(e.img_name,")")}}):p.a.createElement("i",{className:"prize-list__image"}),0!=e.is_captain&&p.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&p.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u4e2a\u5fc5\u4e2d"),e.grant_max?p.a.createElement("div",{className:"bottom-bar"},p.a.createElement("div",{className:"progress-bar"},p.a.createElement("span",{className:"progress",style:{width:"".concat(e.surplus/e.grant_max*100,"%")}})),p.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):p.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))})),p.a.createElement("li",null,p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),p.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?p.a.createElement("div",null,"\u6536\u8d77",p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):p.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),a}(m.Component),A=a(73),P=a(139),z=(a(205),a(1077),function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).state={bulletScreenData:[]},e.initializeBulletScreen=function(){var t=Object(h.a)(e),a=Object(A.a)(Array(19).keys()),n=!1;e.swiper=new P.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var e=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),t.getBulletScreenData().then((function(r){n=!0,e.removeSlide(a),e.appendSlide(t.getSlides(r)),setTimeout((function(){e.autoplay.start(),n=!1}))})))}}})},e.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 ")}))},e.getBulletScreenData=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return f.f.get("".concat(API.home,"/sys/barrage_data")).then((function(a){var n=a.data,r=n.data;if(200===n.code){if(!t)return r;e.setState({bulletScreenData:r},(function(){e.initializeBulletScreen()}))}}))},e}return Object(i.a)(a,[{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 p.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},p.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map((function(e,t){return p.a.createElement("li",{className:"swiper-slide",key:t},p.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),p.a.createElement("span",null,e.user_name," ",e.msg))}))))}}]),a}(m.Component)),T=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){return p.a.createElement(E,{id:"year-treasure",title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},p.a.createElement("div",{style:{textAlign:"center",fontSize:"12px",color:"#FFDC1E",marginTop:"10px"}},"\u9080\u8bf7\u597d\u53cb\u7ec4\u961f\u4e00\u8d77\u5f00\u5b9d\u7bb1\uff0c\u6ee15\u4eba\u540e\u5c06\u968f\u673a\u83b7\u5f97\u4ee5\u4e0b\u5956\u54c1~"),p.a.createElement(x,{showSystemNotices:!0}),p.a.createElement(z,null),p.a.createElement(S,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),p.a.createElement(k,{history:this.props.history}))}}]),a}(m.Component),U=Object(g.g)(T),B=(a(1078),function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).computedStyle=function(){return{top:"".concat(e.props.top,"px"),width:"".concat(e.props.width,"px")}},e.closePopup=function(){e.props.mark&&e.props.closePopup()},e}return Object(i.a)(a,[{key:"render",value:function(){return p.a.createElement("div",{className:"popup__container",onClick:this.closePopup},p.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},p.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:""}),p.a.Children.map(this.props.children,(function(e){return p.a.createElement(p.a.Fragment,null,e)}))))}}]),a}(m.Component)),F=a(23),D=a(404),R=Object(y.b)((function(e){return{user:e.user}}),{setCurrentUser:F.i,startFetchUser:F.j})(r=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).state={removable:0,currentOpenId:0,treasure_stage:0,activity_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/f4613ec518.jpeg"},e.loginInfo=function(t){e.setState({userInfoList:t},(function(){e.state.userInfoList.length&&(e.props.startFetchUser(),e.appLogin())}))},e.appLogin=function(){var t=Object(D.a)(new Date,90);e.state.userInfoList.forEach((function(e,a){N.a.set("token",e.token,{expires:t,path:"/",domain:".julyedu.com"}),N.a.set("plat",e.plat,{expires:t,path:"/",domain:".julyedu.com"}),N.a.set("uid",e.uid,{expires:t,path:"/",domain:".julyedu.com"}),N.a.set("uname",e.uname,{expires:t,path:"/",domain:".julyedu.com"}),N.a.set("avatar_file",e.avatar_file,{expires:t,path:"/",domain:".julyedu.com"})})),N.a.get("token")&&N.a.get("uid")&&e.setState({isAppUpdate:!0}),e.props.setCurrentUser(e.transformUser(e.state.userInfoList))},e.transformUser=function(e){var t;return e.forEach((function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}})),t},e.closePopup=function(){e.setState({showMark:!1})},e.getRemovable=function(e,t){},e.getStage=function(){f.f.get("".concat(API.home,"/activity/stage")).then((function(t){var a=t.data,n=a.code,r=a.data,s=a.msg;if(200===n){if(0===Number(r.treasure_stage))return void e.props.history.push("/");e.setState({activity_stage:r.activity_stage,treasure_stage:r.treasure_stage}),r.activity_stage,e.setState({banner:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/f4613ec518.jpeg"})}else o.a.info(s,2)}))},e}return Object(i.a)(a,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage(),document.title="\u0041\u0049\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66\u6b63\u4ef7\u8bfe\uff0c\u0032\u0030\u0030\u672c\u7eb8\u8d28\u4e66\u7b49\u5305\u90ae\u9001\uff01\u002d\u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this.state,t=e.banner,a=e.activity_stage,n=e.treasure_stage;return p.a.createElement("div",{className:"year-index"},p.a.createElement("div",{className:"banner-treasure"},p.a.createElement("img",{src:t,alt:""})),1===n&&p.a.createElement(U,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),p.a.createElement(j,{stage:a,treasureStage:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&p.a.createElement(B,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),p.a.createElement("p",{className:"sub__tip"},"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),p.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),p.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"))),this.state.showMark&&p.a.createElement(B,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219"),p.a.createElement("p",{className:"sub__rule"},"1. \u6d3b\u52a8\u671f\u95f4\uff083\u670826\u65e5-3\u670831\u65e5\uff09\u53ef\u968f\u65f6\u53c2\u4e0e\u5f00\u5b9d\u7bb1\uff1b",p.a.createElement("br",null),"2. \u5f53\u524d\u961f\u4f0d\u6ee1\u5458\u540e\u53ef\u7ee7\u7eed\u521b\u5efa\u65b0\u961f\u4f0d\uff1b",p.a.createElement("br",null),"3. \u6bcf\u4eba\u6709\u4e00\u6b21\u673a\u4f1a\u52a0\u5165\u597d\u53cb\u7684\u961f\u4f0d\uff1b",p.a.createElement("br",null),"4. \u961f\u4f0d\u6ee1\u5458\u540e\u6240\u6709\u6210\u5458\u5747\u53ef\u968f\u673a\u83b7\u5f97\u5b9d\u7bb1\u5185\u5956\u54c1\uff0c\u961f\u957f\u5956\u52b1\u66f4\u4e30\u539a\u54e6~",p.a.createElement("br",null),"5. \u4ee3\u91d1\u5238\u3001\u8bfe\u7a0b\u7b49\u865a\u62df\u5956\u54c1\u5c06\u76f4\u63a5\u53d1\u653e\u81f3\u8d26\u6237\uff0c\u5b9e\u7269\u5956\u54c1\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4\uff1b",p.a.createElement("br",null),"6. \u73b0\u91d1\u53ef\u63d0\u73b0\uff1a\u6211\u7684 \u2192 \u8d5a\u5956\u5b66\u91d1 \u2192 \u63d0\u73b0\u3002"))),p.a.createElement("div",{className:"btm-rule"},"* \u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709 *"))}}]),a}(m.Component))||r;t.default=R}}]); (this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[46],{1071:function(e,t,a){},1072:function(e,t,a){},1073:function(e,t,a){},1074:function(e,t,a){},1075:function(e,t,a){},1076:function(e,t,a){},1077:function(e,t,a){},1078:function(e,t,a){},1188:function(e,t,a){"use strict";a.r(t);a(36);var n,r,s=a(10),o=a.n(s),c=a(3),i=a(5),l=a(6),u=a(7),m=a(0),p=a.n(m),d=(a(1071),a(4)),h=a(58),f=(a(1072),a(1)),g=a(28),v=a(419),b=a.n(v),y=a(20),_=Object(y.b)((function(e){return{user:e.user}}))(n=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).getLength=function(){var e=Object(h.a)(n);f.f.get("".concat(API.home,"/activity/wish_sum")).then((function(t){var a=t.data,n=a.code,r=a.data;200==n&&e.setState({sum:r.sum})}))},n.fetchBigCourse=function(){var e=n.state.bigcourse;f.f.get("".concat(API.home,"/activity/preheat_data")).then((function(t){var a=t.data,r=a.code,s=a.data;200===r&&n.setState({bigcourse:Object.assign({},e,{isMore:!1,course:s,courseList:s})})}))},n.fetchFreeCourse=function(){var e=n.state.freecourse;f.f.get("".concat(API["base-api"],"/assistance/detail")).then((function(t){var a=t.data,r=a.errno,s=a.data;200===r&&n.setState({freecourse:Object.assign({},e,{isMore:s.course_info.length>4,course:s.course_info.length>4?s.course_info.filter((function(e,t){return t<4})):s.course_info,courseList:s.course_info})})}))},n.fetchGroupCourse=function(){var e=n.state.groupcourse;f.f.get("".concat(API.home,"/activity/excellent_course")).then((function(t){var a=t.data,r=a.code,s=a.data;200===r&&n.setState({groupcourse:Object.assign({},e,{isMore:s.length>4,course:s.length>4?s.filter((function(e,t){return t<4})):s,courseList:s})})}))},n.fetchAICourse=function(e,t){f.f.get("".concat(API.home,"/activity/four_stage/").concat(e)).then((function(a){var r=a.data,s=r.code,o=r.data;200===s&&n.getList(e,o,t)}))},n.getList=function(e,t,a){var r=n.state,s=r.basic,o=r.advanced,c=r.higher,i=r.expand;"one"===e&&n.setState({basic:Object.assign({},s,{isMore:t.length>4&&!a,course:t.length>4&&!a?t.filter((function(e,t){return t<4})):t,courseList:t,addshowMore:a})}),"two"===e&&n.setState({advanced:Object.assign({},o,{isMore:t.length>4&&!a,course:t.length>4&&!a?t.filter((function(e,t){return t<4})):t,courseList:t,addshowMore:a})}),"three"===e&&n.setState({higher:Object.assign({},c,{isMore:t.length>4&&!a,course:t.length>4&&!a?t.filter((function(e,t){return t<4})):t,courseList:t,addshowMore:a})}),"four"===e&&n.setState({expand:Object.assign({},i,{isMore:t.length>4&&!a,course:t.length>4&&!a?t.filter((function(e,t){return t<4})):t,courseList:t,addshowMore:a})})},n.toQQque=function(){Object(f.c)("version")?Object(f.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):window.location.href="http://q.url.cn/s/Vbkup6m?_type=wpa"},n.toCourse=function(e){var t=n.props.history;Object(f.c)("version")?Object(f.a)("toCourse",e):t.push("/detail?id=".concat(e))},n.handleToMore=function(e){var t={};n.state[e].isMore?(t[e]={isMore:!n.state[e].isMore,course:n.state[e].courseList,courseList:n.state[e].courseList,addshowMore:!n.state[e].addshowMore},n.setState(Object(d.a)({},t))):(t[e]={isMore:!n.state[e].isMore,course:n.state[e].courseList.filter((function(e,t){return t<4})),courseList:n.state[e].courseList,addshowMore:!n.state[e].addshowMore},n.setState(Object(d.a)({},t)))},n.toLogin=function(){Object(f.c)("version")?Object(f.a)("toLogin"):n.props.history.push("/passport/login")},n.freeStudy=function(){n.setState({tofreeStudy:!0})},n.closePopup=function(){n.setState({tofreeStudy:!1})},n.closePopupWish=function(){var e=Object(h.a)(n);e.setState({isshowFollow:!1}),setTimeout((function(){e.toJoinList(e.state.wish.id,e.state.wish.key)}),200)},n.getQRcodeUrl=function(){var e=Object(h.a)(n);f.f.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then((function(e){var t=e.data,a=t.errno,r=t.data,s=t.msg;0==a?(n.setState({qrUrl:r.url}),b.a.toDataURL(r.url,(function(e,t){n.setState({followBarcode:t})}))):o.a.info(s,2)}))},n.addWishList=function(e,t){var a=Object(h.a)(n),r=!n.props.user.hasError;a.setState({wish:{id:e,key:t}}),r?a.isFollow(e,t):a.toLogin()},n.isFollow=function(e,t){var a=Object(h.a)(n);f.f.get("".concat(API.home,"/sys/user/isFollowWeChat")).then((function(n){var r=n.data,s=r.code,c=r.data,i=r.msg;200===s?(a.setState({isshowFollow:!c.is_follow}),a.state.isshowFollow?a.getQRcodeUrl():a.toJoinList(e,t)):o.a.info(i,2)}))},n.toJoinList=function(e,t){var a=Object(h.a)(n);f.f.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then((function(e){var n=e.data,r=n.code,s=n.msg;200==r?(o.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),a.getLength(),"1"===t&&a.fetchAICourse("one",a.state.basic.addshowMore),"2"===t&&a.fetchAICourse("two",a.state.advanced.addshowMore),"3"===t&&a.fetchAICourse("three",a.state.higher.addshowMore),"4"===t&&a.fetchAICourse("four",a.state.expand.addshowMore),"group"===t&&a.fetchGroupCourse()):o.a.info(s,2)}))},n.saveImage=function(){var e=Object(f.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=n.state.qrUrl;e&&parseInt(e)<451?o.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(f.a)("generateQRCode",t)},n.saveImage2=function(){var e=Object(f.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?o.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(f.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},n.getTeamInfo=function(){f.f.get("".concat(API.home,"/sys/treasure/teamInfo")).then((function(e){var t=e.data,a=t.code,r=t.data,s=t.msg;if(200===a){var c=r.info,i=r.removable_data;n.setState({removable:c.removable,currentId:c.removable>0?i[0].id:null})}else o.a.info(s)}))},n.toBoxList=function(){var e=!n.props.user.hasError,t=n.state.currentId,a="";t&&(a="?id=".concat(t)),e?Object(f.c)("version")?n.props.history.push("/box/yearTreasure".concat(a,"?version=").concat(Object(f.c)("version"))):n.props.history.push("/box/yearTreasure".concat(a)):n.toLogin()},n.toYearWish=function(){!n.props.user.hasError?Object(f.c)("version")?n.props.history.push("/year/yearWish?version=".concat(Object(f.c)("version"))):n.props.history.push("/year/yearWish"):n.toLogin()},n.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.props.history;if(Object(f.c)("version")){var r={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(f.a)("toShare",r)}else a.push("/togroup?id=".concat(e))},n.isCountDown=function(e,t){return e?t:""},n.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},n.formatCourseData=function(e){var t=n.state,a=t.basic,r=t.advanced,s=t.higher,o=t.expand,c=null;switch(e){case 1:c=a;break;case 2:c=r;break;case 3:c=s;break;case 4:c=o;break;default:c=null}return c},n.toCart=function(e){var t=n.props.history;f.f.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then((function(e){var a=e.data,r=a.code,s=a.msg;200===r||15001===r?Object(f.c)("version")?Object(f.a)("toShoppingCart"):t.push("/shopcart"):4030===r||4040===r?n.toLogin():o.a.info(s,2)}))},n.toContinueBargain=function(e,t,a,r){var s=n.props.history;if(Object(f.c)("version")){var o={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(a,"&is_originator=1"),imgUrl:r};Object(f.a)("toShare",o)}else s.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(a,"&is_originator=1"))},n.bargainToOrder=function(e){var t=n.props,a=t.history;t.user.hasError?n.toLogin():Object(f.c)("version")?Object(f.a)("toPay",e):f.f.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then((function(t){var n=t.data,r=n.errno,s=n.msg;0===r?a.push("/order?id=[".concat(e,"]"),{bargain:1}):o.a.info(s,2)}))},n.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:""},n}return Object(i.a)(a,[{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.state.removable;return p.a.createElement("div",{className:"year-index-course"},e>0&&p.a.createElement("div",{className:"nav-right-wish nav-right"},p.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",p.a.createElement("i",{className:"nav-right__number"},e))))}}]),a}(m.Component))||n,j=Object(g.g)(_),E=(a(1073),function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){var e=this.props.id;return p.a.createElement("div",{className:"common_container",id:e},p.a.createElement("div",{className:"container_top"}),p.a.createElement("div",{className:"container_content"},this.props.title&&p.a.createElement("div",{className:"title_container"},p.a.createElement("i",null),p.a.createElement("p",null,this.props.title),p.a.createElement("i",null)),p.a.Children.map(this.props.children,(function(e){return p.a.createElement(p.a.Fragment,null,e)}))),p.a.createElement("div",{className:"container_bottom"}))}}]),a}(m.Component)),k=(a(1074),function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).fetchRankInfo=function(){f.f.get("".concat(API.home,"/sys/treasure/ranking")).then((function(e){var t=e.data,a=t.code,r=t.data;200===a&&"{}"!==JSON.stringify(r)&&(r.length>5?n.setState({rank:r.filter((function(e,t){return t<5})),rankList:r,isMore:!0}):n.setState({rank:r,rankList:r,isMore:!1}))}))},n.switchMoreRank=function(){var e=n.state,t=e.rankList;e.isMore?n.setState({rank:t,isMore:!1}):n.setState({rank:t.filter((function(e,t){return t<5})),isMore:!0})},n.handleToVip=function(e){var t=n.props.history;e&&(Object(f.c)("version")?Object(f.a)("toCourse",e):t.push("/detail?id=".concat(e)))},n.state={rank:[],rankList:[],isMore:!1},n}return Object(i.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.rank,n=t.isMore;return p.a.createElement(p.a.Fragment,null,0!==a.length&&p.a.createElement("div",{"data-skip":"rank"},p.a.createElement("div",{className:"rank-title"},p.a.createElement("i",{className:"rank-title__decorate"}),p.a.createElement("h2",{className:"rank-title__txt"},"\u5b9d\u7bb1\u8fbe\u4eba\u699c"),p.a.createElement("i",{className:"rank-title__decorate"})),p.a.createElement("p",{className:"rank-desc"},"\u5b9d\u7bb1\u6570\u91cf\u524d50\u540d\u53ef\u989d\u5916\u83b7\u5f97\u4e00\u4efd\u5956\u54c1\uff0c\u6570\u91cf\u76f8\u540c\u7684\u7528\u65f6\u77ed\u8005\u6392\u540d\u5728\u524d"),p.a.createElement("dl",{className:"rank-header"},p.a.createElement("dd",{className:"rank-column"},"\u6392\u540d"),p.a.createElement("dd",{className:"rank-column"},"\u7528\u6237"),p.a.createElement("dd",{className:"rank-column"},"\u5b9d\u7bb1\u6570\u91cf"),p.a.createElement("dd",{className:"rank-column"},"\u5956\u54c1")),p.a.createElement("div",{className:"rank-body"},a.map((function(t,a){return p.a.createElement("dl",{className:"rank-item",key:a},p.a.createElement("dd",{className:"rank-column"},a<=2?p.a.createElement("span",{className:"rank-column__number","data-num":a}):p.a.createElement("span",null,a+1)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",{className:"rank-column__name"},t.user_name)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",null,t.num)),p.a.createElement("dd",{className:"rank-column"},t.url?p.a.createElement("a",{className:"rank-column__txt",onClick:function(){return e.handleToVip(t.url)}},t.prize_name):p.a.createElement("span",{className:"rank-column__txt"},t.prize_name)))})),p.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},p.a.createElement("span",{className:"rank-more__txt"},n?"\u5c55\u5f00":"\u6536\u8d77"),p.a.createElement("i",{className:"rank-more__icon","data-more":n})))))}}]),a}(m.Component)),w=(a(1075),a(24)),O=a(38),N=a.n(O),I=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(e){var n;return Object(c.a)(this,a),(n=t.call(this,e)).getTeamInfo=function(){f.f.get("".concat(API.home,"/sys/treasure/teamInfo")).then((function(e){var t=e.data,a=t.code,r=t.data,s=t.msg;if(200===a){var c=r.prize_info,i=r.is_my_team,l=r.info,u=r.member,m=r.removable_data,p=r.my_team;n.setState({prize_info:c,is_my_team:i,info:l,member:n.fillTeam(u,i),removable_data:m,my_team:p});var d=null;l.removable>0&&(d=m[0].id),n.props.getRemovable(l.removable,d)}else o.a.info(s)}))},n.toYearTreasure=function(e){if(n.props.user.hasError)n.toLogin();else{var t="";if(e){var a=n.state,r=a.removable_data;if(a.info.removable>0){var s=r[0];t="?id=".concat(s.id)}}Object(f.c)("version")?n.props.history.push("/box/yearTreasure".concat(t,"?version=").concat(Object(f.c)("version"))):n.props.history.push("/box/yearTreasure".concat(t))}},n.toLogin=function(){Object(f.c)("version")?Object(f.a)("toLogin"):n.props.history.push("/passport/login")},n.createTeam=function(){if(n.props.user.hasError)n.toLogin();else{sessionStorage.setItem("showShareTip","1");var e=n.state,t=e.is_my_team,a=e.my_team.treasure_code;t?Object(f.c)("version")?window.location.assign("https://m.julyedu.com/box/landing?origin=1&treasure_code="+a+"&version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/box/landing?origin=1&treasure_code="+a):f.f.get("".concat(API.home,"/sys/treasure/createMyTeam")).then((function(e){var t=e.data,a=t.code,n=t.data,r=t.msg;if(200===a){var s=n.treasure_code;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/box/landing?origin=1&treasure_code="+s+"&version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/box/landing?origin=1&treasure_code="+s)}else o.a.info(r)}))}},n.fillTeam=function(e,t){var a=e.length;if(n.props.user.hasError)for(var r=0;r<5-a;r++)e.push({head_img:"",user_name:"",nobody:!0});else if(0!==a||t)for(var s=0;s<5-a;s++)e.push({head_img:"",user_name:"",nobody:!0});else{e.push({head_img:N.a.get("avatar_file"),user_name:N.a.get("user_name")});for(var o=0;o<4;o++)e.push({head_img:"",user_name:"",nobody:!0})}return e},n.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},n}return Object(i.a)(a,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,r=t.info,s=r.removable,o=r.total,c=t.member,i="",l=0;a.length>0&&(i=a[0].name,l=a[0].stage_no);var u="";return u=0===o?"\u6211\u7684\u5b9d\u7bb1":0===s?"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1/").concat(s,"\u4e2a\u672a\u5f00"),p.a.createElement("div",{className:"team_info__container"},p.a.createElement("div",{className:"team__member"},p.a.createElement("ul",{className:"member__list"},c&&c.length>0&&c.map((function(e,t){return p.a.createElement("li",{key:t,className:"member__item"},p.a.createElement("div",{className:"avatar__container"},e.nobody?p.a.createElement("img",{className:"head__image",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:""}):p.a.createElement("img",{className:"head__image",src:e.head_img,alt:""}),0===t?p.a.createElement("img",{className:"caption__flag",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png",alt:""}):null,p.a.createElement("div",{className:"shadow"})),p.a.createElement("div",{className:"member__join ".concat(e.nobody?"":"join")}))}))),p.a.createElement("div",{className:"box__number"},p.a.createElement("img",{onClick:function(){return e.toYearTreasure(!0)},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),p.a.createElement("p",{onClick:function(){return e.toYearTreasure(!1)},className:"box__text"},u),p.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),s>0&&p.a.createElement("div",{className:"position__number"},s))),p.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&i&&p.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d").concat(i)))}}]),a}(m.Component),S=Object(w.d)(Object(y.b)((function(e){return{user:e.user}}),null),g.g)(I),L=(a(1076),a(25)),C=a(8),M=Object(C.a)((function(){return a.e(44).then(a.bind(null,1135))})),x=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",e.state={prizes:[],notices:[],rule:[],unfoldList:!1},e.getPrizes=function(){f.f.get("".concat(API.home,"/sys/prize_data")).then((function(t){var a=t.data,n=a.code,r=a.data,s=a.msg;200==n?e.setState({prizes:r.prize_data,notices:r.notices,rule:r.rule}):o.a.info(s,2,null,!1)}))},e.showRules=function(){Object(L.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:p.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.state.rule}}),closeIcon:e.closeIcon})},e.showMore=function(){e.setState((function(t){if(e.state.unfoldList)e.bg.style=e.innerBox.style=e.prizeBox.style="";else{var a=parseFloat(getComputedStyle(e.prizeBox,":before").getPropertyValue("height")),n=parseFloat(getComputedStyle(e.prizeBox,":after").getPropertyValue("height")),r=e.prizeList.scrollHeight,s=a+r-.12458*a-.595*n+n;e.prizeBox.style.height="".concat(s+27,"px"),e.innerBox.style.height="".concat(r,"px"),e.bg.style.height="".concat(r-n+.12458*a+27,"px")}return{unfoldList:!t.unfoldList}}))},e}return Object(i.a)(a,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices,a=this.state.notices;return p.a.createElement(p.a.Fragment,null,t&&a&&a.length?p.a.createElement(M,{bullets:a}):null,p.a.createElement("div",{className:"prizes-box",ref:function(t){return e.prizeBox=t}},p.a.createElement("a",{href:"javascript:;",className:"rule-btn",onClick:this.showRules},"\u6d3b\u52a8\u89c4\u5219 >"," "),p.a.createElement("div",{className:"bg",ref:function(t){return e.bg=t}}),p.a.createElement("div",{className:"inner-box",ref:function(t){return e.innerBox=t}},p.a.createElement("ul",{className:"prize-list",ref:function(t){return e.prizeList=t}},this.state.prizes.map((function(e,t){return p.a.createElement("li",{key:t},e.img_name?p.a.createElement("i",{className:"prize-list__image",style:{backgroundImage:"url(".concat(e.img_name,")")}}):p.a.createElement("i",{className:"prize-list__image"}),0!=e.is_captain&&p.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&p.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u4e2a\u5fc5\u4e2d"),e.grant_max?p.a.createElement("div",{className:"bottom-bar"},p.a.createElement("div",{className:"progress-bar"},p.a.createElement("span",{className:"progress",style:{width:"".concat(e.surplus/e.grant_max*100,"%")}})),p.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):p.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))})),p.a.createElement("li",null,p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),p.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?p.a.createElement("div",null,"\u6536\u8d77",p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):p.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),a}(m.Component),A=a(73),P=a(139),z=(a(205),a(1077),function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).state={bulletScreenData:[]},e.initializeBulletScreen=function(){var t=Object(h.a)(e),a=Object(A.a)(Array(19).keys()),n=!1;e.swiper=new P.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var e=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),t.getBulletScreenData().then((function(r){n=!0,e.removeSlide(a),e.appendSlide(t.getSlides(r)),setTimeout((function(){e.autoplay.start(),n=!1}))})))}}})},e.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 ")}))},e.getBulletScreenData=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return f.f.get("".concat(API.home,"/sys/barrage_data")).then((function(a){var n=a.data,r=n.data;if(200===n.code){if(!t)return r;e.setState({bulletScreenData:r},(function(){e.initializeBulletScreen()}))}}))},e}return Object(i.a)(a,[{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 p.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},p.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map((function(e,t){return p.a.createElement("li",{className:"swiper-slide",key:t},p.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),p.a.createElement("span",null,e.user_name," ",e.msg))}))))}}]),a}(m.Component)),T=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){return Object(c.a)(this,a),t.apply(this,arguments)}return Object(i.a)(a,[{key:"render",value:function(){return p.a.createElement(E,{id:"year-treasure",title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},p.a.createElement("div",{style:{textAlign:"center",fontSize:"12px",color:"#FFDC1E",marginTop:"10px"}},"\u9080\u8bf7\u597d\u53cb\u7ec4\u961f\u4e00\u8d77\u5f00\u5b9d\u7bb1\uff0c\u6ee15\u4eba\u540e\u5c06\u968f\u673a\u83b7\u5f97\u4ee5\u4e0b\u5956\u54c1~"),p.a.createElement(x,{showSystemNotices:!0}),p.a.createElement(z,null),p.a.createElement(S,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),p.a.createElement(k,{history:this.props.history}))}}]),a}(m.Component),U=Object(g.g)(T),B=(a(1078),function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).computedStyle=function(){return{top:"".concat(e.props.top,"px"),width:"".concat(e.props.width,"px")}},e.closePopup=function(){e.props.mark&&e.props.closePopup()},e}return Object(i.a)(a,[{key:"render",value:function(){return p.a.createElement("div",{className:"popup__container",onClick:this.closePopup},p.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},p.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:""}),p.a.Children.map(this.props.children,(function(e){return p.a.createElement(p.a.Fragment,null,e)}))))}}]),a}(m.Component)),F=a(23),D=a(404),R=Object(y.b)((function(e){return{user:e.user}}),{setCurrentUser:F.i,startFetchUser:F.j})(r=function(e){Object(l.a)(a,e);var t=Object(u.a)(a);function a(){var e;Object(c.a)(this,a);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).state={removable:0,currentOpenId:0,treasure_stage:0,activity_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/3c56a64bc1.jpeg"},e.loginInfo=function(t){e.setState({userInfoList:t},(function(){e.state.userInfoList.length&&(e.props.startFetchUser(),e.appLogin())}))},e.appLogin=function(){var t=Object(D.a)(new Date,90);e.state.userInfoList.forEach((function(e,a){N.a.set("token",e.token,{expires:t,path:"/",domain:".julyedu.com"}),N.a.set("plat",e.plat,{expires:t,path:"/",domain:".julyedu.com"}),N.a.set("uid",e.uid,{expires:t,path:"/",domain:".julyedu.com"}),N.a.set("uname",e.uname,{expires:t,path:"/",domain:".julyedu.com"}),N.a.set("avatar_file",e.avatar_file,{expires:t,path:"/",domain:".julyedu.com"})})),N.a.get("token")&&N.a.get("uid")&&e.setState({isAppUpdate:!0}),e.props.setCurrentUser(e.transformUser(e.state.userInfoList))},e.transformUser=function(e){var t;return e.forEach((function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}})),t},e.closePopup=function(){e.setState({showMark:!1})},e.getRemovable=function(e,t){},e.getStage=function(){f.f.get("".concat(API.home,"/activity/stage")).then((function(t){var a=t.data,n=a.code,r=a.data,s=a.msg;if(200===n){if(0===Number(r.treasure_stage))return void e.props.history.push("/");e.setState({activity_stage:r.activity_stage,treasure_stage:r.treasure_stage}),r.activity_stage,e.setState({banner:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/f4613ec518.jpeg"})}else o.a.info(s,2)}))},e}return Object(i.a)(a,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage(),document.title="\u0041\u0049\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66\u6b63\u4ef7\u8bfe\uff0c\u0032\u0030\u0030\u672c\u7eb8\u8d28\u4e66\u7b49\u5305\u90ae\u9001\uff01\u002d\u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this.state,t=e.banner,a=e.activity_stage,n=e.treasure_stage;return p.a.createElement("div",{className:"year-index"},p.a.createElement("div",{className:"banner-treasure"},p.a.createElement("img",{src:t,alt:""})),1===n&&p.a.createElement(U,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),p.a.createElement(j,{stage:a,treasureStage:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&p.a.createElement(B,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),p.a.createElement("p",{className:"sub__tip"},"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),p.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),p.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"))),this.state.showMark&&p.a.createElement(B,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219"),p.a.createElement("p",{className:"sub__rule"},"1. \u6d3b\u52a8\u671f\u95f4\uff083\u670826\u65e5-3\u670831\u65e5\uff09\u53ef\u968f\u65f6\u53c2\u4e0e\u5f00\u5b9d\u7bb1\uff1b",p.a.createElement("br",null),"2. \u5f53\u524d\u961f\u4f0d\u6ee1\u5458\u540e\u53ef\u7ee7\u7eed\u521b\u5efa\u65b0\u961f\u4f0d\uff1b",p.a.createElement("br",null),"3. \u6bcf\u4eba\u6709\u4e00\u6b21\u673a\u4f1a\u52a0\u5165\u597d\u53cb\u7684\u961f\u4f0d\uff1b",p.a.createElement("br",null),"4. \u961f\u4f0d\u6ee1\u5458\u540e\u6240\u6709\u6210\u5458\u5747\u53ef\u968f\u673a\u83b7\u5f97\u5b9d\u7bb1\u5185\u5956\u54c1\uff0c\u961f\u957f\u5956\u52b1\u66f4\u4e30\u539a\u54e6~",p.a.createElement("br",null),"5. \u4ee3\u91d1\u5238\u3001\u8bfe\u7a0b\u7b49\u865a\u62df\u5956\u54c1\u5c06\u76f4\u63a5\u53d1\u653e\u81f3\u8d26\u6237\uff0c\u5b9e\u7269\u5956\u54c1\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4\uff1b",p.a.createElement("br",null),"6. \u73b0\u91d1\u53ef\u63d0\u73b0\uff1a\u6211\u7684 \u2192 \u8d5a\u5956\u5b66\u91d1 \u2192 \u63d0\u73b0\u3002"))),p.a.createElement("div",{className:"btm-rule"},"* \u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709 *"))}}]),a}(m.Component))||r;t.default=R}}]);
//# sourceMappingURL=treasure-box-home.4ca21867.chunk.js.map //# sourceMappingURL=treasure-box-home.4ca21867.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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