Commit b767a24d by zhanghaozhe

Merge branch '00' of gitlab.julyedu.com:baiguangyao/mr-julyedu into 00

parents c87f6860 1e08b409
.common_container{margin-bottom:9.333333vw}.common_container .title_container{width:100%;display:flex;flex-direction:column;justify-content:center;align-content:center}.common_container .title_container i{width:61.333333vw;height:.533333vw;background:-webkit-gradient(linear,left top,right top,from(rgba(254,228,29,0)),color-stop(48%,rgba(254,228,29,.98)),to(rgba(254,228,29,0)));background:-webkit-linear-gradient(left,rgba(254,228,29,0),rgba(254,228,29,.98) 48%,rgba(254,228,29,0));background:linear-gradient(90deg,rgba(254,228,29,0),rgba(254,228,29,.98) 48%,rgba(254,228,29,0));margin:0 auto}.common_container .title_container p{font-size:4.8vw;line-height:4.8vw;font-weight:500;color:#fee41d;margin:2.133333vw auto;background:-webkit-gradient(linear,left bottom,left top,color-stop(23.90137%,#fee41d),color-stop(50.14648%,#fc0),color-stop(75%,#fee41d));background:-webkit-linear-gradient(bottom,#fee41d 23.90137%,#fc0 50.14648%,#fee41d 75%);background:linear-gradient(0deg,#fee41d 23.90137%,#fc0 50.14648%,#fee41d 75%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.common_container .container_top{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_top_bj.png) 50% no-repeat;background-size:100% 100%;width:100%;height:4.8vw}.common_container .container_bottom{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_bottom_bj.png) 50% no-repeat;background-size:100% 100%;width:100%;height:5.866667vw}.common_container .container_content{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_middle_bj.png);background-size:contain;width:100%;min-height:6.666667vw;padding:1.333333vw 5.333333vw}.prizes-box,.prizes-box .bg,.prizes-box .inner-box,.trans-height{-webkit-transition:height .25s ease-in-out;transition:height .25s ease-in-out}.prizes-box{position:relative;height:92.8vw;background-size:100% auto}.prizes-box .show-more{position:absolute;bottom:8vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:33.333333vw;height:7.2vw;background:#ff2121;border:.533333vw solid #ff2121;border-radius:1.333333vw 1.333333vw 0 0;font-size:3.466667vw;color:#fff;line-height:7.2vw;text-align:center;z-index:20}.prizes-box .show-more img{margin-left:1.2vw;width:2.68vw}.prizes-box .rule-btn{position:absolute;top:8.666667vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#ffdd1d;font-size:3.2vw;text-decoration:underline}.prizes-box:before{content:"";display:block;width:100%;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-head.png) no-repeat;background-size:contain;height:39.6vw}.prizes-box:after{content:"";display:block;width:100%;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-footer.png) no-repeat;background-size:contain;height:22.666667vw}.prizes-box .bg{width:100%;height:30.666667vw;overflow:hidden;z-index:10;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-bg.png) repeat-y;background-size:100% auto}.prizes-box .inner-box{position:absolute;top:34.666667vw;left:0;width:100%;z-index:20;height:49.866667vw;overflow:hidden}.prizes-box .prize-list{display:flex;flex-flow:wrap;padding:0 15.2vw}.prizes-box .prize-list li:nth-of-type(2n){margin-right:0}.prizes-box .prize-list li{position:relative;width:33.333333vw;height:26.4vw;background:#fff;border:.533333vw solid #ffe300;box-shadow:0 .533333vw 1.066667vw 0 rgba(0,0,0,.1);border-radius:1px;margin-right:2.8vw;margin-bottom:1.733333vw}.prizes-box .prize-list li img{width:24vw;object-fit:contain}.prizes-box .prize-list .top-tag{position:absolute;top:0;right:0;border-radius:0 0 0 1.066667vw;font-size:3.2vw;line-height:4.266667vw;text-align:center;padding:0 1.066667vw;color:#fff}.prizes-box .prize-list .captain{background:-webkit-gradient(linear,right top,left top,from(#ff5d00),to(#ff1700));background:-webkit-linear-gradient(right,#ff5d00,#ff1700);background:linear-gradient(270deg,#ff5d00,#ff1700)}.prizes-box .prize-list .stage{background:-webkit-gradient(linear,right top,left top,from(#004bfb),to(#009cff));background:-webkit-linear-gradient(right,#004bfb,#009cff);background:linear-gradient(-90deg,#004bfb,#009cff)}.prizes-box .prize-list .no-limit{right:0;padding:1.066667vw;border-radius:1.6vw 0 0 0}.prizes-box .prize-list .bottom-bar,.prizes-box .prize-list .no-limit{position:absolute;bottom:0;background:rgba(0,0,0,.8);font-size:3.2vw;color:#fff}.prizes-box .prize-list .bottom-bar{left:0;width:100%;padding:0 1.333333vw;display:flex;justify-content:space-between;align-items:center}.prizes-box .prize-list .bottom-bar .progress-bar{position:relative;flex:0 1 12vw;height:.533333vw;background:#fff}.prizes-box .prize-list .bottom-bar .progress-bar .progress{position:absolute;right:0;top:0;width:80%;height:100%;background:-webkit-gradient(linear,right top,left top,from(#ff8c00),to(#ff1700));background:-webkit-linear-gradient(right,#ff8c00,#ff1700);background:linear-gradient(-90deg,#ff8c00,#ff1700);border-radius:1px}.common_container .container_content .prizes-box{margin:0 -5.333333vw}#user-bullet-screen,.bullet-screen{width:87.733333vw;height:8vw;margin:0 auto 7.466667vw;background:rgba(0,0,0,.6);border-radius:4vw;line-height:8vw;text-align:left}#user-bullet-screen li,.bullet-screen li{height:100%;padding:.533333vw;line-height:6.933333vw}#user-bullet-screen .avatar,.bullet-screen .avatar{width:6.933333vw;height:6.933333vw;border-radius:50%;margin-right:1.866667vw;vertical-align:middle}#user-bullet-screen span:first-of-type,.bullet-screen span:first-of-type{margin-right:1.333333vw}#user-bullet-screen span,.bullet-screen span{font-size:3.2vw;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.year-index-course .course-box{display:flex;justify-content:space-between;flex-wrap:wrap}.year-index-course .course-box .course-container{width:42.133333vw;margin:4vw 0 0;text-align:center;position:relative}.year-index-course .course-box .group-num{width:17.6vw;height:4.266667vw;position:absolute;left:2.666667vw;top:2.666667vw;line-height:4.266667vw;background:#ca161c;opacity:.8;border-radius:1px;font-size:3.2vw;color:#fff;text-align:center}.year-index-course .course-box .coupon-course__footer .course-title{padding-left:2.666667vw;font-size:4vw;color:#333;font-weight:500;margin-top:1.866667vw}.year-index-course .course-box .coupon-course__footer .btn{display:inline-block;width:36.8vw;height:6.4vw;text-align:center;line-height:6.4vw;border-radius:.533333vw;font-size:3.2vw;outline:none;border:none;letter-spacing:1px}.year-index-course .course-box .coupon-course__footer .big-course{background-color:#fee41d;border:1px solid #090f08;color:#090f08;margin-top:2.666667vw}.year-index-course .course-box .coupon-course__footer .to-study{background-color:#09f;color:#fff;position:absolute;left:2.666667vw;bottom:2.666667vw}.year-index-course .course-box .coupon-course__footer .free-study{background:-webkit-gradient(linear,right top,left top,from(#eb1612),to(#f92927));background:-webkit-linear-gradient(right,#eb1612,#f92927);background:linear-gradient(-90deg,#eb1612,#f92927);color:#fff;margin-top:2.666667vw}.year-index-course .course-box .coupon-course__footer .free-course-num{font-size:3.2vw;color:#070f08;margin-top:1.866667vw;letter-spacing:1px}.year-index-course .course-box .coupon-course__footer .free-course-num span{font-size:3.733333vw;color:#ff0002}.year-index-course .course-box .type{text-align:left;padding-left:1.866667vw;margin-top:.8vw}.year-index-course .course-box .type .tag{height:3.733333vw;color:#fff}.year-index-course .course-box .type .tag,.year-index-course .course-box .type .time{display:inline-block;padding:0 1.6vw;line-height:4vw;text-align:center;font-size:3.2vw;position:relative;z-index:0}.year-index-course .course-box .type .time{height:4vw;margin-left:1.333333vw;color:#555}.year-index-course .course-box .type .time:before{background-color:#e6e6e6}.year-index-course .course-box .type .tag:before,.year-index-course .course-box .type .time:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transform:skewX(-20deg);transform:skewX(-20deg);z-index:-1}.year-index-course .course-box .type .tag:before{background-color:#ff0002}.year-index-course .course-box .price{text-align:left;padding-left:1.333333vw;margin-top:.8vw;color:#ff0002;font-size:3.2vw}.year-index-course .course-box .price .new-price{font-size:4.8vw}.year-index-course .course-box .price .old-price{font-size:3.2vw;color:#666;margin-left:2.133333vw}.year-index-course .course-box .status{text-align:left;padding-left:1.333333vw;position:absolute;bottom:2.666667vw}.year-index-course .course-box .status .status-btn{display:inline-block;height:5.866667vw;line-height:5.866667vw;border-radius:.533333vw;text-align:center;font-size:3.2vw;color:#fff}.year-index-course .course-box .status .to-buy{width:14.666667vw;background-color:#ff8080}.year-index-course .course-box .status .add-wish,.year-index-course .course-box .status .add-wish-success{width:23.466667vw;margin-left:1.333333vw;outline:none;color:#ff0002;background-color:#fff;border:1px solid #ff0002}.year-index-course .course-box .status .add-wish-success img,.year-index-course .course-box .status .add-wish img{width:3.2vw;height:2.933333vw;margin-right:.533333vw;position:relative;top:1px}.year-index-course .course-box .status .add-wish-success{color:#fff;background:-webkit-gradient(linear,left top,right top,from(#eb1612),to(#f92927));background:-webkit-linear-gradient(left,#eb1612,#f92927);background:linear-gradient(90deg,#eb1612,#f92927)}.year-index-course .bigcourse .course-container{height:41.6vw}.year-index-course .freecourse .course-container{height:47.2vw}.year-index-course .groupcourse .course-container{height:52vw}.year-index-course .ai-course__subtitle{width:19.466667vw;height:6.4vw;margin:4vw auto 0;border-radius:3.2vw;font-size:3.733333vw;font-weight:500;color:#070f08;text-align:center;line-height:5.866667vw;letter-spacing:.533333vw;background-color:#ffe300;border:1px solid #070f08}.year-index-course .more-button{display:block;width:20vw;height:6.933333vw;margin:4vw auto 1.333333vw;padding:0;border-radius:3.2vw;font-size:3.2vw;font-weight:400;color:#fff;line-height:6.933333vw;cursor:pointer;outline:none;background-color:#0f6237;border:none;letter-spacing:1px}.year-index-course .sub__code_container{padding:5.333333vw}.year-index-course .save-image{display:block;width:35.466667vw;height:8vw;margin:5.333333vw auto 0;background:#5327fa;border-radius:4vw;font-size:3.733333vw;color:#fff;-webkit-appearance:none;outline:0;border:none}.year-index-course .nav-right{width:26.666667vw;height:33.333333vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/sd_fc_bj.png);background-repeat:no-repeat;background-size:cover;position:fixed;top:50%;right:0;margin-top:-15.2vw;z-index:22}.year-index-course .nav-right .nav-right__link{display:block;position:relative;font-size:3.2vw;font-weight:500;color:#fff;text-align:center;top:12.533333vw;line-height:6.666667vw}.year-index-course .nav-right .nav-right__number{position:absolute;top:-1.333333vw;right:1.333333vw;padding:0 1.333333vw;border:1px solid #f7d067;border-radius:1.866667vw 1.866667vw 1.866667vw 0;font-size:3.2vw;font-style:normal;color:#fee41d;background-color:#ff4f24;height:4.266667vw;line-height:3.733333vw}.course-container{width:44.8vw;margin:0 1.066667vw 4vw;border-radius:.533333vw;background-color:#fff}.course__cover{height:28.8vw;padding:1.066667vw 1.066667vw 0;overflow:hidden}.course__cover img{display:block;width:100%;height:100%}.popup__container{position:fixed;left:0;top:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);z-index:99}.popup__container .content__container{width:85.333333vw;min-height:64vw;border-radius:1.333333vw;background:#fff;top:42.666667vw}.popup__container .content__container,.popup__container .content__container .close__btn{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.popup__container .content__container .close__btn{width:8.8vw;height:8.8vw;bottom:-15.2vw}
/*# sourceMappingURL=2.576ba7b8.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/commonContainer/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/prizes/prizes.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/user-bullet-screen/bullet-screen.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/preheat/YearCourse/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/blessingPreheat/courseItem/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/commonPopup/index.scss"],"names":[],"mappings":"AAmGA,kBACE,wBAAmB,CADrB,mCAGI,UAAA,CACA,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,oBAAqB,CAPzB,qCASM,iBAAA,CACA,gBAAA,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CC7SvB,kBACE,YAAA,CAEA,uBAAA,CACA,uBAAA,CACA,qBAAsB,CAGxB,eACE,aAAA,CACA,+BAAA,CACA,eAAgB,CAHlB,mBAOI,aAAA,CACA,UAAA,CACA,WAAY,CCjBhB,kBACE,cAAA,CACA,MAAA,CACA,KAAA,CACA,WAAA,CACA,YAAA,CACA,yBAAA,CACA,UAAW,CAPb,sCAUI,iBAAA,CACA,eAAA,CACA,wBAAA,CACA,eAAA,CAIA,eAAU,CAjBd,wFAcI,iBAAA,CACA,QAAA,CACA,kCAAA,CAAA,0BAUA,CA1BJ,kDAuBM,WAAA,CACA,YAAA,CACA,cACF","file":"2.576ba7b8.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.common_container {\n margin-bottom: 35px; }\n .common_container .title_container {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-content: center; }\n .common_container .title_container i {\n width: 230px;\n height: 2px;\n margin: auto;\n background: linear-gradient(90deg, rgba(254, 228, 29, 0) 0%, rgba(254, 228, 29, 0.98) 48%, rgba(254, 228, 29, 0) 100%);\n margin: 0 auto; }\n .common_container .title_container p {\n font-size: 18px;\n line-height: 18px;\n font-weight: 500;\n color: #fee41d;\n margin: 8px auto;\n background: linear-gradient(0deg, #fee41d 23.90137%, #ffcc00 50.14648%, #fee41d 75%);\n background-clip: text;\n -webkit-text-fill-color: transparent; }\n .common_container .container_top {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_top_bj.png\") center center no-repeat;\n background-size: 100% 100%;\n width: 100%;\n height: 18px; }\n .common_container .container_bottom {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_bottom_bj.png\") center center no-repeat;\n background-size: 100% 100%;\n width: 100%;\n height: 22px; }\n .common_container .container_content {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_middle_bj.png\");\n background-size: contain;\n width: 100%;\n min-height: 25px;\n padding: 5px 20px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.trans-height, .prizes-box, .prizes-box .bg, .prizes-box .inner-box {\n transition: height .25s ease-in-out; }\n\n.prizes-box {\n position: relative;\n height: 348px;\n background-size: 100% auto; }\n .prizes-box .show-more {\n position: absolute;\n bottom: 30px;\n left: 50%;\n transform: translateX(-50%);\n width: 125px;\n height: 27px;\n background: #FF2121;\n border: 2px solid #ff2121;\n border-radius: 5px 5px 0 0;\n font-size: 13px;\n color: #fff;\n line-height: 27px;\n text-align: center;\n z-index: 20; }\n .prizes-box .show-more img {\n margin-left: 4.5px;\n width: 10.05px; }\n .prizes-box .rule-btn {\n position: absolute;\n top: 32.5px;\n left: 50%;\n transform: translateX(-50%);\n color: #FFDD1D;\n font-size: 12px;\n text-decoration: underline; }\n .prizes-box::before {\n content: '';\n display: block;\n width: 100%;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-head.png\") no-repeat;\n background-size: contain;\n height: 148.5px; }\n .prizes-box::after {\n content: '';\n display: block;\n width: 100%;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-footer.png\") no-repeat;\n background-size: contain;\n height: 85px; }\n .prizes-box .bg {\n width: 100%;\n height: 115px;\n overflow: hidden;\n z-index: 10;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-bg.png\") repeat-y;\n background-size: 100% auto; }\n .prizes-box .inner-box {\n position: absolute;\n top: 130px;\n left: 0;\n width: 100%;\n z-index: 20;\n height: 187px;\n overflow: hidden; }\n .prizes-box .prize-list {\n display: flex;\n flex-flow: wrap;\n padding: 0 57px; }\n .prizes-box .prize-list li:nth-of-type(2n) {\n margin-right: 0; }\n .prizes-box .prize-list li {\n position: relative;\n width: 125px;\n height: 99px;\n background: white;\n border: 2px solid #ffe300;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n border-radius: 1px;\n margin-right: 10.5px;\n margin-bottom: 6.5px; }\n .prizes-box .prize-list li img {\n width: 90px;\n object-fit: contain; }\n .prizes-box .prize-list .top-tag {\n position: absolute;\n top: 0;\n right: 0;\n border-radius: 0 0 0 4px;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n padding: 0 4px;\n color: #fff; }\n .prizes-box .prize-list .captain {\n background: linear-gradient(270deg, #ff5d00 0%, #ff1700 100%); }\n .prizes-box .prize-list .stage {\n background: linear-gradient(-90deg, #004bfb 0%, #009cff 100%); }\n .prizes-box .prize-list .no-limit {\n position: absolute;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n color: #fff;\n padding: 4px;\n border-radius: 6px 0 0 0; }\n .prizes-box .prize-list .bottom-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n padding: 0 5px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n color: #fff; }\n .prizes-box .prize-list .bottom-bar .progress-bar {\n position: relative;\n flex: 0 1 45px;\n height: 2px;\n background: #fff; }\n .prizes-box .prize-list .bottom-bar .progress-bar .progress {\n position: absolute;\n right: 0;\n top: 0;\n width: 80%;\n height: 100%;\n background: linear-gradient(-90deg, darkorange 0%, #ff1700 100%);\n border-radius: 1px; }\n\n.common_container .container_content .prizes-box {\n margin: 0 -20px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.bullet-screen, #user-bullet-screen {\n width: 329px;\n height: 30px;\n margin: 0 auto 28px;\n background: rgba(0, 0, 0, 0.6);\n border-radius: 15px;\n line-height: 30px;\n text-align: left; }\n .bullet-screen li, #user-bullet-screen li {\n height: 100%;\n padding: 2px;\n line-height: 26px; }\n .bullet-screen .avatar, #user-bullet-screen .avatar {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n margin-right: 7px;\n vertical-align: middle; }\n .bullet-screen span:nth-of-type(1), #user-bullet-screen span:nth-of-type(1) {\n margin-right: 5px; }\n .bullet-screen span, #user-bullet-screen span {\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.year-index-course .course-box {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap; }\n .year-index-course .course-box .course-container {\n width: 158px;\n margin: 15px 0 0 0;\n text-align: center;\n position: relative; }\n .year-index-course .course-box .group-num {\n width: 66px;\n height: 16px;\n position: absolute;\n left: 10px;\n top: 10px;\n line-height: 16px;\n background: #CA161C;\n opacity: 0.8;\n border-radius: 1px;\n font-size: 12px;\n color: #fff;\n text-align: center; }\n .year-index-course .course-box .coupon-course__footer .course-title {\n padding-left: 10px;\n font-size: 15px;\n color: #333;\n font-weight: 500;\n margin-top: 7px; }\n .year-index-course .course-box .coupon-course__footer .btn {\n display: inline-block;\n width: 138px;\n height: 24px;\n text-align: center;\n line-height: 24px;\n border-radius: 2px;\n font-size: 12px;\n outline: none;\n border: none;\n letter-spacing: 1px; }\n .year-index-course .course-box .coupon-course__footer .big-course {\n background-color: #FEE41D;\n border: 1px solid #090F08;\n color: #090F08;\n margin-top: 10px; }\n .year-index-course .course-box .coupon-course__footer .to-study {\n background-color: #09f;\n color: #fff;\n position: absolute;\n left: 10px;\n bottom: 10px; }\n .year-index-course .course-box .coupon-course__footer .free-study {\n background: linear-gradient(-90deg, #EB1612 0%, #F92927 100%);\n color: #fff;\n margin-top: 10px; }\n .year-index-course .course-box .coupon-course__footer .free-course-num {\n font-size: 12px;\n color: #070F08;\n margin-top: 7px;\n letter-spacing: 1px; }\n .year-index-course .course-box .coupon-course__footer .free-course-num span {\n font-size: 14px;\n color: #FF0002; }\n .year-index-course .course-box .type {\n text-align: left;\n padding-left: 7px;\n margin-top: 3px; }\n .year-index-course .course-box .type .tag {\n display: inline-block;\n padding: 0 6px;\n height: 14px;\n line-height: 15px;\n text-align: center;\n font-size: 12px;\n color: #FFF;\n position: relative;\n z-index: 0; }\n .year-index-course .course-box .type .time {\n display: inline-block;\n height: 15px;\n line-height: 15px;\n padding: 0 6px;\n margin-left: 5px;\n position: relative;\n font-size: 12px;\n color: #555;\n text-align: center;\n z-index: 0; }\n .year-index-course .course-box .type .time:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #E6E6E6;\n transform: skewX(-20deg);\n z-index: -1; }\n .year-index-course .course-box .type .tag:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #FF0002;\n transform: skewX(-20deg);\n z-index: -1; }\n .year-index-course .course-box .price {\n text-align: left;\n padding-left: 5px;\n margin-top: 3px;\n color: #FF0002;\n font-size: 12px; }\n .year-index-course .course-box .price .new-price {\n font-size: 18px; }\n .year-index-course .course-box .price .old-price {\n font-size: 12px;\n color: #666;\n margin-left: 8px; }\n .year-index-course .course-box .status {\n text-align: left;\n padding-left: 5px;\n position: absolute;\n bottom: 10px; }\n .year-index-course .course-box .status .status-btn {\n display: inline-block;\n height: 22px;\n line-height: 22px;\n border-radius: 2px;\n text-align: center;\n font-size: 12px;\n color: #fff; }\n .year-index-course .course-box .status .to-buy {\n width: 55px;\n background-color: #FF8080; }\n .year-index-course .course-box .status .add-wish, .year-index-course .course-box .status .add-wish-success {\n width: 88px;\n margin-left: 5px;\n outline: none;\n color: #FF0002;\n background-color: #fff;\n border: 1px solid #FF0002; }\n .year-index-course .course-box .status .add-wish img, .year-index-course .course-box .status .add-wish-success img {\n width: 12px;\n height: 11px;\n margin-right: 2px;\n position: relative;\n top: 1px; }\n .year-index-course .course-box .status .add-wish-success {\n color: #fff;\n background: linear-gradient(90deg, #eb1612 0%, #f92927 100%); }\n\n.year-index-course .bigcourse .course-container {\n height: 156px; }\n\n.year-index-course .freecourse .course-container {\n height: 177px; }\n\n.year-index-course .groupcourse .course-container {\n height: 195px; }\n\n.year-index-course .ai-course__subtitle {\n width: 73px;\n height: 24px;\n margin: 15px auto 0;\n border-radius: 12px;\n font-size: 14px;\n font-weight: 500;\n color: #070F08;\n text-align: center;\n line-height: 22px;\n letter-spacing: 2px;\n background-color: #FFE300;\n border: 1px solid #070F08; }\n\n.year-index-course .more-button {\n display: block;\n width: 75px;\n height: 26px;\n margin: 15px auto 5px;\n padding: 0;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 400;\n color: #fff;\n line-height: 26px;\n cursor: pointer;\n outline: none;\n background-color: #0F6237;\n border: none;\n letter-spacing: 1px; }\n\n.year-index-course .sub__code_container {\n padding: 20px; }\n\n.year-index-course .save-image {\n display: block;\n width: 133px;\n height: 30px;\n margin: 20px auto 0 auto;\n background: #5327fa;\n border-radius: 15px;\n font-size: 14px;\n color: #fff;\n -webkit-appearance: none;\n outline: 0;\n border: none; }\n\n.year-index-course .nav-right {\n width: 100px;\n height: 125px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/sd_fc_bj.png\");\n background-repeat: no-repeat;\n background-size: cover;\n position: fixed;\n top: 50%;\n right: 0;\n margin-top: -57px;\n z-index: 22; }\n .year-index-course .nav-right .nav-right__link {\n display: block;\n position: relative;\n font-size: 12px;\n font-weight: 500;\n color: #fff;\n text-align: center;\n top: 47px;\n line-height: 25px; }\n .year-index-course .nav-right .nav-right__number {\n position: absolute;\n top: -5px;\n right: 5px;\n padding: 0 5px;\n border: 1px solid #F7D067;\n border-radius: 7px 7px 7px 0px;\n font-size: 12px;\n font-style: normal;\n color: #FEE41D;\n background-color: #FF4F24;\n height: 16px;\n line-height: 14px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-container {\n width: 168px;\n margin: 0 4px 15px;\n border-radius: 2px;\n background-color: #fff; }\n\n.course__cover {\n height: 108px;\n padding: 4px 4px 0;\n overflow: hidden; }\n .course__cover img {\n display: block;\n width: 100%;\n height: 100%; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.popup__container {\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.6);\n z-index: 99; }\n .popup__container .content__container {\n width: 320px;\n min-height: 240px;\n border-radius: 5px;\n background: white;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n top: 160px; }\n .popup__container .content__container .close__btn {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n width: 33px;\n height: 33px;\n bottom: -57px; }\n"]}
\ No newline at end of file
.common_container{margin-bottom:9.333333vw}.common_container .title_container{width:100%;display:flex;flex-direction:column;justify-content:center;align-content:center}.common_container .title_container i{width:61.333333vw;height:.533333vw;background:-webkit-gradient(linear,left top,right top,from(rgba(254,228,29,0)),color-stop(48%,rgba(254,228,29,.98)),to(rgba(254,228,29,0)));background:-webkit-linear-gradient(left,rgba(254,228,29,0),rgba(254,228,29,.98) 48%,rgba(254,228,29,0));background:linear-gradient(90deg,rgba(254,228,29,0),rgba(254,228,29,.98) 48%,rgba(254,228,29,0));margin:0 auto}.common_container .title_container p{font-size:4.8vw;line-height:4.8vw;font-weight:500;color:#fee41d;margin:2.133333vw auto;background:-webkit-gradient(linear,left bottom,left top,color-stop(23.90137%,#fee41d),color-stop(50.14648%,#fc0),color-stop(75%,#fee41d));background:-webkit-linear-gradient(bottom,#fee41d 23.90137%,#fc0 50.14648%,#fee41d 75%);background:linear-gradient(0deg,#fee41d 23.90137%,#fc0 50.14648%,#fee41d 75%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.common_container .container_top{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_top_bj.png) 50% no-repeat;background-size:100% 100%;width:100%;height:4.8vw}.common_container .container_bottom{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_bottom_bj.png) 50% no-repeat;background-size:100% 100%;width:100%;height:5.866667vw}.common_container .container_content{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_middle_bj.png);background-size:contain;width:100%;min-height:6.666667vw;padding:1.333333vw 5.333333vw}.prizes-box,.prizes-box .bg,.prizes-box .inner-box,.trans-height{-webkit-transition:height .25s ease-in-out;transition:height .25s ease-in-out}.prizes-box{position:relative;height:92.8vw;background-size:100% auto}.prizes-box .show-more{position:absolute;bottom:8vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:33.333333vw;height:7.2vw;background:#ff2121;border:.533333vw solid #ff2121;border-radius:1.333333vw 1.333333vw 0 0;font-size:3.466667vw;color:#fff;line-height:7.2vw;text-align:center;z-index:20}.prizes-box .show-more img{margin-left:1.2vw;width:2.68vw}.prizes-box .rule-btn{position:absolute;top:8.666667vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#ffdd1d;font-size:3.2vw;text-decoration:underline}.prizes-box:before{content:"";display:block;width:100%;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-head.png) no-repeat;background-size:contain;height:39.6vw}.prizes-box:after{content:"";display:block;width:100%;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-footer.png) no-repeat;background-size:contain;height:22.666667vw}.prizes-box .bg{width:100%;height:30.666667vw;overflow:hidden;z-index:10;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-bg.png) repeat-y;background-size:100% auto}.prizes-box .inner-box{position:absolute;top:34.666667vw;left:0;width:100%;z-index:20;height:49.866667vw;overflow:hidden}.prizes-box .prize-list{display:flex;flex-flow:wrap;padding:0 15.2vw}.prizes-box .prize-list li:nth-of-type(2n){margin-right:0}.prizes-box .prize-list li{position:relative;width:33.333333vw;height:26.4vw;background:#fff;border:.533333vw solid #ffe300;box-shadow:0 .533333vw 1.066667vw 0 rgba(0,0,0,.1);border-radius:1px;margin-right:2.8vw;margin-bottom:1.733333vw}.prizes-box .prize-list li img{width:24vw;object-fit:contain}.prizes-box .prize-list .top-tag{position:absolute;top:0;right:0;border-radius:0 0 0 1.066667vw;font-size:3.2vw;line-height:4.266667vw;text-align:center;padding:0 1.066667vw;color:#fff}.prizes-box .prize-list .captain{background:-webkit-gradient(linear,right top,left top,from(#ff5d00),to(#ff1700));background:-webkit-linear-gradient(right,#ff5d00,#ff1700);background:linear-gradient(270deg,#ff5d00,#ff1700)}.prizes-box .prize-list .stage{background:-webkit-gradient(linear,right top,left top,from(#004bfb),to(#009cff));background:-webkit-linear-gradient(right,#004bfb,#009cff);background:linear-gradient(-90deg,#004bfb,#009cff)}.prizes-box .prize-list .no-limit{right:0;padding:1.066667vw;border-radius:1.6vw 0 0 0}.prizes-box .prize-list .bottom-bar,.prizes-box .prize-list .no-limit{position:absolute;bottom:0;background:rgba(0,0,0,.8);font-size:3.2vw;color:#fff}.prizes-box .prize-list .bottom-bar{left:0;width:100%;padding:0 1.333333vw;display:flex;justify-content:space-between;align-items:center}.prizes-box .prize-list .bottom-bar .progress-bar{position:relative;flex:0 1 12vw;height:.533333vw;background:#fff}.prizes-box .prize-list .bottom-bar .progress-bar .progress{position:absolute;right:0;top:0;width:80%;height:100%;background:-webkit-gradient(linear,right top,left top,from(#ff8c00),to(#ff1700));background:-webkit-linear-gradient(right,#ff8c00,#ff1700);background:linear-gradient(-90deg,#ff8c00,#ff1700);border-radius:1px}.common_container .container_content .prizes-box{margin:0 -5.333333vw}#user-bullet-screen,.bullet-screen{width:87.733333vw;height:8vw;margin:0 auto 7.466667vw;background:rgba(0,0,0,.6);border-radius:4vw;line-height:8vw;text-align:left}#user-bullet-screen li,.bullet-screen li{height:100%;padding:.533333vw;line-height:6.933333vw;display:flex;align-items:center}#user-bullet-screen .avatar,.bullet-screen .avatar{width:6.933333vw;height:6.933333vw;border-radius:50%;margin-right:1.866667vw;vertical-align:middle}#user-bullet-screen span:first-of-type,.bullet-screen span:first-of-type{margin-right:1.333333vw}#user-bullet-screen span,.bullet-screen span{font-size:3.2vw;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.year-index-course .course-box{display:flex;justify-content:space-between;flex-wrap:wrap}.year-index-course .course-box .course-container{width:42.133333vw;margin:4vw 0 0;text-align:center;position:relative}.year-index-course .course-box .group-num{width:17.6vw;height:4.266667vw;position:absolute;left:2.666667vw;top:2.666667vw;line-height:4.266667vw;background:#ca161c;opacity:.8;border-radius:1px;font-size:3.2vw;color:#fff;text-align:center}.year-index-course .course-box .coupon-course__footer .course-title{padding-left:2.666667vw;font-size:4vw;color:#333;font-weight:500;margin-top:1.866667vw}.year-index-course .course-box .coupon-course__footer .btn{display:inline-block;width:36.8vw;height:6.4vw;text-align:center;line-height:6.4vw;border-radius:.533333vw;font-size:3.2vw;outline:none;border:none;letter-spacing:1px}.year-index-course .course-box .coupon-course__footer .big-course{background-color:#fee41d;border:1px solid #090f08;color:#090f08;margin-top:2.666667vw}.year-index-course .course-box .coupon-course__footer .to-study{background-color:#09f;color:#fff;position:absolute;left:2.666667vw;bottom:2.666667vw}.year-index-course .course-box .coupon-course__footer .free-study{background:-webkit-gradient(linear,right top,left top,from(#eb1612),to(#f92927));background:-webkit-linear-gradient(right,#eb1612,#f92927);background:linear-gradient(-90deg,#eb1612,#f92927);color:#fff;margin-top:2.666667vw}.year-index-course .course-box .coupon-course__footer .free-course-num{font-size:3.2vw;color:#070f08;margin-top:1.866667vw;letter-spacing:1px}.year-index-course .course-box .coupon-course__footer .free-course-num span{font-size:3.733333vw;color:#ff0002}.year-index-course .course-box .type{text-align:left;padding-left:1.866667vw;margin-top:.8vw}.year-index-course .course-box .type .tag{height:3.733333vw;color:#fff}.year-index-course .course-box .type .tag,.year-index-course .course-box .type .time{display:inline-block;padding:0 1.6vw;line-height:4vw;text-align:center;font-size:3.2vw;position:relative;z-index:0}.year-index-course .course-box .type .time{height:4vw;margin-left:1.333333vw;color:#555}.year-index-course .course-box .type .time:before{background-color:#e6e6e6}.year-index-course .course-box .type .tag:before,.year-index-course .course-box .type .time:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transform:skewX(-20deg);transform:skewX(-20deg);z-index:-1}.year-index-course .course-box .type .tag:before{background-color:#ff0002}.year-index-course .course-box .price{text-align:left;padding-left:1.333333vw;margin-top:.8vw;color:#ff0002;font-size:3.2vw}.year-index-course .course-box .price .new-price{font-size:4.8vw}.year-index-course .course-box .price .old-price{font-size:3.2vw;color:#666;margin-left:2.133333vw}.year-index-course .course-box .status{text-align:left;padding-left:1.333333vw;position:absolute;bottom:2.666667vw}.year-index-course .course-box .status .status-btn{display:inline-block;height:5.866667vw;line-height:5.866667vw;border-radius:.533333vw;text-align:center;font-size:3.2vw;color:#fff}.year-index-course .course-box .status .to-buy{width:14.666667vw;background-color:#ff8080}.year-index-course .course-box .status .add-wish,.year-index-course .course-box .status .add-wish-success{width:23.466667vw;margin-left:1.333333vw;outline:none;color:#ff0002;background-color:#fff;border:1px solid #ff0002}.year-index-course .course-box .status .add-wish-success img,.year-index-course .course-box .status .add-wish img{width:3.2vw;height:2.933333vw;margin-right:.533333vw;position:relative;top:1px}.year-index-course .course-box .status .add-wish-success{color:#fff;background:-webkit-gradient(linear,left top,right top,from(#eb1612),to(#f92927));background:-webkit-linear-gradient(left,#eb1612,#f92927);background:linear-gradient(90deg,#eb1612,#f92927)}.year-index-course .bigcourse .course-container{height:41.6vw}.year-index-course .freecourse .course-container{height:47.2vw}.year-index-course .groupcourse .course-container{height:52vw}.year-index-course .ai-course__subtitle{width:19.466667vw;height:6.4vw;margin:4vw auto 0;border-radius:3.2vw;font-size:3.733333vw;font-weight:500;color:#070f08;text-align:center;line-height:5.866667vw;letter-spacing:.533333vw;background-color:#ffe300;border:1px solid #070f08}.year-index-course .more-button{display:block;width:20vw;height:6.933333vw;margin:4vw auto 1.333333vw;padding:0;border-radius:3.2vw;font-size:3.2vw;font-weight:400;color:#fff;line-height:6.933333vw;cursor:pointer;outline:none;background-color:#0f6237;border:none;letter-spacing:1px}.year-index-course .sub__code_container{padding:5.333333vw}.year-index-course .save-image{display:block;width:35.466667vw;height:8vw;margin:5.333333vw auto 0;background:#5327fa;border-radius:4vw;font-size:3.733333vw;color:#fff;-webkit-appearance:none;outline:0;border:none}.year-index-course .nav-right{width:26.666667vw;height:33.333333vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/sd_fc_bj.png);background-repeat:no-repeat;background-size:cover;position:fixed;top:50%;right:0;margin-top:-15.2vw;z-index:22}.year-index-course .nav-right .nav-right__link{display:block;position:relative;font-size:3.2vw;font-weight:500;color:#fff;text-align:center;top:12.533333vw;line-height:6.666667vw}.year-index-course .nav-right .nav-right__number{position:absolute;top:-1.333333vw;right:1.333333vw;padding:0 1.333333vw;border:1px solid #f7d067;border-radius:1.866667vw 1.866667vw 1.866667vw 0;font-size:3.2vw;font-style:normal;color:#fee41d;background-color:#ff4f24;height:4.266667vw;line-height:3.733333vw}.course-container{width:44.8vw;margin:0 1.066667vw 4vw;border-radius:.533333vw;background-color:#fff}.course__cover{height:28.8vw;padding:1.066667vw 1.066667vw 0;overflow:hidden}.course__cover img{display:block;width:100%;height:100%}.popup__container{position:fixed;left:0;top:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);z-index:99}.popup__container .content__container{width:85.333333vw;min-height:64vw;border-radius:1.333333vw;background:#fff;top:42.666667vw}.popup__container .content__container,.popup__container .content__container .close__btn{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.popup__container .content__container .close__btn{width:8.8vw;height:8.8vw;bottom:-15.2vw}
/*# sourceMappingURL=2.d1aebba0.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/commonContainer/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/prizes/prizes.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/user-bullet-screen/bullet-screen.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/preheat/YearCourse/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/blessingPreheat/courseItem/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/commonPopup/index.scss"],"names":[],"mappings":"AAmGA,kBACE,wBAAmB,CADrB,mCAGI,UAAA,CACA,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,oBAAqB,CAPzB,qCASM,iBAAA,CACA,gBAAA,CAEA,2IAAA,CAAA,uGAAA,CAAA,gGAAA,CAMA,aAAc,CAlBpB,qCAqBM,eAAA,CACA,iBAAA,CACA,eAAA,CACA,aAAA,CACA,sBAAA,CAEA,yIAAA,CAAA,uFAAA,CAAA,6EAAA,CAMA,4BAAA,CAAA,oBAAA,CACA,mCAAoC,CAlC1C,iCAsCI,uGAAA,CAEA,yBAAA,CACA,UAAA,CACA,YAAY,CA1ChB,oCA6CI,0GAAA,CAEA,yBAAA,CACA,UAAA,CACA,iBAAY,CAjDhB,qCAoDI,4FAAA,CACA,uBAAA,CACA,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AAA,CAAA,0BAUA,CA1BJ,kDAuBM,WAAA,CACA,YAAA,CACA,cACF","file":"2.d1aebba0.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.common_container {\n margin-bottom: 35px; }\n .common_container .title_container {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-content: center; }\n .common_container .title_container i {\n width: 230px;\n height: 2px;\n margin: auto;\n background: linear-gradient(90deg, rgba(254, 228, 29, 0) 0%, rgba(254, 228, 29, 0.98) 48%, rgba(254, 228, 29, 0) 100%);\n margin: 0 auto; }\n .common_container .title_container p {\n font-size: 18px;\n line-height: 18px;\n font-weight: 500;\n color: #fee41d;\n margin: 8px auto;\n background: linear-gradient(0deg, #fee41d 23.90137%, #ffcc00 50.14648%, #fee41d 75%);\n background-clip: text;\n -webkit-text-fill-color: transparent; }\n .common_container .container_top {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_top_bj.png\") center center no-repeat;\n background-size: 100% 100%;\n width: 100%;\n height: 18px; }\n .common_container .container_bottom {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_bottom_bj.png\") center center no-repeat;\n background-size: 100% 100%;\n width: 100%;\n height: 22px; }\n .common_container .container_content {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_middle_bj.png\");\n background-size: contain;\n width: 100%;\n min-height: 25px;\n padding: 5px 20px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.trans-height, .prizes-box, .prizes-box .bg, .prizes-box .inner-box {\n transition: height .25s ease-in-out; }\n\n.prizes-box {\n position: relative;\n height: 348px;\n background-size: 100% auto; }\n .prizes-box .show-more {\n position: absolute;\n bottom: 30px;\n left: 50%;\n transform: translateX(-50%);\n width: 125px;\n height: 27px;\n background: #FF2121;\n border: 2px solid #ff2121;\n border-radius: 5px 5px 0 0;\n font-size: 13px;\n color: #fff;\n line-height: 27px;\n text-align: center;\n z-index: 20; }\n .prizes-box .show-more img {\n margin-left: 4.5px;\n width: 10.05px; }\n .prizes-box .rule-btn {\n position: absolute;\n top: 32.5px;\n left: 50%;\n transform: translateX(-50%);\n color: #FFDD1D;\n font-size: 12px;\n text-decoration: underline; }\n .prizes-box::before {\n content: '';\n display: block;\n width: 100%;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-head.png\") no-repeat;\n background-size: contain;\n height: 148.5px; }\n .prizes-box::after {\n content: '';\n display: block;\n width: 100%;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-footer.png\") no-repeat;\n background-size: contain;\n height: 85px; }\n .prizes-box .bg {\n width: 100%;\n height: 115px;\n overflow: hidden;\n z-index: 10;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-bg.png\") repeat-y;\n background-size: 100% auto; }\n .prizes-box .inner-box {\n position: absolute;\n top: 130px;\n left: 0;\n width: 100%;\n z-index: 20;\n height: 187px;\n overflow: hidden; }\n .prizes-box .prize-list {\n display: flex;\n flex-flow: wrap;\n padding: 0 57px; }\n .prizes-box .prize-list li:nth-of-type(2n) {\n margin-right: 0; }\n .prizes-box .prize-list li {\n position: relative;\n width: 125px;\n height: 99px;\n background: white;\n border: 2px solid #ffe300;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n border-radius: 1px;\n margin-right: 10.5px;\n margin-bottom: 6.5px; }\n .prizes-box .prize-list li img {\n width: 90px;\n object-fit: contain; }\n .prizes-box .prize-list .top-tag {\n position: absolute;\n top: 0;\n right: 0;\n border-radius: 0 0 0 4px;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n padding: 0 4px;\n color: #fff; }\n .prizes-box .prize-list .captain {\n background: linear-gradient(270deg, #ff5d00 0%, #ff1700 100%); }\n .prizes-box .prize-list .stage {\n background: linear-gradient(-90deg, #004bfb 0%, #009cff 100%); }\n .prizes-box .prize-list .no-limit {\n position: absolute;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n color: #fff;\n padding: 4px;\n border-radius: 6px 0 0 0; }\n .prizes-box .prize-list .bottom-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n padding: 0 5px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n color: #fff; }\n .prizes-box .prize-list .bottom-bar .progress-bar {\n position: relative;\n flex: 0 1 45px;\n height: 2px;\n background: #fff; }\n .prizes-box .prize-list .bottom-bar .progress-bar .progress {\n position: absolute;\n right: 0;\n top: 0;\n width: 80%;\n height: 100%;\n background: linear-gradient(-90deg, darkorange 0%, #ff1700 100%);\n border-radius: 1px; }\n\n.common_container .container_content .prizes-box {\n margin: 0 -20px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.bullet-screen, #user-bullet-screen {\n width: 329px;\n height: 30px;\n margin: 0 auto 28px;\n background: rgba(0, 0, 0, 0.6);\n border-radius: 15px;\n line-height: 30px;\n text-align: left; }\n .bullet-screen li, #user-bullet-screen li {\n height: 100%;\n padding: 2px;\n line-height: 26px;\n display: flex;\n align-items: center; }\n .bullet-screen .avatar, #user-bullet-screen .avatar {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n margin-right: 7px;\n vertical-align: middle; }\n .bullet-screen span:nth-of-type(1), #user-bullet-screen span:nth-of-type(1) {\n margin-right: 5px; }\n .bullet-screen span, #user-bullet-screen span {\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.year-index-course .course-box {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap; }\n .year-index-course .course-box .course-container {\n width: 158px;\n margin: 15px 0 0 0;\n text-align: center;\n position: relative; }\n .year-index-course .course-box .group-num {\n width: 66px;\n height: 16px;\n position: absolute;\n left: 10px;\n top: 10px;\n line-height: 16px;\n background: #CA161C;\n opacity: 0.8;\n border-radius: 1px;\n font-size: 12px;\n color: #fff;\n text-align: center; }\n .year-index-course .course-box .coupon-course__footer .course-title {\n padding-left: 10px;\n font-size: 15px;\n color: #333;\n font-weight: 500;\n margin-top: 7px; }\n .year-index-course .course-box .coupon-course__footer .btn {\n display: inline-block;\n width: 138px;\n height: 24px;\n text-align: center;\n line-height: 24px;\n border-radius: 2px;\n font-size: 12px;\n outline: none;\n border: none;\n letter-spacing: 1px; }\n .year-index-course .course-box .coupon-course__footer .big-course {\n background-color: #FEE41D;\n border: 1px solid #090F08;\n color: #090F08;\n margin-top: 10px; }\n .year-index-course .course-box .coupon-course__footer .to-study {\n background-color: #09f;\n color: #fff;\n position: absolute;\n left: 10px;\n bottom: 10px; }\n .year-index-course .course-box .coupon-course__footer .free-study {\n background: linear-gradient(-90deg, #EB1612 0%, #F92927 100%);\n color: #fff;\n margin-top: 10px; }\n .year-index-course .course-box .coupon-course__footer .free-course-num {\n font-size: 12px;\n color: #070F08;\n margin-top: 7px;\n letter-spacing: 1px; }\n .year-index-course .course-box .coupon-course__footer .free-course-num span {\n font-size: 14px;\n color: #FF0002; }\n .year-index-course .course-box .type {\n text-align: left;\n padding-left: 7px;\n margin-top: 3px; }\n .year-index-course .course-box .type .tag {\n display: inline-block;\n padding: 0 6px;\n height: 14px;\n line-height: 15px;\n text-align: center;\n font-size: 12px;\n color: #FFF;\n position: relative;\n z-index: 0; }\n .year-index-course .course-box .type .time {\n display: inline-block;\n height: 15px;\n line-height: 15px;\n padding: 0 6px;\n margin-left: 5px;\n position: relative;\n font-size: 12px;\n color: #555;\n text-align: center;\n z-index: 0; }\n .year-index-course .course-box .type .time:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #E6E6E6;\n transform: skewX(-20deg);\n z-index: -1; }\n .year-index-course .course-box .type .tag:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #FF0002;\n transform: skewX(-20deg);\n z-index: -1; }\n .year-index-course .course-box .price {\n text-align: left;\n padding-left: 5px;\n margin-top: 3px;\n color: #FF0002;\n font-size: 12px; }\n .year-index-course .course-box .price .new-price {\n font-size: 18px; }\n .year-index-course .course-box .price .old-price {\n font-size: 12px;\n color: #666;\n margin-left: 8px; }\n .year-index-course .course-box .status {\n text-align: left;\n padding-left: 5px;\n position: absolute;\n bottom: 10px; }\n .year-index-course .course-box .status .status-btn {\n display: inline-block;\n height: 22px;\n line-height: 22px;\n border-radius: 2px;\n text-align: center;\n font-size: 12px;\n color: #fff; }\n .year-index-course .course-box .status .to-buy {\n width: 55px;\n background-color: #FF8080; }\n .year-index-course .course-box .status .add-wish, .year-index-course .course-box .status .add-wish-success {\n width: 88px;\n margin-left: 5px;\n outline: none;\n color: #FF0002;\n background-color: #fff;\n border: 1px solid #FF0002; }\n .year-index-course .course-box .status .add-wish img, .year-index-course .course-box .status .add-wish-success img {\n width: 12px;\n height: 11px;\n margin-right: 2px;\n position: relative;\n top: 1px; }\n .year-index-course .course-box .status .add-wish-success {\n color: #fff;\n background: linear-gradient(90deg, #eb1612 0%, #f92927 100%); }\n\n.year-index-course .bigcourse .course-container {\n height: 156px; }\n\n.year-index-course .freecourse .course-container {\n height: 177px; }\n\n.year-index-course .groupcourse .course-container {\n height: 195px; }\n\n.year-index-course .ai-course__subtitle {\n width: 73px;\n height: 24px;\n margin: 15px auto 0;\n border-radius: 12px;\n font-size: 14px;\n font-weight: 500;\n color: #070F08;\n text-align: center;\n line-height: 22px;\n letter-spacing: 2px;\n background-color: #FFE300;\n border: 1px solid #070F08; }\n\n.year-index-course .more-button {\n display: block;\n width: 75px;\n height: 26px;\n margin: 15px auto 5px;\n padding: 0;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 400;\n color: #fff;\n line-height: 26px;\n cursor: pointer;\n outline: none;\n background-color: #0F6237;\n border: none;\n letter-spacing: 1px; }\n\n.year-index-course .sub__code_container {\n padding: 20px; }\n\n.year-index-course .save-image {\n display: block;\n width: 133px;\n height: 30px;\n margin: 20px auto 0 auto;\n background: #5327fa;\n border-radius: 15px;\n font-size: 14px;\n color: #fff;\n -webkit-appearance: none;\n outline: 0;\n border: none; }\n\n.year-index-course .nav-right {\n width: 100px;\n height: 125px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/sd_fc_bj.png\");\n background-repeat: no-repeat;\n background-size: cover;\n position: fixed;\n top: 50%;\n right: 0;\n margin-top: -57px;\n z-index: 22; }\n .year-index-course .nav-right .nav-right__link {\n display: block;\n position: relative;\n font-size: 12px;\n font-weight: 500;\n color: #fff;\n text-align: center;\n top: 47px;\n line-height: 25px; }\n .year-index-course .nav-right .nav-right__number {\n position: absolute;\n top: -5px;\n right: 5px;\n padding: 0 5px;\n border: 1px solid #F7D067;\n border-radius: 7px 7px 7px 0px;\n font-size: 12px;\n font-style: normal;\n color: #FEE41D;\n background-color: #FF4F24;\n height: 16px;\n line-height: 14px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-container {\n width: 168px;\n margin: 0 4px 15px;\n border-radius: 2px;\n background-color: #fff; }\n\n.course__cover {\n height: 108px;\n padding: 4px 4px 0;\n overflow: hidden; }\n .course__cover img {\n display: block;\n width: 100%;\n height: 100%; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.popup__container {\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.6);\n z-index: 99; }\n .popup__container .content__container {\n width: 320px;\n min-height: 240px;\n border-radius: 5px;\n background: white;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n top: 160px; }\n .popup__container .content__container .close__btn {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n width: 33px;\n height: 33px;\n bottom: -57px; }\n"]}
\ No newline at end of file
#system-bullet-screen,#user-bullet-screen,.bullet-screen{width:87.733333vw;height:8vw;margin:0 auto 7.466667vw;background:rgba(0,0,0,.6);border-radius:4vw;line-height:8vw;text-align:left}#system-bullet-screen li,#user-bullet-screen li,.bullet-screen li{height:100%;padding:.533333vw;line-height:6.933333vw}#system-bullet-screen .avatar,#user-bullet-screen .avatar,.bullet-screen .avatar{width:6.933333vw;height:6.933333vw;border-radius:50%;margin-right:1.866667vw;vertical-align:middle}#system-bullet-screen span:first-of-type,#user-bullet-screen span:first-of-type,.bullet-screen span:first-of-type{margin-right:1.333333vw}#system-bullet-screen span,#user-bullet-screen span,.bullet-screen span{font-size:3.2vw;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#system-bullet-screen{overflow:hidden;margin-top:2.933333vw;margin-bottom:4.266667vw;padding-left:.533333vw;display:flex;align-items:center;-webkit-transition:height .1s ease-out;transition:height .1s ease-out}#system-bullet-screen .sys-bullet-screen-swiper-container{height:100%}#system-bullet-screen ul{flex:auto;max-width:78.133333vw}#system-bullet-screen li{overflow:hidden;height:8vw}#system-bullet-screen li span{display:inline-block;white-space:nowrap;line-height:8vw}
/*# sourceMappingURL=system-notices.4513204d.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/user-bullet-screen/bullet-screen.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/system-bullet-screen/system-bullet-screen.scss"],"names":[],"mappings":"AAAA,yDACI,iBAAA,CACA,UAAA,CACA,wBAAA,CACA,yBAAA,CACA,iBAAA,CACA,eAAA,CACA,eAAgB,CAPpB,kEAUQ,WAAA,CACA,iBAAA,CACA,sBAAiB,CAZzB,iFAgBQ,gBAAA,CACA,iBAAA,CACA,iBAAA,CACA,uBAAA,CACA,qBAAsB,CApB9B,kHAwBQ,uBAAiB,CAxBzB,wEA4BQ,eAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAuB,CCqE/B,sBACI,eAAA,CACA,qBAAA,CACA,wBAAA,CACA,sBAAA,CACA,YAAA,CACA,kBAAA,CACA,sCAAA,CAAA,8BAA+B,CAPnC,0DAUQ,WAAY,CAVpB,yBAcQ,SAAA,CACA,qBAAgB,CAfxB,yBAmBQ,eAAA,CACA,UAAY,CApBpB,8BAuBY,oBAAA,CACA,kBAAA,CACA,eAAiB","file":"system-notices.4513204d.chunk.css","sourcesContent":[".bullet-screen{\n width: 329px;\n height: 30px;\n margin: 0 auto 28px;\n background: rgba(0, 0, 0, .6);\n border-radius: 15px;\n line-height: 30px;\n text-align: left;\n\n li {\n height: 100%;\n padding: 2px;\n line-height: 26px;\n }\n\n .avatar {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n margin-right: 7px;\n vertical-align: middle;\n }\n\n & span:nth-of-type(1) {\n margin-right: 5px;\n }\n\n span {\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n}\n#user-bullet-screen {\n @extend .bullet-screen\n}\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.bullet-screen, #user-bullet-screen, #system-bullet-screen {\n width: 329px;\n height: 30px;\n margin: 0 auto 28px;\n background: rgba(0, 0, 0, 0.6);\n border-radius: 15px;\n line-height: 30px;\n text-align: left; }\n .bullet-screen li, #user-bullet-screen li, #system-bullet-screen li {\n height: 100%;\n padding: 2px;\n line-height: 26px; }\n .bullet-screen .avatar, #user-bullet-screen .avatar, #system-bullet-screen .avatar {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n margin-right: 7px;\n vertical-align: middle; }\n .bullet-screen span:nth-of-type(1), #user-bullet-screen span:nth-of-type(1), #system-bullet-screen span:nth-of-type(1) {\n margin-right: 5px; }\n .bullet-screen span, #user-bullet-screen span, #system-bullet-screen span {\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n\n#system-bullet-screen {\n overflow: hidden;\n margin-top: 11px;\n margin-bottom: 16px;\n padding-left: 2px;\n display: flex;\n align-items: center;\n transition: height .1s ease-out; }\n #system-bullet-screen .sys-bullet-screen-swiper-container {\n height: 100%; }\n #system-bullet-screen ul {\n flex: auto;\n max-width: 293px; }\n #system-bullet-screen li {\n overflow: hidden;\n height: 30px; }\n #system-bullet-screen li span {\n display: inline-block;\n white-space: nowrap;\n line-height: 30px; }\n"]}
\ No newline at end of file
#system-bullet-screen,#user-bullet-screen,.bullet-screen{width:87.733333vw;height:8vw;margin:0 auto 7.466667vw;background:rgba(0,0,0,.6);border-radius:4vw;line-height:8vw;text-align:left}#system-bullet-screen li,#user-bullet-screen li,.bullet-screen li{height:100%;padding:.533333vw;line-height:6.933333vw;display:flex;align-items:center}#system-bullet-screen .avatar,#user-bullet-screen .avatar,.bullet-screen .avatar{width:6.933333vw;height:6.933333vw;border-radius:50%;margin-right:1.866667vw;vertical-align:middle}#system-bullet-screen span:first-of-type,#user-bullet-screen span:first-of-type,.bullet-screen span:first-of-type{margin-right:1.333333vw}#system-bullet-screen span,#user-bullet-screen span,.bullet-screen span{font-size:3.2vw;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#system-bullet-screen{overflow:hidden;margin-top:2.933333vw;margin-bottom:4.266667vw;padding-left:.533333vw;display:flex;align-items:center;-webkit-transition:height .1s ease-out;transition:height .1s ease-out}#system-bullet-screen .sys-bullet-screen-swiper-container{height:100%}#system-bullet-screen ul{flex:auto;max-width:78.133333vw}#system-bullet-screen li{overflow:hidden;height:8vw}#system-bullet-screen li span{display:inline-block;white-space:nowrap;line-height:8vw}
/*# sourceMappingURL=system-notices.4eed25b3.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/user-bullet-screen/bullet-screen.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/system-bullet-screen/system-bullet-screen.scss"],"names":[],"mappings":"AAAA,yDACI,iBAAA,CACA,UAAA,CACA,wBAAA,CACA,yBAAA,CACA,iBAAA,CACA,eAAA,CACA,eAAgB,CAPpB,kEAUQ,WAAA,CACA,iBAAA,CACA,sBAAA,CACA,YAAA,CACA,kBAAmB,CAd3B,iFAkBQ,gBAAA,CACA,iBAAA,CACA,iBAAA,CACA,uBAAA,CACA,qBAAsB,CAtB9B,kHA0BQ,uBAAiB,CA1BzB,wEA8BQ,eAAA,CACA,UAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAuB,CCmE/B,sBACI,eAAA,CACA,qBAAA,CACA,wBAAA,CACA,sBAAA,CACA,YAAA,CACA,kBAAA,CACA,sCAAA,CAAA,8BAA+B,CAPnC,0DAUQ,WAAY,CAVpB,yBAcQ,SAAA,CACA,qBAAgB,CAfxB,yBAmBQ,eAAA,CACA,UAAY,CApBpB,8BAuBY,oBAAA,CACA,kBAAA,CACA,eAAiB","file":"system-notices.4eed25b3.chunk.css","sourcesContent":[".bullet-screen{\n width: 329px;\n height: 30px;\n margin: 0 auto 28px;\n background: rgba(0, 0, 0, .6);\n border-radius: 15px;\n line-height: 30px;\n text-align: left;\n\n li {\n height: 100%;\n padding: 2px;\n line-height: 26px;\n display: flex;\n align-items: center;\n }\n\n .avatar {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n margin-right: 7px;\n vertical-align: middle;\n }\n\n & span:nth-of-type(1) {\n margin-right: 5px;\n }\n\n span {\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n}\n#user-bullet-screen {\n @extend .bullet-screen\n}\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.bullet-screen, #user-bullet-screen, #system-bullet-screen {\n width: 329px;\n height: 30px;\n margin: 0 auto 28px;\n background: rgba(0, 0, 0, 0.6);\n border-radius: 15px;\n line-height: 30px;\n text-align: left; }\n .bullet-screen li, #user-bullet-screen li, #system-bullet-screen li {\n height: 100%;\n padding: 2px;\n line-height: 26px;\n display: flex;\n align-items: center; }\n .bullet-screen .avatar, #user-bullet-screen .avatar, #system-bullet-screen .avatar {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n margin-right: 7px;\n vertical-align: middle; }\n .bullet-screen span:nth-of-type(1), #user-bullet-screen span:nth-of-type(1), #system-bullet-screen span:nth-of-type(1) {\n margin-right: 5px; }\n .bullet-screen span, #user-bullet-screen span, #system-bullet-screen span {\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n\n#system-bullet-screen {\n overflow: hidden;\n margin-top: 11px;\n margin-bottom: 16px;\n padding-left: 2px;\n display: flex;\n align-items: center;\n transition: height .1s ease-out; }\n #system-bullet-screen .sys-bullet-screen-swiper-container {\n height: 100%; }\n #system-bullet-screen ul {\n flex: auto;\n max-width: 293px; }\n #system-bullet-screen li {\n overflow: hidden;\n height: 30px; }\n #system-bullet-screen li span {\n display: inline-block;\n white-space: nowrap;\n line-height: 30px; }\n"]}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1230:function(e,t,a){},1231:function(e,t,a){},1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},659:function(e,t,a){"use strict";var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(737),function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(r.a)(t).apply(this,arguments))}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,s=e.id;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(s)}})),this.props.children)}}]),t}(i.Component));t.a=u},660:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(1234),function(e){function t(e){return Object(s.a)(this,t),Object(c.a)(this,Object(r.a)(t).call(this,e))}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.id;return l.a.createElement("div",{className:"common_container",id:e},l.a.createElement("div",{className:"container_top"}),l.a.createElement("div",{className:"container_content"},this.props.title&&l.a.createElement("div",{className:"title_container"},l.a.createElement("i",null),l.a.createElement("p",null,this.props.title),l.a.createElement("i",null)),l.a.Children.map(this.props.children,function(e){return l.a.createElement(l.a.Fragment,null,e)})),l.a.createElement("div",{className:"container_bottom"}))}}]),t}(i.Component))},737:function(e,t,a){},739:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(1235),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).computedStyle=function(){return{top:"".concat(a.props.top,"px"),width:"".concat(a.props.width,"px")}},a.closePopup=function(){a.props.mark&&a.props.closePopup()},a}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"popup__container",onClick:this.closePopup},l.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},l.a.createElement("img",{className:"close__btn",onClick:this.props.closePopup,src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",alt:""}),l.a.Children.map(this.props.children,function(e){return l.a.createElement(l.a.Fragment,null,e)})))}}]),t}(i.Component))},817:function(e,t,a){"use strict";a(41);var s=a(12),n=a.n(s),c=a(5),r=a(7),o=a(6),i=a(8),l=a(9),u=a(0),m=a.n(u),d=a(3),p=(a(1230),a(28)),h=a(14),g=Object(h.a)(function(){return a.e(41).then(a.bind(null,1251))}),f=function(e){function t(){var e,a;Object(c.a)(this,t);for(var s=arguments.length,r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return(a=Object(o.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.state={prizes:[],notices:[],rule:[],unfoldList:!1},a.getPrizes=function(){d.d.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,s=t.code,c=t.data,r=t.msg;200==s?a.setState({prizes:c.prize_data,notices:c.notices,rule:c.rule}):n.a.info(r,2,null,!1)})},a.showRules=function(){Object(p.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:m.a.createElement("div",{dangerouslySetInnerHTML:{__html:a.state.rule}}),closeIcon:a.closeIcon})},a.showMore=function(){a.setState(function(e){if(a.state.unfoldList)a.bg.style=a.innerBox.style=a.prizeBox.style="";else{var t=parseFloat(getComputedStyle(a.prizeBox,":before").getPropertyValue("height")),s=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),n=a.prizeList.scrollHeight,c=t+n-.12458*t-.595*s+s;a.prizeBox.style.height="".concat(c+27,"px"),a.innerBox.style.height="".concat(n,"px"),a.bg.style.height="".concat(n-s+.12458*t+27,"px")}return{unfoldList:!e.unfoldList}})},a}return Object(l.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices;return m.a.createElement(m.a.Fragment,null,t&&m.a.createElement(g,{bullets:this.state.notices}),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},m.a.createElement("img",{src:e.img_name,alt:""}),0!=e.is_captain&&m.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&m.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u6b21\u5fc5\u4e2d"),e.grant_max?m.a.createElement("div",{className:"bottom-bar"},m.a.createElement("div",{className:"progress-bar"},m.a.createElement("span",{className:"progress"})),m.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):m.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))}),m.a.createElement("li",null,m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),m.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?m.a.createElement("div",null,"\u6536\u8d77",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):m.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),t}(u.Component);t.a=f},818:function(e,t,a){"use strict";var s=a(119),n=a(5),c=a(7),r=a(6),o=a(8),i=a(89),l=a(9),u=a(0),m=a.n(u),d=a(3),p=a(162),h=(a(258),a(1231),function(e){function t(){var e,a;Object(n.a)(this,t);for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(l)))).state={bulletScreenData:[]},a.initializeBulletScreen=function(){var e=Object(i.a)(a),t=Object(s.a)(Array(19).keys()),n=!1;a.swiper=new p.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var a=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),e.getBulletScreenData().then(function(s){n=!0,a.removeSlide(t),a.appendSlide(e.getSlides(s)),setTimeout(function(){a.autoplay.start(),n=!1})}))}}})},a.getSlides=function(e){return e.map(function(e){return'\n <li class="swiper-slide">\n <img class="avatar" src="'.concat(e.avatar_file,'" alt="">\n <span>').concat(e.user_name," ").concat(e.msg,"</span>\n </li>\n ")})},a.getBulletScreenData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d.d.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var s=t.data,n=s.data;if(200==s.code){if(!e)return n;a.setState({bulletScreenData:n},function(){a.initializeBulletScreen()})}})},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getBulletScreenData(!0)}},{key:"render",value:function(){var e=this.state.bulletScreenData;return m.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},m.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map(function(e,t){return m.a.createElement("li",{className:"swiper-slide",key:t},m.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),m.a.createElement("span",null,e.user_name," ",e.msg))})))}}]),t}(u.Component));t.a=h},819:function(e,t,a){"use strict";a(41);var s,n=a(12),c=a.n(n),r=a(19),o=a(5),i=a(7),l=a(6),u=a(8),m=a(89),d=a(9),p=a(0),h=a.n(p),g=(a(1233),a(3)),f=a(660),E=a(659),b=a(49),y=a(739),_=a(587),v=a.n(_),N=a(22),j=Object(N.b)(function(e){return{user:e.user}})(s=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(l.a)(this,Object(u.a)(t).call(this,e))).getLength=function(){var e=Object(m.a)(a);g.d.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,s=a.code,n=a.data;200==s&&e.setState({sum:n.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;g.d.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var s=t.data,n=s.code,c=s.data;200===n&&a.setState({bigcourse:Object.assign({},e,{isMore:c.length>4,course:c.length>4?c.filter(function(e,t){return t<4}):c,courseList:c})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;g.d.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var s=t.data,n=s.errno,c=s.data;200===n&&a.setState({freecourse:Object.assign({},e,{isMore:c.course_info.length>4,course:c.course_info.length>4?c.course_info.filter(function(e,t){return t<4}):c.course_info,courseList:c.course_info})})})},a.fetchGroupCourse=function(){var e=a.state.groupcourse;g.d.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var s=t.data,n=s.code,c=s.data;200===n&&a.setState({groupcourse:Object.assign({},e,{isMore:c.length>4,course:c.length>4?c.filter(function(e,t){return t<4}):c,courseList:c})})})},a.fetchAICourse=function(e,t){g.d.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(s){var n=s.data,c=n.code,r=n.data;200===c&&a.getList(e,r,t)})},a.getList=function(e,t,s){var n=a.state,c=n.basic,r=n.advanced,o=n.higher,i=n.expand;"one"===e&&a.setState({basic:Object.assign({},c,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"two"===e&&a.setState({advanced:Object.assign({},r,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"three"===e&&a.setState({higher:Object.assign({},o,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})})},a.toQQque=function(){Object(g.c)("version")?Object(g.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="https://q.url.cn/AB8aue?_type=wpa&qidian=true"},a.toCourse=function(e){var t=a.props.history;Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.handleToMore=function(e){var t={};a.state[e].isMore?(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList,courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(r.a)({},t))):(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(r.a)({},t)))},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.freeStudy=function(){a.setState({tofreeStudy:!0})},a.closePopup=function(){a.setState({tofreeStudy:!1})},a.closePopupWish=function(){var e=Object(m.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(m.a)(a);g.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data;t.errno,t.data,t.msg;v.a.toDataURL("http://weixin.qq.com/q/02mntn9j4xcw01_VSN1tc2",function(e,t){a.setState({followBarcode:t})})})},a.addWishList=function(e,t){var s=Object(m.a)(a),n=!a.props.user.hasError;s.setState({wish:{id:e,key:t}}),n?s.isFollow(e,t):s.toLogin()},a.isFollow=function(e,t){var s=Object(m.a)(a);g.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var n=a.data,r=n.code,o=n.data,i=n.msg;200===r?(s.setState({isshowFollow:!o.is_follow}),s.state.isshowFollow?s.getQRcodeUrl():s.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var s=Object(m.a)(a);g.d.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,n=a.code,r=a.msg;200==n?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),s.getLength(),"1"===t&&s.fetchAICourse("one",s.state.basic.addshowMore),"2"===t&&s.fetchAICourse("two",s.state.advanced.addshowMore),"3"===t&&s.fetchAICourse("three",s.state.higher.addshowMore),"4"===t&&s.fetchAICourse("four",s.state.expand.addshowMore),"group"===t&&s.fetchGroupCourse()):c.a.info(r,2)})},a.saveImage=function(){var e=Object(g.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("generateQRCode","//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,s=t.code,n=t.data,r=t.msg;if(200===s){var o=n.info,i=n.removable_data;a.setState({removable:o.removable,currentId:o.removable>0?i[0].id:null})}else c.a.info(r)})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentId,s="";t&&(s="?id=".concat(t)),e?a.props.history.push("/year/yearTreasure".concat(s)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?a.props.history.push("/year/yearWish"):a.toLogin()},a.state={tofreeStudy:!1,basic:{course:[],courseList:[],isMore:!1,addshowMore:!1},advanced:{course:[],courseList:[],isMore:!1,addshowMore:!1},higher:{course:[],courseList:[],isMore:!1,addshowMore:!1},expand:{course:[],courseList:[],isMore:!1,addshowMore:!1},bigcourse:{course:[],courseList:[],isMore:!1},freecourse:{course:[],courseList:[],isMore:!1},groupcourse:{course:[],courseList:[],isMore:!1},isshowFollow:!1,wish:{id:"",key:""},followBarcode:"",sum:"",removable:"",currentId:""},a}return Object(d.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchFreeCourse(),this.fetchGroupCourse(),this.fetchAICourse("one",!1),this.fetchAICourse("two",!1),this.fetchAICourse("three",!1),this.fetchAICourse("four",!1)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.fetchBigCourse(),this.fetchFreeCourse(),this.fetchGroupCourse(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.bigcourse,s=t.freecourse,n=t.groupcourse,c=t.basic,r=t.advanced,o=t.higher,i=t.expand,l=t.removable,u=t.sum;return h.a.createElement("div",{className:"year-index-course"},h.a.createElement("div",{className:"nav-right"},h.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",l>0&&h.a.createElement("i",{className:"nav-right__number"},l)),h.a.createElement("a",{onClick:function(){return e.toYearWish()},className:"nav-right__link"},"\u5fc3\u613f\u5355",u>0&&h.a.createElement("i",{className:"nav-right__number"},u))),h.a.createElement(f.a,{title:"\u91cd\u78c5\u597d\u8bfe",id:"year-course"},h.a.createElement("div",null,a.course&&a.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"bigcourse course-box"},a.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toQQque()},className:"btn big-course"},"\u901f\u62a2\u62fc\u56e2\u540d\u989d")))})),a.courseList&&a.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("bigcourse")}},group.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66",id:"year-free"},h.a.createElement("div",null,s.course&&s.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"freecourse course-box"},s.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.freeStudy()},className:"btn free-study"},"\u70b9\u51fb\u514d\u8d39\u5b66"),h.a.createElement("p",{className:"free-course-num"},"\u5df2\u9001\u51fa",h.a.createElement("span",null,t.act_num),"\u4e2a\u8bfe\u7a0b")))})),s.courseList&&s.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("freecourse")}},group.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u5f00\u62a2",id:"year-group"},h.a.createElement("div",null,n.course&&n.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},n.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12\u670823\u65e5\u5f00\u56e2")),h.a.createElement("div",{className:"price"},"\xa5",h.a.createElement("span",{className:"new-price"},"0.01"),h.a.createElement("span",{className:"old-price"},"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"group")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),n.courseList&&n.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},group.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u597d\u8bfe\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95",id:"year-discount"},h.a.createElement("div",null,h.a.createElement("h4",{className:"ai-course__subtitle"},"\u57fa\u7840"),c.course&&c.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},c.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"1")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),c.courseList&&c.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("basic")}},c.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u8fdb\u9636"),r.course&&r.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},r.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"2")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),r.courseList&&r.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("advanced")}},r.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u9ad8\u9636"),o.course&&o.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},o.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"3")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),o.courseList&&o.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("higher")}},o.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u6269\u5c55"),i.course&&i.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},i.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"4")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),i.courseList&&i.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("expand")}},i.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),this.state.tofreeStudy&&h.a.createElement(y.a,{top:100,closePopup:this.closePopup,mark:!1},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u8fdb\u5165\u670d\u52a1\u53f7\u56de\u590d",h.a.createElement("i",null,"77"),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))),this.state.isshowFollow&&h.a.createElement(y.a,{top:100,closePopup:this.closePopupWish,mark:!1},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u8bfe\u7a0b\u5f00\u552e\u7acb\u5373\u63d0\u9192\uff0c\u4e0d\u9519\u8fc7\u4efb\u4f55\u4f18\u60e0\u54e6\uff01"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:this.state.followBarcode,alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))))}}]),t}(p.Component))||s;t.a=Object(b.g)(j)}}]);
//# sourceMappingURL=2.d6a4e1dd.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/blessingPreheat/courseItem/index.js","components/activity/newyear-2019/common/commonContainer/index.js","components/activity/newyear-2019/common/commonPopup/index.js","components/activity/newyear-2019/common/prizes/index.js","components/activity/newyear-2019/common/user-bullet-screen/index.js","components/activity/newyear-2019/preheat/YearCourse/index.js"],"names":["CourseItem","_this$props","this","props","image","toCourse","id","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","onClick","children","Component","CommonContainer","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","title","React","Children","map","child","Fragment","index","_this","computedStyle","top","concat","width","closePopup","mark","style","e","stopPropagation","SystemBulletScreen","Loadable","__webpack_require__","then","bind","Prizes","closeIcon","state","prizes","notices","rule","unfoldList","getPrizes","http","get","API","home","res","_res$data","data","code","msg","setState","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","showRules","Popup","content","react__WEBPACK_IMPORTED_MODULE_7___default","dangerouslySetInnerHTML","__html","showMore","prev","bg","innerBox","prizeBox","headHeight","parseFloat","getComputedStyle","getPropertyValue","footerHeight","h","prizeList","scrollHeight","scrollListHeight","height","_this2","showSystemNotices","bullets","ref","el","href","item","key","img_name","is_captain","mode","stage_no","grant_max","UserBulletScreen","bulletScreenData","initializeBulletScreen","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__","indexArray","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__","Array","slidesPerRequest","keys","removed","swiper","Swiper","direction","allowTouchMove","autoplay","on","transitionEnd","_this3","slides","length","removeSlide","start","activeIndex","stop","getBulletScreenData","appendSlide","getSlides","setTimeout","list","avatar_file","user_name","initializeSwiper","arguments","undefined","YearCourse","connect","user","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","getLength","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","sum","fetchBigCourse","bigcourse","_res$data2","assign","isMore","course","filter","courseList","fetchFreeCourse","freecourse","_res$data3","errno","course_info","fetchGroupCourse","groupcourse","_res$data4","fetchAICourse","addshowMore","_res$data5","getList","_this2$state","basic","advanced","higher","expand","toQQque","getParam","SendMessageToApp","location","courseId","history","push","handleToMore","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","toLogin","freeStudy","tofreeStudy","closePopupWish","isshowFollow","toJoinList","wish","getQRcodeUrl","uid","_res$data6","QRCode","toDataURL","err","url","followBarcode","addWishList","isLogin","hasError","isFollow","_res$data7","is_follow","post","course_id","_res$data8","success","saveImage","version","replace","slice","parseInt","getTeamInfo","_res$data9","removable_data","removable","currentId","toBoxList","search","toYearWish","nextProps","nextState","nextContext","isAppUpdate","_this$state","react__WEBPACK_IMPORTED_MODULE_9___default","_common_commonContainer_index__WEBPACK_IMPORTED_MODULE_12__","_blessingPreheat_courseItem_index__WEBPACK_IMPORTED_MODULE_13__","image_name","is_buy","group","act_num","course_title","price1","is_join","type","price2","_common_commonPopup_index__WEBPACK_IMPORTED_MODULE_15__","browser","isAndroidApp","withRouter"],"mappings":"oQAGMA,2LACK,IAAAC,EACsBC,KAAKC,MAA1BC,EADDH,EACCG,MAAMC,EADPJ,EACOI,SAASC,EADhBL,EACgBK,GACvB,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,oBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBACbH,EAAAC,EAAAC,cAAA,OAAKE,IAAKP,EAAOQ,IAAI,QAAQC,QAAS,kBAAMR,EAASC,OAEtDJ,KAAKC,MAAMW,iBARKC,cAcVf,+HCdMgB,uBACnB,SAAAA,EAAYb,GAAQ,OAAAc,OAAAC,EAAA,EAAAD,CAAAf,KAAAc,GAAAC,OAAAE,EAAA,EAAAF,CAAAf,KAAAe,OAAAG,EAAA,EAAAH,CAAAD,GAAAK,KAAAnB,KACZC,0EAEC,IACCG,EAAOJ,KAAKC,MAAZG,GACR,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,mBAAmBJ,GAAIA,GACpCC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,kBACfH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,qBAEPR,KAAKC,MAAMmB,OACXf,EAAAC,EAAAC,cAAA,OAAKC,UAAU,mBACXH,EAAAC,EAAAC,cAAA,UACAF,EAAAC,EAAAC,cAAA,SAAIP,KAAKC,MAAMmB,OACff,EAAAC,EAAAC,cAAA,WAIRc,IAAMC,SAASC,IAAIvB,KAAKC,MAAMW,SAAU,SAAUY,GAChD,OAAOnB,EAAAC,EAAAC,cAAAF,EAAAC,EAAAmB,SAAA,KAAGD,MAIhBnB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,6BAxBsBK,6JCAxBa,uBACnB,SAAAA,EAAYzB,GAAO,IAAA0B,EAAA,OAA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AM,GACtDuL,EAAAlN,EAAAC,cAAA,OAAKC,UAAU,uBACXgN,EAAAlN,EAAAC,cAAA,KAAGC,UAAU,cAAb,4BACAgN,EAAAlN,EAAAC,cAAA,KAAGC,UAAU,YAAb,6CAA+BgN,EAAAlN,EAAAC,cAAA,eAA/B,wCACAiN,EAAAlN,EAAAC,cAAA,OAAKC,UAAU,eAAeJ,GAAI,eAC7BK,IAAI,yEAAyEC,IAAI,KAElF2N,IAAQC,aACJd,EAAAlN,EAAAC,cAAA,UAAQC,UAAW,aAAcG,QAASX,KAAKsM,WAA/C,kCACAkB,EAAAlN,EAAAC,cAAA,KAAGC,UAAU,YAAb,8GAMhBR,KAAK4C,MAAMqI,cACXuC,EAAAlN,EAAAC,cAAC6N,EAAA,EAAD,CAAavM,IAAK,IAAKG,WAAYhC,KAAKgL,eAAgB/I,MAAM,GAC1DuL,EAAAlN,EAAAC,cAAA,OAAKC,UAAU,uBACXgN,EAAAlN,EAAAC,cAAA,KAAGC,UAAU,cAAb,4BACAgN,EAAAlN,EAAAC,cAAA,KAAGC,UAAU,YAAb,gHACAgN,EAAAlN,EAAAC,cAAA,OAAKC,UAAU,eAAeJ,GAAI,eAC7BK,IAAKT,KAAK4C,MAAM+I,cAAejL,IAAI,KAEpC2N,IAAQC,aACJd,EAAAlN,EAAAC,cAAA,UAAQC,UAAW,aAAcG,QAASX,KAAKsM,WAA/C,kCACAkB,EAAAlN,EAAAC,cAAA,KAAGC,UAAU,YAAb,sHAp9BXK,iBA89BV0N,gBAAWrG","file":"mrstatic/js/2.d6a4e1dd.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './index.scss';\n\nclass CourseItem extends Component {\n render() {\n const { image,toCourse,id} = this.props;\n return (\n <div className=\"course-container\">\n <div className=\"course__cover\">\n <img src={image} alt=\"cover\" onClick={() => toCourse(id)}/>\n </div>\n {this.props.children}\n </div>\n );\n }\n}\n\nexport default CourseItem;","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class CommonContainer extends Component {\n constructor(props) {\n super(props)\n }\n render() {\n const { id } = this.props;\n return (\n <div className='common_container' id={id}>\n <div className='container_top'></div>\n <div className='container_content'>\n {\n this.props.title &&\n <div className='title_container'>\n <i></i>\n <p>{this.props.title}</p>\n <i></i>\n </div>\n }\n {\n React.Children.map(this.props.children, function (child) {\n return <>{child}</>;\n })\n }\n </div>\n <div className='container_bottom'></div>\n </div>\n )\n }\n}\n","import React, { Component } from 'react';\nimport './index.scss';\n\nexport default class index extends Component {\n constructor(props) {\n super(props);\n }\n computedStyle = () => {\n return {\n 'top': `${this.props.top}px`,\n 'width': `${this.props.width}px`\n }\n }\n\n // 控制点击空白处是否关闭弹窗 需要传递一个boolean属性 mark\n closePopup = () => {\n if(this.props.mark) {\n this.props.closePopup();\n }\n }\n\n render() {\n return (\n <div className='popup__container' onClick={this.closePopup}>\n <div className='content__container' style={this.computedStyle()} onClick={(e) => {e.stopPropagation()}}>\n <img className=\"close__btn\" onClick={this.props.closePopup} src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png' alt=\"\" />\n {\n React.Children.map(this.props.children, function (child) {\n return <>{child}</>;\n })\n }\n </div>\n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport { http } from \"@/utils\"\nimport './prizes.scss'\nimport { Popup } from \"@common/index\"\nimport { Toast } from \"antd-mobile\"\n\n\nimport Loadable from '@loadable/component'\n\nconst SystemBulletScreen = Loadable(() => import(/* webpackChunkName: 'system-notices' */'@components/activity/newyear-2019/common/system-bullet-screen'))\n\nclass Prizes extends Component {\n\n prizeBox\n prizeList\n bg\n innerBox\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n\n state = {\n prizes: [],\n notices: [],\n rule: [],\n unfoldList: false,\n }\n\n componentDidMount() {\n this.getPrizes()\n }\n\n getPrizes = () => {\n http.get(`${API.home}/sys/prize_data`)\n .then(res => {\n const {code, data, msg} = res.data\n if (code == 200) {\n\n this.setState({\n prizes: data['prize_data'],\n notices: data['notices'],\n rule: data['rule']\n })\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n\n showRules = () => {\n Popup({\n title: '组队开宝箱活动规则',\n className: 'landing-treasure-rules',\n content: <div dangerouslySetInnerHTML={{__html: this.state.rule}}/>,\n closeIcon: this.closeIcon\n })\n }\n\n\n showMore = () => {\n this.setState(prev => {\n if (this.state.unfoldList) {\n this.bg.style = this.innerBox.style = this.prizeBox.style = ''\n } else {\n let headHeight = parseFloat(getComputedStyle(this.prizeBox, ':before').getPropertyValue('height')),\n footerHeight = parseFloat(getComputedStyle(this.prizeBox, ':after').getPropertyValue('height')),\n innerOffsetTop = 0.12458,\n footerOffsetTop = 0.595,\n h = this.prizeList.scrollHeight,\n scrollListHeight = headHeight + h - (innerOffsetTop * headHeight) - (footerOffsetTop * footerHeight) + footerHeight,\n bottomOffset = 27\n\n this.prizeBox.style.height = `${scrollListHeight + bottomOffset}px`\n this.innerBox.style.height = `${h}px`\n this.bg.style.height = `${h - footerHeight + innerOffsetTop * headHeight + bottomOffset}px`\n }\n return {unfoldList: !prev.unfoldList}\n })\n\n }\n\n render() {\n const {\n showSystemNotices\n } = this.props\n return (\n <>\n {showSystemNotices && <SystemBulletScreen bullets={this.state.notices}/>}\n <div className={'prizes-box'} ref={el => this.prizeBox = el}>\n <a href=\"javascript:;\" className='rule-btn' onClick={this.showRules}>活动规则 > </a>\n <div className={`bg`} ref={el => this.bg = el}/>\n <div className={`inner-box`} ref={el => this.innerBox = el}>\n <ul className='prize-list' ref={el => this.prizeList = el}>\n {\n this.state.prizes.map((item, index) => {\n return (\n <li key={index}>\n <img src={item.img_name} alt=\"\"/>\n {\n item.is_captain != 0 && <span className='captain top-tag'>队长专属</span>\n }\n {\n item.mode === 2 && <span className='stage top-tag'>第{item.stage_no}次必中</span>\n }\n {\n item.grant_max\n ?\n <div className='bottom-bar'>\n <div className=\"progress-bar\"><span className={'progress'}/></div>\n <span>限量{item.grant_max}份</span>\n </div>\n : <span className='no-limit'>不限量</span>\n }\n </li>\n )\n })\n }\n <li>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png\" alt=\"\"/>\n </li>\n </ul>\n </div>\n <div className=\"show-more\" onClick={this.showMore}>\n {\n this.state.unfoldList\n ? <div>\n 收起\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png\" alt=\"\"/>\n </div>\n : <div>\n 查看全部奖品\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png\" alt=\"\"/>\n </div>\n }\n </div>\n </div>\n </>\n )\n }\n}\n\nexport default Prizes\n","import React, { Component } from 'react'\nimport { http } from \"@/utils\"\nimport Swiper from 'swiper'\nimport 'swiper/dist/css/swiper.min.css'\nimport './bullet-screen.scss'\n\nclass UserBulletScreen extends Component {\n\n state = {\n bulletScreenData: []\n }\n\n componentDidMount() {\n this.getBulletScreenData(true)\n }\n\n\n initializeBulletScreen = () => {\n const _this = this\n const slidesPerRequest = 20\n const indexArray = [...Array(slidesPerRequest - 1).keys()]\n let removed = false\n this.swiper = new Swiper('.swiper-container', {\n direction: 'vertical',\n allowTouchMove: false,\n autoplay: true,\n on: {\n transitionEnd() {\n if (this.slides.length > slidesPerRequest) {\n this.removeSlide(0)\n this.autoplay.start()\n }\n if (this.activeIndex === this.slides.length - 1 && !removed) {\n this.autoplay.stop()\n _this.getBulletScreenData().then(res => {\n removed = true\n this.removeSlide(indexArray)\n this.appendSlide(_this.getSlides(res))\n setTimeout(() => {\n this.autoplay.start()\n removed = false\n })\n })\n }\n }\n }\n })\n }\n\n getSlides = list => list.map(item => {\n return `\n <li class=\"swiper-slide\">\n <img class=\"avatar\" src=\"${item.avatar_file}\" alt=\"\">\n <span>${item.user_name} ${item.msg}</span>\n </li>\n `\n })\n\n getBulletScreenData = (initializeSwiper = false) => {\n return http.get(`${API.home}/sys/barrage_data`)\n .then(res => {\n const {data, code} = res.data\n if (code == 200) {\n if (initializeSwiper) {\n this.setState({\n bulletScreenData: data\n }, () => {\n this.initializeBulletScreen()\n })\n } else {\n return data\n }\n }\n })\n }\n\n\n render() {\n const {bulletScreenData} = this.state\n return (\n <div id=\"user-bullet-screen\" className='swiper-container'>\n <ul className='swiper-wrapper'>\n {\n bulletScreenData.length && bulletScreenData.map((item, index) => {\n return (\n <li className='swiper-slide' key={index}>\n <img src={item['avatar_file']}\n alt=\"\" className=\"avatar\"/>\n <span>{item.user_name} {item.msg}</span>\n </li>\n )\n })\n }\n </ul>\n </div>\n )\n }\n}\n\nexport default UserBulletScreen\n","import React, {Component} from 'react'\nimport './index.scss'\nimport {http, SendMessageToApp, getParam, browser} from '@/utils'\nimport CommonContainer from './../../common/commonContainer/index'\nimport CourseItem from '../../../../blessingPreheat/courseItem/index'\nimport {withRouter} from \"react-router-dom\"\nimport CommonPopup from './../../common/commonPopup/index'\nimport {Toast} from 'antd-mobile'\nimport QRCode from 'qrcode'\nimport {connect} from \"react-redux\"\n\n@connect(state => ({\n user: state.user\n}))\n\nclass YearCourse extends Component {\n constructor(props) {\n super(props)\n this.state = {\n tofreeStudy: false,\n basic: {\n course: [],\n courseList: [],\n isMore: false,\n addshowMore: false,\n },\n advanced: {\n course: [],\n courseList: [],\n isMore: false,\n addshowMore: false,\n },\n higher: {\n course: [],\n courseList: [],\n isMore: false,\n addshowMore: false,\n },\n expand: {\n course: [],\n courseList: [],\n isMore: false,\n addshowMore: false,\n },\n bigcourse: {\n course: [],\n courseList: [],\n isMore: false,\n },\n freecourse: {\n course: [],\n courseList: [],\n isMore: false,\n },\n groupcourse: {\n course: [],\n courseList: [],\n isMore: false,\n },\n isshowFollow: false, // 是否提示关注公众号\n wish: {\n id: '',\n key: \"\"\n },\n followBarcode: '',\n sum:'',\n removable:'',\n currentId:''\n }\n }\n\n componentDidMount() {\n this.getTeamInfo()\n this.getLength()\n this.fetchBigCourse()\n this.fetchFreeCourse()\n this.fetchGroupCourse()\n // AI之路-基础\n this.fetchAICourse('one', false)\n // AI之路-进阶\n this.fetchAICourse('two', false)\n // AI之路-高阶\n this.fetchAICourse('three', false)\n // AI之路-拓展\n this.fetchAICourse('four', false)\n }\n\n shouldComponentUpdate(nextProps, nextState, nextContext) {\n if (this.props.isAppUpdate !== nextProps.isAppUpdate) {\n this.fetchBigCourse()\n this.fetchFreeCourse()\n this.fetchGroupCourse()\n // AI之路-基础\n this.fetchAICourse('one')\n // AI之路-进阶\n this.fetchAICourse('two')\n // AI之路-高阶\n this.fetchAICourse('three')\n // AI之路-拓展\n this.fetchAICourse('four')\n return false\n }\n return true\n }\n\n getLength = () => {\n let _this = this\n http.get(`${API.home}/activity/wish_sum`).then(res => {\n const {code, data} = res.data\n if (code == 200) {\n _this.setState({\n sum: data.sum\n })\n }\n })\n }\n\n fetchBigCourse = () => {\n const {bigcourse} = this.state\n http.get(`${API.home}/activity/preheat_data`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.setState({\n bigcourse: Object.assign({}, bigcourse, {\n isMore: data.length > 4 ? true : false,\n course: data.length > 4 ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n })\n })\n }\n })\n }\n fetchFreeCourse = () => {\n const {freecourse} = this.state\n http.get(`${API['base-api']}/assistance/detail`).then(res => {\n const {errno, data} = res.data\n if (errno === 200) {\n this.setState({\n freecourse: Object.assign({}, freecourse, {\n isMore: data.course_info.length > 4 ? true : false,\n course: data.course_info.length > 4 ? data.course_info.filter((item, index) => index < 4) : data.course_info,\n courseList: data.course_info,\n })\n })\n }\n })\n }\n fetchGroupCourse = () => {\n const {groupcourse} = this.state\n http.get(`${API.home}/activity/excellent_course`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.setState({\n groupcourse: Object.assign({}, groupcourse, {\n isMore: data.length > 4 ? true : false,\n course: data.length > 4 ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n })\n })\n }\n })\n }\n\n fetchAICourse = (key, addshowMore) => {\n http.get(`${API.home}/activity/four_stage/${key}`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.getList(key, data, addshowMore)\n }\n })\n }\n\n getList = (key, data, addshowMore) => {\n const {basic, advanced, higher, expand} = this.state\n if (key === 'one') {\n this.setState({\n basic: Object.assign({}, basic, {\n isMore: data.length > 4 && !addshowMore ? true : false,\n course: data.length > 4 && !addshowMore ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n addshowMore: addshowMore,\n })\n })\n }\n if (key === 'two') {\n this.setState({\n advanced: Object.assign({}, advanced, {\n isMore: data.length > 4 && !addshowMore ? true : false,\n course: data.length > 4 && !addshowMore ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n addshowMore: addshowMore,\n })\n })\n }\n if (key === 'three') {\n this.setState({\n higher: Object.assign({}, higher, {\n isMore: data.length > 4 && !addshowMore ? true : false,\n course: data.length > 4 && !addshowMore ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n addshowMore: addshowMore,\n })\n })\n }\n if (key === 'four') {\n this.setState({\n expand: Object.assign({}, expand, {\n isMore: data.length > 4 && !addshowMore ? true : false,\n course: data.length > 4 && !addshowMore ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n addshowMore: addshowMore,\n })\n })\n }\n }\n\n toQQque = () => {\n if (!getParam('version')) {\n location.href = 'https://q.url.cn/AB8aue?_type=wpa&qidian=true'\n } else {\n SendMessageToApp(\"toQQ\", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')\n }\n }\n\n // 去课程详情页\n toCourse = (courseId) => {\n const {history} = this.props\n if (!getParam('version')) {\n history.push(`/detail?id=${courseId}`)\n } else {\n SendMessageToApp(\"toCourse\", courseId)\n }\n }\n handleToMore = (key) => {\n let data = {}\n if (this.state[key]['isMore']) {\n data[key] = {\n isMore: !this.state[key]['isMore'],\n course: this.state[key]['courseList'],\n courseList: this.state[key]['courseList'],\n addshowMore: !this.state[key]['addshowMore']\n }\n this.setState({\n ...data\n })\n } else {\n data[key] = {\n isMore: !this.state[key]['isMore'],\n course: this.state[key]['courseList'].filter((item, index) => index < 4),\n courseList: this.state[key]['courseList'],\n addshowMore: !this.state[key]['addshowMore']\n }\n\n this.setState({\n ...data\n })\n }\n }\n\n // 去登录\n toLogin = () => {\n if (!getParam('version')) {\n this.props.history.push('/passport/login')\n } else {\n SendMessageToApp(\"toLogin\")\n }\n }\n\n // 免费学习\n freeStudy = () => {\n this.setState({\n tofreeStudy: true,\n })\n }\n // 关闭弹框\n closePopup = () => {\n this.setState({\n tofreeStudy: false,\n })\n }\n\n closePopupWish = () => {\n const _this = this\n _this.setState({\n isshowFollow: false\n })\n\n setTimeout(function () {\n _this.toJoinList(_this.state.wish.id, _this.state.wish.key)\n }, 200)\n }\n\n getQRcodeUrl = () => {\n let _this = this\n http.get(`${API['base-api']}/wx/user_temporary_qrcode/${_this.props.user.data.uid}`)\n .then(res => {\n const {errno, data, msg} = res.data\n QRCode.toDataURL('http://weixin.qq.com/q/02mntn9j4xcw01_VSN1tc2', (err, url) => {\n this.setState({\n followBarcode: url,\n })\n })\n // _this.followBarcode = \"https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEV8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAybW50bjlqNHhjdzAxX1ZTTjF0YzIAAgR5pfBdAwSAUQEA\"\n\n // if (errno == 0) {\n // _this.followBarcode = data.url\n // } else {\n // Message.warning(msg)\n // }\n })\n }\n\n // 点击加入心愿单登录验证,在判断是否关注公众号,已关注的话直接加入,未关注弹出二维码弹窗,点击关闭按钮加入心愿单\n addWishList = (id, key) => {\n const _this = this\n const isLogin = !this.props.user.hasError\n _this.setState({\n wish: {\n id: id,\n key: key\n }\n })\n\n if (isLogin) {\n _this.isFollow(id, key)\n } else {\n _this.toLogin()\n }\n }\n\n isFollow = (id, key) => {\n const _this = this\n http.get(`${API.home}/sys/user/isFollowWeChat`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n _this.setState({\n isshowFollow: !data.is_follow\n })\n\n if (!_this.state.isshowFollow) {\n _this.toJoinList(id, key)\n } else {\n _this.getQRcodeUrl()\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n toJoinList = (id, key) => {\n const _this = this\n http.post(`${API.home}/activity/join_list`, {course_id: id})\n .then(res => {\n const {code, msg} = res.data\n if (code == 200) {\n Toast.success('已成功加入心愿单', 3)\n _this.getLength()\n if (key === '1') {\n _this.fetchAICourse('one', _this.state.basic.addshowMore)\n }\n if (key === '2') {\n _this.fetchAICourse('two', _this.state.advanced.addshowMore)\n }\n if (key === '3') {\n _this.fetchAICourse('three', _this.state.higher.addshowMore)\n }\n if (key === '4') {\n _this.fetchAICourse('four', _this.state.expand.addshowMore)\n }\n if (key === 'group') {\n _this.fetchGroupCourse()\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n // 安卓手机保存二维码\n saveImage = () => {\n let version = getParam('version')\n version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''\n const QRCodeUrl = '//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg'\n if (version && parseInt(version) < 451) {\n Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)\n } else {\n SendMessageToApp('generateQRCode', QRCodeUrl)\n }\n }\n\n // 获取队伍信息\n getTeamInfo = () => {\n http.get(`${API.home}/sys/treasure/teamInfo`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n const {info, removable_data} = data\n this.setState({\n removable: info.removable,\n currentId: info.removable > 0 ? removable_data[0].id : null\n })\n } else {\n Toast.info(msg)\n }\n })\n }\n\n // 跳转到我的宝箱列表页\n toBoxList = () => {\n const isLogin = !this.props.user.hasError\n const {currentId} = this.state\n let search = ''\n if (currentId) {\n search = `?id=${currentId}`\n }\n if (isLogin) {\n this.props.history.push(`/year/yearTreasure${search}`)\n } else {\n this.toLogin()\n }\n }\n\n toYearWish = () => {\n const isLogin = !this.props.user.hasError\n if (isLogin) {\n this.props.history.push('/year/yearWish')\n } else {\n this.toLogin()\n }\n\n }\n\n render() {\n const {bigcourse, freecourse, groupcourse, basic, advanced, higher, expand,removable,sum} = this.state\n\n return (\n <div className={'year-index-course'}>\n {/*浮框*/}\n <div className='nav-right'>\n <span onClick={this.toBoxList} className='nav-right__link'>\n 未开宝箱\n {\n removable > 0 &&\n <i className=\"nav-right__number\">{removable}</i>\n }\n </span>\n <a onClick={() => this.toYearWish()} className='nav-right__link'>\n 心愿单\n {\n sum > 0 &&\n <i className=\"nav-right__number\">{sum}</i>\n }\n </a>\n </div>\n\n <CommonContainer title='重磅好课' id='year-course'>\n <div>\n {\n (bigcourse.course && bigcourse.course.length > 0) &&\n <>\n <div className='bigcourse course-box'>\n {\n bigcourse.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <a onClick={() => this.toCourse(item.course_id)} className=\"btn to-study\">开始学习</a>\n }\n {\n item.is_buy == 0 &&\n <a onClick={() => this.toQQque()}\n className=\"btn big-course\">速抢拼团名额</a>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (bigcourse.courseList && bigcourse.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('bigcourse')}>\n {group.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n </div>\n </CommonContainer>\n <CommonContainer title='人气好课免费学' id='year-free'>\n <div>\n {\n (freecourse.course && freecourse.course.length > 0) &&\n <>\n <div className='freecourse course-box'>\n {\n freecourse.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <a onClick={() => this.toCourse(item.course_id)} className=\"btn to-study\">开始学习</a>\n }\n {\n item.is_buy == 0 &&\n <a onClick={() => this.freeStudy()}\n className=\"btn free-study\">点击免费学</a>\n }\n\n <p className=\"free-course-num\">已送出<span>{item.act_num}</span>个课程</p>\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (freecourse.courseList && freecourse.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('freecourse')}>\n {group.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n </div>\n </CommonContainer>\n <CommonContainer title='精品好课1分开抢' id='year-group'>\n <div>\n {\n (groupcourse.course && groupcourse.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n groupcourse.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"group-num\">限量300个</div>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12月23日开团</span>\n </div>\n <div className=\"price\">¥\n <span className=\"new-price\">0.01</span>\n <span\n className=\"old-price\">现价:<s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, 'group')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (groupcourse.courseList && groupcourse.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('groupcourse')}>\n {group.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n </div>\n </CommonContainer>\n <CommonContainer title='好课价到,等你抄底' id='year-discount'>\n <div>\n <h4 className=\"ai-course__subtitle\">基础</h4>\n {\n (basic.course && basic.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n basic.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n {\n item.type == 0 &&\n <>\n <span className=\"tag\">活动价</span>\n <span className=\"time\">12.23开始</span>\n </>\n }\n {\n item.type == 1 &&\n <>\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12.23开团</span>\n </>\n }\n {\n item.type == 2 &&\n <>\n <span className=\"tag\">好友帮帮砍</span>\n <span className=\"time\">12.23开砍</span>\n </>\n }\n\n </div>\n <div className=\"price\">\n {item.type == 2 ? '到手最低:¥' : '¥'}\n <span className=\"new-price\">{item.price2}</span>\n <span\n className=\"old-price\">\n {item.type == 2 ? '' : '现价:'}\n <s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, '1')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (basic.courseList && basic.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('basic')}>\n {basic.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n\n <h4 className=\"ai-course__subtitle\">进阶</h4>\n {\n (advanced.course && advanced.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n advanced.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n {\n item.type == 0 &&\n <>\n <span className=\"tag\">活动价</span>\n <span className=\"time\">12.23开始</span>\n </>\n }\n {\n item.type == 1 &&\n <>\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12.23开团</span>\n </>\n }\n {\n item.type == 2 &&\n <>\n <span className=\"tag\">好友帮帮砍</span>\n <span className=\"time\">12.23开砍</span>\n </>\n }\n\n </div>\n <div className=\"price\">\n {item.type == 2 ? '到手最低:¥' : '¥'}\n <span className=\"new-price\">{item.price2}</span>\n <span\n className=\"old-price\">\n {item.type == 2 ? '' : '现价:'}\n <s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, '2')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (advanced.courseList && advanced.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('advanced')}>\n {advanced.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n\n <h4 className=\"ai-course__subtitle\">高阶</h4>\n {\n (higher.course && higher.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n higher.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n {\n item.type == 0 &&\n <>\n <span className=\"tag\">活动价</span>\n <span className=\"time\">12.23开始</span>\n </>\n }\n {\n item.type == 1 &&\n <>\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12.23开团</span>\n </>\n }\n {\n item.type == 2 &&\n <>\n <span className=\"tag\">好友帮帮砍</span>\n <span className=\"time\">12.23开砍</span>\n </>\n }\n\n </div>\n <div className=\"price\">\n {item.type == 2 ? '到手最低:¥' : '¥'}\n <span className=\"new-price\">{item.price2}</span>\n <span\n className=\"old-price\">\n {item.type == 2 ? '' : '现价:'}\n <s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, '3')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (higher.courseList && higher.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('higher')}>\n {higher.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n\n <h4 className=\"ai-course__subtitle\">扩展</h4>\n {\n (expand.course && expand.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n expand.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n {\n item.type == 0 &&\n <>\n <span className=\"tag\">活动价</span>\n <span className=\"time\">12.23开始</span>\n </>\n }\n {\n item.type == 1 &&\n <>\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12.23开团</span>\n </>\n }\n {\n item.type == 2 &&\n <>\n <span className=\"tag\">好友帮帮砍</span>\n <span className=\"time\">12.23开砍</span>\n </>\n }\n\n </div>\n <div className=\"price\">\n {item.type == 2 ? '到手最低:¥' : '¥'}\n <span className=\"new-price\">{item.price2}</span>\n <span\n className=\"old-price\">\n {item.type == 2 ? '' : '现价:'}\n <s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, '4')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (expand.courseList && expand.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('expand')}>\n {expand.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n </div>\n </CommonContainer>\n\n {\n this.state.tofreeStudy &&\n <CommonPopup top={100} closePopup={this.closePopup} mark={false}>\n <div className='sub__code_container'>\n <p className='sub__title'>提醒服务</p>\n <p className='sub__tip'>进入服务号回复<i>77</i>免费领取课程</p>\n <img className='sub__qr_code' id={'live-qr-code'}\n src='//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg' alt=\"\"/>\n {\n browser.isAndroidApp ? (\n <button className={'save-image'} onClick={this.saveImage}>保存二维码</button>\n ) : <p className='sub__tip'>长按识别/扫码 关注【七月在线】服务号</p>\n }\n </div>\n </CommonPopup>\n }\n {\n this.state.isshowFollow &&\n <CommonPopup top={100} closePopup={this.closePopupWish} mark={false}>\n <div className='sub__code_container'>\n <p className='sub__title'>提醒服务</p>\n <p className='sub__tip'>课程开售立即提醒,不错过任何优惠哦!</p>\n <img className='sub__qr_code' id={'live-qr-code'}\n src={this.state.followBarcode} alt=\"\"/>\n {\n browser.isAndroidApp ? (\n <button className={'save-image'} onClick={this.saveImage}>保存二维码</button>\n ) : <p className='sub__tip'>长按识别/扫码 关注【七月在线】服务号</p>\n }\n </div>\n </CommonPopup>\n }\n </div>\n )\n }\n}\n\nexport default withRouter(YearCourse)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1230:function(e,t,a){},1231:function(e,t,a){},1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},659:function(e,t,a){"use strict";var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(737),function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(r.a)(t).apply(this,arguments))}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,s=e.id;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(s)}})),this.props.children)}}]),t}(i.Component));t.a=u},660:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(1234),function(e){function t(e){return Object(s.a)(this,t),Object(c.a)(this,Object(r.a)(t).call(this,e))}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.id;return l.a.createElement("div",{className:"common_container",id:e},l.a.createElement("div",{className:"container_top"}),l.a.createElement("div",{className:"container_content"},this.props.title&&l.a.createElement("div",{className:"title_container"},l.a.createElement("i",null),l.a.createElement("p",null,this.props.title),l.a.createElement("i",null)),l.a.Children.map(this.props.children,function(e){return l.a.createElement(l.a.Fragment,null,e)})),l.a.createElement("div",{className:"container_bottom"}))}}]),t}(i.Component))},737:function(e,t,a){},739:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var s=a(5),n=a(7),c=a(6),r=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(1235),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).computedStyle=function(){return{top:"".concat(a.props.top,"px"),width:"".concat(a.props.width,"px")}},a.closePopup=function(){a.props.mark&&a.props.closePopup()},a}return Object(o.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"popup__container",onClick:this.closePopup},l.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},l.a.createElement("img",{className:"close__btn",onClick:this.props.closePopup,src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",alt:""}),l.a.Children.map(this.props.children,function(e){return l.a.createElement(l.a.Fragment,null,e)})))}}]),t}(i.Component))},817:function(e,t,a){"use strict";a(41);var s=a(12),n=a.n(s),c=a(5),r=a(7),o=a(6),i=a(8),l=a(9),u=a(0),m=a.n(u),d=a(3),p=(a(1230),a(28)),h=a(14),g=Object(h.a)(function(){return a.e(41).then(a.bind(null,1251))}),f=function(e){function t(){var e,a;Object(c.a)(this,t);for(var s=arguments.length,r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return(a=Object(o.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.state={prizes:[],notices:[],rule:[],unfoldList:!1},a.getPrizes=function(){d.d.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,s=t.code,c=t.data,r=t.msg;200==s?a.setState({prizes:c.prize_data,notices:c.notices,rule:c.rule}):n.a.info(r,2,null,!1)})},a.showRules=function(){Object(p.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:m.a.createElement("div",{dangerouslySetInnerHTML:{__html:a.state.rule}}),closeIcon:a.closeIcon})},a.showMore=function(){a.setState(function(e){if(a.state.unfoldList)a.bg.style=a.innerBox.style=a.prizeBox.style="";else{var t=parseFloat(getComputedStyle(a.prizeBox,":before").getPropertyValue("height")),s=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),n=a.prizeList.scrollHeight,c=t+n-.12458*t-.595*s+s;a.prizeBox.style.height="".concat(c+27,"px"),a.innerBox.style.height="".concat(n,"px"),a.bg.style.height="".concat(n-s+.12458*t+27,"px")}return{unfoldList:!e.unfoldList}})},a}return Object(l.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices;return m.a.createElement(m.a.Fragment,null,t&&m.a.createElement(g,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},m.a.createElement("img",{src:e.img_name,alt:""}),0!=e.is_captain&&m.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&m.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u6b21\u5fc5\u4e2d"),e.grant_max?m.a.createElement("div",{className:"bottom-bar"},m.a.createElement("div",{className:"progress-bar"},m.a.createElement("span",{className:"progress"})),m.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):m.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))}),m.a.createElement("li",null,m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),m.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?m.a.createElement("div",null,"\u6536\u8d77",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):m.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),t}(u.Component);t.a=f},818:function(e,t,a){"use strict";var s=a(119),n=a(5),c=a(7),r=a(6),o=a(8),i=a(89),l=a(9),u=a(0),m=a.n(u),d=a(3),p=a(162),h=(a(258),a(1231),function(e){function t(){var e,a;Object(n.a)(this,t);for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(l)))).state={bulletScreenData:[]},a.initializeBulletScreen=function(){var e=Object(i.a)(a),t=Object(s.a)(Array(19).keys()),n=!1;a.swiper=new p.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var a=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),e.getBulletScreenData().then(function(s){n=!0,a.removeSlide(t),a.appendSlide(e.getSlides(s)),setTimeout(function(){a.autoplay.start(),n=!1})}))}}})},a.getSlides=function(e){return e.map(function(e){return'\n <li class="swiper-slide">\n <img class="avatar" src="'.concat(e.avatar_file,'" alt="">\n <span>').concat(e.user_name," ").concat(e.msg,"</span>\n </li>\n ")})},a.getBulletScreenData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d.d.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var s=t.data,n=s.data;if(200==s.code){if(!e)return n;a.setState({bulletScreenData:n},function(){a.initializeBulletScreen()})}})},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getBulletScreenData(!0)}},{key:"render",value:function(){var e=this.state.bulletScreenData;return m.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},m.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map(function(e,t){return m.a.createElement("li",{className:"swiper-slide",key:t},m.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),m.a.createElement("span",null,e.user_name," ",e.msg))})))}}]),t}(u.Component));t.a=h},819:function(e,t,a){"use strict";a(41);var s,n=a(12),c=a.n(n),r=a(19),o=a(5),i=a(7),l=a(6),u=a(8),m=a(89),d=a(9),p=a(0),h=a.n(p),g=(a(1233),a(3)),f=a(660),E=a(659),b=a(49),y=a(739),_=a(587),v=a.n(_),N=a(22),j=Object(N.b)(function(e){return{user:e.user}})(s=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(l.a)(this,Object(u.a)(t).call(this,e))).getLength=function(){var e=Object(m.a)(a);g.d.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,s=a.code,n=a.data;200==s&&e.setState({sum:n.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;g.d.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var s=t.data,n=s.code,c=s.data;200===n&&a.setState({bigcourse:Object.assign({},e,{isMore:c.length>4,course:c.length>4?c.filter(function(e,t){return t<4}):c,courseList:c})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;g.d.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var s=t.data,n=s.errno,c=s.data;200===n&&a.setState({freecourse:Object.assign({},e,{isMore:c.course_info.length>4,course:c.course_info.length>4?c.course_info.filter(function(e,t){return t<4}):c.course_info,courseList:c.course_info})})})},a.fetchGroupCourse=function(){var e=a.state.groupcourse;g.d.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var s=t.data,n=s.code,c=s.data;200===n&&a.setState({groupcourse:Object.assign({},e,{isMore:c.length>4,course:c.length>4?c.filter(function(e,t){return t<4}):c,courseList:c})})})},a.fetchAICourse=function(e,t){g.d.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(s){var n=s.data,c=n.code,r=n.data;200===c&&a.getList(e,r,t)})},a.getList=function(e,t,s){var n=a.state,c=n.basic,r=n.advanced,o=n.higher,i=n.expand;"one"===e&&a.setState({basic:Object.assign({},c,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"two"===e&&a.setState({advanced:Object.assign({},r,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"three"===e&&a.setState({higher:Object.assign({},o,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!s,course:t.length>4&&!s?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:s})})},a.toQQque=function(){Object(g.c)("version")?Object(g.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="https://q.url.cn/AB8aue?_type=wpa&qidian=true"},a.toCourse=function(e){var t=a.props.history;Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.handleToMore=function(e){var t={};a.state[e].isMore?(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList,courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(r.a)({},t))):(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(r.a)({},t)))},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.freeStudy=function(){a.setState({tofreeStudy:!0})},a.closePopup=function(){a.setState({tofreeStudy:!1})},a.closePopupWish=function(){var e=Object(m.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(m.a)(a);g.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data;t.errno,t.data,t.msg;v.a.toDataURL("http://weixin.qq.com/q/02mntn9j4xcw01_VSN1tc2",function(e,t){a.setState({followBarcode:t})})})},a.addWishList=function(e,t){var s=Object(m.a)(a),n=!a.props.user.hasError;s.setState({wish:{id:e,key:t}}),n?s.isFollow(e,t):s.toLogin()},a.isFollow=function(e,t){var s=Object(m.a)(a);g.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var n=a.data,r=n.code,o=n.data,i=n.msg;200===r?(s.setState({isshowFollow:!o.is_follow}),s.state.isshowFollow?s.getQRcodeUrl():s.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var s=Object(m.a)(a);g.d.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,n=a.code,r=a.msg;200==n?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),s.getLength(),"1"===t&&s.fetchAICourse("one",s.state.basic.addshowMore),"2"===t&&s.fetchAICourse("two",s.state.advanced.addshowMore),"3"===t&&s.fetchAICourse("three",s.state.higher.addshowMore),"4"===t&&s.fetchAICourse("four",s.state.expand.addshowMore),"group"===t&&s.fetchGroupCourse()):c.a.info(r,2)})},a.saveImage=function(){var e=Object(g.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("generateQRCode","//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,s=t.code,n=t.data,r=t.msg;if(200===s){var o=n.info,i=n.removable_data;a.setState({removable:o.removable,currentId:o.removable>0?i[0].id:null})}else c.a.info(r)})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentId,s="";t&&(s="?id=".concat(t)),e?a.props.history.push("/year/yearTreasure".concat(s)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?a.props.history.push("/year/yearWish"):a.toLogin()},a.state={tofreeStudy:!1,basic:{course:[],courseList:[],isMore:!1,addshowMore:!1},advanced:{course:[],courseList:[],isMore:!1,addshowMore:!1},higher:{course:[],courseList:[],isMore:!1,addshowMore:!1},expand:{course:[],courseList:[],isMore:!1,addshowMore:!1},bigcourse:{course:[],courseList:[],isMore:!1},freecourse:{course:[],courseList:[],isMore:!1},groupcourse:{course:[],courseList:[],isMore:!1},isshowFollow:!1,wish:{id:"",key:""},followBarcode:"",sum:"",removable:"",currentId:""},a}return Object(d.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchFreeCourse(),this.fetchGroupCourse(),this.fetchAICourse("one",!1),this.fetchAICourse("two",!1),this.fetchAICourse("three",!1),this.fetchAICourse("four",!1)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.fetchBigCourse(),this.fetchFreeCourse(),this.fetchGroupCourse(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.bigcourse,s=t.freecourse,n=t.groupcourse,c=t.basic,r=t.advanced,o=t.higher,i=t.expand,l=t.removable,u=t.sum;return h.a.createElement("div",{className:"year-index-course"},h.a.createElement("div",{className:"nav-right"},h.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u62c6\u5b9d\u7bb1",l>0&&h.a.createElement("i",{className:"nav-right__number"},l)),h.a.createElement("a",{onClick:function(){return e.toYearWish()},className:"nav-right__link"},"\u5fc3\u613f\u5355",u>0&&h.a.createElement("i",{className:"nav-right__number"},u))),h.a.createElement(f.a,{title:"\u91cd\u78c5\u597d\u8bfe",id:"year-course"},h.a.createElement("div",null,a.course&&a.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"bigcourse course-box"},a.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toQQque()},className:"btn big-course"},"\u901f\u62a2\u62fc\u56e2\u540d\u989d")))})),a.courseList&&a.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("bigcourse")}},group.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66",id:"year-free"},h.a.createElement("div",null,s.course&&s.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"freecourse course-box"},s.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&h.a.createElement("a",{onClick:function(){return e.freeStudy()},className:"btn free-study"},"\u70b9\u51fb\u514d\u8d39\u5b66"),h.a.createElement("p",{className:"free-course-num"},"\u5df2\u9001\u51fa",h.a.createElement("span",null,t.act_num),"\u4e2a\u8bfe\u7a0b")))})),s.courseList&&s.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("freecourse")}},group.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u5f00\u62a2",id:"year-group"},h.a.createElement("div",null,n.course&&n.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},n.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12\u670823\u65e5\u5f00\u56e2")),h.a.createElement("div",{className:"price"},"\xa5",h.a.createElement("span",{className:"new-price"},"0.01"),h.a.createElement("span",{className:"old-price"},"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"group")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),n.courseList&&n.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},group.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),h.a.createElement(f.a,{title:"\u597d\u8bfe\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95",id:"year-discount"},h.a.createElement("div",null,h.a.createElement("h4",{className:"ai-course__subtitle"},"\u57fa\u7840"),c.course&&c.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},c.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"1")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),c.courseList&&c.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("basic")}},c.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u8fdb\u9636"),r.course&&r.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},r.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"2")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),r.courseList&&r.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("advanced")}},r.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u9ad8\u9636"),o.course&&o.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},o.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"3")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),o.courseList&&o.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("higher")}},o.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),h.a.createElement("h4",{className:"ai-course__subtitle"},"\u6269\u5c55"),i.course&&i.course.length>0&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"groupcourse course-box"},i.course.map(function(t){return h.a.createElement(E.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},h.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"type"},0==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&h.a.createElement(h.a.Fragment,null,h.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),h.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),h.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",h.a.createElement("span",{className:"new-price"},t.price2),h.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",h.a.createElement("s",null,"\xa5",t.price1))),h.a.createElement("div",{className:"status"},h.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&h.a.createElement("a",{className:"status-btn add-wish"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&h.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"4")},className:"status-btn add-wish-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),i.courseList&&i.courseList.length>4&&h.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("expand")}},i.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),this.state.tofreeStudy&&h.a.createElement(y.a,{top:100,closePopup:this.closePopup,mark:!1},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u8fdb\u5165\u670d\u52a1\u53f7\u56de\u590d",h.a.createElement("i",null,"77"),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))),this.state.isshowFollow&&h.a.createElement(y.a,{top:100,closePopup:this.closePopupWish,mark:!1},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u8bfe\u7a0b\u5f00\u552e\u7acb\u5373\u63d0\u9192\uff0c\u4e0d\u9519\u8fc7\u4efb\u4f55\u4f18\u60e0\u54e6\uff01"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:this.state.followBarcode,alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))))}}]),t}(p.Component))||s;t.a=Object(b.g)(j)}}]);
//# sourceMappingURL=2.fc8e3375.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/blessingPreheat/courseItem/index.js","components/activity/newyear-2019/common/commonContainer/index.js","components/activity/newyear-2019/common/commonPopup/index.js","components/activity/newyear-2019/common/prizes/index.js","components/activity/newyear-2019/common/user-bullet-screen/index.js","components/activity/newyear-2019/preheat/YearCourse/index.js"],"names":["CourseItem","_this$props","this","props","image","toCourse","id","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","onClick","children","Component","CommonContainer","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","title","React","Children","map","child","Fragment","index","_this","computedStyle","top","concat","width","closePopup","mark","style","e","stopPropagation","SystemBulletScreen","Loadable","__webpack_require__","then","bind","Prizes","closeIcon","state","prizes","notices","rule","unfoldList","getPrizes","http","get","API","home","res","_res$data","data","code","msg","setState","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","showRules","Popup","content","react__WEBPACK_IMPORTED_MODULE_7___default","dangerouslySetInnerHTML","__html","showMore","prev","bg","innerBox","prizeBox","headHeight","parseFloat","getComputedStyle","getPropertyValue","footerHeight","h","prizeList","scrollHeight","scrollListHeight","height","_this2","showSystemNotices","ref","el","href","item","key","img_name","is_captain","mode","stage_no","grant_max","UserBulletScreen","bulletScreenData","initializeBulletScreen","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__","indexArray","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__","Array","slidesPerRequest","keys","removed","swiper","Swiper","direction","allowTouchMove","autoplay","on","transitionEnd","_this3","slides","length","removeSlide","start","activeIndex","stop","getBulletScreenData","appendSlide","getSlides","setTimeout","list","avatar_file","user_name","initializeSwiper","arguments","undefined","YearCourse","connect","user","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","getLength","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","sum","fetchBigCourse","bigcourse","_res$data2","assign","isMore","course","filter","courseList","fetchFreeCourse","freecourse","_res$data3","errno","course_info","fetchGroupCourse","groupcourse","_res$data4","fetchAICourse","addshowMore","_res$data5","getList","_this2$state","basic","advanced","higher","expand","toQQque","getParam","SendMessageToApp","location","courseId","history","push","handleToMore","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","toLogin","freeStudy","tofreeStudy","closePopupWish","isshowFollow","toJoinList","wish","getQRcodeUrl","uid","_res$data6","QRCode","toDataURL","err","url","followBarcode","addWishList","isLogin","hasError","isFollow","_res$data7","is_follow","post","course_id","_res$data8","success","saveImage","version","replace","slice","parseInt","getTeamInfo","_res$data9","removable_data","removable","currentId","toBoxList","search","toYearWish","nextProps","nextState","nextContext","isAppUpdate","_this$state","react__WEBPACK_IMPORTED_MODULE_9___default","_common_commonContainer_index__WEBPACK_IMPORTED_MODULE_12__","_blessingPreheat_courseItem_index__WEBPACK_IMPORTED_MODULE_13__","image_name","is_buy","group","act_num","course_title","price1","is_join","type","price2","_common_commonPopup_index__WEBPACK_IMPORTED_MODULE_15__","browser","isAndroidApp","withRouter"],"mappings":"oQAGMA,2LACK,IAAAC,EACsBC,KAAKC,MAA1BC,EADDH,EACCG,MAAMC,EADPJ,EACOI,SAASC,EADhBL,EACgBK,GACvB,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,oBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBACbH,EAAAC,EAAA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b,8GAMhBR,KAAK4C,MAAMoI,cACXuC,EAAAjN,EAAAC,cAAC4N,EAAA,EAAD,CAAatM,IAAK,IAAKG,WAAYhC,KAAK+K,eAAgB9I,MAAM,GAC1DsL,EAAAjN,EAAAC,cAAA,OAAKC,UAAU,uBACX+M,EAAAjN,EAAAC,cAAA,KAAGC,UAAU,cAAb,4BACA+M,EAAAjN,EAAAC,cAAA,KAAGC,UAAU,YAAb,gHACA+M,EAAAjN,EAAAC,cAAA,OAAKC,UAAU,eAAeJ,GAAI,eAC7BK,IAAKT,KAAK4C,MAAM8I,cAAehL,IAAI,KAEpC0N,IAAQC,aACJd,EAAAjN,EAAAC,cAAA,UAAQC,UAAW,aAAcG,QAASX,KAAKqM,WAA/C,kCACAkB,EAAAjN,EAAAC,cAAA,KAAGC,UAAU,YAAb,sHAp9BXK,iBA89BVyN,gBAAWrG","file":"mrstatic/js/2.fc8e3375.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './index.scss';\n\nclass CourseItem extends Component {\n render() {\n const { image,toCourse,id} = this.props;\n return (\n <div className=\"course-container\">\n <div className=\"course__cover\">\n <img src={image} alt=\"cover\" onClick={() => toCourse(id)}/>\n </div>\n {this.props.children}\n </div>\n );\n }\n}\n\nexport default CourseItem;","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class CommonContainer extends Component {\n constructor(props) {\n super(props)\n }\n render() {\n const { id } = this.props;\n return (\n <div className='common_container' id={id}>\n <div className='container_top'></div>\n <div className='container_content'>\n {\n this.props.title &&\n <div className='title_container'>\n <i></i>\n <p>{this.props.title}</p>\n <i></i>\n </div>\n }\n {\n React.Children.map(this.props.children, function (child) {\n return <>{child}</>;\n })\n }\n </div>\n <div className='container_bottom'></div>\n </div>\n )\n }\n}\n","import React, { Component } from 'react';\nimport './index.scss';\n\nexport default class index extends Component {\n constructor(props) {\n super(props);\n }\n computedStyle = () => {\n return {\n 'top': `${this.props.top}px`,\n 'width': `${this.props.width}px`\n }\n }\n\n // 控制点击空白处是否关闭弹窗 需要传递一个boolean属性 mark\n closePopup = () => {\n if(this.props.mark) {\n this.props.closePopup();\n }\n }\n\n render() {\n return (\n <div className='popup__container' onClick={this.closePopup}>\n <div className='content__container' style={this.computedStyle()} onClick={(e) => {e.stopPropagation()}}>\n <img className=\"close__btn\" onClick={this.props.closePopup} src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png' alt=\"\" />\n {\n React.Children.map(this.props.children, function (child) {\n return <>{child}</>;\n })\n }\n </div>\n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport { http } from \"@/utils\"\nimport './prizes.scss'\nimport { Popup } from \"@common/index\"\nimport { Toast } from \"antd-mobile\"\n\n\nimport Loadable from '@loadable/component'\n\nconst SystemBulletScreen = Loadable(() => import(/* webpackChunkName: 'system-notices' */'@components/activity/newyear-2019/common/system-bullet-screen'))\n\nclass Prizes extends Component {\n\n prizeBox\n prizeList\n bg\n innerBox\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n\n state = {\n prizes: [],\n notices: [],\n rule: [],\n unfoldList: false,\n }\n\n componentDidMount() {\n this.getPrizes()\n }\n\n getPrizes = () => {\n http.get(`${API.home}/sys/prize_data`)\n .then(res => {\n const {code, data, msg} = res.data\n if (code == 200) {\n\n this.setState({\n prizes: data['prize_data'],\n notices: data['notices'],\n rule: data['rule']\n })\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n\n showRules = () => {\n Popup({\n title: '组队开宝箱活动规则',\n className: 'landing-treasure-rules',\n content: <div dangerouslySetInnerHTML={{__html: this.state.rule}}/>,\n closeIcon: this.closeIcon\n })\n }\n\n\n showMore = () => {\n this.setState(prev => {\n if (this.state.unfoldList) {\n this.bg.style = this.innerBox.style = this.prizeBox.style = ''\n } else {\n let headHeight = parseFloat(getComputedStyle(this.prizeBox, ':before').getPropertyValue('height')),\n footerHeight = parseFloat(getComputedStyle(this.prizeBox, ':after').getPropertyValue('height')),\n innerOffsetTop = 0.12458,\n footerOffsetTop = 0.595,\n h = this.prizeList.scrollHeight,\n scrollListHeight = headHeight + h - (innerOffsetTop * headHeight) - (footerOffsetTop * footerHeight) + footerHeight,\n bottomOffset = 27\n\n this.prizeBox.style.height = `${scrollListHeight + bottomOffset}px`\n this.innerBox.style.height = `${h}px`\n this.bg.style.height = `${h - footerHeight + innerOffsetTop * headHeight + bottomOffset}px`\n }\n return {unfoldList: !prev.unfoldList}\n })\n\n }\n\n render() {\n const {\n showSystemNotices\n } = this.props\n return (\n <>\n {showSystemNotices && <SystemBulletScreen/>}\n <div className={'prizes-box'} ref={el => this.prizeBox = el}>\n <a href=\"javascript:;\" className='rule-btn' onClick={this.showRules}>活动规则 > </a>\n <div className={`bg`} ref={el => this.bg = el}/>\n <div className={`inner-box`} ref={el => this.innerBox = el}>\n <ul className='prize-list' ref={el => this.prizeList = el}>\n {\n this.state.prizes.map((item, index) => {\n return (\n <li key={index}>\n <img src={item.img_name} alt=\"\"/>\n {\n item.is_captain != 0 && <span className='captain top-tag'>队长专属</span>\n }\n {\n item.mode === 2 && <span className='stage top-tag'>第{item.stage_no}次必中</span>\n }\n {\n item.grant_max\n ?\n <div className='bottom-bar'>\n <div className=\"progress-bar\"><span className={'progress'}/></div>\n <span>限量{item.grant_max}份</span>\n </div>\n : <span className='no-limit'>不限量</span>\n }\n </li>\n )\n })\n }\n <li>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png\" alt=\"\"/>\n </li>\n </ul>\n </div>\n <div className=\"show-more\" onClick={this.showMore}>\n {\n this.state.unfoldList\n ? <div>\n 收起\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png\" alt=\"\"/>\n </div>\n : <div>\n 查看全部奖品\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png\" alt=\"\"/>\n </div>\n }\n </div>\n </div>\n </>\n )\n }\n}\n\nexport default Prizes\n","import React, { Component } from 'react'\nimport { http } from \"@/utils\"\nimport Swiper from 'swiper'\nimport 'swiper/dist/css/swiper.min.css'\nimport './bullet-screen.scss'\n\nclass UserBulletScreen extends Component {\n\n state = {\n bulletScreenData: []\n }\n\n componentDidMount() {\n this.getBulletScreenData(true)\n }\n\n\n initializeBulletScreen = () => {\n const _this = this\n const slidesPerRequest = 20\n const indexArray = [...Array(slidesPerRequest - 1).keys()]\n let removed = false\n this.swiper = new Swiper('.swiper-container', {\n direction: 'vertical',\n allowTouchMove: false,\n autoplay: true,\n on: {\n transitionEnd() {\n if (this.slides.length > slidesPerRequest) {\n this.removeSlide(0)\n this.autoplay.start()\n }\n if (this.activeIndex === this.slides.length - 1 && !removed) {\n this.autoplay.stop()\n _this.getBulletScreenData().then(res => {\n removed = true\n this.removeSlide(indexArray)\n this.appendSlide(_this.getSlides(res))\n setTimeout(() => {\n this.autoplay.start()\n removed = false\n })\n })\n }\n }\n }\n })\n }\n\n getSlides = list => list.map(item => {\n return `\n <li class=\"swiper-slide\">\n <img class=\"avatar\" src=\"${item.avatar_file}\" alt=\"\">\n <span>${item.user_name} ${item.msg}</span>\n </li>\n `\n })\n\n getBulletScreenData = (initializeSwiper = false) => {\n return http.get(`${API.home}/sys/barrage_data`)\n .then(res => {\n const {data, code} = res.data\n if (code == 200) {\n if (initializeSwiper) {\n this.setState({\n bulletScreenData: data\n }, () => {\n this.initializeBulletScreen()\n })\n } else {\n return data\n }\n }\n })\n }\n\n\n render() {\n const {bulletScreenData} = this.state\n return (\n <div id=\"user-bullet-screen\" className='swiper-container'>\n <ul className='swiper-wrapper'>\n {\n bulletScreenData.length && bulletScreenData.map((item, index) => {\n return (\n <li className='swiper-slide' key={index}>\n <img src={item['avatar_file']}\n alt=\"\" className=\"avatar\"/>\n <span>{item.user_name} {item.msg}</span>\n </li>\n )\n })\n }\n </ul>\n </div>\n )\n }\n}\n\nexport default UserBulletScreen\n","import React, {Component} from 'react'\nimport './index.scss'\nimport {http, SendMessageToApp, getParam, browser} from '@/utils'\nimport CommonContainer from './../../common/commonContainer/index'\nimport CourseItem from '../../../../blessingPreheat/courseItem/index'\nimport {withRouter} from \"react-router-dom\"\nimport CommonPopup from './../../common/commonPopup/index'\nimport {Toast} from 'antd-mobile'\nimport QRCode from 'qrcode'\nimport {connect} from \"react-redux\"\n\n@connect(state => ({\n user: state.user\n}))\n\nclass YearCourse extends Component {\n constructor(props) {\n super(props)\n this.state = {\n tofreeStudy: false,\n basic: {\n course: [],\n courseList: [],\n isMore: false,\n addshowMore: false,\n },\n advanced: {\n course: [],\n courseList: [],\n isMore: false,\n addshowMore: false,\n },\n higher: {\n course: [],\n courseList: [],\n isMore: false,\n addshowMore: false,\n },\n expand: {\n course: [],\n courseList: [],\n isMore: false,\n addshowMore: false,\n },\n bigcourse: {\n course: [],\n courseList: [],\n isMore: false,\n },\n freecourse: {\n course: [],\n courseList: [],\n isMore: false,\n },\n groupcourse: {\n course: [],\n courseList: [],\n isMore: false,\n },\n isshowFollow: false, // 是否提示关注公众号\n wish: {\n id: '',\n key: \"\"\n },\n followBarcode: '',\n sum:'',\n removable:'',\n currentId:''\n }\n }\n\n componentDidMount() {\n this.getTeamInfo()\n this.getLength()\n this.fetchBigCourse()\n this.fetchFreeCourse()\n this.fetchGroupCourse()\n // AI之路-基础\n this.fetchAICourse('one', false)\n // AI之路-进阶\n this.fetchAICourse('two', false)\n // AI之路-高阶\n this.fetchAICourse('three', false)\n // AI之路-拓展\n this.fetchAICourse('four', false)\n }\n\n shouldComponentUpdate(nextProps, nextState, nextContext) {\n if (this.props.isAppUpdate !== nextProps.isAppUpdate) {\n this.fetchBigCourse()\n this.fetchFreeCourse()\n this.fetchGroupCourse()\n // AI之路-基础\n this.fetchAICourse('one')\n // AI之路-进阶\n this.fetchAICourse('two')\n // AI之路-高阶\n this.fetchAICourse('three')\n // AI之路-拓展\n this.fetchAICourse('four')\n return false\n }\n return true\n }\n\n getLength = () => {\n let _this = this\n http.get(`${API.home}/activity/wish_sum`).then(res => {\n const {code, data} = res.data\n if (code == 200) {\n _this.setState({\n sum: data.sum\n })\n }\n })\n }\n\n fetchBigCourse = () => {\n const {bigcourse} = this.state\n http.get(`${API.home}/activity/preheat_data`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.setState({\n bigcourse: Object.assign({}, bigcourse, {\n isMore: data.length > 4 ? true : false,\n course: data.length > 4 ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n })\n })\n }\n })\n }\n fetchFreeCourse = () => {\n const {freecourse} = this.state\n http.get(`${API['base-api']}/assistance/detail`).then(res => {\n const {errno, data} = res.data\n if (errno === 200) {\n this.setState({\n freecourse: Object.assign({}, freecourse, {\n isMore: data.course_info.length > 4 ? true : false,\n course: data.course_info.length > 4 ? data.course_info.filter((item, index) => index < 4) : data.course_info,\n courseList: data.course_info,\n })\n })\n }\n })\n }\n fetchGroupCourse = () => {\n const {groupcourse} = this.state\n http.get(`${API.home}/activity/excellent_course`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.setState({\n groupcourse: Object.assign({}, groupcourse, {\n isMore: data.length > 4 ? true : false,\n course: data.length > 4 ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n })\n })\n }\n })\n }\n\n fetchAICourse = (key, addshowMore) => {\n http.get(`${API.home}/activity/four_stage/${key}`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.getList(key, data, addshowMore)\n }\n })\n }\n\n getList = (key, data, addshowMore) => {\n const {basic, advanced, higher, expand} = this.state\n if (key === 'one') {\n this.setState({\n basic: Object.assign({}, basic, {\n isMore: data.length > 4 && !addshowMore ? true : false,\n course: data.length > 4 && !addshowMore ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n addshowMore: addshowMore,\n })\n })\n }\n if (key === 'two') {\n this.setState({\n advanced: Object.assign({}, advanced, {\n isMore: data.length > 4 && !addshowMore ? true : false,\n course: data.length > 4 && !addshowMore ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n addshowMore: addshowMore,\n })\n })\n }\n if (key === 'three') {\n this.setState({\n higher: Object.assign({}, higher, {\n isMore: data.length > 4 && !addshowMore ? true : false,\n course: data.length > 4 && !addshowMore ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n addshowMore: addshowMore,\n })\n })\n }\n if (key === 'four') {\n this.setState({\n expand: Object.assign({}, expand, {\n isMore: data.length > 4 && !addshowMore ? true : false,\n course: data.length > 4 && !addshowMore ? data.filter((item, index) => index < 4) : data,\n courseList: data,\n addshowMore: addshowMore,\n })\n })\n }\n }\n\n toQQque = () => {\n if (!getParam('version')) {\n location.href = 'https://q.url.cn/AB8aue?_type=wpa&qidian=true'\n } else {\n SendMessageToApp(\"toQQ\", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')\n }\n }\n\n // 去课程详情页\n toCourse = (courseId) => {\n const {history} = this.props\n if (!getParam('version')) {\n history.push(`/detail?id=${courseId}`)\n } else {\n SendMessageToApp(\"toCourse\", courseId)\n }\n }\n handleToMore = (key) => {\n let data = {}\n if (this.state[key]['isMore']) {\n data[key] = {\n isMore: !this.state[key]['isMore'],\n course: this.state[key]['courseList'],\n courseList: this.state[key]['courseList'],\n addshowMore: !this.state[key]['addshowMore']\n }\n this.setState({\n ...data\n })\n } else {\n data[key] = {\n isMore: !this.state[key]['isMore'],\n course: this.state[key]['courseList'].filter((item, index) => index < 4),\n courseList: this.state[key]['courseList'],\n addshowMore: !this.state[key]['addshowMore']\n }\n\n this.setState({\n ...data\n })\n }\n }\n\n // 去登录\n toLogin = () => {\n if (!getParam('version')) {\n this.props.history.push('/passport/login')\n } else {\n SendMessageToApp(\"toLogin\")\n }\n }\n\n // 免费学习\n freeStudy = () => {\n this.setState({\n tofreeStudy: true,\n })\n }\n // 关闭弹框\n closePopup = () => {\n this.setState({\n tofreeStudy: false,\n })\n }\n\n closePopupWish = () => {\n const _this = this\n _this.setState({\n isshowFollow: false\n })\n\n setTimeout(function () {\n _this.toJoinList(_this.state.wish.id, _this.state.wish.key)\n }, 200)\n }\n\n getQRcodeUrl = () => {\n let _this = this\n http.get(`${API['base-api']}/wx/user_temporary_qrcode/${_this.props.user.data.uid}`)\n .then(res => {\n const {errno, data, msg} = res.data\n QRCode.toDataURL('http://weixin.qq.com/q/02mntn9j4xcw01_VSN1tc2', (err, url) => {\n this.setState({\n followBarcode: url,\n })\n })\n // _this.followBarcode = \"https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEV8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAybW50bjlqNHhjdzAxX1ZTTjF0YzIAAgR5pfBdAwSAUQEA\"\n\n // if (errno == 0) {\n // _this.followBarcode = data.url\n // } else {\n // Message.warning(msg)\n // }\n })\n }\n\n // 点击加入心愿单登录验证,在判断是否关注公众号,已关注的话直接加入,未关注弹出二维码弹窗,点击关闭按钮加入心愿单\n addWishList = (id, key) => {\n const _this = this\n const isLogin = !this.props.user.hasError\n _this.setState({\n wish: {\n id: id,\n key: key\n }\n })\n\n if (isLogin) {\n _this.isFollow(id, key)\n } else {\n _this.toLogin()\n }\n }\n\n isFollow = (id, key) => {\n const _this = this\n http.get(`${API.home}/sys/user/isFollowWeChat`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n _this.setState({\n isshowFollow: !data.is_follow\n })\n\n if (!_this.state.isshowFollow) {\n _this.toJoinList(id, key)\n } else {\n _this.getQRcodeUrl()\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n toJoinList = (id, key) => {\n const _this = this\n http.post(`${API.home}/activity/join_list`, {course_id: id})\n .then(res => {\n const {code, msg} = res.data\n if (code == 200) {\n Toast.success('已成功加入心愿单', 3)\n _this.getLength()\n if (key === '1') {\n _this.fetchAICourse('one', _this.state.basic.addshowMore)\n }\n if (key === '2') {\n _this.fetchAICourse('two', _this.state.advanced.addshowMore)\n }\n if (key === '3') {\n _this.fetchAICourse('three', _this.state.higher.addshowMore)\n }\n if (key === '4') {\n _this.fetchAICourse('four', _this.state.expand.addshowMore)\n }\n if (key === 'group') {\n _this.fetchGroupCourse()\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n // 安卓手机保存二维码\n saveImage = () => {\n let version = getParam('version')\n version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''\n const QRCodeUrl = '//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg'\n if (version && parseInt(version) < 451) {\n Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)\n } else {\n SendMessageToApp('generateQRCode', QRCodeUrl)\n }\n }\n\n // 获取队伍信息\n getTeamInfo = () => {\n http.get(`${API.home}/sys/treasure/teamInfo`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n const {info, removable_data} = data\n this.setState({\n removable: info.removable,\n currentId: info.removable > 0 ? removable_data[0].id : null\n })\n } else {\n Toast.info(msg)\n }\n })\n }\n\n // 跳转到我的宝箱列表页\n toBoxList = () => {\n const isLogin = !this.props.user.hasError\n const {currentId} = this.state\n let search = ''\n if (currentId) {\n search = `?id=${currentId}`\n }\n if (isLogin) {\n this.props.history.push(`/year/yearTreasure${search}`)\n } else {\n this.toLogin()\n }\n }\n\n toYearWish = () => {\n const isLogin = !this.props.user.hasError\n if (isLogin) {\n this.props.history.push('/year/yearWish')\n } else {\n this.toLogin()\n }\n\n }\n\n render() {\n const {bigcourse, freecourse, groupcourse, basic, advanced, higher, expand,removable,sum} = this.state\n\n return (\n <div className={'year-index-course'}>\n {/*浮框*/}\n <div className='nav-right'>\n <span onClick={this.toBoxList} className='nav-right__link'>\n 未拆宝箱\n {\n removable > 0 &&\n <i className=\"nav-right__number\">{removable}</i>\n }\n </span>\n <a onClick={() => this.toYearWish()} className='nav-right__link'>\n 心愿单\n {\n sum > 0 &&\n <i className=\"nav-right__number\">{sum}</i>\n }\n </a>\n </div>\n\n <CommonContainer title='重磅好课' id='year-course'>\n <div>\n {\n (bigcourse.course && bigcourse.course.length > 0) &&\n <>\n <div className='bigcourse course-box'>\n {\n bigcourse.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <a onClick={() => this.toCourse(item.course_id)} className=\"btn to-study\">开始学习</a>\n }\n {\n item.is_buy == 0 &&\n <a onClick={() => this.toQQque()}\n className=\"btn big-course\">速抢拼团名额</a>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (bigcourse.courseList && bigcourse.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('bigcourse')}>\n {group.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n </div>\n </CommonContainer>\n <CommonContainer title='人气好课免费学' id='year-free'>\n <div>\n {\n (freecourse.course && freecourse.course.length > 0) &&\n <>\n <div className='freecourse course-box'>\n {\n freecourse.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <a onClick={() => this.toCourse(item.course_id)} className=\"btn to-study\">开始学习</a>\n }\n {\n item.is_buy == 0 &&\n <a onClick={() => this.freeStudy()}\n className=\"btn free-study\">点击免费学</a>\n }\n\n <p className=\"free-course-num\">已送出<span>{item.act_num}</span>个课程</p>\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (freecourse.courseList && freecourse.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('freecourse')}>\n {group.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n </div>\n </CommonContainer>\n <CommonContainer title='精品好课1分开抢' id='year-group'>\n <div>\n {\n (groupcourse.course && groupcourse.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n groupcourse.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"group-num\">限量300个</div>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12月23日开团</span>\n </div>\n <div className=\"price\">¥\n <span className=\"new-price\">0.01</span>\n <span\n className=\"old-price\">现价:<s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, 'group')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (groupcourse.courseList && groupcourse.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('groupcourse')}>\n {group.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n </div>\n </CommonContainer>\n <CommonContainer title='好课价到,等你抄底' id='year-discount'>\n <div>\n <h4 className=\"ai-course__subtitle\">基础</h4>\n {\n (basic.course && basic.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n basic.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n {\n item.type == 0 &&\n <>\n <span className=\"tag\">活动价</span>\n <span className=\"time\">12.23开始</span>\n </>\n }\n {\n item.type == 1 &&\n <>\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12.23开团</span>\n </>\n }\n {\n item.type == 2 &&\n <>\n <span className=\"tag\">好友帮帮砍</span>\n <span className=\"time\">12.23开砍</span>\n </>\n }\n\n </div>\n <div className=\"price\">\n {item.type == 2 ? '到手最低:¥' : '¥'}\n <span className=\"new-price\">{item.price2}</span>\n <span\n className=\"old-price\">\n {item.type == 2 ? '' : '现价:'}\n <s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, '1')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (basic.courseList && basic.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('basic')}>\n {basic.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n\n <h4 className=\"ai-course__subtitle\">进阶</h4>\n {\n (advanced.course && advanced.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n advanced.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n {\n item.type == 0 &&\n <>\n <span className=\"tag\">活动价</span>\n <span className=\"time\">12.23开始</span>\n </>\n }\n {\n item.type == 1 &&\n <>\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12.23开团</span>\n </>\n }\n {\n item.type == 2 &&\n <>\n <span className=\"tag\">好友帮帮砍</span>\n <span className=\"time\">12.23开砍</span>\n </>\n }\n\n </div>\n <div className=\"price\">\n {item.type == 2 ? '到手最低:¥' : '¥'}\n <span className=\"new-price\">{item.price2}</span>\n <span\n className=\"old-price\">\n {item.type == 2 ? '' : '现价:'}\n <s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, '2')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (advanced.courseList && advanced.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('advanced')}>\n {advanced.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n\n <h4 className=\"ai-course__subtitle\">高阶</h4>\n {\n (higher.course && higher.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n higher.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n {\n item.type == 0 &&\n <>\n <span className=\"tag\">活动价</span>\n <span className=\"time\">12.23开始</span>\n </>\n }\n {\n item.type == 1 &&\n <>\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12.23开团</span>\n </>\n }\n {\n item.type == 2 &&\n <>\n <span className=\"tag\">好友帮帮砍</span>\n <span className=\"time\">12.23开砍</span>\n </>\n }\n\n </div>\n <div className=\"price\">\n {item.type == 2 ? '到手最低:¥' : '¥'}\n <span className=\"new-price\">{item.price2}</span>\n <span\n className=\"old-price\">\n {item.type == 2 ? '' : '现价:'}\n <s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, '3')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (higher.courseList && higher.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('higher')}>\n {higher.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n\n <h4 className=\"ai-course__subtitle\">扩展</h4>\n {\n (expand.course && expand.course.length > 0) &&\n <>\n <div className='groupcourse course-box'>\n {\n expand.course.map(item => (\n <CourseItem image={item.image_name} key={item.course_id} id={item.course_id}\n toCourse={this.toCourse}>\n <div className=\"coupon-course__footer\">\n {\n item.is_buy == 1 &&\n <>\n <p className={'course-title text-overflow-1'}>{item.course_title}</p>\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"btn to-study\">开始学习</a>\n </>\n }\n {\n item.is_buy == 0 &&\n <>\n <div className=\"type\">\n {\n item.type == 0 &&\n <>\n <span className=\"tag\">活动价</span>\n <span className=\"time\">12.23开始</span>\n </>\n }\n {\n item.type == 1 &&\n <>\n <span className=\"tag\">拼团价</span>\n <span className=\"time\">12.23开团</span>\n </>\n }\n {\n item.type == 2 &&\n <>\n <span className=\"tag\">好友帮帮砍</span>\n <span className=\"time\">12.23开砍</span>\n </>\n }\n\n </div>\n <div className=\"price\">\n {item.type == 2 ? '到手最低:¥' : '¥'}\n <span className=\"new-price\">{item.price2}</span>\n <span\n className=\"old-price\">\n {item.type == 2 ? '' : '现价:'}\n <s>¥{item.price1}</s></span>\n </div>\n\n <div className=\"status\">\n <a onClick={() => this.toCourse(item.course_id)}\n className=\"status-btn to-buy\">直接购买</a>\n {\n item.is_join == 1 &&\n <a className=\"status-btn add-wish\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png\"\n alt=\"\"/>已加心愿单</a>\n }\n {\n item.is_join == 0 &&\n <a\n onClick={() => this.addWishList(item.course_id, '4')}\n className=\"status-btn add-wish-success\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png\"\n alt=\"\"/>加入心愿单\n </a>\n }\n </div>\n </>\n }\n\n </div>\n </CourseItem>\n ))\n }\n </div>\n {\n (expand.courseList && expand.courseList.length > 4) &&\n <button className=\"more-button\" onClick={() => this.handleToMore('expand')}>\n {expand.isMore ? '查看更多' : '收起'}\n </button>\n }\n </>\n }\n </div>\n </CommonContainer>\n\n {\n this.state.tofreeStudy &&\n <CommonPopup top={100} closePopup={this.closePopup} mark={false}>\n <div className='sub__code_container'>\n <p className='sub__title'>提醒服务</p>\n <p className='sub__tip'>进入服务号回复<i>77</i>免费领取课程</p>\n <img className='sub__qr_code' id={'live-qr-code'}\n src='//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg' alt=\"\"/>\n {\n browser.isAndroidApp ? (\n <button className={'save-image'} onClick={this.saveImage}>保存二维码</button>\n ) : <p className='sub__tip'>长按识别/扫码 关注【七月在线】服务号</p>\n }\n </div>\n </CommonPopup>\n }\n {\n this.state.isshowFollow &&\n <CommonPopup top={100} closePopup={this.closePopupWish} mark={false}>\n <div className='sub__code_container'>\n <p className='sub__title'>提醒服务</p>\n <p className='sub__tip'>课程开售立即提醒,不错过任何优惠哦!</p>\n <img className='sub__qr_code' id={'live-qr-code'}\n src={this.state.followBarcode} alt=\"\"/>\n {\n browser.isAndroidApp ? (\n <button className={'save-image'} onClick={this.saveImage}>保存二维码</button>\n ) : <p className='sub__tip'>长按识别/扫码 关注【七月在线】服务号</p>\n }\n </div>\n </CommonPopup>\n }\n </div>\n )\n }\n}\n\nexport default withRouter(YearCourse)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1229:function(e,t,a){},1232:function(e,t,a){},1298:function(e,t,a){"use strict";a.r(t);a(154);var n=a(35),c=a.n(n),s=(a(41),a(12)),r=a.n(s),i=a(5),o=a(7),l=a(6),m=a(8),u=a(89),p=a(9),d=a(0),h=a.n(d),g=(a(1229),function(e){function t(){return Object(i.a)(this,t),Object(l.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(d.Component)),b=a(28),E=a(22),v=a(817),y=a(818),f=(a(1232),a(3)),j=a(16),w=a(587),_=a.n(w),S=a(819),N=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(l.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.swiper=null,a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin")},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,s=void 0===c?a.state.treasure_code:c;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:s,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,s=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status});var i=new URLSearchParams(window.location.search);"1"!==i.get("origin")||f.b.isWeixin||(i.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(i.toString()))),a.showSharePromptWithParam()}else r.a.info(s,2,null,!1)})},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,s=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:r.a.info(s,2,null,!1)}else r.a.info(s,2,null,!1)})}},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,s=c.team_num,r=c.lack_member,i=c.is_team,o=c.treasure_code,l=a.props.history;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":i?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,s),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,r),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/treasure-box.png",alt:"",onClick:function(){a.joinSuccessPopup&&a.joinSuccessPopup.remove(),l.push("/year/yearTreasure?id=".concat(t))}}):i?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(u.a)(a),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,s=t.user,r=t.location;f.b.isWeixin&&Object(f.i)({title:"@".concat(s.data.username," \u9080\u60a8\u4e00\u8d77\u7ec4\u961f\u62ff\u8c6a\u793c\uff01"),desc:"\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01",link:"".concat(window.location.origin,"/").concat(r.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png"}),sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,s=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(u.a)(a),s)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",s)}})})},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}),_.a.toDataURL("http://m.julyedu.com").then(function(c){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:c,alt:""}),h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){a.fetchPageData({treasure_code:t,origin:n})}})})},a.showShareTip=function(){var e=a.props.user;if(f.b.isAndroidApp);else if(f.b.isIOSApp)Object(f.a)("toShare",{title:"@".concat(e.data.username," \u9080\u60a8\u4e00\u8d77\u7ec4\u961f\u62ff\u8c6a\u793c\uff01"),desc:"\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01",link:"".concat(window.location.origin,"/").concat(location.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png"});else{var t=a.props,n=t.history,c=t.match;f.b.isWeixin&&1==Object(f.c)("origin")&&n.replace("".concat(c.url,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2")),Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),e.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})}},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,s=t.msg;200==c?a.createTeamSuccess(n):r.a.info(s,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history;if(e.user.hasError)return t.push("/passport"),!0},a}return Object(p.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchPageData(),window.showFollowAlert=this.remind("create")}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,s=t.status,r=t.lack_member,i=t.team_num,o=t.prize_info,l=t.my_team,m=e.activityEnd,u=e.isCaptain;return h.a.createElement("div",{id:"landing"},h.a.createElement("div",{id:"to-square"},h.a.createElement(j.b,{to:"/year/yearindex"},"\u524d\u5f80\u6d3b\u52a8\u4f1a\u573a\uff0c\u4eab\u66f4\u591a\u798f\u5229\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco"}),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===s?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(v.a,{showSystemNotices:!1}),h.a.createElement(y.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===s&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",r," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===s&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),4===s&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),2===s&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!u&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u6b21\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!u&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{size:"xl"}),h.a.createElement(S.a,{getSum:function(){}})))}}]),t}(d.Component);t.default=Object(E.b)(function(e){return{user:e.user}},null)(N)}}]);
//# sourceMappingURL=newyear-2019-landing.452d7bd3.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1229:function(e,t,a){},1232:function(e,t,a){},1298:function(e,t,a){"use strict";a.r(t);a(154);var n=a(35),c=a.n(n),s=(a(41),a(12)),r=a.n(s),i=a(5),o=a(7),l=a(6),m=a(8),u=a(89),p=a(9),d=a(0),h=a.n(d),g=(a(1229),function(e){function t(){return Object(i.a)(this,t),Object(l.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(d.Component)),b=a(28),E=a(22),v=a(817),y=a(818),f=(a(1232),a(3)),j=a(16),w=a(587),_=a.n(w),S=a(819),N=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(l.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.swiper=null,a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin")},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,s=void 0===c?a.state.treasure_code:c;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:s,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,s=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status});var i=new URLSearchParams(window.location.search);"1"!==i.get("origin")||f.b.isWeixin||(i.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(i.toString()))),a.showSharePromptWithParam()}else r.a.info(s,2,null,!1)})},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,s=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:r.a.info(s,2,null,!1)}else r.a.info(s,2,null,!1)})}},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,s=c.team_num,r=c.lack_member,i=c.is_team,o=c.treasure_code,l=a.props.history;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":i?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,s),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,r),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/treasure-box.png",alt:"",onClick:function(){a.joinSuccessPopup&&a.joinSuccessPopup.remove(),l.push("/year/yearTreasure?id=".concat(t))}}):i?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(u.a)(a),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,s=t.user,r=t.location;f.b.isWeixin&&Object(f.i)({title:"@".concat(s.data.username," \u9080\u60a8\u4e00\u8d77\u7ec4\u961f\u62ff\u8c6a\u793c\uff01"),desc:"\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01",link:"".concat(window.location.origin,"/").concat(r.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png"}),sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,s=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(u.a)(a),s)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",s)}})})},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}),_.a.toDataURL("http://m.julyedu.com").then(function(c){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:c,alt:""}),h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){a.fetchPageData({treasure_code:t,origin:n})}})})},a.showShareTip=function(){var e=a.props.user;if(f.b.isAndroidApp);else if(f.b.isIOSApp)Object(f.a)("toShare",{title:"@".concat(e.data.username," \u9080\u60a8\u4e00\u8d77\u7ec4\u961f\u62ff\u8c6a\u793c\uff01"),desc:"\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01",link:"".concat(window.location.origin,"/").concat(location.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png"});else{var t=a.props,n=t.history,c=t.match;f.b.isWeixin&&1==Object(f.c)("origin")&&n.replace("".concat(c.url,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2")),Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),e.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})}},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,s=t.msg;200==c?a.createTeamSuccess(n):r.a.info(s,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history;if(e.user.hasError)return t.push("/passport"),!0},a}return Object(p.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchPageData(),window.showFollowAlert=this.remind.bind(this,"create")}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,s=t.status,r=t.lack_member,i=t.team_num,o=t.prize_info,l=t.my_team,m=e.activityEnd,u=e.isCaptain;return h.a.createElement("div",{id:"landing"},h.a.createElement("div",{id:"to-square"},h.a.createElement(j.b,{to:"/year/yearindex"},"\u524d\u5f80\u6d3b\u52a8\u4f1a\u573a\uff0c\u4eab\u66f4\u591a\u798f\u5229\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco"}),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===s?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(v.a,{showSystemNotices:!1}),h.a.createElement(y.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===s&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",r," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===s&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),4===s&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),2===s&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!u&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u6b21\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!u&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{size:"xl"}),h.a.createElement(S.a,{getSum:function(){}})))}}]),t}(d.Component);t.default=Object(E.b)(function(e){return{user:e.user}},null)(N)}}]);
//# sourceMappingURL=newyear-2019-landing.2a088d23.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/box-container/container.js","components/activity/newyear-2019/landing/index.js"],"names":["Container","react_default","a","createElement","className","this","props","children","Component","Landing","closeIcon","createTeamSuccessPopup","joinSuccessPopup","swiper","state","teamData","member","origin","sessionStorage","getItem","getParam","treasure_code","activityEnd","notices","rule","isCaptain","fetchPageData","_ref","arguments","length","undefined","_ref$origin","_this","_ref$treasure_code","http","post","concat","API","home","then","res","_res$data","data","code","msg","setState","status","searchParams","URLSearchParams","window","location","search","get","browser","isWeixin","set","setItem","history","replaceState","toString","showSharePromptWithParam","toast_default","info","showShareTip","joinTeam","requiredLogin","_res$data2","joinSuccess","_ref2","id","_ref2$my_team","my_team","team_num","lack_member","is_team","Popup","title","src","alt","content","Fragment","style","width","marginTop","onClick","remove","push","type","inviteMembers","bind","Object","assertThisInitialized","createMyTeam","close","getFollowStatus","isFollow","remind","_this$props","match","user","wxShare","username","desc","link","pathname","imgUrl","replace","url","_res$data3","createTeamSuccess","_ref3","Array","fill","map","item","index","_member","key","afterClose","uid","QRCode","toDataURL","isAndroidApp","isIOSApp","SendMessageToApp","_this$props2","closable","removeItem","hasError","showOpenInBrowserTip","_res$data4","_this$props3","showFollowAlert","prevProps","_this$state","_this$state$teamData","head_img","prize_info","react_router_dom","to","container","prizes","showSystemNotices","user_bullet_screen","is_captain","stage_no","name","white_space_default","size","YearCourse","getSum","connect"],"mappings":"iQAceA,4LAVX,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAW,iBACdH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACZC,KAAKC,MAAMC,kBALEC,oGCYlBC,6MAGJC,UAAY,+EACZC,uBAAyB,OACzBC,iBAAmB,OACnBC,OAAS,OAETC,MAAQ,CACNC,SAAU,CACRC,OAAQ,IAEVC,OAAQC,eAAeC,QAAQ,aAAe,EAAIC,YAAS,UAC3DC,cAAeD,YAAS,iBACxBE,aAAa,EACbC,QAAS,GACTC,KAAM,GACNC,UAA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W,aAAcgF,QAAS/E,KAAK2D,UAA9D,wCAKhCyE,GAAoC,IAAtBA,EAAW5G,SAAiBP,IAAgBG,GAAaxB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,oBAAf,SACnEqI,EAAW,GAAGQ,SADqD,sBACvCR,EAAW,GAAGS,MAI9C5H,GACArB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,6CACAF,EAAAC,EAAAC,cAAA,iIACAF,EAAAC,EAAAC,cAAA,OAAK0E,IAAI,kFAAkFC,IAAI,KAC/F7E,EAAAC,EAAAC,cAAA,sEAMLsB,GACDxB,EAAAC,EAAAC,cAAAF,EAAAC,EAAA8E,SAAA,KACE/E,EAAAC,EAAAC,cAAAgJ,EAAAjJ,EAAA,CAAYkJ,KAAM,OAClBnJ,EAAAC,EAAAC,cAACkJ,EAAA,EAAD,CAAYC,OAAQ,wBAjeV9I,aA0eP+I,sBACb,SAAAzI,GAAK,MAAK,CAACqF,KAAMrF,EAAMqF,OACvB,KAFaoD,CAGb9I","file":"mrstatic/js/newyear-2019-landing.2a088d23.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './box-container.scss'\nclass Container extends Component {\n render() {\n return (\n <div className={'box-container'}>\n <div className=\"image-box\">\n {this.props.children}\n </div>\n </div>\n )\n }\n}\n\nexport default Container\n","import React, { Component } from 'react'\nimport BoxContainer from '../box-container/container'\nimport { Toast, WhiteSpace } from \"antd-mobile\"\nimport { Popup } from \"@common/index\"\nimport { connect } from \"react-redux\"\nimport Prizes from \"@components/activity/newyear-2019/common/prizes\"\nimport BulletScreen from \"@components/activity/newyear-2019/common/user-bullet-screen\"\nimport './landing.scss'\nimport { browser, getParam, http, wxShare, SendMessageToApp } from \"@/utils\"\nimport { Link } from \"react-router-dom\"\nimport QRCode from \"qrcode\"\nimport YearCourse from '../preheat/YearCourse'\n\n\nclass Landing extends Component {\n\n\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n createTeamSuccessPopup = null\n joinSuccessPopup = null\n swiper = null\n\n state = {\n teamData: {\n member: []\n },\n origin: sessionStorage.getItem('isCaptain') ? 1 : getParam('origin'),\n treasure_code: getParam('treasure_code'),\n activityEnd: false,\n notices: [],\n rule: '',\n isCaptain: getParam('origin') == 1\n }\n\n componentDidMount() {\n this.fetchPageData()\n window.showFollowAlert = this.remind.bind(this, 'create')\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError) {\n this.fetchPageData()\n }\n }\n\n\n fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {\n http.post(`${API.home}/sys/treasure/team`, {\n treasure_code,\n origin\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.setState({\n teamData: data,\n isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1,\n activityEnd: data.status == 5\n })\n\n let searchParams = new URLSearchParams(window.location.search)\n if (searchParams.get('origin') === '1' && !browser.isWeixin) {\n searchParams.set('origin', '2')\n sessionStorage.setItem('isCaptain', '1')\n window.history.replaceState(null, '', `landing?${searchParams.toString()}`)\n }\n\n this.showSharePromptWithParam()\n\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n showSharePromptWithParam = () => {\n if (sessionStorage.getItem('showShareTip')) {\n this.showShareTip()\n }\n }\n\n joinTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n const {treasure_code} = this.state\n http.post(`${API.home}/sys/treasure/joinTeam`, {\n treasure_code\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code === 200) {\n\n /*\n * status\n * 1-成功加入\n * 2-成功加入组队成功\n * 3-已加入当前队伍\n * 4-已加入其他队伍\n * */\n\n switch (data.status) {\n case 1:\n case 2:\n this.joinSuccess(data)\n break\n default:\n Toast.info(msg, 2, null, false)\n }\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n joinSuccess = ({id, status, my_team: {team_num, lack_member, is_team, treasure_code}}) => {\n const {history} = this.props\n this.joinSuccessPopup = Popup({\n title: <div className={'join-success'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png\" alt=\"\"/>\n <div>成功加入队伍</div>\n </div>,\n className: 'landing-join-success-wrapper',\n content: <div>\n <div className={'tip'}>\n {\n status === 2\n ? '组队成功,恭喜你获得一个宝箱!'\n : is_team\n ? <>您的{<span>{team_num}</span>}号队伍还差{<span>{lack_member}</span>}人即可获得宝箱</>\n : '自己当队长,宝箱内有专属奖品哦~'\n }\n </div>\n {\n status === 2\n ? <img style={{width: '150px', marginTop: '23px'}}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/treasure-box.png\"\n alt=\"\"\n onClick={() => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove()\n history.push(`/year/yearTreasure?id=${id}`)\n }}\n />\n : is_team\n ? <button type='button'\n onClick={this.inviteMembers.bind(this, treasure_code)}>继续组队</button>\n : <button type=\"button\" onClick={this.createMyTeam}>创建我的队伍</button>\n }\n </div>,\n closeIcon: this.closeIcon,\n close: () => {\n this.fetchPageData()\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('join', this.state.treasure_code, 2)\n })\n }\n })\n }\n\n inviteMembers = treasure_code => {\n const {history, match, user, location} = this.props\n if (browser.isWeixin) {\n wxShare({\n title: `@${user.data.username} 邀您一起组队拿豪礼!`,\n desc: `加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!`,\n link: `${window.location.origin}/${location.pathname}?treasure_code=${treasure_code}&origin=2`,\n //todo 分享图片更换\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png'\n })\n }\n sessionStorage.setItem('showShareTip', '1')\n history.replace(`${match.url}?treasure_code=${treasure_code}&origin=${1}`)\n this.createTeamSuccessPopup && this.createTeamSuccessPopup.remove() && (this.createTeamSuccessPopup = null)\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.fetchPageData({treasure_code, origin: 1})\n this.setState({\n isCaptain: true\n })\n }\n\n getFollowStatus = () => http.get(`${API.home}/sys/user/isFollowWeChat`)\n .then(res => {\n const {code, data} = res.data\n return code === 200 && data['is_follow']\n })\n\n createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.getFollowStatus()\n .then(isFollow => {\n this.createTeamSuccessPopup = Popup({\n title: '创建成功',\n className: 'landing-create-success',\n content: <div>\n <div className=\"tip\">{<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~</div>\n <img className={'treasure-box'}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png\" alt=\"\"/>\n <ul className='members'>\n {\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return <li key={index}>\n {_member && _member['is_captain'] && <sup>队长</sup>}\n <img\n className={'avatar'}\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n })\n }\n </ul>\n <button type={'button'} onClick={this.inviteMembers.bind(this, treasure_code)}>邀请好友加入队伍</button>\n </div>,\n closeIcon: this.closeIcon,\n afterClose: () => {\n if (!isFollow) {\n this.remind('create', treasure_code)\n }\n }\n })\n\n })\n }\n\n remind = (type = 'create', treasure_code, origin = 1) => {\n const {user} = this.props\n http.get(`${API[\"base-api\"]}/wx/user_temporary_qrcode/${user.data.uid}`)\n .then(res => {\n const {data} = res.data\n return data.url\n })\n QRCode.toDataURL('http://m.julyedu.com')\n .then(url => {\n Popup({\n title: '提醒服务',\n className: 'landing-remind',\n closeIcon: this.closeIcon,\n content: <div>\n <div className=\"des\">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div>\n <img src={url} alt=\"\"/>\n <div className=\"des\">长按识别/扫码 关注【七月在线】服务号即可预约</div>\n </div>,\n close: () => {\n // history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)\n this.fetchPageData({\n treasure_code,\n origin\n })\n }\n })\n })\n }\n\n showShareTip = () => {\n const {user} = this.props\n if (browser.isAndroidApp) {\n\n\n } else if (browser.isIOSApp) {\n\n SendMessageToApp('toShare', {\n title: `@${user.data.username} 邀您一起组队拿豪礼!`,\n desc: `加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!`,\n link: `${window.location.origin}/${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n //todo 分享图片更换\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png'\n })\n\n } else {\n const {history, match} = this.props\n if (browser.isWeixin && getParam('origin') == 1) {\n history.replace(`${match.url}?treasure_code=${getParam('treasure_code')}&origin=2`)\n }\n Popup({\n title: <div>还差<span>{this.state.teamData.lack_member}</span>名队友即可获得宝箱 快分享给好友吧~</div>,\n className: `landing-share-tip ${browser.isWeixin ? 'wechat' : ''}`,\n closable: false,\n close: () => {\n sessionStorage.removeItem('showShareTip')\n if (!user.hasError) {\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('create', getParam('treasure_code'), 1)\n })\n }\n }\n })\n }\n }\n\n showOpenInBrowserTip = () => {\n Popup({\n title: <div>点击右上角,选择“在浏览器打开”</div>,\n className: 'landing-open-in-browser-tip',\n closable: false,\n })\n }\n\n createMyTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n http.get(`${API.home}/sys/treasure/createMyTeam`)\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.createTeamSuccess(data)\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n requiredLogin = () => {\n const {history, user} = this.props\n\n if (user.hasError) {\n history.push('/passport')\n return true\n }\n }\n\n\n render() {\n const {\n teamData: {\n head_img,\n member,\n status,\n lack_member,\n team_num,\n prize_info,\n my_team\n },\n activityEnd,\n isCaptain\n } = this.state\n /*\n * status\n * 1-自己的队伍\n * 2-未加入队伍\n * 3-已加入当前队伍\n * 4-已加入别的队伍\n * */\n\n return (\n <div id={'landing'}>\n <div id=\"to-square\">\n <Link to='/year/yearindex'>前往活动会场,享更多福利! >></Link>\n </div>\n <BoxContainer>\n <i className=\"snow-deco\"/>\n <img className='main-avatar'\n src={head_img} alt=\"\"/>\n {\n status === 1\n ? <div className=\"des\">邀请好友加入队伍,开宝箱领取丰厚奖品~</div>\n : <div className=\"des\">加入我的<span>{team_num}</span>号队伍,一起开宝箱领取丰厚奖品~</div>\n }\n <Prizes showSystemNotices={false}/>\n <BulletScreen/>\n <div className=\"group\">\n <ul className={'member'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return (\n _member\n ? <li key={index}>\n <div className='avatar-wrapper'>\n {\n _member.is_captain ? <sup>队长</sup> : null\n }\n <img\n src={_member.head_img}\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n :\n <li key={index}>\n <div className=\"avatar-wrapper\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png\"\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n )\n })\n }\n </ul>\n <ul className={'bars'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n return (\n <li key={index} className={`${index < member.length ? 'active' : ''}`}/>\n )\n })\n }\n </ul>\n {\n status === 1 && !activityEnd &&\n <>\n <div className=\"group-des\">\n 还差 {lack_member} 名队员即可获得当前宝箱哦~\n </div>\n <button type='button' className={'invite-btn'} onClick={this.showShareTip}>\n 邀请好友加入队伍\n </button>\n </>\n }\n {\n status === 3 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入当前队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>\n }\n </>\n }\n {\n status === 4 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入其他队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>\n }\n </>\n }\n {\n status === 2 && !activityEnd && < button type='button' className={'invite-btn'} onClick={this.joinTeam}>\n 同意加入队伍\n </button>\n }\n {\n prize_info && prize_info.length !== 0 && !activityEnd && !isCaptain && <div className=\"certainly-prompt\">\n 第{prize_info[0].stage_no}次必中 {prize_info[0].name}\n </div>\n }\n {\n activityEnd &&\n <div className='activity-end'>\n <div>活动已结束</div>\n <div>关注【七月在线】服务号了解更多活动信息</div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n <div>长按识别 / 微信扫码</div>\n </div>\n }\n </div>\n </BoxContainer>\n {\n !isCaptain &&\n <>\n <WhiteSpace size={'xl'}/>\n <YearCourse getSum={() => {\n }}/>\n </>\n }\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Landing)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/box-container/container.js","components/activity/newyear-2019/landing/index.js"],"names":["Container","react_default","a","createElement","className","this","props","children","Component","Landing","closeIcon","createTeamSuccessPopup","joinSuccessPopup","swiper","state","teamData","member","origin","sessionStorage","getItem","getParam","treasure_code","activityEnd","notices","rule","isCaptain","fetchPageData","_ref","arguments","length","undefined","_ref$origin","_this","_ref$treasure_code","http","post","concat","API","home","then","res","_res$data","data","code","msg","setState","status","searchParams","URLSearchParams","window","location","search","get","browser","isWeixin","set","setItem","history","replaceState","toString","showSharePromptWithParam","toast_default","info","showShareTip","joinTeam","requiredLogin","_res$data2","joinSuccess","_ref2","id","_ref2$my_team","my_team","team_num","lack_member","is_team","Popup","title","src","alt","content","Fragment","style","width","marginTop","onClick","remove","push","type","inviteMembers","bind","Object","assertThisInitialized","createMyTeam","close","getFollowStatus","isFollow","remind","_this$props","match","user","wxShare","username","desc","link","pathname","imgUrl","replace","url","_res$data3","createTeamSuccess","_ref3","Array","fill","map","item","index","_member","key","afterClose","uid","QRCode","toDataURL","isAndroidApp","isIOSApp","SendMessageToApp","_this$props2","closable","removeItem","hasError","showOpenInBrowserTip","_res$data4","_this$props3","showFollowAlert","prevProps","_this$state","_this$state$teamData","head_img","prize_info","react_router_dom","to","container","prizes","showSystemNotices","user_bullet_screen","is_captain","stage_no","name","white_space_default","size","YearCourse","getSum","connect"],"mappings":"iQAceA,4LAVX,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAW,iBACdH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACZC,KAAKC,MAAMC,kBALEC,oGCYlBC,6MAGJC,UAAY,+EACZC,uBAAyB,OACzBC,iBAAmB,OACnBC,OAAS,OAETC,MAAQ,CACNC,SAAU,CACRC,OAAQ,IAEVC,OAAQC,eAAeC,QAAQ,aAAe,EAAIC,YAAS,UAC3DC,cAAeD,YAAS,iBACxBE,aAAa,EACbC,QAAS,GACTC,KAAM,GACNC,UAAiC,GAAtBL,YAAS,aAetBM,cAAgB,WAAiF,IAAAC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAA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,EAAAC,cAAA,OAAKC,UAAU,oBAAf,SACnEqI,EAAW,GAAGQ,SADqD,sBACvCR,EAAW,GAAGS,MAI9C5H,GACArB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,6CACAF,EAAAC,EAAAC,cAAA,iIACAF,EAAAC,EAAAC,cAAA,OAAK0E,IAAI,kFAAkFC,IAAI,KAC/F7E,EAAAC,EAAAC,cAAA,sEAMLsB,GACDxB,EAAAC,EAAAC,cAAAF,EAAAC,EAAA8E,SAAA,KACE/E,EAAAC,EAAAC,cAAAgJ,EAAAjJ,EAAA,CAAYkJ,KAAM,OAClBnJ,EAAAC,EAAAC,cAACkJ,EAAA,EAAD,CAAYC,OAAQ,wBAjeV9I,aA0eP+I,sBACb,SAAAzI,GAAK,MAAK,CAACqF,KAAMrF,EAAMqF,OACvB,KAFaoD,CAGb9I","file":"mrstatic/js/newyear-2019-landing.452d7bd3.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './box-container.scss'\nclass Container extends Component {\n render() {\n return (\n <div className={'box-container'}>\n <div className=\"image-box\">\n {this.props.children}\n </div>\n </div>\n )\n }\n}\n\nexport default Container\n","import React, { Component } from 'react'\nimport BoxContainer from '../box-container/container'\nimport { Toast, WhiteSpace } from \"antd-mobile\"\nimport { Popup } from \"@common/index\"\nimport { connect } from \"react-redux\"\nimport Prizes from \"@components/activity/newyear-2019/common/prizes\"\nimport BulletScreen from \"@components/activity/newyear-2019/common/user-bullet-screen\"\nimport './landing.scss'\nimport { browser, getParam, http, wxShare, SendMessageToApp } from \"@/utils\"\nimport { Link } from \"react-router-dom\"\nimport QRCode from \"qrcode\"\nimport YearCourse from '../preheat/YearCourse'\n\n\nclass Landing extends Component {\n\n\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n createTeamSuccessPopup = null\n joinSuccessPopup = null\n swiper = null\n\n state = {\n teamData: {\n member: []\n },\n origin: sessionStorage.getItem('isCaptain') ? 1 : getParam('origin'),\n treasure_code: getParam('treasure_code'),\n activityEnd: false,\n notices: [],\n rule: '',\n isCaptain: getParam('origin') == 1\n }\n\n componentDidMount() {\n this.fetchPageData()\n window.showFollowAlert = this.remind('create')\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError) {\n this.fetchPageData()\n }\n }\n\n\n fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {\n http.post(`${API.home}/sys/treasure/team`, {\n treasure_code,\n origin\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.setState({\n teamData: data,\n isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1,\n activityEnd: data.status == 5\n })\n\n let searchParams = new URLSearchParams(window.location.search)\n if (searchParams.get('origin') === '1' && !browser.isWeixin) {\n searchParams.set('origin', '2')\n sessionStorage.setItem('isCaptain', '1')\n window.history.replaceState(null, '', `landing?${searchParams.toString()}`)\n }\n\n this.showSharePromptWithParam()\n\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n showSharePromptWithParam = () => {\n if (sessionStorage.getItem('showShareTip')) {\n this.showShareTip()\n }\n }\n\n joinTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n const {treasure_code} = this.state\n http.post(`${API.home}/sys/treasure/joinTeam`, {\n treasure_code\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code === 200) {\n\n /*\n * status\n * 1-成功加入\n * 2-成功加入组队成功\n * 3-已加入当前队伍\n * 4-已加入其他队伍\n * */\n\n switch (data.status) {\n case 1:\n case 2:\n this.joinSuccess(data)\n break\n default:\n Toast.info(msg, 2, null, false)\n }\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n joinSuccess = ({id, status, my_team: {team_num, lack_member, is_team, treasure_code}}) => {\n const {history} = this.props\n this.joinSuccessPopup = Popup({\n title: <div className={'join-success'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png\" alt=\"\"/>\n <div>成功加入队伍</div>\n </div>,\n className: 'landing-join-success-wrapper',\n content: <div>\n <div className={'tip'}>\n {\n status === 2\n ? '组队成功,恭喜你获得一个宝箱!'\n : is_team\n ? <>您的{<span>{team_num}</span>}号队伍还差{<span>{lack_member}</span>}人即可获得宝箱</>\n : '自己当队长,宝箱内有专属奖品哦~'\n }\n </div>\n {\n status === 2\n ? <img style={{width: '150px', marginTop: '23px'}}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/treasure-box.png\"\n alt=\"\"\n onClick={() => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove()\n history.push(`/year/yearTreasure?id=${id}`)\n }}\n />\n : is_team\n ? <button type='button'\n onClick={this.inviteMembers.bind(this, treasure_code)}>继续组队</button>\n : <button type=\"button\" onClick={this.createMyTeam}>创建我的队伍</button>\n }\n </div>,\n closeIcon: this.closeIcon,\n close: () => {\n this.fetchPageData()\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('join', this.state.treasure_code, 2)\n })\n }\n })\n }\n\n inviteMembers = treasure_code => {\n const {history, match, user, location} = this.props\n if (browser.isWeixin) {\n wxShare({\n title: `@${user.data.username} 邀您一起组队拿豪礼!`,\n desc: `加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!`,\n link: `${window.location.origin}/${location.pathname}?treasure_code=${treasure_code}&origin=2`,\n //todo 分享图片更换\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png'\n })\n }\n sessionStorage.setItem('showShareTip', '1')\n history.replace(`${match.url}?treasure_code=${treasure_code}&origin=${1}`)\n this.createTeamSuccessPopup && this.createTeamSuccessPopup.remove() && (this.createTeamSuccessPopup = null)\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.fetchPageData({treasure_code, origin: 1})\n this.setState({\n isCaptain: true\n })\n }\n\n getFollowStatus = () => http.get(`${API.home}/sys/user/isFollowWeChat`)\n .then(res => {\n const {code, data} = res.data\n return code === 200 && data['is_follow']\n })\n\n createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.getFollowStatus()\n .then(isFollow => {\n this.createTeamSuccessPopup = Popup({\n title: '创建成功',\n className: 'landing-create-success',\n content: <div>\n <div className=\"tip\">{<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~</div>\n <img className={'treasure-box'}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png\" alt=\"\"/>\n <ul className='members'>\n {\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return <li key={index}>\n {_member && _member['is_captain'] && <sup>队长</sup>}\n <img\n className={'avatar'}\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n })\n }\n </ul>\n <button type={'button'} onClick={this.inviteMembers.bind(this, treasure_code)}>邀请好友加入队伍</button>\n </div>,\n closeIcon: this.closeIcon,\n afterClose: () => {\n if (!isFollow) {\n this.remind('create', treasure_code)\n }\n }\n })\n\n })\n }\n\n remind = (type = 'create', treasure_code, origin = 1) => {\n const {user} = this.props\n http.get(`${API[\"base-api\"]}/wx/user_temporary_qrcode/${user.data.uid}`)\n .then(res => {\n const {data} = res.data\n return data.url\n })\n QRCode.toDataURL('http://m.julyedu.com')\n .then(url => {\n Popup({\n title: '提醒服务',\n className: 'landing-remind',\n closeIcon: this.closeIcon,\n content: <div>\n <div className=\"des\">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div>\n <img src={url} alt=\"\"/>\n <div className=\"des\">长按识别/扫码 关注【七月在线】服务号即可预约</div>\n </div>,\n close: () => {\n // history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)\n this.fetchPageData({\n treasure_code,\n origin\n })\n }\n })\n })\n }\n\n showShareTip = () => {\n const {user} = this.props\n if (browser.isAndroidApp) {\n\n\n } else if (browser.isIOSApp) {\n\n SendMessageToApp('toShare', {\n title: `@${user.data.username} 邀您一起组队拿豪礼!`,\n desc: `加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!`,\n link: `${window.location.origin}/${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n //todo 分享图片更换\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newIndex/community/tou5_bj.png'\n })\n\n } else {\n const {history, match} = this.props\n if (browser.isWeixin && getParam('origin') == 1) {\n history.replace(`${match.url}?treasure_code=${getParam('treasure_code')}&origin=2`)\n }\n Popup({\n title: <div>还差<span>{this.state.teamData.lack_member}</span>名队友即可获得宝箱 快分享给好友吧~</div>,\n className: `landing-share-tip ${browser.isWeixin ? 'wechat' : ''}`,\n closable: false,\n close: () => {\n sessionStorage.removeItem('showShareTip')\n if (!user.hasError) {\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('create', getParam('treasure_code'), 1)\n })\n }\n }\n })\n }\n }\n\n showOpenInBrowserTip = () => {\n Popup({\n title: <div>点击右上角,选择“在浏览器打开”</div>,\n className: 'landing-open-in-browser-tip',\n closable: false,\n })\n }\n\n createMyTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n http.get(`${API.home}/sys/treasure/createMyTeam`)\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.createTeamSuccess(data)\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n requiredLogin = () => {\n const {history, user} = this.props\n\n if (user.hasError) {\n history.push('/passport')\n return true\n }\n }\n\n\n render() {\n const {\n teamData: {\n head_img,\n member,\n status,\n lack_member,\n team_num,\n prize_info,\n my_team\n },\n activityEnd,\n isCaptain\n } = this.state\n /*\n * status\n * 1-自己的队伍\n * 2-未加入队伍\n * 3-已加入当前队伍\n * 4-已加入别的队伍\n * */\n\n return (\n <div id={'landing'}>\n <div id=\"to-square\">\n <Link to='/year/yearindex'>前往活动会场,享更多福利! >></Link>\n </div>\n <BoxContainer>\n <i className=\"snow-deco\"/>\n <img className='main-avatar'\n src={head_img} alt=\"\"/>\n {\n status === 1\n ? <div className=\"des\">邀请好友加入队伍,开宝箱领取丰厚奖品~</div>\n : <div className=\"des\">加入我的<span>{team_num}</span>号队伍,一起开宝箱领取丰厚奖品~</div>\n }\n <Prizes showSystemNotices={false}/>\n <BulletScreen/>\n <div className=\"group\">\n <ul className={'member'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return (\n _member\n ? <li key={index}>\n <div className='avatar-wrapper'>\n {\n _member.is_captain ? <sup>队长</sup> : null\n }\n <img\n src={_member.head_img}\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n :\n <li key={index}>\n <div className=\"avatar-wrapper\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png\"\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n )\n })\n }\n </ul>\n <ul className={'bars'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n return (\n <li key={index} className={`${index < member.length ? 'active' : ''}`}/>\n )\n })\n }\n </ul>\n {\n status === 1 && !activityEnd &&\n <>\n <div className=\"group-des\">\n 还差 {lack_member} 名队员即可获得当前宝箱哦~\n </div>\n <button type='button' className={'invite-btn'} onClick={this.showShareTip}>\n 邀请好友加入队伍\n </button>\n </>\n }\n {\n status === 3 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入当前队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>\n }\n </>\n }\n {\n status === 4 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入其他队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>\n }\n </>\n }\n {\n status === 2 && !activityEnd && < button type='button' className={'invite-btn'} onClick={this.joinTeam}>\n 同意加入队伍\n </button>\n }\n {\n prize_info && prize_info.length !== 0 && !activityEnd && !isCaptain && <div className=\"certainly-prompt\">\n 第{prize_info[0].stage_no}次必中 {prize_info[0].name}\n </div>\n }\n {\n activityEnd &&\n <div className='activity-end'>\n <div>活动已结束</div>\n <div>关注【七月在线】服务号了解更多活动信息</div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n <div>长按识别 / 微信扫码</div>\n </div>\n }\n </div>\n </BoxContainer>\n {\n !isCaptain &&\n <>\n <WhiteSpace size={'xl'}/>\n <YearCourse getSum={() => {\n }}/>\n </>\n }\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Landing)\n"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1240:function(e,t,a){},1241:function(e,t,a){},1242:function(e,t,a){},1243:function(e,t,a){},1244:function(e,t,a){},1245:function(e,t,a){},1246:function(e,t,a){},1247:function(e,t,a){},1248:function(e,t,a){},1249:function(e,t,a){},1250:function(e,t,a){},1284:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),i=a(8),c=a(9),o=a(0),l=a.n(o),m=(a(1250),a(3)),u=a(660),d=a(659),p=a(49),h=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];return(a=Object(r.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={list:[],activityStage:1},a.fetchCourse=function(){m.d.get("".concat(API.home,"/activity/wish_course")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&a.setState({list:"{}"===JSON.stringify(s)?[]:s})})},a.getStage=function(){m.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&a.setState({activityStage:s.activity_stage})})},a.toCourse=function(e){var t=a.props.history;Object(m.c)("version")?Object(m.a)("toCourse",e):t.push("/detail?id=".concat(e))},a}return Object(c.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourse(),this.getStage()}},{key:"componentWillUpdate",value:function(){this.state.activityStage;document.title="\u4e03\u6708\u5728\u7ebf\u5e74\u7ec8\u5927\u56de\u9988\uff0c\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66\uff0c\u7cbe\u54c1\u8bfe\u7a0b1\u5206\u62a2\uff01"}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.activityStage;return l.a.createElement("div",{className:"year-wish"},l.a.createElement("div",{className:"banner"},l.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/xy_banner_bj.png",alt:""})),a.length>0?l.a.createElement(u.a,null,l.a.createElement("div",{className:"groupcourse course-box"},a&&a.length>0&&a.map(function(t){return l.a.createElement(d.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},4==t.type&&1!=t.is_buy&&l.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),l.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&l.a.createElement(l.a.Fragment,null,l.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),l.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"type"},0==t.type&&l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),l.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),(1==t.type||4==t.type)&&l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),l.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),l.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),l.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",l.a.createElement("span",{className:"new-price"},4==t.type?"0.01":t.price2),l.a.createElement("span",{className:"old-price"}," \u73b0\u4ef7\uff1a",l.a.createElement("s",null,"\xa5",t.price1))),l.a.createElement("div",{className:"status"},l.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&l.a.createElement("a",{className:"status-btn add-wish"},l.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&&l.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id)},className:"status-btn add-wish-success"},l.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))}))):l.a.createElement("div",{className:"notData"},l.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-empty.png",alt:""}),1==n?l.a.createElement("p",null,"\u4f60\u7684\u5fc3\u613f\u5355\u76ee\u524d\u7a7a\u7a7a\u5982\u4e5f\uff0c",l.a.createElement("br",null),"\u5feb\u53bb\u6311\u9009\u66f4\u591a\u4f18\u60e0\u8bfe\u7a0b\u5427\uff5e"):l.a.createElement("p",null,"\u4f60\u7684\u5fc3\u613f\u5355\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c",l.a.createElement("br",null),"\u611f\u5174\u8da3\u7684\u8bfe\u7a0b\u53ef\u5728\u53cc\u65e6\u4e3b\u4f1a\u573a\u76f4\u63a5\u8d2d\u4e70\uff01")))}}]),t}(o.Component);t.default=Object(p.g)(h)},1288:function(e,t,a){"use strict";a.r(t);var n,s=a(5),r=a(7),i=a(6),c=a(8),o=a(9),l=a(0),m=a.n(l),u=a(22),d=a(28),p=(a(41),a(12)),h=a.n(p),f=a(19),_=a(3),v=a(20),b=(a(1241),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).fetchUserAddress=function(){var e=a.state.addressInfo;_.d.get("".concat(API.home,"/sys/user_address_info")).then(function(t){var n=t.data,s=n.code,r=n.data;n.msg;200===s&&a.setState({addressInfo:Object.assign({},e,{name:r.name,phone:r.phone,address:r.address}),isLoading:!0})})},a.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props.successBindAddress;_.d.post("".concat(API.home,"/sys/update_address"),Object(f.a)({act_type:"treasure"},e)).then(function(e){var a=e.data,n=a.code,s=a.msg;200===n?t():h.a.info(s,2,null,!1)})},a.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,t=this.state,a=t.isLoading,n=t.addressInfo,s=this.props,r=s.tip,i=s.prize,c=s.skip,o=void 0===c?"default":c;return m.a.createElement(m.a.Fragment,null,a&&m.a.createElement(v.d,{initialValues:Object(f.a)({},n),validate:function(e){var t=e.name,a=e.phone,n=e.address,s={};return t||(s.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(a)||(s.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(s.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),s},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(t){e.handleToSubmit(t)},render:function(e){var t=e.errors;return m.a.createElement(v.c,{className:"address-form","data-skip":o},m.a.createElement("h2",{className:"address-form__title"},"\u6536\u8d27\u4fe1\u606f"),i?m.a.createElement("p",{className:"address__prize"},"\u60a8\u62bd\u4e2d\u4e86",m.a.createElement("span",{style:{color:"#FF4000"}},i)):null,r?m.a.createElement("div",{className:"address-form__subtitle"},r):m.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),m.a.createElement(v.b,{name:"name",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),t.name&&m.a.createElement("p",{className:"address-form__tip"},t.name))}}),m.a.createElement(v.b,{name:"phone",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),t.phone&&m.a.createElement("p",{className:"address-form__tip"},t.phone))}}),m.a.createElement(v.b,{name:"address",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),t.address&&m.a.createElement("p",{className:"address-form__tip"},t.address))}}),m.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),t}(l.Component)),E=a(42),y=a(70),g=(a(1242),function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(i.a)(this,Object(c.a)(t).call(this,e)),a.captchaInstance=null,a.initCountryInfo=function(){var e=a.props.country;a.setState({country:e})},a.toFetchCountryNum=function(){var e=a.props,t=e.history;(0,e.hideBindPhone)(),t.push("/country?from=bind")},a.getCaptchaInstance=function(e){a.captchaInstance=e},a.onVerify=function(e,t){e?console.log(e):a.setState({validate:t.validate})},a.handleToSend=function(e){var t=e.tel,n=(e.code,a.state),s=n.validate,r=n.seconds,i=n.isFirst,c=n.isTimer,o=n.country.num,l=void 0===o?"86":o;if(s){if(!i)return h.a.info("\u8bf7\u91cd\u65b0\u8fdb\u884c\u6ed1\u5757\u9a8c\u8bc1",2,null,!1),a.captchaInstance.refresh(),void a.setState({isFirst:!0});c||(t?/^\d+$/.test(t)?_.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(l),phone_num:t}).then(function(e){var t=e.data,n=t.errno,s=t.msg;200===n?(h.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){r<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--r})},1e3),a.setState({isFirst:!1})):h.a.info(s,2,null,!1)}):h.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7\u7801",2,null,!1):h.a.info("\u624b\u673a\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a",2,null,!1))}return!1},a.toBindPhone=function(){var e=a.state,t=e.accountInfo,n=t.tel,s=t.code,r=e.country.num,i=void 0===r?"86":r,c=a.props,o=c.handleToConfirmPhone,l=c.successBindPhone,m={area_code:"00".concat(i),mobile:n,code:s,act_type:"treasure"};_.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(f.a)({},m,{type:1,is_valid:1})).then(function(e){var t=e.data,a=t.code,n=t.data,s=t.msg;200===a?n.tip_info?o(m,n.tip_info):l():h.a.info(s,2,null,!1)})},a.state={validate:"",seconds:60,isFirst:!0,timer:null,isTimer:!1,accountInfo:{},bindInfo:{},country:{num:"86"}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.initCountryInfo()}},{key:"render",value:function(){var e=this,t=this.props,a=t.desc,n=t.skip,s=void 0===n?"year":n,r=this.state,i=r.country,c=r.validate,o=r.isTimer,l=r.seconds;return m.a.createElement(v.d,{initialValues:{tel:"",code:""},validate:function(e){var t=e.tel,a=e.code,n={};return/^\d+$/.test(t)||(n.tel="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),/[0-9]{6}/.test(a)||(n.code="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"),n},onSubmit:function(t,a){a.setStatus,a.setSubmitting;e.setState({accountInfo:Object(f.a)({},t)}),e.toBindPhone()},render:function(t){var n=t.values,r=n.tel,u=n.code,d=t.errors;return m.a.createElement(v.c,{className:"popup-form","data-skip":s},m.a.createElement("h2",{className:"popup-form__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),a&&m.a.createElement("div",{className:"poup-form__desc"},a),m.a.createElement("div",{className:"popup-form__item"},m.a.createElement("a",{className:"popup-form__button--num",onClick:e.toFetchCountryNum},"+",i.num,m.a.createElement("i",{className:"iconfont iconiconfront-69"})),m.a.createElement(v.b,{name:"tel",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt","data-type":"tel",type:"text",placeholder:"\u8bf7\u586b\u5199\u624b\u673a\u53f7"}))}})),m.a.createElement(y.a,{getInstance:e.getCaptchaInstance,onVerify:e.onVerify}),m.a.createElement("div",{className:"popup-form__item"},m.a.createElement(v.b,{name:"code",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt popup-form__ipt--left",type:"text",placeholder:"\u8f93\u5165\u9a8c\u8bc1\u7801"}))}}),m.a.createElement("button",{className:"popup-form__button--code","data-status":c&&!o?"do":"",type:"button",onClick:function(){return e.handleToSend({tel:r,code:u})}},o?"\u91cd\u65b0\u53d1\u9001".concat(l,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),m.a.createElement("button",{className:"popup-form__button--bundle","data-status":r&&u&&Object(E.isEmpty)(d)?"do":"done",type:"submit"},"\u5b8c\u6210\u7ed1\u5b9a"))}})}}]),t}(l.Component)),N=(a(1243),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(r)))).continueBindPhone=function(){var e=a.props,t=e.data,n=e.successBindPhone;_.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(f.a)({},t,{type:1,is_valid:0})).then(function(e){var t=e.data,a=t.code,s=t.msg;200===a?n():h.a.info(s,2,null,!1)})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.bindInfo,a=void 0===t?{}:t,n=e.desc,s=e.skip,r=void 0===s?"year":s,i=e.handleToCancle;return m.a.createElement("div",{className:"popup-bind","data-skip":r},m.a.createElement("h2",{className:"popup-bind__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),n?m.a.createElement("div",{className:"popup-bind__desc"},n):m.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),m.a.createElement("ul",{className:"popup-bind__list"},a.email&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"mail"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.email)),a.wechat_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"wachat"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.wechat_nickname)),a.qq_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"qq"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.qq_nickname)),a.sina_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"sina"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.sina_nickname))),m.a.createElement("div",{className:"popup-bind__footer"},m.a.createElement("button",{className:"popup-bind__button popup-bind__button--cancle",onClick:i},"\u53d6\u6d88"),m.a.createElement("button",{className:"popup-bind__button popup-bind__button--confirm",onClick:this.continueBindPhone},"\u7ee7\u7eed\u7ed1\u5b9a")))}}]),t}(l.Component)),k=(a(1244),function(e){console.log(e);var t=e.data,a=t.team_num,n=void 0===a?1:a,s=t.lack_member,r=void 0===s?4:s,i=t.member,c=void 0===i?[]:i,o=e.handleToInvite,l=new Array(5).fill({});return m.a.createElement("div",{className:"team-success"},m.a.createElement("h2",{className:"team-success__title"},"\u521b\u5efa\u6210\u529f"),m.a.createElement("p",{className:"team-success__tip"},m.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",m.a.createElement("span",null,r),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),m.a.createElement("i",{className:"team-success__icon"}),m.a.createElement("ul",{className:"team-success__member members"},l.map(function(e,t){var a=c[t];return m.a.createElement("li",{className:"member-item",key:t},a&&a.is_captain&&m.a.createElement("sup",{className:"member-item__captain"},"\u961f\u957f"),m.a.createElement("img",{className:"member-item__avatar",src:a?a.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),m.a.createElement("button",{type:"button",className:"team-success__button",onClick:o},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d"))}),j=a(17),C=a.n(j),I=a(16),O=(a(1245),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).initMemberInfo=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props,n=t.data,s=t.userInfo,r="{}"!==JSON.stringify(e)?e:n,i=r.member,c=i.length-5;c<0;c++)i.push({});a.setState({team:Object.assign({},r,{member:i}),currentMember:s.uid?i.filter(function(e){return e.uid==s.uid})[0]:{}})},a.computedClass=function(e){var t=a.props.data.is_open,n=a.state.currentMember;return C()("team-member__item",{active:e===n.uid&&t})},a.computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.toCheckPrize=function(e){var t=a.state.team,n=t.is_open,s=t.member;if(n){var r=(void 0===s?[]:s).filter(function(t){return t.uid===e});a.setState({currentMember:r[0]})}},a.state={team:{},currentMember:{}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.initMemberInfo()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,a=e.data;a.is_open!=t.is_open&&this.initMemberInfo(a)}},{key:"render",value:function(){var e=this,t=this.state,a=t.team,n=a.is_captain,s=a.status,r=a.team_num,i=a.lack_member,c=a.is_open,o=a.treasure_code,l=a.member,u=void 0===l?[]:l,d=t.currentMember,p=this.props,h=p.toSplitTreasure,f=p.userInfo,_=p.children;return m.a.createElement("div",{className:"team-container","data-skip":"team"},!n&&m.a.createElement("i",{className:"team-friend"},"\u53cb"),1===s?m.a.createElement("i",{className:"team-status"},"\u7ec4\u961f\u4e2d.."):m.a.createElement("i",{className:"team-decorate"}),n?m.a.createElement("h2",{className:"team-title"},r,"\u53f7\u961f\u4f0d"):m.a.createElement("h2",{className:"team-title"},"\u597d\u53cb\u961f\u4f0d"),1===s?m.a.createElement("p",{className:"team-desc"},"\u8fd8\u5dee",i,"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6\uff5e"):m.a.createElement("p",{className:"team-desc"},"\u7ec4\u961f\u6210\u529f"),m.a.createElement("div",{className:"team-member"},u.map(function(t,a){return m.a.createElement("div",{className:e.computedClass(t.uid),onClick:function(){return e.toCheckPrize(t.uid)},key:a,style:e.computedBg(t.head_img)},t.is_captain&&m.a.createElement("span",{className:"team-member__captain"},"\u961f\u957f"))})),m.a.createElement("div",{className:"team-footer","data-layout":c?"column":"row"},1===s&&m.a.createElement(m.a.Fragment,null,n?m.a.createElement(I.b,{className:"team-button",to:"/activity/newyear-2019/landing?treasure_code=".concat(o,"&origin=1")},"\u7ee7\u7eed\u9080\u8bf7\u961f\u53cb"):m.a.createElement(I.b,{className:"team-button",to:"/activity/newyear-2019/landing?treasure_code=".concat(o,"&origin=2")},"\u5e2e\u597d\u53cb\u5b8c\u6210\u7ec4\u961f")),2===s&&!c&&m.a.createElement(m.a.Fragment,null,m.a.createElement("span",{className:"team-icon","data-direction":"left"}),m.a.createElement("span",{className:"team-button--split",onClick:h}),m.a.createElement("span",{className:"team-icon","data-direction":"right"})),2===s&&c&&m.a.createElement(m.a.Fragment,null,d.prize_name?m.a.createElement("p",{className:"team-prize"},d.prize_name):m.a.createElement("p",{className:"team-prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"),d.uid==f.uid?_:null)))}}]),t}(l.Component)),T=(a(1246),function(e){var t=e.data,a=t.bind_phone,n=t.bind_address,s=t.prize_type,r=e.handleToBindPhone,i=e.handleToBindAddress,c=e.toComposeCoupon,o=e.toUseCoupon,l=e.toCourseList,u=e.toFecthMoney;return m.a.createElement(m.a.Fragment,null,a&&m.a.createElement("a",{className:"team-result",onClick:r},m.a.createElement("span",null,"\u7ed1\u5b9a\u624b\u673a\u53f7")),!a&&n&&m.a.createElement("a",{className:"team-result",onClick:i},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&1===s&&m.a.createElement("a",{className:"team-result",onClick:i},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&6===s&&m.a.createElement("a",{className:"team-result",onClick:c},"\u53ef\u5408\u6210\u4ee3\u91d1\u5238\u5728\u8d2d\u8bfe\u65f6\u4f7f\u7528\uff0c",m.a.createElement("span",null,"\u53bb\u5408\u6210")),!a&&!n&&3===s&&m.a.createElement("a",{className:"team-result",onClick:o},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&4===s&&m.a.createElement("a",{className:"team-result",onClick:l},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&7===s&&m.a.createElement("a",{className:"team-result",onClick:u},"\u5df2\u5b58\u5165\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u63d0\u73b0")),!a&&!n&&2===s&&m.a.createElement("a",{className:"team-result"},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237"),!a&&!n&&5===s&&m.a.createElement("a",{className:"team-result"},"\u6587\u6848\u5f85\u5b9a"))}),S=(a(1247),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(r)))).computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.continueSplitTreasure=function(){var e=a.props,t=e.ids,n=e.successSplitTreasure,s=e.handleToBindPhone,r=e.handleToBindAddress,i=t[0];_.d.post("".concat(API.home,"/sys/split_treasure"),i).then(function(e){var t=e.data,a=t.code,i=t.data;200===a?(n(i),i.bind_phone?setTimeout(function(){s(i.id)},500):i.bind_address&&setTimeout(function(){r(i.id)},500)):12e3===a?s():12001===a&&r()})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.ids,n=t.data,s=n.member,r=void 0===s?[]:s,i=n.prize_img,c=n.prize_name,o=t.handleToInvite,l=t.children;return m.a.createElement("div",{"data-skip":"split"},m.a.createElement("h2",{className:"split-success__title"},"\u606d\u559c\u4f60\u83b7\u5f97"),m.a.createElement("div",{className:"split-success__image"},m.a.createElement("img",{src:i,alt:""})),m.a.createElement("p",{className:"split-success__prize"},c),l,m.a.createElement("div",{className:"split-success__member"},r.map(function(t,a){return m.a.createElement("div",{className:"member-item",key:a},m.a.createElement("span",{className:"member-item__avatar",style:e.computedBg(t.avatar)},t.is_captain&&m.a.createElement("i",{className:"member-item__captain"},"\u961f\u957f")),t.prize?m.a.createElement("span",{className:"member-item__prize"},t.prize):m.a.createElement("span",{className:"member-item__prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"))})),a.length>0?m.a.createElement("button",{className:"split-success__jump",onClick:this.continueSplitTreasure},"\u7ee7\u7eed\u5f00\u5b9d\u7bb1"):m.a.createElement("button",{className:"split-success__jump",onClick:o},"\u7ee7\u7eed\u7ec4\u961f\u5f00\u5b9d\u7bb1"))}}]),t}(l.Component)),w=a(21),P=a.n(w),A=(a(1248),document.querySelector("body")),B=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).el||(a.el=document.createElement("div")),a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){A.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){A.removeChild(this.el)}},{key:"render",value:function(){var e=this.props,t=e.visible,a=e.handleToHide;return t?P.a.createPortal(m.a.createElement("div",{className:"mask"},m.a.createElement("div",{className:"mask-content"},this.props.children),m.a.createElement("div",{className:"mask-footer"},m.a.createElement("i",{className:"mask-button__close",onClick:a}))),this.el):null}}]),t}(l.Component),M=(a(1249),a(811),Object(u.b)(function(e){return{country:e.country,userInfo:e.user.data}})(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).popupInstance=null,a.initPrizeName=function(e){var t=a.fetchCurrentTeamId(e),n=e.filter(function(e){return e.id==t});n.length>0&&a.setState({prizeName:n[0].prize_name})},a.judgeIsHaveId=function(e){var t=Object(_.c)("id");if(t){var n=e.filter(function(e){return e.id==t});if(n.length>0){var s={team_num:n[0].team_num,owner_uid:n[0].captain_uid};a.toSplitTreasure(s)}}},a.fetchCurrentTeamId=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return e.is_open&&(e.bind_phone||e.bind_address)});return e.length>0?e[0].id:""},a.isShowBindPhone=function(e){if(a.props.country.from){var t=a.fetchCurrentTeamId(e);a.handleToBindPhone(t)}},a.handleToBindPhone=function(e){a.setState({isPhone:!0})},a.handleToConfirmPhone=function(e,t){a.handleToHideWindow("isPhone"),a.setState({confirmInfo:{params:e,bindInfo:t},isConfirm:!0})},a.successBindPhone=function(){a.setState({isPhone:!1,isConfirm:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),r=t.map(function(e){return e.id==s?(e.bind_address&&a.handleToBindAddress(),Object.assign({},e,{bind_phone:!1})):e});a.setState({teams:r,splitInfo:Object.assign({},n,{bind_phone:!1})})},a.toSplitTreasure=function(e){_.d.post("".concat(API.home,"/sys/split_treasure"),e).then(function(e){var t=e.data,n=t.code,s=t.data;200===n?(a.showSuccessSplit(s),a.successSplitTreasure(s),s.bind_phone?setTimeout(function(){a.handleToBindPhone(s.id)},500):s.bind_address&&setTimeout(function(){a.handleToBindAddress(s.id)},500)):12e3===n?a.handleToBindPhone():12001===n&&a.handleToBindAddress()})},a.successSplitTreasure=function(e){var t=a.props.userInfo,n=a.state.teams.map(function(a){return a.id==e.id?Object.assign({},a,{bind_phone:e.bind_phone,bind_address:e.bind_address,is_open:!0,prize_type:e.prize_type,prize_data:e.prize_data,member:a.member.map(function(a){return a.uid==t.uid?Object.assign({},a,{is_open:!0,prize_name:e.prize_name}):a})}):a});a.initNoSplitInfo(n),a.setState({teams:n,splitInfo:e,prizeName:e.prize_name})},a.showSuccessSplit=function(e){a.setState({isSplit:!0,splitInfo:e})},a.handleToBindAddress=function(e){a.setState({isAddress:!0})},a.successBindAddress=function(){a.setState({isAddress:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),r=t.map(function(e){return e.id==s?Object.assign({},e,{bind_address:!1}):e});a.setState({teams:r,splitInfo:Object.assign({},n,{bind_address:!1})})},a.fetchMyTreasure=function(){_.d.get("".concat(API.home,"/sys/treasure/my")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&(a.setState({rule:s.rule}),Array.isArray(s.team)&&s.team.length>0?(a.initNoSplitInfo(s.team),a.judgeIsHaveId(s.team),a.isShowBindPhone(s.team),a.initPrizeName(s.team),a.setState({isEmpty:!1,teams:s.team})):a.setState({isEmpty:!0}))})},a.initNoSplitInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.length>0&&a.setState({ids:e.filter(function(e){return!e.is_open&&2===e.status}).map(function(e){return{team_num:e.team_num,owner_uid:e.captain_uid}})})},a.fetchActivityStatus=function(){_.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&a.setState({isEnd:0===s.treasure_stage})})},a.startCountDown=function(){var e=a.props.history,t=a.state.seconds;a.timer&&clearInterval(a.timer),a.setState({seconds:t--}),a.timer=setInterval(function(){a.setState({seconds:t--}),0===t&&(a.setState({seconds:0}),clearInterval(a.timer),e.push("/year/yearIndex"))},1e3)},a.handleToInvite=function(e){a.props.history.push("/activity/newyear-2019/landing?treasure_code=".concat(e,"&origin=1"))},a.toOrganizeTeam=function(){var e=a.props,t=e.history,n=e.userInfo.uid;""===(void 0===n?"":n)?t.push("/passport"):_.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){var r=[];r[0]=s,a.setState({isEmpty:!1,teams:r,isCreate:!0,createInfo:s})}})},a.toComposeCoupon=function(){a.props.history.push("/coupons/my-patch")},a.toUseCoupon=function(e){a.props.history.push("/detail?id=".concat(e))},a.toCourseList=function(){a.props.history.push("/classify")},a.toFecthMoney=function(){a.props.history.push("/scholarship")},a.handleToHideWindow=function(e){var t={};t[e]=!1,a.setState(t)},a.state={isEnd:!1,isEmpty:!1,seconds:3,teams:[],ids:[],bindInfo:{},isPhone:!1,isAddress:!1,isConfirm:!1,confirmInfo:{},isSplit:!1,isCreate:!1,createInfo:{},prizeName:""},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.state.isEnd&&this.startCountDown(),this.fetchMyTreasure(),this.fetchActivityStatus()}},{key:"render",value:function(){var e=this,t=this.props,a=t.history,n=t.userInfo,s=t.country,r=this.state,i=r.isEnd,c=r.isEmpty,o=r.seconds,l=r.teams,u=r.ids,p=r.isPhone,h=r.isAddress,f=r.isConfirm,_=r.isSplit,v=r.splitInfo,E=void 0===v?{}:v,y=r.confirmInfo,j=y.params,C=void 0===j?{}:j,I=y.bindInfo,w=void 0===I?{}:I,P=r.isCreate,A=r.createInfo,M=r.prizeName,z=r.rule;return m.a.createElement("div",{"data-skip":"treasure"},m.a.createElement(d.e,{title:"\u6211\u7684\u5b9d\u7bb1",arrow:!0}),i&&m.a.createElement("p",{className:"activity-end__desc"},"\u6d3b\u52a8\u5df2\u7ed3\u675f",m.a.createElement("br",null),o,"s\u540e\u5c06\u81ea\u52a8\u8fd4\u56de\u9996\u9875"),!i&&c&&m.a.createElement(m.a.Fragment,null,m.a.createElement("i",{className:"team-empty__icon"}),m.a.createElement("p",{className:"team-empty__desc"},"\u60a8\u5f53\u524d\u8fd8\u6ca1\u6709\u5b9d\u7bb1\u54e6~"),m.a.createElement("p",{className:"team-empty__desc"},"\u5feb\u53bb\u7ec4\u961f\u9080\u8bf7\u597d\u53cb\u4e00\u8d77\u5f00\u5b9d\u7bb1\u5427\uff01"),m.a.createElement("button",{className:"team-empty__button",onClick:this.toOrganizeTeam},"\u7ec4\u961f\u5f00\u5b9d\u7bb1")),!i&&!c&&n.uid&&m.a.createElement("div",{className:"treasure-content"},l.map(function(t,s){return m.a.createElement(O,{data:t,key:s,userInfo:n,history:a,splitInstance:e.splitInstance,toSplitTreasure:function(){return e.toSplitTreasure({team_num:t.team_num,owner_uid:t.captain_uid})}},m.a.createElement(T,{data:{bind_phone:t.bind_phone,bind_address:t.bind_address,prize_type:t.prize_type},handleToBindPhone:e.handleToBindPhone,handleToBindAddress:e.handleToBindAddress,toComposeCoupon:e.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(t.prize_data)},toCourseList:e.toCourseList,toFecthMoney:e.toFecthMoney}))}),m.a.createElement(B,{visible:_,handleToHide:function(){return e.handleToHideWindow("isSplit")}},m.a.createElement(S,{ids:u,data:E,handleToInvite:function(){return e.handleToInvite(E.treasure_code)},handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,successSplitTreasure:this.successSplitTreasure},m.a.createElement(T,{data:E,handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,toComposeCoupon:this.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(E.prize_data)},toCourseList:this.toCourseList,toFecthMoney:this.toFecthMoney}))),m.a.createElement(B,{visible:p,handleToHide:function(){return e.handleToHideWindow("isPhone")}},m.a.createElement(g,{history:a,country:s,hideBindPhone:function(){return e.handleToHideWindow("isPhone")},handleToConfirmPhone:this.handleToConfirmPhone,successBindPhone:this.successBindPhone,desc:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"phone-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 \u5956\u54c1\u540d\u79f0\uff08",M,"\uff09"),m.a.createElement("p",{className:"phone-treasure__notice"},"\u4e3a\u4e86\u60a8\u7684\u8d26\u6237\u5b89\u5168\uff0c\u8bf7\u4e8e2019\u5e7412\u670831\u65e5\u524d\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8fc7\u671f\u5c06\u5931\u6548"))})),m.a.createElement(B,{visible:f,handleToHide:function(){return e.handleToHideWindow("isConfirm")}},m.a.createElement(N,{data:C,bindInfo:w,handleToCancle:function(){return e.handleToHideWindow("isConfirm")},successBindPhone:this.successBindPhone})),m.a.createElement(B,{visible:h,handleToHide:function(){return e.handleToHideWindow("isAddress")}},m.a.createElement(b,{skip:"year",tip:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"address-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 ",M),m.a.createElement("p",{className:"address-treasure__notice"},"\u8bf7\u53ca\u65f6\u586b\u5199/\u786e\u8ba4\u6536\u8d27\u4fe1\u606f\uff0c\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4")),successBindAddress:this.successBindAddress})),m.a.createElement(B,{visible:P,handleToHide:function(){return e.handleToHideWindow("isCreate")}},m.a.createElement(k,{data:A,handleToInvite:function(){e.handleToInvite(A.treasure_code),e.handleToHideWindow("isCreate")}}))),m.a.createElement("div",{className:"activity-rule__header"},m.a.createElement("i",{className:"activity-rule__decorate"}),m.a.createElement("h2",{className:"activity-rule__title"},"\u6d3b\u52a8\u89c4\u5219"),m.a.createElement("i",{className:"activity-rule__decorate"})),m.a.createElement("div",{className:"activity-rule__body",dangerouslySetInnerHTML:{__html:z}}))}}]),t}(l.Component))||n);t.default=M},1290:function(e,t,a){"use strict";a.r(t);a(41);var n,s,r=a(12),i=a.n(r),c=a(5),o=a(7),l=a(6),m=a(8),u=a(9),d=a(0),p=a.n(d),h=(a(1236),a(1237),a(49)),f=a(3),_=a(660),v=a(739),b=a(22),E=(a(28),a(587)),y=a.n(E),g=Object(b.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).getLiveInfo=function(){f.d.get("".concat(API.home,"/activity/get_live_info")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;200===n?a.setState({list:s}):i.a.info(r)})},a.subscribe=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.props.history.push("/passport/login"):f.d.get("".concat(API["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data,n=t.errno,s=t.data,r=t.msg;200===n?y.a.toDataURL(s.url,function(e,t){a.setState({showMark:!0,subUrl:t})}):i.a.info(r)})},a.tip=function(){i.a.info("\u4f60\u5df2\u9884\u7ea6\u8be5\u76f4\u64ad")},a.toLivingRoom=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.props.history.push("/passport/login"):window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.checkVideo=function(e){var t=a.props.user,n=t.hasError;t.data;if(n)a.props.history.push("/passport/login");else{var s=e.split("/")[0];history.push("/play/video?id=".concat(s))}},a.closePopup=function(){a.setState({showMark:!1}),a.getLiveInfo()},a.saveImage=function(){var e=Object(f.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.QRCodeUrl;e&&parseInt(e)<451?i.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",2,null,!1):Object(f.a)("generateQRCode",t)},a.state={list:[],showMark:!1,subUrl:""},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getLiveInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.showMark,s=t.subUrl;return p.a.createElement("div",{className:"live__container"},n&&p.a.createElement(v.a,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"),p.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:s,alt:""}),f.b.isAndroidApp?p.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):null)),p.a.createElement(_.a,{title:"\u5927\u5496\u76f4\u64ad",id:"year-live"},p.a.createElement("ul",{className:"live__list"},a.length&&a.map(function(t,a){return p.a.createElement("li",{key:a,className:"live_room_item"},p.a.createElement("img",{className:"user__avatar",src:t.avatar,alt:""}),p.a.createElement("div",{className:"live__info"},p.a.createElement("div",{className:"theme"},p.a.createElement("span",null,"\u4e3b\u9898\uff1a"),p.a.createElement("p",null,t.title)),p.a.createElement("div",{className:"info__item"},p.a.createElement("span",null,"\u65f6\u95f4\uff1a"),p.a.createElement("p",null,t.date)),p.a.createElement("div",{className:"info__item"},p.a.createElement("span",null,"\u8bb2\u5e08\uff1a"),p.a.createElement("p",null,t.teacher)),0==t.on_live&&0==t.is_end&&0==t.is_subscribe&&p.a.createElement("span",{onClick:function(){return e.subscribe(t.live_id)},className:"order__btn"},"\u7acb\u5373\u9884\u7ea6"),0==t.on_live&&0==t.is_end&&1==t.is_subscribe&&p.a.createElement("span",{onClick:e.tip,className:"order__btn subscribed"},"\u5df2\u9884\u7ea6"),1==t.on_live&&0==t.is_end&&p.a.createElement("span",{onClick:function(){return e.toLivingRoom(t.room_url)},className:"order__btn living"},"\u6b63\u5728\u76f4\u64ad"),1==t.is_end&&""!=t.transcribe_url&&p.a.createElement("span",{onClick:function(){return e.checkVideo(t.transcribe_url)},className:"order__btn check__video"},"\u67e5\u770b\u56de\u653e")))}))))}}]),t}(d.Component))||n,N=Object(h.g)(g),k=a(819),j=(a(1238),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).fetchRankInfo=function(){f.d.get("".concat(API.home,"/sys/treasure/ranking")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&(s.length>5?a.setState({rank:s.filter(function(e,t){return t<5}),rankList:s,isMore:!0}):a.setState({rank:s,rankList:s,isMore:!1}))})},a.switchMoreRank=function(){var e=a.state,t=e.rankList;e.isMore?a.setState({rank:t,isMore:!1}):a.setState({rank:t.filter(function(e,t){return t<5}),isMore:!0})},a.state={rank:[],rankList:[],isMore:!1},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this.state,t=e.rank,a=e.isMore;return 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"},t.map(function(e,t){return p.a.createElement("dl",{className:"rank-item",key:t},p.a.createElement("dd",{className:"rank-column"},t<=2?p.a.createElement("span",{className:"rank-column__number","data-num":t}):p.a.createElement("span",null,t+1)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",{className:"rank-column__name"},e.user_name)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",null,e.num)),p.a.createElement("dd",{className:"rank-column"},e.url?p.a.createElement("a",{className:"rank-column__txt",href:e.url},e.prize_name):p.a.createElement("span",{className:"rank-column__txt"},e.prize_name)))}),p.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},p.a.createElement("span",{className:"rank-more__txt"},a?"\u5c55\u5f00":"\u6536\u8d77"),p.a.createElement("i",{className:"rank-more__icon","data-more":a}))))}}]),t}(d.Component)),C=(a(1239),a(25)),I=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){f.d.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 c=s.prize_info,o=s.is_my_team,l=s.info,m=s.member,u=s.removable_data,d=s.my_team;a.setState({prize_info:c,is_my_team:o,info:l,member:a.fillTeam(m),removable_data:u,my_team:d});var p=null;l.removable>0&&(p=u[0].id),a.props.getRemovable(l.removable,p)}else i.a.info(r)})},a.toYearTreasure=function(e){if(a.props.user.hasError)a.props.history.push("/passport/login");else{var t="";if(e){var n=a.state,s=n.removable_data;if(n.info.removable>0){var r=s[0];t="?id=".concat(r.id)}}a.props.history.push("/year/yearTreasure".concat(t))}},a.createTeam=function(){if(a.props.user.hasError)a.props.history.push("/passport/login");else{var e=a.state,t=e.is_my_team,n=e.my_team.treasure_code;t?a.props.history.push("/activity/newyear-2019/landing?origin=1&treasure_code="+n):f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;if(200===n){var c=s.treasure_code;a.props.history.push("/activity/newyear-2019/landing?origin=1&treasure_code="+c)}else i.a.info(r)})}},a.fillTeam=function(e){for(var t=e.length,a=0;a<5-t;a++)e.push({head_img:"",user_name:"",nobody:!0});return e},a.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,s=t.info,r=s.removable,i=s.total,c=t.member,o="",l=0;a.length>0&&(o=a[0].name,l=a[0].stage_no);var m="";return m=0===i?"\u6211\u7684\u5b9d\u7bb1":0===r?"\u5171".concat(i,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(i,"\u4e2a\u5b9d\u7bb1/").concat(r,"\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"},m),p.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),r>0&&p.a.createElement("div",{className:"position__number"},r))),p.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&o&&p.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u6b21\u5fc5\u4e2d").concat(o)))}}]),t}(d.Component),O=Object(C.d)(Object(b.b)(function(e){return{user:e.user}},null),h.g)(I),T=a(817),S=a(818),w=function(e){function t(e){return Object(c.a)(this,t),Object(l.a)(this,Object(m.a)(t).call(this,e))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return p.a.createElement(_.a,{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(T.a,{showSystemNotices:!0}),p.a.createElement(S.a,null),p.a.createElement(O,{getRemovable:this.props.getRemovable}),p.a.createElement(j,null))}}]),t}(d.Component),P=a(17),A=a.n(P),B=(a(1240),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).initNav=function(e){var t=a.state.navs;0===e?a.setState({formatNavs:t.filter(function(e){return"year-treasure"!==e.id})}):a.setState({formatNavs:t})},a.calcNavActive=function(){var e=a.state.formatNavs,t=a.props.id,n=document.querySelector("#".concat(t));setTimeout(function(){var t=window.scrollY,s=e.length-1;for(a.setState({isFixed:t>=n.offsetHeight});s>-1;s--){var r=document.querySelector("#".concat(e[s].id));if(r&&t+200>=r.offsetTop){a.setState({curIndex:s});break}}},100)},a.selectToNav=function(e){var t=a.state.formatNavs,n="#".concat(t[e].id),s=document.querySelector(n);s&&(a.setState({curIndex:e}),window.scrollTo({top:s.offsetTop,left:0}))},a.state={isFixed:!1,curIndex:1,formatNavs:[],navs:[{id:"year-live",name:"\u5927\u5496\u76f4\u64ad"},{id:"year-treasure",name:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},{id:"year-course",name:"\u91cd\u78c5\u597d\u8bfe"},{id:"year-free",name:"\u514d\u8d39\u5b66"},{id:"year-group",name:"1\u5206\u62fc\u56e2"},{id:"year-discount",name:"\u6284\u5e95\u4e13\u533a"}]},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.calcNavActive)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.calcNavActive)}},{key:"componentWillReceiveProps",value:function(e){this.initNav(e.treasure_stage)}},{key:"render",value:function(){var e=this,t=this.state,a=t.isFixed,n=t.curIndex,s=t.formatNavs;return p.a.createElement("div",{className:A()("treasure-nav",{fixed:a}),"data-skip":"nav"},s.map(function(t,a){return p.a.createElement("a",{href:"#".concat(t.id),className:A()("treasure-nav__item",{active:a===n}),key:t.id,onClick:function(){return e.selectToNav(a)}},t.name)}))}}]),t}(d.Component)),M=a(36),z=a.n(M),x=a(27),F=a(155);a.d(t,"default",function(){return L});var L=Object(b.b)(function(e){return{user:e.user}},{setCurrentUser:x.g,startFetchUser:x.h})(s=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(a=Object(l.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(s)))).state={removable:0,currentOpenId:0,treasure_stage:0,active_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_banner_bj%402x.png"},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(F.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){z.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),z.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),z.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),z.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),z.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),z.a.get("token")&&z.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.closePopup=function(){a.setState({showMark:!1})},a.getRemovable=function(e,t){a.setState({removable:e,currentOpenId:t})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentOpenId,n="";t&&(n="?id=".concat(t)),e?a.props.history.push("/year/yearTreasure".concat(n)):Object(f.c)("version")?Object(f.a)("toLogin"):a.props.history.push("/passport/login")},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;200===n?a.setState({treasure_stage:s.treasure_stage}):i.a.info(r,2)})},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage()}},{key:"render",value:function(){var e=this,t=this.state,a=t.banner,n=t.removable,s=t.treasure_stage,r=t.currentOpenId;return p.a.createElement("div",{className:"year-index"},p.a.createElement("div",{className:"banner-treasure"},p.a.createElement("div",{id:"banner",className:"banner-treasure__header",style:{backgroundImage:"url(".concat(a,")")}}),p.a.createElement("div",{className:"banner-treasure__nav"},p.a.createElement(B,{id:"banner",treasure_stage:s})),p.a.createElement("div",{className:"banner-treasure__decorate"})),p.a.createElement("div",{className:"nav-right"},p.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",n>0&&p.a.createElement("i",{className:"nav-right__number"},n)),p.a.createElement("a",{onClick:function(){return e.toYearWish()},className:"nav-right__link"},"\u5fc3\u613f\u5355",this.state.txt1>0&&p.a.createElement("i",{className:"nav-right__number"},this.state.txt1))),p.a.createElement(N,null),1===s&&p.a.createElement(w,{getRemovable:this.getRemovable}),p.a.createElement(k.a,{currentOpenId:r,removable:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&p.a.createElement(v.a,{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(v.a,{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\uff0812\u670818\u65e5-12\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"))))}}]),t}(d.Component))||s}}]);
//# sourceMappingURL=newyear-yearIndex.3cd081d4.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1240:function(e,t,a){},1241:function(e,t,a){},1242:function(e,t,a){},1243:function(e,t,a){},1244:function(e,t,a){},1245:function(e,t,a){},1246:function(e,t,a){},1247:function(e,t,a){},1248:function(e,t,a){},1249:function(e,t,a){},1250:function(e,t,a){},1284:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),i=a(8),c=a(9),o=a(0),l=a.n(o),m=(a(1250),a(3)),u=a(660),d=a(659),p=a(49),h=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];return(a=Object(r.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={list:[],activityStage:1},a.fetchCourse=function(){m.d.get("".concat(API.home,"/activity/wish_course")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&a.setState({list:"{}"===JSON.stringify(s)?[]:s})})},a.getStage=function(){m.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&a.setState({activityStage:s.activity_stage})})},a.toCourse=function(e){var t=a.props.history;Object(m.c)("version")?Object(m.a)("toCourse",e):t.push("/detail?id=".concat(e))},a}return Object(c.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourse(),this.getStage()}},{key:"componentWillUpdate",value:function(){this.state.activityStage;document.title="\u4e03\u6708\u5728\u7ebf\u5e74\u7ec8\u5927\u56de\u9988\uff0c\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66\uff0c\u7cbe\u54c1\u8bfe\u7a0b1\u5206\u62a2\uff01"}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.activityStage;return l.a.createElement("div",{className:"year-wish"},l.a.createElement("div",{className:"banner"},l.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/xy_banner_bj.png",alt:""})),a.length>0?l.a.createElement(u.a,null,l.a.createElement("div",{className:"groupcourse course-box"},a&&a.length>0&&a.map(function(t){return l.a.createElement(d.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},4==t.type&&1!=t.is_buy&&l.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),l.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&l.a.createElement(l.a.Fragment,null,l.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),l.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"type"},0==t.type&&l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),l.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),(1==t.type||4==t.type)&&l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),l.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&l.a.createElement(l.a.Fragment,null,l.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),l.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),l.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",l.a.createElement("span",{className:"new-price"},4==t.type?"0.01":t.price2),l.a.createElement("span",{className:"old-price"}," \u73b0\u4ef7\uff1a",l.a.createElement("s",null,"\xa5",t.price1))),l.a.createElement("div",{className:"status"},l.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&l.a.createElement("a",{className:"status-btn add-wish"},l.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&&l.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id)},className:"status-btn add-wish-success"},l.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))}))):l.a.createElement("div",{className:"notData"},l.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-empty.png",alt:""}),1==n?l.a.createElement("p",null,"\u4f60\u7684\u5fc3\u613f\u5355\u76ee\u524d\u7a7a\u7a7a\u5982\u4e5f\uff0c",l.a.createElement("br",null),"\u5feb\u53bb\u6311\u9009\u66f4\u591a\u4f18\u60e0\u8bfe\u7a0b\u5427\uff5e"):l.a.createElement("p",null,"\u4f60\u7684\u5fc3\u613f\u5355\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c",l.a.createElement("br",null),"\u611f\u5174\u8da3\u7684\u8bfe\u7a0b\u53ef\u5728\u53cc\u65e6\u4e3b\u4f1a\u573a\u76f4\u63a5\u8d2d\u4e70\uff01")))}}]),t}(o.Component);t.default=Object(p.g)(h)},1288:function(e,t,a){"use strict";a.r(t);var n,s=a(5),r=a(7),i=a(6),c=a(8),o=a(9),l=a(0),m=a.n(l),u=a(22),d=a(28),p=(a(41),a(12)),h=a.n(p),f=a(19),_=a(3),v=a(20),b=(a(1241),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).fetchUserAddress=function(){var e=a.state.addressInfo;_.d.get("".concat(API.home,"/sys/user_address_info")).then(function(t){var n=t.data,s=n.code,r=n.data;n.msg;200===s&&a.setState({addressInfo:Object.assign({},e,{name:r.name,phone:r.phone,address:r.address}),isLoading:!0})})},a.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props.successBindAddress;_.d.post("".concat(API.home,"/sys/update_address"),Object(f.a)({act_type:"treasure"},e)).then(function(e){var a=e.data,n=a.code,s=a.msg;200===n?t():h.a.info(s,2,null,!1)})},a.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,t=this.state,a=t.isLoading,n=t.addressInfo,s=this.props,r=s.tip,i=s.prize,c=s.skip,o=void 0===c?"default":c;return m.a.createElement(m.a.Fragment,null,a&&m.a.createElement(v.d,{initialValues:Object(f.a)({},n),validate:function(e){var t=e.name,a=e.phone,n=e.address,s={};return t||(s.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(a)||(s.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(s.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),s},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(t){e.handleToSubmit(t)},render:function(e){var t=e.errors;return m.a.createElement(v.c,{className:"address-form","data-skip":o},m.a.createElement("h2",{className:"address-form__title"},"\u6536\u8d27\u4fe1\u606f"),i?m.a.createElement("p",{className:"address__prize"},"\u60a8\u62bd\u4e2d\u4e86",m.a.createElement("span",{style:{color:"#FF4000"}},i)):null,r?m.a.createElement("div",{className:"address-form__subtitle"},r):m.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),m.a.createElement(v.b,{name:"name",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),t.name&&m.a.createElement("p",{className:"address-form__tip"},t.name))}}),m.a.createElement(v.b,{name:"phone",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),t.phone&&m.a.createElement("p",{className:"address-form__tip"},t.phone))}}),m.a.createElement(v.b,{name:"address",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),t.address&&m.a.createElement("p",{className:"address-form__tip"},t.address))}}),m.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),t}(l.Component)),E=a(42),y=a(70),g=(a(1242),function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(i.a)(this,Object(c.a)(t).call(this,e)),a.captchaInstance=null,a.initCountryInfo=function(){var e=a.props.country;a.setState({country:e})},a.toFetchCountryNum=function(){var e=a.props,t=e.history;(0,e.hideBindPhone)(),t.push("/country?from=bind")},a.getCaptchaInstance=function(e){a.captchaInstance=e},a.onVerify=function(e,t){e?console.log(e):a.setState({validate:t.validate})},a.handleToSend=function(e){var t=e.tel,n=(e.code,a.state),s=n.validate,r=n.seconds,i=n.isFirst,c=n.isTimer,o=n.country.num,l=void 0===o?"86":o;if(s){if(!i)return h.a.info("\u8bf7\u91cd\u65b0\u8fdb\u884c\u6ed1\u5757\u9a8c\u8bc1",2,null,!1),a.captchaInstance.refresh(),void a.setState({isFirst:!0});c||(t?/^\d+$/.test(t)?_.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(l),phone_num:t}).then(function(e){var t=e.data,n=t.errno,s=t.msg;200===n?(h.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){r<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--r})},1e3),a.setState({isFirst:!1})):h.a.info(s,2,null,!1)}):h.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7\u7801",2,null,!1):h.a.info("\u624b\u673a\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a",2,null,!1))}return!1},a.toBindPhone=function(){var e=a.state,t=e.accountInfo,n=t.tel,s=t.code,r=e.country.num,i=void 0===r?"86":r,c=a.props,o=c.handleToConfirmPhone,l=c.successBindPhone,m={area_code:"00".concat(i),mobile:n,code:s,act_type:"treasure"};_.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(f.a)({},m,{type:1,is_valid:1})).then(function(e){var t=e.data,a=t.code,n=t.data,s=t.msg;200===a?n.tip_info?o(m,n.tip_info):l():h.a.info(s,2,null,!1)})},a.state={validate:"",seconds:60,isFirst:!0,timer:null,isTimer:!1,accountInfo:{},bindInfo:{},country:{num:"86"}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.initCountryInfo()}},{key:"render",value:function(){var e=this,t=this.props,a=t.desc,n=t.skip,s=void 0===n?"year":n,r=this.state,i=r.country,c=r.validate,o=r.isTimer,l=r.seconds;return m.a.createElement(v.d,{initialValues:{tel:"",code:""},validate:function(e){var t=e.tel,a=e.code,n={};return/^\d+$/.test(t)||(n.tel="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),/[0-9]{6}/.test(a)||(n.code="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"),n},onSubmit:function(t,a){a.setStatus,a.setSubmitting;e.setState({accountInfo:Object(f.a)({},t)}),e.toBindPhone()},render:function(t){var n=t.values,r=n.tel,u=n.code,d=t.errors;return m.a.createElement(v.c,{className:"popup-form","data-skip":s},m.a.createElement("h2",{className:"popup-form__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),a&&m.a.createElement("div",{className:"poup-form__desc"},a),m.a.createElement("div",{className:"popup-form__item"},m.a.createElement("a",{className:"popup-form__button--num",onClick:e.toFetchCountryNum},"+",i.num,m.a.createElement("i",{className:"iconfont iconiconfront-69"})),m.a.createElement(v.b,{name:"tel",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt","data-type":"tel",type:"text",placeholder:"\u8bf7\u586b\u5199\u624b\u673a\u53f7"}))}})),m.a.createElement(y.a,{getInstance:e.getCaptchaInstance,onVerify:e.onVerify}),m.a.createElement("div",{className:"popup-form__item"},m.a.createElement(v.b,{name:"code",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt popup-form__ipt--left",type:"text",placeholder:"\u8f93\u5165\u9a8c\u8bc1\u7801"}))}}),m.a.createElement("button",{className:"popup-form__button--code","data-status":c&&!o?"do":"",type:"button",onClick:function(){return e.handleToSend({tel:r,code:u})}},o?"\u91cd\u65b0\u53d1\u9001".concat(l,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),m.a.createElement("button",{className:"popup-form__button--bundle","data-status":r&&u&&Object(E.isEmpty)(d)?"do":"done",type:"submit"},"\u5b8c\u6210\u7ed1\u5b9a"))}})}}]),t}(l.Component)),N=(a(1243),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(r)))).continueBindPhone=function(){var e=a.props,t=e.data,n=e.successBindPhone;_.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(f.a)({},t,{type:1,is_valid:0})).then(function(e){var t=e.data,a=t.code,s=t.msg;200===a?n():h.a.info(s,2,null,!1)})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.bindInfo,a=void 0===t?{}:t,n=e.desc,s=e.skip,r=void 0===s?"year":s,i=e.handleToCancle;return m.a.createElement("div",{className:"popup-bind","data-skip":r},m.a.createElement("h2",{className:"popup-bind__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),n?m.a.createElement("div",{className:"popup-bind__desc"},n):m.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),m.a.createElement("ul",{className:"popup-bind__list"},a.email&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"mail"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.email)),a.wechat_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"wachat"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.wechat_nickname)),a.qq_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"qq"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.qq_nickname)),a.sina_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"sina"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.sina_nickname))),m.a.createElement("div",{className:"popup-bind__footer"},m.a.createElement("button",{className:"popup-bind__button popup-bind__button--cancle",onClick:i},"\u53d6\u6d88"),m.a.createElement("button",{className:"popup-bind__button popup-bind__button--confirm",onClick:this.continueBindPhone},"\u7ee7\u7eed\u7ed1\u5b9a")))}}]),t}(l.Component)),k=(a(1244),function(e){console.log(e);var t=e.data,a=t.team_num,n=void 0===a?1:a,s=t.lack_member,r=void 0===s?4:s,i=t.member,c=void 0===i?[]:i,o=e.handleToInvite,l=new Array(5).fill({});return m.a.createElement("div",{className:"team-success"},m.a.createElement("h2",{className:"team-success__title"},"\u521b\u5efa\u6210\u529f"),m.a.createElement("p",{className:"team-success__tip"},m.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",m.a.createElement("span",null,r),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),m.a.createElement("i",{className:"team-success__icon"}),m.a.createElement("ul",{className:"team-success__member members"},l.map(function(e,t){var a=c[t];return m.a.createElement("li",{className:"member-item",key:t},a&&a.is_captain&&m.a.createElement("sup",{className:"member-item__captain"},"\u961f\u957f"),m.a.createElement("img",{className:"member-item__avatar",src:a?a.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),m.a.createElement("button",{type:"button",className:"team-success__button",onClick:o},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d"))}),j=a(17),C=a.n(j),I=a(16),O=(a(1245),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).initMemberInfo=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props,n=t.data,s=t.userInfo,r="{}"!==JSON.stringify(e)?e:n,i=r.member,c=i.length-5;c<0;c++)i.push({});a.setState({team:Object.assign({},r,{member:i}),currentMember:s.uid?i.filter(function(e){return e.uid==s.uid})[0]:{}})},a.computedClass=function(e){var t=a.props.data.is_open,n=a.state.currentMember;return C()("team-member__item",{active:e===n.uid&&t})},a.computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.toCheckPrize=function(e){var t=a.state.team,n=t.is_open,s=t.member;if(n){var r=(void 0===s?[]:s).filter(function(t){return t.uid===e});a.setState({currentMember:r[0]})}},a.state={team:{},currentMember:{}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.initMemberInfo()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,a=e.data;a.is_open!=t.is_open&&this.initMemberInfo(a)}},{key:"render",value:function(){var e=this,t=this.state,a=t.team,n=a.is_captain,s=a.status,r=a.team_num,i=a.lack_member,c=a.is_open,o=a.treasure_code,l=a.member,u=void 0===l?[]:l,d=t.currentMember,p=this.props,h=p.toSplitTreasure,f=p.userInfo,_=p.children;return m.a.createElement("div",{className:"team-container","data-skip":"team"},!n&&m.a.createElement("i",{className:"team-friend"},"\u53cb"),1===s?m.a.createElement("i",{className:"team-status"},"\u7ec4\u961f\u4e2d.."):m.a.createElement("i",{className:"team-decorate"}),n?m.a.createElement("h2",{className:"team-title"},r,"\u53f7\u961f\u4f0d"):m.a.createElement("h2",{className:"team-title"},"\u597d\u53cb\u961f\u4f0d"),1===s?m.a.createElement("p",{className:"team-desc"},"\u8fd8\u5dee",i,"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6\uff5e"):m.a.createElement("p",{className:"team-desc"},"\u7ec4\u961f\u6210\u529f"),m.a.createElement("div",{className:"team-member"},u.map(function(t,a){return m.a.createElement("div",{className:e.computedClass(t.uid),onClick:function(){return e.toCheckPrize(t.uid)},key:a,style:e.computedBg(t.head_img)},t.is_captain&&m.a.createElement("span",{className:"team-member__captain"},"\u961f\u957f"))})),m.a.createElement("div",{className:"team-footer","data-layout":c?"column":"row"},1===s&&m.a.createElement(m.a.Fragment,null,n?m.a.createElement(I.b,{className:"team-button",to:"/activity/newyear-2019/landing?treasure_code=".concat(o,"&origin=1")},"\u7ee7\u7eed\u9080\u8bf7\u961f\u53cb"):m.a.createElement(I.b,{className:"team-button",to:"/activity/newyear-2019/landing?treasure_code=".concat(o,"&origin=2")},"\u5e2e\u597d\u53cb\u5b8c\u6210\u7ec4\u961f")),2===s&&!c&&m.a.createElement(m.a.Fragment,null,m.a.createElement("span",{className:"team-icon","data-direction":"left"}),m.a.createElement("span",{className:"team-button--split",onClick:h}),m.a.createElement("span",{className:"team-icon","data-direction":"right"})),2===s&&c&&m.a.createElement(m.a.Fragment,null,d.prize_name?m.a.createElement("p",{className:"team-prize"},d.prize_name):m.a.createElement("p",{className:"team-prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"),d.uid==f.uid?_:null)))}}]),t}(l.Component)),T=(a(1246),function(e){var t=e.data,a=t.bind_phone,n=t.bind_address,s=t.prize_type,r=e.handleToBindPhone,i=e.handleToBindAddress,c=e.toComposeCoupon,o=e.toUseCoupon,l=e.toCourseList,u=e.toFecthMoney;return m.a.createElement(m.a.Fragment,null,a&&m.a.createElement("a",{className:"team-result",onClick:r},m.a.createElement("span",null,"\u7ed1\u5b9a\u624b\u673a\u53f7")),!a&&n&&m.a.createElement("a",{className:"team-result",onClick:i},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&1===s&&m.a.createElement("a",{className:"team-result",onClick:i},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&6===s&&m.a.createElement("a",{className:"team-result",onClick:c},"\u53ef\u5408\u6210\u4ee3\u91d1\u5238\u5728\u8d2d\u8bfe\u65f6\u4f7f\u7528\uff0c",m.a.createElement("span",null,"\u53bb\u5408\u6210")),!a&&!n&&3===s&&m.a.createElement("a",{className:"team-result",onClick:o},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&4===s&&m.a.createElement("a",{className:"team-result",onClick:l},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&7===s&&m.a.createElement("a",{className:"team-result",onClick:u},"\u5df2\u5b58\u5165\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u63d0\u73b0")),!a&&!n&&2===s&&m.a.createElement("a",{className:"team-result"},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237"),!a&&!n&&5===s&&m.a.createElement("a",{className:"team-result"},"\u6587\u6848\u5f85\u5b9a"))}),S=(a(1247),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(r)))).computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.continueSplitTreasure=function(){var e=a.props,t=e.ids,n=e.successSplitTreasure,s=e.handleToBindPhone,r=e.handleToBindAddress,i=t[0];_.d.post("".concat(API.home,"/sys/split_treasure"),i).then(function(e){var t=e.data,a=t.code,i=t.data;200===a?(n(i),i.bind_phone?setTimeout(function(){s(i.id)},500):i.bind_address&&setTimeout(function(){r(i.id)},500)):12e3===a?s():12001===a&&r()})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.ids,n=t.data,s=n.member,r=void 0===s?[]:s,i=n.prize_img,c=n.prize_name,o=t.handleToInvite,l=t.children;return m.a.createElement("div",{"data-skip":"split"},m.a.createElement("h2",{className:"split-success__title"},"\u606d\u559c\u4f60\u83b7\u5f97"),m.a.createElement("div",{className:"split-success__image"},m.a.createElement("img",{src:i,alt:""})),m.a.createElement("p",{className:"split-success__prize"},c),l,m.a.createElement("div",{className:"split-success__member"},r.map(function(t,a){return m.a.createElement("div",{className:"member-item",key:a},m.a.createElement("span",{className:"member-item__avatar",style:e.computedBg(t.avatar)},t.is_captain&&m.a.createElement("i",{className:"member-item__captain"},"\u961f\u957f")),t.prize?m.a.createElement("span",{className:"member-item__prize"},t.prize):m.a.createElement("span",{className:"member-item__prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"))})),a.length>0?m.a.createElement("button",{className:"split-success__jump",onClick:this.continueSplitTreasure},"\u7ee7\u7eed\u5f00\u5b9d\u7bb1"):m.a.createElement("button",{className:"split-success__jump",onClick:o},"\u7ee7\u7eed\u7ec4\u961f\u5f00\u5b9d\u7bb1"))}}]),t}(l.Component)),w=a(21),P=a.n(w),A=(a(1248),document.querySelector("body")),B=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).el||(a.el=document.createElement("div")),a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){A.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){A.removeChild(this.el)}},{key:"render",value:function(){var e=this.props,t=e.visible,a=e.handleToHide;return t?P.a.createPortal(m.a.createElement("div",{className:"mask"},m.a.createElement("div",{className:"mask-content"},this.props.children),m.a.createElement("div",{className:"mask-footer"},m.a.createElement("i",{className:"mask-button__close",onClick:a}))),this.el):null}}]),t}(l.Component),M=(a(1249),a(811),Object(u.b)(function(e){return{country:e.country,userInfo:e.user.data}})(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).popupInstance=null,a.initPrizeName=function(e){var t=a.fetchCurrentTeamId(e),n=e.filter(function(e){return e.id==t});n.length>0&&a.setState({prizeName:n[0].prize_name})},a.judgeIsHaveId=function(e){var t=Object(_.c)("id");if(t){var n=e.filter(function(e){return e.id==t});if(n.length>0){var s={team_num:n[0].team_num,owner_uid:n[0].captain_uid};a.toSplitTreasure(s)}}},a.fetchCurrentTeamId=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return e.is_open&&(e.bind_phone||e.bind_address)});return e.length>0?e[0].id:""},a.isShowBindPhone=function(e){if(a.props.country.from){var t=a.fetchCurrentTeamId(e);a.handleToBindPhone(t)}},a.handleToBindPhone=function(e){a.setState({isPhone:!0})},a.handleToConfirmPhone=function(e,t){a.handleToHideWindow("isPhone"),a.setState({confirmInfo:{params:e,bindInfo:t},isConfirm:!0})},a.successBindPhone=function(){a.setState({isPhone:!1,isConfirm:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),r=t.map(function(e){return e.id==s?(e.bind_address&&a.handleToBindAddress(),Object.assign({},e,{bind_phone:!1})):e});a.setState({teams:r,splitInfo:Object.assign({},n,{bind_phone:!1})})},a.toSplitTreasure=function(e){_.d.post("".concat(API.home,"/sys/split_treasure"),e).then(function(e){var t=e.data,n=t.code,s=t.data;200===n?(a.showSuccessSplit(s),a.successSplitTreasure(s),s.bind_phone?setTimeout(function(){a.handleToBindPhone(s.id)},500):s.bind_address&&setTimeout(function(){a.handleToBindAddress(s.id)},500)):12e3===n?a.handleToBindPhone():12001===n&&a.handleToBindAddress()})},a.successSplitTreasure=function(e){var t=a.props.userInfo,n=a.state.teams.map(function(a){return a.id==e.id?Object.assign({},a,{bind_phone:e.bind_phone,bind_address:e.bind_address,is_open:!0,prize_type:e.prize_type,prize_data:e.prize_data,member:a.member.map(function(a){return a.uid==t.uid?Object.assign({},a,{is_open:!0,prize_name:e.prize_name}):a})}):a});a.initNoSplitInfo(n),a.setState({teams:n,splitInfo:e,prizeName:e.prize_name})},a.showSuccessSplit=function(e){a.setState({isSplit:!0,splitInfo:e})},a.handleToBindAddress=function(e){a.setState({isAddress:!0})},a.successBindAddress=function(){a.setState({isAddress:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),r=t.map(function(e){return e.id==s?Object.assign({},e,{bind_address:!1}):e});a.setState({teams:r,splitInfo:Object.assign({},n,{bind_address:!1})})},a.fetchMyTreasure=function(){_.d.get("".concat(API.home,"/sys/treasure/my")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&(a.setState({rule:s.rule}),Array.isArray(s.team)&&s.team.length>0?(a.initNoSplitInfo(s.team),a.judgeIsHaveId(s.team),a.isShowBindPhone(s.team),a.initPrizeName(s.team),a.setState({isEmpty:!1,teams:s.team})):a.setState({isEmpty:!0}))})},a.initNoSplitInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.length>0&&a.setState({ids:e.filter(function(e){return!e.is_open&&2===e.status}).map(function(e){return{team_num:e.team_num,owner_uid:e.captain_uid}})})},a.fetchActivityStatus=function(){_.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&a.setState({isEnd:0===s.treasure_stage})})},a.startCountDown=function(){var e=a.props.history,t=a.state.seconds;a.timer&&clearInterval(a.timer),a.setState({seconds:t--}),a.timer=setInterval(function(){a.setState({seconds:t--}),0===t&&(a.setState({seconds:0}),clearInterval(a.timer),e.push("/year/yearIndex"))},1e3)},a.handleToInvite=function(e){a.props.history.push("/activity/newyear-2019/landing?treasure_code=".concat(e,"&origin=1"))},a.toOrganizeTeam=function(){var e=a.props,t=e.history,n=e.userInfo.uid;""===(void 0===n?"":n)?t.push("/passport"):_.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){var r=[];r[0]=s,a.setState({isEmpty:!1,teams:r,isCreate:!0,createInfo:s})}})},a.toComposeCoupon=function(){a.props.history.push("/coupons/my-patch")},a.toUseCoupon=function(e){a.props.history.push("/detail?id=".concat(e))},a.toCourseList=function(){a.props.history.push("/classify")},a.toFecthMoney=function(){a.props.history.push("/scholarship")},a.handleToHideWindow=function(e){var t={};t[e]=!1,a.setState(t)},a.state={isEnd:!1,isEmpty:!1,seconds:3,teams:[],ids:[],bindInfo:{},isPhone:!1,isAddress:!1,isConfirm:!1,confirmInfo:{},isSplit:!1,isCreate:!1,createInfo:{},prizeName:""},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.state.isEnd&&this.startCountDown(),this.fetchMyTreasure(),this.fetchActivityStatus()}},{key:"render",value:function(){var e=this,t=this.props,a=t.history,n=t.userInfo,s=t.country,r=this.state,i=r.isEnd,c=r.isEmpty,o=r.seconds,l=r.teams,u=r.ids,p=r.isPhone,h=r.isAddress,f=r.isConfirm,_=r.isSplit,v=r.splitInfo,E=void 0===v?{}:v,y=r.confirmInfo,j=y.params,C=void 0===j?{}:j,I=y.bindInfo,w=void 0===I?{}:I,P=r.isCreate,A=r.createInfo,M=r.prizeName,z=r.rule;return m.a.createElement("div",{"data-skip":"treasure"},m.a.createElement(d.e,{title:"\u6211\u7684\u5b9d\u7bb1",arrow:!0}),i&&m.a.createElement("p",{className:"activity-end__desc"},"\u6d3b\u52a8\u5df2\u7ed3\u675f",m.a.createElement("br",null),o,"s\u540e\u5c06\u81ea\u52a8\u8fd4\u56de\u9996\u9875"),!i&&c&&m.a.createElement(m.a.Fragment,null,m.a.createElement("i",{className:"team-empty__icon"}),m.a.createElement("p",{className:"team-empty__desc"},"\u60a8\u5f53\u524d\u8fd8\u6ca1\u6709\u5b9d\u7bb1\u54e6~"),m.a.createElement("p",{className:"team-empty__desc"},"\u5feb\u53bb\u7ec4\u961f\u9080\u8bf7\u597d\u53cb\u4e00\u8d77\u5f00\u5b9d\u7bb1\u5427\uff01"),m.a.createElement("button",{className:"team-empty__button",onClick:this.toOrganizeTeam},"\u7ec4\u961f\u5f00\u5b9d\u7bb1")),!i&&!c&&n.uid&&m.a.createElement("div",{className:"treasure-content"},l.map(function(t,s){return m.a.createElement(O,{data:t,key:s,userInfo:n,history:a,splitInstance:e.splitInstance,toSplitTreasure:function(){return e.toSplitTreasure({team_num:t.team_num,owner_uid:t.captain_uid})}},m.a.createElement(T,{data:{bind_phone:t.bind_phone,bind_address:t.bind_address,prize_type:t.prize_type},handleToBindPhone:e.handleToBindPhone,handleToBindAddress:e.handleToBindAddress,toComposeCoupon:e.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(t.prize_data)},toCourseList:e.toCourseList,toFecthMoney:e.toFecthMoney}))}),m.a.createElement(B,{visible:_,handleToHide:function(){return e.handleToHideWindow("isSplit")}},m.a.createElement(S,{ids:u,data:E,handleToInvite:function(){return e.handleToInvite(E.treasure_code)},handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,successSplitTreasure:this.successSplitTreasure},m.a.createElement(T,{data:E,handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,toComposeCoupon:this.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(E.prize_data)},toCourseList:this.toCourseList,toFecthMoney:this.toFecthMoney}))),m.a.createElement(B,{visible:p,handleToHide:function(){return e.handleToHideWindow("isPhone")}},m.a.createElement(g,{history:a,country:s,hideBindPhone:function(){return e.handleToHideWindow("isPhone")},handleToConfirmPhone:this.handleToConfirmPhone,successBindPhone:this.successBindPhone,desc:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"phone-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 \u5956\u54c1\u540d\u79f0\uff08",M,"\uff09"),m.a.createElement("p",{className:"phone-treasure__notice"},"\u4e3a\u4e86\u60a8\u7684\u8d26\u6237\u5b89\u5168\uff0c\u8bf7\u4e8e2019\u5e7412\u670831\u65e5\u524d\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8fc7\u671f\u5c06\u5931\u6548"))})),m.a.createElement(B,{visible:f,handleToHide:function(){return e.handleToHideWindow("isConfirm")}},m.a.createElement(N,{data:C,bindInfo:w,handleToCancle:function(){return e.handleToHideWindow("isConfirm")},successBindPhone:this.successBindPhone})),m.a.createElement(B,{visible:h,handleToHide:function(){return e.handleToHideWindow("isAddress")}},m.a.createElement(b,{skip:"year",tip:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"address-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 ",M),m.a.createElement("p",{className:"address-treasure__notice"},"\u8bf7\u53ca\u65f6\u586b\u5199/\u786e\u8ba4\u6536\u8d27\u4fe1\u606f\uff0c\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4")),successBindAddress:this.successBindAddress})),m.a.createElement(B,{visible:P,handleToHide:function(){return e.handleToHideWindow("isCreate")}},m.a.createElement(k,{data:A,handleToInvite:function(){e.handleToInvite(A.treasure_code),e.handleToHideWindow("isCreate")}}))),m.a.createElement("div",{className:"activity-rule__header"},m.a.createElement("i",{className:"activity-rule__decorate"}),m.a.createElement("h2",{className:"activity-rule__title"},"\u6d3b\u52a8\u89c4\u5219"),m.a.createElement("i",{className:"activity-rule__decorate"})),m.a.createElement("div",{className:"activity-rule__body",dangerouslySetInnerHTML:{__html:z}}))}}]),t}(l.Component))||n);t.default=M},1290:function(e,t,a){"use strict";a.r(t);a(41);var n,s,r=a(12),i=a.n(r),c=a(5),o=a(7),l=a(6),m=a(8),u=a(9),d=a(0),p=a.n(d),h=(a(1236),a(1237),a(49)),f=a(3),_=a(660),v=a(739),b=a(22),E=(a(28),a(587)),y=a.n(E),g=Object(b.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).getLiveInfo=function(){f.d.get("".concat(API.home,"/activity/get_live_info")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;200===n?a.setState({list:s}):i.a.info(r)})},a.subscribe=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():f.d.get("".concat(API["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data,n=t.errno,s=t.data,r=t.msg;200===n?y.a.toDataURL(s.url,function(e,t){a.setState({showMark:!0,subUrl:t})}):i.a.info(r)})},a.tip=function(){i.a.info("\u4f60\u5df2\u9884\u7ea6\u8be5\u76f4\u64ad")},a.toLivingRoom=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.checkVideo=function(e){var t=a.props.user,n=t.hasError;t.data;if(n)a.toLogin();else{var s=e.split("/")[0];history.push("/play/video?id=".concat(s))}},a.closePopup=function(){a.setState({showMark:!1}),a.getLiveInfo()},a.saveImage=function(){var e=Object(f.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.QRCodeUrl;e&&parseInt(e)<451?i.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",2,null,!1):Object(f.a)("generateQRCode",t)},a.toLogin=function(){Object(f.c)("version")?Object(f.a)("toLogin"):a.props.history.push("/passport/login")},a.state={list:[],showMark:!1,subUrl:""},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getLiveInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.showMark,s=t.subUrl;return p.a.createElement("div",{className:"live__container"},n&&p.a.createElement(v.a,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"),p.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:s,alt:""}),f.b.isAndroidApp?p.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):null)),p.a.createElement(_.a,{title:"\u5927\u5496\u76f4\u64ad",id:"year-live"},p.a.createElement("ul",{className:"live__list"},a.length&&a.map(function(t,a){return p.a.createElement("li",{key:a,className:"live_room_item"},p.a.createElement("img",{className:"user__avatar",src:t.avatar,alt:""}),p.a.createElement("div",{className:"live__info"},p.a.createElement("div",{className:"theme"},p.a.createElement("span",null,"\u4e3b\u9898\uff1a"),p.a.createElement("p",null,t.title)),p.a.createElement("div",{className:"info__item"},p.a.createElement("span",null,"\u65f6\u95f4\uff1a"),p.a.createElement("p",null,t.date)),p.a.createElement("div",{className:"info__item"},p.a.createElement("span",null,"\u8bb2\u5e08\uff1a"),p.a.createElement("p",null,t.teacher)),0==t.on_live&&0==t.is_end&&0==t.is_subscribe&&p.a.createElement("span",{onClick:function(){return e.subscribe(t.live_id)},className:"order__btn"},"\u7acb\u5373\u9884\u7ea6"),0==t.on_live&&0==t.is_end&&1==t.is_subscribe&&p.a.createElement("span",{onClick:e.tip,className:"order__btn subscribed"},"\u5df2\u9884\u7ea6"),1==t.on_live&&0==t.is_end&&p.a.createElement("span",{onClick:function(){return e.toLivingRoom(t.room_url)},className:"order__btn living"},"\u6b63\u5728\u76f4\u64ad"),1==t.is_end&&""!=t.transcribe_url&&p.a.createElement("span",{onClick:function(){return e.checkVideo(t.transcribe_url)},className:"order__btn check__video"},"\u67e5\u770b\u56de\u653e")))}))))}}]),t}(d.Component))||n,N=Object(h.g)(g),k=a(819),j=(a(1238),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).fetchRankInfo=function(){f.d.get("".concat(API.home,"/sys/treasure/ranking")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&(s.length>5?a.setState({rank:s.filter(function(e,t){return t<5}),rankList:s,isMore:!0}):a.setState({rank:s,rankList:s,isMore:!1}))})},a.switchMoreRank=function(){var e=a.state,t=e.rankList;e.isMore?a.setState({rank:t,isMore:!1}):a.setState({rank:t.filter(function(e,t){return t<5}),isMore:!0})},a.state={rank:[],rankList:[],isMore:!1},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this.state,t=e.rank,a=e.isMore;return 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"},t.map(function(e,t){return p.a.createElement("dl",{className:"rank-item",key:t},p.a.createElement("dd",{className:"rank-column"},t<=2?p.a.createElement("span",{className:"rank-column__number","data-num":t}):p.a.createElement("span",null,t+1)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",{className:"rank-column__name"},e.user_name)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",null,e.num)),p.a.createElement("dd",{className:"rank-column"},e.url?p.a.createElement("a",{className:"rank-column__txt",href:e.url},e.prize_name):p.a.createElement("span",{className:"rank-column__txt"},e.prize_name)))}),p.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},p.a.createElement("span",{className:"rank-more__txt"},a?"\u5c55\u5f00":"\u6536\u8d77"),p.a.createElement("i",{className:"rank-more__icon","data-more":a}))))}}]),t}(d.Component)),C=(a(1239),a(25)),I=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){f.d.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 c=s.prize_info,o=s.is_my_team,l=s.info,m=s.member,u=s.removable_data,d=s.my_team;a.setState({prize_info:c,is_my_team:o,info:l,member:a.fillTeam(m),removable_data:u,my_team:d});var p=null;l.removable>0&&(p=u[0].id),a.props.getRemovable(l.removable,p)}else i.a.info(r)})},a.toYearTreasure=function(e){if(a.props.user.hasError)a.toLogin();else{var t="";if(e){var n=a.state,s=n.removable_data;if(n.info.removable>0){var r=s[0];t="?id=".concat(r.id)}}a.props.history.push("/year/yearTreasure".concat(t))}},a.toLogin=function(){Object(f.c)("version")?Object(f.a)("toLogin"):a.props.history.push("/passport/login")},a.createTeam=function(){if(a.props.user.hasError)a.toLogin();else{var e=a.state,t=e.is_my_team,n=e.my_team.treasure_code;t?a.props.history.push("/activity/newyear-2019/landing?origin=1&treasure_code="+n):f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;if(200===n){var c=s.treasure_code;a.props.history.push("/activity/newyear-2019/landing?origin=1&treasure_code="+c)}else i.a.info(r)})}},a.fillTeam=function(e){for(var t=e.length,a=0;a<5-t;a++)e.push({head_img:"",user_name:"",nobody:!0});return e},a.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,s=t.info,r=s.removable,i=s.total,c=t.member,o="",l=0;a.length>0&&(o=a[0].name,l=a[0].stage_no);var m="";return m=0===i?"\u6211\u7684\u5b9d\u7bb1":0===r?"\u5171".concat(i,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(i,"\u4e2a\u5b9d\u7bb1/").concat(r,"\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"},m),p.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),r>0&&p.a.createElement("div",{className:"position__number"},r))),p.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&o&&p.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u6b21\u5fc5\u4e2d").concat(o)))}}]),t}(d.Component),O=Object(C.d)(Object(b.b)(function(e){return{user:e.user}},null),h.g)(I),T=a(817),S=a(818),w=function(e){function t(e){return Object(c.a)(this,t),Object(l.a)(this,Object(m.a)(t).call(this,e))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return p.a.createElement(_.a,{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(T.a,{showSystemNotices:!0}),p.a.createElement(S.a,null),p.a.createElement(O,{getRemovable:this.props.getRemovable}),p.a.createElement(j,null))}}]),t}(d.Component),P=a(17),A=a.n(P),B=(a(1240),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).initNav=function(e){var t=a.state.navs;0===e?a.setState({formatNavs:t.filter(function(e){return"year-treasure"!==e.id})}):a.setState({formatNavs:t})},a.calcNavActive=function(){var e=a.state.formatNavs,t=a.props.id,n=document.querySelector("#".concat(t));setTimeout(function(){var t=window.scrollY,s=e.length-1;for(a.setState({isFixed:t>=n.offsetHeight});s>-1;s--){var r=document.querySelector("#".concat(e[s].id));if(r&&t+200>=r.offsetTop){a.setState({curIndex:s});break}}},100)},a.selectToNav=function(e){var t=a.state.formatNavs,n="#".concat(t[e].id),s=document.querySelector(n);s&&(a.setState({curIndex:e}),window.scrollTo({top:s.offsetTop,left:0}))},a.state={isFixed:!1,curIndex:1,formatNavs:[],navs:[{id:"year-live",name:"\u5927\u5496\u76f4\u64ad"},{id:"year-treasure",name:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},{id:"year-course",name:"\u91cd\u78c5\u597d\u8bfe"},{id:"year-free",name:"\u514d\u8d39\u5b66"},{id:"year-group",name:"1\u5206\u62fc\u56e2"},{id:"year-discount",name:"\u6284\u5e95\u4e13\u533a"}]},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.calcNavActive)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.calcNavActive)}},{key:"componentWillReceiveProps",value:function(e){this.initNav(e.treasure_stage)}},{key:"render",value:function(){var e=this,t=this.state,a=t.isFixed,n=t.curIndex,s=t.formatNavs;return p.a.createElement("div",{className:A()("treasure-nav",{fixed:a}),"data-skip":"nav"},s.map(function(t,a){return p.a.createElement("a",{href:"#".concat(t.id),className:A()("treasure-nav__item",{active:a===n}),key:t.id,onClick:function(){return e.selectToNav(a)}},t.name)}))}}]),t}(d.Component)),M=a(36),z=a.n(M),L=a(27),x=a(155);a.d(t,"default",function(){return F});var F=Object(b.b)(function(e){return{user:e.user}},{setCurrentUser:L.g,startFetchUser:L.h})(s=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(a=Object(l.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(s)))).state={removable:0,currentOpenId:0,treasure_stage:0,active_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_banner_bj%402x.png"},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(x.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){z.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),z.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),z.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),z.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),z.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),z.a.get("token")&&z.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.closePopup=function(){a.setState({showMark:!1})},a.getRemovable=function(e,t){a.setState({removable:e,currentOpenId:t})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentOpenId,n="";t&&(n="?id=".concat(t)),e?a.props.history.push("/year/yearTreasure".concat(n)):Object(f.c)("version")?Object(f.a)("toLogin"):a.props.history.push("/passport/login")},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;200===n?a.setState({treasure_stage:s.treasure_stage}):i.a.info(r,2)})},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage()}},{key:"render",value:function(){var e=this,t=this.state,a=t.banner,n=t.removable,s=t.treasure_stage,r=t.currentOpenId;return p.a.createElement("div",{className:"year-index"},p.a.createElement("div",{className:"banner-treasure"},p.a.createElement("div",{id:"banner",className:"banner-treasure__header",style:{backgroundImage:"url(".concat(a,")")}}),p.a.createElement("div",{className:"banner-treasure__nav"},p.a.createElement(B,{id:"banner",treasure_stage:s})),p.a.createElement("div",{className:"banner-treasure__decorate"})),p.a.createElement("div",{className:"nav-right"},p.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",n>0&&p.a.createElement("i",{className:"nav-right__number"},n)),p.a.createElement("a",{onClick:function(){return e.toYearWish()},className:"nav-right__link"},"\u5fc3\u613f\u5355",this.state.txt1>0&&p.a.createElement("i",{className:"nav-right__number"},this.state.txt1))),p.a.createElement(N,null),1===s&&p.a.createElement(w,{getRemovable:this.getRemovable}),p.a.createElement(k.a,{currentOpenId:r,removable:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&p.a.createElement(v.a,{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(v.a,{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\uff0812\u670818\u65e5-12\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"))))}}]),t}(d.Component))||s}}]);
//# sourceMappingURL=newyear-yearIndex.c4861886.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.
!function(e){function r(r){for(var n,a,d=r[0],i=r[1],s=r[2],f=0,l=[];f<d.length;f++)a=d[f],o[a]&&l.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(r);l.length;)l.shift()();return c.push.apply(c,s||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var n={},a={37:0},o={37:0},c=[];function d(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{2:1,3:1,4:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,15:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,36:1,38:1,39:1,40:1,41:1,42:1,43:1,45:1,46:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({6:"Activity",7:"BargainMiddlePage",8:"Classify",9:"Country",10:"CourseList",11:"DrawDocument",12:"Examination",13:"Invite",14:"MyEdit",15:"Order",16:"Orderinfo",17:"PayOrder",18:"Preferential",19:"SearchResult",20:"ShareCourse",21:"ShopCart",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",31:"myorders",32:"newyear-2019-landing",33:"newyear-yearIndex",34:"prize-winner-list",35:"purchased",36:"python-class",38:"search",39:"shareposter",40:"study",41:"system-notices",42:"togroup",43:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"576ba7b8",3:"1133c967",4:"3c987934",5:"31d6cfe0",6:"08739942",7:"2a913483",8:"127d35ae",9:"400393b7",10:"fed92c83",11:"1bd3da48",12:"17af9370",13:"08739942",14:"31d6cfe0",15:"83a999aa",16:"31d6cfe0",17:"68a25070",18:"ccebc534",19:"6d7d1b77",20:"6e885738",21:"887eb690",22:"affb05d7",23:"32a9cccc",24:"5dc65c0d",25:"39fb77c8",26:"0ce3fd3d",27:"2e5f43c4",28:"e8363b32",29:"55b938da",31:"841d0cfb",32:"6bf64b45",33:"24691c8a",34:"ce85cb83",35:"7558403e",36:"11408886",38:"efa1dd44",39:"cde549fc",40:"62b8863b",41:"4513204d",42:"ffd8be6c",43:"b3755c1b",45:"976b2058",46:"51412fcd",47:"e292ab6b",48:"37fb0c23",49:"bacf914e",50:"56b04545",51:"ce17075b"}[e]+".chunk.css",o=d.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=(u=c[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(s===n||s===o))return r()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){var u;if((s=(u=f[i]).getAttribute("data-href"))===n||s===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.p+"mrstatic/js/"+({6:"Activity",7:"BargainMiddlePage",8:"Classify",9:"Country",10:"CourseList",11:"DrawDocument",12:"Examination",13:"Invite",14:"MyEdit",15:"Order",16:"Orderinfo",17:"PayOrder",18:"Preferential",19:"SearchResult",20:"ShareCourse",21:"ShopCart",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",31:"myorders",32:"newyear-2019-landing",33:"newyear-yearIndex",34:"prize-winner-list",35:"purchased",36:"python-class",38:"search",39:"shareposter",40:"study",41:"system-notices",42:"togroup",43:"video"}[e]||e)+"."+{0:"fca6c57e",1:"79bef975",2:"fc8e3375",3:"887af415",4:"9345128a",5:"0fa85971",6:"2d5072de",7:"2dee5005",8:"f764cc42",9:"1f4b0f24",10:"01bbeddb",11:"e533ae08",12:"c698c660",13:"5df25916",14:"354eb41e",15:"cc67d4ed",16:"b6a2c403",17:"125a3f26",18:"7c89d7b4",19:"416c7de9",20:"023facd9",21:"e43f92e4",22:"7de7c72f",23:"123f1c0f",24:"02349140",25:"b6741d1f",26:"c08aebb9",27:"bbd6611f",28:"f46d957f",29:"14aa5b70",31:"eb703921",32:"452d7bd3",33:"3cd081d4",34:"8fe3351f",35:"36cd23d7",36:"56d079a1",38:"b8aee097",39:"da46cef0",40:"30c323d2",41:"4b430a99",42:"76c66649",43:"bef5adae",45:"82d89373",46:"296ab055",47:"33a8c3bc",48:"8cced5a9",49:"3344ed4c",50:"6b937f7c",51:"94631494"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(s);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var s=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=n,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)d.d(t,n,function(r){return e[r]}.bind(null,n));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var u=s;t()}([]);
//# sourceMappingURL=runtime~main.abc8bf2a.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,d=r[0],i=r[1],s=r[2],f=0,l=[];f<d.length;f++)a=d[f],o[a]&&l.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(r);l.length;)l.shift()();return c.push.apply(c,s||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var n={},a={37:0},o={37:0},c=[];function d(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{2:1,3:1,4:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,15:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,36:1,38:1,39:1,40:1,41:1,42:1,43:1,45:1,46:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({6:"Activity",7:"BargainMiddlePage",8:"Classify",9:"Country",10:"CourseList",11:"DrawDocument",12:"Examination",13:"Invite",14:"MyEdit",15:"Order",16:"Orderinfo",17:"PayOrder",18:"Preferential",19:"SearchResult",20:"ShareCourse",21:"ShopCart",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",31:"myorders",32:"newyear-2019-landing",33:"newyear-yearIndex",34:"prize-winner-list",35:"purchased",36:"python-class",38:"search",39:"shareposter",40:"study",41:"system-notices",42:"togroup",43:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"d1aebba0",3:"1133c967",4:"3c987934",5:"31d6cfe0",6:"08739942",7:"2a913483",8:"127d35ae",9:"400393b7",10:"fed92c83",11:"1bd3da48",12:"17af9370",13:"08739942",14:"31d6cfe0",15:"83a999aa",16:"31d6cfe0",17:"68a25070",18:"ccebc534",19:"6d7d1b77",20:"6e885738",21:"887eb690",22:"affb05d7",23:"32a9cccc",24:"5dc65c0d",25:"39fb77c8",26:"0ce3fd3d",27:"2e5f43c4",28:"e8363b32",29:"55b938da",31:"841d0cfb",32:"6bf64b45",33:"24691c8a",34:"ce85cb83",35:"7558403e",36:"11408886",38:"efa1dd44",39:"cde549fc",40:"62b8863b",41:"4eed25b3",42:"ffd8be6c",43:"b3755c1b",45:"976b2058",46:"51412fcd",47:"e292ab6b",48:"37fb0c23",49:"bacf914e",50:"56b04545",51:"ce17075b"}[e]+".chunk.css",o=d.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=(u=c[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(s===n||s===o))return r()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){var u;if((s=(u=f[i]).getAttribute("data-href"))===n||s===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.p+"mrstatic/js/"+({6:"Activity",7:"BargainMiddlePage",8:"Classify",9:"Country",10:"CourseList",11:"DrawDocument",12:"Examination",13:"Invite",14:"MyEdit",15:"Order",16:"Orderinfo",17:"PayOrder",18:"Preferential",19:"SearchResult",20:"ShareCourse",21:"ShopCart",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",31:"myorders",32:"newyear-2019-landing",33:"newyear-yearIndex",34:"prize-winner-list",35:"purchased",36:"python-class",38:"search",39:"shareposter",40:"study",41:"system-notices",42:"togroup",43:"video"}[e]||e)+"."+{0:"fca6c57e",1:"79bef975",2:"d6a4e1dd",3:"887af415",4:"9345128a",5:"0fa85971",6:"2d5072de",7:"2dee5005",8:"f764cc42",9:"1f4b0f24",10:"01bbeddb",11:"e533ae08",12:"c698c660",13:"5df25916",14:"354eb41e",15:"cc67d4ed",16:"b6a2c403",17:"125a3f26",18:"7c89d7b4",19:"416c7de9",20:"023facd9",21:"e43f92e4",22:"7de7c72f",23:"123f1c0f",24:"02349140",25:"b6741d1f",26:"c08aebb9",27:"bbd6611f",28:"f46d957f",29:"14aa5b70",31:"eb703921",32:"2a088d23",33:"c4861886",34:"8fe3351f",35:"36cd23d7",36:"56d079a1",38:"b8aee097",39:"da46cef0",40:"30c323d2",41:"f14e0139",42:"76c66649",43:"bef5adae",45:"82d89373",46:"296ab055",47:"33a8c3bc",48:"8cced5a9",49:"3344ed4c",50:"6b937f7c",51:"94631494"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(s);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var s=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=n,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)d.d(t,n,function(r){return e[r]}.bind(null,n));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var u=s;t()}([]);
//# sourceMappingURL=runtime~main.86f64aa1.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","37","exports","module","l","e","promises","2","3","4","6","7","8","9","10","11","12","13","15","17","18","19","20","21","22","23","24","25","26","27","28","29","31","32","33","34","35","36","38","39","40","41","42","43","45","46","47","48","49","50","51","Promise","resolve","reject","href","14","16","0","1","5","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAA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AAA,SAAAxH,GACA,IAAAwG,EAAAxG,KAAAmH,WACA,WAA2B,OAAAnH,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA4G,EAAAE,EAAA,IAAAA,GACAA,GAIA9G,EAAA+G,EAAA,SAAAgB,EAAAC,GAAsD,OAAAhJ,OAAAC,UAAAC,eAAAC,KAAA4I,EAAAC,IAGtDhI,EAAAgE,EAAA,IAGAhE,EAAAiI,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAApJ,KAAA8I,KAAAM,GACAA,EAAApJ,KAAAX,EACA+J,IAAAG,QACA,QAAA3J,EAAA,EAAgBA,EAAAwJ,EAAAtJ,OAAuBF,IAAAP,EAAA+J,EAAAxJ,IACvC,IAAAU,EAAAgJ,EAIA5I","file":"mrstatic/js/runtime~main.abc8bf2a.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t37: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t37: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"6\":\"Activity\",\"7\":\"BargainMiddlePage\",\"8\":\"Classify\",\"9\":\"Country\",\"10\":\"CourseList\",\"11\":\"DrawDocument\",\"12\":\"Examination\",\"13\":\"Invite\",\"14\":\"MyEdit\",\"15\":\"Order\",\"16\":\"Orderinfo\",\"17\":\"PayOrder\",\"18\":\"Preferential\",\"19\":\"SearchResult\",\"20\":\"ShareCourse\",\"21\":\"ShopCart\",\"22\":\"aist-share\",\"23\":\"blessing-getPrize\",\"24\":\"blessing-preheat\",\"25\":\"blessing-rank\",\"26\":\"coupons\",\"27\":\"deposit-order\",\"28\":\"deposit-pay-order\",\"29\":\"detail\",\"31\":\"myorders\",\"32\":\"newyear-2019-landing\",\"33\":\"newyear-yearIndex\",\"34\":\"prize-winner-list\",\"35\":\"purchased\",\"36\":\"python-class\",\"38\":\"search\",\"39\":\"shareposter\",\"40\":\"study\",\"41\":\"system-notices\",\"42\":\"togroup\",\"43\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"fca6c57e\",\"1\":\"79bef975\",\"2\":\"fc8e3375\",\"3\":\"887af415\",\"4\":\"9345128a\",\"5\":\"0fa85971\",\"6\":\"2d5072de\",\"7\":\"2dee5005\",\"8\":\"f764cc42\",\"9\":\"1f4b0f24\",\"10\":\"01bbeddb\",\"11\":\"e533ae08\",\"12\":\"c698c660\",\"13\":\"5df25916\",\"14\":\"354eb41e\",\"15\":\"cc67d4ed\",\"16\":\"b6a2c403\",\"17\":\"125a3f26\",\"18\":\"7c89d7b4\",\"19\":\"416c7de9\",\"20\":\"023facd9\",\"21\":\"e43f92e4\",\"22\":\"7de7c72f\",\"23\":\"123f1c0f\",\"24\":\"02349140\",\"25\":\"b6741d1f\",\"26\":\"c08aebb9\",\"27\":\"bbd6611f\",\"28\":\"f46d957f\",\"29\":\"14aa5b70\",\"31\":\"eb703921\",\"32\":\"452d7bd3\",\"33\":\"3cd081d4\",\"34\":\"8fe3351f\",\"35\":\"36cd23d7\",\"36\":\"56d079a1\",\"38\":\"b8aee097\",\"39\":\"da46cef0\",\"40\":\"30c323d2\",\"41\":\"4b430a99\",\"42\":\"76c66649\",\"43\":\"bef5adae\",\"45\":\"82d89373\",\"46\":\"296ab055\",\"47\":\"33a8c3bc\",\"48\":\"8cced5a9\",\"49\":\"3344ed4c\",\"50\":\"6b937f7c\",\"51\":\"94631494\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"2\":1,\"3\":1,\"4\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"15\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"28\":1,\"29\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"36\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"42\":1,\"43\":1,\"45\":1,\"46\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"6\":\"Activity\",\"7\":\"BargainMiddlePage\",\"8\":\"Classify\",\"9\":\"Country\",\"10\":\"CourseList\",\"11\":\"DrawDocument\",\"12\":\"Examination\",\"13\":\"Invite\",\"14\":\"MyEdit\",\"15\":\"Order\",\"16\":\"Orderinfo\",\"17\":\"PayOrder\",\"18\":\"Preferential\",\"19\":\"SearchResult\",\"20\":\"ShareCourse\",\"21\":\"ShopCart\",\"22\":\"aist-share\",\"23\":\"blessing-getPrize\",\"24\":\"blessing-preheat\",\"25\":\"blessing-rank\",\"26\":\"coupons\",\"27\":\"deposit-order\",\"28\":\"deposit-pay-order\",\"29\":\"detail\",\"31\":\"myorders\",\"32\":\"newyear-2019-landing\",\"33\":\"newyear-yearIndex\",\"34\":\"prize-winner-list\",\"35\":\"purchased\",\"36\":\"python-class\",\"38\":\"search\",\"39\":\"shareposter\",\"40\":\"study\",\"41\":\"system-notices\",\"42\":\"togroup\",\"43\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"31d6cfe0\",\"2\":\"576ba7b8\",\"3\":\"1133c967\",\"4\":\"3c987934\",\"5\":\"31d6cfe0\",\"6\":\"08739942\",\"7\":\"2a913483\",\"8\":\"127d35ae\",\"9\":\"400393b7\",\"10\":\"fed92c83\",\"11\":\"1bd3da48\",\"12\":\"17af9370\",\"13\":\"08739942\",\"14\":\"31d6cfe0\",\"15\":\"83a999aa\",\"16\":\"31d6cfe0\",\"17\":\"68a25070\",\"18\":\"ccebc534\",\"19\":\"6d7d1b77\",\"20\":\"6e885738\",\"21\":\"887eb690\",\"22\":\"affb05d7\",\"23\":\"32a9cccc\",\"24\":\"5dc65c0d\",\"25\":\"39fb77c8\",\"26\":\"0ce3fd3d\",\"27\":\"2e5f43c4\",\"28\":\"e8363b32\",\"29\":\"55b938da\",\"31\":\"841d0cfb\",\"32\":\"6bf64b45\",\"33\":\"24691c8a\",\"34\":\"ce85cb83\",\"35\":\"7558403e\",\"36\":\"11408886\",\"38\":\"efa1dd44\",\"39\":\"cde549fc\",\"40\":\"62b8863b\",\"41\":\"4513204d\",\"42\":\"ffd8be6c\",\"43\":\"b3755c1b\",\"45\":\"976b2058\",\"46\":\"51412fcd\",\"47\":\"e292ab6b\",\"48\":\"37fb0c23\",\"49\":\"bacf914e\",\"50\":\"56b04545\",\"51\":\"ce17075b\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","37","exports","module","l","e","promises","2","3","4","6","7","8","9","10","11","12","13","15","17","18","19","20","21","22","23","24","25","26","27","28","29","31","32","33","34","35","36","38","39","40","41","42","43","45","46","47","48","49","50","51","Promise","resolve","reject","href","14","16","0","1","5","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,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OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAA1I,OAAA2I,OAAA,MAGA,GAFA3H,EAAAmH,EAAAO,GACA1I,OAAAgI,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAtH,EAAA4G,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIA1H,EAAA8H,EAAA,SAAAxH,GACA,IAAAwG,EAAAxG,KAAAmH,WACA,WAA2B,OAAAnH,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA4G,EAAAE,EAAA,IAAAA,GACAA,GAIA9G,EAAA+G,EAAA,SAAAgB,EAAAC,GAAsD,OAAAhJ,OAAAC,UAAAC,eAAAC,KAAA4I,EAAAC,IAGtDhI,EAAAgE,EAAA,IAGAhE,EAAAiI,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAApJ,KAAA8I,KAAAM,GACAA,EAAApJ,KAAAX,EACA+J,IAAAG,QACA,QAAA3J,EAAA,EAAgBA,EAAAwJ,EAAAtJ,OAAuBF,IAAAP,EAAA+J,EAAAxJ,IACvC,IAAAU,EAAAgJ,EAIA5I","file":"mrstatic/js/runtime~main.86f64aa1.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t37: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t37: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"6\":\"Activity\",\"7\":\"BargainMiddlePage\",\"8\":\"Classify\",\"9\":\"Country\",\"10\":\"CourseList\",\"11\":\"DrawDocument\",\"12\":\"Examination\",\"13\":\"Invite\",\"14\":\"MyEdit\",\"15\":\"Order\",\"16\":\"Orderinfo\",\"17\":\"PayOrder\",\"18\":\"Preferential\",\"19\":\"SearchResult\",\"20\":\"ShareCourse\",\"21\":\"ShopCart\",\"22\":\"aist-share\",\"23\":\"blessing-getPrize\",\"24\":\"blessing-preheat\",\"25\":\"blessing-rank\",\"26\":\"coupons\",\"27\":\"deposit-order\",\"28\":\"deposit-pay-order\",\"29\":\"detail\",\"31\":\"myorders\",\"32\":\"newyear-2019-landing\",\"33\":\"newyear-yearIndex\",\"34\":\"prize-winner-list\",\"35\":\"purchased\",\"36\":\"python-class\",\"38\":\"search\",\"39\":\"shareposter\",\"40\":\"study\",\"41\":\"system-notices\",\"42\":\"togroup\",\"43\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"fca6c57e\",\"1\":\"79bef975\",\"2\":\"d6a4e1dd\",\"3\":\"887af415\",\"4\":\"9345128a\",\"5\":\"0fa85971\",\"6\":\"2d5072de\",\"7\":\"2dee5005\",\"8\":\"f764cc42\",\"9\":\"1f4b0f24\",\"10\":\"01bbeddb\",\"11\":\"e533ae08\",\"12\":\"c698c660\",\"13\":\"5df25916\",\"14\":\"354eb41e\",\"15\":\"cc67d4ed\",\"16\":\"b6a2c403\",\"17\":\"125a3f26\",\"18\":\"7c89d7b4\",\"19\":\"416c7de9\",\"20\":\"023facd9\",\"21\":\"e43f92e4\",\"22\":\"7de7c72f\",\"23\":\"123f1c0f\",\"24\":\"02349140\",\"25\":\"b6741d1f\",\"26\":\"c08aebb9\",\"27\":\"bbd6611f\",\"28\":\"f46d957f\",\"29\":\"14aa5b70\",\"31\":\"eb703921\",\"32\":\"2a088d23\",\"33\":\"c4861886\",\"34\":\"8fe3351f\",\"35\":\"36cd23d7\",\"36\":\"56d079a1\",\"38\":\"b8aee097\",\"39\":\"da46cef0\",\"40\":\"30c323d2\",\"41\":\"f14e0139\",\"42\":\"76c66649\",\"43\":\"bef5adae\",\"45\":\"82d89373\",\"46\":\"296ab055\",\"47\":\"33a8c3bc\",\"48\":\"8cced5a9\",\"49\":\"3344ed4c\",\"50\":\"6b937f7c\",\"51\":\"94631494\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"2\":1,\"3\":1,\"4\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"15\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"28\":1,\"29\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"36\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"42\":1,\"43\":1,\"45\":1,\"46\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"6\":\"Activity\",\"7\":\"BargainMiddlePage\",\"8\":\"Classify\",\"9\":\"Country\",\"10\":\"CourseList\",\"11\":\"DrawDocument\",\"12\":\"Examination\",\"13\":\"Invite\",\"14\":\"MyEdit\",\"15\":\"Order\",\"16\":\"Orderinfo\",\"17\":\"PayOrder\",\"18\":\"Preferential\",\"19\":\"SearchResult\",\"20\":\"ShareCourse\",\"21\":\"ShopCart\",\"22\":\"aist-share\",\"23\":\"blessing-getPrize\",\"24\":\"blessing-preheat\",\"25\":\"blessing-rank\",\"26\":\"coupons\",\"27\":\"deposit-order\",\"28\":\"deposit-pay-order\",\"29\":\"detail\",\"31\":\"myorders\",\"32\":\"newyear-2019-landing\",\"33\":\"newyear-yearIndex\",\"34\":\"prize-winner-list\",\"35\":\"purchased\",\"36\":\"python-class\",\"38\":\"search\",\"39\":\"shareposter\",\"40\":\"study\",\"41\":\"system-notices\",\"42\":\"togroup\",\"43\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"31d6cfe0\",\"2\":\"d1aebba0\",\"3\":\"1133c967\",\"4\":\"3c987934\",\"5\":\"31d6cfe0\",\"6\":\"08739942\",\"7\":\"2a913483\",\"8\":\"127d35ae\",\"9\":\"400393b7\",\"10\":\"fed92c83\",\"11\":\"1bd3da48\",\"12\":\"17af9370\",\"13\":\"08739942\",\"14\":\"31d6cfe0\",\"15\":\"83a999aa\",\"16\":\"31d6cfe0\",\"17\":\"68a25070\",\"18\":\"ccebc534\",\"19\":\"6d7d1b77\",\"20\":\"6e885738\",\"21\":\"887eb690\",\"22\":\"affb05d7\",\"23\":\"32a9cccc\",\"24\":\"5dc65c0d\",\"25\":\"39fb77c8\",\"26\":\"0ce3fd3d\",\"27\":\"2e5f43c4\",\"28\":\"e8363b32\",\"29\":\"55b938da\",\"31\":\"841d0cfb\",\"32\":\"6bf64b45\",\"33\":\"24691c8a\",\"34\":\"ce85cb83\",\"35\":\"7558403e\",\"36\":\"11408886\",\"38\":\"efa1dd44\",\"39\":\"cde549fc\",\"40\":\"62b8863b\",\"41\":\"4eed25b3\",\"42\":\"ffd8be6c\",\"43\":\"b3755c1b\",\"45\":\"976b2058\",\"46\":\"51412fcd\",\"47\":\"e292ab6b\",\"48\":\"37fb0c23\",\"49\":\"bacf914e\",\"50\":\"56b04545\",\"51\":\"ce17075b\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{1251:function(e,t,n){"use strict";n.r(t);var i=n(5),s=n(7),a=n(6),r=n(8),o=n(89),c=n(9),l=n(0),u=n.n(l),p=n(162),d=(n(258),n(1252),function(e){function t(){var e,n;Object(i.a)(this,t);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return(n=Object(a.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(c)))).count=0,n.state={showNotices:!0},n.initializeSwiper=function(){var e=Object(o.a)(n);n.swiper=new p.a(".sys-bullet-screen-swiper-container",{allowTouchMove:!1,direction:"vertical",loop:!0,on:{init:function(){Array.from(this.slides).forEach(function(t){t.querySelector("span").addEventListener("transitionend",e.transitionEnd)})},slideChangeTransitionEnd:function(){e.slideHorizontal(this)},transitionEnd:function(){var e=this.slides[this.previousIndex].querySelector("span");e.style.transition="unset",e.style.transform="translate3d(0,0,0)"}}})},n.slideHorizontal=function(e){var t=e.slides[e.activeIndex],i=t.querySelector("span"),s=i.offsetWidth,a=t.clientWidth;s>a?(i.style.transition="transform ".concat(s/131.25,"s linear"),setTimeout(function(){i.style.transform="translate3d(".concat(-(s-a)-10,"px,0,0)")},1e3)):n.swiper.slideNext()},n.transitionEnd=function(){var e=n.props.bullets,t=3*(void 0===e?["\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c","\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c","\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c"]:e).length;++n.count===t?setTimeout(function(){n.sysNotice.style.height="0px"},2e3):setTimeout(function(){n.swiper&&n.swiper.slideNext()},1e3)},n.removeSystemNotices=function(e){e.persist(),e.target===n.sysNotice&&n.setState({showNotices:!1})},n}return Object(c.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.initializeSwiper()}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy(!0,!0)}},{key:"render",value:function(){var e=this,t=this.props.bullets,n=void 0===t?["\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c","\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c","\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c"]:t;return this.state.showNotices&&u.a.createElement("div",{id:"system-bullet-screen",onTransitionEnd:this.removeSystemNotices,ref:function(t){return e.sysNotice=t}},u.a.createElement("img",{className:"avatar",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-avatar.png",alt:""}),u.a.createElement("div",{className:"sys-bullet-screen-swiper-container"},u.a.createElement("ul",{className:"swiper-wrapper"},n&&n.length&&n.map(function(e,t){return u.a.createElement("li",{className:"swiper-slide",key:t},u.a.createElement("span",null,e))}))))}}]),t}(l.Component));t.default=d},1252:function(e,t,n){}}]);
//# sourceMappingURL=system-notices.4b430a99.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/common/system-bullet-screen/index.js"],"names":["SystemBulletScreen","count","state","showNotices","initializeSwiper","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__","_this2","swiper","Swiper","allowTouchMove","direction","loop","on","init","Array","from","this","slides","forEach","item","querySelector","addEventListener","transitionEnd","slideChangeTransitionEnd","slideHorizontal","el","previousIndex","style","transition","transform","activeIndex","content","contentWidth","offsetWidth","wrapperWidth","clientWidth","concat","setTimeout","slideNext","_this2$props$bullets","props","bullets","len","length","sysNotice","height","removeSystemNotices","e","persist","target","setState","destroy","_this3","_this$props$bullets","react__WEBPACK_IMPORTED_MODULE_6___default","a","createElement","id","onTransitionEnd","ref","className","src","alt","map","index","key","Component"],"mappings":"2KAMMA,6NAGJC,MAAQ,IAGRC,MAAQ,CACNC,aAAa,KAYfC,iBAAmB,WACjB,IAAMC,EAAKC,OAAAC,EAAA,EAAAD,CAAAE,GACXA,EAAKC,OAAS,IAAIC,IAAO,sCAAuC,CAC9DC,gBAAgB,EAChBC,UAAW,WACXC,MAAM,EACNC,GAAI,CACFC,KADE,WAEAC,MAAMC,KAAKC,KAAKC,QAAQC,QAAQ,SAAAC,GAC9BA,EAAKC,cAAc,QAAQC,iBAAiB,gBAAiBlB,EAAMmB,kBAGvEC,yBANE,WAOApB,EAAMqB,gBAAgBR,OAExBM,cATE,WAUA,IAAMG,EAAKT,KAAKC,OAAOD,KAAKU,eAAeN,cAAc,QACzDK,EAAGE,MAAMC,WAAa,QACtBH,EAAGE,MAAME,UAAY,4BAM7BL,gBAAkB,SAACjB,GACjB,IAAIkB,EAAKlB,EAAOU,OAAOV,EAAOuB,aAC5BC,EAAUN,EAAGL,cAAc,QAC3BY,EAAeD,EAAQE,YACvBC,EAAeT,EAAGU,YAIhBH,EAAeE,GACjBH,EAAQJ,MAAMC,WAAd,aAAAQ,OAAwCJ,EAH/B,OAGT,YACAK,WAAW,WACTN,EAAQJ,MAAME,UAAd,eAAAO,SAA2CJ,EAAeE,GAAgB,GAA1E,YACC,MAEH5B,EAAKC,OAAO+B,eAIhBhB,cAAgB,WAAM,IAAAiB,EAOhBjC,EAAKkC,MALPC,QAOIC,EAAuB,QATT,IAAAH,EAER,CACR,2NACA,2NACA,4NALgBA,GASAI,SAEdrC,EAAKP,QAAU2C,EACnBL,WAAW,WACT/B,EAAKsC,UAAUjB,MAAMkB,OAArB,OACC,KAEHR,WAAW,WACT/B,EAAKC,QAAUD,EAAKC,OAAO+B,aAC1B,QAIPQ,oBAAsB,SAAAC,GACpBA,EAAEC,UACCD,EAAEE,SAAW3C,EAAKsC,WACnBtC,EAAK4C,SAAS,CACZjD,aAAa,wFA5EjBe,KAAKd,kEAILc,KAAKT,QAAUS,KAAKT,OAAO4C,SAAQ,GAAM,oCA6ElC,IAAAC,EAAApC,KAAAqC,EAOHrC,KAAKwB,MALPC,eAFK,IAAAY,EAEK,CACR,2NACA,2NACA,4NALGA,EAQP,OACErC,KAAKhB,MAAMC,aACXqD,EAAAC,EAAAC,cAAA,OAAKC,GAAG,uBAAuBC,gBAAiB1C,KAAK8B,oBAAqBa,IAAK,SAAAlC,GAAE,OAAI2B,EAAKR,UAAYnB,IACpG6B,EAAAC,EAAAC,cAAA,OAAKI,UAAU,SACVC,IAAI,8EAA8EC,IAAI,KAC3FR,EAAAC,EAAAC,cAAA,OAAKI,UAAU,sCACbN,EAAAC,EAAAC,cAAA,MAAII,UAAU,kBAEVnB,GAAWA,EAAQE,QAAUF,EAAQsB,IAAI,SAAC5C,EAAM6C,GAC9C,OACEV,EAAAC,EAAAC,cAAA,MAAII,UAAU,eAAeK,IAAKD,GAChCV,EAAAC,EAAAC,cAAA,YAAOrC,gBA/GM+C,cA4HlBpE","file":"mrstatic/js/system-notices.4b430a99.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport Swiper from 'swiper'\nimport 'swiper/dist/css/swiper.min.css'\nimport './system-bullet-screen.scss'\n\n\nclass SystemBulletScreen extends Component {\n\n swiper\n count = 0\n sysNotice\n\n state = {\n showNotices: true\n }\n\n componentDidMount() {\n this.initializeSwiper()\n }\n\n componentWillUnmount() {\n this.swiper && this.swiper.destroy(true, true)\n }\n\n\n initializeSwiper = () => {\n const _this = this\n this.swiper = new Swiper('.sys-bullet-screen-swiper-container', {\n allowTouchMove: false,\n direction: 'vertical',\n loop: true,\n on: {\n init() {\n Array.from(this.slides).forEach(item => {\n item.querySelector('span').addEventListener('transitionend', _this.transitionEnd)\n })\n },\n slideChangeTransitionEnd() {\n _this.slideHorizontal(this)\n },\n transitionEnd() {\n const el = this.slides[this.previousIndex].querySelector('span')\n el.style.transition = 'unset'\n el.style.transform = 'translate3d(0,0,0)'\n }\n }\n })\n }\n\n slideHorizontal = (swiper) => {\n let el = swiper.slides[swiper.activeIndex],\n content = el.querySelector('span'),\n contentWidth = content.offsetWidth,\n wrapperWidth = el.clientWidth\n\n const co = 131.25\n\n if (contentWidth > wrapperWidth) {\n content.style.transition = `transform ${contentWidth / co}s linear`\n setTimeout(() => {\n content.style.transform = `translate3d(${-(contentWidth - wrapperWidth) - 10}px,0,0)`\n }, 1000)\n } else {\n this.swiper.slideNext()\n }\n }\n\n transitionEnd = () => {\n const {\n bullets = [\n '第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,',\n '第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,',\n '第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,',\n ]\n } = this.props\n\n const len = bullets.length * 3\n\n if (++this.count === len) {\n setTimeout(() => {\n this.sysNotice.style.height = `0px`\n }, 2000)\n } else {\n setTimeout(() => {\n this.swiper && this.swiper.slideNext()\n }, 1000)\n }\n }\n\n removeSystemNotices = e => {\n e.persist()\n if(e.target === this.sysNotice){\n this.setState({\n showNotices: false\n })\n }\n }\n\n render() {\n const {\n bullets = [\n '第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,',\n '第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,',\n '第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,',\n ]\n } = this.props\n return (\n this.state.showNotices &&\n <div id=\"system-bullet-screen\" onTransitionEnd={this.removeSystemNotices} ref={el => this.sysNotice = el}>\n <img className='avatar'\n src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-avatar.png' alt=\"\"/>\n <div className='sys-bullet-screen-swiper-container'>\n <ul className=\"swiper-wrapper\">\n {\n bullets && bullets.length && bullets.map((item, index) => {\n return (\n <li className=\"swiper-slide\" key={index}>\n <span>{item}</span>\n </li>\n )\n })\n }\n </ul>\n </div>\n </div>\n\n )\n }\n}\n\nexport default SystemBulletScreen\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{1251:function(e,t,n){"use strict";n.r(t);var i=n(5),s=n(7),a=n(6),o=n(8),r=n(89),c=n(9),l=n(0),u=n.n(l),p=n(162),d=(n(258),n(1252),function(e){function t(){var e,n;Object(i.a)(this,t);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return(n=Object(a.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).count=0,n.state={showNotices:!0},n.initializeSwiper=function(){var e=Object(r.a)(n);n.swiper=new p.a(".sys-bullet-screen-swiper-container",{allowTouchMove:!1,direction:"vertical",loop:!0,on:{init:function(){Array.from(this.slides).forEach(function(t){t.querySelector("span").addEventListener("transitionend",e.transitionEnd)})},slideChangeTransitionEnd:function(){e.slideHorizontal(this)},transitionEnd:function(){var e=this.slides[this.previousIndex].querySelector("span");e.style.transition="unset",e.style.transform="translate3d(0,0,0)"}}})},n.slideHorizontal=function(e){var t=e.slides[e.activeIndex],n=t.querySelector("span"),i=n.offsetWidth,s=t.clientWidth;i>s?(n.style.transition="transform ".concat(i/131.25,"s linear"),setTimeout(function(){n.style.transform="translate3d(".concat(-(i-s)-10,"px,0,0)")},1e3)):setTimeout(function(){e.slideNext()},3e3)},n.transitionEnd=function(){var e=n.props.bullets,t=3*(void 0===e?[]:e).length;++n.count===t?setTimeout(function(){n.sysNotice.style.height="0px"},2e3):setTimeout(function(){n.swiper&&n.swiper.slideNext()},1e3)},n.removeSystemNotices=function(e){e.persist(),e.target===n.sysNotice&&n.setState({showNotices:!1})},n}return Object(c.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.initializeSwiper()}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy(!0,!0)}},{key:"render",value:function(){var e=this,t=this.props.bullets,n=void 0===t?["\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c\u7b2c\u4e00\u6761\u6d88\u606f\uff0c","\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c\u7b2c\u4e8c\u6761\u6d88\u606f\uff0c","\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c\u7b2c\u4e09\u6761\u6d88\u606f\uff0c"]:t;return this.state.showNotices&&u.a.createElement("div",{id:"system-bullet-screen",onTransitionEnd:this.removeSystemNotices,ref:function(t){return e.sysNotice=t}},u.a.createElement("img",{className:"avatar",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-avatar.png",alt:""}),u.a.createElement("div",{className:"sys-bullet-screen-swiper-container"},u.a.createElement("ul",{className:"swiper-wrapper"},n&&n.length&&n.map(function(e,t){return u.a.createElement("li",{className:"swiper-slide",key:t},u.a.createElement("span",null,e))}))))}}]),t}(l.Component));t.default=d},1252:function(e,t,n){}}]);
//# sourceMappingURL=system-notices.f14e0139.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/common/system-bullet-screen/index.js"],"names":["SystemBulletScreen","count","state","showNotices","initializeSwiper","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__","_this2","swiper","Swiper","allowTouchMove","direction","loop","on","init","Array","from","this","slides","forEach","item","querySelector","addEventListener","transitionEnd","slideChangeTransitionEnd","slideHorizontal","el","previousIndex","style","transition","transform","activeIndex","content","contentWidth","offsetWidth","wrapperWidth","clientWidth","concat","setTimeout","slideNext","_this2$props$bullets","props","bullets","len","length","sysNotice","height","removeSystemNotices","e","persist","target","setState","destroy","_this3","_this$props$bullets","react__WEBPACK_IMPORTED_MODULE_6___default","a","createElement","id","onTransitionEnd","ref","className","src","alt","map","index","key","Component"],"mappings":"2KAMMA,6NAGJC,MAAQ,IAGRC,MAAQ,CACNC,aAAa,KAYfC,iBAAmB,WACjB,IAAMC,EAAKC,OAAAC,EAAA,EAAAD,CAAAE,GACXA,EAAKC,OAAS,IAAIC,IAAO,sCAAuC,CAC9DC,gBAAgB,EAChBC,UAAW,WACXC,MAAM,EACNC,GAAI,CACFC,KADE,WAEAC,MAAMC,KAAKC,KAAKC,QAAQC,QAAQ,SAAAC,GAC9BA,EAAKC,cAAc,QAAQC,iBAAiB,gBAAiBlB,EAAMmB,kBAGvEC,yBANE,WAOApB,EAAMqB,gBAAgBR,OAExBM,cATE,WAUA,IAAMG,EAAKT,KAAKC,OAAOD,KAAKU,eAAeN,cAAc,QACzDK,EAAGE,MAAMC,WAAa,QACtBH,EAAGE,MAAME,UAAY,4BAM7BL,gBAAkB,SAACjB,GACjB,IAAIkB,EAAKlB,EAAOU,OAAOV,EAAOuB,aAC5BC,EAAUN,EAAGL,cAAc,QAC3BY,EAAeD,EAAQE,YACvBC,EAAeT,EAAGU,YAIhBH,EAAeE,GACjBH,EAAQJ,MAAMC,WAAd,aAAAQ,OAAwCJ,EAH/B,OAGT,YACAK,WAAW,WACTN,EAAQJ,MAAME,UAAd,eAAAO,SAA2CJ,EAAeE,GAAgB,GAA1E,YACC,MAEHG,WAAW,WACT9B,EAAO+B,aACN,QAIPhB,cAAgB,WAAM,IAAAiB,EAGhBjC,EAAKkC,MADPC,QAGIC,EAAuB,QALT,IAAAH,EAER,GAFQA,GAKAI,SAEdrC,EAAKP,QAAU2C,EACnBL,WAAW,WACT/B,EAAKsC,UAAUjB,MAAMkB,OAArB,OACC,KAEHR,WAAW,WACT/B,EAAKC,QAAUD,EAAKC,OAAO+B,aAC1B,QAIPQ,oBAAsB,SAAAC,GACpBA,EAAEC,UACCD,EAAEE,SAAW3C,EAAKsC,WACnBtC,EAAK4C,SAAS,CACZjD,aAAa,wFA1EjBe,KAAKd,kEAILc,KAAKT,QAAUS,KAAKT,OAAO4C,SAAQ,GAAM,oCA2ElC,IAAAC,EAAApC,KAAAqC,EAOHrC,KAAKwB,MALPC,eAFK,IAAAY,EAEK,CACR,2NACA,2NACA,4NALGA,EAQP,OACErC,KAAKhB,MAAMC,aACXqD,EAAAC,EAAAC,cAAA,OAAKC,GAAG,uBAAuBC,gBAAiB1C,KAAK8B,oBAAqBa,IAAK,SAAAlC,GAAE,OAAI2B,EAAKR,UAAYnB,IACpG6B,EAAAC,EAAAC,cAAA,OAAKI,UAAU,SACVC,IAAI,8EAA8EC,IAAI,KAC3FR,EAAAC,EAAAC,cAAA,OAAKI,UAAU,sCACbN,EAAAC,EAAAC,cAAA,MAAII,UAAU,kBAEVnB,GAAWA,EAAQE,QAAUF,EAAQsB,IAAI,SAAC5C,EAAM6C,GAC9C,OACEV,EAAAC,EAAAC,cAAA,MAAII,UAAU,eAAeK,IAAKD,GAChCV,EAAAC,EAAAC,cAAA,YAAOrC,gBA7GM+C,cA0HlBpE","file":"mrstatic/js/system-notices.f14e0139.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport Swiper from 'swiper'\nimport 'swiper/dist/css/swiper.min.css'\nimport './system-bullet-screen.scss'\n\n\nclass SystemBulletScreen extends Component {\n\n swiper\n count = 0\n sysNotice\n\n state = {\n showNotices: true\n }\n\n componentDidMount() {\n this.initializeSwiper()\n }\n\n componentWillUnmount() {\n this.swiper && this.swiper.destroy(true, true)\n }\n\n\n initializeSwiper = () => {\n const _this = this\n this.swiper = new Swiper('.sys-bullet-screen-swiper-container', {\n allowTouchMove: false,\n direction: 'vertical',\n loop: true,\n on: {\n init() {\n Array.from(this.slides).forEach(item => {\n item.querySelector('span').addEventListener('transitionend', _this.transitionEnd)\n })\n },\n slideChangeTransitionEnd() {\n _this.slideHorizontal(this)\n },\n transitionEnd() {\n const el = this.slides[this.previousIndex].querySelector('span')\n el.style.transition = 'unset'\n el.style.transform = 'translate3d(0,0,0)'\n }\n }\n })\n }\n\n slideHorizontal = (swiper) => {\n let el = swiper.slides[swiper.activeIndex],\n content = el.querySelector('span'),\n contentWidth = content.offsetWidth,\n wrapperWidth = el.clientWidth\n\n const co = 131.25\n\n if (contentWidth > wrapperWidth) {\n content.style.transition = `transform ${contentWidth / co}s linear`\n setTimeout(() => {\n content.style.transform = `translate3d(${-(contentWidth - wrapperWidth) - 10}px,0,0)`\n }, 1000)\n } else {\n setTimeout(() => {\n swiper.slideNext()\n }, 3000)\n }\n }\n\n transitionEnd = () => {\n const {\n bullets = []\n } = this.props\n\n const len = bullets.length * 3\n\n if (++this.count === len) {\n setTimeout(() => {\n this.sysNotice.style.height = `0px`\n }, 2000)\n } else {\n setTimeout(() => {\n this.swiper && this.swiper.slideNext()\n }, 1000)\n }\n }\n\n removeSystemNotices = e => {\n e.persist()\n if(e.target === this.sysNotice){\n this.setState({\n showNotices: false\n })\n }\n }\n\n render() {\n const {\n bullets = [\n '第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,第一条消息,',\n '第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,第二条消息,',\n '第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,第三条消息,',\n ]\n } = this.props\n return (\n this.state.showNotices &&\n <div id=\"system-bullet-screen\" onTransitionEnd={this.removeSystemNotices} ref={el => this.sysNotice = el}>\n <img className='avatar'\n src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-avatar.png' alt=\"\"/>\n <div className='sys-bullet-screen-swiper-container'>\n <ul className=\"swiper-wrapper\">\n {\n bullets && bullets.length && bullets.map((item, index) => {\n return (\n <li className=\"swiper-slide\" key={index}>\n <span>{item}</span>\n </li>\n )\n })\n }\n </ul>\n </div>\n </div>\n\n )\n }\n}\n\nexport default SystemBulletScreen\n"],"sourceRoot":""}
\ No newline at end of file
......@@ -131,23 +131,7 @@ export default class index extends Component {
</div>
<div className="banner-treasure__decorate"></div>
</div>
{/*浮框*/}
<div className='nav-right'>
<span onClick={this.toBoxList} className='nav-right__link'>
未开宝箱
{
removable > 0 &&
<i className="nav-right__number">{removable}</i>
}
</span>
<a onClick={() => this.toYearWish()} className='nav-right__link'>
心愿单
{
this.state.txt1 > 0 &&
<i className="nav-right__number">{this.state.txt1}</i>
}
</a>
</div>
{/* 大咖直播 */}
<LiveRoom/>
......
......@@ -17,10 +17,10 @@ class YarnWish extends Component {
}
componentWillUpdate() {
const {activityStage} = this.state;
if(activityStage == 1) {
const {activityStage} = this.state
if (activityStage == 1) {
document.title = `七月在线年终大回馈,人气好课免费学,精品课程1分抢!`
}else{
} else {
document.title = `七月在线年终大回馈,人气好课免费学,精品课程1分抢!`
}
}
......@@ -33,6 +33,8 @@ class YarnWish extends Component {
this.setState({
list: JSON.stringify(data) === '{}' ? [] : data
})
} else if (code === 4030) {
this.props.history.push('/passport/login')
}
})
}
......@@ -116,7 +118,8 @@ class YarnWish extends Component {
</div>
<div className="price">
{item.type == 2 ? '到手最低:¥' : '¥'}
<span className="new-price">{item.type == 4?'0.01':item.price2}</span>
<span
className="new-price">{item.type == 4 ? '0.01' : item.price2}</span>
<span className="old-price"> 现价:<s>¥{item.price1}</s></span>
</div>
......
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