Commit 43675094 by xuzhenghua

vip

parent b67778bc
.python-container{padding:13.333333vw 2.133333vw 7.733333vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-bg.png);background-size:cover}.python-header{position:relative;height:26.666667vw;padding-top:9.066667vw;box-sizing:border-box}.python-header .iconfont{position:absolute;top:-1.6vw;right:10.666667vw;font-size:10.133333vw;color:#fff}.python-wechat__title{margin:0;font-size:4.533333vw;color:#fcff1d;text-align:center;line-height:1}.python-content{padding-bottom:9.866667vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-content-bg.png);background-size:cover}.python-user{position:relative;margin:0 1.333333vw;padding-top:12vw;border-bottom:1px dashed #000}.python-user__portrait{position:absolute;top:-8vw;left:0;right:0;width:16vw;height:16vw;margin:auto;padding:1.333333vw;border-radius:50%;box-sizing:border-box;background-color:#fff}.python-user__portrait img{display:block;width:100%}.python-user__id{margin:0;font-size:4vw;font-weight:500;color:#111;text-align:center;line-height:1}.python-user__desc{height:12.8vw;margin:1.066667vw 0;font-size:4.266667vw;color:#333;text-align:center}.python-user__desc span{color:#2d57f0}.python-code__title{position:relative;margin:8.533333vw 4.266667vw 5.6vw;padding-left:4.266667vw;font-size:4.533333vw;font-weight:600;color:#2d56f0;line-height:1}.python-code__title:after{content:"";position:absolute;top:0;left:0;bottom:0;width:1.066667vw;height:3.2vw;margin:auto 0;background-color:#2d56f0}.python-code__content{position:relative;height:45.6vw;margin:0 4.266667vw;padding:0 2.666667vw;border-radius:1.333333vw;border:1px solid #67e4ff;box-sizing:border-box;font-size:3.733333vw;color:#fff;background-color:#272822}.python-button{padding:0;border-style:none;cursor:pointer;outline:none}.python-button__study{display:block;width:62.133333vw;height:11.733333vw;margin:9.333333vw auto 0;border-radius:5.866667vw;font-size:4.266667vw;color:#2d56f0;background-color:#fff95b;box-shadow:0 1.333333vw 0 #ffd200}.python-button__study,.python-button__tip{font-weight:500;line-height:11.733333vw;text-align:center}.python-button__tip{margin:9.333333vw 0 0;font-size:4vw;color:#fff}.python-button__execute{position:absolute;top:0;left:0;bottom:0;right:0;width:29.333333vw;height:8.533333vw;margin:auto;border-radius:4.266667vw;font-size:4vw;color:#fff;line-height:8.533333vw;background-color:#09f}.python-popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);z-index:99}.ace_mobile-menu{display:none}
/*# sourceMappingURL=51.1146f09d.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/src/components/pythonShare/index.scss"],"names":[],"mappings":"AAmGA,kBACE,yCAAA,CACA,mGAAA,CACA,qBAAsB,CAOxB,eACE,iBAAA,CACA,kBAAA,CACA,sBAAA,CACA,qBAAsB,CAJxB,yBAOI,iBAAA,CACA,UAAA,CACA,iBAAA,CACA,qBAAA,CACA,UAAW,CAIf,sBACE,QAAA,CACA,oBAAA,CACA,aAAA,CACA,iBAAA,CACA,aAAc,CAGhB,gBACE,yBAAA,CACA,2GAAA,CACA,qBAAsB,CAGxB,aACE,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,6BAA8B,CAGhC,uBACE,iBAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,WAAA,CACA,kBAAA,CACA,iBAAA,CACA,qBAAA,CACA,qBAAsB,CAXxB,2BAcI,aAAA,CACA,UAAW,CAIf,iBACE,QAAA,CACA,aAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,aAAc,CAGhB,mBACE,aAAA,CACA,mBAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAkB,CALpB,wBAQI,aAAc,CAIlB,oBACE,iBAAA,CACA,kCAAA,CACA,uBAAA,CACA,oBAAA,CACA,eAAA,CACA,aAAA,CACA,aAAc,CAPhB,0BAUI,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,QAAA,CACA,gBAAA,CACA,YAAA,CACA,aAAA,CACA,wBAAyB,CAI7B,sBACE,iBAAA,CACA,aAAA,CACA,mBAAA,CACA,oBAAA,CACA,wBAAA,CACA,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,UAAA,CACA,wBAAyB,CAG3B,eACE,SAAA,CACA,iBAAA,CACA,cAAA,CACA,YAAa,CAEf,sBACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACA,wBAAA,CACA,wBAAA,CACA,oBAAA,CAEA,aAAA,CAGA,wBAAA,CACA,iCAAyC,CAG3C,0CARE,eAAA,CAEA,uBAAA,CACA,iBAWkB,CANpB,oBACE,qBAAA,CACA,aAAA,CAEA,UAEkB,CAGpB,wBACE,iBAAA,CACA,KAAA,CACA,MAAA,CACA,QAAA,CACA,OAAA,CACA,iBAAA,CACA,iBAAA,CACA,WAAA,CACA,wBAAA,CACA,aAAA,CACA,UAAA,CACA,sBAAA,CACA,qBAAyB,CAG3B,cACE,cAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,+BAAA,CACA,UAAW,CAGb,iBACE,YAAa","file":"51.1146f09d.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.python-container {\n padding: 50px 8px 29px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-bg.png\");\n background-size: cover; }\n\n.python-header {\n position: relative;\n height: 100px;\n padding-top: 34px;\n box-sizing: border-box; }\n .python-header .iconfont {\n position: absolute;\n top: -6px;\n right: 40px;\n font-size: 38px;\n color: #fff; }\n\n.python-wechat__title {\n margin: 0;\n font-size: 17px;\n color: #FCFF1D;\n text-align: center;\n line-height: 1; }\n\n.python-content {\n padding-bottom: 37px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-content-bg.png\");\n background-size: cover; }\n\n.python-user {\n position: relative;\n margin: 0 5px;\n padding-top: 45px;\n border-bottom: 1px dashed #000; }\n\n.python-user__portrait {\n position: absolute;\n top: -30px;\n left: 0;\n right: 0;\n width: 60px;\n height: 60px;\n margin: auto;\n padding: 5px;\n border-radius: 50%;\n box-sizing: border-box;\n background-color: #fff; }\n .python-user__portrait img {\n display: block;\n width: 100%; }\n\n.python-user__id {\n margin: 0;\n font-size: 15px;\n font-weight: 500;\n color: #111;\n text-align: center;\n line-height: 1; }\n\n.python-user__desc {\n height: 48px;\n margin: 4px 0;\n font-size: 16px;\n color: #333;\n text-align: center; }\n .python-user__desc span {\n color: #2D57F0; }\n\n.python-code__title {\n position: relative;\n margin: 32px 16px 21px;\n padding-left: 16px;\n font-size: 17px;\n font-weight: 600;\n color: #2D56F0;\n line-height: 1; }\n .python-code__title:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n height: 12px;\n margin: auto 0;\n background-color: #2D56F0; }\n\n.python-code__content {\n position: relative;\n height: 171px;\n margin: 0 16px;\n padding: 0 10px;\n border-radius: 5px;\n border: 1px solid #67E4FF;\n box-sizing: border-box;\n font-size: 14px;\n color: #fff;\n background-color: #272822; }\n\n.python-button {\n padding: 0;\n border-style: none;\n cursor: pointer;\n outline: none; }\n\n.python-button__study {\n display: block;\n width: 233px;\n height: 44px;\n margin: 35px auto 0;\n border-radius: 22px;\n font-size: 16px;\n font-weight: 500;\n color: #2D56F0;\n line-height: 44px;\n text-align: center;\n background-color: #FFF95B;\n box-shadow: 0px 5px 0px #ffd200; }\n\n.python-button__tip {\n margin: 35px 0 0;\n font-size: 15px;\n font-weight: 500;\n color: #fff;\n line-height: 44px;\n text-align: center; }\n\n.python-button__execute {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n width: 110px;\n height: 32px;\n margin: auto;\n border-radius: 16px;\n font-size: 15px;\n color: #fff;\n line-height: 32px;\n background-color: #0099FF; }\n\n.python-popup {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.3);\n z-index: 99; }\n\n.ace_mobile-menu {\n display: none; }\n"]}
\ No newline at end of file
.python-container{padding:13.333333vw 2.133333vw 7.733333vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-bg.png);background-size:cover}.python-header{position:relative;height:26.666667vw;padding-top:9.066667vw;box-sizing:border-box}.python-header .iconfont{position:absolute;top:-1.6vw;right:10.666667vw;font-size:10.133333vw;color:#fff}.python-wechat__title{margin:0;font-size:4.533333vw;color:#fcff1d;text-align:center;line-height:1}.python-content{padding-bottom:9.866667vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-content-bg.png);background-size:cover}.python-user{position:relative;margin:0 1.333333vw;padding-top:12vw;border-bottom:1px dashed #000}.python-user__portrait{position:absolute;top:-8vw;left:0;right:0;width:16vw;height:16vw;margin:auto;padding:1.333333vw;border-radius:50%;box-sizing:border-box;background-color:#fff;background-size:cover}.python-user__portrait img{display:block;width:100%}.python-user__id{margin:0;font-size:4vw;font-weight:500;color:#111;text-align:center;line-height:1}.python-user__desc{height:12.8vw;margin:1.066667vw 0;font-size:4.266667vw;color:#333;text-align:center}.python-user__desc span{color:#2d57f0}.python-code__title{position:relative;margin:8.533333vw 4.266667vw 5.6vw;padding-left:4.266667vw;font-size:4.533333vw;font-weight:600;color:#2d56f0;line-height:1}.python-code__title:after{content:"";position:absolute;top:0;left:0;bottom:0;width:1.066667vw;height:3.2vw;margin:auto 0;background-color:#2d56f0}.python-code__content{position:relative;height:45.6vw;margin:0 4.266667vw;padding:0 2.666667vw;border-radius:1.333333vw;border:1px solid #67e4ff;box-sizing:border-box;font-size:3.733333vw;color:#fff;background-color:#272822}.python-button{padding:0;border-style:none;cursor:pointer;outline:none}.python-button__study{display:block;width:62.133333vw;height:11.733333vw;margin:9.333333vw auto 0;border-radius:5.866667vw;font-size:4.266667vw;color:#2d56f0;background-color:#fff95b;box-shadow:0 1.333333vw 0 #ffd200}.python-button__study,.python-button__tip{font-weight:500;line-height:11.733333vw;text-align:center}.python-button__tip{margin:9.333333vw 0 0;font-size:4vw;color:#fff}.python-button__execute{position:absolute;top:0;left:0;bottom:0;right:0;width:29.333333vw;height:8.533333vw;margin:auto;border-radius:4.266667vw;font-size:4vw;color:#fff;line-height:8.533333vw;background-color:#09f}.python-popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);z-index:99}.ace_mobile-menu{display:none}
/*# sourceMappingURL=51.3e6c1334.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/src/components/pythonShare/index.scss"],"names":[],"mappings":"AAmGA,kBACE,yCAAA,CACA,mGAAA,CACA,qBAAsB,CAOxB,eACE,iBAAA,CACA,kBAAA,CACA,sBAAA,CACA,qBAAsB,CAJxB,yBAOI,iBAAA,CACA,UAAA,CACA,iBAAA,CACA,qBAAA,CACA,UAAW,CAIf,sBACE,QAAA,CACA,oBAAA,CACA,aAAA,CACA,iBAAA,CACA,aAAc,CAGhB,gBACE,yBAAA,CACA,2GAAA,CACA,qBAAsB,CAGxB,aACE,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,6BAA8B,CAGhC,uBACE,iBAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,WAAA,CACA,kBAAA,CACA,iBAAA,CACA,qBAAA,CACA,qBAAA,CACA,qBAAsB,CAZxB,2BAeI,aAAA,CACA,UAAW,CAIf,iBACE,QAAA,CACA,aAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,aAAc,CAGhB,mBACE,aAAA,CACA,mBAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAkB,CALpB,wBAQI,aAAc,CAIlB,oBACE,iBAAA,CACA,kCAAA,CACA,uBAAA,CACA,oBAAA,CACA,eAAA,CACA,aAAA,CACA,aAAc,CAPhB,0BAUI,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,QAAA,CACA,gBAAA,CACA,YAAA,CACA,aAAA,CACA,wBAAyB,CAI7B,sBACE,iBAAA,CACA,aAAA,CACA,mBAAA,CACA,oBAAA,CACA,wBAAA,CACA,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,UAAA,CACA,wBAAyB,CAG3B,eACE,SAAA,CACA,iBAAA,CACA,cAAA,CACA,YAAa,CAEf,sBACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACA,wBAAA,CACA,wBAAA,CACA,oBAAA,CAEA,aAAA,CAGA,wBAAA,CACA,iCAAyC,CAG3C,0CARE,eAAA,CAEA,uBAAA,CACA,iBAWkB,CANpB,oBACE,qBAAA,CACA,aAAA,CAEA,UAEkB,CAGpB,wBACE,iBAAA,CACA,KAAA,CACA,MAAA,CACA,QAAA,CACA,OAAA,CACA,iBAAA,CACA,iBAAA,CACA,WAAA,CACA,wBAAA,CACA,aAAA,CACA,UAAA,CACA,sBAAA,CACA,qBAAyB,CAG3B,cACE,cAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,+BAAA,CACA,UAAW,CAGb,iBACE,YAAa","file":"51.3e6c1334.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.python-container {\n padding: 50px 8px 29px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-bg.png\");\n background-size: cover; }\n\n.python-header {\n position: relative;\n height: 100px;\n padding-top: 34px;\n box-sizing: border-box; }\n .python-header .iconfont {\n position: absolute;\n top: -6px;\n right: 40px;\n font-size: 38px;\n color: #fff; }\n\n.python-wechat__title {\n margin: 0;\n font-size: 17px;\n color: #FCFF1D;\n text-align: center;\n line-height: 1; }\n\n.python-content {\n padding-bottom: 37px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-content-bg.png\");\n background-size: cover; }\n\n.python-user {\n position: relative;\n margin: 0 5px;\n padding-top: 45px;\n border-bottom: 1px dashed #000; }\n\n.python-user__portrait {\n position: absolute;\n top: -30px;\n left: 0;\n right: 0;\n width: 60px;\n height: 60px;\n margin: auto;\n padding: 5px;\n border-radius: 50%;\n box-sizing: border-box;\n background-color: #fff;\n background-size: cover; }\n .python-user__portrait img {\n display: block;\n width: 100%; }\n\n.python-user__id {\n margin: 0;\n font-size: 15px;\n font-weight: 500;\n color: #111;\n text-align: center;\n line-height: 1; }\n\n.python-user__desc {\n height: 48px;\n margin: 4px 0;\n font-size: 16px;\n color: #333;\n text-align: center; }\n .python-user__desc span {\n color: #2D57F0; }\n\n.python-code__title {\n position: relative;\n margin: 32px 16px 21px;\n padding-left: 16px;\n font-size: 17px;\n font-weight: 600;\n color: #2D56F0;\n line-height: 1; }\n .python-code__title:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 4px;\n height: 12px;\n margin: auto 0;\n background-color: #2D56F0; }\n\n.python-code__content {\n position: relative;\n height: 171px;\n margin: 0 16px;\n padding: 0 10px;\n border-radius: 5px;\n border: 1px solid #67E4FF;\n box-sizing: border-box;\n font-size: 14px;\n color: #fff;\n background-color: #272822; }\n\n.python-button {\n padding: 0;\n border-style: none;\n cursor: pointer;\n outline: none; }\n\n.python-button__study {\n display: block;\n width: 233px;\n height: 44px;\n margin: 35px auto 0;\n border-radius: 22px;\n font-size: 16px;\n font-weight: 500;\n color: #2D56F0;\n line-height: 44px;\n text-align: center;\n background-color: #FFF95B;\n box-shadow: 0px 5px 0px #ffd200; }\n\n.python-button__tip {\n margin: 35px 0 0;\n font-size: 15px;\n font-weight: 500;\n color: #fff;\n line-height: 44px;\n text-align: center; }\n\n.python-button__execute {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n width: 110px;\n height: 32px;\n margin: auto;\n border-radius: 16px;\n font-size: 15px;\n color: #fff;\n line-height: 32px;\n background-color: #0099FF; }\n\n.python-popup {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.3);\n z-index: 99; }\n\n.ace_mobile-menu {\n display: none; }\n"]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1228:function(e,t,a){},1285:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),s=a(7),i=a(6),l=a(8),r=a(9),d=a(0),m=a.n(d),h=a(16),u=a(722),p=a(1222),y=a.n(p),E=a(28),b=a(3),_=(a(1228),a(1229),a(1230),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).initCommand=function(){a.setState({command:"".concat(API.m,"/pythonShare?id=").concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&from=python")})},a.initPageStatus=function(){"barcode"===Object(b.c)("from")&&a.setState({entryMode:0}),"python"===Object(b.c)("from")&&a.setState({entryMode:2}),"1"===Object(b.c)("type")&&a.setState({isShare:!0}),"2"===Object(b.c)("type")&&a.setState({isShare:!1}),a.setState({type:Object(b.c)("ques")||"1"})},a.handleFetchInfo=function(){var e=Object(b.c)("id")||10;b.d.get("".concat(API.home,"/m/it/share/show"),{params:{id:e}}).then(function(e){var t=e.data,n=t.code,c=t.data;200===n&&a.setState({data:c})})},a.handleToSend=function(){var e=a.props.history;b.b.isWeixin&&(a.setState({entryMode:1}),e.push("/pythonShare?id=".concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&from=python")))},a.copyToSuccess=function(){c.a.info("\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),a.setState({isCopy:!0})},a.handleToExecute=function(){a.setState({isExecute:!0})},a.handleToHide=function(){a.setState({entryMode:2})},a.state={isWechat:b.b.isWeixin,isShare:!0,type:"1",entryMode:0,isExecute:!1,isCopy:!1,command:"",data:{}},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.handleFetchInfo(),this.initPageStatus(),this.initCommand()}},{key:"render",value:function(){var e=this.state,t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.type,o=e.entryMode,s=e.command,i=e.isCopy,l=e.data;return m.a.createElement(m.a.Fragment,null,m.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),m.a.createElement(f,{isWechat:t,isShare:a,type:c,isExecute:n,entryMode:o,isCopy:i,command:s,data:l,handleToExecute:this.handleToExecute,handleToSend:this.handleToSend,copyToSuccess:this.copyToSuccess,handleToHide:this.handleToHide}))}}]),t}(d.Component));function S(e){return m.a.createElement(y.a,{mode:"python",theme:"dracula",readOnly:!0,showPrintMargin:!1,value:e.code,style:{width:"100%",height:"100%"}})}function f(e){var t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.type,o=e.entryMode,s=e.isCopy,i=e.command,l=e.data,r=l.head_img,d=l.nickname,p=l.code_lines,y=l.code,E=l.result,b=l.ques_name,_=l.course_name,f=l.course_id,N=l.video_name,v=e.handleToSend,O=e.copyToSuccess,T=e.handleToExecute,j=e.handleToHide,C="";return"1"===c&&(C="\u7ec3\u4e60-".concat(b)),"2"===c&&(C="\u8bfe\u5802-".concat(N)),m.a.createElement("div",{className:"python-container"},1===o&&t&&m.a.createElement("div",{className:"python-popup",onClick:j},m.a.createElement("div",{className:"python-header"},m.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),m.a.createElement("i",{className:"iconfont iconyindao"}))),m.a.createElement("div",{className:"python-content"},m.a.createElement("div",{className:"python-user"},m.a.createElement("div",{className:"python-user__portrait"},m.a.createElement("img",{src:r,alt:""})),m.a.createElement("h2",{className:"python-user__id"},d),0===o&&a&&m.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",m.a.createElement("span",null,"\u3010",C,"\u3011")),0!==o&&a&&m.a.createElement("p",{className:"python-user__desc"},"\u5728",m.a.createElement("span",null,"\u3010",_,"\u3011"),"\u5b8c\u6210\u4e86",m.a.createElement("br",null),C),0===o&&!a&&m.a.createElement("p",{className:"python-user__desc"},"\u5728",m.a.createElement("span",null,"\u3010",C,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),0!==o&&!a&&m.a.createElement("p",{className:"python-user__desc"},"\u5728",m.a.createElement("span",null,"\u3010",_,"\u3011"),"\u7684",m.a.createElement("br",null),m.a.createElement("span",null,C),"\u9047\u5230\u4e86\u56f0\u96be")),m.a.createElement("h4",{className:"python-code__title"},0!==o&&a&&!t?"\u8fd9\u662fTa\u7684\u7b2c".concat(p,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),m.a.createElement("div",{className:"python-code__content"},m.a.createElement(S,{code:0!==o&&a&&!t?y:E})),m.a.createElement("h4",{className:"python-code__title"},0!==o&&a&&!t?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),m.a.createElement("div",{className:"python-code__content"},0!==o&&a&&!t?m.a.createElement(S,{code:n?E:""}):m.a.createElement(S,{code:y}),0!==o&&a&&!t&&!n&&m.a.createElement("button",{className:"python-button python-button__execute",onClick:T},"\u8fd0\u884c\u770b\u770b"))),0===o&&t&&m.a.createElement("button",{className:"python-button python-button__study",onClick:v},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===o&&!t&&!s&&m.a.createElement(u.CopyToClipboard,{text:i,onCopy:O},m.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===o&&!t&&s&&m.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),0!==o&&m.a.createElement(h.b,{className:"python-button python-button__study",to:"/python?id=".concat(f)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=_}}]);
//# sourceMappingURL=51.92ccce8c.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1228:function(e,t,a){},1285:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),s=a(7),i=a(6),l=a(8),r=a(9),d=a(0),u=a.n(d),m=a(16),h=a(722),p=a(1222),y=a.n(p),E=a(28),b=a(3),_=(a(1228),a(1229),a(1230),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).initCommand=function(){a.setState({command:"".concat(API.m,"/pythonShare?id=").concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&origin=python")})},a.initPageStatus=function(){"barcode"===Object(b.c)("origin")&&a.setState({entryMode:0}),"python"===Object(b.c)("origin")&&a.setState({entryMode:1}),"1"===Object(b.c)("type")&&a.setState({isShare:!0}),"2"===Object(b.c)("type")&&a.setState({isShare:!1}),a.setState({type:Object(b.c)("ques")||"1"})},a.handleFetchInfo=function(){var e=Object(b.c)("id")||10;b.d.get("".concat(API.home,"/m/it/share/show"),{params:{id:e}}).then(function(e){var t=e.data,n=t.code,c=t.data;200===n&&a.setState({data:c})})},a.handleToSend=function(e){var t=a.props.history,n=a.state,c=n.isShare,o=n.entryMode;if(b.b.isWeixin){t.push("/pythonShare?id=".concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&origin=python")),a.setState({isGuide:!0});var s="",i=a.formatTitle(e);0===o||c||(s="\u6211\u5728".concat(e.course_name,"\u7684").concat(i,"\u9047\u5230\u4e86\u56f0\u96be")),0!==o&&c&&(s="\u6211\u5df2\u5728\u3010".concat(e.course_name,"\u3011\u4e0a\u8fd0\u884c\u4e86\u884c\u4ee3\u7801\u4e86").concat(e.code_lines)),Object(b.i)({title:s,desc:i,link:encodeURI(location.href),imgUrl:e.course_img})}},a.formatTitle=function(e){var t=a.state.type;return"1"===t?"\u7ec3\u4e60-".concat(e.ques_name):"2"===t?"\u8bfe\u5802-".concat(e.video_name):void 0},a.copyToSuccess=function(){c.a.info("\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),a.setState({isCopy:!0})},a.handleToExecute=function(){a.setState({isExecute:!0})},a.handleToHide=function(){a.setState({isGuide:!1})},a.state={isWechat:b.b.isWeixin,isShare:!0,type:"1",entryMode:0,isGuide:!1,isExecute:!1,isCopy:!1,command:"",data:{}},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.handleFetchInfo(),this.initPageStatus(),this.initCommand()}},{key:"render",value:function(){var e=this.state,t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.command,s=e.isCopy,i=e.isGuide,l=e.data;return u.a.createElement(u.a.Fragment,null,u.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),u.a.createElement(f,{isWechat:t,isShare:a,isExecute:n,entryMode:c,isGuide:i,isCopy:s,command:o,data:l,labelName:this.formatTitle(l),handleToExecute:this.handleToExecute,handleToSend:this.handleToSend,copyToSuccess:this.copyToSuccess,handleToHide:this.handleToHide}))}}]),t}(d.Component));function S(e){return u.a.createElement(y.a,{mode:"python",theme:"dracula",readOnly:!0,showPrintMargin:!1,value:e.code,style:{width:"100%",height:"100%"}})}function f(e){var t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.isCopy,s=e.command,i=e.labelName,l=e.isGuide,r=e.data,d=r.head_img,p=r.nickname,y=r.code_lines,E=r.code,b=r.result,_=r.course_name,f=r.course_id,N=e.handleToSend,v=e.copyToSuccess,T=e.handleToExecute,O=e.handleToHide;return u.a.createElement("div",{className:"python-container"},l&&u.a.createElement("div",{className:"python-popup",onClick:O},u.a.createElement("div",{className:"python-header"},u.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),u.a.createElement("i",{className:"iconfont iconyindao"}))),u.a.createElement("div",{className:"python-content"},u.a.createElement("div",{className:"python-user"},u.a.createElement("i",{className:"python-user__portrait",style:{backgroundImage:"url(".concat(d,")")}}),u.a.createElement("h2",{className:"python-user__id"},p),0===c&&a&&u.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",u.a.createElement("span",null,"\u3010",i,"\u3011")),1===c&&a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",_,"\u3011"),"\u5b8c\u6210\u4e86",u.a.createElement("br",null),i),0===c&&!a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",i,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),1===c&&!a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",_,"\u3011"),"\u7684",u.a.createElement("br",null),u.a.createElement("span",null,i),"\u9047\u5230\u4e86\u56f0\u96be")),u.a.createElement("h4",{className:"python-code__title"},1===c&&a?"\u8fd9\u662fTa\u7684\u7b2c".concat(y,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),u.a.createElement("div",{className:"python-code__content"},u.a.createElement(S,{code:1===c&&a?E:b})),u.a.createElement("h4",{className:"python-code__title"},1===c&&a?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),u.a.createElement("div",{className:"python-code__content"},1===c&&a?u.a.createElement(S,{code:n?b:""}):u.a.createElement(S,{code:E}),1===c&&a&&!n&&u.a.createElement("button",{className:"python-button python-button__execute",onClick:T},"\u8fd0\u884c\u770b\u770b"))),0===c&&t&&u.a.createElement("button",{className:"python-button python-button__study",onClick:N},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===c&&!t&&!o&&u.a.createElement(h.CopyToClipboard,{text:s,onCopy:v},u.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===c&&!t&&o&&u.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),1===c&&u.a.createElement(m.b,{className:"python-button python-button__study",to:"/python?id=".concat(f)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=_}}]);
//# sourceMappingURL=51.fb82c6ca.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.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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 a,n,f=r[0],i=r[1],s=r[2],d=0,l=[];d<f.length;d++)n=f[d],o[n]&&l.push(o[n][0]),o[n]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);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],a=!0,n=1;n<t.length;n++){var i=t[n];0!==o[i]&&(a=!1)}a&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var a={},n={35:0},o={35:0},c=[];function f(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"781074ea",2:"bf839917",3:"b22f3911",4:"6260646a",5:"eb686c74",6:"fb4bedde",7:"2d34330b",8:"afc8902e",9:"aeb3f822",10:"7bb0622b",11:"6260646a",12:"31d6cfe0",13:"8c058a7a",14:"31d6cfe0",15:"7eb7d317",16:"12a8297c",17:"cdf852c1",18:"8046fb41",19:"92ab48a3",20:"40873df0",21:"5a935f68",22:"07827c59",23:"91e559d5",24:"466858c7",25:"5ea077aa",26:"09ce6fd5",27:"57479076",29:"179a42fc",30:"6ea5fa63",31:"2c89a30a",32:"3eee90af",33:"bb758677",34:"49baf51f",36:"5716d9b3",37:"76774ba4",38:"bf6b9b43",39:"fd23e5fc",40:"f08bc5f3",41:"1c1131c9",43:"31d6cfe0",44:"a156a0a0",45:"bff100af",46:"31d6cfe0",47:"820320a6",48:"35e22f8c",49:"befec011",50:"b02d1de6",51:"3e6c1334"}[e]+".chunk.css",o=f.p+a,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===a||s===o))return r()}var d=document.getElementsByTagName("style");for(i=0;i<d.length;i++){var u;if((s=(u=d[i]).getAttribute("data-href"))===a||s===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){n[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=o[e]=[r,a]});r.push(t[2]=a);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,f.nc&&i.setAttribute("nonce",f.nc),i.src=function(e){return f.p+"mrstatic/js/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"a1f55c4b",1:"6d5d4081",2:"0fac390d",3:"b64cad72",4:"a1371f95",5:"10317b8f",6:"220ffc3f",7:"e734fea9",8:"41f8955c",9:"7fe205fc",10:"cbe58c71",11:"aa2ed8cf",12:"83cc02c9",13:"947ec0ec",14:"3e43068a",15:"a8ffa082",16:"a4609efc",17:"59f563fd",18:"ee4ad052",19:"91e77bdc",20:"8cedd3e9",21:"63eb92b8",22:"6189dd97",23:"fa7bfe60",24:"0ea6a92f",25:"75b0b99b",26:"fde342b8",27:"5541ed10",29:"04486386",30:"498b216b",31:"21a01c9e",32:"485c99ce",33:"bc9fe8f0",34:"286eff61",36:"9e769f2e",37:"721d3316",38:"5fa2fc55",39:"60a559ae",40:"4781b58a",41:"57331e8b",43:"f063ef63",44:"77346626",45:"83264ccd",46:"e2b5c822",47:"39c28519",48:"eb589f62",49:"e76712e7",50:"cf6263c6",51:"fb82c6ca"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(s);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,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)},f.m=e,f.c=a,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)f.d(t,a,function(r){return e[r]}.bind(null,a));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/",f.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 d=0;d<i.length;d++)r(i[d]);var u=s;t()}([]);
//# sourceMappingURL=runtime~main.23b8d70a.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,f=r[0],i=r[1],d=r[2],s=0,l=[];s<f.length;s++)a=f[s],c[a]&&l.push(c[a][0]),c[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 o.push.apply(o,d||[]),t()}function t(){for(var e,r=0;r<o.length;r++){for(var t=o[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==c[i]&&(n=!1)}n&&(o.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},a={35:0},c={35:0},o=[];function f(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,f),t.l=!0,t.exports}f.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45: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/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"c420ace8",2:"bf839917",3:"b22f3911",4:"6260646a",5:"eb686c74",6:"fb4bedde",7:"2d34330b",8:"afc8902e",9:"aeb3f822",10:"7bb0622b",11:"6260646a",12:"31d6cfe0",13:"8c058a7a",14:"31d6cfe0",15:"7eb7d317",16:"12a8297c",17:"cdf852c1",18:"8046fb41",19:"92ab48a3",20:"40873df0",21:"5a935f68",22:"07827c59",23:"91e559d5",24:"466858c7",25:"5ea077aa",26:"09ce6fd5",27:"57479076",29:"179a42fc",30:"17f4732b",31:"747e9e80",32:"3eee90af",33:"bb758677",34:"49baf51f",36:"5716d9b3",37:"76774ba4",38:"bf6b9b43",39:"fd23e5fc",40:"f08bc5f3",41:"1c1131c9",43:"31d6cfe0",44:"a156a0a0",45:"bff100af",46:"31d6cfe0",47:"820320a6",48:"35e22f8c",49:"befec011",50:"b02d1de6",51:"1146f09d"}[e]+".chunk.css",c=f.p+n,o=document.getElementsByTagName("link"),i=0;i<o.length;i++){var d=(u=o[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(d===n||d===c))return r()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var u;if((d=(u=s[i]).getAttribute("data-href"))===n||d===c)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||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");o.request=n,delete a[e],l.parentNode.removeChild(l),t(o)},l.href=c,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=c[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=c[e]=[r,n]});r.push(t[2]=n);var o,i=document.createElement("script");i.charset="utf-8",i.timeout=120,f.nc&&i.setAttribute("nonce",f.nc),i.src=function(e){return f.p+"mrstatic/js/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"a1f55c4b",1:"5c68fcc9",2:"0fac390d",3:"b64cad72",4:"a1371f95",5:"10317b8f",6:"220ffc3f",7:"e734fea9",8:"41f8955c",9:"7fe205fc",10:"cbe58c71",11:"aa2ed8cf",12:"83cc02c9",13:"947ec0ec",14:"3e43068a",15:"a8ffa082",16:"a4609efc",17:"59f563fd",18:"ee4ad052",19:"91e77bdc",20:"8cedd3e9",21:"63eb92b8",22:"6189dd97",23:"fa7bfe60",24:"0ea6a92f",25:"75b0b99b",26:"3dd6feb4",27:"cef2f183",29:"04486386",30:"268cd39d",31:"1ea3b486",32:"485c99ce",33:"bc9fe8f0",34:"286eff61",36:"d4fcc9d9",37:"721d3316",38:"993f16bd",39:"60a559ae",40:"4781b58a",41:"fcd95c48",43:"f063ef63",44:"77346626",45:"83264ccd",46:"e2b5c822",47:"39c28519",48:"eb589f62",49:"e76712e7",50:"cf6263c6",51:"92ccce8c"}[e]+".chunk.js"}(e),o=function(r){i.onerror=i.onload=null,clearTimeout(d);var t=c[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,o=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");o.type=n,o.request=a,t[1](o)}c[e]=void 0}};var d=setTimeout(function(){o({type:"timeout",target:i})},12e4);i.onerror=i.onload=o,document.head.appendChild(i)}return Promise.all(r)},f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/",f.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],d=i.push.bind(i);i.push=r,i=i.slice();for(var s=0;s<i.length;s++)r(i[s]);var u=d;t()}([]);
//# sourceMappingURL=runtime~main.a12e5bc9.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.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.51fbac38d5a876006a8801b296fb3bae.js" "/precache-manifest.19de3e6c384bfa0552115a7184b97c5a.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();
...@@ -30,5 +30,5 @@ workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); ...@@ -30,5 +30,5 @@ workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute("/index.html", { workbox.routing.registerNavigationRoute("/index.html", {
blacklist: [/^\/_/,/\/[^/]+\.[^/]+$/], blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/],
}); });
...@@ -20,7 +20,7 @@ class NewVip extends Component { ...@@ -20,7 +20,7 @@ class NewVip extends Component {
notice_content: '', // 提示 notice_content: '', // 提示
countdown: '', // 倒计时 countdown: '', // 倒计时
cutindex: 0, cutindex: 0,
lowPrice: 0, lowPrice: '',
tobuyID: '', tobuyID: '',
list1: [ list1: [
{ {
...@@ -76,50 +76,50 @@ class NewVip extends Component { ...@@ -76,50 +76,50 @@ class NewVip extends Component {
], // 特权2 ], // 特权2
teaList: [ teaList: [
{ {
img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png', img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/chen.png',
name: '陈博士' name: '陈博士'
}, },
{ {
img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png', img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/seven.png',
name: '陈博士' name: 'Seven'
}, },
{ {
img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png', img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/zhu.png',
name: '博士' name: '博士'
}, },
{ {
img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png', img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/yang.png',
name: '陈博士' name: '杨老师'
}, },
{ {
img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png', img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/guan.png',
name: '博士' name: '博士'
}, },
{ {
img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png', img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/li.png',
name: '陈博士' name: '李弘杨'
}, },
{ {
img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png', img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/sun.png',
name: '陈博士' name: '孙老师'
}, },
{ {
img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png', img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/shi.png',
name: '陈博士' name: '史老师'
} }
], // 讲师 ], // 讲师
tip: ['365*24小时不间断使用', '超高性能GPU硬件环境', '预装主流DL框架和数据集', '可自由上传私人数据集'], tip: ['365*24小时不间断使用', '超高性能GPU硬件环境', '预装主流DL框架和数据集', '可自由上传私人数据集'],
} }
componentDidMount() { componentDidMount() {
// this.fetchNotice() this.fetchNotice()
this.fetchVipBag() this.fetchVipBag()
// 获取App登录信息 // 获取App登录信息
window['loginInfo'] = result => { window['loginInfo'] = result => {
this.loginInfo(result) this.loginInfo(result)
} }
document.title = 'VIP会员限时特惠,全平台在线课程免费学,GPU云实验平台免费用!——七月在线';
} }
// 获取app登录数据 // 获取app登录数据
...@@ -188,7 +188,8 @@ class NewVip extends Component { ...@@ -188,7 +188,8 @@ class NewVip extends Component {
tobuyID: _this.state.isSetmeal[_this.state.cutindex].course_id tobuyID: _this.state.isSetmeal[_this.state.cutindex].course_id
}) })
} else { } else {
Toast.info(msg, 2) Toast.info(msg, 2, null, false)
} }
}) })
} }
...@@ -212,14 +213,14 @@ class NewVip extends Component { ...@@ -212,14 +213,14 @@ class NewVip extends Component {
date -= 1000 date -= 1000
day = `${parseInt(date / (60 * 60 * 24 * 1000))}` day = `${parseInt(date / (60 * 60 * 24 * 1000))}`
hours = `${parseInt((date - day * 86400000) / (60 * 60 * 1000))}`.padStart(2, 0) hours = `${parseInt((date - day * 86400000) / (60 * 60 * 1000))}`.padStart(2, 0)
minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0) minutes = `${parseInt((date - day * 86400000 - hours * 3600000) / 60000)}`.padStart(2, 0)
seconds = `${parseInt((date - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0) seconds = `${parseInt((date - day * 86400000 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0)
_this.setState({ _this.setState({
countdown: `剩余${day}${hours}${minutes}${seconds}秒` countdown: `剩余${day}${hours}${minutes}${seconds}秒`
}) })
}, 1000) }, 1000)
} else { } else {
Toast.info(msg, 2) Toast.info(msg, 2, null, false)
} }
}) })
} }
...@@ -228,7 +229,7 @@ class NewVip extends Component { ...@@ -228,7 +229,7 @@ class NewVip extends Component {
// 立即购买显示弹窗 // 立即购买显示弹窗
showPrice = () => { showPrice = () => {
const isLogin = !this.props.user.hasError const isLogin = !this.props.user.hasError
if (isLogin) { if (!isLogin) {
this.toLogin() this.toLogin()
} else { } else {
this.setState({ this.setState({
...@@ -239,7 +240,7 @@ class NewVip extends Component { ...@@ -239,7 +240,7 @@ class NewVip extends Component {
toLogin = () => { toLogin = () => {
if (!getParam('version')) { if (!getParam('version')) {
history.push('/passport') this.props.history.push('/passport')
} else { } else {
SendMessageToApp("toLogin") SendMessageToApp("toLogin")
} }
...@@ -269,7 +270,7 @@ class NewVip extends Component { ...@@ -269,7 +270,7 @@ class NewVip extends Component {
if (res.data.errno === 0) { if (res.data.errno === 0) {
this.props.history.push(`/order?id=${id}`, {simple: 1}) this.props.history.push(`/order?id=${id}`, {simple: 1})
} else { } else {
Toast.info(res.data.msg, 2) Toast.info(res.data.msg, 2, null, false)
} }
}) })
} else { } else {
...@@ -278,7 +279,7 @@ class NewVip extends Component { ...@@ -278,7 +279,7 @@ class NewVip extends Component {
} }
render() { render() {
const {notice_content, countdown, list1, list2, tip, teaList, isSetmeal, cutindex, isshowPrice, lowPrice} = this.state const {notice_content, date, countdown, list1, list2, tip, teaList, isSetmeal, cutindex, isshowPrice, lowPrice} = this.state
return ( return (
<div className='new-vip'> <div className='new-vip'>
{/*banner*/} {/*banner*/}
...@@ -286,14 +287,23 @@ class NewVip extends Component { ...@@ -286,14 +287,23 @@ class NewVip extends Component {
src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/vip-banner.png" alt=""/></div> src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/vip-banner.png" alt=""/></div>
{/*vip倒计时*/} {/*vip倒计时*/}
{
(notice_content || date) &&
<div className="notice"> <div className="notice">
{
notice_content &&
<div className="tip"> <div className="tip">
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/linlin_icon.png" <img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/linlin_icon.png"
alt=""/> alt=""/>
<span>{notice_content}</span> <span>{notice_content}</span>
</div> </div>
}
{
date &&
<div className="time">{countdown}</div> <div className="time">{countdown}</div>
}
</div> </div>
}
{/*VIP尊享五大服务*/} {/*VIP尊享五大服务*/}
<div className="privilege-box"> <div className="privilege-box">
...@@ -323,9 +333,9 @@ class NewVip extends Component { ...@@ -323,9 +333,9 @@ class NewVip extends Component {
<div className="privilege-list-row"> <div className="privilege-list-row">
<div className="privilege-list-gpu"> <div className="privilege-list-gpu">
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/pc/bgimg.png" <img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu1_bj%402x.png"
alt=""/> alt=""/>
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/pc/bgimg.png" <img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu2_bj%402x.png"
alt=""/> alt=""/>
</div> </div>
...@@ -367,10 +377,10 @@ class NewVip extends Component { ...@@ -367,10 +377,10 @@ class NewVip extends Component {
<div className='privilege-test'> <div className='privilege-test'>
<img <img
src="https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/img/vip/18/xitong2.png" src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce1_bj%402x.png"
alt=""/> alt=""/>
<img <img
src="https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/img/vip/18/xitong2.png" src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce2_bj%402x.png"
alt=""/> alt=""/>
</div> </div>
</div> </div>
......
...@@ -195,9 +195,10 @@ ...@@ -195,9 +195,10 @@
.privilege-test { .privilege-test {
width: 100%; width: 100%;
margin-top: -8px; margin-top: -8px;
display: flex;
justify-content: space-between;
img { img {
width: 165px; width: 163px;
height: 270px; height: 270px;
border-radius: 2px; border-radius: 2px;
} }
...@@ -217,6 +218,7 @@ ...@@ -217,6 +218,7 @@
color: #FF4400; color: #FF4400;
position: fixed; position: fixed;
bottom: 0; bottom: 0;
z-index: 2;
} }
......
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