Commit dc26a86c by xuzhenghua

pull

parents d1e0d970 6b816ceb
!function(e){function r(r){for(var a,n,d=r[0],f=r[1],i=r[2],s=0,b=[];s<d.length;s++)n=d[s],c[n]&&b.push(c[n][0]),c[n]=0;for(a in f)Object.prototype.hasOwnProperty.call(f,a)&&(e[a]=f[a]);for(u&&u(r);b.length;)b.shift()();return o.push.apply(o,i||[]),t()}function t(){for(var e,r=0;r<o.length;r++){for(var t=o[r],a=!0,n=1;n<t.length;n++){var f=t[n];0!==c[f]&&(a=!1)}a&&(o.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={36:0},c={36:0},o=[];function d(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{1: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,43:1,44:1,47:1,48:1,49:1,50:1,51:1,52:1,53:1,54:1,55:1,57:1,58:1,59:1,60:1,62:1,63:1,64:1,65:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="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:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"bff22cf8",2:"31d6cfe0",3:"5ed15c7e",4:"0dc24c6e",5:"a74b39fb",6:"31cef199",7:"f2f19957",8:"16a64650",9:"47812ac6",10:"2e7d81ca",11:"f2cc3163",12:"361dc1a3",13:"31d6cfe0",14:"35f475a1",15:"31d6cfe0",16:"e5315535",17:"18d20d0c",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"ca49c1cb",22:"951fd27d",23:"715eb28a",24:"b92d0394",25:"c10ecc19",26:"6f3a01ca",27:"219bad3d",28:"975c864b",30:"3c41b358",31:"b0d930fa",32:"fe0d87a6",33:"55e46fc9",34:"f583a040",35:"087d6571",37:"38c3e634",38:"f09a5959",39:"e406d228",40:"08df3d15",41:"49988cae",42:"742fb589",43:"b84e2e84",44:"d836ed34",46:"31d6cfe0",47:"50547718",48:"1cd533fe",49:"17c0e036",50:"2471f477",51:"0bb224f2",52:"ecbb6f9a",53:"9f46e45e",54:"ee45d0b0",55:"4723f76a",56:"31d6cfe0",57:"ab7f5e40",58:"4c85e85c",59:"470b9744",60:"10a4034d",61:"31d6cfe0",62:"697fa90d",63:"eb90513f",64:"5fba4ed0",65:"e51ea0fc"}[e]+".chunk.css",c=d.p+a,o=document.getElementsByTagName("link"),f=0;f<o.length;f++){var i=(u=o[f]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(i===a||i===c))return r()}var s=document.getElementsByTagName("style");for(f=0;f<s.length;f++){var u;if((i=(u=s[f]).getAttribute("data-href"))===a||i===c)return r()}var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.onload=r,b.onerror=function(r){var a=r&&r.target&&r.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.request=a,delete n[e],b.parentNode.removeChild(b),t(o)},b.href=c,document.getElementsByTagName("head")[0].appendChild(b)}).then(function(){n[e]=0}));var t=c[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=c[e]=[r,a]});r.push(t[2]=a);var o,f=document.createElement("script");f.charset="utf-8",f.timeout=120,d.nc&&f.setAttribute("nonce",d.nc),f.src=function(e){return d.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:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[e]||e)+"."+{0:"e278c735",1:"8bbb22c9",2:"b3ec967c",3:"7ccddd12",4:"af4e2b23",5:"7ec7f2b9",6:"7eb4abf0",7:"0f83b5f8",8:"87d90b89",9:"761adbd5",10:"037713ff",11:"db75562e",12:"3384fefc",13:"4751204d",14:"a0b70db0",15:"2de132f2",16:"a6ffd7a3",17:"d29c358d",18:"fe7ffa77",19:"4c634bea",20:"346a3579",21:"c5c1587d",22:"b3da729d",23:"ad587bdd",24:"c392e4f0",25:"84979109",26:"96141846",27:"9f93d7d9",28:"f2fba597",30:"045085aa",31:"a525948a",32:"3a59a510",33:"c127a088",34:"c9953eb3",35:"43c9fac3",37:"bd511cc2",38:"3c664772",39:"d6233669",40:"3b3e0b79",41:"f855a187",42:"79aceb6e",43:"976d5b4e",44:"f2d8cb82",46:"26572008",47:"5837411f",48:"0e8c5b5f",49:"807ef56b",50:"b9ec8502",51:"facff2a9",52:"0dda2bb1",53:"ed8fa7d4",54:"0621bfa4",55:"fcc3b4f6",56:"81962ecf",57:"64f503cc",58:"0ea63ac8",59:"10f685bf",60:"72a77810",61:"e52a9a25",62:"4331ca73",63:"56faee3e",64:"bc40145b",65:"ece1cb71"}[e]+".chunk.js"}(e),o=function(r){f.onerror=f.onload=null,clearTimeout(i);var t=c[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,o=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");o.type=a,o.request=n,t[1](o)}c[e]=void 0}};var i=setTimeout(function(){o({type:"timeout",target:f})},12e4);f.onerror=f.onload=o,document.head.appendChild(f)}return Promise.all(r)},d.m=e,d.c=a,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)d.d(t,a,function(r){return e[r]}.bind(null,a));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var s=0;s<f.length;s++)r(f[s]);var u=i;t()}([]);
//# sourceMappingURL=runtime~main.683efc44.js.map
\ No newline at end of file
......@@ -14,7 +14,11 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
<<<<<<< HEAD
"/precache-manifest.b2accc23c605e8cb7f418b47c520c4b4.js"
=======
"/precache-manifest.c5d96ba0f64ebb6a3fe7ff04b77ef53b.js"
>>>>>>> 6b816ceb0a51de20d5765fb9a6a9919141bcb702
);
workbox.clientsClaim();
......
......@@ -103,7 +103,7 @@ class Exam extends Component {
answer,
recordId: data[0].record_id,
})
this.getStartTime(data[0].create_time)
this.getStartTime(data[0].create_time, data[0].now)
this.setCounter()
} else if (code === 23007) {
this.props.history.replace('/ai-test/scores')
......@@ -113,9 +113,9 @@ class Exam extends Component {
})
}
getStartTime = (timestamp) => {
const now = new Date()
const createTime = new Date(timestamp * 1000)
getStartTime = (createTimeStamp, current) => {
const now = new Date(current * 1000)
const createTime = new Date(createTimeStamp * 1000)
this.setState({
time: {
d: differenceInDays(now, createTime),
......
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