Commit c2713c0f by xuzhenghua

youhua

parents 06cd9f3a 2dd8b0c3
......@@ -83,14 +83,14 @@
"detail.js": "/mrstatic/js/detail.44589fbd.chunk.js",
"detail.js.map": "/mrstatic/js/detail.44589fbd.chunk.js.map",
"main.css": "/mrstatic/css/main.22eaa155.chunk.css",
"main.js": "/mrstatic/js/main.43bbbb72.chunk.js",
"main.js.map": "/mrstatic/js/main.43bbbb72.chunk.js.map",
"main.js": "/mrstatic/js/main.ab2b3ed2.chunk.js",
"main.js.map": "/mrstatic/js/main.ab2b3ed2.chunk.js.map",
"myorders.css": "/mrstatic/css/myorders.179a42fc.chunk.css",
"myorders.js": "/mrstatic/js/myorders.122809d7.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.122809d7.chunk.js.map",
"newyear-2019-landing.css": "/mrstatic/css/newyear-2019-landing.57b46b09.chunk.css",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.d43f8992.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.d43f8992.chunk.js.map",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.d7c3d74f.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.d7c3d74f.chunk.js.map",
"newyear-yearIndex.css": "/mrstatic/css/newyear-yearIndex.50beb090.chunk.css",
"newyear-yearIndex.js": "/mrstatic/js/newyear-yearIndex.ecc6b24e.chunk.js",
"newyear-yearIndex.js.map": "/mrstatic/js/newyear-yearIndex.ecc6b24e.chunk.js.map",
......@@ -103,8 +103,8 @@
"python-class.css": "/mrstatic/css/python-class.1fe9d108.chunk.css",
"python-class.js": "/mrstatic/js/python-class.5cca1ffb.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.5cca1ffb.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.cf07b0e4.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.cf07b0e4.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.6f966b6a.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.6f966b6a.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.20bbab86.chunk.js",
"search.js.map": "/mrstatic/js/search.20bbab86.chunk.js.map",
......@@ -121,11 +121,11 @@
"togroup.js": "/mrstatic/js/togroup.a2d9f8b7.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.a2d9f8b7.chunk.js.map",
"treasure-box-home.css": "/mrstatic/css/treasure-box-home.d7bb8063.chunk.css",
"treasure-box-home.js": "/mrstatic/js/treasure-box-home.911fee53.chunk.js",
"treasure-box-home.js.map": "/mrstatic/js/treasure-box-home.911fee53.chunk.js.map",
"treasure-box-home.js": "/mrstatic/js/treasure-box-home.65ce5812.chunk.js",
"treasure-box-home.js.map": "/mrstatic/js/treasure-box-home.65ce5812.chunk.js.map",
"treasure-box-mybox.css": "/mrstatic/css/treasure-box-mybox.b5f40384.chunk.css",
"treasure-box-mybox.js": "/mrstatic/js/treasure-box-mybox.5d14604c.chunk.js",
"treasure-box-mybox.js.map": "/mrstatic/js/treasure-box-mybox.5d14604c.chunk.js.map",
"treasure-box-mybox.js": "/mrstatic/js/treasure-box-mybox.5f131f10.chunk.js",
"treasure-box-mybox.js.map": "/mrstatic/js/treasure-box-mybox.5f131f10.chunk.js.map",
"video.css": "/mrstatic/css/video.e614ee3d.chunk.css",
"video.js": "/mrstatic/js/video.740c74ff.chunk.js",
"video.js.map": "/mrstatic/js/video.740c74ff.chunk.js.map",
......@@ -244,6 +244,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.f5a61bbc0c7a3238c6e7ceb353154ff4.js": "/precache-manifest.f5a61bbc0c7a3238c6e7ceb353154ff4.js",
"precache-manifest.4f139c9fd3c399cc2f47bac47b867aea.js": "/precache-manifest.4f139c9fd3c399cc2f47bac47b867aea.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
<!doctype html><html lang="zh"><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/45.c8db8c90.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.22eaa155.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(f){function e(e){for(var r,t,a=e[0],n=e[1],o=e[2],c=0,d=[];c<a.length;c++)t=a[c],b[t]&&d.push(b[t][0]),b[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(f[r]=n[r]);for(p&&p(e);d.length;)d.shift()();return s.push.apply(s,o||[]),i()}function i(){for(var e,r=0;r<s.length;r++){for(var t=s[r],a=!0,n=1;n<t.length;n++){var o=t[n];0!==b[o]&&(a=!1)}a&&(s.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},u={36:0},b={36:0},s=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{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,56:1,57:1,58:1,59:1,60:1,61:1,62:1}[s]&&e.push(u[s]=new Promise(function(e,a){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:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[s]||s)+"."+{0:"31d6cfe0",1:"037b510f",2:"31d6cfe0",3:"bf839917",4:"6dfb7e21",5:"6260646a",6:"eb686c74",7:"fb4bedde",8:"2d34330b",9:"f284a443",10:"aeb3f822",11:"7bb0622b",12:"f0f99418",13:"31d6cfe0",14:"8c058a7a",15:"31d6cfe0",16:"7eb7d317",17:"12a8297c",18:"cdf852c1",19:"8046fb41",20:"92ab48a3",21:"40873df0",22:"5a935f68",23:"07827c59",24:"91e559d5",25:"466858c7",26:"5ea077aa",27:"ecfb0a9d",28:"fd3511d3",30:"179a42fc",31:"57b46b09",32:"50beb090",33:"3eee90af",34:"288d035b",35:"1fe9d108",37:"5716d9b3",38:"76774ba4",39:"8b54592d",40:"fd23e5fc",41:"f08bc5f3",42:"d7bb8063",43:"b5f40384",44:"e614ee3d",46:"31d6cfe0",47:"2fd45d08",48:"ae54e35c",49:"bff100af",50:"820320a6",51:"35e22f8c",52:"6a988500",53:"cf875b17",54:"866df084",55:"96cd221b",56:"213ef0c8",57:"3a7f5a83",58:"d06494b6",59:"a69e6a9c",60:"b02d1de6",61:"11f70350",62:"d1a52318"}[s]+".chunk.css",n=l.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(f=t[o]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(c===r||c===n))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var f;if((c=(f=d[o]).getAttribute("data-href"))===r||c===n)return e()}var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onload=e,i.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+s+" failed.\n("+r+")");t.request=r,delete u[s],i.parentNode.removeChild(i),a(t)},i.href=n,document.getElementsByTagName("head")[0].appendChild(i)}).then(function(){u[s]=0}));var t=b[s];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=b[s]=[e,r]});e.push(t[2]=r);var a,o=document.createElement("script");o.charset="utf-8",o.timeout=120,l.nc&&o.setAttribute("nonce",l.nc),o.src=l.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"}[s]||s)+"."+{0:"bc874a24",1:"bc21c983",2:"0417c21c",3:"4a2be69d",4:"f291e0c7",5:"c809bb7b",6:"c1cb9f94",7:"caf45f11",8:"aeb80b54",9:"6c515c34",10:"cb4e04da",11:"003c1591",12:"e6d47ce7",13:"7a287fd0",14:"5ab5c003",15:"3ad57444",16:"da5e9a14",17:"8bad9f73",18:"afb95af0",19:"4cb0d9de",20:"dc030457",21:"077bdd8e",22:"792701bc",23:"d8b9eaff",24:"63ec5cac",25:"84d0bf7d",26:"94391d11",27:"b0286349",28:"44589fbd",30:"122809d7",31:"d43f8992",32:"ecc6b24e",33:"47d0e4b3",34:"279006f4",35:"5cca1ffb",37:"20bbab86",38:"76cba1ff",39:"622e8489",40:"736d4af5",41:"a2d9f8b7",42:"911fee53",43:"5d14604c",44:"740c74ff",46:"44f38ed3",47:"4ef49615",48:"5ce7e070",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"a9165147",53:"63fffc38",54:"85c8b90a",55:"03b8c755",56:"5198f441",57:"4cc0daaf",58:"86365e8c",59:"bf51ed27",60:"a23a3eec",61:"2292e5e8",62:"f50c12ff"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=b[s];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src,n=new Error("Loading chunk "+s+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}b[s]=void 0}};var c=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},l.m=f,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)l.d(t,a,function(e){return r[e]}.bind(null,a));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/",l.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=a;i()}([])</script><script src="/mrstatic/js/45.37593622.chunk.js"></script><script src="/mrstatic/js/main.43bbbb72.chunk.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="zh"><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/45.c8db8c90.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.22eaa155.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(f){function e(e){for(var r,t,a=e[0],n=e[1],o=e[2],c=0,d=[];c<a.length;c++)t=a[c],b[t]&&d.push(b[t][0]),b[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(f[r]=n[r]);for(p&&p(e);d.length;)d.shift()();return s.push.apply(s,o||[]),i()}function i(){for(var e,r=0;r<s.length;r++){for(var t=s[r],a=!0,n=1;n<t.length;n++){var o=t[n];0!==b[o]&&(a=!1)}a&&(s.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},u={36:0},b={36:0},s=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{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,56:1,57:1,58:1,59:1,60:1,61:1,62:1}[s]&&e.push(u[s]=new Promise(function(e,a){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:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[s]||s)+"."+{0:"31d6cfe0",1:"037b510f",2:"31d6cfe0",3:"bf839917",4:"6dfb7e21",5:"6260646a",6:"eb686c74",7:"fb4bedde",8:"2d34330b",9:"f284a443",10:"aeb3f822",11:"7bb0622b",12:"f0f99418",13:"31d6cfe0",14:"8c058a7a",15:"31d6cfe0",16:"7eb7d317",17:"12a8297c",18:"cdf852c1",19:"8046fb41",20:"92ab48a3",21:"40873df0",22:"5a935f68",23:"07827c59",24:"91e559d5",25:"466858c7",26:"5ea077aa",27:"ecfb0a9d",28:"fd3511d3",30:"179a42fc",31:"57b46b09",32:"50beb090",33:"3eee90af",34:"288d035b",35:"1fe9d108",37:"5716d9b3",38:"76774ba4",39:"8b54592d",40:"fd23e5fc",41:"f08bc5f3",42:"d7bb8063",43:"b5f40384",44:"e614ee3d",46:"31d6cfe0",47:"2fd45d08",48:"ae54e35c",49:"bff100af",50:"820320a6",51:"35e22f8c",52:"6a988500",53:"cf875b17",54:"866df084",55:"96cd221b",56:"213ef0c8",57:"3a7f5a83",58:"d06494b6",59:"a69e6a9c",60:"b02d1de6",61:"11f70350",62:"d1a52318"}[s]+".chunk.css",n=l.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(f=t[o]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(c===r||c===n))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var f;if((c=(f=d[o]).getAttribute("data-href"))===r||c===n)return e()}var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onload=e,i.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+s+" failed.\n("+r+")");t.request=r,delete u[s],i.parentNode.removeChild(i),a(t)},i.href=n,document.getElementsByTagName("head")[0].appendChild(i)}).then(function(){u[s]=0}));var t=b[s];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=b[s]=[e,r]});e.push(t[2]=r);var a,o=document.createElement("script");o.charset="utf-8",o.timeout=120,l.nc&&o.setAttribute("nonce",l.nc),o.src=l.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"}[s]||s)+"."+{0:"bc874a24",1:"bc21c983",2:"0417c21c",3:"4a2be69d",4:"f291e0c7",5:"c809bb7b",6:"c1cb9f94",7:"caf45f11",8:"aeb80b54",9:"6c515c34",10:"cb4e04da",11:"003c1591",12:"e6d47ce7",13:"7a287fd0",14:"5ab5c003",15:"3ad57444",16:"da5e9a14",17:"8bad9f73",18:"afb95af0",19:"4cb0d9de",20:"dc030457",21:"077bdd8e",22:"792701bc",23:"d8b9eaff",24:"63ec5cac",25:"84d0bf7d",26:"94391d11",27:"b0286349",28:"44589fbd",30:"122809d7",31:"d7c3d74f",32:"ecc6b24e",33:"47d0e4b3",34:"279006f4",35:"5cca1ffb",37:"20bbab86",38:"76cba1ff",39:"622e8489",40:"736d4af5",41:"a2d9f8b7",42:"65ce5812",43:"5f131f10",44:"740c74ff",46:"44f38ed3",47:"4ef49615",48:"5ce7e070",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"a9165147",53:"63fffc38",54:"85c8b90a",55:"03b8c755",56:"5198f441",57:"4cc0daaf",58:"86365e8c",59:"bf51ed27",60:"a23a3eec",61:"2292e5e8",62:"f50c12ff"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=b[s];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src,n=new Error("Loading chunk "+s+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}b[s]=void 0}};var c=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},l.m=f,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)l.d(t,a,function(e){return r[e]}.bind(null,a));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/",l.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=a;i()}([])</script><script src="/mrstatic/js/45.37593622.chunk.js"></script><script src="/mrstatic/js/main.ab2b3ed2.chunk.js"></script></body></html>
\ 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.
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{1183:function(e,t,a){},1186:function(e,t,a){},1246:function(e,t,a){},1247:function(e,t,a){},1316:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),c=a.n(n),i=(a(37),a(11)),s=a.n(i),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),d=a(74),p=a(0),h=a.n(p),g=(a(1183),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(25),v=a(21),y=a(737),E=a(738),f=(a(1186),a(3)),w=a(579),j=a.n(w),S=a(806),_=a(94),N=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin"),isLoading:a.props.user.isFetching},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.activity_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content","\u8fd9\u91cc\u662f\u81ea\u5b9a\u4e49\u5206\u4eab\u7684\u63cf\u8ff0");var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content","\u8fd9\u91cc\u662f\u6807\u9898");var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),f.b.isWeixin?Object(f.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||f.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(f.c)("version")?window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e,"&version=").concat(Object(f.c)("version"))):window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(d.a)(Object(d.a)(a)),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(f.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(f.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(f.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(f.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),f.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(d.a)(Object(d.a)(a)),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;f.b.isAndroidApp||f.b.isIOSApp?Object(f.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return f.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=").concat(Object(f.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/year/yearindex?version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/year/yearindex")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="AI\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u7206\u6b3e\u597d\u8bfe\uff0c300\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u9001\uff0cAI\u8fdb\u9636\u5b9d\u5178\u6765\u5c31\u9001\uff01-\u4e03\u6708\u5728\u7ebf";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading;return h.a.createElement("div",{id:"landing"},!(u&&f.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u6d3b\u52a8\u4f1a\u573a\uff0c\u4eab\u66f4\u591a\u798f\u5229\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&f.b.isWeixin?"standby":"")}),u&&f.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&f.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&f.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{size:"xl"}),h.a.createElement(S.a,{getSum:function(){}})),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(_.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(N)},1317:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),c=a.n(n),i=(a(37),a(11)),s=a.n(i),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),d=a(74),p=a(0),h=a.n(p),g=(a(1246),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(25),v=a(21),y=a(737),E=a(738),f=(a(1247),a(3)),w=a(579),j=a.n(w),S=a(94),_=a(233),N=a(235),O=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin"),isLoading:a.props.user.isFetching,modules:[]},a.getIndexData=function(){f.d.get("".concat(API.home,"/m/home")).then(function(e){if(200===e.data.code){var t=(e.data||{}).data,n=Array.isArray(t.modules)?t.modules:[];a.setState({modules:n})}else s.a.info(e.data.msg,2)})},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.treasure_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),f.b.isWeixin?Object(f.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||f.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else 520!==c&&s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(f.c)("version")?window.location.assign("https://m.julyedu.com/box/yearTreasure?id=".concat(e,"&version=").concat(Object(f.c)("version"))):window.location.assign("https://m.julyedu.com/box/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(d.a)(Object(d.a)(a)),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(f.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(f.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(f.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(f.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),f.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(d.a)(Object(d.a)(a)),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;f.b.isAndroidApp||f.b.isIOSApp?Object(f.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return f.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=").concat(Object(f.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/?version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),this.getIndexData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="AI\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u7206\u6b3e\u597d\u8bfe\uff0c300\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u9001\uff0cAI\u8fdb\u9636\u5b9d\u5178\u6765\u5c31\u9001\uff01-\u4e03\u6708\u5728\u7ebf";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading,b=e.modules;return h.a.createElement("div",{id:"landing"},!(u&&f.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51\uff0c\u5b66\u4eba\u5de5\u667a\u80fd\u7cbe\u54c1\u8bfe\u7a0b\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&f.b.isWeixin?"standby":"")}),u&&f.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&f.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&f.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement("div",{className:"course-module"},h.a.createElement(_.a,{modules:b}),h.a.createElement(N.a,null)),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(S.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(O)}}]);
//# sourceMappingURL=newyear-2019-landing.d43f8992.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{1183:function(e,t,a){},1186:function(e,t,a){},1246:function(e,t,a){},1247:function(e,t,a){},1316:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),c=a.n(n),i=(a(37),a(11)),s=a.n(i),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),d=a(74),p=a(0),h=a.n(p),g=(a(1183),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(25),v=a(21),y=a(737),E=a(738),f=(a(1186),a(3)),w=a(579),j=a.n(w),S=a(806),_=a(94),N=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin"),isLoading:a.props.user.isFetching},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.activity_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content","\u8fd9\u91cc\u662f\u81ea\u5b9a\u4e49\u5206\u4eab\u7684\u63cf\u8ff0");var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content","\u8fd9\u91cc\u662f\u6807\u9898");var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),f.b.isWeixin?Object(f.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||f.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(f.c)("version")?window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e,"&version=").concat(Object(f.c)("version"))):window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(d.a)(Object(d.a)(a)),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(f.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(f.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(f.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(f.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),f.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(d.a)(Object(d.a)(a)),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;f.b.isAndroidApp||f.b.isIOSApp?Object(f.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return f.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=").concat(Object(f.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/year/yearindex?version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/year/yearindex")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="AI\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u7206\u6b3e\u597d\u8bfe\uff0c300\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u9001\uff0cAI\u8fdb\u9636\u5b9d\u5178\u6765\u5c31\u9001\uff01-\u4e03\u6708\u5728\u7ebf";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading;return h.a.createElement("div",{id:"landing"},!(u&&f.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u6d3b\u52a8\u4f1a\u573a\uff0c\u4eab\u66f4\u591a\u798f\u5229\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&f.b.isWeixin?"standby":"")}),u&&f.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&f.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&f.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{size:"xl"}),h.a.createElement(S.a,{getSum:function(){}})),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(_.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(N)},1317:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),c=a.n(n),i=(a(37),a(11)),s=a.n(i),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),d=a(74),p=a(0),h=a.n(p),g=(a(1246),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(25),v=a(21),y=a(737),E=a(738),f=(a(1247),a(3)),w=a(579),j=a.n(w),S=a(94),_=a(233),N=a(235),O=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin"),isLoading:a.props.user.isFetching,modules:[]},a.getIndexData=function(){f.d.get("".concat(API.home,"/m/home")).then(function(e){if(200===e.data.code){var t=(e.data||{}).data,n=Array.isArray(t.modules)?t.modules:[];a.setState({modules:n})}else s.a.info(e.data.msg,2)})},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.treasure_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),f.b.isWeixin?Object(f.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||f.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else 520!==c&&s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(f.c)("version")?window.location.assign("https://m.julyedu.com/box/yearTreasure?id=".concat(e,"&version=").concat(Object(f.c)("version"))):window.location.assign("https://m.julyedu.com/box/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(d.a)(Object(d.a)(a)),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(f.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(f.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(f.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(f.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),f.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(d.a)(Object(d.a)(a)),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;f.b.isAndroidApp||f.b.isIOSApp?Object(f.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return f.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=").concat(Object(f.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/?version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),this.getIndexData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="AI\u5c31\u4e1a\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u62ffVIP\u5e74\u4f1a\u5458\uff0c200\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u5305\u90ae\u9001\uff01- \u4e03\u6708\u5728\u7ebf";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading,b=e.modules;return h.a.createElement("div",{id:"landing"},!(u&&f.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51\uff0c\u5b66\u4eba\u5de5\u667a\u80fd\u7cbe\u54c1\u8bfe\u7a0b\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&f.b.isWeixin?"standby":"")}),u&&f.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&f.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&f.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement("div",{className:"course-module"},h.a.createElement(_.a,{modules:b}),h.a.createElement(N.a,null)),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(S.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(O)}}]);
//# sourceMappingURL=newyear-2019-landing.d7c3d74f.chunk.js.map
\ No newline at end of file
!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],o[n]&&b.push(o[n][0]),o[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 c.push.apply(c,i||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var f=t[n];0!==o[f]&&(a=!1)}a&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={36:0},o={36:0},c=[];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,56:1,57:1,58:1,59:1,60:1,61:1,62: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:"037b510f",2:"31d6cfe0",3:"bf839917",4:"6dfb7e21",5:"6260646a",6:"eb686c74",7:"fb4bedde",8:"2d34330b",9:"f284a443",10:"aeb3f822",11:"7bb0622b",12:"f0f99418",13:"31d6cfe0",14:"8c058a7a",15:"31d6cfe0",16:"7eb7d317",17:"12a8297c",18:"cdf852c1",19:"8046fb41",20:"92ab48a3",21:"40873df0",22:"5a935f68",23:"07827c59",24:"91e559d5",25:"466858c7",26:"5ea077aa",27:"ecfb0a9d",28:"fd3511d3",30:"179a42fc",31:"57b46b09",32:"50beb090",33:"3eee90af",34:"288d035b",35:"1fe9d108",37:"5716d9b3",38:"76774ba4",39:"8b54592d",40:"fd23e5fc",41:"f08bc5f3",42:"d7bb8063",43:"b5f40384",44:"e614ee3d",46:"31d6cfe0",47:"2fd45d08",48:"ae54e35c",49:"bff100af",50:"820320a6",51:"35e22f8c",52:"6a988500",53:"cf875b17",54:"866df084",55:"96cd221b",56:"213ef0c8",57:"3a7f5a83",58:"d06494b6",59:"a69e6a9c",60:"b02d1de6",61:"11f70350",62:"d1a52318"}[e]+".chunk.css",o=d.p+a,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(u=c[f]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(i===a||i===o))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===o)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||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],b.parentNode.removeChild(b),t(c)},b.href=o,document.getElementsByTagName("head")[0].appendChild(b)}).then(function(){n[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=o[e]=[r,a]});r.push(t[2]=a);var c,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:"bc874a24",1:"bc21c983",2:"0417c21c",3:"4a2be69d",4:"f291e0c7",5:"c809bb7b",6:"c1cb9f94",7:"caf45f11",8:"aeb80b54",9:"6c515c34",10:"cb4e04da",11:"003c1591",12:"e6d47ce7",13:"7a287fd0",14:"5ab5c003",15:"3ad57444",16:"da5e9a14",17:"8bad9f73",18:"afb95af0",19:"4cb0d9de",20:"dc030457",21:"077bdd8e",22:"792701bc",23:"d8b9eaff",24:"63ec5cac",25:"84d0bf7d",26:"94391d11",27:"b0286349",28:"44589fbd",30:"122809d7",31:"d43f8992",32:"ecc6b24e",33:"47d0e4b3",34:"279006f4",35:"5cca1ffb",37:"20bbab86",38:"76cba1ff",39:"622e8489",40:"736d4af5",41:"a2d9f8b7",42:"911fee53",43:"5d14604c",44:"740c74ff",46:"44f38ed3",47:"4ef49615",48:"5ce7e070",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"a9165147",53:"63fffc38",54:"85c8b90a",55:"03b8c755",56:"5198f441",57:"4cc0daaf",58:"86365e8c",59:"bf51ed27",60:"a23a3eec",61:"2292e5e8",62:"f50c12ff"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(i);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var i=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,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.cf07b0e4.js.map
\ No newline at end of file
!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],o[n]&&b.push(o[n][0]),o[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 c.push.apply(c,i||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var f=t[n];0!==o[f]&&(a=!1)}a&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={36:0},o={36:0},c=[];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,56:1,57:1,58:1,59:1,60:1,61:1,62: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:"037b510f",2:"31d6cfe0",3:"bf839917",4:"6dfb7e21",5:"6260646a",6:"eb686c74",7:"fb4bedde",8:"2d34330b",9:"f284a443",10:"aeb3f822",11:"7bb0622b",12:"f0f99418",13:"31d6cfe0",14:"8c058a7a",15:"31d6cfe0",16:"7eb7d317",17:"12a8297c",18:"cdf852c1",19:"8046fb41",20:"92ab48a3",21:"40873df0",22:"5a935f68",23:"07827c59",24:"91e559d5",25:"466858c7",26:"5ea077aa",27:"ecfb0a9d",28:"fd3511d3",30:"179a42fc",31:"57b46b09",32:"50beb090",33:"3eee90af",34:"288d035b",35:"1fe9d108",37:"5716d9b3",38:"76774ba4",39:"8b54592d",40:"fd23e5fc",41:"f08bc5f3",42:"d7bb8063",43:"b5f40384",44:"e614ee3d",46:"31d6cfe0",47:"2fd45d08",48:"ae54e35c",49:"bff100af",50:"820320a6",51:"35e22f8c",52:"6a988500",53:"cf875b17",54:"866df084",55:"96cd221b",56:"213ef0c8",57:"3a7f5a83",58:"d06494b6",59:"a69e6a9c",60:"b02d1de6",61:"11f70350",62:"d1a52318"}[e]+".chunk.css",o=d.p+a,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(u=c[f]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(i===a||i===o))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===o)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||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],b.parentNode.removeChild(b),t(c)},b.href=o,document.getElementsByTagName("head")[0].appendChild(b)}).then(function(){n[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=o[e]=[r,a]});r.push(t[2]=a);var c,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:"bc874a24",1:"bc21c983",2:"0417c21c",3:"4a2be69d",4:"f291e0c7",5:"c809bb7b",6:"c1cb9f94",7:"caf45f11",8:"aeb80b54",9:"6c515c34",10:"cb4e04da",11:"003c1591",12:"e6d47ce7",13:"7a287fd0",14:"5ab5c003",15:"3ad57444",16:"da5e9a14",17:"8bad9f73",18:"afb95af0",19:"4cb0d9de",20:"dc030457",21:"077bdd8e",22:"792701bc",23:"d8b9eaff",24:"63ec5cac",25:"84d0bf7d",26:"94391d11",27:"b0286349",28:"44589fbd",30:"122809d7",31:"d7c3d74f",32:"ecc6b24e",33:"47d0e4b3",34:"279006f4",35:"5cca1ffb",37:"20bbab86",38:"76cba1ff",39:"622e8489",40:"736d4af5",41:"a2d9f8b7",42:"65ce5812",43:"5f131f10",44:"740c74ff",46:"44f38ed3",47:"4ef49615",48:"5ce7e070",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"a9165147",53:"63fffc38",54:"85c8b90a",55:"03b8c755",56:"5198f441",57:"4cc0daaf",58:"86365e8c",59:"bf51ed27",60:"a23a3eec",61:"2292e5e8",62:"f50c12ff"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(i);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var i=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,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.6f966b6a.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","36","exports","module","l","e","promises","1","3","4","5","6","7","8","9","10","11","12","14","16","17","18","19","20","21","22","23","24","25","26","27","28","30","31","32","33","34","35","37","38","39","40","41","42","43","44","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","Promise","resolve","reject","href","13","15","0","2","46","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"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","file":"mrstatic/js/runtime~main.cf07b0e4.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t36: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t36: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.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\"}[chunkId]||chunkId) + \".\" + {\"0\":\"bc874a24\",\"1\":\"bc21c983\",\"2\":\"0417c21c\",\"3\":\"4a2be69d\",\"4\":\"f291e0c7\",\"5\":\"c809bb7b\",\"6\":\"c1cb9f94\",\"7\":\"caf45f11\",\"8\":\"aeb80b54\",\"9\":\"6c515c34\",\"10\":\"cb4e04da\",\"11\":\"003c1591\",\"12\":\"e6d47ce7\",\"13\":\"7a287fd0\",\"14\":\"5ab5c003\",\"15\":\"3ad57444\",\"16\":\"da5e9a14\",\"17\":\"8bad9f73\",\"18\":\"afb95af0\",\"19\":\"4cb0d9de\",\"20\":\"dc030457\",\"21\":\"077bdd8e\",\"22\":\"792701bc\",\"23\":\"d8b9eaff\",\"24\":\"63ec5cac\",\"25\":\"84d0bf7d\",\"26\":\"94391d11\",\"27\":\"b0286349\",\"28\":\"44589fbd\",\"30\":\"122809d7\",\"31\":\"d43f8992\",\"32\":\"ecc6b24e\",\"33\":\"47d0e4b3\",\"34\":\"279006f4\",\"35\":\"5cca1ffb\",\"37\":\"20bbab86\",\"38\":\"76cba1ff\",\"39\":\"622e8489\",\"40\":\"736d4af5\",\"41\":\"a2d9f8b7\",\"42\":\"911fee53\",\"43\":\"5d14604c\",\"44\":\"740c74ff\",\"46\":\"44f38ed3\",\"47\":\"4ef49615\",\"48\":\"5ce7e070\",\"49\":\"0dfc3020\",\"50\":\"41881c23\",\"51\":\"38a8cd5c\",\"52\":\"a9165147\",\"53\":\"63fffc38\",\"54\":\"85c8b90a\",\"55\":\"03b8c755\",\"56\":\"5198f441\",\"57\":\"4cc0daaf\",\"58\":\"86365e8c\",\"59\":\"bf51ed27\",\"60\":\"a23a3eec\",\"61\":\"2292e5e8\",\"62\":\"f50c12ff\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"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,\"56\":1,\"57\":1,\"58\":1,\"59\":1,\"60\":1,\"61\":1,\"62\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"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\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"037b510f\",\"2\":\"31d6cfe0\",\"3\":\"bf839917\",\"4\":\"6dfb7e21\",\"5\":\"6260646a\",\"6\":\"eb686c74\",\"7\":\"fb4bedde\",\"8\":\"2d34330b\",\"9\":\"f284a443\",\"10\":\"aeb3f822\",\"11\":\"7bb0622b\",\"12\":\"f0f99418\",\"13\":\"31d6cfe0\",\"14\":\"8c058a7a\",\"15\":\"31d6cfe0\",\"16\":\"7eb7d317\",\"17\":\"12a8297c\",\"18\":\"cdf852c1\",\"19\":\"8046fb41\",\"20\":\"92ab48a3\",\"21\":\"40873df0\",\"22\":\"5a935f68\",\"23\":\"07827c59\",\"24\":\"91e559d5\",\"25\":\"466858c7\",\"26\":\"5ea077aa\",\"27\":\"ecfb0a9d\",\"28\":\"fd3511d3\",\"30\":\"179a42fc\",\"31\":\"57b46b09\",\"32\":\"50beb090\",\"33\":\"3eee90af\",\"34\":\"288d035b\",\"35\":\"1fe9d108\",\"37\":\"5716d9b3\",\"38\":\"76774ba4\",\"39\":\"8b54592d\",\"40\":\"fd23e5fc\",\"41\":\"f08bc5f3\",\"42\":\"d7bb8063\",\"43\":\"b5f40384\",\"44\":\"e614ee3d\",\"46\":\"31d6cfe0\",\"47\":\"2fd45d08\",\"48\":\"ae54e35c\",\"49\":\"bff100af\",\"50\":\"820320a6\",\"51\":\"35e22f8c\",\"52\":\"6a988500\",\"53\":\"cf875b17\",\"54\":\"866df084\",\"55\":\"96cd221b\",\"56\":\"213ef0c8\",\"57\":\"3a7f5a83\",\"58\":\"d06494b6\",\"59\":\"a69e6a9c\",\"60\":\"b02d1de6\",\"61\":\"11f70350\",\"62\":\"d1a52318\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","36","exports","module","l","e","promises","1","3","4","5","6","7","8","9","10","11","12","14","16","17","18","19","20","21","22","23","24","25","26","27","28","30","31","32","33","34","35","37","38","39","40","41","42","43","44","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","Promise","resolve","reject","href","13","15","0","2","46","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,EAAA,GAGAC,EAAA,CACAC,GAAA,GAMAtB,EAAA,CACAsB,GAAA,GAGAb,EAAA,GAQA,SAAAS,EAAA1B,GAGA,GAAA4B,EAAA5B,GACA,OAAA4B,EAAA5B,GAAA+B,QAGA,IAAAC,EAAAJ,EAAA5B,GAAA,CACAK,EAAAL,EACAiC,GAAA,EACAF,QAAA,IAUA,OANAjB,EAAAd,GAAAa,KAAAmB,EAAAD,QAAAC,IAAAD,QAAAL,GAGAM,EAAAC,GAAA,EAGAD,EAAAD,QAKAL,EAAAQ,EAAA,SAAAjC,GACA,IAAAkC,EAAA,GAKAN,EAAA5B,GAAAkC,EAAA1B,KAAAoB,EAAA5B,IACA,IAAA4B,EAAA5B,IAFA,CAAoBmC,EAAA,EAAAC,EAAA,EAAAC,EAAA,EAAAC,EAAA,EAAAC,EAAA,EAAAC,EAAA,EAAAC,EAAA,EAAAC,EAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,EAAAC,GAAA,GAEpBzF,IACAkC,EAAA1B,KAAAoB,EAAA5B,GAAA,IAAA0F,QAAA,SAAAC,EAAAC,GAIA,IAHA,IAAAC,EAAA,kBAAoCvD,EAAA,WAAAC,EAAA,oBAAAC,EAAA,WAAAC,EAAA,UAAAC,EAAA,aAAAC,GAAA,eAAAC,GAAA,cAAAC,GAAA,SAAAiD,GAAA,SAAAhD,GAAA,QAAAiD,GAAA,YAAAhD,GAAA,WAAAC,GAAA,eAAAC,GAAA,eAAAC,GAAA,cAAAC,GAAA,WAAAC,GAAA,aAAAC,GAAA,oBAAAC,GAAA,mBAAAC,GAAA,gBAAAC,GAAA,UAAAC,GAAA,gBAAAC,GAAA,oBAAAC,GAAA,SAAAC,GAAA,WAAAC,GAAA,uBAAAC,GAAA,oBAAAC,GAAA,oBAAAC,GAAA,YAAAC,GAAA,eAAAC,GAAA,SAAAC,GAAA,cAAAC,GAAA,QAAAC,GAAA,iBAAAC,GAAA,UAAAC,GAAA,oBAAAC,GAAA,qBAAAC,GAAA,SAA0sBzE,OAAA,KAA6BgG,EAAA,WAAA7D,EAAA,WAAA8D,EAAA,WAAA7D,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAiD,GAAA,WAAAhD,GAAA,WAAAiD,GAAA,WAAAhD,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAyB,GAAA,WAAAxB,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,YAAs7BzF,GAAA,aACjsDmG,EAAA1E,EAAA2E,EAAAP,EACAQ,EAAAC,SAAAC,qBAAA,QACAnG,EAAA,EAAmBA,EAAAiG,EAAA/F,OAA6BF,IAAA,CAChD,IACAoG,GADAC,EAAAJ,EAAAjG,IACAsG,aAAA,cAAAD,EAAAC,aAAA,QACA,kBAAAD,EAAAE,MAAAH,IAAAX,GAAAW,IAAAL,GAAA,OAAAR,IAEA,IAAAiB,EAAAN,SAAAC,qBAAA,SACA,IAAAnG,EAAA,EAAmBA,EAAAwG,EAAAtG,OAA8BF,IAAA,CACjD,IAAAqG,EAEA,IADAD,GADAC,EAAAG,EAAAxG,IACAsG,aAAA,gBACAb,GAAAW,IAAAL,EAAA,OAAAR,IAEA,IAAAkB,EAAAP,SAAAQ,cAAA,QACAD,EAAAF,IAAA,aACAE,EAAAE,KAAA,WACAF,EAAAG,OAAArB,EACAkB,EAAAI,QAAA,SAAAC,GACA,IAAAC,EAAAD,KAAAE,QAAAF,EAAAE,OAAAC,KAAAlB,EACAmB,EAAA,IAAAC,MAAA,qBAAAvH,EAAA,cAAAmH,EAAA,KACAG,EAAAH,iBACAvF,EAAA5B,GACA6G,EAAAW,WAAAC,YAAAZ,GACAjB,EAAA0B,IAEAT,EAAAhB,KAAAM,EAEAG,SAAAC,qBAAA,WACAmB,YAAAb,KACKc,KAAA,WACL/F,EAAA5B,GAAA,KAMA,IAAA4H,EAAArH,EAAAP,GACA,OAAA4H,EAGA,GAAAA,EACA1F,EAAA1B,KAAAoH,EAAA,QACK,CAEL,IAAAC,EAAA,IAAAnC,QAAA,SAAAC,EAAAC,GACAgC,EAAArH,EAAAP,GAAA,CAAA2F,EAAAC,KAEA1D,EAAA1B,KAAAoH,EAAA,GAAAC,GAGA,IACAC,EADAC,EAAAzB,SAAAQ,cAAA,UAGAiB,EAAAC,QAAA,QACAD,EAAAE,QAAA,IACAxG,EAAAyG,IACAH,EAAAI,aAAA,QAAA1G,EAAAyG,IAEAH,EAAAV,IAlGA,SAAArH,GACA,OAAAyB,EAAA2E,EAAA,iBAAqD9D,EAAA,WAAAC,EAAA,oBAAAC,EAAA,WAAAC,EAAA,UAAAC,EAAA,aAAAC,GAAA,eAAAC,GAAA,cAAAC,GAAA,SAAAiD,GAAA,SAAAhD,GAAA,QAAAiD,GAAA,YAAAhD,GAAA,WAAAC,GAAA,eAAAC,GAAA,eAAAC,GAAA,cAAAC,GAAA,WAAAC,GAAA,aAAAC,GAAA,oBAAAC,GAAA,mBAAAC,GAAA,gBAAAC,GAAA,UAAAC,GAAA,gBAAAC,GAAA,oBAAAC,GAAA,SAAAC,GAAA,WAAAC,GAAA,uBAAAC,GAAA,oBAAAC,GAAA,oBAAAC,GAAA,YAAAC,GAAA,eAAAC,GAAA,SAAAC,GAAA,cAAAC,GAAA,QAAAC,GAAA,iBAAAC,GAAA,UAAAC,GAAA,oBAAAC,GAAA,qBAAAC,GAAA,SAA0sBzE,OAAA,KAA6BgG,EAAA,WAAA7D,EAAA,WAAA8D,EAAA,WAAA7D,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,EAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAiD,GAAA,WAAAhD,GAAA,WAAAiD,GAAA,WAAAhD,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAyB,GAAA,WAAAxB,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,WAAAC,GAAA,YAAs7BzF,GAAA,YAiGltDoI,CAAApI,GAEA8H,EAAA,SAAAZ,GAEAa,EAAAd,QAAAc,EAAAf,OAAA,KACAqB,aAAAJ,GACA,IAAAK,EAAA/H,EAAAP,GACA,OAAAsI,EAAA,CACA,GAAAA,EAAA,CACA,IAAAC,EAAArB,IAAA,SAAAA,EAAAH,KAAA,UAAAG,EAAAH,MACAyB,EAAAtB,KAAAE,QAAAF,EAAAE,OAAAC,IACAoB,EAAA,IAAAlB,MAAA,iBAAAvH,EAAA,cAAAuI,EAAA,KAAAC,EAAA,KACAC,EAAA1B,KAAAwB,EACAE,EAAAtB,QAAAqB,EACAF,EAAA,GAAAG,GAEAlI,EAAAP,QAAA0I,IAGA,IAAAT,EAAAU,WAAA,WACAb,EAAA,CAAwBf,KAAA,UAAAK,OAAAW,KAClB,MACNA,EAAAd,QAAAc,EAAAf,OAAAc,EACAxB,SAAAsC,KAAAlB,YAAAK,GAGA,OAAArC,QAAAmD,IAAA3G,IAIAT,EAAAqH,EAAAjI,EAGAY,EAAAsH,EAAApH,EAGAF,EAAAuH,EAAA,SAAAlH,EAAAmH,EAAAC,GACAzH,EAAA0H,EAAArH,EAAAmH,IACAxI,OAAA2I,eAAAtH,EAAAmH,EAAA,CAA0CI,YAAA,EAAAC,IAAAJ,KAK1CzH,EAAA8H,EAAA,SAAAzH,GACA,qBAAA0H,eAAAC,aACAhJ,OAAA2I,eAAAtH,EAAA0H,OAAAC,YAAA,CAAwDC,MAAA,WAExDjJ,OAAA2I,eAAAtH,EAAA,cAAiD4H,OAAA,KAQjDjI,EAAAkI,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAjI,EAAAiI,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAArJ,OAAAsJ,OAAA,MAGA,GAFAtI,EAAA8H,EAAAO,GACArJ,OAAA2I,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAjI,EAAAuH,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIArI,EAAAyI,EAAA,SAAAnI,GACA,IAAAmH,EAAAnH,KAAA8H,WACA,WAA2B,OAAA9H,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAuH,EAAAE,EAAA,IAAAA,GACAA,GAIAzH,EAAA0H,EAAA,SAAAgB,EAAAC,GAAsD,OAAA3J,OAAAC,UAAAC,eAAAC,KAAAuJ,EAAAC,IAGtD3I,EAAA2E,EAAA,IAGA3E,EAAA4I,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAA/J,KAAAyJ,KAAAM,GACAA,EAAA/J,KAAAX,EACA0K,IAAAG,QACA,QAAAtK,EAAA,EAAgBA,EAAAmK,EAAAjK,OAAuBF,IAAAP,EAAA0K,EAAAnK,IACvC,IAAAU,EAAA2J,EAIAvJ","file":"mrstatic/js/runtime~main.6f966b6a.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t36: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t36: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.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\"}[chunkId]||chunkId) + \".\" + {\"0\":\"bc874a24\",\"1\":\"bc21c983\",\"2\":\"0417c21c\",\"3\":\"4a2be69d\",\"4\":\"f291e0c7\",\"5\":\"c809bb7b\",\"6\":\"c1cb9f94\",\"7\":\"caf45f11\",\"8\":\"aeb80b54\",\"9\":\"6c515c34\",\"10\":\"cb4e04da\",\"11\":\"003c1591\",\"12\":\"e6d47ce7\",\"13\":\"7a287fd0\",\"14\":\"5ab5c003\",\"15\":\"3ad57444\",\"16\":\"da5e9a14\",\"17\":\"8bad9f73\",\"18\":\"afb95af0\",\"19\":\"4cb0d9de\",\"20\":\"dc030457\",\"21\":\"077bdd8e\",\"22\":\"792701bc\",\"23\":\"d8b9eaff\",\"24\":\"63ec5cac\",\"25\":\"84d0bf7d\",\"26\":\"94391d11\",\"27\":\"b0286349\",\"28\":\"44589fbd\",\"30\":\"122809d7\",\"31\":\"d7c3d74f\",\"32\":\"ecc6b24e\",\"33\":\"47d0e4b3\",\"34\":\"279006f4\",\"35\":\"5cca1ffb\",\"37\":\"20bbab86\",\"38\":\"76cba1ff\",\"39\":\"622e8489\",\"40\":\"736d4af5\",\"41\":\"a2d9f8b7\",\"42\":\"65ce5812\",\"43\":\"5f131f10\",\"44\":\"740c74ff\",\"46\":\"44f38ed3\",\"47\":\"4ef49615\",\"48\":\"5ce7e070\",\"49\":\"0dfc3020\",\"50\":\"41881c23\",\"51\":\"38a8cd5c\",\"52\":\"a9165147\",\"53\":\"63fffc38\",\"54\":\"85c8b90a\",\"55\":\"03b8c755\",\"56\":\"5198f441\",\"57\":\"4cc0daaf\",\"58\":\"86365e8c\",\"59\":\"bf51ed27\",\"60\":\"a23a3eec\",\"61\":\"2292e5e8\",\"62\":\"f50c12ff\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"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,\"56\":1,\"57\":1,\"58\":1,\"59\":1,\"60\":1,\"61\":1,\"62\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"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\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"037b510f\",\"2\":\"31d6cfe0\",\"3\":\"bf839917\",\"4\":\"6dfb7e21\",\"5\":\"6260646a\",\"6\":\"eb686c74\",\"7\":\"fb4bedde\",\"8\":\"2d34330b\",\"9\":\"f284a443\",\"10\":\"aeb3f822\",\"11\":\"7bb0622b\",\"12\":\"f0f99418\",\"13\":\"31d6cfe0\",\"14\":\"8c058a7a\",\"15\":\"31d6cfe0\",\"16\":\"7eb7d317\",\"17\":\"12a8297c\",\"18\":\"cdf852c1\",\"19\":\"8046fb41\",\"20\":\"92ab48a3\",\"21\":\"40873df0\",\"22\":\"5a935f68\",\"23\":\"07827c59\",\"24\":\"91e559d5\",\"25\":\"466858c7\",\"26\":\"5ea077aa\",\"27\":\"ecfb0a9d\",\"28\":\"fd3511d3\",\"30\":\"179a42fc\",\"31\":\"57b46b09\",\"32\":\"50beb090\",\"33\":\"3eee90af\",\"34\":\"288d035b\",\"35\":\"1fe9d108\",\"37\":\"5716d9b3\",\"38\":\"76774ba4\",\"39\":\"8b54592d\",\"40\":\"fd23e5fc\",\"41\":\"f08bc5f3\",\"42\":\"d7bb8063\",\"43\":\"b5f40384\",\"44\":\"e614ee3d\",\"46\":\"31d6cfe0\",\"47\":\"2fd45d08\",\"48\":\"ae54e35c\",\"49\":\"bff100af\",\"50\":\"820320a6\",\"51\":\"35e22f8c\",\"52\":\"6a988500\",\"53\":\"cf875b17\",\"54\":\"866df084\",\"55\":\"96cd221b\",\"56\":\"213ef0c8\",\"57\":\"3a7f5a83\",\"58\":\"d06494b6\",\"59\":\"a69e6a9c\",\"60\":\"b02d1de6\",\"61\":\"11f70350\",\"62\":\"d1a52318\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{1230:function(e,t,a){},1231:function(e,t,a){},1232:function(e,t,a){},1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1303:function(e,t,a){"use strict";a.r(t);a(37);var n,r,s,o=a(11),c=a.n(o),i=a(4),l=a(7),u=a(5),m=a(8),p=a(9),d=a(0),h=a.n(d),f=(a(1230),a(1231),a(45)),g=a(3),v=(a(1232),function(e){function t(e){return Object(i.a)(this,t),Object(u.a)(this,Object(m.a)(t).call(this,e))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this.props.id;return h.a.createElement("div",{className:"common_container",id:e},h.a.createElement("div",{className:"container_top"}),h.a.createElement("div",{className:"container_content"},this.props.title&&h.a.createElement("div",{className:"title_container"},h.a.createElement("i",null),h.a.createElement("p",null,this.props.title),h.a.createElement("i",null)),h.a.Children.map(this.props.children,function(e){return h.a.createElement(h.a.Fragment,null,e)})),h.a.createElement("div",{className:"container_bottom"}))}}]),t}(d.Component)),b=(a(1233),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).computedStyle=function(){return{top:"".concat(a.props.top,"px"),width:"".concat(a.props.width,"px")}},a.closePopup=function(){a.props.mark&&a.props.closePopup()},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"popup__container",onClick:this.closePopup},h.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},h.a.createElement("img",{className:"close__btn",onClick:this.props.closePopup,src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",alt:""}),h.a.Children.map(this.props.children,function(e){return h.a.createElement(h.a.Fragment,null,e)})))}}]),t}(d.Component)),_=a(21),y=a(25),j=a(579),E=a.n(j),O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getLiveInfo=function(){g.d.get("".concat(API.home,"/activity/get_live_info")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;200===n?a.setState({list:r}):c.a.info(s)})},a.subscribe=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():g.d.get("".concat(API["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data,n=t.errno,r=t.data,s=t.msg;200===n?E.a.toDataURL(r.url,function(e,t){a.setState({showMark:!0,subUrl:t,QRCodeUrl:r.url})}):c.a.info(s)})},a.tip=function(){c.a.info("\u4f60\u5df2\u9884\u7ea6\u8be5\u76f4\u64ad")},a.toLivingRoom=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.checkVideo=function(e){var t=a.props.user,n=t.hasError;t.data;if(n)a.toLogin();else{var r=e.split("/")[0];window.location.href="/play/video?id=".concat(r)}},a.closePopup=function(){a.setState({showMark:!1}),a.getLiveInfo()},a.saveImage=function(){var e=Object(g.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.QRCodeUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",2,null,!1):Object(g.a)("generateQRCode",t)},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.state={list:[],showMark:!1,subUrl:"",QRCodeUrl:""},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getLiveInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getLiveInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.showMark,r=t.subUrl;return h.a.createElement("div",{className:"live__container"},n&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:r,alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):null)),h.a.createElement(v,{title:"\u201c\u85aa\u201d\u5e74\u597d\u8bfe\u514d\u8d39\u5b66",id:"year-live"},h.a.createElement("ul",{className:"live__list"},a.length&&a.map(function(t,a){return h.a.createElement("li",{key:a,className:"live_room_item"},h.a.createElement("img",{className:"user__avatar",src:t.avatar,alt:""}),h.a.createElement("div",{className:"live__info"},h.a.createElement("div",{className:"theme"},h.a.createElement("span",null,"\u4e3b\u9898\uff1a"),h.a.createElement("p",null,t.title)),h.a.createElement("div",{className:"info__item"},h.a.createElement("span",null,"\u8bb2\u5e08\uff1a"),h.a.createElement("p",null,t.teacher)),""!=t.transcribe_url&&h.a.createElement("span",{onClick:function(){return e.checkVideo(t.transcribe_url)},className:"order__btn check__video"},"\u70b9\u51fb\u67e5\u770b")))}))))}}]),t}(d.Component))||n,k=(Object(f.g)(O),a(20)),w=a(74),N=(a(1234),a(627),a(52)),I=Object(_.b)(function(e){return{user:e.user}})(r=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getLength=function(){var e=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,n=a.code,r=a.data;200==n&&e.setState({sum:r.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;g.d.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var n=t.data,r=n.code,s=n.data;200===r&&a.setState({bigcourse:Object.assign({},e,{isMore:!1,course:s,courseList:s})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;g.d.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var n=t.data,r=n.errno,s=n.data;200===r&&a.setState({freecourse:Object.assign({},e,{isMore:s.course_info.length>4,course:s.course_info.length>4?s.course_info.filter(function(e,t){return t<4}):s.course_info,courseList:s.course_info})})})},a.fetchGroupCourse=function(){var e=a.state.groupcourse;g.d.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var n=t.data,r=n.code,s=n.data;200===r&&a.setState({groupcourse:Object.assign({},e,{isMore:s.length>4,course:s.length>4?s.filter(function(e,t){return t<4}):s,courseList:s})})})},a.fetchAICourse=function(e,t){g.d.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(n){var r=n.data,s=r.code,o=r.data;200===s&&a.getList(e,o,t)})},a.getList=function(e,t,n){var r=a.state,s=r.basic,o=r.advanced,c=r.higher,i=r.expand;"one"===e&&a.setState({basic:Object.assign({},s,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"two"===e&&a.setState({advanced:Object.assign({},o,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"three"===e&&a.setState({higher:Object.assign({},c,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})})},a.toQQque=function(){Object(g.c)("version")?Object(g.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="http://q.url.cn/s/Vbkup6m?_type=wpa"},a.toCourse=function(e){var t=a.props.history;Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.handleToMore=function(e){var t={};a.state[e].isMore?(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList,courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(k.a)({},t))):(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(k.a)({},t)))},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.freeStudy=function(){a.setState({tofreeStudy:!0})},a.closePopup=function(){a.setState({tofreeStudy:!1})},a.closePopupWish=function(){var e=Object(w.a)(Object(w.a)(a));e.setState({isshowFollow:!1}),setTimeout(function(){e.toJoinList(e.state.wish.id,e.state.wish.key)},200)},a.getQRcodeUrl=function(){var e=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data,n=t.errno,r=t.data,s=t.msg;0==n?(a.setState({qrUrl:r.url}),E.a.toDataURL(r.url,function(e,t){a.setState({followBarcode:t})})):c.a.info(s,2)})},a.addWishList=function(e,t){var n=Object(w.a)(Object(w.a)(a)),r=!a.props.user.hasError;n.setState({wish:{id:e,key:t}}),r?n.isFollow(e,t):n.toLogin()},a.isFollow=function(e,t){var n=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var r=a.data,s=r.code,o=r.data,i=r.msg;200===s?(n.setState({isshowFollow:!o.is_follow}),n.state.isshowFollow?n.getQRcodeUrl():n.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var n=Object(w.a)(Object(w.a)(a));g.d.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,r=a.code,s=a.msg;200==r?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),n.getLength(),"1"===t&&n.fetchAICourse("one",n.state.basic.addshowMore),"2"===t&&n.fetchAICourse("two",n.state.advanced.addshowMore),"3"===t&&n.fetchAICourse("three",n.state.higher.addshowMore),"4"===t&&n.fetchAICourse("four",n.state.expand.addshowMore),"group"===t&&n.fetchGroupCourse()):c.a.info(s,2)})},a.saveImage=function(){var e=Object(g.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.qrUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("generateQRCode",t)},a.saveImage2=function(){var e=Object(g.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){var o=r.info,i=r.removable_data;a.setState({removable:o.removable,currentId:o.removable>0?i[0].id:null})}else c.a.info(s)})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentId,n="";t&&(n="?id=".concat(t)),e?Object(g.c)("version")?a.props.history.push("/box/yearTreasure".concat(n,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/box/yearTreasure".concat(n)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?Object(g.c)("version")?a.props.history.push("/year/yearWish?version=".concat(Object(g.c)("version"))):a.props.history.push("/year/yearWish"):a.toLogin()},a.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.props.history;if(Object(g.c)("version")){var r={title:"\u3010\u4ec5\u5269".concat(t.number,"\u4e2a\u540d\u989d\u3011\u6211").concat(t.price,"\u5143\u62fc\u4e86\u300a").concat(t.course_title,"\u300b"),desc:t.course_title,link:"".concat(API.m,"/togroup?id=").concat(e,"&is_originator=1"),imgUrl:t.image_name};Object(g.a)("toShare",r)}else n.push("/togroup?id=".concat(e))},a.isCountDown=function(e,t){return e?t:""},a.formatTitleAndKey=function(e){var t=null;switch(e){case 1:t={title:"\u57fa\u7840",key:"basic"};break;case 2:t={title:"\u8fdb\u9636",key:"advanced"};break;case 3:t={title:"\u9ad8\u9636",key:"higher"};break;case 4:t={title:"\u6269\u5c55",key:"expand"};break;default:t=null}return t},a.formatCourseData=function(e){var t=a.state,n=t.basic,r=t.advanced,s=t.higher,o=t.expand,c=null;switch(e){case 1:c=n;break;case 2:c=r;break;case 3:c=s;break;case 4:c=o;break;default:c=null}return c},a.toCart=function(e){var t=a.props.history;g.d.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then(function(e){var n=e.data,r=n.code,s=n.msg;200===r||15001===r?Object(g.c)("version")?Object(g.a)("toShoppingCart"):t.push("/shopcart"):4030===r||4040===r?a.toLogin():c.a.info(s,2)})},a.toContinueBargain=function(e,t,n,r){var s=a.props.history;if(Object(g.c)("version")){var o={title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(t,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:"".concat(API.m,"/bargain-middle-page?id=").concat(e,"&bargaincode=").concat(n,"&is_originator=1"),imgUrl:r};Object(g.a)("toShare",o)}else s.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(n,"&is_originator=1"))},a.bargainToOrder=function(e){var t=a.props,n=t.history;t.user.hasError?a.toLogin():Object(g.c)("version")?Object(g.a)("toPay",e):g.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(t){var a=t.data,r=a.errno,s=a.msg;0===r?n.push("/order?id=[".concat(e,"]"),{bargain:1}):c.a.info(s,2)})},a.state={tofreeStudy:!1,basic:{course:[],courseList:[],isMore:!1,addshowMore:!1},advanced:{course:[],courseList:[],isMore:!1,addshowMore:!1},higher:{course:[],courseList:[],isMore:!1,addshowMore:!1},expand:{course:[],courseList:[],isMore:!1,addshowMore:!1},bigcourse:{course:[],courseList:[],isMore:!1},freecourse:{course:[],courseList:[],isMore:!1},groupcourse:{course:[],courseList:[],isMore:!1},isshowFollow:!1,wish:{id:"",key:""},followBarcode:"",qrUrl:"",sum:"",removable:"",currentId:""},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchGroupCourse(),this.fetchAICourse("one",!1),this.fetchAICourse("two",!1),this.fetchAICourse("three",!1),this.fetchAICourse("four",!1)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchGroupCourse(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"render",value:function(){var e=this.state,t=(e.bigcourse,e.freecourse,e.groupcourse,e.basic,e.advanced,e.higher,e.expand,e.removable),a=(e.sum,this.props);a.stage,a.treasureStage;return h.a.createElement("div",{className:"year-index-course"},t>0&&h.a.createElement("div",{className:"nav-right-wish nav-right"},h.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",h.a.createElement("i",{className:"nav-right__number"},t))))}}]),t}(d.Component))||r,C=Object(f.g)(I),L=(a(1235),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).fetchRankInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/ranking")).then(function(e){var t=e.data,n=t.code,r=t.data;200===n&&"{}"!==JSON.stringify(r)&&(r.length>5?a.setState({rank:r.filter(function(e,t){return t<5}),rankList:r,isMore:!0}):a.setState({rank:r,rankList:r,isMore:!1}))})},a.switchMoreRank=function(){var e=a.state,t=e.rankList;e.isMore?a.setState({rank:t,isMore:!1}):a.setState({rank:t.filter(function(e,t){return t<5}),isMore:!0})},a.handleToVip=function(e){var t=a.props.history;e&&(Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e)))},a.state={rank:[],rankList:[],isMore:!1},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.rank,n=t.isMore;return h.a.createElement(h.a.Fragment,null,0!==a.length&&h.a.createElement("div",{"data-skip":"rank"},h.a.createElement("div",{className:"rank-title"},h.a.createElement("i",{className:"rank-title__decorate"}),h.a.createElement("h2",{className:"rank-title__txt"},"\u5b9d\u7bb1\u8fbe\u4eba\u699c"),h.a.createElement("i",{className:"rank-title__decorate"})),h.a.createElement("p",{className:"rank-desc"},"\u5b9d\u7bb1\u6570\u91cf\u524d50\u540d\u53ef\u989d\u5916\u83b7\u5f97\u4e00\u4efd\u5956\u54c1\uff0c\u6570\u91cf\u76f8\u540c\u7684\u7528\u65f6\u77ed\u8005\u6392\u540d\u5728\u524d"),h.a.createElement("dl",{className:"rank-header"},h.a.createElement("dd",{className:"rank-column"},"\u6392\u540d"),h.a.createElement("dd",{className:"rank-column"},"\u7528\u6237"),h.a.createElement("dd",{className:"rank-column"},"\u5b9d\u7bb1\u6570\u91cf"),h.a.createElement("dd",{className:"rank-column"},"\u5956\u54c1")),h.a.createElement("div",{className:"rank-body"},a.map(function(t,a){return h.a.createElement("dl",{className:"rank-item",key:a},h.a.createElement("dd",{className:"rank-column"},a<=2?h.a.createElement("span",{className:"rank-column__number","data-num":a}):h.a.createElement("span",null,a+1)),h.a.createElement("dd",{className:"rank-column"},h.a.createElement("span",{className:"rank-column__name"},t.user_name)),h.a.createElement("dd",{className:"rank-column"},h.a.createElement("span",null,t.num)),h.a.createElement("dd",{className:"rank-column"},t.url?h.a.createElement("a",{className:"rank-column__txt",onClick:function(){return e.handleToVip(t.url)}},t.prize_name):h.a.createElement("span",{className:"rank-column__txt"},t.prize_name)))}),h.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},h.a.createElement("span",{className:"rank-more__txt"},n?"\u5c55\u5f00":"\u6536\u8d77"),h.a.createElement("i",{className:"rank-more__icon","data-more":n})))))}}]),t}(d.Component)),S=(a(1236),a(24)),M=a(36),A=a.n(M),x=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){var o=r.prize_info,i=r.is_my_team,l=r.info,u=r.member,m=r.removable_data,p=r.my_team;a.setState({prize_info:o,is_my_team:i,info:l,member:a.fillTeam(u,i),removable_data:m,my_team:p});var d=null;l.removable>0&&(d=m[0].id),a.props.getRemovable(l.removable,d)}else c.a.info(s)})},a.toYearTreasure=function(e){if(a.props.user.hasError)a.toLogin();else{var t="";if(e){var n=a.state,r=n.removable_data;if(n.info.removable>0){var s=r[0];t="?id=".concat(s.id)}}Object(g.c)("version")?a.props.history.push("/box/yearTreasure".concat(t,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/box/yearTreasure".concat(t))}},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.createTeam=function(){if(a.props.user.hasError)a.toLogin();else{sessionStorage.setItem("showShareTip","1");var e=a.state,t=e.is_my_team,n=e.my_team.treasure_code;t?Object(g.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+n+"&version="+Object(g.c)("version")):window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+n):g.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,a=t.code,n=t.data,r=t.msg;if(200===a){var s=n.treasure_code;Object(g.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+s+"&version="+Object(g.c)("version")):window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+s)}else c.a.info(r)})}},a.fillTeam=function(e,t){var n=e.length;if(a.props.user.hasError)for(var r=0;r<5-n;r++)e.push({head_img:"",user_name:"",nobody:!0});else if(0!==n||t)for(var s=0;s<5-n;s++)e.push({head_img:"",user_name:"",nobody:!0});else{e.push({head_img:A.a.get("avatar_file"),user_name:A.a.get("user_name")});for(var o=0;o<4;o++)e.push({head_img:"",user_name:"",nobody:!0})}return e},a.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,r=t.info,s=r.removable,o=r.total,c=t.member,i="",l=0;a.length>0&&(i=a[0].name,l=a[0].stage_no);var u="";return u=0===o?"\u6211\u7684\u5b9d\u7bb1":0===s?"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1/").concat(s,"\u4e2a\u672a\u5f00"),h.a.createElement("div",{className:"team_info__container"},h.a.createElement("div",{className:"team__member"},h.a.createElement("ul",{className:"member__list"},c&&c.length>0&&c.map(function(e,t){return h.a.createElement("li",{key:t,className:"member__item"},h.a.createElement("div",{className:"avatar__container"},e.nobody?h.a.createElement("img",{className:"head__image",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:""}):h.a.createElement("img",{className:"head__image",src:e.head_img,alt:""}),0===t?h.a.createElement("img",{className:"caption__flag",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png",alt:""}):null,h.a.createElement("div",{className:"shadow"})),h.a.createElement("div",{className:"member__join ".concat(e.nobody?"":"join")}))})),h.a.createElement("div",{className:"box__number"},h.a.createElement("img",{onClick:function(){return e.toYearTreasure(!0)},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("p",{onClick:function(){return e.toYearTreasure(!1)},className:"box__text"},u),h.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),s>0&&h.a.createElement("div",{className:"position__number"},s))),h.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&i&&h.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d").concat(i)))}}]),t}(d.Component),P=Object(S.d)(Object(_.b)(function(e){return{user:e.user}},null),f.g)(x),U=(a(1237),a(10)),z=Object(U.a)(function(){return a.e(40).then(a.bind(null,1259))}),T=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.state={prizes:[],notices:[],rule:[],unfoldList:!1},a.getPrizes=function(){g.d.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;200==n?a.setState({prizes:r.prize_data,notices:r.notices,rule:r.rule}):c.a.info(s,2,null,!1)})},a.showRules=function(){Object(y.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:h.a.createElement("div",{dangerouslySetInnerHTML:{__html:a.state.rule}}),closeIcon:a.closeIcon})},a.showMore=function(){a.setState(function(e){if(a.state.unfoldList)a.bg.style=a.innerBox.style=a.prizeBox.style="";else{var t=parseFloat(getComputedStyle(a.prizeBox,":before").getPropertyValue("height")),n=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),r=a.prizeList.scrollHeight,s=t+r-.12458*t-.595*n+n;a.prizeBox.style.height="".concat(s+27,"px"),a.innerBox.style.height="".concat(r,"px"),a.bg.style.height="".concat(r-n+.12458*t+27,"px")}return{unfoldList:!e.unfoldList}})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices,a=this.state.notices;return h.a.createElement(h.a.Fragment,null,t&&a&&a.length?h.a.createElement(z,{bullets:a}):null,h.a.createElement("div",{className:"prizes-box",ref:function(t){return e.prizeBox=t}},h.a.createElement("a",{href:"javascript:;",className:"rule-btn",onClick:this.showRules},"\u6d3b\u52a8\u89c4\u5219 > "),h.a.createElement("div",{className:"bg",ref:function(t){return e.bg=t}}),h.a.createElement("div",{className:"inner-box",ref:function(t){return e.innerBox=t}},h.a.createElement("ul",{className:"prize-list",ref:function(t){return e.prizeList=t}},this.state.prizes.map(function(e,t){return h.a.createElement("li",{key:t},e.img_name?h.a.createElement("i",{className:"prize-list__image",style:{backgroundImage:"url(".concat(e.img_name,")")}}):h.a.createElement("i",{className:"prize-list__image"}),0!=e.is_captain&&h.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&h.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u4e2a\u5fc5\u4e2d"),e.grant_max?h.a.createElement("div",{className:"bottom-bar"},h.a.createElement("div",{className:"progress-bar"},h.a.createElement("span",{className:"progress",style:{width:"".concat(e.surplus/e.grant_max*100,"%")}})),h.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):h.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))}),h.a.createElement("li",null,h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),h.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?h.a.createElement("div",null,"\u6536\u8d77",h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):h.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),t}(d.Component),D=a(120),R=a(159),B=(a(261),a(1238),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={bulletScreenData:[]},a.initializeBulletScreen=function(){var e=Object(w.a)(Object(w.a)(a)),t=Object(D.a)(Array(19).keys()),n=!1;a.swiper=new R.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var a=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),e.getBulletScreenData().then(function(r){n=!0,a.removeSlide(t),a.appendSlide(e.getSlides(r)),setTimeout(function(){a.autoplay.start(),n=!1})}))}}})},a.getSlides=function(e){return e.map(function(e){return'\n <li class="swiper-slide">\n <img class="avatar" src="'.concat(e.avatar_file,'" alt="">\n <span>').concat(e.user_name," ").concat(e.msg,"</span>\n </li>\n ")})},a.getBulletScreenData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g.d.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var n=t.data,r=n.data;if(200==n.code){if(!e)return r;a.setState({bulletScreenData:r},function(){a.initializeBulletScreen()})}})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getBulletScreenData(!0)}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy()}},{key:"render",value:function(){var e=this.state.bulletScreenData;return h.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},h.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map(function(e,t){return h.a.createElement("li",{className:"swiper-slide",key:t},h.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),h.a.createElement("span",null,e.user_name," ",e.msg))})))}}]),t}(d.Component)),F=function(e){function t(e){return Object(i.a)(this,t),Object(u.a)(this,Object(m.a)(t).call(this,e))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return h.a.createElement(v,{id:"year-treasure",title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},h.a.createElement("div",{style:{textAlign:"center",fontSize:"12px",color:"#FFDC1E",marginTop:"10px"}},"\u9080\u8bf7\u597d\u53cb\u7ec4\u961f\u4e00\u8d77\u5f00\u5b9d\u7bb1\uff0c\u6ee15\u4eba\u540e\u5c06\u968f\u673a\u83b7\u5f97\u4ee5\u4e0b\u5956\u54c1~"),h.a.createElement(T,{showSystemNotices:!0}),h.a.createElement(B,null),h.a.createElement(P,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),h.a.createElement(L,{history:this.props.history}))}}]),t}(d.Component),q=Object(f.g)(F),Q=a(18),H=a.n(Q),W=(a(1239),d.Component,a(26));a.d(t,"default",function(){return V});var V=Object(_.b)(function(e){return{user:e.user}},{setCurrentUser:W.g,startFetchUser:W.h})(s=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={removable:0,currentOpenId:0,treasure_stage:0,activity_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/box_banner.png"},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(N.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){A.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),A.a.get("token")&&A.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.closePopup=function(){a.setState({showMark:!1})},a.getRemovable=function(e,t){},a.getStage=function(){g.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){if(0===Number(r.treasure_stage))return void a.props.history.push("/");a.setState({activity_stage:r.activity_stage,treasure_stage:r.treasure_stage}),r.activity_stage,a.setState({banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/box_banner.png"})}else c.a.info(s,2)})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage(),document.title="AI\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u7206\u6b3e\u597d\u8bfe\uff0c300\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u9001\uff0cAI\u8fdb\u9636\u5b9d\u5178\u6765\u5c31\u9001\uff01-\u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this.state,t=e.banner,a=e.activity_stage,n=e.treasure_stage;return h.a.createElement("div",{className:"year-index"},h.a.createElement("div",{className:"banner-treasure"},h.a.createElement("img",{src:t,alt:""}),h.a.createElement("div",{className:"banner-treasure__decorate"})),1===n&&h.a.createElement(q,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),h.a.createElement(C,{stage:a,treasureStage:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"))),this.state.showMark&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219"),h.a.createElement("p",{className:"sub__rule"},"1. \u6d3b\u52a8\u671f\u95f4\uff083\u670826\u65e5-3\u670831\u65e5\uff09\u53ef\u968f\u65f6\u53c2\u4e0e\u5f00\u5b9d\u7bb1\uff1b",h.a.createElement("br",null),"2. \u5f53\u524d\u961f\u4f0d\u6ee1\u5458\u540e\u53ef\u7ee7\u7eed\u521b\u5efa\u65b0\u961f\u4f0d\uff1b",h.a.createElement("br",null),"3. \u6bcf\u4eba\u6709\u4e00\u6b21\u673a\u4f1a\u52a0\u5165\u597d\u53cb\u7684\u961f\u4f0d\uff1b",h.a.createElement("br",null),"4. \u961f\u4f0d\u6ee1\u5458\u540e\u6240\u6709\u6210\u5458\u5747\u53ef\u968f\u673a\u83b7\u5f97\u5b9d\u7bb1\u5185\u5956\u54c1\uff0c\u961f\u957f\u5956\u52b1\u66f4\u4e30\u539a\u54e6~",h.a.createElement("br",null),"5. \u4ee3\u91d1\u5238\u3001\u8bfe\u7a0b\u7b49\u865a\u62df\u5956\u54c1\u5c06\u76f4\u63a5\u53d1\u653e\u81f3\u8d26\u6237\uff0c\u5b9e\u7269\u5956\u54c1\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4\uff1b",h.a.createElement("br",null),"6. \u73b0\u91d1\u53ef\u63d0\u73b0\uff1a\u6211\u7684 \u2192 \u8d5a\u5956\u5b66\u91d1 \u2192 \u63d0\u73b0\u3002"))),h.a.createElement("div",{className:"btm-rule"},"* \u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709 *"))}}]),t}(d.Component))||s},627:function(e,t,a){"use strict";var n=a(4),r=a(7),s=a(5),o=a(8),c=a(9),i=a(0),l=a.n(i),u=(a(642),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(s.a)(this,Object(o.a)(t).call(this,e))).startCountDown=function(e){if(e){var t=1e3*e,n=0,r=0,s=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),r="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),s="".concat(parseInt((t-36e5*n-6e4*r)/1e3)).padStart(2,0),a.setState({countdown:"".concat(n,"\u65f6").concat(r,"\u5206").concat(s,"\u79d2\u540e\u7ed3\u675f")})},1e3)}},a.state={countdown:""},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.time;this.startCountDown(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.time;this.props.time!=t&&this.startCountDown(t)}},{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id,r=this.state.countdown;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},r&&l.a.createElement("p",{className:"course__time"},r),l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(i.Component));t.a=u},642:function(e,t,a){}}]);
//# sourceMappingURL=treasure-box-home.911fee53.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{1230:function(e,t,a){},1231:function(e,t,a){},1232:function(e,t,a){},1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1303:function(e,t,a){"use strict";a.r(t);a(37);var n,r,s,o=a(11),c=a.n(o),i=a(4),l=a(7),u=a(5),m=a(8),p=a(9),d=a(0),h=a.n(d),f=(a(1230),a(1231),a(45)),g=a(3),v=(a(1232),function(e){function t(e){return Object(i.a)(this,t),Object(u.a)(this,Object(m.a)(t).call(this,e))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this.props.id;return h.a.createElement("div",{className:"common_container",id:e},h.a.createElement("div",{className:"container_top"}),h.a.createElement("div",{className:"container_content"},this.props.title&&h.a.createElement("div",{className:"title_container"},h.a.createElement("i",null),h.a.createElement("p",null,this.props.title),h.a.createElement("i",null)),h.a.Children.map(this.props.children,function(e){return h.a.createElement(h.a.Fragment,null,e)})),h.a.createElement("div",{className:"container_bottom"}))}}]),t}(d.Component)),b=(a(1233),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).computedStyle=function(){return{top:"".concat(a.props.top,"px"),width:"".concat(a.props.width,"px")}},a.closePopup=function(){a.props.mark&&a.props.closePopup()},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"popup__container",onClick:this.closePopup},h.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},h.a.createElement("img",{className:"close__btn",onClick:this.props.closePopup,src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",alt:""}),h.a.Children.map(this.props.children,function(e){return h.a.createElement(h.a.Fragment,null,e)})))}}]),t}(d.Component)),_=a(21),y=a(25),j=a(579),E=a.n(j),O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getLiveInfo=function(){g.d.get("".concat(API.home,"/activity/get_live_info")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;200===n?a.setState({list:r}):c.a.info(s)})},a.subscribe=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():g.d.get("".concat(API["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data,n=t.errno,r=t.data,s=t.msg;200===n?E.a.toDataURL(r.url,function(e,t){a.setState({showMark:!0,subUrl:t,QRCodeUrl:r.url})}):c.a.info(s)})},a.tip=function(){c.a.info("\u4f60\u5df2\u9884\u7ea6\u8be5\u76f4\u64ad")},a.toLivingRoom=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.checkVideo=function(e){var t=a.props.user,n=t.hasError;t.data;if(n)a.toLogin();else{var r=e.split("/")[0];window.location.href="/play/video?id=".concat(r)}},a.closePopup=function(){a.setState({showMark:!1}),a.getLiveInfo()},a.saveImage=function(){var e=Object(g.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.QRCodeUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",2,null,!1):Object(g.a)("generateQRCode",t)},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.state={list:[],showMark:!1,subUrl:"",QRCodeUrl:""},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getLiveInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getLiveInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.showMark,r=t.subUrl;return h.a.createElement("div",{className:"live__container"},n&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:r,alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):null)),h.a.createElement(v,{title:"\u201c\u85aa\u201d\u5e74\u597d\u8bfe\u514d\u8d39\u5b66",id:"year-live"},h.a.createElement("ul",{className:"live__list"},a.length&&a.map(function(t,a){return h.a.createElement("li",{key:a,className:"live_room_item"},h.a.createElement("img",{className:"user__avatar",src:t.avatar,alt:""}),h.a.createElement("div",{className:"live__info"},h.a.createElement("div",{className:"theme"},h.a.createElement("span",null,"\u4e3b\u9898\uff1a"),h.a.createElement("p",null,t.title)),h.a.createElement("div",{className:"info__item"},h.a.createElement("span",null,"\u8bb2\u5e08\uff1a"),h.a.createElement("p",null,t.teacher)),""!=t.transcribe_url&&h.a.createElement("span",{onClick:function(){return e.checkVideo(t.transcribe_url)},className:"order__btn check__video"},"\u70b9\u51fb\u67e5\u770b")))}))))}}]),t}(d.Component))||n,k=(Object(f.g)(O),a(20)),w=a(74),N=(a(1234),a(627),a(52)),I=Object(_.b)(function(e){return{user:e.user}})(r=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getLength=function(){var e=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,n=a.code,r=a.data;200==n&&e.setState({sum:r.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;g.d.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var n=t.data,r=n.code,s=n.data;200===r&&a.setState({bigcourse:Object.assign({},e,{isMore:!1,course:s,courseList:s})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;g.d.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var n=t.data,r=n.errno,s=n.data;200===r&&a.setState({freecourse:Object.assign({},e,{isMore:s.course_info.length>4,course:s.course_info.length>4?s.course_info.filter(function(e,t){return t<4}):s.course_info,courseList:s.course_info})})})},a.fetchGroupCourse=function(){var e=a.state.groupcourse;g.d.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var n=t.data,r=n.code,s=n.data;200===r&&a.setState({groupcourse:Object.assign({},e,{isMore:s.length>4,course:s.length>4?s.filter(function(e,t){return t<4}):s,courseList:s})})})},a.fetchAICourse=function(e,t){g.d.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(n){var r=n.data,s=r.code,o=r.data;200===s&&a.getList(e,o,t)})},a.getList=function(e,t,n){var r=a.state,s=r.basic,o=r.advanced,c=r.higher,i=r.expand;"one"===e&&a.setState({basic:Object.assign({},s,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"two"===e&&a.setState({advanced:Object.assign({},o,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"three"===e&&a.setState({higher:Object.assign({},c,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})})},a.toQQque=function(){Object(g.c)("version")?Object(g.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="http://q.url.cn/s/Vbkup6m?_type=wpa"},a.toCourse=function(e){var t=a.props.history;Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.handleToMore=function(e){var t={};a.state[e].isMore?(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList,courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(k.a)({},t))):(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(k.a)({},t)))},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.freeStudy=function(){a.setState({tofreeStudy:!0})},a.closePopup=function(){a.setState({tofreeStudy:!1})},a.closePopupWish=function(){var e=Object(w.a)(Object(w.a)(a));e.setState({isshowFollow:!1}),setTimeout(function(){e.toJoinList(e.state.wish.id,e.state.wish.key)},200)},a.getQRcodeUrl=function(){var e=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data,n=t.errno,r=t.data,s=t.msg;0==n?(a.setState({qrUrl:r.url}),E.a.toDataURL(r.url,function(e,t){a.setState({followBarcode:t})})):c.a.info(s,2)})},a.addWishList=function(e,t){var n=Object(w.a)(Object(w.a)(a)),r=!a.props.user.hasError;n.setState({wish:{id:e,key:t}}),r?n.isFollow(e,t):n.toLogin()},a.isFollow=function(e,t){var n=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var r=a.data,s=r.code,o=r.data,i=r.msg;200===s?(n.setState({isshowFollow:!o.is_follow}),n.state.isshowFollow?n.getQRcodeUrl():n.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var n=Object(w.a)(Object(w.a)(a));g.d.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,r=a.code,s=a.msg;200==r?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),n.getLength(),"1"===t&&n.fetchAICourse("one",n.state.basic.addshowMore),"2"===t&&n.fetchAICourse("two",n.state.advanced.addshowMore),"3"===t&&n.fetchAICourse("three",n.state.higher.addshowMore),"4"===t&&n.fetchAICourse("four",n.state.expand.addshowMore),"group"===t&&n.fetchGroupCourse()):c.a.info(s,2)})},a.saveImage=function(){var e=Object(g.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.qrUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("generateQRCode",t)},a.saveImage2=function(){var e=Object(g.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){var o=r.info,i=r.removable_data;a.setState({removable:o.removable,currentId:o.removable>0?i[0].id:null})}else c.a.info(s)})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentId,n="";t&&(n="?id=".concat(t)),e?Object(g.c)("version")?a.props.history.push("/box/yearTreasure".concat(n,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/box/yearTreasure".concat(n)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?Object(g.c)("version")?a.props.history.push("/year/yearWish?version=".concat(Object(g.c)("version"))):a.props.history.push("/year/yearWish"):a.toLogin()},a.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.props.history;if(Object(g.c)("version")){var r={title:"\u3010\u4ec5\u5269".concat(t.number,"\u4e2a\u540d\u989d\u3011\u6211").concat(t.price,"\u5143\u62fc\u4e86\u300a").concat(t.course_title,"\u300b"),desc:t.course_title,link:"".concat(API.m,"/togroup?id=").concat(e,"&is_originator=1"),imgUrl:t.image_name};Object(g.a)("toShare",r)}else n.push("/togroup?id=".concat(e))},a.isCountDown=function(e,t){return e?t:""},a.formatTitleAndKey=function(e){var t=null;switch(e){case 1:t={title:"\u57fa\u7840",key:"basic"};break;case 2:t={title:"\u8fdb\u9636",key:"advanced"};break;case 3:t={title:"\u9ad8\u9636",key:"higher"};break;case 4:t={title:"\u6269\u5c55",key:"expand"};break;default:t=null}return t},a.formatCourseData=function(e){var t=a.state,n=t.basic,r=t.advanced,s=t.higher,o=t.expand,c=null;switch(e){case 1:c=n;break;case 2:c=r;break;case 3:c=s;break;case 4:c=o;break;default:c=null}return c},a.toCart=function(e){var t=a.props.history;g.d.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then(function(e){var n=e.data,r=n.code,s=n.msg;200===r||15001===r?Object(g.c)("version")?Object(g.a)("toShoppingCart"):t.push("/shopcart"):4030===r||4040===r?a.toLogin():c.a.info(s,2)})},a.toContinueBargain=function(e,t,n,r){var s=a.props.history;if(Object(g.c)("version")){var o={title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(t,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:"".concat(API.m,"/bargain-middle-page?id=").concat(e,"&bargaincode=").concat(n,"&is_originator=1"),imgUrl:r};Object(g.a)("toShare",o)}else s.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(n,"&is_originator=1"))},a.bargainToOrder=function(e){var t=a.props,n=t.history;t.user.hasError?a.toLogin():Object(g.c)("version")?Object(g.a)("toPay",e):g.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(t){var a=t.data,r=a.errno,s=a.msg;0===r?n.push("/order?id=[".concat(e,"]"),{bargain:1}):c.a.info(s,2)})},a.state={tofreeStudy:!1,basic:{course:[],courseList:[],isMore:!1,addshowMore:!1},advanced:{course:[],courseList:[],isMore:!1,addshowMore:!1},higher:{course:[],courseList:[],isMore:!1,addshowMore:!1},expand:{course:[],courseList:[],isMore:!1,addshowMore:!1},bigcourse:{course:[],courseList:[],isMore:!1},freecourse:{course:[],courseList:[],isMore:!1},groupcourse:{course:[],courseList:[],isMore:!1},isshowFollow:!1,wish:{id:"",key:""},followBarcode:"",qrUrl:"",sum:"",removable:"",currentId:""},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchGroupCourse(),this.fetchAICourse("one",!1),this.fetchAICourse("two",!1),this.fetchAICourse("three",!1),this.fetchAICourse("four",!1)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchGroupCourse(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"render",value:function(){var e=this.state,t=(e.bigcourse,e.freecourse,e.groupcourse,e.basic,e.advanced,e.higher,e.expand,e.removable),a=(e.sum,this.props);a.stage,a.treasureStage;return h.a.createElement("div",{className:"year-index-course"},t>0&&h.a.createElement("div",{className:"nav-right-wish nav-right"},h.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",h.a.createElement("i",{className:"nav-right__number"},t))))}}]),t}(d.Component))||r,C=Object(f.g)(I),L=(a(1235),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).fetchRankInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/ranking")).then(function(e){var t=e.data,n=t.code,r=t.data;200===n&&"{}"!==JSON.stringify(r)&&(r.length>5?a.setState({rank:r.filter(function(e,t){return t<5}),rankList:r,isMore:!0}):a.setState({rank:r,rankList:r,isMore:!1}))})},a.switchMoreRank=function(){var e=a.state,t=e.rankList;e.isMore?a.setState({rank:t,isMore:!1}):a.setState({rank:t.filter(function(e,t){return t<5}),isMore:!0})},a.handleToVip=function(e){var t=a.props.history;e&&(Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e)))},a.state={rank:[],rankList:[],isMore:!1},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.rank,n=t.isMore;return h.a.createElement(h.a.Fragment,null,0!==a.length&&h.a.createElement("div",{"data-skip":"rank"},h.a.createElement("div",{className:"rank-title"},h.a.createElement("i",{className:"rank-title__decorate"}),h.a.createElement("h2",{className:"rank-title__txt"},"\u5b9d\u7bb1\u8fbe\u4eba\u699c"),h.a.createElement("i",{className:"rank-title__decorate"})),h.a.createElement("p",{className:"rank-desc"},"\u5b9d\u7bb1\u6570\u91cf\u524d50\u540d\u53ef\u989d\u5916\u83b7\u5f97\u4e00\u4efd\u5956\u54c1\uff0c\u6570\u91cf\u76f8\u540c\u7684\u7528\u65f6\u77ed\u8005\u6392\u540d\u5728\u524d"),h.a.createElement("dl",{className:"rank-header"},h.a.createElement("dd",{className:"rank-column"},"\u6392\u540d"),h.a.createElement("dd",{className:"rank-column"},"\u7528\u6237"),h.a.createElement("dd",{className:"rank-column"},"\u5b9d\u7bb1\u6570\u91cf"),h.a.createElement("dd",{className:"rank-column"},"\u5956\u54c1")),h.a.createElement("div",{className:"rank-body"},a.map(function(t,a){return h.a.createElement("dl",{className:"rank-item",key:a},h.a.createElement("dd",{className:"rank-column"},a<=2?h.a.createElement("span",{className:"rank-column__number","data-num":a}):h.a.createElement("span",null,a+1)),h.a.createElement("dd",{className:"rank-column"},h.a.createElement("span",{className:"rank-column__name"},t.user_name)),h.a.createElement("dd",{className:"rank-column"},h.a.createElement("span",null,t.num)),h.a.createElement("dd",{className:"rank-column"},t.url?h.a.createElement("a",{className:"rank-column__txt",onClick:function(){return e.handleToVip(t.url)}},t.prize_name):h.a.createElement("span",{className:"rank-column__txt"},t.prize_name)))}),h.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},h.a.createElement("span",{className:"rank-more__txt"},n?"\u5c55\u5f00":"\u6536\u8d77"),h.a.createElement("i",{className:"rank-more__icon","data-more":n})))))}}]),t}(d.Component)),S=(a(1236),a(24)),M=a(36),x=a.n(M),A=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){var o=r.prize_info,i=r.is_my_team,l=r.info,u=r.member,m=r.removable_data,p=r.my_team;a.setState({prize_info:o,is_my_team:i,info:l,member:a.fillTeam(u,i),removable_data:m,my_team:p});var d=null;l.removable>0&&(d=m[0].id),a.props.getRemovable(l.removable,d)}else c.a.info(s)})},a.toYearTreasure=function(e){if(a.props.user.hasError)a.toLogin();else{var t="";if(e){var n=a.state,r=n.removable_data;if(n.info.removable>0){var s=r[0];t="?id=".concat(s.id)}}Object(g.c)("version")?a.props.history.push("/box/yearTreasure".concat(t,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/box/yearTreasure".concat(t))}},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.createTeam=function(){if(a.props.user.hasError)a.toLogin();else{sessionStorage.setItem("showShareTip","1");var e=a.state,t=e.is_my_team,n=e.my_team.treasure_code;t?Object(g.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+n+"&version="+Object(g.c)("version")):window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+n):g.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,a=t.code,n=t.data,r=t.msg;if(200===a){var s=n.treasure_code;Object(g.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+s+"&version="+Object(g.c)("version")):window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+s)}else c.a.info(r)})}},a.fillTeam=function(e,t){var n=e.length;if(a.props.user.hasError)for(var r=0;r<5-n;r++)e.push({head_img:"",user_name:"",nobody:!0});else if(0!==n||t)for(var s=0;s<5-n;s++)e.push({head_img:"",user_name:"",nobody:!0});else{e.push({head_img:x.a.get("avatar_file"),user_name:x.a.get("user_name")});for(var o=0;o<4;o++)e.push({head_img:"",user_name:"",nobody:!0})}return e},a.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,r=t.info,s=r.removable,o=r.total,c=t.member,i="",l=0;a.length>0&&(i=a[0].name,l=a[0].stage_no);var u="";return u=0===o?"\u6211\u7684\u5b9d\u7bb1":0===s?"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1/").concat(s,"\u4e2a\u672a\u5f00"),h.a.createElement("div",{className:"team_info__container"},h.a.createElement("div",{className:"team__member"},h.a.createElement("ul",{className:"member__list"},c&&c.length>0&&c.map(function(e,t){return h.a.createElement("li",{key:t,className:"member__item"},h.a.createElement("div",{className:"avatar__container"},e.nobody?h.a.createElement("img",{className:"head__image",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:""}):h.a.createElement("img",{className:"head__image",src:e.head_img,alt:""}),0===t?h.a.createElement("img",{className:"caption__flag",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png",alt:""}):null,h.a.createElement("div",{className:"shadow"})),h.a.createElement("div",{className:"member__join ".concat(e.nobody?"":"join")}))})),h.a.createElement("div",{className:"box__number"},h.a.createElement("img",{onClick:function(){return e.toYearTreasure(!0)},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("p",{onClick:function(){return e.toYearTreasure(!1)},className:"box__text"},u),h.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),s>0&&h.a.createElement("div",{className:"position__number"},s))),h.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&i&&h.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d").concat(i)))}}]),t}(d.Component),P=Object(S.d)(Object(_.b)(function(e){return{user:e.user}},null),f.g)(A),U=(a(1237),a(10)),z=Object(U.a)(function(){return a.e(40).then(a.bind(null,1259))}),T=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.state={prizes:[],notices:[],rule:[],unfoldList:!1},a.getPrizes=function(){g.d.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;200==n?a.setState({prizes:r.prize_data,notices:r.notices,rule:r.rule}):c.a.info(s,2,null,!1)})},a.showRules=function(){Object(y.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:h.a.createElement("div",{dangerouslySetInnerHTML:{__html:a.state.rule}}),closeIcon:a.closeIcon})},a.showMore=function(){a.setState(function(e){if(a.state.unfoldList)a.bg.style=a.innerBox.style=a.prizeBox.style="";else{var t=parseFloat(getComputedStyle(a.prizeBox,":before").getPropertyValue("height")),n=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),r=a.prizeList.scrollHeight,s=t+r-.12458*t-.595*n+n;a.prizeBox.style.height="".concat(s+27,"px"),a.innerBox.style.height="".concat(r,"px"),a.bg.style.height="".concat(r-n+.12458*t+27,"px")}return{unfoldList:!e.unfoldList}})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices,a=this.state.notices;return h.a.createElement(h.a.Fragment,null,t&&a&&a.length?h.a.createElement(z,{bullets:a}):null,h.a.createElement("div",{className:"prizes-box",ref:function(t){return e.prizeBox=t}},h.a.createElement("a",{href:"javascript:;",className:"rule-btn",onClick:this.showRules},"\u6d3b\u52a8\u89c4\u5219 > "),h.a.createElement("div",{className:"bg",ref:function(t){return e.bg=t}}),h.a.createElement("div",{className:"inner-box",ref:function(t){return e.innerBox=t}},h.a.createElement("ul",{className:"prize-list",ref:function(t){return e.prizeList=t}},this.state.prizes.map(function(e,t){return h.a.createElement("li",{key:t},e.img_name?h.a.createElement("i",{className:"prize-list__image",style:{backgroundImage:"url(".concat(e.img_name,")")}}):h.a.createElement("i",{className:"prize-list__image"}),0!=e.is_captain&&h.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&h.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u4e2a\u5fc5\u4e2d"),e.grant_max?h.a.createElement("div",{className:"bottom-bar"},h.a.createElement("div",{className:"progress-bar"},h.a.createElement("span",{className:"progress",style:{width:"".concat(e.surplus/e.grant_max*100,"%")}})),h.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):h.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))}),h.a.createElement("li",null,h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),h.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?h.a.createElement("div",null,"\u6536\u8d77",h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):h.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),t}(d.Component),D=a(120),R=a(159),B=(a(261),a(1238),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={bulletScreenData:[]},a.initializeBulletScreen=function(){var e=Object(w.a)(Object(w.a)(a)),t=Object(D.a)(Array(19).keys()),n=!1;a.swiper=new R.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var a=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),e.getBulletScreenData().then(function(r){n=!0,a.removeSlide(t),a.appendSlide(e.getSlides(r)),setTimeout(function(){a.autoplay.start(),n=!1})}))}}})},a.getSlides=function(e){return e.map(function(e){return'\n <li class="swiper-slide">\n <img class="avatar" src="'.concat(e.avatar_file,'" alt="">\n <span>').concat(e.user_name," ").concat(e.msg,"</span>\n </li>\n ")})},a.getBulletScreenData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g.d.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var n=t.data,r=n.data;if(200==n.code){if(!e)return r;a.setState({bulletScreenData:r},function(){a.initializeBulletScreen()})}})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getBulletScreenData(!0)}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy()}},{key:"render",value:function(){var e=this.state.bulletScreenData;return h.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},h.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map(function(e,t){return h.a.createElement("li",{className:"swiper-slide",key:t},h.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),h.a.createElement("span",null,e.user_name," ",e.msg))})))}}]),t}(d.Component)),F=function(e){function t(e){return Object(i.a)(this,t),Object(u.a)(this,Object(m.a)(t).call(this,e))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return h.a.createElement(v,{id:"year-treasure",title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},h.a.createElement("div",{style:{textAlign:"center",fontSize:"12px",color:"#FFDC1E",marginTop:"10px"}},"\u9080\u8bf7\u597d\u53cb\u7ec4\u961f\u4e00\u8d77\u5f00\u5b9d\u7bb1\uff0c\u6ee15\u4eba\u540e\u5c06\u968f\u673a\u83b7\u5f97\u4ee5\u4e0b\u5956\u54c1~"),h.a.createElement(T,{showSystemNotices:!0}),h.a.createElement(B,null),h.a.createElement(P,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),h.a.createElement(L,{history:this.props.history}))}}]),t}(d.Component),q=Object(f.g)(F),Q=a(18),H=a.n(Q),V=(a(1239),d.Component,a(26));a.d(t,"default",function(){return W});var W=Object(_.b)(function(e){return{user:e.user}},{setCurrentUser:V.g,startFetchUser:V.h})(s=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={removable:0,currentOpenId:0,treasure_stage:0,activity_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/box_banner.png"},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(N.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){x.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),x.a.get("token")&&x.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.closePopup=function(){a.setState({showMark:!1})},a.getRemovable=function(e,t){},a.getStage=function(){g.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){if(0===Number(r.treasure_stage))return void a.props.history.push("/");a.setState({activity_stage:r.activity_stage,treasure_stage:r.treasure_stage}),r.activity_stage,a.setState({banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/box_banner.png"})}else c.a.info(s,2)})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage(),document.title="AI\u5c31\u4e1a\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u62ffVIP\u5e74\u4f1a\u5458\uff0c200\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u5305\u90ae\u9001\uff01- \u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this.state,t=e.banner,a=e.activity_stage,n=e.treasure_stage;return h.a.createElement("div",{className:"year-index"},h.a.createElement("div",{className:"banner-treasure"},h.a.createElement("img",{src:t,alt:""}),h.a.createElement("div",{className:"banner-treasure__decorate"})),1===n&&h.a.createElement(q,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),h.a.createElement(C,{stage:a,treasureStage:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"))),this.state.showMark&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219"),h.a.createElement("p",{className:"sub__rule"},"1. \u6d3b\u52a8\u671f\u95f4\uff083\u670826\u65e5-3\u670831\u65e5\uff09\u53ef\u968f\u65f6\u53c2\u4e0e\u5f00\u5b9d\u7bb1\uff1b",h.a.createElement("br",null),"2. \u5f53\u524d\u961f\u4f0d\u6ee1\u5458\u540e\u53ef\u7ee7\u7eed\u521b\u5efa\u65b0\u961f\u4f0d\uff1b",h.a.createElement("br",null),"3. \u6bcf\u4eba\u6709\u4e00\u6b21\u673a\u4f1a\u52a0\u5165\u597d\u53cb\u7684\u961f\u4f0d\uff1b",h.a.createElement("br",null),"4. \u961f\u4f0d\u6ee1\u5458\u540e\u6240\u6709\u6210\u5458\u5747\u53ef\u968f\u673a\u83b7\u5f97\u5b9d\u7bb1\u5185\u5956\u54c1\uff0c\u961f\u957f\u5956\u52b1\u66f4\u4e30\u539a\u54e6~",h.a.createElement("br",null),"5. \u4ee3\u91d1\u5238\u3001\u8bfe\u7a0b\u7b49\u865a\u62df\u5956\u54c1\u5c06\u76f4\u63a5\u53d1\u653e\u81f3\u8d26\u6237\uff0c\u5b9e\u7269\u5956\u54c1\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4\uff1b",h.a.createElement("br",null),"6. \u73b0\u91d1\u53ef\u63d0\u73b0\uff1a\u6211\u7684 \u2192 \u8d5a\u5956\u5b66\u91d1 \u2192 \u63d0\u73b0\u3002"))),h.a.createElement("div",{className:"btm-rule"},"* \u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709 *"))}}]),t}(d.Component))||s},627:function(e,t,a){"use strict";var n=a(4),r=a(7),s=a(5),o=a(8),c=a(9),i=a(0),l=a.n(i),u=(a(642),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(s.a)(this,Object(o.a)(t).call(this,e))).startCountDown=function(e){if(e){var t=1e3*e,n=0,r=0,s=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),r="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),s="".concat(parseInt((t-36e5*n-6e4*r)/1e3)).padStart(2,0),a.setState({countdown:"".concat(n,"\u65f6").concat(r,"\u5206").concat(s,"\u79d2\u540e\u7ed3\u675f")})},1e3)}},a.state={countdown:""},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.time;this.startCountDown(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.time;this.props.time!=t&&this.startCountDown(t)}},{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id,r=this.state.countdown;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},r&&l.a.createElement("p",{className:"course__time"},r),l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(i.Component));t.a=u},642:function(e,t,a){}}]);
//# sourceMappingURL=treasure-box-home.65ce5812.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{1240:function(e,t,a){},1241:function(e,t,a){},1242:function(e,t,a){},1243:function(e,t,a){},1244:function(e,t,a){},1245:function(e,t,a){},1306:function(e,t,a){"use strict";a.r(t);var n,s=a(4),i=a(7),r=a(5),o=a(8),c=a(9),l=a(0),m=a.n(l),d=a(21),u=a(25),p=a(740),h=a(742),f=a(744),_=(a(1240),function(e){console.log(e);var t=e.data,a=t.team_num,n=void 0===a?1:a,s=t.lack_member,i=void 0===s?4:s,r=t.member,o=void 0===r?[]:r,c=e.handleToInvite,l=new Array(5).fill({});return m.a.createElement("div",{className:"team-success"},m.a.createElement("h2",{className:"team-success__title"},"\u521b\u5efa\u6210\u529f"),m.a.createElement("p",{className:"team-success__tip"},m.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",m.a.createElement("span",null,i),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),m.a.createElement("i",{className:"team-success__icon"}),m.a.createElement("ul",{className:"team-success__member members"},l.map(function(e,t){var a=o[t];return m.a.createElement("li",{className:"member-item",key:t},a&&a.is_captain&&m.a.createElement("sup",{className:"member-item__captain"},"\u961f\u957f"),m.a.createElement("img",{className:"member-item__avatar",src:a?a.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),m.a.createElement("button",{type:"button",className:"team-success__button",onClick:c},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d"))}),b=a(18),v=a.n(b),E=(a(1241),a(3)),y=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).initMemberInfo=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props,n=t.data,s=t.userInfo,i="{}"!==JSON.stringify(e)?e:n,r=i.member,o=r.length-5;o<0;o++)r.push({});a.setState({team:Object.assign({},i,{member:r}),currentMember:s.uid?r.filter(function(e){return e.uid==s.uid})[0]:{}})},a.computedClass=function(e){var t=a.props.data.is_open,n=a.state.currentMember;return v()("team-member__item",{active:e===n.uid&&t})},a.computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.toCheckPrize=function(e){var t=a.state.team,n=t.is_open,s=t.member;if(n){var i=(void 0===s?[]:s).filter(function(t){return t.uid===e});a.setState({currentMember:i[0]})}},a.state={team:{},currentMember:{}},a}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.initMemberInfo()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,a=e.data;a.is_open!=t.is_open&&this.initMemberInfo(a)}},{key:"render",value:function(){var e=this,t=this.state,a=t.team,n=a.is_captain,s=a.status,i=a.team_num,r=a.lack_member,o=a.is_open,c=a.treasure_code,l=a.member,d=void 0===l?[]:l,u=t.currentMember,p=this.props,h=p.toSplitTreasure,f=p.userInfo,_=p.children;return m.a.createElement("div",{className:"team-container","data-skip":"team"},!n&&m.a.createElement("i",{className:"team-friend"},"\u53cb"),1===s?m.a.createElement("i",{className:"team-status"},"\u7ec4\u961f\u4e2d.."):m.a.createElement("i",{className:"team-decorate"}),n?m.a.createElement("h2",{className:"team-title"},i,"\u53f7\u961f\u4f0d"):m.a.createElement("h2",{className:"team-title"},"\u597d\u53cb\u961f\u4f0d"),1===s?m.a.createElement("p",{className:"team-desc"},"\u8fd8\u5dee",r,"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6\uff5e"):m.a.createElement("p",{className:"team-desc"},"\u7ec4\u961f\u6210\u529f"),m.a.createElement("div",{className:"team-member"},d.map(function(t,a){return m.a.createElement("div",{className:e.computedClass(t.uid),onClick:function(){return e.toCheckPrize(t.uid)},key:a,style:e.computedBg(t.head_img)},t.is_captain&&m.a.createElement("span",{className:"team-member__captain"},"\u961f\u957f"))})),m.a.createElement("div",{className:"team-footer","data-layout":o?"column":"row"},1===s&&m.a.createElement(m.a.Fragment,null,Object(E.c)("version")?n?m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/box/landing?treasure_code=".concat(c,"&origin=1&version=").concat(Object(E.c)("version"))},"\u7ee7\u7eed\u9080\u8bf7\u961f\u53cb"):m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/box/landing?treasure_code=".concat(c,"&origin=2&version=").concat(Object(E.c)("version"))},"\u5e2e\u597d\u53cb\u5b8c\u6210\u7ec4\u961f"):n?m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/box/landing?treasure_code=".concat(c,"&origin=1")},"\u7ee7\u7eed\u9080\u8bf7\u961f\u53cb"):m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/box/landing?treasure_code=".concat(c,"&origin=2")},"\u5e2e\u597d\u53cb\u5b8c\u6210\u7ec4\u961f")),2===s&&!o&&m.a.createElement(m.a.Fragment,null,m.a.createElement("span",{className:"team-icon","data-direction":"left"}),m.a.createElement("span",{className:"team-button--split",onClick:h}),m.a.createElement("span",{className:"team-icon","data-direction":"right"})),2===s&&o&&m.a.createElement(m.a.Fragment,null,u.prize_name?m.a.createElement("p",{className:"team-prize"},u.prize_name):m.a.createElement("p",{className:"team-prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"),u.uid==f.uid?_:null)))}}]),t}(l.Component),N=(a(1242),function(e){var t=e.data,a=t.bind_phone,n=t.bind_address,s=t.prize_type,i=e.handleToBindPhone,r=e.handleToBindAddress,o=e.toComposeCoupon,c=e.toUseCoupon,l=e.toCourseList,d=e.toFecthMoney;return m.a.createElement(m.a.Fragment,null,a&&m.a.createElement("a",{className:"team-result",onClick:i},m.a.createElement("span",null,"\u7ed1\u5b9a\u624b\u673a\u53f7")),!a&&n&&m.a.createElement("a",{className:"team-result",onClick:r},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&1===s&&m.a.createElement("a",{className:"team-result",onClick:r},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&6===s&&m.a.createElement("a",{className:"team-result",onClick:o},"\u53ef\u5408\u6210\u4ee3\u91d1\u5238\u5728\u8d2d\u8bfe\u65f6\u4f7f\u7528\uff0c",m.a.createElement("span",null,"\u53bb\u5408\u6210")),!a&&!n&&3===s&&m.a.createElement("a",{className:"team-result",onClick:c},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&4===s&&m.a.createElement("a",{className:"team-result",onClick:l},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&7===s&&m.a.createElement("a",{className:"team-result",onClick:d},"\u5df2\u5b58\u5165\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u63d0\u73b0")),!a&&!n&&2===s&&m.a.createElement("a",{className:"team-result"},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237"),!a&&!n&&5===s&&m.a.createElement("a",{className:"team-result"},"\u65e0\u6cd5\u9886\u53d6\u8bf7\u6dfb\u52a0\u5fae\u4fe1\uff1ajulyedukefu10"))}),g=(a(1243),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.continueSplitTreasure=function(){var e=a.props,t=e.ids,n=e.successSplitTreasure,s=e.handleToBindPhone,i=e.handleToBindAddress,r=t[0];E.d.post("".concat(API.home,"/sys/split_treasure"),r).then(function(e){var t=e.data,a=t.code,r=t.data;200===a?(n(r),r.bind_phone?setTimeout(function(){s(r.id)},500):r.bind_address&&setTimeout(function(){i(r.id,r.prize_name)},500)):12e3===a?s():12001===a&&i()})},a}return Object(c.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.ids,n=t.data,s=n.member,i=void 0===s?[]:s,r=n.prize_img,o=n.prize_name,c=t.handleToInvite,l=t.children;return m.a.createElement("div",{"data-skip":"split"},m.a.createElement("h2",{className:"split-success__title"},"\u606d\u559c\u4f60\u83b7\u5f97"),m.a.createElement("div",{className:"split-success__image"},m.a.createElement("img",{src:r,alt:""})),m.a.createElement("p",{className:"split-success__prize"},o),l,m.a.createElement("div",{className:"split-success__member"},i.map(function(t,a){return m.a.createElement("div",{className:"member-item",key:a},m.a.createElement("span",{className:"member-item__avatar",style:e.computedBg(t.avatar)},t.is_captain&&m.a.createElement("i",{className:"member-item__captain"},"\u961f\u957f")),t.prize?m.a.createElement("span",{className:"member-item__prize"},t.prize):m.a.createElement("span",{className:"member-item__prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"))})),a.length>0?m.a.createElement("button",{className:"split-success__jump",onClick:this.continueSplitTreasure},"\u7ee7\u7eed\u5f00\u5b9d\u7bb1"):m.a.createElement("button",{className:"split-success__jump",onClick:c},"\u7ee7\u7eed\u7ec4\u961f\u5f00\u5b9d\u7bb1"))}}]),t}(l.Component)),T=a(22),I=a.n(T),C=(a(1244),document.querySelector("body")),j=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).el||(a.el=document.createElement("div")),a}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){C.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){C.removeChild(this.el)}},{key:"render",value:function(){var e=this.props,t=e.visible,a=e.handleToHide,n=e.className;return t?I.a.createPortal(m.a.createElement("div",{className:"mask"},m.a.createElement("div",{className:v()("mask-content",n)},this.props.children),m.a.createElement("div",{className:"mask-footer"},m.a.createElement("i",{className:"mask-button__close",onClick:a}))),this.el):null}}]),t}(l.Component),O=(a(1245),Object(d.b)(function(e){return{country:e.country,userInfo:e.user.data}})(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).popupInstance=null,a.initPrizeName=function(e){var t=a.fetchCurrentTeamId(e),n=e.filter(function(e){return e.id==t});n.length>0&&a.setState({prizeName:n[0].prize_name})},a.judgeIsHaveId=function(e){var t=Object(E.c)("id");if(t){var n=e.filter(function(e){return e.id==t});if(n.length>0){var s={team_num:n[0].team_num,owner_uid:n[0].captain_uid};a.toSplitTreasure(s)}}},a.fetchCurrentTeamId=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return e.is_open&&(e.bind_phone||e.bind_address)});return e.length>0?e[0].id:""},a.isShowBindPhone=function(e){if(a.props.country.from){var t=a.fetchCurrentTeamId(e);a.handleToBindPhone(t)}},a.handleToBindPhone=function(e){a.setState({isPhone:!0})},a.handleToConfirmPhone=function(e,t){a.handleToHideWindow("isPhone"),a.setState({confirmInfo:{params:e,bindInfo:t},isConfirm:!0})},a.successBindPhone=function(){a.setState({isPhone:!1,isConfirm:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),i=t.map(function(e){return e.id==s?(e.bind_address&&a.handleToBindAddress(),Object.assign({},e,{bind_phone:!1})):e});a.setState({teams:i,splitInfo:Object.assign({},n,{bind_phone:!1})})},a.toSplitTreasure=function(e){E.d.post("".concat(API.home,"/sys/split_treasure"),e).then(function(e){var t=e.data,n=t.code,s=t.data;200===n?(a.showSuccessSplit(s),a.successSplitTreasure(s),s.bind_phone?setTimeout(function(){a.handleToBindPhone(s.id)},500):s.bind_address&&setTimeout(function(){a.handleToBindAddress(s.id,s.prize_name)},500)):12e3===n?a.handleToBindPhone():12001===n&&a.handleToBindAddress()})},a.successSplitTreasure=function(e){var t=a.props.userInfo,n=a.state.teams.map(function(a){return a.id==e.id?Object.assign({},a,{bind_phone:e.bind_phone,bind_address:e.bind_address,is_open:!0,prize_type:e.prize_type,prize_data:e.prize_data,member:a.member.map(function(a){return a.uid==t.uid?Object.assign({},a,{is_open:!0,prize_name:e.prize_name}):a})}):a});a.initNoSplitInfo(n),a.setState({teams:n,splitInfo:e,prizeName:e.prize_name})},a.showSuccessSplit=function(e){a.setState({isSplit:!0,splitInfo:e})},a.handleToBindAddress=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e)if(t)a.setState({prizeName:t});else{var n=a.state.teams.filter(function(t){return t.id==e});n.length>0&&a.setState({prizeName:n[0].prize_name})}a.setState({isAddress:!0})},a.successBindAddress=function(){a.setState({isAddress:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),i=t.map(function(e){return e.id==s?Object.assign({},e,{bind_address:!1}):e});a.setState({teams:i,splitInfo:Object.assign({},n,{bind_address:!1})})},a.fetchMyTreasure=function(){E.d.get("".concat(API.home,"/sys/treasure/my")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&(a.setState({rule:s.rule}),Array.isArray(s.team)&&s.team.length>0?(a.initNoSplitInfo(s.team),a.judgeIsHaveId(s.team),a.isShowBindPhone(s.team),a.initPrizeName(s.team),a.setState({isEmpty:!1,teams:s.team})):a.setState({isEmpty:!0}))})},a.initNoSplitInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.length>0&&a.setState({ids:e.filter(function(e){return!e.is_open&&2===e.status}).map(function(e){return{team_num:e.team_num,owner_uid:e.captain_uid}})})},a.fetchActivityStatus=function(){E.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){if(0===Number(s.treasure_stage))return void a.props.history.push("/");0===s.treasure_stage&&a.startCountDown(),a.setState({isEnd:0===s.treasure_stage,treasureTime:s.treasure_stop_date})}})},a.startCountDown=function(){var e=a.props.history,t=a.state.seconds;a.timer&&clearInterval(a.timer),a.setState({seconds:t--}),a.timer=setInterval(function(){a.setState({seconds:t--}),0===t&&(a.setState({seconds:0}),clearInterval(a.timer),Object(E.c)("version")?e.push("/year/yearIndex?version=".concat(Object(E.c)("version"))):e.push("/year/yearIndex"))},1e3)},a.handleToInvite=function(e){a.props.history;Object(E.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?treasure_code=".concat(e,"&origin=1&version=").concat(Object(E.c)("version"))):window.location.assign("https://h5.julyedu.com/box/landing?treasure_code=".concat(e,"&origin=1"))},a.toOrganizeTeam=function(){var e=a.props,t=e.history,n=e.userInfo.uid;""===(void 0===n?"":n)?t.push("/passport"):E.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){var i=[];i[0]=s,a.setState({isEmpty:!1,teams:i,isCreate:!0,createInfo:s})}})},a.toComposeCoupon=function(){var e=a.props.history;Object(E.c)("version")?Object(E.a)("toCoupon"):e.push("/coupons/my-patch")},a.toUseCoupon=function(e){var t=a.props.history;Object(E.c)("version")?Object(E.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.toCourseList=function(){var e=a.props.history;Object(E.c)("version")?Object(E.a)("toQualityCourse"):e.push("/classify")},a.toFecthMoney=function(){var e=a.props.history;Object(E.c)("version")?Object(E.a)("toAccount"):e.push("/scholarship")},a.handleToHideWindow=function(e){var t={};t[e]=!1,a.setState(t)},a.state={isEnd:!1,isEmpty:!1,seconds:3,teams:[],ids:[],bindInfo:{},isPhone:!1,isAddress:!1,isConfirm:!1,confirmInfo:{},isSplit:!1,isCreate:!1,createInfo:{},prizeName:"",treasureTime:""},a}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.fetchMyTreasure(),this.fetchActivityStatus(),document.title="AI\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u7206\u6b3e\u597d\u8bfe\uff0c300\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u9001\uff0cAI\u8fdb\u9636\u5b9d\u5178\u6765\u5c31\u9001\uff01-\u4e03\u6708\u5728\u7ebf"}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.history;e.userInfo.uid?this.fetchMyTreasure():t.push("/passport")}},{key:"render",value:function(){var e=this,t=this.props,a=t.history,n=t.userInfo,s=t.country,i=this.state,r=i.isEnd,o=i.isEmpty,c=i.seconds,l=i.teams,d=i.ids,b=i.isPhone,v=i.isAddress,T=i.isConfirm,I=i.isSplit,C=i.splitInfo,O=void 0===C?{}:C,S=i.confirmInfo,k=S.params,P=void 0===k?{}:k,B=S.bindInfo,A=void 0===B?{}:B,w=i.isCreate,z=i.createInfo,M=i.prizeName,F=i.rule,H=i.treasureTime;return m.a.createElement("div",{"data-skip":"treasure"},!E.b.isAndroidApp&&!E.b.isIOSApp&&m.a.createElement(u.e,{title:"\u6211\u7684\u5b9d\u7bb1",arrow:!0}),r&&m.a.createElement("div",{className:"team-empty"},m.a.createElement("p",{className:"activity-end__desc"},"\u6d3b\u52a8\u5df2\u7ed3\u675f",m.a.createElement("br",null),c,"s\u540e\u5c06\u81ea\u52a8\u8fd4\u56de\u9996\u9875")),!r&&o&&m.a.createElement("div",{className:"team-empty"},m.a.createElement("i",{className:"team-empty__icon"}),m.a.createElement("p",{className:"team-empty__desc"},"\u60a8\u5f53\u524d\u8fd8\u6ca1\u6709\u5b9d\u7bb1\u54e6~"),m.a.createElement("p",{className:"team-empty__desc"},"\u5feb\u53bb\u7ec4\u961f\u9080\u8bf7\u597d\u53cb\u4e00\u8d77\u5f00\u5b9d\u7bb1\u5427\uff01"),m.a.createElement("button",{className:"team-empty__button",onClick:this.toOrganizeTeam},"\u7ec4\u961f\u5f00\u5b9d\u7bb1")),!r&&!o&&n.uid&&m.a.createElement("div",{className:"treasure-content"},l.map(function(t,s){return m.a.createElement(y,{data:t,key:s,userInfo:n,history:a,splitInstance:e.splitInstance,toSplitTreasure:function(){return e.toSplitTreasure({team_num:t.team_num,owner_uid:t.captain_uid})}},m.a.createElement(N,{data:{bind_phone:t.bind_phone,bind_address:t.bind_address,prize_type:t.prize_type},handleToBindPhone:e.handleToBindPhone,handleToBindAddress:function(){return e.handleToBindAddress(t.id)},toComposeCoupon:e.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(t.prize_data)},toCourseList:e.toCourseList,toFecthMoney:e.toFecthMoney}))}),m.a.createElement(j,{visible:I,handleToHide:function(){return e.handleToHideWindow("isSplit")}},m.a.createElement(g,{ids:d,data:O,handleToInvite:function(){return e.handleToInvite(O.treasure_code)},handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,successSplitTreasure:this.successSplitTreasure},m.a.createElement(N,{data:O,handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,toComposeCoupon:this.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(O.prize_data)},toCourseList:this.toCourseList,toFecthMoney:this.toFecthMoney}))),m.a.createElement(j,{visible:b,className:"popup-bind-phone",handleToHide:function(){return e.handleToHideWindow("isPhone")}},m.a.createElement(h.a,{history:a,country:s,hideBindPhone:function(){return e.handleToHideWindow("isPhone")},handleToConfirmPhone:this.handleToConfirmPhone,successBindPhone:this.successBindPhone,desc:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"phone-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 ",M),m.a.createElement("p",{className:"phone-treasure__notice"},"\u4e3a\u4e86\u60a8\u7684\u8d26\u6237\u5b89\u5168\uff0c\u8bf7\u4e8e",H,"\u524d\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8fc7\u671f\u5c06\u5931\u6548"))})),m.a.createElement(j,{visible:T,handleToHide:function(){return e.handleToHideWindow("isConfirm")}},m.a.createElement(f.a,{data:P,bindInfo:A,handleToCancle:function(){return e.handleToHideWindow("isConfirm")},successBindPhone:this.successBindPhone})),m.a.createElement(j,{visible:v,className:"popup-bind-address",handleToHide:function(){return e.handleToHideWindow("isAddress")}},m.a.createElement(p.a,{skip:"year",tip:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"address-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 ",M),m.a.createElement("p",{className:"address-treasure__notice"},"\u8bf7\u53ca\u65f6\u586b\u5199/\u786e\u8ba4\u6536\u8d27\u4fe1\u606f\uff0c\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4")),successBindAddress:this.successBindAddress})),m.a.createElement(j,{visible:w,handleToHide:function(){return e.handleToHideWindow("isCreate")}},m.a.createElement(_,{data:z,handleToInvite:function(){e.handleToInvite(z.treasure_code),e.handleToHideWindow("isCreate")}}))),F&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"activity-rule__header"},m.a.createElement("i",{className:"activity-rule__decorate"}),m.a.createElement("h2",{className:"activity-rule__title"},"\u6d3b\u52a8\u89c4\u5219"),m.a.createElement("i",{className:"activity-rule__decorate"})),m.a.createElement("div",{className:"activity-rule__body",dangerouslySetInnerHTML:{__html:F}})))}}]),t}(l.Component))||n);t.default=O},740:function(e,t,a){"use strict";a(37);var n=a(11),s=a.n(n),i=a(20),r=a(4),o=a(7),c=a(5),l=a(8),m=a(9),d=a(0),u=a.n(d),p=a(3),h=a(17),f=(a(741),function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).fetchUserAddress=function(){var e=a.state.addressInfo;p.d.get("".concat(API.home,"/sys/user_address_info")).then(function(t){var n=t.data,s=n.code,i=n.data;n.msg;200===s&&a.setState({addressInfo:Object.assign({},e,{name:i.name,phone:i.phone,address:i.address}),isLoading:!0})})},a.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props.successBindAddress;p.d.post("".concat(API.home,"/sys/update_address"),Object(i.a)({act_type:"treasure"},e)).then(function(e){var a=e.data,n=a.code,i=a.msg;200===n?t():s.a.info(i,2,null,!1)})},a.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,t=this.state,a=t.isLoading,n=t.addressInfo,s=this.props,r=s.tip,o=s.prize,c=s.skip,l=void 0===c?"default":c;return u.a.createElement(u.a.Fragment,null,a&&u.a.createElement(h.d,{initialValues:Object(i.a)({},n),validate:function(e){var t=e.name,a=e.phone,n=e.address,s={};return t||(s.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(a)||(s.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(s.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),s},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(t){e.handleToSubmit(t)},render:function(e){var t=e.errors;return u.a.createElement(h.c,{className:"address-form","data-skip":l},u.a.createElement("h2",{className:"address-form__title"},"\u6536\u8d27\u4fe1\u606f"),o?u.a.createElement("p",{className:"address__prize"},"\u60a8\u62bd\u4e2d\u4e86",u.a.createElement("span",{style:{color:"#FF4000"}},o)):null,r?u.a.createElement("div",{className:"address-form__subtitle"},r):u.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),u.a.createElement(h.b,{name:"name",render:function(e){var a=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),t.name&&u.a.createElement("p",{className:"address-form__tip"},t.name))}}),u.a.createElement(h.b,{name:"phone",render:function(e){var a=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),t.phone&&u.a.createElement("p",{className:"address-form__tip"},t.phone))}}),u.a.createElement(h.b,{name:"address",render:function(e){var a=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),t.address&&u.a.createElement("p",{className:"address-form__tip"},t.address))}}),u.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),t}(d.Component));t.a=f},741:function(e,t,a){},742:function(e,t,a){"use strict";var n=a(20),s=(a(37),a(11)),i=a.n(s),r=a(4),o=a(7),c=a(5),l=a(8),m=a(9),d=a(0),u=a.n(d),p=a(17),h=a(40),f=a(51),_=a(3),b=(a(743),function(e){function t(e){var a;return Object(r.a)(this,t),a=Object(c.a)(this,Object(l.a)(t).call(this,e)),a.captchaInstance=null,a.initCountryInfo=function(){var e=a.props.country;a.setState({country:e})},a.toFetchCountryNum=function(){var e=a.props,t=e.history;(0,e.hideBindPhone)(),t.push("/country?from=bind")},a.getCaptchaInstance=function(e){a.captchaInstance=e},a.onVerify=function(e,t){e?console.log(e):a.setState({validate:t.validate})},a.handleToSend=function(e){var t=e.tel,n=(e.code,a.state),s=n.validate,r=n.seconds,o=n.isFirst,c=n.isTimer,l=n.country.num,m=void 0===l?"86":l;if(s){if(!o)return i.a.info("\u8bf7\u91cd\u65b0\u8fdb\u884c\u6ed1\u5757\u9a8c\u8bc1",2,null,!1),a.captchaInstance.refresh(),void a.setState({isFirst:!0});c||(t?/^\d+$/.test(t)?_.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(m),phone_num:t}).then(function(e){var t=e.data,n=t.errno,s=t.msg;200===n?(i.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){r<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--r})},1e3),a.setState({isFirst:!1})):i.a.info(s,2,null,!1)}):i.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7\u7801",2,null,!1):i.a.info("\u624b\u673a\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a",2,null,!1))}return!1},a.toBindPhone=function(){var e=a.state,t=e.accountInfo,s=t.tel,r=t.code,o=e.country.num,c=void 0===o?"86":o,l=a.props,m=l.handleToConfirmPhone,d=l.successBindPhone,u={area_code:"00".concat(c),mobile:s,code:r,act_type:"treasure"};_.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(n.a)({},u,{type:1,is_valid:1})).then(function(e){var t=e.data,a=t.code,n=t.data,s=t.msg;200===a?n.tip_info?m(u,n.tip_info):d():i.a.info(s,2,null,!1)})},a.state={validate:"",seconds:60,isFirst:!0,timer:null,isTimer:!1,accountInfo:{},bindInfo:{},country:{num:"86"}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.initCountryInfo()}},{key:"render",value:function(){var e=this,t=this.props,a=t.desc,s=t.skip,i=void 0===s?"year":s,r=this.state,o=r.country,c=r.validate,l=r.isTimer,m=r.seconds;return u.a.createElement(p.d,{initialValues:{tel:"",code:""},validate:function(e){var t=e.tel,a=e.code,n={};return/^\d+$/.test(t)||(n.tel="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),/[0-9]{6}/.test(a)||(n.code="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"),n},onSubmit:function(t,a){a.setStatus,a.setSubmitting;e.setState({accountInfo:Object(n.a)({},t)}),e.toBindPhone()},render:function(t){var n=t.values,s=n.tel,r=n.code,d=t.errors;return u.a.createElement(p.c,{className:"popup-form","data-skip":i},u.a.createElement("h2",{className:"popup-form__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),a&&u.a.createElement("div",{className:"poup-form__desc"},a),u.a.createElement("div",{className:"popup-form__item"},u.a.createElement("a",{className:"popup-form__button--num",onClick:e.toFetchCountryNum},"+",o.num,u.a.createElement("i",{className:"iconfont iconiconfront-69"})),u.a.createElement(p.b,{name:"tel",render:function(e){var t=e.field;return u.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt","data-type":"tel",type:"text",placeholder:"\u8bf7\u586b\u5199\u624b\u673a\u53f7"}))}})),u.a.createElement(f.a,{getInstance:e.getCaptchaInstance,onVerify:e.onVerify}),u.a.createElement("div",{className:"popup-form__item"},u.a.createElement(p.b,{name:"code",render:function(e){var t=e.field;return u.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt popup-form__ipt--left",type:"text",placeholder:"\u8f93\u5165\u9a8c\u8bc1\u7801"}))}}),u.a.createElement("button",{className:"popup-form__button--code","data-status":c&&!l?"do":"",type:"button",onClick:function(){return e.handleToSend({tel:s,code:r})}},l?"\u91cd\u65b0\u53d1\u9001".concat(m,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),u.a.createElement("button",{className:"popup-form__button--bundle","data-status":s&&r&&Object(h.isEmpty)(d)?"do":"done",type:"submit"},"\u5b8c\u6210\u7ed1\u5b9a"))}})}}]),t}(d.Component));t.a=b},743:function(e,t,a){},744:function(e,t,a){"use strict";a(37);var n=a(11),s=a.n(n),i=a(20),r=a(4),o=a(7),c=a(5),l=a(8),m=a(9),d=a(0),u=a.n(d),p=a(3),h=(a(745),function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,o=new Array(n),m=0;m<n;m++)o[m]=arguments[m];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).continueBindPhone=function(){var e=a.props,t=e.data,n=e.successBindPhone;p.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(i.a)({},t,{type:1,is_valid:0})).then(function(e){var t=e.data,a=t.code,i=t.msg;200===a?n():s.a.info(i,2,null,!1)})},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=e.bindInfo,a=void 0===t?{}:t,n=e.desc,s=e.skip,i=void 0===s?"year":s,r=e.handleToCancle;return u.a.createElement("div",{className:"popup-bind","data-skip":i},u.a.createElement("h2",{className:"popup-bind__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),n?u.a.createElement("div",{className:"popup-bind__desc"},n):u.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),u.a.createElement("ul",{className:"popup-bind__list"},a.email&&u.a.createElement("li",{className:"popup-bind__account"},u.a.createElement("i",{className:"popup-bind__icon","data-plat":"mail"}),u.a.createElement("p",{className:"popup-bind__account--name"},a.email)),a.wechat_nickname&&u.a.createElement("li",{className:"popup-bind__account"},u.a.createElement("i",{className:"popup-bind__icon","data-plat":"wachat"}),u.a.createElement("p",{className:"popup-bind__account--name"},a.wechat_nickname)),a.qq_nickname&&u.a.createElement("li",{className:"popup-bind__account"},u.a.createElement("i",{className:"popup-bind__icon","data-plat":"qq"}),u.a.createElement("p",{className:"popup-bind__account--name"},a.qq_nickname)),a.sina_nickname&&u.a.createElement("li",{className:"popup-bind__account"},u.a.createElement("i",{className:"popup-bind__icon","data-plat":"sina"}),u.a.createElement("p",{className:"popup-bind__account--name"},a.sina_nickname))),u.a.createElement("div",{className:"popup-bind__footer"},u.a.createElement("button",{className:"popup-bind__button popup-bind__button--cancle",onClick:r},"\u53d6\u6d88"),u.a.createElement("button",{className:"popup-bind__button popup-bind__button--confirm",onClick:this.continueBindPhone},"\u7ee7\u7eed\u7ed1\u5b9a")))}}]),t}(d.Component));t.a=h},745:function(e,t,a){}}]);
//# sourceMappingURL=treasure-box-mybox.5d14604c.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{1240:function(e,t,a){},1241:function(e,t,a){},1242:function(e,t,a){},1243:function(e,t,a){},1244:function(e,t,a){},1245:function(e,t,a){},1306:function(e,t,a){"use strict";a.r(t);var n,s=a(4),i=a(7),r=a(5),o=a(8),c=a(9),l=a(0),m=a.n(l),d=a(21),u=a(25),p=a(740),h=a(742),f=a(744),_=(a(1240),function(e){console.log(e);var t=e.data,a=t.team_num,n=void 0===a?1:a,s=t.lack_member,i=void 0===s?4:s,r=t.member,o=void 0===r?[]:r,c=e.handleToInvite,l=new Array(5).fill({});return m.a.createElement("div",{className:"team-success"},m.a.createElement("h2",{className:"team-success__title"},"\u521b\u5efa\u6210\u529f"),m.a.createElement("p",{className:"team-success__tip"},m.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",m.a.createElement("span",null,i),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),m.a.createElement("i",{className:"team-success__icon"}),m.a.createElement("ul",{className:"team-success__member members"},l.map(function(e,t){var a=o[t];return m.a.createElement("li",{className:"member-item",key:t},a&&a.is_captain&&m.a.createElement("sup",{className:"member-item__captain"},"\u961f\u957f"),m.a.createElement("img",{className:"member-item__avatar",src:a?a.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),m.a.createElement("button",{type:"button",className:"team-success__button",onClick:c},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d"))}),b=a(18),v=a.n(b),E=(a(1241),a(3)),y=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).initMemberInfo=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props,n=t.data,s=t.userInfo,i="{}"!==JSON.stringify(e)?e:n,r=i.member,o=r.length-5;o<0;o++)r.push({});a.setState({team:Object.assign({},i,{member:r}),currentMember:s.uid?r.filter(function(e){return e.uid==s.uid})[0]:{}})},a.computedClass=function(e){var t=a.props.data.is_open,n=a.state.currentMember;return v()("team-member__item",{active:e===n.uid&&t})},a.computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.toCheckPrize=function(e){var t=a.state.team,n=t.is_open,s=t.member;if(n){var i=(void 0===s?[]:s).filter(function(t){return t.uid===e});a.setState({currentMember:i[0]})}},a.state={team:{},currentMember:{}},a}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.initMemberInfo()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,a=e.data;a.is_open!=t.is_open&&this.initMemberInfo(a)}},{key:"render",value:function(){var e=this,t=this.state,a=t.team,n=a.is_captain,s=a.status,i=a.team_num,r=a.lack_member,o=a.is_open,c=a.treasure_code,l=a.member,d=void 0===l?[]:l,u=t.currentMember,p=this.props,h=p.toSplitTreasure,f=p.userInfo,_=p.children;return m.a.createElement("div",{className:"team-container","data-skip":"team"},!n&&m.a.createElement("i",{className:"team-friend"},"\u53cb"),1===s?m.a.createElement("i",{className:"team-status"},"\u7ec4\u961f\u4e2d.."):m.a.createElement("i",{className:"team-decorate"}),n?m.a.createElement("h2",{className:"team-title"},i,"\u53f7\u961f\u4f0d"):m.a.createElement("h2",{className:"team-title"},"\u597d\u53cb\u961f\u4f0d"),1===s?m.a.createElement("p",{className:"team-desc"},"\u8fd8\u5dee",r,"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6\uff5e"):m.a.createElement("p",{className:"team-desc"},"\u7ec4\u961f\u6210\u529f"),m.a.createElement("div",{className:"team-member"},d.map(function(t,a){return m.a.createElement("div",{className:e.computedClass(t.uid),onClick:function(){return e.toCheckPrize(t.uid)},key:a,style:e.computedBg(t.head_img)},t.is_captain&&m.a.createElement("span",{className:"team-member__captain"},"\u961f\u957f"))})),m.a.createElement("div",{className:"team-footer","data-layout":o?"column":"row"},1===s&&m.a.createElement(m.a.Fragment,null,Object(E.c)("version")?n?m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/box/landing?treasure_code=".concat(c,"&origin=1&version=").concat(Object(E.c)("version"))},"\u7ee7\u7eed\u9080\u8bf7\u961f\u53cb"):m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/box/landing?treasure_code=".concat(c,"&origin=2&version=").concat(Object(E.c)("version"))},"\u5e2e\u597d\u53cb\u5b8c\u6210\u7ec4\u961f"):n?m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/box/landing?treasure_code=".concat(c,"&origin=1")},"\u7ee7\u7eed\u9080\u8bf7\u961f\u53cb"):m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/box/landing?treasure_code=".concat(c,"&origin=2")},"\u5e2e\u597d\u53cb\u5b8c\u6210\u7ec4\u961f")),2===s&&!o&&m.a.createElement(m.a.Fragment,null,m.a.createElement("span",{className:"team-icon","data-direction":"left"}),m.a.createElement("span",{className:"team-button--split",onClick:h}),m.a.createElement("span",{className:"team-icon","data-direction":"right"})),2===s&&o&&m.a.createElement(m.a.Fragment,null,u.prize_name?m.a.createElement("p",{className:"team-prize"},u.prize_name):m.a.createElement("p",{className:"team-prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"),u.uid==f.uid?_:null)))}}]),t}(l.Component),N=(a(1242),function(e){var t=e.data,a=t.bind_phone,n=t.bind_address,s=t.prize_type,i=e.handleToBindPhone,r=e.handleToBindAddress,o=e.toComposeCoupon,c=e.toUseCoupon,l=e.toCourseList,d=e.toFecthMoney;return m.a.createElement(m.a.Fragment,null,a&&m.a.createElement("a",{className:"team-result",onClick:i},m.a.createElement("span",null,"\u7ed1\u5b9a\u624b\u673a\u53f7")),!a&&n&&m.a.createElement("a",{className:"team-result",onClick:r},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&1===s&&m.a.createElement("a",{className:"team-result",onClick:r},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&6===s&&m.a.createElement("a",{className:"team-result",onClick:o},"\u53ef\u5408\u6210\u4ee3\u91d1\u5238\u5728\u8d2d\u8bfe\u65f6\u4f7f\u7528\uff0c",m.a.createElement("span",null,"\u53bb\u5408\u6210")),!a&&!n&&3===s&&m.a.createElement("a",{className:"team-result",onClick:c},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&4===s&&m.a.createElement("a",{className:"team-result",onClick:l},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&7===s&&m.a.createElement("a",{className:"team-result",onClick:d},"\u5df2\u5b58\u5165\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u63d0\u73b0")),!a&&!n&&2===s&&m.a.createElement("a",{className:"team-result"},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237"),!a&&!n&&5===s&&m.a.createElement("a",{className:"team-result"},"\u65e0\u6cd5\u9886\u53d6\u8bf7\u6dfb\u52a0\u5fae\u4fe1\uff1ajulyedukefu10"))}),g=(a(1243),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.continueSplitTreasure=function(){var e=a.props,t=e.ids,n=e.successSplitTreasure,s=e.handleToBindPhone,i=e.handleToBindAddress,r=t[0];E.d.post("".concat(API.home,"/sys/split_treasure"),r).then(function(e){var t=e.data,a=t.code,r=t.data;200===a?(n(r),r.bind_phone?setTimeout(function(){s(r.id)},500):r.bind_address&&setTimeout(function(){i(r.id,r.prize_name)},500)):12e3===a?s():12001===a&&i()})},a}return Object(c.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.ids,n=t.data,s=n.member,i=void 0===s?[]:s,r=n.prize_img,o=n.prize_name,c=t.handleToInvite,l=t.children;return m.a.createElement("div",{"data-skip":"split"},m.a.createElement("h2",{className:"split-success__title"},"\u606d\u559c\u4f60\u83b7\u5f97"),m.a.createElement("div",{className:"split-success__image"},m.a.createElement("img",{src:r,alt:""})),m.a.createElement("p",{className:"split-success__prize"},o),l,m.a.createElement("div",{className:"split-success__member"},i.map(function(t,a){return m.a.createElement("div",{className:"member-item",key:a},m.a.createElement("span",{className:"member-item__avatar",style:e.computedBg(t.avatar)},t.is_captain&&m.a.createElement("i",{className:"member-item__captain"},"\u961f\u957f")),t.prize?m.a.createElement("span",{className:"member-item__prize"},t.prize):m.a.createElement("span",{className:"member-item__prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"))})),a.length>0?m.a.createElement("button",{className:"split-success__jump",onClick:this.continueSplitTreasure},"\u7ee7\u7eed\u5f00\u5b9d\u7bb1"):m.a.createElement("button",{className:"split-success__jump",onClick:c},"\u7ee7\u7eed\u7ec4\u961f\u5f00\u5b9d\u7bb1"))}}]),t}(l.Component)),T=a(22),C=a.n(T),I=(a(1244),document.querySelector("body")),j=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).el||(a.el=document.createElement("div")),a}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){I.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){I.removeChild(this.el)}},{key:"render",value:function(){var e=this.props,t=e.visible,a=e.handleToHide,n=e.className;return t?C.a.createPortal(m.a.createElement("div",{className:"mask"},m.a.createElement("div",{className:v()("mask-content",n)},this.props.children),m.a.createElement("div",{className:"mask-footer"},m.a.createElement("i",{className:"mask-button__close",onClick:a}))),this.el):null}}]),t}(l.Component),O=(a(1245),Object(d.b)(function(e){return{country:e.country,userInfo:e.user.data}})(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).popupInstance=null,a.initPrizeName=function(e){var t=a.fetchCurrentTeamId(e),n=e.filter(function(e){return e.id==t});n.length>0&&a.setState({prizeName:n[0].prize_name})},a.judgeIsHaveId=function(e){var t=Object(E.c)("id");if(t){var n=e.filter(function(e){return e.id==t});if(n.length>0){var s={team_num:n[0].team_num,owner_uid:n[0].captain_uid};a.toSplitTreasure(s)}}},a.fetchCurrentTeamId=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return e.is_open&&(e.bind_phone||e.bind_address)});return e.length>0?e[0].id:""},a.isShowBindPhone=function(e){if(a.props.country.from){var t=a.fetchCurrentTeamId(e);a.handleToBindPhone(t)}},a.handleToBindPhone=function(e){a.setState({isPhone:!0})},a.handleToConfirmPhone=function(e,t){a.handleToHideWindow("isPhone"),a.setState({confirmInfo:{params:e,bindInfo:t},isConfirm:!0})},a.successBindPhone=function(){a.setState({isPhone:!1,isConfirm:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),i=t.map(function(e){return e.id==s?(e.bind_address&&a.handleToBindAddress(),Object.assign({},e,{bind_phone:!1})):e});a.setState({teams:i,splitInfo:Object.assign({},n,{bind_phone:!1})})},a.toSplitTreasure=function(e){E.d.post("".concat(API.home,"/sys/split_treasure"),e).then(function(e){var t=e.data,n=t.code,s=t.data;200===n?(a.showSuccessSplit(s),a.successSplitTreasure(s),s.bind_phone?setTimeout(function(){a.handleToBindPhone(s.id)},500):s.bind_address&&setTimeout(function(){a.handleToBindAddress(s.id,s.prize_name)},500)):12e3===n?a.handleToBindPhone():12001===n&&a.handleToBindAddress()})},a.successSplitTreasure=function(e){var t=a.props.userInfo,n=a.state.teams.map(function(a){return a.id==e.id?Object.assign({},a,{bind_phone:e.bind_phone,bind_address:e.bind_address,is_open:!0,prize_type:e.prize_type,prize_data:e.prize_data,member:a.member.map(function(a){return a.uid==t.uid?Object.assign({},a,{is_open:!0,prize_name:e.prize_name}):a})}):a});a.initNoSplitInfo(n),a.setState({teams:n,splitInfo:e,prizeName:e.prize_name})},a.showSuccessSplit=function(e){a.setState({isSplit:!0,splitInfo:e})},a.handleToBindAddress=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e)if(t)a.setState({prizeName:t});else{var n=a.state.teams.filter(function(t){return t.id==e});n.length>0&&a.setState({prizeName:n[0].prize_name})}a.setState({isAddress:!0})},a.successBindAddress=function(){a.setState({isAddress:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),i=t.map(function(e){return e.id==s?Object.assign({},e,{bind_address:!1}):e});a.setState({teams:i,splitInfo:Object.assign({},n,{bind_address:!1})})},a.fetchMyTreasure=function(){E.d.get("".concat(API.home,"/sys/treasure/my")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&(a.setState({rule:s.rule}),Array.isArray(s.team)&&s.team.length>0?(a.initNoSplitInfo(s.team),a.judgeIsHaveId(s.team),a.isShowBindPhone(s.team),a.initPrizeName(s.team),a.setState({isEmpty:!1,teams:s.team})):a.setState({isEmpty:!0}))})},a.initNoSplitInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.length>0&&a.setState({ids:e.filter(function(e){return!e.is_open&&2===e.status}).map(function(e){return{team_num:e.team_num,owner_uid:e.captain_uid}})})},a.fetchActivityStatus=function(){E.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){if(0===Number(s.treasure_stage))return void a.props.history.push("/");0===s.treasure_stage&&a.startCountDown(),a.setState({isEnd:0===s.treasure_stage,treasureTime:s.treasure_stop_date})}})},a.startCountDown=function(){var e=a.props.history,t=a.state.seconds;a.timer&&clearInterval(a.timer),a.setState({seconds:t--}),a.timer=setInterval(function(){a.setState({seconds:t--}),0===t&&(a.setState({seconds:0}),clearInterval(a.timer),Object(E.c)("version")?e.push("/year/yearIndex?version=".concat(Object(E.c)("version"))):e.push("/year/yearIndex"))},1e3)},a.handleToInvite=function(e){a.props.history;Object(E.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?treasure_code=".concat(e,"&origin=1&version=").concat(Object(E.c)("version"))):window.location.assign("https://h5.julyedu.com/box/landing?treasure_code=".concat(e,"&origin=1"))},a.toOrganizeTeam=function(){var e=a.props,t=e.history,n=e.userInfo.uid;""===(void 0===n?"":n)?t.push("/passport"):E.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){var i=[];i[0]=s,a.setState({isEmpty:!1,teams:i,isCreate:!0,createInfo:s})}})},a.toComposeCoupon=function(){var e=a.props.history;Object(E.c)("version")?Object(E.a)("toCoupon"):e.push("/coupons/my-patch")},a.toUseCoupon=function(e){var t=a.props.history;Object(E.c)("version")?Object(E.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.toCourseList=function(){var e=a.props.history;Object(E.c)("version")?Object(E.a)("toQualityCourse"):e.push("/classify")},a.toFecthMoney=function(){var e=a.props.history;Object(E.c)("version")?Object(E.a)("toAccount"):e.push("/scholarship")},a.handleToHideWindow=function(e){var t={};t[e]=!1,a.setState(t)},a.state={isEnd:!1,isEmpty:!1,seconds:3,teams:[],ids:[],bindInfo:{},isPhone:!1,isAddress:!1,isConfirm:!1,confirmInfo:{},isSplit:!1,isCreate:!1,createInfo:{},prizeName:"",treasureTime:""},a}return Object(c.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.fetchMyTreasure(),this.fetchActivityStatus(),document.title="AI\u5c31\u4e1a\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u62ffVIP\u5e74\u4f1a\u5458\uff0c200\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u5305\u90ae\u9001\uff01- \u4e03\u6708\u5728\u7ebf"}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.history;e.userInfo.uid?this.fetchMyTreasure():t.push("/passport")}},{key:"render",value:function(){var e=this,t=this.props,a=t.history,n=t.userInfo,s=t.country,i=this.state,r=i.isEnd,o=i.isEmpty,c=i.seconds,l=i.teams,d=i.ids,b=i.isPhone,v=i.isAddress,T=i.isConfirm,C=i.isSplit,I=i.splitInfo,O=void 0===I?{}:I,S=i.confirmInfo,k=S.params,P=void 0===k?{}:k,B=S.bindInfo,A=void 0===B?{}:B,w=i.isCreate,z=i.createInfo,M=i.prizeName,F=i.rule,H=i.treasureTime;return m.a.createElement("div",{"data-skip":"treasure"},!E.b.isAndroidApp&&!E.b.isIOSApp&&m.a.createElement(u.e,{title:"\u6211\u7684\u5b9d\u7bb1",arrow:!0}),r&&m.a.createElement("div",{className:"team-empty"},m.a.createElement("p",{className:"activity-end__desc"},"\u6d3b\u52a8\u5df2\u7ed3\u675f",m.a.createElement("br",null),c,"s\u540e\u5c06\u81ea\u52a8\u8fd4\u56de\u9996\u9875")),!r&&o&&m.a.createElement("div",{className:"team-empty"},m.a.createElement("i",{className:"team-empty__icon"}),m.a.createElement("p",{className:"team-empty__desc"},"\u60a8\u5f53\u524d\u8fd8\u6ca1\u6709\u5b9d\u7bb1\u54e6~"),m.a.createElement("p",{className:"team-empty__desc"},"\u5feb\u53bb\u7ec4\u961f\u9080\u8bf7\u597d\u53cb\u4e00\u8d77\u5f00\u5b9d\u7bb1\u5427\uff01"),m.a.createElement("button",{className:"team-empty__button",onClick:this.toOrganizeTeam},"\u7ec4\u961f\u5f00\u5b9d\u7bb1")),!r&&!o&&n.uid&&m.a.createElement("div",{className:"treasure-content"},l.map(function(t,s){return m.a.createElement(y,{data:t,key:s,userInfo:n,history:a,splitInstance:e.splitInstance,toSplitTreasure:function(){return e.toSplitTreasure({team_num:t.team_num,owner_uid:t.captain_uid})}},m.a.createElement(N,{data:{bind_phone:t.bind_phone,bind_address:t.bind_address,prize_type:t.prize_type},handleToBindPhone:e.handleToBindPhone,handleToBindAddress:function(){return e.handleToBindAddress(t.id)},toComposeCoupon:e.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(t.prize_data)},toCourseList:e.toCourseList,toFecthMoney:e.toFecthMoney}))}),m.a.createElement(j,{visible:C,handleToHide:function(){return e.handleToHideWindow("isSplit")}},m.a.createElement(g,{ids:d,data:O,handleToInvite:function(){return e.handleToInvite(O.treasure_code)},handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,successSplitTreasure:this.successSplitTreasure},m.a.createElement(N,{data:O,handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,toComposeCoupon:this.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(O.prize_data)},toCourseList:this.toCourseList,toFecthMoney:this.toFecthMoney}))),m.a.createElement(j,{visible:b,className:"popup-bind-phone",handleToHide:function(){return e.handleToHideWindow("isPhone")}},m.a.createElement(h.a,{history:a,country:s,hideBindPhone:function(){return e.handleToHideWindow("isPhone")},handleToConfirmPhone:this.handleToConfirmPhone,successBindPhone:this.successBindPhone,desc:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"phone-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 ",M),m.a.createElement("p",{className:"phone-treasure__notice"},"\u4e3a\u4e86\u60a8\u7684\u8d26\u6237\u5b89\u5168\uff0c\u8bf7\u4e8e",H,"\u524d\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8fc7\u671f\u5c06\u5931\u6548"))})),m.a.createElement(j,{visible:T,handleToHide:function(){return e.handleToHideWindow("isConfirm")}},m.a.createElement(f.a,{data:P,bindInfo:A,handleToCancle:function(){return e.handleToHideWindow("isConfirm")},successBindPhone:this.successBindPhone})),m.a.createElement(j,{visible:v,className:"popup-bind-address",handleToHide:function(){return e.handleToHideWindow("isAddress")}},m.a.createElement(p.a,{skip:"year",tip:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"address-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 ",M),m.a.createElement("p",{className:"address-treasure__notice"},"\u8bf7\u53ca\u65f6\u586b\u5199/\u786e\u8ba4\u6536\u8d27\u4fe1\u606f\uff0c\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4")),successBindAddress:this.successBindAddress})),m.a.createElement(j,{visible:w,handleToHide:function(){return e.handleToHideWindow("isCreate")}},m.a.createElement(_,{data:z,handleToInvite:function(){e.handleToInvite(z.treasure_code),e.handleToHideWindow("isCreate")}}))),F&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"activity-rule__header"},m.a.createElement("i",{className:"activity-rule__decorate"}),m.a.createElement("h2",{className:"activity-rule__title"},"\u6d3b\u52a8\u89c4\u5219"),m.a.createElement("i",{className:"activity-rule__decorate"})),m.a.createElement("div",{className:"activity-rule__body",dangerouslySetInnerHTML:{__html:F}})))}}]),t}(l.Component))||n);t.default=O},740:function(e,t,a){"use strict";a(37);var n=a(11),s=a.n(n),i=a(20),r=a(4),o=a(7),c=a(5),l=a(8),m=a(9),d=a(0),u=a.n(d),p=a(3),h=a(17),f=(a(741),function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).fetchUserAddress=function(){var e=a.state.addressInfo;p.d.get("".concat(API.home,"/sys/user_address_info")).then(function(t){var n=t.data,s=n.code,i=n.data;n.msg;200===s&&a.setState({addressInfo:Object.assign({},e,{name:i.name,phone:i.phone,address:i.address}),isLoading:!0})})},a.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props.successBindAddress;p.d.post("".concat(API.home,"/sys/update_address"),Object(i.a)({act_type:"treasure"},e)).then(function(e){var a=e.data,n=a.code,i=a.msg;200===n?t():s.a.info(i,2,null,!1)})},a.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,t=this.state,a=t.isLoading,n=t.addressInfo,s=this.props,r=s.tip,o=s.prize,c=s.skip,l=void 0===c?"default":c;return u.a.createElement(u.a.Fragment,null,a&&u.a.createElement(h.d,{initialValues:Object(i.a)({},n),validate:function(e){var t=e.name,a=e.phone,n=e.address,s={};return t||(s.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(a)||(s.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(s.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),s},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(t){e.handleToSubmit(t)},render:function(e){var t=e.errors;return u.a.createElement(h.c,{className:"address-form","data-skip":l},u.a.createElement("h2",{className:"address-form__title"},"\u6536\u8d27\u4fe1\u606f"),o?u.a.createElement("p",{className:"address__prize"},"\u60a8\u62bd\u4e2d\u4e86",u.a.createElement("span",{style:{color:"#FF4000"}},o)):null,r?u.a.createElement("div",{className:"address-form__subtitle"},r):u.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),u.a.createElement(h.b,{name:"name",render:function(e){var a=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),t.name&&u.a.createElement("p",{className:"address-form__tip"},t.name))}}),u.a.createElement(h.b,{name:"phone",render:function(e){var a=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),t.phone&&u.a.createElement("p",{className:"address-form__tip"},t.phone))}}),u.a.createElement(h.b,{name:"address",render:function(e){var a=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),t.address&&u.a.createElement("p",{className:"address-form__tip"},t.address))}}),u.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),t}(d.Component));t.a=f},741:function(e,t,a){},742:function(e,t,a){"use strict";var n=a(20),s=(a(37),a(11)),i=a.n(s),r=a(4),o=a(7),c=a(5),l=a(8),m=a(9),d=a(0),u=a.n(d),p=a(17),h=a(40),f=a(51),_=a(3),b=(a(743),function(e){function t(e){var a;return Object(r.a)(this,t),a=Object(c.a)(this,Object(l.a)(t).call(this,e)),a.captchaInstance=null,a.initCountryInfo=function(){var e=a.props.country;a.setState({country:e})},a.toFetchCountryNum=function(){var e=a.props,t=e.history;(0,e.hideBindPhone)(),t.push("/country?from=bind")},a.getCaptchaInstance=function(e){a.captchaInstance=e},a.onVerify=function(e,t){e?console.log(e):a.setState({validate:t.validate})},a.handleToSend=function(e){var t=e.tel,n=(e.code,a.state),s=n.validate,r=n.seconds,o=n.isFirst,c=n.isTimer,l=n.country.num,m=void 0===l?"86":l;if(s){if(!o)return i.a.info("\u8bf7\u91cd\u65b0\u8fdb\u884c\u6ed1\u5757\u9a8c\u8bc1",2,null,!1),a.captchaInstance.refresh(),void a.setState({isFirst:!0});c||(t?/^\d+$/.test(t)?_.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(m),phone_num:t}).then(function(e){var t=e.data,n=t.errno,s=t.msg;200===n?(i.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){r<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--r})},1e3),a.setState({isFirst:!1})):i.a.info(s,2,null,!1)}):i.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7\u7801",2,null,!1):i.a.info("\u624b\u673a\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a",2,null,!1))}return!1},a.toBindPhone=function(){var e=a.state,t=e.accountInfo,s=t.tel,r=t.code,o=e.country.num,c=void 0===o?"86":o,l=a.props,m=l.handleToConfirmPhone,d=l.successBindPhone,u={area_code:"00".concat(c),mobile:s,code:r,act_type:"treasure"};_.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(n.a)({},u,{type:1,is_valid:1})).then(function(e){var t=e.data,a=t.code,n=t.data,s=t.msg;200===a?n.tip_info?m(u,n.tip_info):d():i.a.info(s,2,null,!1)})},a.state={validate:"",seconds:60,isFirst:!0,timer:null,isTimer:!1,accountInfo:{},bindInfo:{},country:{num:"86"}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.initCountryInfo()}},{key:"render",value:function(){var e=this,t=this.props,a=t.desc,s=t.skip,i=void 0===s?"year":s,r=this.state,o=r.country,c=r.validate,l=r.isTimer,m=r.seconds;return u.a.createElement(p.d,{initialValues:{tel:"",code:""},validate:function(e){var t=e.tel,a=e.code,n={};return/^\d+$/.test(t)||(n.tel="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),/[0-9]{6}/.test(a)||(n.code="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"),n},onSubmit:function(t,a){a.setStatus,a.setSubmitting;e.setState({accountInfo:Object(n.a)({},t)}),e.toBindPhone()},render:function(t){var n=t.values,s=n.tel,r=n.code,d=t.errors;return u.a.createElement(p.c,{className:"popup-form","data-skip":i},u.a.createElement("h2",{className:"popup-form__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),a&&u.a.createElement("div",{className:"poup-form__desc"},a),u.a.createElement("div",{className:"popup-form__item"},u.a.createElement("a",{className:"popup-form__button--num",onClick:e.toFetchCountryNum},"+",o.num,u.a.createElement("i",{className:"iconfont iconiconfront-69"})),u.a.createElement(p.b,{name:"tel",render:function(e){var t=e.field;return u.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt","data-type":"tel",type:"text",placeholder:"\u8bf7\u586b\u5199\u624b\u673a\u53f7"}))}})),u.a.createElement(f.a,{getInstance:e.getCaptchaInstance,onVerify:e.onVerify}),u.a.createElement("div",{className:"popup-form__item"},u.a.createElement(p.b,{name:"code",render:function(e){var t=e.field;return u.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt popup-form__ipt--left",type:"text",placeholder:"\u8f93\u5165\u9a8c\u8bc1\u7801"}))}}),u.a.createElement("button",{className:"popup-form__button--code","data-status":c&&!l?"do":"",type:"button",onClick:function(){return e.handleToSend({tel:s,code:r})}},l?"\u91cd\u65b0\u53d1\u9001".concat(m,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),u.a.createElement("button",{className:"popup-form__button--bundle","data-status":s&&r&&Object(h.isEmpty)(d)?"do":"done",type:"submit"},"\u5b8c\u6210\u7ed1\u5b9a"))}})}}]),t}(d.Component));t.a=b},743:function(e,t,a){},744:function(e,t,a){"use strict";a(37);var n=a(11),s=a.n(n),i=a(20),r=a(4),o=a(7),c=a(5),l=a(8),m=a(9),d=a(0),u=a.n(d),p=a(3),h=(a(745),function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,o=new Array(n),m=0;m<n;m++)o[m]=arguments[m];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).continueBindPhone=function(){var e=a.props,t=e.data,n=e.successBindPhone;p.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(i.a)({},t,{type:1,is_valid:0})).then(function(e){var t=e.data,a=t.code,i=t.msg;200===a?n():s.a.info(i,2,null,!1)})},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=e.bindInfo,a=void 0===t?{}:t,n=e.desc,s=e.skip,i=void 0===s?"year":s,r=e.handleToCancle;return u.a.createElement("div",{className:"popup-bind","data-skip":i},u.a.createElement("h2",{className:"popup-bind__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),n?u.a.createElement("div",{className:"popup-bind__desc"},n):u.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),u.a.createElement("ul",{className:"popup-bind__list"},a.email&&u.a.createElement("li",{className:"popup-bind__account"},u.a.createElement("i",{className:"popup-bind__icon","data-plat":"mail"}),u.a.createElement("p",{className:"popup-bind__account--name"},a.email)),a.wechat_nickname&&u.a.createElement("li",{className:"popup-bind__account"},u.a.createElement("i",{className:"popup-bind__icon","data-plat":"wachat"}),u.a.createElement("p",{className:"popup-bind__account--name"},a.wechat_nickname)),a.qq_nickname&&u.a.createElement("li",{className:"popup-bind__account"},u.a.createElement("i",{className:"popup-bind__icon","data-plat":"qq"}),u.a.createElement("p",{className:"popup-bind__account--name"},a.qq_nickname)),a.sina_nickname&&u.a.createElement("li",{className:"popup-bind__account"},u.a.createElement("i",{className:"popup-bind__icon","data-plat":"sina"}),u.a.createElement("p",{className:"popup-bind__account--name"},a.sina_nickname))),u.a.createElement("div",{className:"popup-bind__footer"},u.a.createElement("button",{className:"popup-bind__button popup-bind__button--cancle",onClick:r},"\u53d6\u6d88"),u.a.createElement("button",{className:"popup-bind__button popup-bind__button--confirm",onClick:this.continueBindPhone},"\u7ee7\u7eed\u7ed1\u5b9a")))}}]),t}(d.Component));t.a=h},745:function(e,t,a){}}]);
//# sourceMappingURL=treasure-box-mybox.5f131f10.chunk.js.map
\ No newline at end of file
......@@ -88,8 +88,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Examination.003c1591.chunk.js"
},
{
"revision": "99b2454970e48c8bb00578cdca15b3d2",
"url": "/mrstatic/media/iconfont.99b24549.ttf"
"revision": "64fd0b167457064e12ff8a6afcd31720",
"url": "/mrstatic/media/iconfont.64fd0b16.eot"
},
{
"revision": "c6bcaaaf577ed3e8727d",
......@@ -100,8 +100,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/MyEdit.7a287fd0.chunk.js"
},
{
"revision": "64fd0b167457064e12ff8a6afcd31720",
"url": "/mrstatic/media/iconfont.64fd0b16.eot"
"revision": "99b2454970e48c8bb00578cdca15b3d2",
"url": "/mrstatic/media/iconfont.99b24549.ttf"
},
{
"revision": "eb28da5ffa448e93bf1b",
......@@ -220,8 +220,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/50.41881c23.chunk.js"
},
{
"revision": "1d6852d1c16e63d72b7f",
"url": "/mrstatic/js/main.43bbbb72.chunk.js"
"revision": "2ddbc356e1b515dd34bb",
"url": "/mrstatic/js/main.ab2b3ed2.chunk.js"
},
{
"revision": "c524204d27fb998820d1",
......@@ -236,8 +236,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/48.5ce7e070.chunk.js"
},
{
"revision": "4d975309ae2aa022bc0d",
"url": "/mrstatic/js/newyear-2019-landing.d43f8992.chunk.js"
"revision": "52f73b0b0d62ae46ad0e",
"url": "/mrstatic/js/newyear-2019-landing.d7c3d74f.chunk.js"
},
{
"revision": "0c92200a7bb344715069",
......@@ -272,20 +272,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/python-class.5cca1ffb.chunk.js"
},
{
"revision": "db24a933e588942d7113",
"url": "/mrstatic/js/runtime~main.cf07b0e4.js"
"revision": "561e661b9b1bc602f710",
"url": "/mrstatic/js/runtime~main.6f966b6a.js"
},
{
"revision": "734674d9a8b8cfd19d5d",
"url": "/mrstatic/js/treasure-box-mybox.5d14604c.chunk.js"
"revision": "602e7c833e2ac47b90f8",
"url": "/mrstatic/js/treasure-box-mybox.5f131f10.chunk.js"
},
{
"revision": "0723110b47af657e05ae",
"url": "/mrstatic/js/search.20bbab86.chunk.js"
},
{
"revision": "8928f35adff28bc8e44a",
"url": "/mrstatic/js/treasure-box-home.911fee53.chunk.js"
"revision": "0734927c33de37a03257",
"url": "/mrstatic/js/treasure-box-home.65ce5812.chunk.js"
},
{
"revision": "a50a87d4623731173d76",
......@@ -316,7 +316,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/togroup.f08bc5f3.chunk.css"
},
{
"revision": "8928f35adff28bc8e44a",
"revision": "0734927c33de37a03257",
"url": "/mrstatic/css/treasure-box-home.d7bb8063.chunk.css"
},
{
......@@ -324,7 +324,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/video.e614ee3d.chunk.css"
},
{
"revision": "734674d9a8b8cfd19d5d",
"revision": "602e7c833e2ac47b90f8",
"url": "/mrstatic/css/treasure-box-mybox.b5f40384.chunk.css"
},
{
......@@ -364,7 +364,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/48.ae54e35c.chunk.css"
},
{
"revision": "4d975309ae2aa022bc0d",
"revision": "52f73b0b0d62ae46ad0e",
"url": "/mrstatic/css/newyear-2019-landing.57b46b09.chunk.css"
},
{
......@@ -380,7 +380,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/50.820320a6.chunk.css"
},
{
"revision": "1d6852d1c16e63d72b7f",
"revision": "2ddbc356e1b515dd34bb",
"url": "/mrstatic/css/main.22eaa155.chunk.css"
},
{
......@@ -528,7 +528,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/1.037b510f.chunk.css"
},
{
"revision": "5b9b2186adf7f39cf6c6a30234f12599",
"revision": "29a1d721756306b38c3f44e2ffa2d83e",
"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.f5a61bbc0c7a3238c6e7ceb353154ff4.js"
"/precache-manifest.4f139c9fd3c399cc2f47bac47b867aea.js"
);
workbox.clientsClaim();
......
......@@ -43,7 +43,7 @@ class Landing extends Component {
this.fetchPageData()
this.getIndexData()
window.showFollowAlert = this.remind.bind(this, 'create')
document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线'
document.title = 'AI就业季,开宝箱免费拿VIP年会员,200本程序员必备纸质书免费包邮送!- 七月在线'
const landing = document.querySelector('#landing')
const boxContainer = document.querySelector('.box-container')
if (boxContainer.offsetHeight < window.innerHeight) {
......
......@@ -43,7 +43,7 @@ class MyTreasure extends Component {
componentDidMount() {
this.fetchMyTreasure()
this.fetchActivityStatus()
document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线';
document.title = 'AI就业季,开宝箱免费拿VIP年会员,200本程序员必备纸质书免费包邮送!- 七月在线';
}
componentWillReceiveProps(nextProp) {
......
......@@ -39,7 +39,7 @@ export default class index extends Component {
_this.loginInfo(result)
}
_this.getStage()
document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线';
document.title = 'AI就业季,开宝箱免费拿VIP年会员,200本程序员必备纸质书免费包邮送!- 七月在线';
}
// 获取app登录数据
......
......@@ -23,9 +23,9 @@ class YarnWish extends Component {
componentWillUpdate() {
const {activityStage} = this.state
if (activityStage == 1) {
document.title = `七月在线年终大回馈,人气好课免费学,精品课程1分抢!`
document.title = `AI就业季,开宝箱免费拿VIP年会员,200本程序员必备纸质书免费包邮送!- 七月在线`
} else {
document.title = `七月在线年终大回馈,人气好课免费学,精品课程1分抢!`
document.title = `AI就业季,开宝箱免费拿VIP年会员,200本程序员必备纸质书免费包邮送!- 七月在线`
}
}
......
......@@ -71,6 +71,21 @@ class Login extends Component {
history.push('/passport/student-login')
}
componentDidMount() {
const {location} = this.props
const {action} = this.props.history
let pathname = location.state && location.state.from && location.state.from.pathname
let search = location.state && location.state.from && location.state.from.search
console.log(action,pathname,search);
if(action !== 'POP'){
let historyUrl = `${pathname}${search}`
window.localStorage.setItem('HistoryUrl',historyUrl)
}
}
render() {
const {
loginWays,
......@@ -122,7 +137,7 @@ class Login extends Component {
onVerify={this.onVerify}
/>
<LoginButton active={values.tel && values.veriCode && isEmpty(errors)}/>
{/* 助学计划 */}
<div className="student-root">
<a className="student-root__button" onClick={this.toStudentRegister}>助学计划</a>
......
......@@ -15,6 +15,35 @@ import { connect } from "react-redux"
import { setCurrentUser } from '@/store/userAction'
class SetPassword extends Component {
toFrom = () => {
let historyUrl = window.localStorage.getItem('HistoryUrl')
const {history} = this.props
history.push(historyUrl)
// window.localStorage.removeItem('HistoryUrl')
return
}
//
// componentDidMount() {
// const {location} = this.props
// const {action} = this.props.history
// let pathname = location.state && location.state.from && location.state.from.pathname
// let search = location.state && location.state.from && location.state.from.search
//
// console.log(location);
// console.log(location.state);
// console.log(action,pathname,search);
//
// // if(action !== 'PUSH'){
// // let historyUrl = `${pathname}${search}`
// // window.localStorage.setItem('HistoryUrl',historyUrl)
// // }
//
// }
render() {
let {values, errors, location} = this.props
let {from} = location.state || {from: {pathname: '/'}}
......@@ -52,7 +81,7 @@ class SetPassword extends Component {
</Form>
<div className="skip"
style={{display: from && from.pathname.includes('forgot-password') ? 'none' : 'block'}}>
<Link replace to='/passport/account-login'>跳过</Link>
<span onClick={this.toFrom}>跳过</span>
</div>
</div>
</>
......@@ -68,7 +97,6 @@ const formikConfig = {
}
},
handleSubmit: (values, {props}) => {
const {location} = props
let from = location.state && location.state.records && location.state.records[location.state.records.length - 2] || {pathname: '/'}
......@@ -108,7 +136,7 @@ function forgotPasswordReset(values, props) {
if (res.data.errno == 200) {
Toast.info('密码设置成功')
setTimeout(function () {
props.history.replace('/passport/account-login')
props.history.replace('/passport/account-login')
}, 1000)
} else {
Toast.info(res.data.msg, 2, null, false)
......@@ -117,7 +145,6 @@ function forgotPasswordReset(values, props) {
}
function bindMobileSetPassword(values, props) {
http.post(`${API['passport-api']}/bind_mobile/set_pwd_new`, {
uid: props.user.data.uid,
password: encrypt(values.password)
......@@ -128,10 +155,21 @@ function bindMobileSetPassword(values, props) {
Toast.info('密码设置成功')
let from = location.state && location.state.from || {pathname: '/'}
let local_redirect_url = JSON.parse(window.localStorage.getItem('binding_redirect'))
setTimeout(function () {
if (local_redirect_url) {
const {pathname, search, hash} = local_redirect_url
history.replace(pathname + search + hash)
// setTimeout(function () {
// if (local_redirect_url) {
// const {pathname, search, hash} = local_redirect_url
// history.replace(pathname + search + hash)
// } else {
// history.replace(from.pathname)
// }
// }, 1000)
let HistoryUrl = window.localStorage.getItem('HistoryUrl')
setTimeout(()=> {
if (HistoryUrl) {
let historyUrl = window.localStorage.getItem('HistoryUrl')
props.history.push(historyUrl)
} else {
history.replace(from.pathname)
}
......
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