Commit da23d936 by zhanghaozhe

智能选课

parent 80033267
......@@ -85,12 +85,12 @@
"detail.css": "/mrstatic/css/detail.975c864b.chunk.css",
"detail.js": "/mrstatic/js/detail.99b5d477.chunk.js",
"detail.js.map": "/mrstatic/js/detail.99b5d477.chunk.js.map",
"intelligent-recommend.css": "/mrstatic/css/intelligent-recommend.4e428d8b.chunk.css",
"intelligent-recommend.js": "/mrstatic/js/intelligent-recommend.113a5ed9.chunk.js",
"intelligent-recommend.js.map": "/mrstatic/js/intelligent-recommend.113a5ed9.chunk.js.map",
"intelligent-recommend.css": "/mrstatic/css/intelligent-recommend.31f1ff12.chunk.css",
"intelligent-recommend.js": "/mrstatic/js/intelligent-recommend.a1555f40.chunk.js",
"intelligent-recommend.js.map": "/mrstatic/js/intelligent-recommend.a1555f40.chunk.js.map",
"main.css": "/mrstatic/css/main.83dfc3ca.chunk.css",
"main.js": "/mrstatic/js/main.048286c7.chunk.js",
"main.js.map": "/mrstatic/js/main.048286c7.chunk.js.map",
"main.js": "/mrstatic/js/main.b4681835.chunk.js",
"main.js.map": "/mrstatic/js/main.b4681835.chunk.js.map",
"ml.css": "/mrstatic/css/ml.4913a774.chunk.css",
"ml.js": "/mrstatic/js/ml.6268e49b.chunk.js",
"ml.js.map": "/mrstatic/js/ml.6268e49b.chunk.js.map",
......@@ -115,8 +115,8 @@
"python-class.css": "/mrstatic/css/python-class.087d6571.chunk.css",
"python-class.js": "/mrstatic/js/python-class.e0fcffc3.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.e0fcffc3.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.0ec820f8.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.0ec820f8.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.8075c87c.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.8075c87c.js.map",
"search.css": "/mrstatic/css/search.38c3e634.chunk.css",
"search.js": "/mrstatic/js/search.ab710d7b.chunk.js",
"search.js.map": "/mrstatic/js/search.ab710d7b.chunk.js.map",
......@@ -234,7 +234,7 @@
"mrstatic/css/deposit-order.6f3a01ca.chunk.css.map": "/mrstatic/css/deposit-order.6f3a01ca.chunk.css.map",
"mrstatic/css/deposit-pay-order.219bad3d.chunk.css.map": "/mrstatic/css/deposit-pay-order.219bad3d.chunk.css.map",
"mrstatic/css/detail.975c864b.chunk.css.map": "/mrstatic/css/detail.975c864b.chunk.css.map",
"mrstatic/css/intelligent-recommend.4e428d8b.chunk.css.map": "/mrstatic/css/intelligent-recommend.4e428d8b.chunk.css.map",
"mrstatic/css/intelligent-recommend.31f1ff12.chunk.css.map": "/mrstatic/css/intelligent-recommend.31f1ff12.chunk.css.map",
"mrstatic/css/main.83dfc3ca.chunk.css.map": "/mrstatic/css/main.83dfc3ca.chunk.css.map",
"mrstatic/css/ml.4913a774.chunk.css.map": "/mrstatic/css/ml.4913a774.chunk.css.map",
"mrstatic/css/mlShare.5fba4ed0.chunk.css.map": "/mrstatic/css/mlShare.5fba4ed0.chunk.css.map",
......@@ -256,6 +256,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.f2f4294d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.05eb56a96eb55d4cc556e1bc5e3951ed.js": "/precache-manifest.05eb56a96eb55d4cc556e1bc5e3951ed.js",
"precache-manifest.5e0e26cb783ef3289d8ec3aa022a828a.js": "/precache-manifest.5e0e26cb783ef3289d8ec3aa022a828a.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
#intelligent-recommend{background:-webkit-gradient(linear,left top,right top,from(#f1f0f6),to(#ebf4f9));background:-webkit-linear-gradient(left,#f1f0f6,#ebf4f9);background:linear-gradient(90deg,#f1f0f6,#ebf4f9);padding:15.733333vw 2.666667vw 4.8vw;min-height:100%}#intelligent-recommend .clearfix:after{content:".";visibility:hidden;display:block;height:0;clear:both}#intelligent-recommend .head{position:fixed;top:0;left:0;justify-content:space-between;width:100%;height:11.733333vw;padding:0 4vw;background:#fff;z-index:100}#intelligent-recommend .head,#intelligent-recommend .head>div{display:flex;align-items:center}#intelligent-recommend .head .iconfont{font-size:4.266667vw;color:#222;font-weight:600}#intelligent-recommend .head .title{margin-left:2.666667vw;font-size:4vw;color:#2b2b2b}#intelligent-recommend .head button{width:22.4vw;height:8vw;border:1px solid #09f;border-radius:4vw;color:#09f;font-size:3.466667vw;outline:0;background-color:initial;-webkit-appearance:none}#intelligent-recommend .dialog-box{padding:5.333333vw 4vw;margin-bottom:5.333333vw;background:#f2f7fa;border:1px solid #5cf9ff;border-radius:2.133333vw}#intelligent-recommend .dialog-box .analyzing{color:#4f5c66;font-size:3.2vw;line-height:12.8vw;text-align:center}#intelligent-recommend .message .avatar{display:inline-block;margin-right:3.733333vw}#intelligent-recommend .message .avatar img{width:8vw;height:8vw;border-radius:50%}#intelligent-recommend .message .text{position:relative;padding:0 4.266667vw;display:inline-block;background:#fff;border-radius:1.066667vw;font-size:4.266667vw;color:#333;text-align:center;line-height:10.666667vw}#intelligent-recommend .message.system .text:before{content:"";position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:block;border-color:transparent;border-top:1.6vw solid transparent;border-bottom:1.6vw solid transparent;left:-2.133333vw;border-right:2.133333vw solid #fff}#intelligent-recommend .message.user .avatar{float:right}#intelligent-recommend .message.user .text{float:right;margin-right:4vw;background-color:#0036ff;color:#fff}#intelligent-recommend .message.user .text:after{content:"";position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:block;border-color:transparent;border-top:1.6vw solid transparent;border-bottom:1.6vw solid transparent;right:-2.133333vw;border-left:2.133333vw solid #0036ff}#intelligent-recommend .message+.message{margin-top:8vw}#intelligent-recommend .options{position:relative;padding-top:4.8vw;margin-top:4vw}#intelligent-recommend .options:before{content:"";position:absolute;top:0;left:0;width:100%;height:2.133333vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAooAAAAPCAYAAABjlu7OAAAB4ElEQVR4Xu3du00cURiG4W8ISAERIVdBGTRAxCUjoAnjJpAgQ0gENEAZlLERspwSMGiNSCxZs+zOObN7eEiZOZfnJ3hFMl1u+qv4IUCAQHsCT9nLc46716JXe+y38zuHSY6K7mNxAgQITCDQTbCnLQkQIFBe4LY/TZ/97OW6WCx+ROJlurzkorsvfyk7ECBAoK6AUKzrbTcCBGoJ/Oy3cpDzdNkpEoufkdjnT2a5y6/urdbV7EOAAIFaAkKxlrR9CBCoL1AqFkVi/VnakQCBSQSE4iTsNiVAoJrA2LEoEquNzkYECEwvIBSnn4ETECBQWmCsWBSJpSdlfQIE1kxAKK7ZQByHAIFCAqvGokgsNBjLEiCwzgJCcZ2n42wECIwrsGwsisRx52A1AgQ2RkAobsyoHJQAgVEEvhqLInEUdosQILCZAkJxM+fm1AQIrCKwaCyKxFWUvUuAQAMCQrGBIboCAQJLCAzFokhcAtUrBAi0JiAUW5uo+xAgsLjA/2JRJC5u6EkCBJoWEIpNj9flCBAYFPg3FucvzD/L54srg3QeIECgfQGh2P6M3ZAAgSGBeSz+yFn67P59VCQOifk9AQLfREAofpNBuyYBAgMCH/9ZPEnyllkefLvZXwwBAgSSd0mFoSi2q9XZAAAAAElFTkSuQmCC) no-repeat;background-size:contain}#intelligent-recommend .options li{margin-bottom:4vw;text-align:center}#intelligent-recommend .options li button{padding:2.4vw 8vw;box-sizing:border-box;background:-webkit-gradient(linear,left top,right top,from(#09f),to(#4db8ff));background:-webkit-linear-gradient(left,#09f,#4db8ff);background:linear-gradient(90deg,#09f,#4db8ff);border-radius:4.533333vw;font-size:4.266667vw;color:#fff;-webkit-appearance:none;outline:none;border:none}#intelligent-recommend .result{padding:0 4vw 8vw;background:#fff;border:1px solid #09f;border-radius:2.133333vw;color:#333}#intelligent-recommend .result>.title{position:relative;color:#09f;font-size:4.266667vw;text-align:center;line-height:16.533333vw}#intelligent-recommend .result>.title:before{transform:translateY(-50%);left:5%}#intelligent-recommend .result>.title:after,#intelligent-recommend .result>.title:before{content:"";position:absolute;top:50%;-webkit-transform:translateY(-50%);display:block;width:2.933333vw;height:2.933333vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAfUlEQVRIS+2VQQqAMAwEJ+DXvPs5Qb+iLysoEVF78GC3RZCCPbdDuswSQz2jdzgtRvP4xFkwZlO5DN4noRfMCDpYnRhWYNLB8teOiz84BlZjFLpGmhexIDnia+jdtWC8PfFfkHv8NXqsKpR576MoShyXVlNpK5OrqWTis3kbefQqCBLW0vYAAAAASUVORK5CYII=) no-repeat;background-size:contain}#intelligent-recommend .result>.title:after{transform:translateY(-50%);right:5%;-webkit-transform:translateY(-50%) scale(-1);transform:translateY(-50%) scale(-1)}#intelligent-recommend .result .subtitle{font-size:3.2vw}#intelligent-recommend .result .skill{font-size:4.8vw;line-height:9.6vw;font-weight:600;white-space:pre-line}#intelligent-recommend .result .skill.project{font-size:3.733333vw}#intelligent-recommend .result .salary{font-size:4.8vw;line-height:2em;font-weight:500;color:#ff2a00}#intelligent-recommend .result .obtained,#intelligent-recommend .result .salary-section{margin-bottom:5.333333vw}#intelligent-recommend .result .recommends>div:first-child{margin-bottom:3.2vw;font-size:3.2vw;color:#09f}#intelligent-recommend .result .recommends .cover{flex:0 0 auto;width:33.333333vw;height:24vw;margin-right:2.666667vw}#intelligent-recommend .result .recommends .cover img{width:100%;height:100%}#intelligent-recommend .result .recommends .course{display:flex;justify-content:space-between;margin-bottom:5.333333vw}#intelligent-recommend .result .recommends .course .info{flex:1 1 auto;position:relative}#intelligent-recommend .result .recommends .course .title{width:50.666667vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2.133333vw;font-size:4.266667vw;line-height:4.266667vw;font-weight:500;color:#333}#intelligent-recommend .result .recommends .course .des{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-bottom:1.333333vw;overflow:hidden;font-size:2.933333vw;color:#4f5c66}#intelligent-recommend .result .recommends .course .bar{position:absolute;left:0;bottom:0;display:flex;justify-content:space-between;align-items:center;width:100%;height:6.4vw;font-size:0}#intelligent-recommend .result .recommends .course .bar a{display:inline-block;box-sizing:border-box;padding:1.6vw 3.733333vw;text-align:center;font-size:3.2vw;line-height:3.2vw;border-radius:3.2vw}#intelligent-recommend .result .recommends .course .bar .contact{color:#fff;background-color:#09f;margin-right:1.6vw}#intelligent-recommend .result .recommends .course .bar .register{color:red;border:1px solid red}#intelligent-recommend .result .recommends .course .bar .price{font-size:4vw;color:#ff2121;margin-right:1.333333vw}#intelligent-recommend .result .recommends .course .bar .old-price{font-size:2.933333vw;color:#999;text-decoration:line-through}#intelligent-recommend .result .recommends .course .bar .study{background-color:#09f;color:#fff;font-size:3.2vw}
/*# sourceMappingURL=intelligent-recommend.31f1ff12.chunk.css.map */
\ No newline at end of file
#intelligent-recommend{background:-webkit-gradient(linear,left top,right top,from(#f1f0f6),to(#ebf4f9));background:-webkit-linear-gradient(left,#f1f0f6,#ebf4f9);background:linear-gradient(90deg,#f1f0f6,#ebf4f9);padding:15.733333vw 2.666667vw 4.8vw;min-height:100%}#intelligent-recommend .clearfix:after{content:".";visibility:hidden;display:block;height:0;clear:both}#intelligent-recommend .head{position:fixed;top:0;left:0;justify-content:space-between;width:100%;height:11.733333vw;padding:0 4vw;background:#fff;z-index:100}#intelligent-recommend .head,#intelligent-recommend .head>div{display:flex;align-items:center}#intelligent-recommend .head .iconfont{font-size:4.266667vw;color:#222;font-weight:600}#intelligent-recommend .head .title{margin-left:2.666667vw;font-size:4vw;color:#2b2b2b}#intelligent-recommend .head button{width:22.4vw;height:8vw;border:1px solid #09f;border-radius:4vw;color:#09f;font-size:3.466667vw;outline:0;background-color:initial;-webkit-appearance:none}#intelligent-recommend .dialog-box{padding:5.333333vw 4vw;margin-bottom:5.333333vw;background:#f2f7fa;border:1px solid #5cf9ff;border-radius:2.133333vw}#intelligent-recommend .dialog-box .analyzing{color:#4f5c66;font-size:3.2vw;line-height:12.8vw;text-align:center}#intelligent-recommend .message .avatar{display:inline-block;margin-right:3.733333vw}#intelligent-recommend .message .avatar img{width:8vw;height:8vw;border-radius:50%}#intelligent-recommend .message .text{position:relative;padding:0 4.266667vw;height:10.666667vw;display:inline-block;background:#fff;border-radius:1.066667vw;font-size:4.266667vw;color:#333;text-align:center;line-height:10.666667vw}#intelligent-recommend .message.system .text:before{content:"";position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:block;border-color:transparent;border-top:1.6vw solid transparent;border-bottom:1.6vw solid transparent;left:-2.133333vw;border-right:2.133333vw solid #fff}#intelligent-recommend .message.user .avatar{float:right}#intelligent-recommend .message.user .text{float:right;margin-right:4vw;background-color:#0036ff;color:#fff}#intelligent-recommend .message.user .text:after{content:"";position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:block;border-color:transparent;border-top:1.6vw solid transparent;border-bottom:1.6vw solid transparent;right:-2.133333vw;border-left:2.133333vw solid #0036ff}#intelligent-recommend .message+.message{margin-top:8vw}#intelligent-recommend .options{position:relative;padding-top:4.8vw;margin-top:4vw}#intelligent-recommend .options:before{content:"";position:absolute;top:0;left:0;width:100%;height:2.133333vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAooAAAAPCAYAAABjlu7OAAAB4ElEQVR4Xu3du00cURiG4W8ISAERIVdBGTRAxCUjoAnjJpAgQ0gENEAZlLERspwSMGiNSCxZs+zOObN7eEiZOZfnJ3hFMl1u+qv4IUCAQHsCT9nLc46716JXe+y38zuHSY6K7mNxAgQITCDQTbCnLQkQIFBe4LY/TZ/97OW6WCx+ROJlurzkorsvfyk7ECBAoK6AUKzrbTcCBGoJ/Oy3cpDzdNkpEoufkdjnT2a5y6/urdbV7EOAAIFaAkKxlrR9CBCoL1AqFkVi/VnakQCBSQSE4iTsNiVAoJrA2LEoEquNzkYECEwvIBSnn4ETECBQWmCsWBSJpSdlfQIE1kxAKK7ZQByHAIFCAqvGokgsNBjLEiCwzgJCcZ2n42wECIwrsGwsisRx52A1AgQ2RkAobsyoHJQAgVEEvhqLInEUdosQILCZAkJxM+fm1AQIrCKwaCyKxFWUvUuAQAMCQrGBIboCAQJLCAzFokhcAtUrBAi0JiAUW5uo+xAgsLjA/2JRJC5u6EkCBJoWEIpNj9flCBAYFPg3FucvzD/L54srg3QeIECgfQGh2P6M3ZAAgSGBeSz+yFn67P59VCQOifk9AQLfREAofpNBuyYBAgMCH/9ZPEnyllkefLvZXwwBAgSSd0mFoSi2q9XZAAAAAElFTkSuQmCC) no-repeat;background-size:contain}#intelligent-recommend .options li{width:33.6vw;height:8.8vw;margin:0 auto 4vw;background:-webkit-gradient(linear,left top,right top,from(#09f),to(#4db8ff));background:-webkit-linear-gradient(left,#09f,#4db8ff);background:linear-gradient(90deg,#09f,#4db8ff);border-radius:4.533333vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8.8vw}#intelligent-recommend .result{padding:0 4vw 8vw;background:#fff;border:1px solid #09f;border-radius:2.133333vw;color:#333}#intelligent-recommend .result>.title{position:relative;color:#09f;font-size:4.266667vw;text-align:center;line-height:16.533333vw}#intelligent-recommend .result>.title:before{transform:translateY(-50%);left:5%}#intelligent-recommend .result>.title:after,#intelligent-recommend .result>.title:before{content:"";position:absolute;top:50%;-webkit-transform:translateY(-50%);display:block;width:2.933333vw;height:2.933333vw;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAfUlEQVRIS+2VQQqAMAwEJ+DXvPs5Qb+iLysoEVF78GC3RZCCPbdDuswSQz2jdzgtRvP4xFkwZlO5DN4noRfMCDpYnRhWYNLB8teOiz84BlZjFLpGmhexIDnia+jdtWC8PfFfkHv8NXqsKpR576MoShyXVlNpK5OrqWTis3kbefQqCBLW0vYAAAAASUVORK5CYII=) no-repeat;background-size:contain}#intelligent-recommend .result>.title:after{transform:translateY(-50%);right:5%;-webkit-transform:translateY(-50%) scale(-1);transform:translateY(-50%) scale(-1)}#intelligent-recommend .result .subtitle{font-size:3.2vw}#intelligent-recommend .result .skill{font-size:4.8vw;line-height:9.6vw;font-weight:600}#intelligent-recommend .result .skill.project{font-size:3.733333vw}#intelligent-recommend .result .salary{font-size:4.8vw;line-height:2em;font-weight:500;color:#ff2a00}#intelligent-recommend .result .obtained,#intelligent-recommend .result .salary-section{margin-bottom:5.333333vw}#intelligent-recommend .result .recommends>div:first-child{margin-bottom:3.2vw;font-size:3.2vw;color:#09f}#intelligent-recommend .result .recommends .cover{flex:0 0 auto;width:33.333333vw;height:24vw;margin-right:2.666667vw}#intelligent-recommend .result .recommends .cover img{width:100%;height:100%}#intelligent-recommend .result .recommends .course{display:flex;justify-content:space-between;margin-bottom:5.333333vw}#intelligent-recommend .result .recommends .course .info{flex:1 1 auto;position:relative}#intelligent-recommend .result .recommends .course .title{width:50.666667vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2.133333vw;font-size:4.266667vw;line-height:4.266667vw;font-weight:500;color:#333}#intelligent-recommend .result .recommends .course .des{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-bottom:1.333333vw;overflow:hidden;font-size:2.933333vw;color:#4f5c66}#intelligent-recommend .result .recommends .course .bar{position:absolute;left:0;bottom:0;display:flex;justify-content:space-between;align-items:center;width:100%;height:6.4vw;font-size:0}#intelligent-recommend .result .recommends .course .bar a{display:inline-block;box-sizing:border-box;padding:1.6vw 3.733333vw;text-align:center;font-size:3.2vw;line-height:3.2vw;border-radius:3.2vw}#intelligent-recommend .result .recommends .course .bar .contact{color:#fff;background-color:#09f;margin-right:1.6vw}#intelligent-recommend .result .recommends .course .bar .register{color:red;border:1px solid red}#intelligent-recommend .result .recommends .course .bar .price{font-size:4vw;color:#ff2121;margin-right:1.333333vw}#intelligent-recommend .result .recommends .course .bar .old-price{font-size:2.933333vw;color:#999;text-decoration:line-through}#intelligent-recommend .result .recommends .course .bar .study{background-color:#09f;color:#fff;font-size:3.2vw}
/*# sourceMappingURL=intelligent-recommend.4e428d8b.chunk.css.map */
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{1134:function(e,t,a){},1178:function(e,t,a){"use strict";a.r(t);a(37);var n=a(10),s=a.n(n),c=a(18),i=a(3),r=a(5),l=a(4),o=a(6),d=a(7),m=a(0),u=a.n(m),p=(a(1134),a(13)),E=a(2),g=a(20),h=a(60),v=a(38),y=a(165),_={SYSTEM_MESSAGE:1,USER_MESSAGE:2,OPTIONS:3},f=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),d=0;d<n;d++)r[d]=arguments[d];return(a=Object(l.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(r)))).state={showAnalyzing:!1,systemAvatar:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/home/avatar_20191104.png",options:{data:[],messageId:0},next:{oid:0,rid:0}},a.handleSelect=function(e){a.props.addMessage({type:_.USER_MESSAGE,content:e.describe,id:e.id}),a.setState(function(t){return{options:{data:[],messageId:0},next:Object(c.a)({},t.next,{oid:e.id})}},function(){a.getMessage()})},a.getMessage=function(){var e=a.state.next,t=e.oid,n=e.rid;E.e.get("".concat(API.home,"/sys/icc/communicate/").concat(t,"/").concat(n)).then(function(e){var t=e.data,n=t.data,i=t.code,r=t.msg;if(200===i)if(1===n.answer_type)a.setState({showAnalyzing:!0},function(){setTimeout(function(){a.setState({showAnalyzing:!1}),a.props.addResult(Object(c.a)({},n))},500*Math.random()+1e3)});else{var l={type:_.SYSTEM_MESSAGE,content:n.contents.find(function(e){return e.is_question})},o=n.contents.filter(function(e){return!e.is_question});a.props.addMessage(l),a.setState({options:{messageId:l.content.id,data:o},next:{rid:n.rid}})}else s.a.fail(r)})},a.consult=function(e){e.preventDefault(),E.e.post("".concat(API.home,"/sys/icc/consult"),{rid:a.state.result.rid}).finally(function(){window.location.href=e.target.getAttribute("href")})},a.goBack=function(){var e=a.props.location.state;E.b.isWeixin&&Object(E.c)("code")&&Object(E.c)("state")&&window.history.go(-2),e.records&&e.records.length>1?window.history.go(-1):e.from&&e.from.pathname?location.replace("".concat(e.from.pathname).concat(e.from.search)):window.location.href=window.location.origin},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.user,a=e.intelligentRecommend,n=e.history,s=e.reselect;if(t.hasError)return n.push("/passport");Object(v.isEmpty)(a.result)&&(s(),this.getMessage())}},{key:"render",value:function(){var e=this,t=this.state,a=t.showAnalyzing,n=t.systemAvatar,s=t.options,c=this.props,i=c.user,r=c.intelligentRecommend,l=r.result,o=r.processing,d=c.reselect,m=l.contents;return u.a.createElement("div",{id:"intelligent-recommend"},u.a.createElement("div",{className:"head"},u.a.createElement("div",null,u.a.createElement("div",{className:"go-back"},u.a.createElement("i",{className:"iconfont iconiconfront-68",onClick:this.goBack})),u.a.createElement("div",{className:"title"},"\u4e03\u6708\u5728\u7ebf\u667a\u80fd\u9009\u8bfe")),u.a.createElement("button",{onClick:function(){e.setState({next:{oid:0,rid:0},options:{messageId:0,data:[]}},function(){d(),e.getMessage()})}},"\u91cd\u65b0\u9009\u8bfe")),u.a.createElement("div",{className:"dialog-box"},!!o.length&&o.map(function(t,a){switch(t.type){case _.SYSTEM_MESSAGE:return u.a.createElement(u.a.Fragment,{key:a},u.a.createElement(b,{text:t.content.describe,identity:"system",avatar:n}),s.messageId===t.content.id&&u.a.createElement(N,{options:s.data,handleSelect:e.handleSelect}));case _.USER_MESSAGE:return u.a.createElement(b,{text:t.content,identity:"user",avatar:i.data.avatar,key:a+2})}}),a&&u.a.createElement("div",{className:"analyzing"},"\u52aa\u529b\u5206\u6790\u4e2d...")),!Object(v.isEmpty)(m)&&u.a.createElement("div",{className:"result"},u.a.createElement("div",{className:"title"},"\u6839\u636e\u60a8\u76ee\u524d\u7684\u60c5\u51b5\uff0c\u63a8\u8350\u7ed3\u679c\u5982\u4e0b"),u.a.createElement("div",{className:"obtained"},u.a.createElement("div",{className:"subtitle",dangerouslySetInnerHTML:{__html:m.skill_title}}),u.a.createElement("div",{className:"skill",dangerouslySetInnerHTML:{__html:m.skill_desc}})),u.a.createElement("div",{className:"obtained"},u.a.createElement("div",{className:"subtitle",dangerouslySetInnerHTML:{__html:m.project_title}}),u.a.createElement("div",{className:"skill project",dangerouslySetInnerHTML:{__html:m.project_desc}})),u.a.createElement("div",{className:"salary-section"},u.a.createElement("div",{className:"subtitle",dangerouslySetInnerHTML:{__html:m.salary_title}}),u.a.createElement("div",{className:"salary",dangerouslySetInnerHTML:{__html:m.salary_desc}})),u.a.createElement("div",{className:"recommends"},u.a.createElement("div",null,"\u60f3\u83b7\u5f97\u4ee5\u4e0a\u6280\u80fd\uff0c\u5411\u60a8\u63a8\u8350\uff1a"),u.a.createElement("ul",{className:"courses"},!!m.courses.length&&m.courses.map(function(t){return u.a.createElement("li",{className:"course",key:t.course_id,onClick:function(a){"a"!==a.target.nodeName.toLowerCase()&&(t.course_id?e.props.history.push("/detail?id=".concat(t.course_id)):e.props.history.push("/play?id=".concat(t.v_course_id)))}},u.a.createElement("div",{className:"cover"},u.a.createElement("img",{src:t.img_url,alt:""})),u.a.createElement("div",{className:"info"},u.a.createElement("div",{className:"title"},t.recmd_title),u.a.createElement("div",{className:"des"},t.recmd_desc),u.a.createElement("div",{className:"bar"},1===t.c_type&&u.a.createElement(u.a.Fragment,{key:t.course_id},u.a.createElement("div",{className:"prices"},u.a.createElement("span",{className:"price"},"\uffe5",t.price_sale),u.a.createElement("span",{className:"old-price"},"\uffe5",t.price_original)),u.a.createElement(p.b,{className:"register",to:"/detail?id=".concat(t.course_id)},t.second_btn)),2===t.c_type&&u.a.createElement(u.a.Fragment,{key:t.course_id},u.a.createElement("a",{href:"http://q.url.cn/s/Vbkup6m?_type=wpa",className:"contact",onClick:e.consult.bind(e,t.rid)},t.consult),u.a.createElement(p.b,{className:"register",to:"/detail?id=".concat(t.course_id)},t.second_btn)),0===t.c_type&&u.a.createElement(p.b,{className:"study",to:"/play?id=".concat(t.v_course_id)},t.second_btn))))})))))}}]),t}(m.Component);function b(e){var t=e.text,a=e.avatar,n=e.identity;return u.a.createElement("div",{className:"message clearfix ".concat(n)},u.a.createElement("div",{className:"avatar"},u.a.createElement("img",{src:a,alt:""})),u.a.createElement("div",{className:"text"},t))}function N(e){var t=e.options,a=e.handleSelect;return u.a.createElement("ul",{className:"options"},!!t.length&&t.map(function(e){return u.a.createElement("li",{onClick:function(){return a(e)},key:e.id},e.describe)}))}t.default=Object(g.b)(function(e){return{user:e.user,intelligentRecommend:e.intelligentRecommend}},{addMessage:y.a,addResult:y.b,reselect:y.d})(Object(h.a)(f))}}]);
//# sourceMappingURL=intelligent-recommend.113a5ed9.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{1134:function(e,t,a){},1178:function(e,t,a){"use strict";a.r(t);a(37);var n=a(10),c=a.n(n),s=a(18),i=a(3),r=a(5),l=a(4),o=a(6),d=a(7),m=a(0),u=a.n(m),p=(a(1134),a(13)),E=a(2),g=a(20),y=a(60),v=a(38),h=a(165),_={SYSTEM_MESSAGE:1,USER_MESSAGE:2,OPTIONS:3},f=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),d=0;d<n;d++)r[d]=arguments[d];return(a=Object(l.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(r)))).state={showAnalyzing:!1,systemAvatar:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/home/avatar_20191104.png",options:{data:[],messageId:0},next:{oid:0,rid:0}},a.handleSelect=function(e){a.props.addMessage({type:_.USER_MESSAGE,content:e.describe,id:e.id}),a.setState(function(t){return{options:{data:[],messageId:0},next:Object(s.a)({},t.next,{oid:e.id})}},function(){a.getMessage()})},a.getMessage=function(){var e=a.state.next,t=e.oid,n=e.rid;E.e.get("".concat(API.home,"/sys/icc/communicate/").concat(t,"/").concat(n)).then(function(e){var t=e.data,n=t.data,i=t.code,r=t.msg;if(200===i)if(1===n.answer_type)a.setState({showAnalyzing:!0},function(){setTimeout(function(){a.setState({showAnalyzing:!1}),a.props.addResult(Object(s.a)({},n))},500*Math.random()+1e3)});else{var l={type:_.SYSTEM_MESSAGE,content:n.contents.find(function(e){return e.is_question})},o=n.contents.filter(function(e){return!e.is_question});a.props.addMessage(l),a.setState({options:{messageId:l.content.id,data:o},next:{rid:n.rid}})}else c.a.fail(r)})},a.consult=function(e){e.preventDefault(),E.e.post("".concat(API.home,"/sys/icc/consult"),{rid:a.state.result.rid}).finally(function(){window.location.href=e.target.getAttribute("href")})},a.displayPrice=function(e){var t=e.toString().split(".");return 0===parseInt(t[1])?t[0]:e},a.goBack=function(){var e=a.props.location.state;E.b.isWeixin&&Object(E.c)("code")&&Object(E.c)("state")&&window.history.go(-2),e.records&&e.records.length>1?window.history.go(-1):e.from&&e.from.pathname?location.replace("".concat(e.from.pathname).concat(e.from.search)):window.location.href=window.location.origin},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.intelligentRecommend,a=e.reselect;Object(v.isEmpty)(t.result)&&(a(),this.getMessage())}},{key:"render",value:function(){var e=this,t=this.state,a=t.showAnalyzing,n=t.systemAvatar,c=t.options,s=this.props,i=s.user,r=s.intelligentRecommend,l=r.result,o=r.processing,d=s.reselect,m=l.contents;return u.a.createElement("div",{id:"intelligent-recommend"},u.a.createElement("div",{className:"head"},u.a.createElement("div",null,u.a.createElement("div",{className:"go-back"},u.a.createElement("i",{className:"iconfont iconiconfront-68",onClick:this.goBack})),u.a.createElement("div",{className:"title"},"\u4e03\u6708\u5728\u7ebf\u667a\u80fd\u9009\u8bfe")),u.a.createElement("button",{onClick:function(){e.setState({next:{oid:0,rid:0},options:{messageId:0,data:[]}},function(){d(),e.getMessage()})}},"\u91cd\u65b0\u9009\u8bfe")),u.a.createElement("div",{className:"dialog-box"},!!o.length&&o.map(function(t,a){switch(t.type){case _.SYSTEM_MESSAGE:return u.a.createElement(u.a.Fragment,{key:a},u.a.createElement(b,{text:t.content.describe,identity:"system",avatar:n}),c.messageId===t.content.id&&u.a.createElement(N,{options:c.data,handleSelect:e.handleSelect}));case _.USER_MESSAGE:return u.a.createElement(b,{text:t.content,identity:"user",avatar:i.data.avatar,key:a+2})}}),a&&u.a.createElement("div",{className:"analyzing"},"\u52aa\u529b\u5206\u6790\u4e2d...")),!Object(v.isEmpty)(m)&&u.a.createElement("div",{className:"result"},u.a.createElement("div",{className:"title"},"\u6839\u636e\u60a8\u76ee\u524d\u7684\u60c5\u51b5\uff0c\u63a8\u8350\u7ed3\u679c\u5982\u4e0b"),u.a.createElement("div",{className:"obtained"},u.a.createElement("div",{className:"subtitle",dangerouslySetInnerHTML:{__html:m.skill_title}}),u.a.createElement("div",{className:"skill",dangerouslySetInnerHTML:{__html:m.skill_desc}})),u.a.createElement("div",{className:"obtained"},u.a.createElement("div",{className:"subtitle",dangerouslySetInnerHTML:{__html:m.project_title}}),u.a.createElement("div",{className:"skill project",dangerouslySetInnerHTML:{__html:m.project_desc}})),u.a.createElement("div",{className:"salary-section"},u.a.createElement("div",{className:"subtitle",dangerouslySetInnerHTML:{__html:m.salary_title}}),u.a.createElement("div",{className:"salary",dangerouslySetInnerHTML:{__html:m.salary_desc}})),u.a.createElement("div",{className:"recommends"},u.a.createElement("div",null,"\u60f3\u83b7\u5f97\u4ee5\u4e0a\u6280\u80fd\uff0c\u5411\u60a8\u63a8\u8350\uff1a"),u.a.createElement("ul",{className:"courses"},!!m.courses.length&&m.courses.map(function(t){return u.a.createElement("li",{className:"course",key:t.course_id,onClick:function(a){"a"!==a.target.nodeName.toLowerCase()&&(t.course_id?e.props.history.push("/detail?id=".concat(t.course_id)):e.props.history.push("/play?id=".concat(t.v_course_id)))}},u.a.createElement("div",{className:"cover"},u.a.createElement("img",{src:t.img_url,alt:""})),u.a.createElement("div",{className:"info"},u.a.createElement("div",{className:"title"},t.recmd_title),u.a.createElement("div",{className:"des"},t.recmd_desc),u.a.createElement("div",{className:"bar"},1===t.c_type&&u.a.createElement(u.a.Fragment,{key:t.course_id},u.a.createElement("div",{className:"prices"},u.a.createElement("span",{className:"price"},"\uffe5",e.displayPrice(t.price_sale)),u.a.createElement("span",{className:"old-price"},"\uffe5",e.displayPrice(t.price_original))),u.a.createElement(p.b,{className:"register",to:"/detail?id=".concat(t.course_id)},t.second_btn)),2===t.c_type&&u.a.createElement(u.a.Fragment,{key:t.course_id},u.a.createElement("a",{href:"http://q.url.cn/s/Vbkup6m?_type=wpa",className:"contact",onClick:e.consult.bind(e,t.rid)},t.consult),u.a.createElement(p.b,{className:"register",to:"/detail?id=".concat(t.course_id)},t.second_btn)),0===t.c_type&&u.a.createElement(p.b,{className:"study",to:"/play?id=".concat(t.v_course_id)},t.second_btn))))})))))}}]),t}(m.Component);function b(e){var t=e.text,a=e.avatar,n=e.identity;return u.a.createElement("div",{className:"message clearfix ".concat(n)},u.a.createElement("div",{className:"avatar"},u.a.createElement("img",{src:a,alt:""})),u.a.createElement("div",{className:"text"},t))}function N(e){var t=e.options,a=e.handleSelect;return u.a.createElement("ul",{className:"options"},!!t.length&&t.map(function(e){return u.a.createElement("li",{onClick:function(){return a(e)},key:e.id},u.a.createElement("button",null,e.describe))}))}t.default=Object(g.b)(function(e){return{user:e.user,intelligentRecommend:e.intelligentRecommend}},{addMessage:h.a,addResult:h.b,reselect:h.d})(Object(y.a)(f))}}]);
//# sourceMappingURL=intelligent-recommend.a1555f40.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.
......@@ -224,20 +224,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/detail.99b5d477.chunk.js"
},
{
"revision": "355ec14dcd0cd848846c",
"url": "/mrstatic/css/intelligent-recommend.4e428d8b.chunk.css"
"revision": "defde01b2fc3373ead22",
"url": "/mrstatic/css/intelligent-recommend.31f1ff12.chunk.css"
},
{
"revision": "355ec14dcd0cd848846c",
"url": "/mrstatic/js/intelligent-recommend.113a5ed9.chunk.js"
"revision": "defde01b2fc3373ead22",
"url": "/mrstatic/js/intelligent-recommend.a1555f40.chunk.js"
},
{
"revision": "9738e712c6b8739a76cf",
"revision": "5c47fd25f6209527d31e",
"url": "/mrstatic/css/main.83dfc3ca.chunk.css"
},
{
"revision": "9738e712c6b8739a76cf",
"url": "/mrstatic/js/main.048286c7.chunk.js"
"revision": "5c47fd25f6209527d31e",
"url": "/mrstatic/js/main.b4681835.chunk.js"
},
{
"revision": "d8b16fff744f09e2afe3",
......@@ -304,8 +304,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/python-class.e0fcffc3.chunk.js"
},
{
"revision": "b947971971cca3c7430e",
"url": "/mrstatic/js/runtime~main.0ec820f8.js"
"revision": "4d261e61bc5691ddd69e",
"url": "/mrstatic/js/runtime~main.8075c87c.js"
},
{
"revision": "ea7910a267eb005f288c",
......@@ -504,22 +504,22 @@ self.__precacheManifest = [
"url": "/mrstatic/js/66.8204e998.chunk.js"
},
{
"revision": "64fd0b167457064e12ff8a6afcd31720",
"url": "/mrstatic/media/iconfont.64fd0b16.eot"
},
{
"revision": "f2f4294d9a677f58f6f7c1a0ac84c448",
"url": "/mrstatic/media/iconfont.f2f4294d.woff"
},
{
"revision": "99b2454970e48c8bb00578cdca15b3d2",
"url": "/mrstatic/media/iconfont.99b24549.ttf"
},
{
"revision": "64fd0b167457064e12ff8a6afcd31720",
"url": "/mrstatic/media/iconfont.64fd0b16.eot"
},
{
"revision": "5bf7701b4b6358bd06d9c45c26a7d18f",
"url": "/mrstatic/media/iconfont.5bf7701b.svg"
},
{
"revision": "f2f4294d9a677f58f6f7c1a0ac84c448",
"url": "/mrstatic/media/iconfont.f2f4294d.woff"
},
{
"revision": "81a489ac63f2f2df5ab412e0782bd54c",
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
},
......@@ -532,10 +532,6 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae",
"url": "/mrstatic/media/redb_chai_bj@2x.8edaf2ff.png"
},
......@@ -544,7 +540,11 @@ self.__precacheManifest = [
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "51325d83293fbc211a2f59cbe5e2d2a4",
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "63366f5a9886fc90450cc5f93645c8f5",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.05eb56a96eb55d4cc556e1bc5e3951ed.js"
"/precache-manifest.5e0e26cb783ef3289d8ec3aa022a828a.js"
);
workbox.clientsClaim();
......
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