Commit 5c407ea6 by zhanghaozhe

搜索结果免费课程

parent 31d8686f
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
"Preferential.js": "/mrstaticjs/Preferential.7f76bc52.chunk.js", "Preferential.js": "/mrstaticjs/Preferential.7f76bc52.chunk.js",
"Preferential.js.map": "/mrstaticjs/Preferential.7f76bc52.chunk.js.map", "Preferential.js.map": "/mrstaticjs/Preferential.7f76bc52.chunk.js.map",
"SearchResult.css": "/mrstaticcss/SearchResult.8f21ce46.chunk.css", "SearchResult.css": "/mrstaticcss/SearchResult.8f21ce46.chunk.css",
"SearchResult.js": "/mrstaticjs/SearchResult.b8016c54.chunk.js", "SearchResult.js": "/mrstaticjs/SearchResult.4680773a.chunk.js",
"SearchResult.js.map": "/mrstaticjs/SearchResult.b8016c54.chunk.js.map", "SearchResult.js.map": "/mrstaticjs/SearchResult.4680773a.chunk.js.map",
"ShareCourse.css": "/mrstaticcss/ShareCourse.5c67614d.chunk.css", "ShareCourse.css": "/mrstaticcss/ShareCourse.5c67614d.chunk.css",
"ShareCourse.js": "/mrstaticjs/ShareCourse.32a1219b.chunk.js", "ShareCourse.js": "/mrstaticjs/ShareCourse.32a1219b.chunk.js",
"ShareCourse.js.map": "/mrstaticjs/ShareCourse.32a1219b.chunk.js.map", "ShareCourse.js.map": "/mrstaticjs/ShareCourse.32a1219b.chunk.js.map",
...@@ -89,8 +89,8 @@ ...@@ -89,8 +89,8 @@
"intelligent-recommend.js": "/mrstaticjs/intelligent-recommend.0ed0b741.chunk.js", "intelligent-recommend.js": "/mrstaticjs/intelligent-recommend.0ed0b741.chunk.js",
"intelligent-recommend.js.map": "/mrstaticjs/intelligent-recommend.0ed0b741.chunk.js.map", "intelligent-recommend.js.map": "/mrstaticjs/intelligent-recommend.0ed0b741.chunk.js.map",
"main.css": "/mrstaticcss/main.595f7d30.chunk.css", "main.css": "/mrstaticcss/main.595f7d30.chunk.css",
"main.js": "/mrstaticjs/main.97ce683d.chunk.js", "main.js": "/mrstaticjs/main.570a81ce.chunk.js",
"main.js.map": "/mrstaticjs/main.97ce683d.chunk.js.map", "main.js.map": "/mrstaticjs/main.570a81ce.chunk.js.map",
"ml.css": "/mrstaticcss/ml.2a883c76.chunk.css", "ml.css": "/mrstaticcss/ml.2a883c76.chunk.css",
"ml.js": "/mrstaticjs/ml.3c0af0d9.chunk.js", "ml.js": "/mrstaticjs/ml.3c0af0d9.chunk.js",
"ml.js.map": "/mrstaticjs/ml.3c0af0d9.chunk.js.map", "ml.js.map": "/mrstaticjs/ml.3c0af0d9.chunk.js.map",
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
"python-class.css": "/mrstaticcss/python-class.5dfc0e51.chunk.css", "python-class.css": "/mrstaticcss/python-class.5dfc0e51.chunk.css",
"python-class.js": "/mrstaticjs/python-class.61971222.chunk.js", "python-class.js": "/mrstaticjs/python-class.61971222.chunk.js",
"python-class.js.map": "/mrstaticjs/python-class.61971222.chunk.js.map", "python-class.js.map": "/mrstaticjs/python-class.61971222.chunk.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.5980b828.js", "runtime-main.js": "/mrstaticjs/runtime-main.7e080a9c.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.5980b828.js.map", "runtime-main.js.map": "/mrstaticjs/runtime-main.7e080a9c.js.map",
"search.css": "/mrstaticcss/search.672ddb1a.chunk.css", "search.css": "/mrstaticcss/search.672ddb1a.chunk.css",
"search.js": "/mrstaticjs/search.8010c5a4.chunk.js", "search.js": "/mrstaticjs/search.8010c5a4.chunk.js",
"search.js.map": "/mrstaticjs/search.8010c5a4.chunk.js.map", "search.js.map": "/mrstaticjs/search.8010c5a4.chunk.js.map",
...@@ -274,14 +274,14 @@ ...@@ -274,14 +274,14 @@
"mrstaticmedia/iconfont.css": "/mrstaticmedia/iconfont.d9c813a4.svg", "mrstaticmedia/iconfont.css": "/mrstaticmedia/iconfont.d9c813a4.svg",
"mrstaticmedia/kanjia_cg_icon.png": "/mrstaticmedia/kanjia_cg_icon.81a489ac.png", "mrstaticmedia/kanjia_cg_icon.png": "/mrstaticmedia/kanjia_cg_icon.81a489ac.png",
"mrstaticmedia/video.scss": "/mrstaticmedia/progress-share-bg.80011994.png", "mrstaticmedia/video.scss": "/mrstaticmedia/progress-share-bg.80011994.png",
"precache-manifest.4df9ad0dff9c4859c892da0f25e2ee71.js": "/precache-manifest.4df9ad0dff9c4859c892da0f25e2ee71.js", "precache-manifest.c7a1d7ff5657706c8e3fa3fb970c14f0.js": "/precache-manifest.c7a1d7ff5657706c8e3fa3fb970c14f0.js",
"service-worker.js": "/service-worker.js" "service-worker.js": "/service-worker.js"
}, },
"entrypoints": [ "entrypoints": [
"mrstaticjs/runtime-main.5980b828.js", "mrstaticjs/runtime-main.7e080a9c.js",
"mrstaticcss/51.d1dc4ff0.chunk.css", "mrstaticcss/51.d1dc4ff0.chunk.css",
"mrstaticjs/51.579d8fca.chunk.js", "mrstaticjs/51.579d8fca.chunk.js",
"mrstaticcss/main.595f7d30.chunk.css", "mrstaticcss/main.595f7d30.chunk.css",
"mrstaticjs/main.97ce683d.chunk.js" "mrstaticjs/main.570a81ce.chunk.js"
] ]
} }
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[18],{1200:function(e,t,a){"use strict";a.r(t);var n,r=a(5),s=a(6),o=a(8),c=a(7),i=a(0),l=a.n(i),u=a(568),h=a(143),m=a(1),d=(a(966),a(40),a(10)),p=a.n(d),v=a(20),f=(a(967),a(24)),S=a(28),E=Object(v.b)()(n=function(e){Object(o.a)(a,e);var t=Object(c.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return(e=t.call.apply(t,[this].concat(s))).state={courses:[]},e.toCourseDetail=function(t){e.props.history.push("/detail?id=".concat(t))},e}return Object(s.a)(a,[{key:"componentDidMount",value:function(){var e=this;m.f.get("".concat(API["search-api"],"/search_hot_word")).then((function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):p.a.info(t.data.msg)}))}},{key:"render",value:function(){var e=this,t=this.state.courses;return l.a.createElement("div",{className:"recommendation"},l.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),l.a.createElement("div",{className:"courses"},t.length>0&&t.map((function(t){var a=l.a.createElement("div",{className:"bottom"},l.a.createElement("span",{className:"price"},t.price1),l.a.createElement("span",{className:"old-price"},t.price0));return l.a.createElement(f.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})}))))}}]),a}(i.Component))||n,A=Object(S.g)(E),g=a(968),y=a.n(g),X=l.a.forwardRef((function(e,t){return l.a.createElement(u.a,Object.assign({},e,{forwardedRef:t}))})),C=function(e){var t=e.item;return l.a.createElement("div",{className:"bottom"},l.a.createElement("span",{className:"price"},"\xa5",t.price1),l.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},G=function(e){Object(o.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(r.a)(this,n);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return(e=t.call.apply(t,[this].concat(s))).prevScrollY=0,e.searchHead=l.a.createRef(),e.swipeUp="up",e.swipeDown="down",e.state={courseList:[],value:decodeURIComponent(Object(m.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:e.swipeUp,isHide:!1,basicTop:0,resultCount:0},e.getCourses=function(t){m.f.get("".concat(API["search-api"],"/search/").concat(t,"?type=v2-course&page=1")).then((function(t){var a=t.data;0===a.errno&&e.setState({courseList:a.data.info.search_data.course,resultCount:a.data.info.search_data.num})}))},e.handleClick=function(t){e.props.history.push("/detail?id=".concat(t))},e.handleSearch=function(){e.state.value&&e.getCourses(e.state.value)},e.handleChange=function(t){e.setState({value:t})},e.toCourseDetail=function(t){var a=t.course_id,n=t.v_course_id;e.props.history.push(0===a?"/play/video?id=".concat(n):"/detail?id=".concat(a))},e.handleScroll=y()((function(){var t=window.scrollY<0?0:window.scrollY,a=e.searchHead.current.offsetHeight;t>e.prevScrollY&&e.setState({searchHeadStyle:{top:"".concat(-a,"px")}}),t<e.prevScrollY&&e.setState({searchHeadStyle:{top:0}}),e.prevScrollY=t}),0),e}return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.c)("word")),document.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.state,n=t.courseList,r=t.isHide,s=t.resultCount;return l.a.createElement("div",{className:"search-result"},l.a.createElement(X,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead,isHide:r}),s>0&&l.a.createElement("div",{className:"result-count"},"\u5171",s,"\u4e2a\u7ed3\u679c"),n&&n.length>0?l.a.createElement("ul",null,n.map((function(t,a){var n,r,s=l.a.createElement("div",{className:"info"},l.a.createElement("p",{className:"title text-overflow-2",dangerouslySetInnerHTML:{__html:(null===(n=t.highlight)||void 0===n||null===(r=n.course_title)||void 0===r?void 0:r.length)>0?t.highlight.course_title[0]:t.course_title}}),l.a.createElement("p",{className:"des text-overflow-1"},t.simpledescription),l.a.createElement(C,{item:t})),o=t.bargain_num||t.groupon_num?l.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return l.a.createElement(h.a,{img:t.image_name,toDetail:e.toCourseDetail,key:a,info:s,id:t.course_id,course:t,status:o,needCourseInfo:!0})}))):l.a.createElement("div",{className:"empty"},l.a.createElement("img",{src:a(978),alt:""}),"\u62b1\u6b49\uff0c\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9\uff01"),l.a.createElement(A,null))}}]),n}(i.PureComponent);t.default=G},568:function(e,t,a){"use strict";a(467);var n=a(469),r=a.n(n),s=a(5),o=a(6),c=a(8),i=a(7),l=a(0),u=a.n(l),h=a(28),m=a(17),d=a.n(m),p=(a(569),function(e){Object(c.a)(a,e);var t=Object(i.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={isFocus:!1},e.returnPage=function(){e.props.history.go(-1)},e.search=function(){e.storeKeyword(),e.props.handleSearch()},e.storeKeyword=function(){var t=e.props,a=t.searchHistory,n=void 0===a?[]:a,r=t.value,s=n.some((function(e){return e===r}))?n:n.concat([r]);localStorage.setItem("searchHistory",JSON.stringify(s))},e.changeFontColor=function(t){e.setState({isFocus:t})},e}return Object(o.a)(a,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,a=d()("submit-btn",{"submit-btn--active":t});return u.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},u.a.createElement("div",{className:"left",onClick:this.returnPage},u.a.createElement("i",{className:"iconfont iconiconfront-68"})),u.a.createElement("div",{className:"center"},u.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),u.a.createElement("div",{className:"right right-btn",onClick:this.search},u.a.createElement("div",{className:a},"\u641c\u7d22")))}}]),a}(l.PureComponent));t.a=Object(h.g)(p)},569:function(e,t,a){},966:function(e,t,a){},967:function(e,t,a){},978:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACiCAMAAAAz6XKQAAAAilBMVEUAAABSXWVSXGVSXGVjY2ZSW2VSXmVSXWZSXGRUXWRSW2RSXGVSW2VSXGVSXGVSXGVSXGVS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PuEiAoGG32MvAUCtbSJhbZz2RYiJjVXmm/v3pcowlo9ZWyIrHiLEqKdjCSkpRxGxCloS0fiIEJmvarGlRxQqm3FlPZ7QA4aI1a/DMOMoQnjZbjyuJl9WLROJaw1btgibMWIdE+nLOC6eSIj3Jvvu9ogZlUyCzorAGssmnRXxrIoJFxH+/zYSRDVMZM7BDkoLFZjDsom1fxBJI+CI2kZN7FBnmTjF7IMbIbbQJRAwTHY6pR5csVuZcu6tZybjPvKvWE1fFh5++ylZjI9GxszVG+eCu56iSBUUSS1SJUMrzi90JD5s6TesYyxhHS+oQ/18wIQGzPEBahF7r0YPoAn4iDkQGr4YaQw/hNFQA4gEX4qdQENMozfrVZitXbiQpHS+XdbrCG9Y6zV95tYNoXN84o0hdJkRXkmg0/h4IYaOM7n+R2vXCdK+PlczaIN/4m4pafQKiaYAAAAASUVORK5CYII="}}]);
//# sourceMappingURL=SearchResult.4680773a.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[18],{1200:function(e,t,a){"use strict";a.r(t);var n,r=a(5),s=a(6),c=a(8),o=a(7),i=a(0),l=a.n(i),u=a(568),h=a(143),m=a(1),d=(a(966),a(40),a(10)),p=a.n(d),v=a(20),S=(a(967),a(24)),f=a(28),E=Object(v.b)()(n=function(e){Object(c.a)(a,e);var t=Object(o.a)(a);function a(){var e;Object(r.a)(this,a);for(var n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];return(e=t.call.apply(t,[this].concat(s))).state={courses:[]},e.toCourseDetail=function(t){e.props.history.push("/detail?id=".concat(t))},e}return Object(s.a)(a,[{key:"componentDidMount",value:function(){var e=this;m.f.get("".concat(API["search-api"],"/search_hot_word")).then((function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):p.a.info(t.data.msg)}))}},{key:"render",value:function(){var e=this,t=this.state.courses;return l.a.createElement("div",{className:"recommendation"},l.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),l.a.createElement("div",{className:"courses"},t.length>0&&t.map((function(t){var a=l.a.createElement("div",{className:"bottom"},l.a.createElement("span",{className:"price"},t.price1),l.a.createElement("span",{className:"old-price"},t.price0));return l.a.createElement(S.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})}))))}}]),a}(i.Component))||n,A=Object(f.g)(E),g=a(968),y=a.n(g),X=l.a.forwardRef((function(e,t){return l.a.createElement(u.a,Object.assign({},e,{forwardedRef:t}))})),C=function(e){var t=e.item;return l.a.createElement("div",{className:"bottom"},l.a.createElement("span",{className:"price"},"\xa5",t.price1),l.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},G=function(e){Object(c.a)(n,e);var t=Object(o.a)(n);function n(){var e;Object(r.a)(this,n);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(e=t.call.apply(t,[this].concat(s))).prevScrollY=0,e.searchHead=l.a.createRef(),e.swipeUp="up",e.swipeDown="down",e.state={courseList:[],value:decodeURIComponent(Object(m.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:e.swipeUp,isHide:!1,basicTop:0,resultCount:0},e.getCourses=function(t){m.f.get("".concat(API["search-api"],"/search/").concat(t,"?type=v2-course&page=1")).then((function(t){var a=t.data;0===a.errno&&e.setState({courseList:a.data.info.search_data.course,resultCount:a.data.info.search_data.num})}))},e.handleClick=function(t){e.props.history.push("/detail?id=".concat(t))},e.handleSearch=function(){e.state.value&&e.getCourses(e.state.value)},e.handleChange=function(t){e.setState({value:t})},e.toCourseDetail=function(t){e.props.history.push("/detail?id=".concat(t))},e.handleScroll=y()((function(){var t=window.scrollY<0?0:window.scrollY,a=e.searchHead.current.offsetHeight;t>e.prevScrollY&&e.setState({searchHeadStyle:{top:"".concat(-a,"px")}}),t<e.prevScrollY&&e.setState({searchHeadStyle:{top:0}}),e.prevScrollY=t}),0),e}return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.c)("word")),document.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.state,n=t.courseList,r=t.isHide,s=t.resultCount;return l.a.createElement("div",{className:"search-result"},l.a.createElement(X,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead,isHide:r}),s>0&&l.a.createElement("div",{className:"result-count"},"\u5171",s,"\u4e2a\u7ed3\u679c"),n&&n.length>0?l.a.createElement("ul",null,n.map((function(t,a){var n,r,s=l.a.createElement("div",{className:"info"},l.a.createElement("p",{className:"title text-overflow-2",dangerouslySetInnerHTML:{__html:(null===(n=t.highlight)||void 0===n||null===(r=n.course_title)||void 0===r?void 0:r.length)>0?t.highlight.course_title[0]:t.course_title}}),l.a.createElement("p",{className:"des text-overflow-1"},t.simpledescription),l.a.createElement(C,{item:t})),c=t.bargain_num||t.groupon_num?l.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return l.a.createElement(h.a,{img:t.image_name,toDetail:e.toCourseDetail,key:a,info:s,id:t.course_id,status:c})}))):l.a.createElement("div",{className:"empty"},l.a.createElement("img",{src:a(978),alt:""}),"\u62b1\u6b49\uff0c\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9\uff01"),l.a.createElement(A,null))}}]),n}(i.PureComponent);t.default=G},568:function(e,t,a){"use strict";a(467);var n=a(469),r=a.n(n),s=a(5),c=a(6),o=a(8),i=a(7),l=a(0),u=a.n(l),h=a(28),m=a(17),d=a.n(m),p=(a(569),function(e){Object(o.a)(a,e);var t=Object(i.a)(a);function a(){var e;Object(s.a)(this,a);for(var n=arguments.length,r=new Array(n),c=0;c<n;c++)r[c]=arguments[c];return(e=t.call.apply(t,[this].concat(r))).state={isFocus:!1},e.returnPage=function(){e.props.history.go(-1)},e.search=function(){e.storeKeyword(),e.props.handleSearch()},e.storeKeyword=function(){var t=e.props,a=t.searchHistory,n=void 0===a?[]:a,r=t.value,s=n.some((function(e){return e===r}))?n:n.concat([r]);localStorage.setItem("searchHistory",JSON.stringify(s))},e.changeFontColor=function(t){e.setState({isFocus:t})},e}return Object(c.a)(a,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,a=d()("submit-btn",{"submit-btn--active":t});return u.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},u.a.createElement("div",{className:"left",onClick:this.returnPage},u.a.createElement("i",{className:"iconfont iconiconfront-68"})),u.a.createElement("div",{className:"center"},u.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),u.a.createElement("div",{className:"right right-btn",onClick:this.search},u.a.createElement("div",{className:a},"\u641c\u7d22")))}}]),a}(l.PureComponent));t.a=Object(h.g)(p)},569:function(e,t,a){},966:function(e,t,a){},967:function(e,t,a){},978:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACiCAMAAAAz6XKQAAAAilBMVEUAAABSXWVSXGVSXGVjY2ZSW2VSXmVSXWZSXGRUXWRSW2RSXGVSW2VSXGVSXGVSXGVSXGVSXGVTW2VSXGVWXGhSXGVSXGVSXGVSXGVRWmVSXGVSXGVTXWVSXGVRW2VSXGVSXGVSXGVSXGVSXGVTXmdSXGVSXGVRWmRSW2RTW2RSXGVSXGVSXGRSXGVlV1S0AAAALXRSTlMAvqHhBbBE48whVJWi1MCLtfN9qwrvxnRrEUw+K+kx+d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zYSRDVMZM7BDkoLFZjDsom1fxBJI+CI2kZN7FBnmTjF7IMbIbbQJRAwTHY6pR5csVuZcu6tZybjPvKvWE1fFh5++ylZjI9GxszVG+eCu56iSBUUSS1SJUMrzi90JD5s6TesYyxhHS+oQ/18wIQGzPEBahF7r0YPoAn4iDkQGr4YaQw/hNFQA4gEX4qdQENMozfrVZitXbiQpHS+XdbrCG9Y6zV95tYNoXN84o0hdJkRXkmg0/h4IYaOM7n+R2vXCdK+PlczaIN/4m4pafQKiaYAAAAASUVORK5CYII="}}]);
//# sourceMappingURL=SearchResult.b8016c54.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.
self.__precacheManifest = (self.__precacheManifest || []).concat([ self.__precacheManifest = (self.__precacheManifest || []).concat([
{ {
"revision": "24ef4b3c11d658085d04e750d5e949a1", "revision": "3ba552039ed9c4a417299e37520455f4",
"url": "/index.html" "url": "/index.html"
}, },
{ {
...@@ -128,7 +128,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -128,7 +128,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/Preferential.a72e04ed.chunk.css" "url": "/mrstaticcss/Preferential.a72e04ed.chunk.css"
}, },
{ {
"revision": "b6bc5a28acf2e4d4696a", "revision": "a1441b45efe4d4fdc6b7",
"url": "/mrstaticcss/SearchResult.8f21ce46.chunk.css" "url": "/mrstaticcss/SearchResult.8f21ce46.chunk.css"
}, },
{ {
...@@ -180,7 +180,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -180,7 +180,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/intelligent-recommend.1b4cd0a8.chunk.css" "url": "/mrstaticcss/intelligent-recommend.1b4cd0a8.chunk.css"
}, },
{ {
"revision": "4d5a686e97894e9b9684", "revision": "bc298f4b60167f5b790d",
"url": "/mrstaticcss/main.595f7d30.chunk.css" "url": "/mrstaticcss/main.595f7d30.chunk.css"
}, },
{ {
...@@ -424,8 +424,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -424,8 +424,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/Preferential.7f76bc52.chunk.js" "url": "/mrstaticjs/Preferential.7f76bc52.chunk.js"
}, },
{ {
"revision": "b6bc5a28acf2e4d4696a", "revision": "a1441b45efe4d4fdc6b7",
"url": "/mrstaticjs/SearchResult.b8016c54.chunk.js" "url": "/mrstaticjs/SearchResult.4680773a.chunk.js"
}, },
{ {
"revision": "0e69a4aa5bf6c5da923d", "revision": "0e69a4aa5bf6c5da923d",
...@@ -476,8 +476,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -476,8 +476,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/intelligent-recommend.0ed0b741.chunk.js" "url": "/mrstaticjs/intelligent-recommend.0ed0b741.chunk.js"
}, },
{ {
"revision": "4d5a686e97894e9b9684", "revision": "bc298f4b60167f5b790d",
"url": "/mrstaticjs/main.97ce683d.chunk.js" "url": "/mrstaticjs/main.570a81ce.chunk.js"
}, },
{ {
"revision": "f9caa22381e7eee6c3a5", "revision": "f9caa22381e7eee6c3a5",
...@@ -512,8 +512,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -512,8 +512,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/python-class.61971222.chunk.js" "url": "/mrstaticjs/python-class.61971222.chunk.js"
}, },
{ {
"revision": "68c7fede84a1b3e6283c", "revision": "2badda38774bf85ed17c",
"url": "/mrstaticjs/runtime-main.5980b828.js" "url": "/mrstaticjs/runtime-main.7e080a9c.js"
}, },
{ {
"revision": "b9df24aa3bbddaedf7ca", "revision": "b9df24aa3bbddaedf7ca",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.4df9ad0dff9c4859c892da0f25e2ee71.js" "/precache-manifest.c7a1d7ff5657706c8e3fa3fb970c14f0.js"
); );
self.addEventListener('message', (event) => { self.addEventListener('message', (event) => {
......
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