Commit 5734ad54 by xuzhenghua

样式问题

parents 85afb3f0 2f0c7dcd
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/mrstatic/css/43.2c1f7d7c.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.fe158352.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/api.js"></script><script>!function(i){function e(e){for(var r,t,n=e[0],a=e[1],o=e[2],d=0,c=[];d<n.length;d++)t=n[d],l[t]&&c.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i[r]=a[r]);for(p&&p(e);c.length;)c.shift()();return f.push.apply(f,o||[]),s()}function s(){for(var e,r=0;r<f.length;r++){for(var t=f[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(f.splice(r--,1),e=b(b.s=t[0]))}return e}var t={},u={36:0},l={36:0},f=[];function b(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,b),r.l=!0,r.exports}b.e=function(f){var e=[];u[f]?e.push(u[f]):0!==u[f]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,14: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,28:1,30:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[f]&&e.push(u[f]=new Promise(function(e,n){for(var r="mrstatic/css/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"video"}[f]||f)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"966a7982",3:"1133c967",4:"ac8fad1f",5:"08739942",6:"2a913483",7:"127d35ae",8:"400393b7",9:"fed92c83",10:"1bd3da48",11:"17af9370",12:"08739942",13:"31d6cfe0",14:"83a999aa",15:"31d6cfe0",16:"68a25070",17:"ccebc534",18:"6d7d1b77",19:"6e885738",20:"887eb690",21:"affb05d7",22:"32a9cccc",23:"5dc65c0d",24:"39fb77c8",25:"0ce3fd3d",26:"2e5f43c4",27:"e8363b32",28:"55b938da",30:"841d0cfb",31:"6bf64b45",32:"24691c8a",33:"ce85cb83",34:"7558403e",35:"11408886",37:"efa1dd44",38:"cde549fc",39:"62b8863b",40:"4fbf61d8",41:"ffd8be6c",42:"b3755c1b",44:"976b2058",45:"51412fcd",46:"31d6cfe0",47:"e292ab6b",48:"37fb0c23",49:"56b04545",50:"ce17075b",51:"bacf914e"}[f]+".chunk.css",a=b.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var d=(i=t[o]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(d===r||d===a))return e()}var c=document.getElementsByTagName("style");for(o=0;o<c.length;o++){var i;if((d=(i=c[o]).getAttribute("data-href"))===r||d===a)return e()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=e,s.onerror=function(e){var r=e&&e.target&&e.target.src||a,t=new Error("Loading CSS chunk "+f+" failed.\n("+r+")");t.request=r,delete u[f],s.parentNode.removeChild(s),n(t)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)}).then(function(){u[f]=0}));var t=l[f];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[f]=[e,r]});e.push(t[2]=r);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.src=b.p+"mrstatic/js/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"video"}[f]||f)+"."+{0:"6a735dfd",1:"5e11f90b",2:"7b12721b",3:"40b98937",4:"686386e3",5:"3453dffe",6:"c0df7d9c",7:"f661a062",8:"801f4f4a",9:"171e7f2f",10:"89643eb1",11:"19db90d3",12:"35bdf09d",13:"c2056035",14:"ea8efcd5",15:"3adbd0d8",16:"065f0d9d",17:"98f671dc",18:"5fbe4d21",19:"7daf188b",20:"2ca42752",21:"198c6595",22:"f2fc5b59",23:"4c950270",24:"12dc4a61",25:"cba8945b",26:"b93eedf8",27:"96123e04",28:"d2976297",30:"0049eedc",31:"709e7cd6",32:"fee41c6c",33:"a662176d",34:"f39d9f31",35:"8b7f7df1",37:"b4e17ab5",38:"5d45802a",39:"8a79f8ca",40:"1191e8a7",41:"63763c68",42:"cc0dbbbe",44:"fb53337b",45:"7763efee",46:"420a3f4b",47:"77e14ca9",48:"8cced5a9",49:"678b8029",50:"7d9308b2",51:"5967d2db"}[f]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(d);var r=l[f];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+f+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[f]=void 0}};var d=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},b.m=i,b.c=t,b.d=function(e,r,t){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(b.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)b.d(t,n,function(e){return r[e]}.bind(null,n));return t},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var a=0;a<r.length;a++)e(r[a]);var p=n;s()}([])</script><script src="/mrstatic/js/43.09eedf69.chunk.js"></script><script src="/mrstatic/js/main.5510d429.chunk.js"></script></body></html>
\ No newline at end of file
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){function r(r){for(var n,a,c=r[0],i=r[1],s=r[2],f=0,l=[];f<c.length;f++)a=c[f],o[a]&&l.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(u&&u(r);l.length;)l.shift()();return d.push.apply(d,s||[]),t()}function t(){for(var e,r=0;r<d.length;r++){for(var t=d[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(d.splice(r--,1),e=c(c.s=t[0]))}return e}var n={},a={36:0},o={36:0},d=[];function c(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,c),t.l=!0,t.exports}c.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,14: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,28:1,30:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42: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/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"966a7982",3:"1133c967",4:"ac8fad1f",5:"5ad58b77",6:"2a913483",7:"127d35ae",8:"400393b7",9:"fed92c83",10:"1bd3da48",11:"17af9370",12:"5ad58b77",13:"31d6cfe0",14:"83a999aa",15:"31d6cfe0",16:"68a25070",17:"ccebc534",18:"6d7d1b77",19:"6e885738",20:"887eb690",21:"affb05d7",22:"32a9cccc",23:"5dc65c0d",24:"39fb77c8",25:"0ce3fd3d",26:"2e5f43c4",27:"e8363b32",28:"55b938da",30:"841d0cfb",31:"6bf64b45",32:"24691c8a",33:"ce85cb83",34:"7558403e",35:"11408886",37:"efa1dd44",38:"cde549fc",39:"62b8863b",40:"4fbf61d8",41:"ffd8be6c",42:"b3755c1b",44:"976b2058",45:"51412fcd",46:"31d6cfe0",47:"e292ab6b",48:"37fb0c23",49:"56b04545",50:"ce17075b",51:"bacf914e"}[e]+".chunk.css",o=c.p+n,d=document.getElementsByTagName("link"),i=0;i<d.length;i++){var s=(u=d[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(s===n||s===o))return r()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){var u;if((s=(u=f[i]).getAttribute("data-href"))===n||s===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,d=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");d.request=n,delete a[e],l.parentNode.removeChild(l),t(d)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var d,i=document.createElement("script");i.charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.src=function(e){return c.p+"mrstatic/js/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"video"}[e]||e)+"."+{0:"6a735dfd",1:"5e11f90b",2:"7b12721b",3:"40b98937",4:"686386e3",5:"3453dffe",6:"c0df7d9c",7:"f661a062",8:"801f4f4a",9:"171e7f2f",10:"89643eb1",11:"19db90d3",12:"35bdf09d",13:"c2056035",14:"ea8efcd5",15:"3adbd0d8",16:"065f0d9d",17:"98f671dc",18:"5fbe4d21",19:"7daf188b",20:"2ca42752",21:"198c6595",22:"f2fc5b59",23:"4c950270",24:"12dc4a61",25:"cba8945b",26:"b93eedf8",27:"96123e04",28:"d2976297",30:"0049eedc",31:"8897840e",32:"37b10385",33:"a662176d",34:"f39d9f31",35:"8b7f7df1",37:"b4e17ab5",38:"5d45802a",39:"8a79f8ca",40:"d9413b28",41:"63763c68",42:"cc0dbbbe",44:"fb53337b",45:"7763efee",46:"420a3f4b",47:"77e14ca9",48:"8cced5a9",49:"678b8029",50:"7d9308b2",51:"5967d2db"}[e]+".chunk.js"}(e),d=function(r){i.onerror=i.onload=null,clearTimeout(s);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,d=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");d.type=n,d.request=a,t[1](d)}o[e]=void 0}};var s=setTimeout(function(){d({type:"timeout",target:i})},12e4);i.onerror=i.onload=d,document.head.appendChild(i)}return Promise.all(r)},c.m=e,c.c=n,c.d=function(e,r,t){c.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,r){if(1&r&&(e=c(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)c.d(t,n,function(r){return e[r]}.bind(null,n));return t},c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,"a",r),r},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.p="/",c.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var u=s;t()}([]);
//# sourceMappingURL=runtime~main.0cb61f13.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{1251:function(e,t,n){"use strict";n.r(t);var i=n(5),s=n(7),a=n(6),o=n(8),r=n(89),c=n(9),l=n(0),u=n.n(l),p=n(162),d=(n(258),n(1252),function(e){function t(){var e,n;Object(i.a)(this,t);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return(n=Object(a.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).count=0,n.state={showNotices:!0},n.initializeSwiper=function(){var e=Object(r.a)(n);n.swiper=new p.a(".sys-bullet-screen-swiper-container",{allowTouchMove:!1,direction:"vertical",loop:!0,on:{init:function(){Array.from(this.slides).forEach(function(t){t.querySelector("span").addEventListener("transitionend",e.transitionEnd)})},slideChangeTransitionEnd:function(){e.slideHorizontal(this)},transitionEnd:function(){var e=this.slides[this.previousIndex].querySelector("span");e.style.transition="unset",e.style.transform="translate3d(0,0,0)"}}})},n.slideHorizontal=function(e){var t=e.slides[e.activeIndex],i=t.querySelector("span"),s=i.offsetWidth,a=t.clientWidth;s>a?(i.style.transition="transform ".concat(s/131.25,"s linear"),setTimeout(function(){i.style.transform="translate3d(".concat(-(s-a)-10,"px,0,0)")},1e3)):setTimeout(function(){++n.count,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(c.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-avatar.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))}))))}}]),t}(l.Component));t.default=d},1252:function(e,t,n){}}]);
//# sourceMappingURL=system-notices.d9413b28.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/common/system-bullet-screen/index.js"],"names":["SystemBulletScreen","count","state","showNotices","initializeSwiper","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_4__","_this2","swiper","Swiper","allowTouchMove","direction","loop","on","init","Array","from","this","slides","forEach","item","querySelector","addEventListener","transitionEnd","slideChangeTransitionEnd","slideHorizontal","el","previousIndex","style","transition","transform","activeIndex","content","contentWidth","offsetWidth","wrapperWidth","clientWidth","concat","setTimeout","slideNext","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,CAAAE,GACXA,EAAKC,OAAS,IAAIC,IAAO,sCAAuC,CAC9DC,gBAAgB,EAChBC,UAAW,WACXC,MAAM,EACNC,GAAI,CACFC,KADE,WAEAC,MAAMC,KAAKC,KAAKC,QAAQC,QAAQ,SAAAC,GAC9BA,EAAKC,cAAc,QAAQC,iBAAiB,gBAAiBlB,EAAMmB,kBAGvEC,yBANE,WAOApB,EAAMqB,gBAAgBR,OAExBM,cATE,WAUA,IAAMG,EAAKT,KAAKC,OAAOD,KAAKU,eAAeN,cAAc,QACzDK,EAAGE,MAAMC,WAAa,QACtBH,EAAGE,MAAME,UAAY,4BAM7BL,gBAAkB,SAACjB,GACjB,IAAIkB,EAAKlB,EAAOU,OAAOV,EAAOuB,aAC5BC,EAAUN,EAAGL,cAAc,QAC3BY,EAAeD,EAAQE,YACvBC,EAAeT,EAAGU,YAIhBH,EAAeE,GACjBH,EAAQJ,MAAMC,WAAd,aAAAQ,OAAwCJ,EAH/B,OAGT,YACAK,WAAW,WACTN,EAAQJ,MAAME,UAAd,eAAAO,SAA2CJ,EAAeE,GAAgB,GAA1E,YACC,MAEHG,WAAW,aACP/B,EAAKP,MACPQ,EAAO+B,aACN,QAIPhB,cAAgB,WAAM,IAGdiB,EAAuB,EAFXjC,EAAKkC,MAAhBC,QAEaC,SACdpC,EAAKP,QAAUwC,EACnBF,WAAW,WACT/B,EAAKqC,UAAUhB,MAAMiB,OAArB,OACC,KAEHP,WAAW,WACT/B,EAAKC,QAAUD,EAAKC,OAAO+B,aAC1B,QAIPO,oBAAsB,SAAAC,GACpBA,EAAEC,UACED,EAAEE,SAAW1C,EAAKqC,WACpBrC,EAAK2C,SAAS,CACZhD,aAAa,wFAvEjBe,KAAKd,kEAILc,KAAKT,QAAUS,KAAKT,OAAO2C,2CAwEpB,IAAAC,EAAAnC,KAELyB,EACEzB,KAAKwB,MADPC,QAEF,OACEzB,KAAKhB,MAAMC,aACXmD,EAAAC,EAAAC,cAAA,OAAKC,GAAG,uBAAuBC,gBAAiBxC,KAAK6B,oBAAqBY,IAAK,SAAAhC,GAAE,OAAI0B,EAAKR,UAAYlB,IACpG2B,EAAAC,EAAAC,cAAA,OAAKI,UAAU,SACVC,IAAI,8EAA8EC,IAAI,KAC3FR,EAAAC,EAAAC,cAAA,OAAKI,UAAU,sCACbN,EAAAC,EAAAC,cAAA,MAAII,UAAU,kBAEVjB,GAAWA,EAAQC,QAAUD,EAAQoB,IAAI,SAAC1C,EAAM2C,GAC9C,OACEV,EAAAC,EAAAC,cAAA,MAAII,UAAU,eAAeK,IAAKD,GAChCV,EAAAC,EAAAC,cAAA,YAAOnC,gBAtGM6C,cAmHlBlE","file":"mrstatic/js/system-notices.d9413b28.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.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-avatar.png' alt=\"\"/>\n <div className='sys-bullet-screen-swiper-container'>\n <ul className=\"swiper-wrapper\">\n {\n bullets && bullets.length && bullets.map((item, index) => {\n return (\n <li className=\"swiper-slide\" key={index}>\n <span>{item}</span>\n </li>\n )\n })\n }\n </ul>\n </div>\n </div>\n\n )\n }\n}\n\nexport default SystemBulletScreen\n"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.34420cd39eb9d6f97bd12a3757773e0c.js"
);
workbox.clientsClaim();
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.suppressWarnings();
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute("/index.html", {
blacklist: [/^\/_/,/\/[^/]+\.[^/]+$/],
});
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