Commit cbd7813d by zhanghaozhe

ai测试

parents 873b3874 fd94ee8d
......@@ -103,8 +103,8 @@
"python-class.css": "/mrstatic/css/python-class.087d6571.chunk.css",
"python-class.js": "/mrstatic/js/python-class.43c9fac3.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.43c9fac3.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.a1808f33.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.a1808f33.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.2a1dad05.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.2a1dad05.js.map",
"search.css": "/mrstatic/css/search.38c3e634.chunk.css",
"search.js": "/mrstatic/js/search.7fcae663.chunk.js",
"search.js.map": "/mrstatic/js/search.7fcae663.chunk.js.map",
......@@ -138,8 +138,8 @@
"mrstatic/js/47.fa9c862b.chunk.js": "/mrstatic/js/47.fa9c862b.chunk.js",
"mrstatic/js/47.fa9c862b.chunk.js.map": "/mrstatic/js/47.fa9c862b.chunk.js.map",
"mrstatic/css/48.9408c393.chunk.css": "/mrstatic/css/48.9408c393.chunk.css",
"mrstatic/js/48.dfa40f35.chunk.js": "/mrstatic/js/48.dfa40f35.chunk.js",
"mrstatic/js/48.dfa40f35.chunk.js.map": "/mrstatic/js/48.dfa40f35.chunk.js.map",
"mrstatic/js/48.15e47187.chunk.js": "/mrstatic/js/48.15e47187.chunk.js",
"mrstatic/js/48.15e47187.chunk.js.map": "/mrstatic/js/48.15e47187.chunk.js.map",
"mrstatic/css/49.17c0e036.chunk.css": "/mrstatic/css/49.17c0e036.chunk.css",
"mrstatic/js/49.807ef56b.chunk.js": "/mrstatic/js/49.807ef56b.chunk.js",
"mrstatic/js/49.807ef56b.chunk.js.map": "/mrstatic/js/49.807ef56b.chunk.js.map",
......@@ -252,6 +252,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.2f63776529a6304a111e0df87df06f26.js": "/precache-manifest.2f63776529a6304a111e0df87df06f26.js",
"precache-manifest.bfb7e1a8f051c08df7bfd1e87904b1fe.js": "/precache-manifest.bfb7e1a8f051c08df7bfd1e87904b1fe.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
......@@ -272,8 +272,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/python-class.43c9fac3.chunk.js"
},
{
"revision": "b1e16cfe6bd11a3ed453",
"url": "/mrstatic/js/runtime~main.a1808f33.js"
"revision": "091234bcde69bd5d57cd",
"url": "/mrstatic/js/runtime~main.2a1dad05.js"
},
{
"revision": "f47a1b7eea92856a3ea9",
......@@ -360,12 +360,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/47.fa9c862b.chunk.js"
},
{
"revision": "f9c8a03efc2b66f9205b",
"revision": "e758904e691397b5a5b8",
"url": "/mrstatic/css/48.9408c393.chunk.css"
},
{
"revision": "f9c8a03efc2b66f9205b",
"url": "/mrstatic/js/48.dfa40f35.chunk.js"
"revision": "e758904e691397b5a5b8",
"url": "/mrstatic/js/48.15e47187.chunk.js"
},
{
"revision": "5692b3f83ebc104a1619",
......@@ -500,14 +500,14 @@ self.__precacheManifest = [
"url": "/mrstatic/media/iconfont.64fd0b16.eot"
},
{
"revision": "f2f4294d9a677f58f6f7c1a0ac84c448",
"url": "/mrstatic/media/iconfont.f2f4294d.woff"
},
{
"revision": "99b2454970e48c8bb00578cdca15b3d2",
"url": "/mrstatic/media/iconfont.99b24549.ttf"
},
{
"revision": "f2f4294d9a677f58f6f7c1a0ac84c448",
"url": "/mrstatic/media/iconfont.f2f4294d.woff"
},
{
"revision": "5bf7701b4b6358bd06d9c45c26a7d18f",
"url": "/mrstatic/media/iconfont.5bf7701b.svg"
},
......@@ -532,10 +532,6 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae",
"url": "/mrstatic/media/redb_chai_bj@2x.8edaf2ff.png"
},
......@@ -544,7 +540,11 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "4804b9ba2e92b505c2bad27b25ea382a",
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "52e4c0070fd7e6865f838fcfd4692e1b",
"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.2f63776529a6304a111e0df87df06f26.js"
"/precache-manifest.bfb7e1a8f051c08df7bfd1e87904b1fe.js"
);
workbox.clientsClaim();
......
......@@ -28,24 +28,32 @@ class scoreReport extends Component {
}
componentDidMount() {
window.onbeforeunload = () => {
document.documentElement.scrollTop = 0
document.body.scrollTop = 0
}
this.getCodeWe()
this.handleFetchInfo(0)
}
shouldComponentUpdate(nextProps, nextState, nextContext) {
if (this.props.user.data.avatar!==nextProps.user.data.avatar) {
if (this.props.user.data.avatar !== nextProps.user.data.avatar) {
this.getCanvas()
return false
}
return true
return true
}
getCanvas() {
document.documentElement.scrollTop = 0
document.body.scrollTop = 0
let _this = this
var canvas2 = document.createElement("canvas")
let _canvas = document.getElementsByClassName('score-list')[0]
if(!_canvas){
if (!_canvas) {
return
}
var w = parseInt(window.getComputedStyle(_canvas).width)
......@@ -98,7 +106,7 @@ class scoreReport extends Component {
this.getBase64(avatar)
setTimeout(() => {
this.getCanvas()
},500)
}, 500)
}
})
}
......
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