Commit 86bd0806 by zhanghaozhe

系统通知关闭

parent 7f15f9f4
...@@ -97,8 +97,8 @@ ...@@ -97,8 +97,8 @@
"purchased.css": "/mrstatic/css/purchased.dd7556e0.chunk.css", "purchased.css": "/mrstatic/css/purchased.dd7556e0.chunk.css",
"purchased.js": "/mrstatic/js/purchased.2bba0bda.chunk.js", "purchased.js": "/mrstatic/js/purchased.2bba0bda.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.2bba0bda.chunk.js.map", "purchased.js.map": "/mrstatic/js/purchased.2bba0bda.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.56ce0d49.js", "runtime~main.js": "/mrstatic/js/runtime~main.6c1137fb.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.56ce0d49.js.map", "runtime~main.js.map": "/mrstatic/js/runtime~main.6c1137fb.js.map",
"search.css": "/mrstatic/css/search.fab97849.chunk.css", "search.css": "/mrstatic/css/search.fab97849.chunk.css",
"search.js": "/mrstatic/js/search.941032bf.chunk.js", "search.js": "/mrstatic/js/search.941032bf.chunk.js",
"search.js.map": "/mrstatic/js/search.941032bf.chunk.js.map", "search.js.map": "/mrstatic/js/search.941032bf.chunk.js.map",
...@@ -109,8 +109,8 @@ ...@@ -109,8 +109,8 @@
"study.js": "/mrstatic/js/study.d3ec9cb4.chunk.js", "study.js": "/mrstatic/js/study.d3ec9cb4.chunk.js",
"study.js.map": "/mrstatic/js/study.d3ec9cb4.chunk.js.map", "study.js.map": "/mrstatic/js/study.d3ec9cb4.chunk.js.map",
"system-notices.css": "/mrstatic/css/system-notices.08df3d15.chunk.css", "system-notices.css": "/mrstatic/css/system-notices.08df3d15.chunk.css",
"system-notices.js": "/mrstatic/js/system-notices.209b342e.chunk.js", "system-notices.js": "/mrstatic/js/system-notices.7f350fe2.chunk.js",
"system-notices.js.map": "/mrstatic/js/system-notices.209b342e.chunk.js.map", "system-notices.js.map": "/mrstatic/js/system-notices.7f350fe2.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.49988cae.chunk.css", "togroup.css": "/mrstatic/css/togroup.49988cae.chunk.css",
"togroup.js": "/mrstatic/js/togroup.796a80ad.chunk.js", "togroup.js": "/mrstatic/js/togroup.796a80ad.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.796a80ad.chunk.js.map", "togroup.js.map": "/mrstatic/js/togroup.796a80ad.chunk.js.map",
...@@ -186,6 +186,6 @@ ...@@ -186,6 +186,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff", "mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png", "mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png", "mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.8f45042289135ee07164bfebf45c23ba.js": "/precache-manifest.8f45042289135ee07164bfebf45c23ba.js", "precache-manifest.5ec454ea1eeadea786900fc9512cbb55.js": "/precache-manifest.5ec454ea1eeadea786900fc9512cbb55.js",
"service-worker.js": "/service-worker.js" "service-worker.js": "/service-worker.js"
} }
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{1224:function(e,t,n){"use strict";n.r(t);var i=n(5),s=n(7),o=n(6),r=n(8),a=n(9),c=n(73),l=n(0),u=n.n(l),p=n(162),d=(n(257),n(1225),function(e){function t(){var e,n;Object(i.a)(this,t);for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return(n=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(a)))).count=0,n.state={showNotices:!0},n.initializeSwiper=function(){var e=Object(c.a)(Object(c.a)(n));n.swiper=new p.a(".sys-bullet-screen-swiper-container",{allowTouchMove:!1,direction:"vertical",loop:!0,on:{init:function(){Array.from(this.slides).forEach(function(t){t.querySelector("span").addEventListener("transitionend",e.transitionEnd)})},slideChangeTransitionEnd:function(){e.slideHorizontal(this)},transitionEnd:function(){var e=this.slides[this.previousIndex].querySelector("span");e.style.transition="unset",e.style.transform="translate3d(0,0,0)"}}})},n.slideHorizontal=function(e){var t=e.slides[e.activeIndex],i=t.querySelector("span"),s=i.offsetWidth,o=t.clientWidth;s>o?(i.style.transition="transform ".concat(s/131.25,"s linear"),setTimeout(function(){i.style.transform="translate3d(".concat(-(s-o)-10,"px,0,0)")},1e3)):setTimeout(function(){++n.count,e&&!e.destroyed&&e.slideNext()},3e3)},n.transitionEnd=function(){var e=3*n.props.bullets.length;++n.count===e?setTimeout(function(){n.sysNotice.style.height="0px"},2e3):setTimeout(function(){n.swiper&&n.swiper.slideNext()},1e3)},n.removeSystemNotices=function(e){e.persist(),e.target===n.sysNotice&&n.setState({showNotices:!1})},n}return Object(a.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.initializeSwiper()}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy()}},{key:"render",value:function(){var e=this,t=this.props.bullets;return this.state.showNotices&&u.a.createElement("div",{id:"system-bullet-screen",onTransitionEnd:this.removeSystemNotices,ref:function(t){return e.sysNotice=t}},u.a.createElement("img",{className:"avatar",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-notice-icon.png",alt:""}),u.a.createElement("div",{className:"sys-bullet-screen-swiper-container"},u.a.createElement("ul",{className:"swiper-wrapper"},t&&t.length?t.map(function(e,t){return u.a.createElement("li",{className:"swiper-slide",key:t},u.a.createElement("span",null,e))}):null)))}}]),t}(l.Component));t.default=d},1225:function(e,t,n){}}]);
//# sourceMappingURL=system-notices.209b342e.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/common/system-bullet-screen/index.js"],"names":["SystemBulletScreen","count","state","showNotices","initializeSwiper","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__","_this2","swiper","Swiper","allowTouchMove","direction","loop","on","init","Array","from","this","slides","forEach","item","querySelector","addEventListener","transitionEnd","slideChangeTransitionEnd","slideHorizontal","el","previousIndex","style","transition","transform","activeIndex","content","contentWidth","offsetWidth","wrapperWidth","clientWidth","concat","setTimeout","destroyed","slideNext","len","props","bullets","length","sysNotice","height","removeSystemNotices","e","persist","target","setState","destroy","_this3","react__WEBPACK_IMPORTED_MODULE_6___default","a","createElement","id","onTransitionEnd","ref","className","src","alt","map","index","key","Component"],"mappings":"2KAMMA,6NAGJC,MAAQ,IAGRC,MAAQ,CACNC,aAAa,KAWfC,iBAAmB,WACjB,IAAMC,EAAKC,OAAAC,EAAA,EAAAD,QAAAC,EAAA,EAAAD,CAAAE,IACXA,EAAKC,OAAS,IAAIC,IAAO,sCAAuC,CAC9DC,gBAAgB,EAChBC,UAAW,WACXC,MAAM,EACNC,GAAI,CACFC,KADE,WAEAC,MAAMC,KAAKC,KAAKC,QAAQC,QAAQ,SAAAC,GAC9BA,EAAKC,cAAc,QAAQC,iBAAiB,gBAAiBlB,EAAMmB,kBAGvEC,yBANE,WAOApB,EAAMqB,gBAAgBR,OAExBM,cATE,WAUA,IAAMG,EAAKT,KAAKC,OAAOD,KAAKU,eAAeN,cAAc,QACzDK,EAAGE,MAAMC,WAAa,QACtBH,EAAGE,MAAME,UAAY,4BAM7BL,gBAAkB,SAACjB,GACjB,IAAIkB,EAAKlB,EAAOU,OAAOV,EAAOuB,aAC5BC,EAAUN,EAAGL,cAAc,QAC3BY,EAAeD,EAAQE,YACvBC,EAAeT,EAAGU,YAIhBH,EAAeE,GACjBH,EAAQJ,MAAMC,WAAd,aAAAQ,OAAwCJ,EAH/B,OAGT,YACAK,WAAW,WACTN,EAAQJ,MAAME,UAAd,eAAAO,SAA2CJ,EAAeE,GAAgB,GAA1E,YACC,MAEHG,WAAW,aACP/B,EAAKP,MACNQ,IAAWA,EAAO+B,WAAc/B,EAAOgC,aACvC,QAIPjB,cAAgB,WAAM,IAGdkB,EAAuB,EAFXlC,EAAKmC,MAAhBC,QAEaC,SACdrC,EAAKP,QAAUyC,EACnBH,WAAW,WACT/B,EAAKsC,UAAUjB,MAAMkB,OAArB,OACC,KAEHR,WAAW,WACT/B,EAAKC,QAAUD,EAAKC,OAAOgC,aAC1B,QAIPO,oBAAsB,SAAAC,GACpBA,EAAEC,UACED,EAAEE,SAAW3C,EAAKsC,WACpBtC,EAAK4C,SAAS,CACZjD,aAAa,wFAvEjBe,KAAKd,kEAILc,KAAKT,QAAUS,KAAKT,OAAO4C,2CAwEpB,IAAAC,EAAApC,KAEL0B,EACE1B,KAAKyB,MADPC,QAEF,OACE1B,KAAKhB,MAAMC,aACXoD,EAAAC,EAAAC,cAAA,OAAKC,GAAG,uBAAuBC,gBAAiBzC,KAAK8B,oBAAqBY,IAAK,SAAAjC,GAAE,OAAI2B,EAAKR,UAAYnB,IACpG4B,EAAAC,EAAAC,cAAA,OAAKI,UAAU,SACVC,IAAI,mFAAmFC,IAAI,KAChGR,EAAAC,EAAAC,cAAA,OAAKI,UAAU,sCACbN,EAAAC,EAAAC,cAAA,MAAII,UAAU,kBAETjB,GAAWA,EAAQC,OAAUD,EAAQoB,IAAI,SAAC3C,EAAM4C,GAC7C,OACEV,EAAAC,EAAAC,cAAA,MAAII,UAAU,eAAeK,IAAKD,GAChCV,EAAAC,EAAAC,cAAA,YAAOpC,MAIX,eA1Ge8C,cAoHlBnE","file":"mrstatic/js/system-notices.209b342e.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport Swiper from 'swiper'\nimport 'swiper/dist/css/swiper.min.css'\nimport './system-bullet-screen.scss'\n\n\nclass SystemBulletScreen extends Component {\n\n swiper\n count = 0\n sysNotice\n\n state = {\n showNotices: true\n }\n\n componentDidMount() {\n this.initializeSwiper()\n }\n\n componentWillUnmount() {\n this.swiper && this.swiper.destroy()\n }\n\n initializeSwiper = () => {\n const _this = this\n this.swiper = new Swiper('.sys-bullet-screen-swiper-container', {\n allowTouchMove: false,\n direction: 'vertical',\n loop: true,\n on: {\n init() {\n Array.from(this.slides).forEach(item => {\n item.querySelector('span').addEventListener('transitionend', _this.transitionEnd)\n })\n },\n slideChangeTransitionEnd() {\n _this.slideHorizontal(this)\n },\n transitionEnd() {\n const el = this.slides[this.previousIndex].querySelector('span')\n el.style.transition = 'unset'\n el.style.transform = 'translate3d(0,0,0)'\n }\n }\n })\n }\n\n slideHorizontal = (swiper) => {\n let el = swiper.slides[swiper.activeIndex],\n content = el.querySelector('span'),\n contentWidth = content.offsetWidth,\n wrapperWidth = el.clientWidth\n\n const co = 131.25\n\n if (contentWidth > wrapperWidth) {\n content.style.transition = `transform ${contentWidth / co}s linear`\n setTimeout(() => {\n content.style.transform = `translate3d(${-(contentWidth - wrapperWidth) - 10}px,0,0)`\n }, 1000)\n } else {\n setTimeout(() => {\n ++this.count;\n (swiper && !swiper.destroyed) && swiper.slideNext()\n }, 3000)\n }\n }\n\n transitionEnd = () => {\n const {bullets} = this.props\n\n const len = bullets.length * 3\n if (++this.count === len) {\n setTimeout(() => {\n this.sysNotice.style.height = `0px`\n }, 2000)\n } else {\n setTimeout(() => {\n this.swiper && this.swiper.slideNext()\n }, 1000)\n }\n }\n\n removeSystemNotices = e => {\n e.persist()\n if (e.target === this.sysNotice) {\n this.setState({\n showNotices: false\n })\n }\n }\n\n render() {\n const {\n bullets\n } = this.props\n return (\n this.state.showNotices &&\n <div id=\"system-bullet-screen\" onTransitionEnd={this.removeSystemNotices} ref={el => this.sysNotice = el}>\n <img className='avatar'\n src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-notice-icon.png' alt=\"\"/>\n <div className='sys-bullet-screen-swiper-container'>\n <ul className=\"swiper-wrapper\">\n {\n (bullets && bullets.length) ? bullets.map((item, index) => {\n return (\n <li className=\"swiper-slide\" key={index}>\n <span>{item}</span>\n </li>\n )\n })\n : null\n }\n </ul>\n </div>\n </div>\n\n )\n }\n}\n\nexport default SystemBulletScreen\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{1224:function(e,t,n){"use strict";n.r(t);var s=n(5),i=n(7),o=n(6),r=n(8),a=n(9),c=n(73),l=n(0),u=n.n(l),p=n(162),d=(n(257),n(1225),function(e){function t(){var e,n;Object(s.a)(this,t);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return(n=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(a)))).count=0,n.state={showNotices:!0},n.initializeSwiper=function(){var e=Object(c.a)(Object(c.a)(n));n.swiper=new p.a(".sys-bullet-screen-swiper-container",{allowTouchMove:!1,direction:"vertical",loop:!0,on:{init:function(){Array.from(this.slides).forEach(function(t){t.querySelector("span").addEventListener("transitionend",e.transitionEnd)})},slideChangeTransitionEnd:function(){e.slideHorizontal(this)},transitionEnd:function(){var e=this.slides[this.previousIndex].querySelector("span");e.style.transition="unset",e.style.transform="translate3d(0,0,0)"}}})},n.slideHorizontal=function(e){var t=e.slides[e.activeIndex],s=t.querySelector("span"),i=s.offsetWidth,o=t.clientWidth;if(i>o)s.style.transition="transform ".concat(i/131.25,"s linear"),setTimeout(function(){s.style.transform="translate3d(".concat(-(i-o)-10,"px,0,0)")},1e3);else{var r=3*n.props.bullets.length;setTimeout(function(){++n.count===r&&(n.sysNotice.style.height="0px"),e&&!e.destroyed&&e.slideNext()},3e3)}},n.transitionEnd=function(){var e=3*n.props.bullets.length;++n.count===e?setTimeout(function(){n.sysNotice.style.height="0px"},2e3):setTimeout(function(){n.swiper&&n.swiper.slideNext()},1e3)},n.removeSystemNotices=function(e){e.persist(),e.target===n.sysNotice&&n.setState({showNotices:!1})},n}return Object(a.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.initializeSwiper()}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy()}},{key:"render",value:function(){var e=this,t=this.props.bullets;return this.state.showNotices&&u.a.createElement("div",{id:"system-bullet-screen",onTransitionEnd:this.removeSystemNotices,ref:function(t){return e.sysNotice=t}},u.a.createElement("img",{className:"avatar",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-notice-icon.png",alt:""}),u.a.createElement("div",{className:"sys-bullet-screen-swiper-container"},u.a.createElement("ul",{className:"swiper-wrapper"},t&&t.length?t.map(function(e,t){return u.a.createElement("li",{className:"swiper-slide",key:t},u.a.createElement("span",null,e))}):null)))}}]),t}(l.Component));t.default=d},1225:function(e,t,n){}}]);
//# sourceMappingURL=system-notices.7f350fe2.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/common/system-bullet-screen/index.js"],"names":["SystemBulletScreen","count","state","showNotices","initializeSwiper","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_5__","_this2","swiper","Swiper","allowTouchMove","direction","loop","on","init","Array","from","this","slides","forEach","item","querySelector","addEventListener","transitionEnd","slideChangeTransitionEnd","slideHorizontal","el","previousIndex","style","transition","transform","activeIndex","content","contentWidth","offsetWidth","wrapperWidth","clientWidth","concat","setTimeout","len","props","bullets","length","sysNotice","height","destroyed","slideNext","removeSystemNotices","e","persist","target","setState","destroy","_this3","react__WEBPACK_IMPORTED_MODULE_6___default","a","createElement","id","onTransitionEnd","ref","className","src","alt","map","index","key","Component"],"mappings":"2KAMMA,6NAGJC,MAAQ,IAGRC,MAAQ,CACNC,aAAa,KAWfC,iBAAmB,WACjB,IAAMC,EAAKC,OAAAC,EAAA,EAAAD,QAAAC,EAAA,EAAAD,CAAAE,IACXA,EAAKC,OAAS,IAAIC,IAAO,sCAAuC,CAC9DC,gBAAgB,EAChBC,UAAW,WACXC,MAAM,EACNC,GAAI,CACFC,KADE,WAEAC,MAAMC,KAAKC,KAAKC,QAAQC,QAAQ,SAAAC,GAC9BA,EAAKC,cAAc,QAAQC,iBAAiB,gBAAiBlB,EAAMmB,kBAGvEC,yBANE,WAOApB,EAAMqB,gBAAgBR,OAExBM,cATE,WAUA,IAAMG,EAAKT,KAAKC,OAAOD,KAAKU,eAAeN,cAAc,QACzDK,EAAGE,MAAMC,WAAa,QACtBH,EAAGE,MAAME,UAAY,4BAM7BL,gBAAkB,SAACjB,GACjB,IAAIkB,EAAKlB,EAAOU,OAAOV,EAAOuB,aAC5BC,EAAUN,EAAGL,cAAc,QAC3BY,EAAeD,EAAQE,YACvBC,EAAeT,EAAGU,YAIpB,GAAIH,EAAeE,EACjBH,EAAQJ,MAAMC,WAAd,aAAAQ,OAAwCJ,EAH/B,OAGT,YACAK,WAAW,WACTN,EAAQJ,MAAME,UAAd,eAAAO,SAA2CJ,EAAeE,GAAgB,GAA1E,YACC,SACE,KAECI,EAAuB,EADXhC,EAAKiC,MAAhBC,QACaC,OACpBJ,WAAW,aACH/B,EAAKP,QAAUuC,IACnBhC,EAAKoC,UAAUf,MAAMgB,OAArB,OAEDpC,IAAWA,EAAOqC,WAAcrC,EAAOsC,aACvC,SAIPvB,cAAgB,WAAM,IAGdgB,EAAuB,EAFXhC,EAAKiC,MAAhBC,QAEaC,SACdnC,EAAKP,QAAUuC,EACnBD,WAAW,WACT/B,EAAKoC,UAAUf,MAAMgB,OAArB,OACC,KAEHN,WAAW,WACT/B,EAAKC,QAAUD,EAAKC,OAAOsC,aAC1B,QAIPC,oBAAsB,SAAAC,GACpBA,EAAEC,UACED,EAAEE,SAAW3C,EAAKoC,WACpBpC,EAAK4C,SAAS,CACZjD,aAAa,wFA3EjBe,KAAKd,kEAILc,KAAKT,QAAUS,KAAKT,OAAO4C,2CA4EpB,IAAAC,EAAApC,KAELwB,EACExB,KAAKuB,MADPC,QAEF,OACExB,KAAKhB,MAAMC,aACXoD,EAAAC,EAAAC,cAAA,OAAKC,GAAG,uBAAuBC,gBAAiBzC,KAAK8B,oBAAqBY,IAAK,SAAAjC,GAAE,OAAI2B,EAAKV,UAAYjB,IACpG4B,EAAAC,EAAAC,cAAA,OAAKI,UAAU,SACVC,IAAI,mFAAmFC,IAAI,KAChGR,EAAAC,EAAAC,cAAA,OAAKI,UAAU,sCACbN,EAAAC,EAAAC,cAAA,MAAII,UAAU,kBAETnB,GAAWA,EAAQC,OAAUD,EAAQsB,IAAI,SAAC3C,EAAM4C,GAC7C,OACEV,EAAAC,EAAAC,cAAA,MAAII,UAAU,eAAeK,IAAKD,GAChCV,EAAAC,EAAAC,cAAA,YAAOpC,MAIX,eA9Ge8C,cAwHlBnE","file":"mrstatic/js/system-notices.7f350fe2.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport Swiper from 'swiper'\nimport 'swiper/dist/css/swiper.min.css'\nimport './system-bullet-screen.scss'\n\n\nclass SystemBulletScreen extends Component {\n\n swiper\n count = 0\n sysNotice\n\n state = {\n showNotices: true\n }\n\n componentDidMount() {\n this.initializeSwiper()\n }\n\n componentWillUnmount() {\n this.swiper && this.swiper.destroy()\n }\n\n initializeSwiper = () => {\n const _this = this\n this.swiper = new Swiper('.sys-bullet-screen-swiper-container', {\n allowTouchMove: false,\n direction: 'vertical',\n loop: true,\n on: {\n init() {\n Array.from(this.slides).forEach(item => {\n item.querySelector('span').addEventListener('transitionend', _this.transitionEnd)\n })\n },\n slideChangeTransitionEnd() {\n _this.slideHorizontal(this)\n },\n transitionEnd() {\n const el = this.slides[this.previousIndex].querySelector('span')\n el.style.transition = 'unset'\n el.style.transform = 'translate3d(0,0,0)'\n }\n }\n })\n }\n\n slideHorizontal = (swiper) => {\n let el = swiper.slides[swiper.activeIndex],\n content = el.querySelector('span'),\n contentWidth = content.offsetWidth,\n wrapperWidth = el.clientWidth\n\n const co = 131.25\n\n if (contentWidth > wrapperWidth) {\n content.style.transition = `transform ${contentWidth / co}s linear`\n setTimeout(() => {\n content.style.transform = `translate3d(${-(contentWidth - wrapperWidth) - 10}px,0,0)`\n }, 1000)\n } else {\n const {bullets} = this.props\n const len = bullets.length * 3\n setTimeout(() => {\n if (++this.count === len) {\n this.sysNotice.style.height = `0px`\n }\n (swiper && !swiper.destroyed) && swiper.slideNext()\n }, 3000)\n }\n }\n\n transitionEnd = () => {\n const {bullets} = this.props\n\n const len = bullets.length * 3\n if (++this.count === len) {\n setTimeout(() => {\n this.sysNotice.style.height = `0px`\n }, 2000)\n } else {\n setTimeout(() => {\n this.swiper && this.swiper.slideNext()\n }, 1000)\n }\n }\n\n removeSystemNotices = e => {\n e.persist()\n if (e.target === this.sysNotice) {\n this.setState({\n showNotices: false\n })\n }\n }\n\n render() {\n const {\n bullets\n } = this.props\n return (\n this.state.showNotices &&\n <div id=\"system-bullet-screen\" onTransitionEnd={this.removeSystemNotices} ref={el => this.sysNotice = el}>\n <img className='avatar'\n src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/system-notice-icon.png' alt=\"\"/>\n <div className='sys-bullet-screen-swiper-container'>\n <ul className=\"swiper-wrapper\">\n {\n (bullets && bullets.length) ? bullets.map((item, index) => {\n return (\n <li className=\"swiper-slide\" key={index}>\n <span>{item}</span>\n </li>\n )\n })\n : null\n }\n </ul>\n </div>\n </div>\n\n )\n }\n}\n\nexport default SystemBulletScreen\n"],"sourceRoot":""}
\ No newline at end of file
...@@ -184,8 +184,8 @@ self.__precacheManifest = [ ...@@ -184,8 +184,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/coupons.d3617beb.chunk.js" "url": "/mrstatic/js/coupons.d3617beb.chunk.js"
}, },
{ {
"revision": "d7c780f7315be9e4ae22", "revision": "7c91383a63f722caa9bf",
"url": "/mrstatic/js/system-notices.209b342e.chunk.js" "url": "/mrstatic/js/system-notices.7f350fe2.chunk.js"
}, },
{ {
"revision": "f6016d60f7a491b517db", "revision": "f6016d60f7a491b517db",
...@@ -224,8 +224,8 @@ self.__precacheManifest = [ ...@@ -224,8 +224,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.3113d077.chunk.js" "url": "/mrstatic/js/myorders.3113d077.chunk.js"
}, },
{ {
"revision": "ee0f13f66b753da4f3d4", "revision": "909d3f8c5ea8e6d0aecf",
"url": "/mrstatic/js/runtime~main.56ce0d49.js" "url": "/mrstatic/js/runtime~main.6c1137fb.js"
}, },
{ {
"revision": "d43fd43645b11e45ca61", "revision": "d43fd43645b11e45ca61",
...@@ -272,7 +272,7 @@ self.__precacheManifest = [ ...@@ -272,7 +272,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/shareposter.f09a5959.chunk.css" "url": "/mrstatic/css/shareposter.f09a5959.chunk.css"
}, },
{ {
"revision": "d7c780f7315be9e4ae22", "revision": "7c91383a63f722caa9bf",
"url": "/mrstatic/css/system-notices.08df3d15.chunk.css" "url": "/mrstatic/css/system-notices.08df3d15.chunk.css"
}, },
{ {
...@@ -412,7 +412,7 @@ self.__precacheManifest = [ ...@@ -412,7 +412,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.23ba02f0.chunk.css" "url": "/mrstatic/css/2.23ba02f0.chunk.css"
}, },
{ {
"revision": "5ed664f198ad6e7ff21f45b02c39e44c", "revision": "8a3f29bedecd73111cd0740defd2f7a0",
"url": "/index.html" "url": "/index.html"
} }
]; ];
\ No newline at end of file
...@@ -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.8f45042289135ee07164bfebf45c23ba.js" "/precache-manifest.5ec454ea1eeadea786900fc9512cbb55.js"
); );
workbox.clientsClaim(); 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