Commit 04f8bd0d by xuzhenghua

宝箱

parent 433b6004
......@@ -89,8 +89,8 @@
"myorders.js": "/mrstatic/js/myorders.9f9fb0cd.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.9f9fb0cd.chunk.js.map",
"newyear-2019-landing.css": "/mrstatic/css/newyear-2019-landing.57b46b09.chunk.css",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.a9a5b25d.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.a9a5b25d.chunk.js.map",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.0a331da1.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.0a331da1.chunk.js.map",
"newyear-yearIndex.css": "/mrstatic/css/newyear-yearIndex.50beb090.chunk.css",
"newyear-yearIndex.js": "/mrstatic/js/newyear-yearIndex.244d529a.chunk.js",
"newyear-yearIndex.js.map": "/mrstatic/js/newyear-yearIndex.244d529a.chunk.js.map",
......@@ -103,8 +103,8 @@
"python-class.css": "/mrstatic/css/python-class.1fe9d108.chunk.css",
"python-class.js": "/mrstatic/js/python-class.f9f16c0a.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.f9f16c0a.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.e3598684.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.e3598684.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.8bde8b2d.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.8bde8b2d.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.012259e9.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.012259e9.chunk.js.map",
"treasure-box-home.css": "/mrstatic/css/treasure-box-home.d7bb8063.chunk.css",
"treasure-box-home.js": "/mrstatic/js/treasure-box-home.800f0ead.chunk.js",
"treasure-box-home.js.map": "/mrstatic/js/treasure-box-home.800f0ead.chunk.js.map",
"treasure-box-home.js": "/mrstatic/js/treasure-box-home.a88198e8.chunk.js",
"treasure-box-home.js.map": "/mrstatic/js/treasure-box-home.a88198e8.chunk.js.map",
"treasure-box-mybox.css": "/mrstatic/css/treasure-box-mybox.b5f40384.chunk.css",
"treasure-box-mybox.js": "/mrstatic/js/treasure-box-mybox.30325f1c.chunk.js",
"treasure-box-mybox.js.map": "/mrstatic/js/treasure-box-mybox.30325f1c.chunk.js.map",
"treasure-box-mybox.js": "/mrstatic/js/treasure-box-mybox.072605c6.chunk.js",
"treasure-box-mybox.js.map": "/mrstatic/js/treasure-box-mybox.072605c6.chunk.js.map",
"video.css": "/mrstatic/css/video.da74d427.chunk.css",
"video.js": "/mrstatic/js/video.7755d50c.chunk.js",
"video.js.map": "/mrstatic/js/video.7755d50c.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.b1fac8804d278cd121ff3b50057c6005.js": "/precache-manifest.b1fac8804d278cd121ff3b50057c6005.js",
"precache-manifest.ff8a6686704c273a4d9eca4b6101d242.js": "/precache-manifest.ff8a6686704c273a4d9eca4b6101d242.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.c8eb5297.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],d=0,c=[];d<a.length;d++)t=a[d],b[t]&&c.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);c.length;)c.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:"da74d427",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 d=(f=t[o]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(d===r||d===n))return e()}var c=document.getElementsByTagName("style");for(o=0;o<c.length;o++){var f;if((d=(f=c[o]).getAttribute("data-href"))===r||d===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:"d8e45a1d",2:"0417c21c",3:"4a2be69d",4:"8874c5f6",5:"7c543670",6:"9418f550",7:"0b8e4d1f",8:"aeb80b54",9:"be5e259c",10:"cb4e04da",11:"003c1591",12:"f5b59b90",13:"9defb510",14:"bda64a0f",15:"838a0a03",16:"086661ea",17:"1d7f72c5",18:"3d841bb3",19:"559cd543",20:"b0678d9f",21:"a547ca35",22:"baedc6ef",23:"091821bc",24:"2d7b00a3",25:"4ed18a9e",26:"4ebbdc92",27:"89212ccd",28:"6ad5e869",30:"9f9fb0cd",31:"a9a5b25d",32:"244d529a",33:"47d0e4b3",34:"748cd18b",35:"f9f16c0a",37:"20bbab86",38:"5196fde9",39:"5435cfbb",40:"736d4af5",41:"012259e9",42:"800f0ead",43:"30325f1c",44:"7755d50c",46:"44f38ed3",47:"4ef49615",48:"1ae71ff2",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"ca09d94c",53:"63fffc38",54:"64490914",55:"edc8af37",56:"3bd63341",57:"41670a6c",58:"86365e8c",59:"cbe2e2d8",60:"854d7550",61:"65b25a7d",62:"dc00bc5d"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(d);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 d=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.32cab183.chunk.js"></script><script src="/mrstatic/js/main.dc58d8b1.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.c8eb5297.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/api.js"></script><script>!function(i){function e(e){for(var r,t,a=e[0],n=e[1],o=e[2],d=0,c=[];d<a.length;d++)t=a[d],b[t]&&c.push(b[t][0]),b[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(p&&p(e);c.length;)c.shift()();return s.push.apply(s,o||[]),f()}function f(){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 i[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:"da74d427",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 d=(i=t[o]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(d===r||d===n))return e()}var c=document.getElementsByTagName("style");for(o=0;o<c.length;o++){var i;if((d=(i=c[o]).getAttribute("data-href"))===r||d===n)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.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],f.parentNode.removeChild(f),a(t)},f.href=n,document.getElementsByTagName("head")[0].appendChild(f)}).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:"d8e45a1d",2:"0417c21c",3:"4a2be69d",4:"8874c5f6",5:"7c543670",6:"9418f550",7:"0b8e4d1f",8:"aeb80b54",9:"be5e259c",10:"cb4e04da",11:"003c1591",12:"f5b59b90",13:"9defb510",14:"bda64a0f",15:"838a0a03",16:"086661ea",17:"1d7f72c5",18:"3d841bb3",19:"559cd543",20:"b0678d9f",21:"a547ca35",22:"baedc6ef",23:"091821bc",24:"2d7b00a3",25:"4ed18a9e",26:"4ebbdc92",27:"89212ccd",28:"6ad5e869",30:"9f9fb0cd",31:"0a331da1",32:"244d529a",33:"47d0e4b3",34:"748cd18b",35:"f9f16c0a",37:"20bbab86",38:"5196fde9",39:"5435cfbb",40:"736d4af5",41:"012259e9",42:"a88198e8",43:"072605c6",44:"7755d50c",46:"44f38ed3",47:"4ef49615",48:"1ae71ff2",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"ca09d94c",53:"63fffc38",54:"64490914",55:"edc8af37",56:"3bd63341",57:"41670a6c",58:"86365e8c",59:"cbe2e2d8",60:"854d7550",61:"65b25a7d",62:"dc00bc5d"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(d);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 d=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},l.m=i,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;f()}([])</script><script src="/mrstatic/js/45.32cab183.chunk.js"></script><script src="/mrstatic/js/main.dc58d8b1.chunk.js"></script></body></html>
\ 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(36),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",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(36),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.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",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.a9a5b25d.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(36),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",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(36),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.0a331da1.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/box-container/container.js","components/activity/newyear-2019/landing/index.js","components/activity/treasure-box/box-container/container.js","components/activity/treasure-box/landing/index.js"],"names":["Container","react_default","a","createElement","className","this","props","children","Component","Landing","closeIcon","createTeamSuccessPopup","joinSuccessPopup","shareTipPopup","swiper","shareTitle","shareDesc","state","teamData","member","origin","sessionStorage","getItem","getParam","treasure_code","activityEnd","notices","rule","isCaptain","isLoading","_this","user","isFetching","getStage","http","get","concat","API","home","then","res","_res$data","data","code","msg","Number","activity_stage","history","push","toast_default","info","createMeta","title","dec","imgname","meta","document","setAttribute","meta2","meta3","head","getElementsByTagName","appendChild","fetchPageData","_ref","arguments","length","undefined","_ref$origin","_ref$treasure_code","location","post","_res$data2","setState","status","setupWxShareConfig","browser","isWeixin","wxShare","desc","link","window","pathname","imgUrl","searchParams","URLSearchParams","search","set","setItem","replaceState","toString","showSharePromptWithParam","len","count","showShareTip","joinTeam","requiredLogin","_res$data3","joinSuccess","handleToMyTreasure","id","remove","assign","_ref2","_ref2$my_team","my_team","team_num","lack_member","is_team","Popup","src","alt","content","Fragment","style","width","marginTop","onClick","bind","Object","assertThisInitialized","type","inviteMembers","createMyTeam","close","getFollowStatus","isFollow","remind","_this$props","match","SendMessageToApp","replace","url","_res$data4","createTeamSuccess","_ref3","Array","fill","map","item","index","_member","key","afterClose","saveImage","version","slice","parseInt","uid","text","QRCode","toDataURL","isAndroidApp","_this$props2","isIOSApp","closable","removeItem","hasError","showOpenInBrowserTip","_res$data5","_this$props3","encodeURIComponent","toSquare","showFollowAlert","landing","querySelector","boxContainer","offsetHeight","innerHeight","minHeight","prevProps","_this$state","_this$state$teamData","head_img","prize_info","standby_plan","href","container","white_space_default","prizes","showSystemNotices","user_bullet_screen","is_captain","stage_no","name","size","YearCourse","getSum","innerWidth","height","react_spinners","color","loading","connect","modules","getIndexData","isArray","treasure_stage","_ref2$origin","_ref2$treasure_code","_ref3$my_team","_ref4","course_list","all_course"],"mappings":"+SAceA,4LAVX,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAW,iBACdH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACZC,KAAKC,MAAMC,kBALEC,oGC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EAMLyB,GACD3B,EAAAC,EAAAC,cAAA,OAAKC,UAAW,iBACdH,EAAAC,EAAAC,cAACuM,EAAA,EAAD,CACER,QAASA,IAEXjM,EAAAC,EAAAC,cAACwM,EAAA,EAAD,OAIF9K,GACA5B,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UAAU8G,MAAO,CAACC,MAAOlC,OAAO2G,WAAa,KAAMC,OAAQ5G,OAAOuF,YAAc,OAC7FvK,EAAAC,EAAAC,cAAC2L,EAAA,WAAD,CACEC,MAAO,OACPC,QAASnK,aA3nBDrB,aAooBPyL,sBACb,SAAAhL,GAAK,MAAK,CAACc,KAAMd,EAAMc,OACvB,KAFakK,CAGbxL","file":"mrstatic/js/newyear-2019-landing.0a331da1.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './box-container.scss'\nclass Container extends Component {\n render() {\n return (\n <div className={'box-container'}>\n <div className=\"image-box\">\n {this.props.children}\n </div>\n </div>\n )\n }\n}\n\nexport default Container\n","import React, { Component } from 'react'\nimport BoxContainer from '../box-container/container'\nimport { Toast, WhiteSpace } from \"antd-mobile\"\nimport { Popup } from \"@common/index\"\nimport { connect } from \"react-redux\"\nimport Prizes from \"@components/activity/newyear-2019/common/prizes\"\nimport BulletScreen from \"@components/activity/newyear-2019/common/user-bullet-screen\"\nimport './landing.scss'\nimport { browser, getParam, http, wxShare, SendMessageToApp } from \"@/utils\"\nimport QRCode from \"qrcode\"\nimport YearCourse from '../preheat/YearCourse'\nimport { FadeLoader } from \"react-spinners\"\n\n\nclass Landing extends Component {\n\n\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n createTeamSuccessPopup = null\n joinSuccessPopup = null\n shareTipPopup = null\n swiper = null\n shareTitle = ''\n shareDesc = ''\n\n\n state = {\n teamData: {\n member: []\n },\n origin: sessionStorage.getItem('isCaptain') ? 1 : getParam('origin'),\n treasure_code: getParam('treasure_code'),\n activityEnd: false,\n notices: [],\n rule: '',\n isCaptain: getParam('origin') == 1,\n isLoading: this.props.user.isFetching\n }\n\n componentDidMount() {\n this.getStage();\n this.fetchPageData()\n window.showFollowAlert = this.remind.bind(this, 'create')\n document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线'\n const landing = document.querySelector('#landing')\n const boxContainer = document.querySelector('.box-container')\n if (boxContainer.offsetHeight < window.innerHeight) {\n landing.style.minHeight = `${window.innerHeight}px`\n boxContainer.style.minHeight = `${window.innerHeight}px`\n }\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError) {\n this.fetchPageData()\n }\n if(prevProps.user.isFetching !== this.props.user.isFetching && !this.props.user.isFetching){\n this.setState({\n isLoading: this.props.user.isFetching\n })\n }\n }\n\n componentWillUnmount() {\n this.shareTipPopup && this.shareTipPopup.remove()\n }\n\n // 获取活动以及宝箱的阶段\n getStage = () => {\n http.get(`${API.home}/activity/stage`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n if(Number(data.activity_stage) === 0) {\n this.props.history.push('/');\n return;\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n createMeta = (title,dec,imgname) => {\n let meta = document.createElement('meta');\n meta.setAttribute('name', 'description')\n meta.setAttribute('itemprop', 'description')\n meta.setAttribute('content', dec)\n\n let meta2 = document.createElement('meta')\n meta2.setAttribute('itemprop', 'name')\n meta2.setAttribute('content', title)\n\n let meta3 = document.createElement('meta')\n meta3.setAttribute('itemprop', 'image')\n meta3.setAttribute('content', imgname)\n\n let head = document.getElementsByTagName('head')[0]\n head.appendChild(meta)\n head.appendChild(meta2)\n head.appendChild(meta3)\n }\n\n fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {\n const {location} = this.props\n http.post(`${API.home}/sys/treasure/team`, {\n treasure_code,\n origin\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.setState({\n teamData: data,\n isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1,\n activityEnd: data.status == 5\n })\n\n this.setupWxShareConfig(data.member)\n\n if (browser.isWeixin) {\n wxShare({\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n // history.replace(`${match.url}?treasure_code=${getParam('treasure_code')}&origin=2`)\n } else {\n this.createMeta(this.shareTitle, this.shareDesc, 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png')\n }\n\n let searchParams = new URLSearchParams(window.location.search)\n if (searchParams.get('origin') === '1' && !browser.isWeixin) {\n searchParams.set('origin', '2')\n sessionStorage.setItem('isCaptain', '1')\n window.history.replaceState(null, '', `landing?${searchParams.toString()}`)\n }\n\n this.showSharePromptWithParam()\n\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n setupWxShareConfig = member => {\n const len = member.length\n let count = 5 - len <= 0 ? 4 : 5 - len\n this.shareTitle = `还差${count}人即可开宝箱,100%有奖!`\n this.shareDesc = '加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!--七月在线'\n }\n\n showSharePromptWithParam = () => {\n if (sessionStorage.getItem('showShareTip') && !sessionStorage.getItem('closedRemind')) {\n this.showShareTip()\n }\n }\n\n joinTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n const {treasure_code} = this.state\n http.post(`${API.home}/sys/treasure/joinTeam`, {\n treasure_code\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code === 200) {\n\n /*\n * status\n * 1-成功加入\n * 2-成功加入组队成功\n * 3-已加入当前队伍\n * 4-已加入其他队伍\n * */\n\n switch (data.status) {\n case 1:\n case 2:\n this.joinSuccess(data)\n break\n default:\n Toast.info(msg, 2, null, false)\n }\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n handleToMyTreasure = id => {\n const {history} = this.props\n this.joinSuccessPopup && this.joinSuccessPopup.remove()\n if (getParam('version')) {\n window.location.assign(`https://m.julyedu.com/year/yearTreasure?id=${id}&version=${getParam('version')}`)\n } else {\n window.location.assign(`https://m.julyedu.com/year/yearTreasure?id=${id}`)\n }\n }\n\n joinSuccess = ({id, status, my_team: {team_num, lack_member, is_team, treasure_code}}) => {\n this.joinSuccessPopup = Popup({\n title: <div className={'join-success'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png\" alt=\"\"/>\n <div>成功加入队伍</div>\n </div>,\n className: 'landing-join-success-wrapper',\n content: <div>\n <div className={'tip'}>\n {\n status === 2\n ? '组队成功,恭喜你获得一个宝箱!'\n : is_team\n ? <>您的{<span>{team_num}</span>}号队伍还差{<span>{lack_member}</span>}人即可获得宝箱</>\n : '自己当队长,宝箱内有专属奖品哦~'\n }\n </div>\n {\n status === 2\n ? <img style={{width: '150px', marginTop: '23px'}}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif\"\n alt=\"\"\n onClick={this.handleToMyTreasure.bind(this, id)}\n />\n : is_team\n ? <button type='button'\n onClick={this.inviteMembers.bind(this, treasure_code)}>继续组队</button>\n : <button type=\"button\" onClick={this.createMyTeam}>创建我的队伍</button>\n }\n </div>,\n closeIcon: this.closeIcon,\n close: () => {\n this.fetchPageData()\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('join', this.state.treasure_code, 2)\n })\n }\n })\n }\n\n inviteMembers = treasure_code => {\n const {history, match, user, location} = this.props\n if (getParam('version')) {\n let data = {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${treasure_code}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n }\n SendMessageToApp(\"toShare\", data)\n }\n sessionStorage.setItem('showShareTip', '1')\n history.replace(`${match.url}?treasure_code=${treasure_code}&origin=${1}`)\n this.createTeamSuccessPopup && this.createTeamSuccessPopup.remove() && (this.createTeamSuccessPopup = null)\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.fetchPageData({treasure_code, origin: 1})\n this.setState({\n isCaptain: true\n })\n }\n\n getFollowStatus = () => http.get(`${API.home}/sys/user/isFollowWeChat`)\n .then(res => {\n const {code, data} = res.data\n return code === 200 && data['is_follow']\n })\n\n createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.getFollowStatus()\n .then(isFollow => {\n this.createTeamSuccessPopup = Popup({\n title: '创建成功',\n className: 'landing-create-success',\n content: <div>\n <div className=\"tip\">{<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~</div>\n <img className={'treasure-box'}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png\" alt=\"\"/>\n <ul className='members'>\n {\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return <li key={index}>\n {_member && _member['is_captain'] && <sup>队长</sup>}\n <img\n className={'avatar'}\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n })\n }\n </ul>\n <button type={'button'} onClick={this.inviteMembers.bind(this, treasure_code)}>邀请好友加入队伍</button>\n </div>,\n closeIcon: this.closeIcon,\n afterClose: () => {\n if (!isFollow) {\n this.remind('create', treasure_code)\n }\n }\n })\n\n })\n }\n\n // 安卓手机保存二维码\n saveImage = url => {\n let version = getParam('version')\n version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''\n if (version && parseInt(version) < 451) {\n Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)\n } else {\n SendMessageToApp('generateQRCode', url)\n }\n }\n\n\n remind = (type = 'create', treasure_code, origin = 1) => {\n const {user} = this.props\n http.get(`${API[\"base-api\"]}/wx/user_temporary_qrcode/${user.data.uid}`)\n .then(res => {\n const {data} = res.data\n return data.url\n }).then(text => {\n QRCode.toDataURL(text)\n .then(url => {\n Popup({\n title: '提醒服务',\n className: 'landing-remind',\n closeIcon: this.closeIcon,\n content: <div>\n <div className=\"des\">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div>\n <img src={url} alt=\"\"/>\n {browser.isAndroidApp ? <div>\n <button className={'android-qr-code-btn'} onClick={this.saveImage.bind(this, text)}>保存二维码</button>\n </div> : null}\n <div className=\"des\">长按识别/扫码 关注【七月在线】服务号即可预约</div>\n </div>,\n close: () => {\n // history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)\n sessionStorage.setItem('closedRemind', '1')\n this.fetchPageData({\n treasure_code,\n origin\n })\n }\n })\n })\n })\n\n }\n\n showShareTip = () => {\n const {user, location} = this.props\n if (browser.isAndroidApp || browser.isIOSApp) {\n\n SendMessageToApp('toShare', {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n\n } else {\n this.shareTipPopup = Popup({\n title: <div>还差<span>{this.state.teamData.lack_member}</span>名队友即可获得宝箱 快分享给好友吧~</div>,\n className: `landing-share-tip ${browser.isWeixin ? 'wechat' : ''}`,\n closable: false,\n close: () => {\n sessionStorage.removeItem('showShareTip')\n if (!user.hasError) {\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('create', getParam('treasure_code'), 1)\n })\n }\n }\n })\n }\n }\n\n showOpenInBrowserTip = () => {\n Popup({\n title: <div>点击右上角,选择“在浏览器打开”</div>,\n className: 'landing-open-in-browser-tip',\n closable: false,\n })\n }\n\n createMyTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n http.get(`${API.home}/sys/treasure/createMyTeam`)\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.createTeamSuccess(data)\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n requiredLogin = () => {\n const {history, user, location} = this.props\n if (user.hasError) {\n if (browser.isWeixin) {\n window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(`${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=${getParam('origin')}&aa=bb`)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)\n } else {\n history.push('/passport')\n }\n return true\n }\n }\n\n toSquare = () => {\n const {history} = this.props\n if (!getParam('version')) {\n window.location.assign('https://m.julyedu.com/year/yearindex')\n } else {\n window.location.assign('https://m.julyedu.com/year/yearindex?version=' + getParam('version'))\n }\n }\n\n render() {\n const {\n teamData: {\n head_img,\n member,\n status,\n lack_member,\n team_num,\n prize_info,\n my_team,\n standby_plan\n },\n activityEnd,\n isCaptain,\n isLoading\n } = this.state\n /*\n * status\n * 1-自己的队伍\n * 2-未加入队伍\n * 3-已加入当前队伍\n * 4-已加入别的队伍\n * */\n return (\n <div id={'landing'}>\n {\n !(standby_plan && browser.isWeixin) &&\n <div id=\"to-square\">\n <a href='javascript:' onClick={this.toSquare}>前往活动会场,享更多福利! >></a>\n </div>\n }\n <BoxContainer>\n <i className={`snow-deco ${standby_plan && browser.isWeixin ? 'standby' : ''}`}/>\n {\n standby_plan && browser.isWeixin &&\n <>\n <WhiteSpace className={'standby-space'}/>\n <div className={'standby-tip'}>点击右上角,选择“在浏览器打开”</div>\n </>\n }\n <img className='main-avatar'\n src={head_img} alt=\"\"/>\n {\n status === 1\n ? <div className=\"des\">邀请好友加入队伍,开宝箱领取丰厚奖品~</div>\n : <div className=\"des\">加入我的<span>{team_num}</span>号队伍,一起开宝箱领取丰厚奖品~</div>\n }\n <Prizes showSystemNotices={false}/>\n <BulletScreen/>\n <div className=\"group\">\n <ul className={'member'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return (\n _member\n ? <li key={index}>\n <div className='avatar-wrapper'>\n {\n _member.is_captain ? <sup>队长</sup> : null\n }\n <img\n src={_member.head_img}\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n :\n <li key={index}>\n <div className=\"avatar-wrapper\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png\"\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n )\n })\n }\n </ul>\n <ul className={'bars'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n return (\n <li key={index} className={`${index < member.length ? 'active' : ''}`}/>\n )\n })\n }\n </ul>\n {\n status === 1 && !activityEnd &&\n <>\n <div className=\"group-des\">\n 还差 {lack_member} 名队员即可获得当前宝箱哦~\n </div>\n {\n !(standby_plan && browser.isWeixin) &&\n <button type='button' className={'invite-btn'} onClick={this.showShareTip}>\n 邀请好友加入队伍\n </button>\n }\n </>\n }\n {\n status === 3 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入当前队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n status === 4 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入其他队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n !(standby_plan && browser.isWeixin) && status === 2 && !activityEnd &&\n < button type='button' className={'invite-btn'} onClick={this.joinTeam}>\n 同意加入队伍\n </button>\n }\n {\n prize_info && prize_info.length !== 0 && !activityEnd && !isCaptain && <div className=\"certainly-prompt\">\n 第{prize_info[0].stage_no}个宝箱必中 {prize_info[0].name}\n </div>\n }\n {\n activityEnd &&\n <div className='activity-end'>\n <div>活动已结束</div>\n <div>关注【七月在线】服务号了解更多活动信息</div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n <div>长按识别 / 微信扫码</div>\n </div>\n }\n </div>\n </BoxContainer>\n {\n !isCaptain &&\n <>\n <WhiteSpace size={'xl'}/>\n <YearCourse getSum={() => {\n }}/>\n </>\n }\n {\n isLoading && <div className=\"loading\" style={{width: window.innerWidth + 'px', height: window.innerHeight + 'px'}}>\n <FadeLoader\n color={'#fff'}\n loading={isLoading}\n />\n </div>\n }\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Landing)\n","import React, { Component } from 'react'\nimport './box-container.scss'\nclass Container extends Component {\n render() {\n return (\n <div className={'box-container'}>\n <div className=\"image-box\">\n {this.props.children}\n </div>\n </div>\n )\n }\n}\n\nexport default Container\n","import React, { Component } from 'react'\nimport BoxContainer from '../box-container/container'\nimport { Toast, WhiteSpace } from \"antd-mobile\"\nimport { Popup } from \"@common/index\"\nimport { connect } from \"react-redux\"\nimport Prizes from \"@components/activity/newyear-2019/common/prizes\"\nimport BulletScreen from \"@components/activity/newyear-2019/common/user-bullet-screen\"\nimport './landing.scss'\nimport { browser, getParam, http, wxShare, SendMessageToApp } from \"@/utils\"\nimport QRCode from \"qrcode\"\nimport { FadeLoader } from \"react-spinners\"\nimport HomeCourseList from \"@components/Index/course-list\"\nimport AllCourseNavigation from \"@components/Index/all-course\"\n\nclass Landing extends Component {\n\n\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n createTeamSuccessPopup = null\n joinSuccessPopup = null\n shareTipPopup = null\n swiper = null\n shareTitle = ''\n shareDesc = ''\n\n\n state = {\n teamData: {\n member: []\n },\n origin: sessionStorage.getItem('isCaptain') ? 1 : getParam('origin'),\n treasure_code: getParam('treasure_code'),\n activityEnd: false,\n notices: [],\n rule: '',\n isCaptain: getParam('origin') == 1,\n isLoading: this.props.user.isFetching,\n modules: []\n }\n\n componentDidMount() {\n this.getStage();\n this.fetchPageData()\n this.getIndexData()\n window.showFollowAlert = this.remind.bind(this, 'create')\n document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线'\n const landing = document.querySelector('#landing')\n const boxContainer = document.querySelector('.box-container')\n if (boxContainer.offsetHeight < window.innerHeight) {\n landing.style.minHeight = `${window.innerHeight}px`\n boxContainer.style.minHeight = `${window.innerHeight}px`\n }\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError) {\n this.fetchPageData()\n }\n if (prevProps.user.isFetching !== this.props.user.isFetching && !this.props.user.isFetching) {\n this.setState({\n isLoading: this.props.user.isFetching\n })\n }\n }\n\n componentWillUnmount() {\n this.shareTipPopup && this.shareTipPopup.remove()\n }\n\n\n // 首页课程\n getIndexData = () => {\n http.get(`${API.home}/m/home`).then((res) => {\n if (res.data.code === 200) {\n const {data} = res.data || {}\n const modules = Array.isArray(data.modules) ? data.modules : []\n this.setState({\n modules\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n // 获取活动以及宝箱的阶段\n getStage = () => {\n http.get(`${API.home}/activity/stage`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n if (Number(data.treasure_stage) === 0) {\n this.props.history.push('/');\n return;\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n createMeta = (title, dec, imgname) => {\n let meta = document.createElement('meta');\n meta.setAttribute('name', 'description')\n meta.setAttribute('itemprop', 'description')\n meta.setAttribute('content', dec)\n\n let meta2 = document.createElement('meta')\n meta2.setAttribute('itemprop', 'name')\n meta2.setAttribute('content', title)\n\n let meta3 = document.createElement('meta')\n meta3.setAttribute('itemprop', 'image')\n meta3.setAttribute('content', imgname)\n\n let head = document.getElementsByTagName('head')[0]\n head.appendChild(meta)\n head.appendChild(meta2)\n head.appendChild(meta3)\n }\n\n fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {\n const {location} = this.props\n http.post(`${API.home}/sys/treasure/team`, {\n treasure_code,\n origin\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.setState({\n teamData: data,\n isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1,\n activityEnd: data.status == 5\n })\n\n this.setupWxShareConfig(data.member)\n\n if (browser.isWeixin) {\n wxShare({\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n // history.replace(`${match.url}?treasure_code=${getParam('treasure_code')}&origin=2`)\n } else {\n this.createMeta(this.shareTitle, this.shareDesc, 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png')\n }\n\n let searchParams = new URLSearchParams(window.location.search)\n if (searchParams.get('origin') === '1' && !browser.isWeixin) {\n searchParams.set('origin', '2')\n sessionStorage.setItem('isCaptain', '1')\n window.history.replaceState(null, '', `landing?${searchParams.toString()}`)\n }\n\n this.showSharePromptWithParam()\n\n\n } else {\n if (code !== 520) {\n Toast.info(msg, 2, null, false)\n }\n }\n })\n }\n\n setupWxShareConfig = member => {\n const len = member.length\n let count = 5 - len <= 0 ? 4 : 5 - len\n this.shareTitle = `还差${count}人即可开宝箱,100%有奖!`\n this.shareDesc = '加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!--七月在线'\n }\n\n showSharePromptWithParam = () => {\n if (sessionStorage.getItem('showShareTip') && !sessionStorage.getItem('closedRemind')) {\n this.showShareTip()\n }\n }\n\n joinTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n const {treasure_code} = this.state\n http.post(`${API.home}/sys/treasure/joinTeam`, {\n treasure_code\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code === 200) {\n\n /*\n * status\n * 1-成功加入\n * 2-成功加入组队成功\n * 3-已加入当前队伍\n * 4-已加入其他队伍\n * */\n\n switch (data.status) {\n case 1:\n case 2:\n this.joinSuccess(data)\n break\n default:\n Toast.info(msg, 2, null, false)\n }\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n handleToMyTreasure = id => {\n const {history} = this.props\n this.joinSuccessPopup && this.joinSuccessPopup.remove()\n if (getParam('version')) {\n window.location.assign(`https://m.julyedu.com/box/yearTreasure?id=${id}&version=${getParam('version')}`)\n } else {\n window.location.assign(`https://m.julyedu.com/box/yearTreasure?id=${id}`)\n }\n }\n\n joinSuccess = ({id, status, my_team: {team_num, lack_member, is_team, treasure_code}}) => {\n this.joinSuccessPopup = Popup({\n title: <div className={'join-success'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png\" alt=\"\"/>\n <div>成功加入队伍</div>\n </div>,\n className: 'landing-join-success-wrapper',\n content: <div>\n <div className={'tip'}>\n {\n status === 2\n ? '组队成功,恭喜你获得一个宝箱!'\n : is_team\n ? <>您的{<span>{team_num}</span>}号队伍还差{<span>{lack_member}</span>}人即可获得宝箱</>\n : '自己当队长,宝箱内有专属奖品哦~'\n }\n </div>\n {\n status === 2\n ? <img style={{width: '150px', marginTop: '23px'}}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif\"\n alt=\"\"\n onClick={this.handleToMyTreasure.bind(this, id)}\n />\n : is_team\n ? <button type='button'\n onClick={this.inviteMembers.bind(this, treasure_code)}>继续组队</button>\n : <button type=\"button\" onClick={this.createMyTeam}>创建我的队伍</button>\n }\n </div>,\n closeIcon: this.closeIcon,\n close: () => {\n this.fetchPageData()\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('join', this.state.treasure_code, 2)\n })\n }\n })\n }\n\n inviteMembers = treasure_code => {\n const {history, match, user, location} = this.props\n if (getParam('version')) {\n let data = {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${treasure_code}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n }\n SendMessageToApp(\"toShare\", data)\n }\n sessionStorage.setItem('showShareTip', '1')\n history.replace(`${match.url}?treasure_code=${treasure_code}&origin=${1}`)\n this.createTeamSuccessPopup && this.createTeamSuccessPopup.remove() && (this.createTeamSuccessPopup = null)\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.fetchPageData({treasure_code, origin: 1})\n this.setState({\n isCaptain: true\n })\n }\n\n getFollowStatus = () => http.get(`${API.home}/sys/user/isFollowWeChat`)\n .then(res => {\n const {code, data} = res.data\n return code === 200 && data['is_follow']\n })\n\n createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.getFollowStatus()\n .then(isFollow => {\n this.createTeamSuccessPopup = Popup({\n title: '创建成功',\n className: 'landing-create-success',\n content: <div>\n <div className=\"tip\">{<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~</div>\n <img className={'treasure-box'}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png\" alt=\"\"/>\n <ul className='members'>\n {\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return <li key={index}>\n {_member && _member['is_captain'] && <sup>队长</sup>}\n <img\n className={'avatar'}\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n })\n }\n </ul>\n <button type={'button'} onClick={this.inviteMembers.bind(this, treasure_code)}>邀请好友加入队伍</button>\n </div>,\n closeIcon: this.closeIcon,\n afterClose: () => {\n if (!isFollow) {\n this.remind('create', treasure_code)\n }\n }\n })\n\n })\n }\n\n // 安卓手机保存二维码\n saveImage = url => {\n let version = getParam('version')\n version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''\n if (version && parseInt(version) < 451) {\n Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)\n } else {\n SendMessageToApp('generateQRCode', url)\n }\n }\n\n\n remind = (type = 'create', treasure_code, origin = 1) => {\n const {user} = this.props\n http.get(`${API[\"base-api\"]}/wx/user_temporary_qrcode/${user.data.uid}`)\n .then(res => {\n const {data} = res.data\n return data.url\n }).then(text => {\n //todo 更换正式二维码\n // QRCode.toDataURL('aaa')\n QRCode.toDataURL(text)\n .then(url => {\n Popup({\n title: '提醒服务',\n className: 'landing-remind',\n closeIcon: this.closeIcon,\n content: <div>\n <div className=\"des\">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div>\n <img src={url} alt=\"\"/>\n {browser.isAndroidApp ? <div>\n <button className={'android-qr-code-btn'} onClick={this.saveImage.bind(this, text)}>保存二维码</button>\n </div> : null}\n <div className=\"des\">长按识别/扫码 关注【七月在线】服务号即可预约</div>\n </div>,\n close: () => {\n // history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)\n sessionStorage.setItem('closedRemind', '1')\n this.fetchPageData({\n treasure_code,\n origin\n })\n }\n })\n })\n })\n\n }\n\n showShareTip = () => {\n const {user, location} = this.props\n if (browser.isAndroidApp || browser.isIOSApp) {\n\n SendMessageToApp('toShare', {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n\n } else {\n this.shareTipPopup = Popup({\n title: <div>还差<span>{this.state.teamData.lack_member}</span>名队友即可获得宝箱 快分享给好友吧~</div>,\n className: `landing-share-tip ${browser.isWeixin ? 'wechat' : ''}`,\n closable: false,\n close: () => {\n sessionStorage.removeItem('showShareTip')\n if (!user.hasError) {\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('create', getParam('treasure_code'), 1)\n })\n }\n }\n })\n }\n }\n\n showOpenInBrowserTip = () => {\n Popup({\n title: <div>点击右上角,选择“在浏览器打开”</div>,\n className: 'landing-open-in-browser-tip',\n closable: false,\n })\n }\n\n createMyTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n http.get(`${API.home}/sys/treasure/createMyTeam`)\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.createTeamSuccess(data)\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n requiredLogin = () => {\n const {history, user, location} = this.props\n if (user.hasError) {\n if (browser.isWeixin) {\n window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(`${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=${getParam('origin')}&aa=bb`)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)\n } else {\n history.push('/passport')\n }\n return true\n }\n }\n\n toSquare = () => {\n const {history} = this.props\n if (!getParam('version')) {\n window.location.assign('https://m.julyedu.com/')\n } else {\n window.location.assign('https://m.julyedu.com/?version=' + getParam('version'))\n }\n }\n\n render() {\n const {\n teamData: {\n head_img,\n member,\n status,\n lack_member,\n team_num,\n prize_info,\n my_team,\n standby_plan\n },\n activityEnd,\n isCaptain,\n isLoading,\n modules\n } = this.state\n /*\n * status\n * 1-自己的队伍\n * 2-未加入队伍\n * 3-已加入当前队伍\n * 4-已加入别的队伍\n * */\n return (\n <div id={'landing'}>\n {\n !(standby_plan && browser.isWeixin) &&\n <div id=\"to-square\">\n <a href='javascript:' onClick={this.toSquare}>前往七月在线官网,学人工智能精品课程! >></a>\n </div>\n }\n <BoxContainer>\n <i className={`snow-deco ${standby_plan && browser.isWeixin ? 'standby' : ''}`}/>\n {\n standby_plan && browser.isWeixin &&\n <>\n <WhiteSpace className={'standby-space'}/>\n <div className={'standby-tip'}>点击右上角,选择“在浏览器打开”</div>\n </>\n }\n <img className='main-avatar'\n src={head_img} alt=\"\"/>\n {\n status === 1\n ? <div className=\"des\">邀请好友加入队伍,开宝箱领取丰厚奖品~</div>\n : <div className=\"des\">加入我的<span>{team_num}</span>号队伍,一起开宝箱领取丰厚奖品~</div>\n }\n <Prizes showSystemNotices={false}/>\n <BulletScreen/>\n <div className=\"group\">\n <ul className={'member'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return (\n _member\n ? <li key={index}>\n <div className='avatar-wrapper'>\n {\n _member.is_captain ? <sup>队长</sup> : null\n }\n <img\n src={_member.head_img}\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n :\n <li key={index}>\n <div className=\"avatar-wrapper\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png\"\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n )\n })\n }\n </ul>\n <ul className={'bars'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n return (\n <li key={index} className={`${index < member.length ? 'active' : ''}`}/>\n )\n })\n }\n </ul>\n {\n status === 1 && !activityEnd &&\n <>\n <div className=\"group-des\">\n 还差 {lack_member} 名队员即可获得当前宝箱哦~\n </div>\n {\n !(standby_plan && browser.isWeixin) &&\n <button type='button' className={'invite-btn'} onClick={this.showShareTip}>\n 邀请好友加入队伍\n </button>\n }\n </>\n }\n {\n status === 3 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入当前队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n status === 4 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入其他队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n !(standby_plan && browser.isWeixin) && status === 2 && !activityEnd &&\n < button type='button' className={'invite-btn'} onClick={this.joinTeam}>\n 同意加入队伍\n </button>\n }\n {\n prize_info && prize_info.length !== 0 && !activityEnd && !isCaptain && <div className=\"certainly-prompt\">\n 第{prize_info[0].stage_no}个宝箱必中 {prize_info[0].name}\n </div>\n }\n {\n activityEnd &&\n <div className='activity-end'>\n <div>活动已结束</div>\n <div>关注【七月在线】服务号了解更多活动信息</div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n <div>长按识别 / 微信扫码</div>\n </div>\n }\n </div>\n </BoxContainer>\n {\n !isCaptain &&\n <div className={'course-module'}>\n <HomeCourseList\n modules={modules}\n />\n <AllCourseNavigation/>\n </div>\n }\n {\n isLoading &&\n <div className=\"loading\" style={{width: window.innerWidth + 'px', height: window.innerHeight + 'px'}}>\n <FadeLoader\n color={'#fff'}\n loading={isLoading}\n />\n </div>\n }\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Landing)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/box-container/container.js","components/activity/newyear-2019/landing/index.js","components/activity/treasure-box/box-container/container.js","components/activity/treasure-box/landing/index.js"],"names":["Container","react_default","a","createElement","className","this","props","children","Component","Landing","closeIcon","createTeamSuccessPopup","joinSuccessPopup","shareTipPopup","swiper","shareTitle","shareDesc","state","teamData","member","origin","sessionStorage","getItem","getParam","treasure_code","activityEnd","notices","rule","isCaptain","isLoading","_this","user","isFetching","getStage","http","get","concat","API","home","then","res","_res$data","data","code","msg","Number","activity_stage","history","push","toast_default","info","createMeta","title","dec","imgname","meta","document","setAttribute","meta2","meta3","head","getElementsByTagName","appendChild","fetchPageData","_ref","arguments","length","undefined","_ref$origin","_ref$treasure_code","location","post","_res$data2","setState","status","setupWxShareConfig","browser","isWeixin","wxShare","desc","link","window","pathname","imgUrl","searchParams","URLSearchParams","search","set","setItem","replaceState","toString","showSharePromptWithParam","len","count","showShareTip","joinTeam","requiredLogin","_res$data3","joinSuccess","handleToMyTreasure","id","remove","assign","_ref2","_ref2$my_team","my_team","team_num","lack_member","is_team","Popup","src","alt","content","Fragment","style","width","marginTop","onClick","bind","Object","assertThisInitialized","type","inviteMembers","createMyTeam","close","getFollowStatus","isFollow","remind","_this$props","match","SendMessageToApp","replace","url","_res$data4","createTeamSuccess","_ref3","Array","fill","map","item","index","_member","key","afterClose","saveImage","version","slice","parseInt","uid","text","QRCode","toDataURL","isAndroidApp","_this$props2","isIOSApp","closable","removeItem","hasError","showOpenInBrowserTip","_res$data5","_this$props3","encodeURIComponent","toSquare","showFollowAlert","landing","querySelector","boxContainer","offsetHeight","innerHeight","minHeight","prevProps","_this$state","_this$state$teamData","head_img","prize_info","standby_plan","href","container","white_space_default","prizes","showSystemNotices","user_bullet_screen","is_captain","stage_no","name","size","YearCourse","getSum","innerWidth","height","react_spinners","color","loading","connect","modules","getIndexData","isArray","_ref2$origin","_ref2$treasure_code","_ref3$my_team","_ref4","course_list","all_course"],"mappings":"+SAceA,4LAVX,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAW,iBACdH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACZC,KAAKC,MAAMC,kBALEC,oGCYlBC,6MAGJC,UAAY,+EACZC,uBAAyB,OACzBC,iBAAmB,OACnBC,cAAgB,OAChBC,OAAS,OACTC,WAAa,KACbC,UAAY,KAGZC,MAAQ,CACNC,SAAU,CACRC,OAAQ,IAEVC,OAAQC,eAAeC,QAAQ,aAAe,EAAIC,YAAS,UAC3DC,cAAeD,YAAS,iBACxBE,aAAa,EACbC,QAAS,GACTC,KAAM,GACNC,UAAiC,GAAtBL,YAAS,UACpBM,UAAWC,EAAKxB,MAAMyB,KAAKC,cAgC7BC,SAAW,WACTC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,oBAAuCC,KAAK,SAAAC,GAAO,IAAAC,EACrBD,EAAIE,KAAvBC,EADwCF,EACxCE,KAAMD,EADkCD,EAClCC,KAAME,EAD4BH,EAC5BG,IACnB,GAAa,MAATD,GACA,GAAmC,IAAhCE,OAAOH,EAAKI,gBAEX,YADAhB,EAAKxB,MAAMyC,QAAQC,KAAK,UAI5BC,EAAA/C,EAAMgD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AKqH,cAAcJ,KAAKjH,KAAMoG,EAAO,gBADtD,4BAIExG,EAAAC,EAAAC,cAAA,UAAQsH,KAAK,SAASrH,UAAW,aAAciH,QAAShH,KAAKsH,cAA7D,4CAONoD,GAAgBnG,IAAQC,WAAwB,IAAXH,IAAiBjD,GACxDxB,EAAAC,EAAAC,cAAA,UAASsH,KAAK,SAASrH,UAAW,aAAciH,QAAShH,KAAK0F,UAA9D,wCAKA+E,GAAoC,IAAtBA,EAAW5G,SAAiBzC,IAAgBG,GAAa3B,EAAAC,EAAAC,cAAA,OAAKC,UAAU,oBAAf,SACnE0K,EAAW,GAAGS,SADqD,kCACrCT,EAAW,GAAGU,MAIhD/J,GACAxB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,6CACAF,EAAAC,EAAAC,cAAA,iIACAF,EAAAC,EAAAC,cAAA,OAAK2G,IAAI,kFAAkFC,IAAI,KAC/F9G,EAAAC,EAAAC,cAAA,sEAMLyB,GACD3B,EAAAC,EAAAC,cAAA,OAAKC,UAAW,iBACdH,EAAAC,EAAAC,cAACsM,EAAA,EAAD,CACEP,QAASA,IAEXjM,EAAAC,EAAAC,cAACuM,EAAA,EAAD,OAIF7K,GACA5B,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UAAU8G,MAAO,CAACC,MAAOlC,OAAO2G,WAAa,KAAMC,OAAQ5G,OAAOuF,YAAc,OAC7FvK,EAAAC,EAAAC,cAAC2L,EAAA,WAAD,CACEC,MAAO,OACPC,QAASnK,aA3nBDrB,aAooBPyL,sBACb,SAAAhL,GAAK,MAAK,CAACc,KAAMd,EAAMc,OACvB,KAFakK,CAGbxL","file":"mrstatic/js/newyear-2019-landing.a9a5b25d.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './box-container.scss'\nclass Container extends Component {\n render() {\n return (\n <div className={'box-container'}>\n <div className=\"image-box\">\n {this.props.children}\n </div>\n </div>\n )\n }\n}\n\nexport default Container\n","import React, { Component } from 'react'\nimport BoxContainer from '../box-container/container'\nimport { Toast, WhiteSpace } from \"antd-mobile\"\nimport { Popup } from \"@common/index\"\nimport { connect } from \"react-redux\"\nimport Prizes from \"@components/activity/newyear-2019/common/prizes\"\nimport BulletScreen from \"@components/activity/newyear-2019/common/user-bullet-screen\"\nimport './landing.scss'\nimport { browser, getParam, http, wxShare, SendMessageToApp } from \"@/utils\"\nimport QRCode from \"qrcode\"\nimport YearCourse from '../preheat/YearCourse'\nimport { FadeLoader } from \"react-spinners\"\n\n\nclass Landing extends Component {\n\n\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n createTeamSuccessPopup = null\n joinSuccessPopup = null\n shareTipPopup = null\n swiper = null\n shareTitle = ''\n shareDesc = ''\n\n\n state = {\n teamData: {\n member: []\n },\n origin: sessionStorage.getItem('isCaptain') ? 1 : getParam('origin'),\n treasure_code: getParam('treasure_code'),\n activityEnd: false,\n notices: [],\n rule: '',\n isCaptain: getParam('origin') == 1,\n isLoading: this.props.user.isFetching\n }\n\n componentDidMount() {\n this.getStage();\n this.fetchPageData()\n window.showFollowAlert = this.remind.bind(this, 'create')\n document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线'\n const landing = document.querySelector('#landing')\n const boxContainer = document.querySelector('.box-container')\n if (boxContainer.offsetHeight < window.innerHeight) {\n landing.style.minHeight = `${window.innerHeight}px`\n boxContainer.style.minHeight = `${window.innerHeight}px`\n }\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError) {\n this.fetchPageData()\n }\n if(prevProps.user.isFetching !== this.props.user.isFetching && !this.props.user.isFetching){\n this.setState({\n isLoading: this.props.user.isFetching\n })\n }\n }\n\n componentWillUnmount() {\n this.shareTipPopup && this.shareTipPopup.remove()\n }\n\n // 获取活动以及宝箱的阶段\n getStage = () => {\n http.get(`${API.home}/activity/stage`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n if(Number(data.activity_stage) === 0) {\n this.props.history.push('/');\n return;\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n createMeta = (title,dec,imgname) => {\n let meta = document.createElement('meta');\n meta.setAttribute('name', 'description')\n meta.setAttribute('itemprop', 'description')\n meta.setAttribute('content', dec)\n\n let meta2 = document.createElement('meta')\n meta2.setAttribute('itemprop', 'name')\n meta2.setAttribute('content', title)\n\n let meta3 = document.createElement('meta')\n meta3.setAttribute('itemprop', 'image')\n meta3.setAttribute('content', imgname)\n\n let head = document.getElementsByTagName('head')[0]\n head.appendChild(meta)\n head.appendChild(meta2)\n head.appendChild(meta3)\n }\n\n fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {\n const {location} = this.props\n http.post(`${API.home}/sys/treasure/team`, {\n treasure_code,\n origin\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.setState({\n teamData: data,\n isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1,\n activityEnd: data.status == 5\n })\n\n this.setupWxShareConfig(data.member)\n\n if (browser.isWeixin) {\n wxShare({\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n // history.replace(`${match.url}?treasure_code=${getParam('treasure_code')}&origin=2`)\n } else {\n this.createMeta(this.shareTitle, this.shareDesc, 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png')\n }\n\n let searchParams = new URLSearchParams(window.location.search)\n if (searchParams.get('origin') === '1' && !browser.isWeixin) {\n searchParams.set('origin', '2')\n sessionStorage.setItem('isCaptain', '1')\n window.history.replaceState(null, '', `landing?${searchParams.toString()}`)\n }\n\n this.showSharePromptWithParam()\n\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n setupWxShareConfig = member => {\n const len = member.length\n let count = 5 - len <= 0 ? 4 : 5 - len\n this.shareTitle = `还差${count}人即可开宝箱,100%有奖!`\n this.shareDesc = '加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!--七月在线'\n }\n\n showSharePromptWithParam = () => {\n if (sessionStorage.getItem('showShareTip') && !sessionStorage.getItem('closedRemind')) {\n this.showShareTip()\n }\n }\n\n joinTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n const {treasure_code} = this.state\n http.post(`${API.home}/sys/treasure/joinTeam`, {\n treasure_code\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code === 200) {\n\n /*\n * status\n * 1-成功加入\n * 2-成功加入组队成功\n * 3-已加入当前队伍\n * 4-已加入其他队伍\n * */\n\n switch (data.status) {\n case 1:\n case 2:\n this.joinSuccess(data)\n break\n default:\n Toast.info(msg, 2, null, false)\n }\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n handleToMyTreasure = id => {\n const {history} = this.props\n this.joinSuccessPopup && this.joinSuccessPopup.remove()\n if (getParam('version')) {\n window.location.assign(`https://m.julyedu.com/year/yearTreasure?id=${id}&version=${getParam('version')}`)\n } else {\n window.location.assign(`https://m.julyedu.com/year/yearTreasure?id=${id}`)\n }\n }\n\n joinSuccess = ({id, status, my_team: {team_num, lack_member, is_team, treasure_code}}) => {\n this.joinSuccessPopup = Popup({\n title: <div className={'join-success'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png\" alt=\"\"/>\n <div>成功加入队伍</div>\n </div>,\n className: 'landing-join-success-wrapper',\n content: <div>\n <div className={'tip'}>\n {\n status === 2\n ? '组队成功,恭喜你获得一个宝箱!'\n : is_team\n ? <>您的{<span>{team_num}</span>}号队伍还差{<span>{lack_member}</span>}人即可获得宝箱</>\n : '自己当队长,宝箱内有专属奖品哦~'\n }\n </div>\n {\n status === 2\n ? <img style={{width: '150px', marginTop: '23px'}}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif\"\n alt=\"\"\n onClick={this.handleToMyTreasure.bind(this, id)}\n />\n : is_team\n ? <button type='button'\n onClick={this.inviteMembers.bind(this, treasure_code)}>继续组队</button>\n : <button type=\"button\" onClick={this.createMyTeam}>创建我的队伍</button>\n }\n </div>,\n closeIcon: this.closeIcon,\n close: () => {\n this.fetchPageData()\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('join', this.state.treasure_code, 2)\n })\n }\n })\n }\n\n inviteMembers = treasure_code => {\n const {history, match, user, location} = this.props\n if (getParam('version')) {\n let data = {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${treasure_code}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n }\n SendMessageToApp(\"toShare\", data)\n }\n sessionStorage.setItem('showShareTip', '1')\n history.replace(`${match.url}?treasure_code=${treasure_code}&origin=${1}`)\n this.createTeamSuccessPopup && this.createTeamSuccessPopup.remove() && (this.createTeamSuccessPopup = null)\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.fetchPageData({treasure_code, origin: 1})\n this.setState({\n isCaptain: true\n })\n }\n\n getFollowStatus = () => http.get(`${API.home}/sys/user/isFollowWeChat`)\n .then(res => {\n const {code, data} = res.data\n return code === 200 && data['is_follow']\n })\n\n createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.getFollowStatus()\n .then(isFollow => {\n this.createTeamSuccessPopup = Popup({\n title: '创建成功',\n className: 'landing-create-success',\n content: <div>\n <div className=\"tip\">{<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~</div>\n <img className={'treasure-box'}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png\" alt=\"\"/>\n <ul className='members'>\n {\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return <li key={index}>\n {_member && _member['is_captain'] && <sup>队长</sup>}\n <img\n className={'avatar'}\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n })\n }\n </ul>\n <button type={'button'} onClick={this.inviteMembers.bind(this, treasure_code)}>邀请好友加入队伍</button>\n </div>,\n closeIcon: this.closeIcon,\n afterClose: () => {\n if (!isFollow) {\n this.remind('create', treasure_code)\n }\n }\n })\n\n })\n }\n\n // 安卓手机保存二维码\n saveImage = url => {\n let version = getParam('version')\n version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''\n if (version && parseInt(version) < 451) {\n Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)\n } else {\n SendMessageToApp('generateQRCode', url)\n }\n }\n\n\n remind = (type = 'create', treasure_code, origin = 1) => {\n const {user} = this.props\n http.get(`${API[\"base-api\"]}/wx/user_temporary_qrcode/${user.data.uid}`)\n .then(res => {\n const {data} = res.data\n return data.url\n }).then(text => {\n QRCode.toDataURL(text)\n .then(url => {\n Popup({\n title: '提醒服务',\n className: 'landing-remind',\n closeIcon: this.closeIcon,\n content: <div>\n <div className=\"des\">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div>\n <img src={url} alt=\"\"/>\n {browser.isAndroidApp ? <div>\n <button className={'android-qr-code-btn'} onClick={this.saveImage.bind(this, text)}>保存二维码</button>\n </div> : null}\n <div className=\"des\">长按识别/扫码 关注【七月在线】服务号即可预约</div>\n </div>,\n close: () => {\n // history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)\n sessionStorage.setItem('closedRemind', '1')\n this.fetchPageData({\n treasure_code,\n origin\n })\n }\n })\n })\n })\n\n }\n\n showShareTip = () => {\n const {user, location} = this.props\n if (browser.isAndroidApp || browser.isIOSApp) {\n\n SendMessageToApp('toShare', {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n\n } else {\n this.shareTipPopup = Popup({\n title: <div>还差<span>{this.state.teamData.lack_member}</span>名队友即可获得宝箱 快分享给好友吧~</div>,\n className: `landing-share-tip ${browser.isWeixin ? 'wechat' : ''}`,\n closable: false,\n close: () => {\n sessionStorage.removeItem('showShareTip')\n if (!user.hasError) {\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('create', getParam('treasure_code'), 1)\n })\n }\n }\n })\n }\n }\n\n showOpenInBrowserTip = () => {\n Popup({\n title: <div>点击右上角,选择“在浏览器打开”</div>,\n className: 'landing-open-in-browser-tip',\n closable: false,\n })\n }\n\n createMyTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n http.get(`${API.home}/sys/treasure/createMyTeam`)\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.createTeamSuccess(data)\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n requiredLogin = () => {\n const {history, user, location} = this.props\n if (user.hasError) {\n if (browser.isWeixin) {\n window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(`${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=${getParam('origin')}&aa=bb`)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)\n } else {\n history.push('/passport')\n }\n return true\n }\n }\n\n toSquare = () => {\n const {history} = this.props\n if (!getParam('version')) {\n window.location.assign('https://m.julyedu.com/year/yearindex')\n } else {\n window.location.assign('https://m.julyedu.com/year/yearindex?version=' + getParam('version'))\n }\n }\n\n render() {\n const {\n teamData: {\n head_img,\n member,\n status,\n lack_member,\n team_num,\n prize_info,\n my_team,\n standby_plan\n },\n activityEnd,\n isCaptain,\n isLoading\n } = this.state\n /*\n * status\n * 1-自己的队伍\n * 2-未加入队伍\n * 3-已加入当前队伍\n * 4-已加入别的队伍\n * */\n return (\n <div id={'landing'}>\n {\n !(standby_plan && browser.isWeixin) &&\n <div id=\"to-square\">\n <a href='javascript:' onClick={this.toSquare}>前往活动会场,享更多福利! >></a>\n </div>\n }\n <BoxContainer>\n <i className={`snow-deco ${standby_plan && browser.isWeixin ? 'standby' : ''}`}/>\n {\n standby_plan && browser.isWeixin &&\n <>\n <WhiteSpace className={'standby-space'}/>\n <div className={'standby-tip'}>点击右上角,选择“在浏览器打开”</div>\n </>\n }\n <img className='main-avatar'\n src={head_img} alt=\"\"/>\n {\n status === 1\n ? <div className=\"des\">邀请好友加入队伍,开宝箱领取丰厚奖品~</div>\n : <div className=\"des\">加入我的<span>{team_num}</span>号队伍,一起开宝箱领取丰厚奖品~</div>\n }\n <Prizes showSystemNotices={false}/>\n <BulletScreen/>\n <div className=\"group\">\n <ul className={'member'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return (\n _member\n ? <li key={index}>\n <div className='avatar-wrapper'>\n {\n _member.is_captain ? <sup>队长</sup> : null\n }\n <img\n src={_member.head_img}\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n :\n <li key={index}>\n <div className=\"avatar-wrapper\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png\"\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n )\n })\n }\n </ul>\n <ul className={'bars'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n return (\n <li key={index} className={`${index < member.length ? 'active' : ''}`}/>\n )\n })\n }\n </ul>\n {\n status === 1 && !activityEnd &&\n <>\n <div className=\"group-des\">\n 还差 {lack_member} 名队员即可获得当前宝箱哦~\n </div>\n {\n !(standby_plan && browser.isWeixin) &&\n <button type='button' className={'invite-btn'} onClick={this.showShareTip}>\n 邀请好友加入队伍\n </button>\n }\n </>\n }\n {\n status === 3 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入当前队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n status === 4 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入其他队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n !(standby_plan && browser.isWeixin) && status === 2 && !activityEnd &&\n < button type='button' className={'invite-btn'} onClick={this.joinTeam}>\n 同意加入队伍\n </button>\n }\n {\n prize_info && prize_info.length !== 0 && !activityEnd && !isCaptain && <div className=\"certainly-prompt\">\n 第{prize_info[0].stage_no}个宝箱必中 {prize_info[0].name}\n </div>\n }\n {\n activityEnd &&\n <div className='activity-end'>\n <div>活动已结束</div>\n <div>关注【七月在线】服务号了解更多活动信息</div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n <div>长按识别 / 微信扫码</div>\n </div>\n }\n </div>\n </BoxContainer>\n {\n !isCaptain &&\n <>\n <WhiteSpace size={'xl'}/>\n <YearCourse getSum={() => {\n }}/>\n </>\n }\n {\n isLoading && <div className=\"loading\" style={{width: window.innerWidth + 'px', height: window.innerHeight + 'px'}}>\n <FadeLoader\n color={'#fff'}\n loading={isLoading}\n />\n </div>\n }\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Landing)\n","import React, { Component } from 'react'\nimport './box-container.scss'\nclass Container extends Component {\n render() {\n return (\n <div className={'box-container'}>\n <div className=\"image-box\">\n {this.props.children}\n </div>\n </div>\n )\n }\n}\n\nexport default Container\n","import React, { Component } from 'react'\nimport BoxContainer from '../box-container/container'\nimport { Toast, WhiteSpace } from \"antd-mobile\"\nimport { Popup } from \"@common/index\"\nimport { connect } from \"react-redux\"\nimport Prizes from \"@components/activity/newyear-2019/common/prizes\"\nimport BulletScreen from \"@components/activity/newyear-2019/common/user-bullet-screen\"\nimport './landing.scss'\nimport { browser, getParam, http, wxShare, SendMessageToApp } from \"@/utils\"\nimport QRCode from \"qrcode\"\nimport { FadeLoader } from \"react-spinners\"\nimport HomeCourseList from \"@components/Index/course-list\"\nimport AllCourseNavigation from \"@components/Index/all-course\"\n\nclass Landing extends Component {\n\n\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n createTeamSuccessPopup = null\n joinSuccessPopup = null\n shareTipPopup = null\n swiper = null\n shareTitle = ''\n shareDesc = ''\n\n\n state = {\n teamData: {\n member: []\n },\n origin: sessionStorage.getItem('isCaptain') ? 1 : getParam('origin'),\n treasure_code: getParam('treasure_code'),\n activityEnd: false,\n notices: [],\n rule: '',\n isCaptain: getParam('origin') == 1,\n isLoading: this.props.user.isFetching,\n modules: []\n }\n\n componentDidMount() {\n this.getStage();\n this.fetchPageData()\n this.getIndexData()\n window.showFollowAlert = this.remind.bind(this, 'create')\n document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线'\n const landing = document.querySelector('#landing')\n const boxContainer = document.querySelector('.box-container')\n if (boxContainer.offsetHeight < window.innerHeight) {\n landing.style.minHeight = `${window.innerHeight}px`\n boxContainer.style.minHeight = `${window.innerHeight}px`\n }\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError) {\n this.fetchPageData()\n }\n if (prevProps.user.isFetching !== this.props.user.isFetching && !this.props.user.isFetching) {\n this.setState({\n isLoading: this.props.user.isFetching\n })\n }\n }\n\n componentWillUnmount() {\n this.shareTipPopup && this.shareTipPopup.remove()\n }\n\n\n // 首页课程\n getIndexData = () => {\n http.get(`${API.home}/m/home`).then((res) => {\n if (res.data.code === 200) {\n const {data} = res.data || {}\n const modules = Array.isArray(data.modules) ? data.modules : []\n this.setState({\n modules\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n // 获取活动以及宝箱的阶段\n getStage = () => {\n http.get(`${API.home}/activity/stage`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n if (Number(data.activity_stage) === 0) {\n this.props.history.push('/');\n return;\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n createMeta = (title, dec, imgname) => {\n let meta = document.createElement('meta');\n meta.setAttribute('name', 'description')\n meta.setAttribute('itemprop', 'description')\n meta.setAttribute('content', dec)\n\n let meta2 = document.createElement('meta')\n meta2.setAttribute('itemprop', 'name')\n meta2.setAttribute('content', title)\n\n let meta3 = document.createElement('meta')\n meta3.setAttribute('itemprop', 'image')\n meta3.setAttribute('content', imgname)\n\n let head = document.getElementsByTagName('head')[0]\n head.appendChild(meta)\n head.appendChild(meta2)\n head.appendChild(meta3)\n }\n\n fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {\n const {location} = this.props\n http.post(`${API.home}/sys/treasure/team`, {\n treasure_code,\n origin\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.setState({\n teamData: data,\n isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1,\n activityEnd: data.status == 5\n })\n\n this.setupWxShareConfig(data.member)\n\n if (browser.isWeixin) {\n wxShare({\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n // history.replace(`${match.url}?treasure_code=${getParam('treasure_code')}&origin=2`)\n } else {\n this.createMeta(this.shareTitle, this.shareDesc, 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png')\n }\n\n let searchParams = new URLSearchParams(window.location.search)\n if (searchParams.get('origin') === '1' && !browser.isWeixin) {\n searchParams.set('origin', '2')\n sessionStorage.setItem('isCaptain', '1')\n window.history.replaceState(null, '', `landing?${searchParams.toString()}`)\n }\n\n this.showSharePromptWithParam()\n\n\n } else {\n if (code !== 520) {\n Toast.info(msg, 2, null, false)\n }\n }\n })\n }\n\n setupWxShareConfig = member => {\n const len = member.length\n let count = 5 - len <= 0 ? 4 : 5 - len\n this.shareTitle = `还差${count}人即可开宝箱,100%有奖!`\n this.shareDesc = '加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!--七月在线'\n }\n\n showSharePromptWithParam = () => {\n if (sessionStorage.getItem('showShareTip') && !sessionStorage.getItem('closedRemind')) {\n this.showShareTip()\n }\n }\n\n joinTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n const {treasure_code} = this.state\n http.post(`${API.home}/sys/treasure/joinTeam`, {\n treasure_code\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code === 200) {\n\n /*\n * status\n * 1-成功加入\n * 2-成功加入组队成功\n * 3-已加入当前队伍\n * 4-已加入其他队伍\n * */\n\n switch (data.status) {\n case 1:\n case 2:\n this.joinSuccess(data)\n break\n default:\n Toast.info(msg, 2, null, false)\n }\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n handleToMyTreasure = id => {\n const {history} = this.props\n this.joinSuccessPopup && this.joinSuccessPopup.remove()\n if (getParam('version')) {\n window.location.assign(`https://m.julyedu.com/box/yearTreasure?id=${id}&version=${getParam('version')}`)\n } else {\n window.location.assign(`https://m.julyedu.com/box/yearTreasure?id=${id}`)\n }\n }\n\n joinSuccess = ({id, status, my_team: {team_num, lack_member, is_team, treasure_code}}) => {\n this.joinSuccessPopup = Popup({\n title: <div className={'join-success'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png\" alt=\"\"/>\n <div>成功加入队伍</div>\n </div>,\n className: 'landing-join-success-wrapper',\n content: <div>\n <div className={'tip'}>\n {\n status === 2\n ? '组队成功,恭喜你获得一个宝箱!'\n : is_team\n ? <>您的{<span>{team_num}</span>}号队伍还差{<span>{lack_member}</span>}人即可获得宝箱</>\n : '自己当队长,宝箱内有专属奖品哦~'\n }\n </div>\n {\n status === 2\n ? <img style={{width: '150px', marginTop: '23px'}}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif\"\n alt=\"\"\n onClick={this.handleToMyTreasure.bind(this, id)}\n />\n : is_team\n ? <button type='button'\n onClick={this.inviteMembers.bind(this, treasure_code)}>继续组队</button>\n : <button type=\"button\" onClick={this.createMyTeam}>创建我的队伍</button>\n }\n </div>,\n closeIcon: this.closeIcon,\n close: () => {\n this.fetchPageData()\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('join', this.state.treasure_code, 2)\n })\n }\n })\n }\n\n inviteMembers = treasure_code => {\n const {history, match, user, location} = this.props\n if (getParam('version')) {\n let data = {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${treasure_code}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n }\n SendMessageToApp(\"toShare\", data)\n }\n sessionStorage.setItem('showShareTip', '1')\n history.replace(`${match.url}?treasure_code=${treasure_code}&origin=${1}`)\n this.createTeamSuccessPopup && this.createTeamSuccessPopup.remove() && (this.createTeamSuccessPopup = null)\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.fetchPageData({treasure_code, origin: 1})\n this.setState({\n isCaptain: true\n })\n }\n\n getFollowStatus = () => http.get(`${API.home}/sys/user/isFollowWeChat`)\n .then(res => {\n const {code, data} = res.data\n return code === 200 && data['is_follow']\n })\n\n createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.getFollowStatus()\n .then(isFollow => {\n this.createTeamSuccessPopup = Popup({\n title: '创建成功',\n className: 'landing-create-success',\n content: <div>\n <div className=\"tip\">{<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~</div>\n <img className={'treasure-box'}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png\" alt=\"\"/>\n <ul className='members'>\n {\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return <li key={index}>\n {_member && _member['is_captain'] && <sup>队长</sup>}\n <img\n className={'avatar'}\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n })\n }\n </ul>\n <button type={'button'} onClick={this.inviteMembers.bind(this, treasure_code)}>邀请好友加入队伍</button>\n </div>,\n closeIcon: this.closeIcon,\n afterClose: () => {\n if (!isFollow) {\n this.remind('create', treasure_code)\n }\n }\n })\n\n })\n }\n\n // 安卓手机保存二维码\n saveImage = url => {\n let version = getParam('version')\n version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''\n if (version && parseInt(version) < 451) {\n Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)\n } else {\n SendMessageToApp('generateQRCode', url)\n }\n }\n\n\n remind = (type = 'create', treasure_code, origin = 1) => {\n const {user} = this.props\n http.get(`${API[\"base-api\"]}/wx/user_temporary_qrcode/${user.data.uid}`)\n .then(res => {\n const {data} = res.data\n return data.url\n }).then(text => {\n //todo 更换正式二维码\n // QRCode.toDataURL('aaa')\n QRCode.toDataURL(text)\n .then(url => {\n Popup({\n title: '提醒服务',\n className: 'landing-remind',\n closeIcon: this.closeIcon,\n content: <div>\n <div className=\"des\">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div>\n <img src={url} alt=\"\"/>\n {browser.isAndroidApp ? <div>\n <button className={'android-qr-code-btn'} onClick={this.saveImage.bind(this, text)}>保存二维码</button>\n </div> : null}\n <div className=\"des\">长按识别/扫码 关注【七月在线】服务号即可预约</div>\n </div>,\n close: () => {\n // history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)\n sessionStorage.setItem('closedRemind', '1')\n this.fetchPageData({\n treasure_code,\n origin\n })\n }\n })\n })\n })\n\n }\n\n showShareTip = () => {\n const {user, location} = this.props\n if (browser.isAndroidApp || browser.isIOSApp) {\n\n SendMessageToApp('toShare', {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n\n } else {\n this.shareTipPopup = Popup({\n title: <div>还差<span>{this.state.teamData.lack_member}</span>名队友即可获得宝箱 快分享给好友吧~</div>,\n className: `landing-share-tip ${browser.isWeixin ? 'wechat' : ''}`,\n closable: false,\n close: () => {\n sessionStorage.removeItem('showShareTip')\n if (!user.hasError) {\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('create', getParam('treasure_code'), 1)\n })\n }\n }\n })\n }\n }\n\n showOpenInBrowserTip = () => {\n Popup({\n title: <div>点击右上角,选择“在浏览器打开”</div>,\n className: 'landing-open-in-browser-tip',\n closable: false,\n })\n }\n\n createMyTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n http.get(`${API.home}/sys/treasure/createMyTeam`)\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.createTeamSuccess(data)\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n requiredLogin = () => {\n const {history, user, location} = this.props\n if (user.hasError) {\n if (browser.isWeixin) {\n window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(`${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=${getParam('origin')}&aa=bb`)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)\n } else {\n history.push('/passport')\n }\n return true\n }\n }\n\n toSquare = () => {\n const {history} = this.props\n if (!getParam('version')) {\n window.location.assign('https://m.julyedu.com/')\n } else {\n window.location.assign('https://m.julyedu.com/?version=' + getParam('version'))\n }\n }\n\n render() {\n const {\n teamData: {\n head_img,\n member,\n status,\n lack_member,\n team_num,\n prize_info,\n my_team,\n standby_plan\n },\n activityEnd,\n isCaptain,\n isLoading,\n modules\n } = this.state\n /*\n * status\n * 1-自己的队伍\n * 2-未加入队伍\n * 3-已加入当前队伍\n * 4-已加入别的队伍\n * */\n return (\n <div id={'landing'}>\n {\n !(standby_plan && browser.isWeixin) &&\n <div id=\"to-square\">\n <a href='javascript:' onClick={this.toSquare}>前往七月在线官网,学人工智能精品课程! >></a>\n </div>\n }\n <BoxContainer>\n <i className={`snow-deco ${standby_plan && browser.isWeixin ? 'standby' : ''}`}/>\n {\n standby_plan && browser.isWeixin &&\n <>\n <WhiteSpace className={'standby-space'}/>\n <div className={'standby-tip'}>点击右上角,选择“在浏览器打开”</div>\n </>\n }\n <img className='main-avatar'\n src={head_img} alt=\"\"/>\n {\n status === 1\n ? <div className=\"des\">邀请好友加入队伍,开宝箱领取丰厚奖品~</div>\n : <div className=\"des\">加入我的<span>{team_num}</span>号队伍,一起开宝箱领取丰厚奖品~</div>\n }\n <Prizes showSystemNotices={false}/>\n <BulletScreen/>\n <div className=\"group\">\n <ul className={'member'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return (\n _member\n ? <li key={index}>\n <div className='avatar-wrapper'>\n {\n _member.is_captain ? <sup>队长</sup> : null\n }\n <img\n src={_member.head_img}\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n :\n <li key={index}>\n <div className=\"avatar-wrapper\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png\"\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n )\n })\n }\n </ul>\n <ul className={'bars'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n return (\n <li key={index} className={`${index < member.length ? 'active' : ''}`}/>\n )\n })\n }\n </ul>\n {\n status === 1 && !activityEnd &&\n <>\n <div className=\"group-des\">\n 还差 {lack_member} 名队员即可获得当前宝箱哦~\n </div>\n {\n !(standby_plan && browser.isWeixin) &&\n <button type='button' className={'invite-btn'} onClick={this.showShareTip}>\n 邀请好友加入队伍\n </button>\n }\n </>\n }\n {\n status === 3 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入当前队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n status === 4 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入其他队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n !(standby_plan && browser.isWeixin) && status === 2 && !activityEnd &&\n < button type='button' className={'invite-btn'} onClick={this.joinTeam}>\n 同意加入队伍\n </button>\n }\n {\n prize_info && prize_info.length !== 0 && !activityEnd && !isCaptain && <div className=\"certainly-prompt\">\n 第{prize_info[0].stage_no}个宝箱必中 {prize_info[0].name}\n </div>\n }\n {\n activityEnd &&\n <div className='activity-end'>\n <div>活动已结束</div>\n <div>关注【七月在线】服务号了解更多活动信息</div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n <div>长按识别 / 微信扫码</div>\n </div>\n }\n </div>\n </BoxContainer>\n {\n !isCaptain &&\n <div className={'course-module'}>\n <HomeCourseList\n modules={modules}\n />\n <AllCourseNavigation/>\n </div>\n }\n {\n isLoading &&\n <div className=\"loading\" style={{width: window.innerWidth + 'px', height: window.innerHeight + 'px'}}>\n <FadeLoader\n color={'#fff'}\n loading={isLoading}\n />\n </div>\n }\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Landing)\n"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var a,n,c=r[0],f=r[1],i=r[2],s=0,b=[];s<c.length;s++)n=c[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 d.push.apply(d,i||[]),t()}function t(){for(var e,r=0;r<d.length;r++){for(var t=d[r],a=!0,n=1;n<t.length;n++){var f=t[n];0!==o[f]&&(a=!1)}a&&(d.splice(r--,1),e=c(c.s=t[0]))}return e}var a={},n={36:0},o={36:0},d=[];function c(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,c),t.l=!0,t.exports}c.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:"da74d427",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=c.p+a,d=document.getElementsByTagName("link"),f=0;f<d.length;f++){var i=(u=d[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,d=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");d.request=a,delete n[e],b.parentNode.removeChild(b),t(d)},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 d,f=document.createElement("script");f.charset="utf-8",f.timeout=120,c.nc&&f.setAttribute("nonce",c.nc),f.src=function(e){return c.p+"mrstatic/js/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[e]||e)+"."+{0:"bc874a24",1:"d8e45a1d",2:"0417c21c",3:"4a2be69d",4:"8874c5f6",5:"7c543670",6:"9418f550",7:"0b8e4d1f",8:"aeb80b54",9:"be5e259c",10:"cb4e04da",11:"003c1591",12:"f5b59b90",13:"9defb510",14:"bda64a0f",15:"838a0a03",16:"086661ea",17:"1d7f72c5",18:"3d841bb3",19:"559cd543",20:"b0678d9f",21:"a547ca35",22:"baedc6ef",23:"091821bc",24:"2d7b00a3",25:"4ed18a9e",26:"4ebbdc92",27:"89212ccd",28:"6ad5e869",30:"9f9fb0cd",31:"a9a5b25d",32:"244d529a",33:"47d0e4b3",34:"748cd18b",35:"f9f16c0a",37:"20bbab86",38:"5196fde9",39:"5435cfbb",40:"736d4af5",41:"012259e9",42:"800f0ead",43:"30325f1c",44:"7755d50c",46:"44f38ed3",47:"4ef49615",48:"1ae71ff2",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"ca09d94c",53:"63fffc38",54:"64490914",55:"edc8af37",56:"3bd63341",57:"41670a6c",58:"86365e8c",59:"cbe2e2d8",60:"854d7550",61:"65b25a7d",62:"dc00bc5d"}[e]+".chunk.js"}(e),d=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,d=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");d.type=a,d.request=n,t[1](d)}o[e]=void 0}};var i=setTimeout(function(){d({type:"timeout",target:f})},12e4);f.onerror=f.onload=d,document.head.appendChild(f)}return Promise.all(r)},c.m=e,c.c=a,c.d=function(e,r,t){c.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,r){if(1&r&&(e=c(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)c.d(t,a,function(r){return e[r]}.bind(null,a));return t},c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,"a",r),r},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.p="/",c.oe=function(e){throw console.error(e),e};var 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.e3598684.js.map
\ No newline at end of file
!function(e){function r(r){for(var a,n,c=r[0],i=r[1],f=r[2],s=0,b=[];s<c.length;s++)n=c[s],o[n]&&b.push(o[n][0]),o[n]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(u&&u(r);b.length;)b.shift()();return d.push.apply(d,f||[]),t()}function t(){for(var e,r=0;r<d.length;r++){for(var t=d[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==o[i]&&(a=!1)}a&&(d.splice(r--,1),e=c(c.s=t[0]))}return e}var a={},n={36:0},o={36:0},d=[];function c(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,c),t.l=!0,t.exports}c.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:"da74d427",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=c.p+a,d=document.getElementsByTagName("link"),i=0;i<d.length;i++){var f=(u=d[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(f===a||f===o))return r()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var u;if((f=(u=s[i]).getAttribute("data-href"))===a||f===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,d=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");d.request=a,delete n[e],b.parentNode.removeChild(b),t(d)},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 d,i=document.createElement("script");i.charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.src=function(e){return c.p+"mrstatic/js/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[e]||e)+"."+{0:"bc874a24",1:"d8e45a1d",2:"0417c21c",3:"4a2be69d",4:"8874c5f6",5:"7c543670",6:"9418f550",7:"0b8e4d1f",8:"aeb80b54",9:"be5e259c",10:"cb4e04da",11:"003c1591",12:"f5b59b90",13:"9defb510",14:"bda64a0f",15:"838a0a03",16:"086661ea",17:"1d7f72c5",18:"3d841bb3",19:"559cd543",20:"b0678d9f",21:"a547ca35",22:"baedc6ef",23:"091821bc",24:"2d7b00a3",25:"4ed18a9e",26:"4ebbdc92",27:"89212ccd",28:"6ad5e869",30:"9f9fb0cd",31:"0a331da1",32:"244d529a",33:"47d0e4b3",34:"748cd18b",35:"f9f16c0a",37:"20bbab86",38:"5196fde9",39:"5435cfbb",40:"736d4af5",41:"012259e9",42:"a88198e8",43:"072605c6",44:"7755d50c",46:"44f38ed3",47:"4ef49615",48:"1ae71ff2",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"ca09d94c",53:"63fffc38",54:"64490914",55:"edc8af37",56:"3bd63341",57:"41670a6c",58:"86365e8c",59:"cbe2e2d8",60:"854d7550",61:"65b25a7d",62:"dc00bc5d"}[e]+".chunk.js"}(e),d=function(r){i.onerror=i.onload=null,clearTimeout(f);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,d=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");d.type=a,d.request=n,t[1](d)}o[e]=void 0}};var f=setTimeout(function(){d({type:"timeout",target:i})},12e4);i.onerror=i.onload=d,document.head.appendChild(i)}return Promise.all(r)},c.m=e,c.c=a,c.d=function(e,r,t){c.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,r){if(1&r&&(e=c(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)c.d(t,a,function(r){return e[r]}.bind(null,a));return t},c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,"a",r),r},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.p="/",c.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],f=i.push.bind(i);i.push=r,i=i.slice();for(var s=0;s<i.length;s++)r(i[s]);var u=f;t()}([]);
//# sourceMappingURL=runtime~main.8bde8b2d.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":"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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J,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.e3598684.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\":\"d8e45a1d\",\"2\":\"0417c21c\",\"3\":\"4a2be69d\",\"4\":\"8874c5f6\",\"5\":\"7c543670\",\"6\":\"9418f550\",\"7\":\"0b8e4d1f\",\"8\":\"aeb80b54\",\"9\":\"be5e259c\",\"10\":\"cb4e04da\",\"11\":\"003c1591\",\"12\":\"f5b59b90\",\"13\":\"9defb510\",\"14\":\"bda64a0f\",\"15\":\"838a0a03\",\"16\":\"086661ea\",\"17\":\"1d7f72c5\",\"18\":\"3d841bb3\",\"19\":\"559cd543\",\"20\":\"b0678d9f\",\"21\":\"a547ca35\",\"22\":\"baedc6ef\",\"23\":\"091821bc\",\"24\":\"2d7b00a3\",\"25\":\"4ed18a9e\",\"26\":\"4ebbdc92\",\"27\":\"89212ccd\",\"28\":\"6ad5e869\",\"30\":\"9f9fb0cd\",\"31\":\"a9a5b25d\",\"32\":\"244d529a\",\"33\":\"47d0e4b3\",\"34\":\"748cd18b\",\"35\":\"f9f16c0a\",\"37\":\"20bbab86\",\"38\":\"5196fde9\",\"39\":\"5435cfbb\",\"40\":\"736d4af5\",\"41\":\"012259e9\",\"42\":\"800f0ead\",\"43\":\"30325f1c\",\"44\":\"7755d50c\",\"46\":\"44f38ed3\",\"47\":\"4ef49615\",\"48\":\"1ae71ff2\",\"49\":\"0dfc3020\",\"50\":\"41881c23\",\"51\":\"38a8cd5c\",\"52\":\"ca09d94c\",\"53\":\"63fffc38\",\"54\":\"64490914\",\"55\":\"edc8af37\",\"56\":\"3bd63341\",\"57\":\"41670a6c\",\"58\":\"86365e8c\",\"59\":\"cbe2e2d8\",\"60\":\"854d7550\",\"61\":\"65b25a7d\",\"62\":\"dc00bc5d\"}[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\":\"da74d427\",\"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,I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I,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.8bde8b2d.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\":\"d8e45a1d\",\"2\":\"0417c21c\",\"3\":\"4a2be69d\",\"4\":\"8874c5f6\",\"5\":\"7c543670\",\"6\":\"9418f550\",\"7\":\"0b8e4d1f\",\"8\":\"aeb80b54\",\"9\":\"be5e259c\",\"10\":\"cb4e04da\",\"11\":\"003c1591\",\"12\":\"f5b59b90\",\"13\":\"9defb510\",\"14\":\"bda64a0f\",\"15\":\"838a0a03\",\"16\":\"086661ea\",\"17\":\"1d7f72c5\",\"18\":\"3d841bb3\",\"19\":\"559cd543\",\"20\":\"b0678d9f\",\"21\":\"a547ca35\",\"22\":\"baedc6ef\",\"23\":\"091821bc\",\"24\":\"2d7b00a3\",\"25\":\"4ed18a9e\",\"26\":\"4ebbdc92\",\"27\":\"89212ccd\",\"28\":\"6ad5e869\",\"30\":\"9f9fb0cd\",\"31\":\"0a331da1\",\"32\":\"244d529a\",\"33\":\"47d0e4b3\",\"34\":\"748cd18b\",\"35\":\"f9f16c0a\",\"37\":\"20bbab86\",\"38\":\"5196fde9\",\"39\":\"5435cfbb\",\"40\":\"736d4af5\",\"41\":\"012259e9\",\"42\":\"a88198e8\",\"43\":\"072605c6\",\"44\":\"7755d50c\",\"46\":\"44f38ed3\",\"47\":\"4ef49615\",\"48\":\"1ae71ff2\",\"49\":\"0dfc3020\",\"50\":\"41881c23\",\"51\":\"38a8cd5c\",\"52\":\"ca09d94c\",\"53\":\"63fffc38\",\"54\":\"64490914\",\"55\":\"edc8af37\",\"56\":\"3bd63341\",\"57\":\"41670a6c\",\"58\":\"86365e8c\",\"59\":\"cbe2e2d8\",\"60\":\"854d7550\",\"61\":\"65b25a7d\",\"62\":\"dc00bc5d\"}[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\":\"da74d427\",\"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(36);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(37),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.activity_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.800f0ead.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(36);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(37),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.a88198e8.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.activity_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(36);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(36),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(36);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.30325f1c.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(36);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(36),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(36);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.072605c6.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/treasure-box/common/createSuccess/index.js","components/activity/treasure-box/myTreasure/team.js","components/activity/treasure-box/myTreasure/prize.js","components/activity/treasure-box/common/splitSuccess/index.js","components/activity/treasure-box/myTreasure/mask.js","components/activity/treasure-box/myTreasure/index.js","common/addressPopup/index.js","common/bindPhone/index.js","common/confirmPhone/index.js"],"names":["common_createSuccess","props","console","log","_props$data","data","_props$data$team_num","team_num","_props$data$lack_memb","lack_member","_props$data$member","member","handleToInvite","members","Array","fill","react_default","a","createElement","className","map","item","index","_member","key","src","alt","type","onClick","TreasureTeam","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","initMemberInfo","params","arguments","length","undefined","_this$props","userInfo","arr","JSON","stringify","len","push","setState","team","assign","currentMember","uid","filter","computedClass","id","is_open","state","classnames","active","computedBg","val","backgroundImage","concat","toCheckPrize","_this$state$team","_this$state$team$memb","nextProps","oldData","newData","_this2","_this$state","_this$state$team2","is_captain","status","treasure_code","_this$state$team2$mem","_this$props2","toSplitTreasure","children","data-skip","style","head_img","data-layout","Fragment","getParam","href","data-direction","prize_name","Component","myTreasure_prize","bind_phone","bind_address","prize_type","handleToBindPhone","handleToBindAddress","toComposeCoupon","toUseCoupon","toCourseList","toFecthMoney","SplitSuccess","continueSplitTreasure","ids","successSplitTreasure","http","post","API","home","then","res","_res$data","code","setTimeout","_this$props2$data","_this$props2$data$mem","prize_img","avatar","prize","Root","document","querySelector","Mask","el","appendChild","removeChild","visible","handleToHide","ReactDOM","createPortal","MyTreasure","connect","_ref","country","user","popupInstance","initPrizeName","fetchCurrentTeamId","prizeName","judgeIsHaveId","owner_uid","isShowBindPhone","from","isPhone","handleToConfirmPhone","bindInfo","handleToHideWindow","confirmInfo","isConfirm","successBindPhone","teams","splitInfo","teamId","showSuccessSplit","prize_data","initNoSplitInfo","isSplit","isAddress","successBindAddress","_this$state2","fetchMyTreasure","get","_res$data2","rule","isArray","isEmpty","captain_uid","fetchActivityStatus","_res$data3","Number","treasure_stage","history","startCountDown","isEnd","treasureTime","treasure_stop_date","seconds","timer","clearInterval","setInterval","window","location","toOrganizeTeam","_this$props$userInfo$","_res$data4","isCreate","createInfo","SendMessageToApp","param","title","nextProp","_this$state3","_this$state3$splitInf","_this$state3$confirmI","_this$state3$confirmI2","_this$state3$confirmI3","browser","isAndroidApp","isIOSApp","common","arrow","myTreasure_team","splitInstance","myTreasure_mask","common_splitSuccess","bindPhone","hideBindPhone","desc","confirmPhone","handleToCancle","addressPopup","skip","tip","dangerouslySetInnerHTML","__html","AddressPopup","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","fetchUserAddress","addressInfo","msg","name","phone","address","isLoading","handleToSubmit","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","act_type","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","_this$props$skip","react__WEBPACK_IMPORTED_MODULE_8___default","formik__WEBPACK_IMPORTED_MODULE_10__","initialValues","validate","errors","test","validateOnBlur","validateOnChange","onSubmit","values","render","_ref2","color","_ref3","field","placeholder","_ref4","_ref5","data-status","BindPhone","captchaInstance","initCountryInfo","toFetchCountryNum","getCaptchaInstance","instance","onVerify","err","handleToSend","tel","isFirst","isTimer","_this$state$country$n","num","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","refresh","area_code","phone_num","errno","toBindPhone","_this$state2$accountI","accountInfo","_this$state2$country$","mobile","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","is_valid","tip_info","_this$props3","_this$props3$skip","formik__WEBPACK_IMPORTED_MODULE_9__","setStatus","setSubmitting","_ref4$values","data-type","_common_Captcha__WEBPACK_IMPORTED_MODULE_11__","getInstance","_ref6","ConfirmPhone","continueBindPhone","_this$props2$bindInfo","_this$props2$skip","data-plat"],"mappings":"iVAGeA,WAAA,SAACC,GACdC,QAAQC,IAAIF,GADY,IAAAG,EASpBH,EANFI,KAHsBC,EAAAF,EAIpBG,gBAJoB,IAAAD,EAIT,EAJSA,EAAAE,EAAAJ,EAKpBK,mBALoB,IAAAD,EAKN,EALMA,EAAAE,EAAAN,EAMpBO,cANoB,IAAAD,EAMX,GANWA,EAQtBE,EACEX,EADFW,eAEIC,EAAU,IAAIC,MAAM,GAAGC,KAAK,IAClC,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,MAAIC,UAAU,uBAAd,4BACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,qBACVH,EAAAC,EAAAC,cAAA,YAAOX,GADV,kCACkCS,EAAAC,EAAAC,cAAA,YAAOT,GADzC,iEAGAO,EAAAC,EAAAC,cAAA,KAAGC,UAAU,uBACbH,EAAAC,EAAAC,cAAA,MAAIC,UAAU,gCAEVN,EAAQO,IAAI,SAACC,EAAMC,GACjB,IAAMC,EAAU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C,UAAU,mBAAmBiR,YAAU,OAC1C5D,EAAAvN,EAAAC,cAAA,KAAGC,UAAU,6BAA6B8H,EAAQ,cAIpDA,EAAQ,eACRuF,EAAAvN,EAAAC,cAAA,MAAIC,UAAU,uBAGZqN,EAAAvN,EAAAC,cAAA,KAAGC,UAAU,mBAAmBiR,YAAU,SAC1C5D,EAAAvN,EAAAC,cAAA,KAAGC,UAAU,6BAA6B8H,EAAQ,iBAIxDuF,EAAAvN,EAAAC,cAAA,OAAKC,UAAU,sBACbqN,EAAAvN,EAAAC,cAAA,UACAC,UAAU,gDACVS,QAASqL,GAFT,gBAGAuB,EAAAvN,EAAAC,cAAA,UACAC,UAAU,iDACVS,QAASK,KAAKgQ,mBAFd,qCA7EiBvM,cAsFZsM","file":"mrstatic/js/treasure-box-mybox.072605c6.chunk.js","sourcesContent":["import React from 'react';\nimport './index.scss';\n\nexport default (props) => {\n console.log(props);\n const { \n data: {\n team_num = 1,\n lack_member = 4,\n member = [],\n },\n handleToInvite\n } = props;\n const members = new Array(5).fill({});\n return (\n <div className=\"team-success\">\n <h2 className=\"team-success__title\">创建成功</h2>\n <p className=\"team-success__tip\">\n {<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~\n </p>\n <i className=\"team-success__icon\"></i>\n <ul className='team-success__member members'>\n {\n members.map((item, index) => {\n const _member = member[index]\n return (\n <li className=\"member-item\" key={index}>\n {\n _member && _member['is_captain'] && <sup className=\"member-item__captain\">队长</sup>\n }\n <img\n className=\"member-item__avatar\"\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n );\n })\n }\n </ul>\n <button type={'button'} className=\"team-success__button\" onClick={handleToInvite}>邀请好友加入队伍</button>\n </div>\n )\n}","import React, { Component } from 'react';\nimport classnames from 'classnames';\nimport { Link } from 'react-router-dom';\nimport './team.scss';\nimport { getParam } from \"@/utils\"\n\nclass TreasureTeam extends Component {\n constructor(props) {\n super(props);\n this.state = {\n team: {},\n currentMember: {}\n };\n }\n\n componentDidMount() {\n this.initMemberInfo();\n }\n\n componentWillReceiveProps(nextProps) {\n const { data: oldData } = this.props;\n const { data: newData } = nextProps;\n if(newData.is_open != oldData.is_open) {\n this.initMemberInfo(newData);\n }\n }\n\n initMemberInfo = (params = {}) => {\n const { data, userInfo } = this.props;\n const arr = JSON.stringify(params) !== '{}'? params: data;\n let member = arr.member;\n let len = member.length - 5;\n for(; len < 0; len++) {\n member.push({});\n }\n this.setState({\n team: Object.assign({}, arr, {\n member\n }),\n currentMember: userInfo.uid? member.filter(item => item.uid == userInfo.uid)[0] : {}\n });\n }\n\n computedClass = (id) => {\n const { data: { is_open } } = this.props;\n const { currentMember } = this.state;\n return classnames(\n 'team-member__item',\n {\n 'active': id === currentMember.uid && is_open,\n }\n );\n }\n\n computedBg = (val) => {\n return val? {\n backgroundImage: `url(${val})`\n } : {};\n }\n\n // 查看队友的奖品,条件:宝箱已拆\n toCheckPrize = (id) => {\n const { team: { is_open, member = []} } = this.state;\n if(is_open) {\n const data = member.filter(item => item.uid === id);\n this.setState({\n currentMember: data[0]\n });\n }\n }\n\n render() {\n const {\n team: {\n is_captain,\n status,\n team_num,\n lack_member,\n is_open,\n treasure_code,\n member = [],\n },\n currentMember\n } = this.state;\n const {\n toSplitTreasure,\n userInfo,\n children\n } = this.props;\n return (\n <div className=\"team-container\" data-skip=\"team\">\n {\n !is_captain &&\n <i className=\"team-friend\">友</i>\n }\n\n {/* 组队状态 */}\n {\n status === 1\n ? <i className=\"team-status\">组队中..</i>\n : <i className=\"team-decorate\"></i>\n }\n\n {/* 队伍类型 */}\n {\n is_captain\n ? <h2 className=\"team-title\">{team_num}号队伍</h2>\n : <h2 className=\"team-title\">好友队伍</h2>\n }\n\n\n {/* 队员情况 */}\n {\n status === 1\n ? <p className=\"team-desc\">还差{lack_member}名队员即可获得宝箱哦~</p>\n : <p className=\"team-desc\">组队成功</p>\n }\n <div className=\"team-member\">\n {\n member.map((item, index) => (\n <div\n className={this.computedClass(item.uid)}\n onClick={() => this.toCheckPrize(item.uid)}\n key={index}\n style={this.computedBg(item.head_img)}\n >\n {\n item.is_captain &&\n <span className=\"team-member__captain\">队长</span>\n }\n </div>\n ))\n }\n </div>\n <div className=\"team-footer\" data-layout={is_open? 'column': 'row'}>\n {/* 队伍未满 */}\n {\n status === 1 &&\n <>\n {\n getParam('version')\n ? is_captain\n ? <a className=\"team-button\" href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1&version=${getParam('version')}`}>继续邀请队友</a>\n : <a className=\"team-button\" href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=2&version=${getParam('version')}`}>帮好友完成组队</a>\n : is_captain\n ? <a className=\"team-button\" href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1`}>继续邀请队友</a>\n : <a className=\"team-button\" href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=2`}>帮好友完成组队</a>\n }\n </>\n }\n\n {/* 可拆状态 */}\n {\n (status === 2 && !is_open) &&\n <>\n <span className=\"team-icon\" data-direction=\"left\"></span>\n <span className=\"team-button--split\" onClick={toSplitTreasure}></span>\n <span className=\"team-icon\" data-direction=\"right\"></span>\n </>\n }\n\n {/* 已拆状态 */}\n {\n (status === 2 && is_open) &&\n <>\n {\n currentMember.prize_name\n ? <p className=\"team-prize\">{currentMember.prize_name}</p>\n : <p className=\"team-prize\">尚未开宝箱</p>\n }\n {\n currentMember.uid == userInfo.uid\n ? children\n : null\n }\n </>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default TreasureTeam;\n","import React from 'react';\nimport './prize.scss';\n\nexport default (props) => {\n const { \n data: {\n bind_phone, \n bind_address, \n prize_type,\n },\n handleToBindPhone,\n handleToBindAddress,\n toComposeCoupon,\n toUseCoupon,\n toCourseList,\n toFecthMoney,\n } = props;\n return (\n <>\n {/* 第一:是否需要绑定手机号 */}\n {\n bind_phone &&\n <a className=\"team-result\" onClick={handleToBindPhone}>\n <span>绑定手机号</span>\n </a>\n }\n\n {/* 第二:是否需要填写地址 */}\n {\n (!bind_phone && bind_address) &&\n <a className=\"team-result\" onClick={handleToBindAddress}>\n <span>查看/修改收货信息</span>\n </a>\n }\n\n {/* 第三:奖品,实物 */}\n {\n (!bind_phone && !bind_address && prize_type === 1) &&\n <a className=\"team-result\" onClick={handleToBindAddress}>\n <span>查看/修改收货信息</span>\n </a>\n }\n\n {/* 第三:奖品,代金券碎片 */}\n {\n (!bind_phone && !bind_address && prize_type === 6) &&\n <a className=\"team-result\" onClick={toComposeCoupon}>\n 可合成代金券在购课时使用,\n <span>去合成</span>\n </a>\n }\n\n {/* 第三:奖品,指定课程代金券 */}\n {\n (!bind_phone && !bind_address && prize_type === 3) &&\n <a className=\"team-result\" onClick={toUseCoupon}>\n 已发放至您的账户,\n <span>去使用</span>\n </a>\n }\n\n {/* 第三:奖品,通用课程代金券 */}\n {\n (!bind_phone && !bind_address && prize_type === 4) &&\n <a className=\"team-result\" onClick={toCourseList}>\n 已发放至您的账户,\n <span>去使用</span>\n </a>\n }\n\n {/* 第三:奖品,现金红包 */}\n {\n (!bind_phone && !bind_address && prize_type === 7) &&\n <a className=\"team-result\" onClick={toFecthMoney}>\n 已存入您的账户,\n <span>去提现</span>\n </a>\n }\n\n {/* 第三:奖品,线上课程 */}\n {\n (!bind_phone && !bind_address && prize_type === 2) &&\n <a className=\"team-result\">已发放至您的账户</a>\n }\n\n {/* 第三:奖品,任意线上课程兑换券 */}\n {\n (!bind_phone && !bind_address && prize_type === 5) &&\n <a className=\"team-result\">无法领取请添加微信:julyedukefu10\n </a>\n }\n </>\n )\n}","import React, { Component } from 'react';\nimport { http } from '@/utils';\nimport './index.scss';\n\nclass SplitSuccess extends Component {\n\n computedBg = (val) => {\n return val? {\n backgroundImage: `url(${val})`\n } : {};\n }\n\n continueSplitTreasure = () => {\n const { ids, successSplitTreasure, handleToBindPhone, handleToBindAddress } = this.props;\n const params = ids[0];\n http.post(`${API.home}/sys/split_treasure`, params).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n successSplitTreasure(data);\n if(data.bind_phone) {\n setTimeout(() => {\n handleToBindPhone(data.id);\n }, 500);\n }else if(data.bind_address) {\n setTimeout(() => {\n handleToBindAddress(data.id, data.prize_name);\n }, 500);\n }\n }else if(code === 12000) {\n // 请先绑定手机号再拆宝箱\n handleToBindPhone();\n }else if(code === 12001) {\n // 请先填写收货地址再拆宝箱\n handleToBindAddress();\n }\n });\n }\n\n render() {\n const { \n ids,\n data: {\n member = [],\n prize_img,\n prize_name,\n },\n handleToInvite,\n children,\n } = this.props;\n return (\n <div data-skip=\"split\">\n <h2 className=\"split-success__title\">恭喜你获得</h2>\n <div className=\"split-success__image\">\n <img src={prize_img} alt=\"\"/>\n </div>\n <p className=\"split-success__prize\">{prize_name}</p>\n\n {children}\n\n <div className=\"split-success__member\">\n {\n member.map((item, index) => (\n <div className=\"member-item\" key={index}>\n <span className=\"member-item__avatar\" style={this.computedBg(item.avatar)}>\n {\n item.is_captain && <i className=\"member-item__captain\">队长</i>\n }\n </span>\n {\n item.prize\n ? <span className=\"member-item__prize\">{item.prize}</span>\n : <span className=\"member-item__prize\">尚未开宝箱</span>\n }\n </div>\n ))\n }\n </div>\n {\n ids.length > 0\n ? <button className=\"split-success__jump\" onClick={this.continueSplitTreasure}>继续开宝箱</button>\n : <button className=\"split-success__jump\" onClick={handleToInvite}>继续组队开宝箱</button>\n }\n </div>\n );\n }\n}\n\nexport default SplitSuccess;","import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport classnames from 'classnames';\nimport './mask.scss';\n\nconst Root = document.querySelector('body');\n\nclass Mask extends Component {\n\n constructor(props) {\n super(props);\n if(!this.el) {\n this.el = document.createElement('div');\n }\n }\n\n componentDidMount() {\n Root.appendChild(this.el);\n }\n\n componentWillUnmount() {\n Root.removeChild(this.el);\n }\n\n render() {\n const { visible, handleToHide, className } = this.props;\n if(visible) {\n return ReactDOM.createPortal(\n (\n <div className=\"mask\">\n <div className={classnames(\"mask-content\", className)}>\n {this.props.children}\n </div>\n <div className=\"mask-footer\">\n <i className=\"mask-button__close\" onClick={handleToHide}></i>\n </div>\n </div>\n ),\n this.el\n );\n }else {\n return null;\n }\n }\n}\n\nexport default Mask;","import React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport { HeaderBar } from '@common'\nimport AddressPopup from '@common/addressPopup/index'\nimport BindPhone from '@common/bindPhone/index'\nimport ConfirmPhone from '@common/confirmPhone/index'\nimport CreateSuccess from './../common/createSuccess/index'\nimport TreasureTeam from './team'\nimport PrizeStatus from './prize'\nimport SplitSuccess from './../common/splitSuccess/index'\nimport { http, getParam, SendMessageToApp, browser } from '@/utils'\nimport Mask from './mask'\nimport './index.scss'\n\n@connect(({country, user}) => ({\n country,\n userInfo: user.data\n}))\nclass MyTreasure extends Component {\n popupInstance = null\n\n constructor(props) {\n super(props)\n this.state = {\n isEnd: false,\n isEmpty: false,\n seconds: 3,\n teams: [],\n ids: [], // 未拆宝箱统计\n bindInfo: {}, // 绑定手机号冲突信息\n isPhone: false,\n isAddress: false,\n isConfirm: false,\n confirmInfo: {},\n isSplit: false,\n isCreate: false,\n createInfo: {},\n prizeName: '', // 当前商品的名字\n treasureTime: '', // 宝箱活动结束时间\n }\n }\n\n componentDidMount() {\n this.fetchMyTreasure()\n this.fetchActivityStatus()\n document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线';\n }\n\n componentWillReceiveProps(nextProp) {\n const {history} = this.props\n const {userInfo} = nextProp\n if (!userInfo.uid) {\n history.push('/passport')\n }else {\n this.fetchMyTreasure();\n }\n }\n\n // 页面加载时,初始化当前需要绑定手机号的奖品名字\n initPrizeName = (params) => {\n const key = this.fetchCurrentTeamId(params)\n const data = params.filter(item => item.id == key)\n if (data.length > 0) {\n this.setState({\n prizeName: data[0]['prize_name']\n })\n }\n }\n\n // 页面加载时,是否需要拆宝箱\n judgeIsHaveId = (data) => {\n const id = getParam('id')\n if (id) {\n const newData = data.filter(item => item.id == id)\n if (newData.length > 0) {\n const params = {\n team_num: newData[0]['team_num'],\n owner_uid: newData[0]['captain_uid']\n }\n this.toSplitTreasure(params)\n }\n }\n }\n\n // 获取当前需要绑定手机的队伍id,当拆到需要绑定手机号/地址的宝箱时,如果不进行绑定则无法拆下一个\n fetchCurrentTeamId = (data = []) => {\n const arr = data.filter(item => item.is_open && (item.bind_phone || item.bind_address))\n if (arr.length > 0) {\n return arr[0]['id']\n } else {\n return ''\n }\n }\n\n // 页面加载时,是否是从选择区号页面过来的\n // TODO,当同时展示拆宝箱成功弹窗和绑定手机号弹窗时,选择区号返回时未展示拆宝箱成功弹窗(和产品确认,后续优化)\n isShowBindPhone = (data) => {\n const {country} = this.props\n if (country.from) {\n const id = this.fetchCurrentTeamId(data)\n this.handleToBindPhone(id)\n }\n }\n\n // 绑定手机号--展示\n handleToBindPhone = (id) => {\n this.setState({\n isPhone: true,\n })\n }\n\n // 绑定手机号--确认\n handleToConfirmPhone = (params, bindInfo) => {\n this.handleToHideWindow('isPhone')\n this.setState({\n confirmInfo: {\n params,\n bindInfo,\n },\n isConfirm: true,\n })\n }\n\n // 绑定手机号--成功\n successBindPhone = () => {\n this.setState({\n isPhone: false,\n isConfirm: false,\n })\n const {teams, splitInfo} = this.state\n const teamId = this.fetchCurrentTeamId(teams)\n const data = teams.map(item => {\n if (item.id == teamId) {\n if (item.bind_address) {\n this.handleToBindAddress()\n }\n return Object.assign({}, item, {\n bind_phone: false,\n })\n }\n return item\n })\n this.setState({\n teams: data,\n splitInfo: Object.assign({}, splitInfo, {\n bind_phone: false\n })\n })\n }\n\n // 拆宝箱--拆\n toSplitTreasure = (params) => {\n http.post(`${API.home}/sys/split_treasure`, params).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n // 拆宝箱弹窗--成功\n this.showSuccessSplit(data)\n\n // 更新队伍状态\n this.successSplitTreasure(data)\n if (data.bind_phone) {\n setTimeout(() => {\n this.handleToBindPhone(data.id)\n }, 500)\n } else if (data.bind_address) {\n setTimeout(() => {\n this.handleToBindAddress(data.id, data.prize_name)\n }, 500)\n }\n } else if (code === 12000) {\n // 绑定手机号\n this.handleToBindPhone()\n } else if (code === 12001) {\n // 绑定地址\n this.handleToBindAddress()\n }\n })\n }\n\n // 拆宝箱--成功,更新数据\n successSplitTreasure = (params) => {\n const {userInfo} = this.props\n const {teams} = this.state\n const data = teams.map(item => {\n if (item.id == params.id) {\n return Object.assign({}, item, {\n bind_phone: params.bind_phone,\n bind_address: params.bind_address,\n is_open: true,\n prize_type: params.prize_type,\n prize_data: params.prize_data,\n member: item.member.map(val => {\n if (val.uid == userInfo.uid) {\n return Object.assign({}, val, {\n is_open: true,\n prize_name: params.prize_name\n })\n }\n return val\n })\n })\n } else {\n return item\n }\n })\n this.initNoSplitInfo(data)\n this.setState({\n teams: data,\n splitInfo: params,\n prizeName: params.prize_name\n })\n }\n\n // 拆宝箱--成功,展示弹窗\n showSuccessSplit = (data) => {\n this.setState({\n isSplit: true,\n splitInfo: data\n })\n }\n\n // 绑定地址--展示\n handleToBindAddress = (id, prizeName = '') => {\n if (id) {\n if(prizeName) {\n this.setState({\n prizeName\n })\n }else {\n const {teams} = this.state\n const data = teams.filter(item => item.id == id)\n if (data.length > 0) {\n this.setState({\n prizeName: data[0]['prize_name']\n })\n }\n }\n }\n this.setState({\n isAddress: true\n })\n }\n\n // 绑定地址--成功\n successBindAddress = () => {\n this.setState({\n isAddress: false,\n })\n const {teams, splitInfo} = this.state\n const teamId = this.fetchCurrentTeamId(teams)\n const data = teams.map(item => {\n if (item.id == teamId) {\n return Object.assign({}, item, {\n bind_address: false,\n })\n }\n return item\n })\n this.setState({\n teams: data,\n splitInfo: Object.assign({}, splitInfo, {\n bind_address: false\n })\n })\n }\n\n // 获取我的宝箱信息\n fetchMyTreasure = () => {\n http.get(`${API.home}/sys/treasure/my`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.setState({\n rule: data.rule\n })\n if (Array.isArray(data.team) && data.team.length > 0) {\n this.initNoSplitInfo(data.team)\n this.judgeIsHaveId(data.team)\n this.isShowBindPhone(data.team)\n this.initPrizeName(data.team)\n this.setState({\n isEmpty: false,\n teams: data.team,\n })\n } else {\n this.setState({\n isEmpty: true,\n })\n }\n }\n })\n }\n\n // 统计未拆的宝箱信息\n initNoSplitInfo = (data = []) => {\n if (data.length > 0) {\n this.setState({\n ids: data.filter(item => !item.is_open && item.status === 2).map(val => {\n return {\n team_num: val.team_num,\n owner_uid: val.captain_uid\n }\n })\n })\n }\n }\n\n // 获取宝箱活动状态\n fetchActivityStatus = () => {\n http.get(`${API.home}/activity/stage`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n if(Number(data.treasure_stage) === 0) {\n this.props.history.push('/');\n return;\n }\n // treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内\n if (data.treasure_stage === 0) {\n this.startCountDown()\n }\n this.setState({\n isEnd: data.treasure_stage === 0,\n treasureTime: data.treasure_stop_date\n })\n }\n })\n }\n\n // 活动结束--倒计时\n startCountDown = () => {\n const {history} = this.props\n let {seconds} = this.state\n if (this.timer) {\n clearInterval(this.timer)\n }\n this.setState({\n seconds: seconds--\n })\n this.timer = setInterval(() => {\n this.setState({\n seconds: seconds--\n })\n if (seconds === 0) {\n this.setState({\n seconds: 0\n })\n clearInterval(this.timer)\n if (getParam('version')) {\n history.push(`/year/yearIndex?version=${getParam('version')}`)\n } else {\n history.push('/year/yearIndex')\n }\n }\n }, 1000)\n }\n\n // 邀请好友\n handleToInvite = (treasure_code) => {\n const {history} = this.props\n if (getParam('version')) {\n window.location.assign(`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1&version=${getParam('version')}`)\n } else {\n window.location.assign(`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1`)\n }\n }\n\n // 组队开宝箱\n toOrganizeTeam = () => {\n const {history, userInfo: {uid = ''}} = this.props\n if (uid === '') {\n history.push('/passport')\n } else {\n http.get(`${API.home}/sys/treasure/createMyTeam`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n const teams = []\n teams[0] = data\n this.setState({\n isEmpty: false,\n teams,\n isCreate: true,\n createInfo: data\n })\n }\n })\n }\n }\n\n // 奖品,代金券碎片--合成\n toComposeCoupon = () => {\n const {history} = this.props\n if (getParam('version')) {\n SendMessageToApp(\"toCoupon\")\n } else {\n history.push('/coupons/my-patch')\n }\n }\n\n // 奖品,指定课程代金券--使用\n toUseCoupon = (id) => {\n const {history} = this.props\n if (getParam('version')) {\n SendMessageToApp(\"toCourse\", id)\n } else {\n history.push(`/detail?id=${id}`)\n }\n }\n\n // 第三:奖品,通用课程代金券--使用\n toCourseList = () => {\n const {history} = this.props\n if (getParam('version')) {\n SendMessageToApp('toQualityCourse')\n } else {\n history.push('/classify')\n }\n }\n\n // 第三:奖品,现金红包--提现\n toFecthMoney = () => {\n const {history} = this.props\n if (getParam('version')) {\n SendMessageToApp('toAccount')\n } else {\n history.push('/scholarship')\n }\n }\n\n // 弹窗--隐藏\n handleToHideWindow = (key) => {\n const param = {}\n param[key] = false\n this.setState(param)\n }\n\n render() {\n const {history, userInfo, country} = this.props\n const {\n isEnd,\n isEmpty,\n seconds,\n teams,\n ids,\n isPhone,\n isAddress,\n isConfirm,\n isSplit,\n splitInfo = {},\n confirmInfo: {\n params = {},\n bindInfo = {}\n },\n isCreate,\n createInfo,\n prizeName,\n rule,\n treasureTime,\n } = this.state\n return (\n <div data-skip=\"treasure\">\n {(!browser.isAndroidApp && !browser.isIOSApp) && <HeaderBar title=\"我的宝箱\" arrow={true}/>}\n {\n isEnd &&\n <div className=\"team-empty\">\n <p className=\"activity-end__desc\">\n 活动已结束<br/>\n {seconds}s后将自动返回首页\n </p>\n </div>\n }\n {\n (!isEnd && isEmpty) &&\n <div className=\"team-empty\">\n <i className=\"team-empty__icon\"></i>\n <p className=\"team-empty__desc\">您当前还没有宝箱哦~</p>\n <p className=\"team-empty__desc\">快去组队邀请好友一起开宝箱吧!</p>\n <button className=\"team-empty__button\" onClick={this.toOrganizeTeam}>组队开宝箱</button>\n </div>\n }\n {\n (!isEnd && !isEmpty && userInfo.uid) &&\n <div className=\"treasure-content\">\n {\n teams.map((item, index) => (\n <TreasureTeam\n data={item}\n key={index}\n userInfo={userInfo}\n history={history}\n splitInstance={this.splitInstance}\n toSplitTreasure={() => this.toSplitTreasure({\n team_num: item.team_num,\n owner_uid: item.captain_uid\n })}\n >\n <PrizeStatus\n data={{\n bind_phone: item.bind_phone,\n bind_address: item.bind_address,\n prize_type: item.prize_type,\n }}\n handleToBindPhone={this.handleToBindPhone}\n handleToBindAddress={() => this.handleToBindAddress(item.id)}\n toComposeCoupon={this.toComposeCoupon}\n toUseCoupon={() => this.toUseCoupon(item.prize_data)}\n toCourseList={this.toCourseList}\n toFecthMoney={this.toFecthMoney}\n />\n </TreasureTeam>\n ))\n }\n\n {/* 拆宝箱--弹窗,成功 */}\n <Mask visible={isSplit} handleToHide={() => this.handleToHideWindow('isSplit')}>\n <SplitSuccess\n ids={ids}\n data={splitInfo}\n handleToInvite={() => this.handleToInvite(splitInfo.treasure_code)}\n handleToBindPhone={this.handleToBindPhone}\n handleToBindAddress={this.handleToBindAddress}\n successSplitTreasure={this.successSplitTreasure}\n >\n <PrizeStatus\n data={splitInfo}\n handleToBindPhone={this.handleToBindPhone}\n handleToBindAddress={this.handleToBindAddress}\n toComposeCoupon={this.toComposeCoupon}\n toUseCoupon={() => this.toUseCoupon(splitInfo.prize_data)}\n toCourseList={this.toCourseList}\n toFecthMoney={this.toFecthMoney}\n />\n </SplitSuccess>\n </Mask>\n\n {/*绑定手机号--弹窗 */}\n <Mask visible={isPhone} className=\"popup-bind-phone\" handleToHide={() => this.handleToHideWindow('isPhone')}>\n <BindPhone\n history={history}\n country={country}\n hideBindPhone={() => this.handleToHideWindow('isPhone')}\n handleToConfirmPhone={this.handleToConfirmPhone}\n successBindPhone={this.successBindPhone}\n desc={\n <>\n <p className=\"phone-treasure__desc\">恭喜您获得 {prizeName}</p>\n <p className=\"phone-treasure__notice\">为了您的账户安全,请于{treasureTime}前绑定手机号,过期将失效</p>\n </>\n }\n />\n </Mask>\n\n {/* 绑定手机号--弹窗,确认 */}\n <Mask visible={isConfirm} handleToHide={() => this.handleToHideWindow('isConfirm')}>\n <ConfirmPhone\n data={params}\n bindInfo={bindInfo}\n handleToCancle={() => this.handleToHideWindow('isConfirm')}\n successBindPhone={this.successBindPhone}\n />\n </Mask>\n\n {/* 绑定地址--弹窗 */}\n <Mask visible={isAddress} className=\"popup-bind-address\" handleToHide={() => this.handleToHideWindow('isAddress')}>\n <AddressPopup\n skip=\"year\"\n tip={\n <>\n <p className=\"address-treasure__desc\">恭喜您获得 {prizeName}</p>\n <p className=\"address-treasure__notice\">请及时填写/确认收货信息,活动结束后统一邮寄</p>\n </>\n }\n successBindAddress={this.successBindAddress}\n />\n </Mask>\n\n {/* 组队成功 */}\n <Mask visible={isCreate} handleToHide={() => this.handleToHideWindow('isCreate')}>\n <CreateSuccess\n data={createInfo}\n handleToInvite={() => {\n this.handleToInvite(createInfo.treasure_code)\n this.handleToHideWindow('isCreate')\n }}\n />\n </Mask>\n </div>\n }\n {\n rule &&\n <>\n <div className=\"activity-rule__header\">\n <i className=\"activity-rule__decorate\"></i>\n <h2 className=\"activity-rule__title\">活动规则</h2>\n <i className=\"activity-rule__decorate\"></i>\n </div>\n <div className=\"activity-rule__body\" dangerouslySetInnerHTML={{__html: rule}}></div>\n </>\n }\n </div>\n )\n }\n}\n\nexport default MyTreasure\n","import React, { Component } from 'react';\nimport { http } from '@/utils';\nimport { Formik, Form, Field } from 'formik';\nimport { Toast } from \"antd-mobile\";\nimport './index.scss';\n\nclass AddressPopup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n isLoading: false,\n addressInfo: {\n name: '',\n phone: '',\n address: '',\n },\n }\n }\n\n componentDidMount() {\n this.fetchUserAddress();\n }\n\n // 获取收货信息\n fetchUserAddress = () => {\n const { addressInfo } = this.state;\n http.get(`${API.home}/sys/user_address_info`).then(res => {\n const {code, data, msg} = res.data;\n if (code === 200) {\n this.setState({\n addressInfo: Object.assign({}, addressInfo, {\n name: data.name,\n phone: data.phone,\n address: data.address,\n }),\n isLoading: true,\n });\n }\n });\n }\n\n handleToSubmit = (params = {}) => {\n const { successBindAddress } = this.props;\n http.post(`${API.home}/sys/update_address`, {\n act_type: 'treasure',\n ...params\n }).then(res => {\n const {code, msg} = res.data;\n if (code === 200) {\n successBindAddress();\n } else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { isLoading, addressInfo } = this.state;\n const {tip, prize, skip = 'default'} = this.props;\n return (\n <>\n {\n isLoading &&\n <Formik\n initialValues={{ \n ...addressInfo\n }}\n validate={({name, phone, address}) => {\n const errors = {};\n\n if (!name) {\n errors.name = '请输入收件人';\n }\n if(!/^1[3-9]\\d{9}$/.test(phone)) {\n errors.phone = '请填写正确格式的手机号';\n }\n if (!address) {\n errors.address = '请输入收货地址';\n }\n\n return errors;\n }}\n validateOnBlur={false}\n validateOnChange={false}\n onSubmit={(values) => {\n this.handleToSubmit(values);\n }}\n render={({errors}) => (\n <Form className=\"address-form\" data-skip={skip}>\n <h2 className=\"address-form__title\">收货信息</h2>\n {\n prize ? (\n <p className='address__prize'>\n 您抽中了\n <span style={{'color': '#FF4000'}}>{prize}</span>\n </p>\n ) : (null)\n }\n {\n tip ? (<div className=\"address-form__subtitle\">{tip}</div>) : (<p className=\"address-form__desc\">请及时填写收货信息,获得实物奖品后将第一时间为您邮寄</p>) \n }\n <Field \n name=\"name\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收件人\"\n />\n {\n errors.name &&\n <p className=\"address-form__tip\">{errors.name}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"phone\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"联系方式\"\n />\n {\n errors.phone &&\n <p className=\"address-form__tip\">{errors.phone}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"address\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收货地址\"\n />\n {\n errors.address &&\n <p className=\"address-form__tip\">{errors.address}</p>\n }\n </div>\n )}\n />\n <button \n className=\"address-form__submit\" \n data-status=\"do\"\n type=\"submit\"\n >提交</button>\n </Form>\n )}\n />\n }\n </>\n );\n }\n}\n\nexport default AddressPopup;","import React, { Component } from 'react';\nimport { Formik, Form, Field } from 'formik';\nimport { Toast } from 'antd-mobile';\nimport { isEmpty } from 'lodash';\nimport Captcha from '@/common/Captcha';\nimport { http, getParam } from '@/utils';\nimport './index.scss';\n\nclass BindPhone extends Component {\n captchaInstance = null;\n\n constructor(props) {\n super(props),\n this.state = {\n validate: '',\n seconds: 60,\n isFirst: true,\n timer: null,\n isTimer: false, // 是否开始倒计时\n accountInfo: {},\n bindInfo: {},\n country: {\n num: '86'\n }\n }\n }\n\n componentDidMount() {\n this.initCountryInfo();\n }\n\n initCountryInfo = () => {\n const { country } = this.props;\n this.setState({\n country\n });\n }\n\n toFetchCountryNum = () => {\n const { history, hideBindPhone } = this.props;\n hideBindPhone();\n history.push('/country?from=bind');\n }\n\n getCaptchaInstance = instance => {\n this.captchaInstance = instance;\n }\n\n onVerify = (err, data) => {\n if (err) {\n console.log(err);\n } else {\n this.setState({\n validate: data.validate\n });\n }\n }\n\n // 获取手机号验证码\n handleToSend = ({tel, code}) => {\n let { validate, seconds, isFirst, isTimer, country: {num = '86'} } = this.state;\n if(validate) {\n if (!isFirst) {\n Toast.info('请重新进行滑块验证', 2, null, false);\n this.captchaInstance.refresh();\n this.setState({\n isFirst: true\n });\n return\n }\n if(!isTimer) {\n if (!tel) {\n Toast.info('手机号码不能为空', 2, null, false);\n }else if(!/^\\d+$/.test(tel)) {\n Toast.info('请输入正确格式的手机号码', 2, null, false);\n }else {\n\n // 获取验证码\n http.post(\n `${API['passport-api']}/m/personal/bindPhoneSendCode`,\n {\n area_code: `00${num}`,\n phone_num: tel\n }\n ).then(res => {\n const { errno, msg } = res.data;\n if(errno === 200) {\n Toast.info('验证码发送成功', 2, null, false);\n\n // 倒计时\n this.timer = window.setInterval(() => {\n if (seconds <= 0) {\n window.clearInterval(this.timer);\n this.setState({\n isTimer: false,\n seconds: 60\n });\n }else {\n this.setState({\n isTimer: true,\n seconds: --seconds\n });\n }\n }, 1000);\n\n // 滑块\n this.setState({\n isFirst: false\n })\n }else {\n Toast.info(msg, 2, null, false);\n }\n })\n }\n }\n }\n return false;\n }\n\n // 绑定手机\n toBindPhone = () => {\n const { accountInfo: { tel, code }, country: {num = '86'} } = this.state;\n const { handleToConfirmPhone, successBindPhone } = this.props;\n const params = {\n area_code: `00${num}`,\n mobile: tel,\n code: code,\n act_type: 'treasure', // 宝箱\n };\n http.post(\n `${API.home}/sys/v2/user/bindMobile`,\n { \n ...params,\n type: 1, // 1:绑定,2:修改绑定\n is_valid: 1, // is_valid\t是否验证 1:验证(默认),0不验证\n }\n ).then(res => {\n const { code, data, msg } = res.data;\n if(code === 200 ) {\n if(data.tip_info) {\n handleToConfirmPhone(params, data.tip_info);\n }else {\n successBindPhone();\n }\n }else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { desc, skip = 'year' } = this.props;\n const { country, validate, isTimer, seconds } = this.state;\n return (\n <Formik\n initialValues={{\n tel: '',\n code: ''\n }}\n validate={({tel, code}) => {\n const errors = {};\n\n // if (!validateTel(tel)) {\n if(!/^\\d+$/.test(tel)) {\n errors.tel = '请填写正确格式的手机号';\n }\n if (!/[0-9]{6}/.test(code)) {\n errors.code = '请输入验证码';\n }\n\n return errors;\n }}\n onSubmit={(values, { setStatus, setSubmitting }) => {\n this.setState({\n accountInfo: {\n ...values\n }\n });\n this.toBindPhone();\n }}\n render={({values: {tel, code}, errors}) => (\n <Form className=\"popup-form\" data-skip={skip}>\n <h2 className=\"popup-form__title\">绑定手机号</h2>\n {\n desc &&\n <div className=\"poup-form__desc\">{desc}</div>\n }\n <div className=\"popup-form__item\">\n <a className=\"popup-form__button--num\" onClick={this.toFetchCountryNum}>\n +{country.num}\n <i className=\"iconfont iconiconfront-69\"/>\n </a>\n <Field\n name=\"tel\"\n render={({field}) => {\n return (\n <input\n {...field}\n className=\"popup-form__ipt\"\n data-type=\"tel\"\n type=\"text\"\n placeholder=\"请填写手机号\"\n />\n );\n }}\n />\n </div>\n <Captcha\n getInstance={this.getCaptchaInstance}\n onVerify={this.onVerify}\n />\n <div className=\"popup-form__item\">\n <Field\n name=\"code\"\n render={({field}) => {\n return (\n <input\n {...field}\n className=\"popup-form__ipt popup-form__ipt--left\"\n type=\"text\"\n placeholder=\"输入验证码\"\n />\n );\n }}\n />\n <button\n className=\"popup-form__button--code\"\n data-status={(validate && !isTimer)? 'do': ''}\n type=\"button\"\n onClick={() => this.handleToSend({tel, code})}\n >\n {\n isTimer? `重新发送${seconds}s` : '发送验证码'\n }\n </button>\n </div>\n <button\n className=\"popup-form__button--bundle\"\n data-status={(tel && code && isEmpty(errors))? 'do': 'done'}\n type=\"submit\"\n >\n 完成绑定\n </button>\n </Form>\n )}\n />\n )\n }\n}\n\nexport default BindPhone;","import React, { Component } from 'react';\nimport { Toast } from 'antd-mobile';\nimport { http } from '@/utils';\nimport './index.scss';\n\nclass ConfirmPhone extends Component {\n continueBindPhone = () => {\n const { data, successBindPhone } = this.props;\n http.post(\n `${API.home}/sys/v2/user/bindMobile`,\n { \n ...data,\n type: 1, // 1:绑定,2:修改绑定\n is_valid: 0, // is_valid\t是否验证 1:验证(默认),0不验证\n }\n ).then(res => {\n const { code, msg } = res.data;\n if(code === 200 ) {\n successBindPhone();\n }else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { \n bindInfo = { }, \n desc, \n skip = 'year', \n handleToCancle \n } = this.props;\n return (\n <div className=\"popup-bind\" data-skip={skip}>\n <h2 className=\"popup-bind__title\">绑定手机号</h2>\n {\n desc\n ? <div className=\"popup-bind__desc\">{desc}</div>\n : <p className=\"popup-bind__desc\">该手机号已绑定到以下账号,继续绑定将解除以下绑定状态</p>\n }\n <ul className=\"popup-bind__list\">\n {\n bindInfo['email'] &&\n <li className=\"popup-bind__account\">\n\n {/* 邮箱 */}\n <i className=\"popup-bind__icon\" data-plat=\"mail\"></i>\n <p className=\"popup-bind__account--name\">{bindInfo['email']}</p>\n </li>\n }\n {\n bindInfo['wechat_nickname'] &&\n <li className=\"popup-bind__account\">\n\n {/* wechat */}\n <i className=\"popup-bind__icon\" data-plat=\"wachat\"></i>\n <p className=\"popup-bind__account--name\">{bindInfo['wechat_nickname']}</p>\n </li>\n }\n {\n bindInfo['qq_nickname'] &&\n <li className=\"popup-bind__account\">\n\n {/* qq */}\n <i className=\"popup-bind__icon\" data-plat=\"qq\"></i>\n <p className=\"popup-bind__account--name\">{bindInfo['qq_nickname']}</p>\n </li>\n }\n {\n bindInfo['sina_nickname'] &&\n <li className=\"popup-bind__account\">\n\n {/* 微博 */}\n <i className=\"popup-bind__icon\" data-plat=\"sina\"></i>\n <p className=\"popup-bind__account--name\">{bindInfo['sina_nickname']}</p>\n </li>\n }\n </ul>\n <div className=\"popup-bind__footer\">\n <button\n className=\"popup-bind__button popup-bind__button--cancle\"\n onClick={handleToCancle}>取消</button>\n <button\n className=\"popup-bind__button popup-bind__button--confirm\"\n onClick={this.continueBindPhone}>继续绑定</button>\n </div>\n </div>\n )\n }\n}\n\nexport default ConfirmPhone;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/activity/treasure-box/common/createSuccess/index.js","components/activity/treasure-box/myTreasure/team.js","components/activity/treasure-box/myTreasure/prize.js","components/activity/treasure-box/common/splitSuccess/index.js","components/activity/treasure-box/myTreasure/mask.js","components/activity/treasure-box/myTreasure/index.js","common/addressPopup/index.js","common/bindPhone/index.js","common/confirmPhone/index.js"],"names":["common_createSuccess","props","console","log","_props$data","data","_props$data$team_num","team_num","_props$data$lack_memb","lack_member","_props$data$member","member","handleToInvite","members","Array","fill","react_default","a","createElement","className","map","item","index","_member","key","src","alt","type","onClick","TreasureTeam","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","initMemberInfo","params","arguments","length","undefined","_this$props","userInfo","arr","JSON","stringify","len","push","setState","team","assign","currentMember","uid","filter","computedClass","id","is_open","state","classnames","active","computedBg","val","backgroundImage","concat","toCheckPrize","_this$state$team","_this$state$team$memb","nextProps","oldData","newData","_this2","_this$state","_this$state$team2","is_captain","status","treasure_code","_this$state$team2$mem","_this$props2","toSplitTreasure","children","data-skip","style","head_img","data-layout","Fragment","getParam","href","data-direction","prize_name","Component","myTreasure_prize","bind_phone","bind_address","prize_type","handleToBindPhone","handleToBindAddress","toComposeCoupon","toUseCoupon","toCourseList","toFecthMoney","SplitSuccess","continueSplitTreasure","ids","successSplitTreasure","http","post","API","home","then","res","_res$data","code","setTimeout","_this$props2$data","_this$props2$data$mem","prize_img","avatar","prize","Root","document","querySelector","Mask","el","appendChild","removeChild","visible","handleToHide","ReactDOM","createPortal","MyTreasure","connect","_ref","country","user","popupInstance","initPrizeName","fetchCurrentTeamId","prizeName","judgeIsHaveId","owner_uid","isShowBindPhone","from","isPhone","handleToConfirmPhone","bindInfo","handleToHideWindow","confirmInfo","isConfirm","successBindPhone","teams","splitInfo","teamId","showSuccessSplit","prize_data","initNoSplitInfo","isSplit","isAddress","successBindAddress","_this$state2","fetchMyTreasure","get","_res$data2","rule","isArray","isEmpty","captain_uid","fetchActivityStatus","_res$data3","Number","activity_stage","history","treasure_stage","startCountDown","isEnd","treasureTime","treasure_stop_date","seconds","timer","clearInterval","setInterval","window","location","toOrganizeTeam","_this$props$userInfo$","_res$data4","isCreate","createInfo","SendMessageToApp","param","title","nextProp","_this$state3","_this$state3$splitInf","_this$state3$confirmI","_this$state3$confirmI2","_this$state3$confirmI3","browser","isAndroidApp","isIOSApp","common","arrow","myTreasure_team","splitInstance","myTreasure_mask","common_splitSuccess","bindPhone","hideBindPhone","desc","confirmPhone","handleToCancle","addressPopup","skip","tip","dangerouslySetInnerHTML","__html","AddressPopup","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","fetchUserAddress","addressInfo","msg","name","phone","address","isLoading","handleToSubmit","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","act_type","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","_this$props$skip","react__WEBPACK_IMPORTED_MODULE_8___default","formik__WEBPACK_IMPORTED_MODULE_10__","initialValues","validate","errors","test","validateOnBlur","validateOnChange","onSubmit","values","render","_ref2","color","_ref3","field","placeholder","_ref4","_ref5","data-status","BindPhone","captchaInstance","initCountryInfo","toFetchCountryNum","getCaptchaInstance","instance","onVerify","err","handleToSend","tel","isFirst","isTimer","_this$state$country$n","num","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","refresh","area_code","phone_num","errno","toBindPhone","_this$state2$accountI","accountInfo","_this$state2$country$","mobile","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","is_valid","tip_info","_this$props3","_this$props3$skip","formik__WEBPACK_IMPORTED_MODULE_9__","setStatus","setSubmitting","_ref4$values","data-type","_common_Captcha__WEBPACK_IMPORTED_MODULE_11__","getInstance","_ref6","ConfirmPhone","continueBindPhone","_this$props2$bindInfo","_this$props2$skip","data-plat"],"mappings":"iVAGeA,WAAA,SAACC,GACdC,QAAQC,IAAIF,GADY,IAAAG,EASpBH,EANFI,KAHsBC,EAAAF,EAIpBG,gBAJoB,IAAAD,EAIT,EAJSA,EAAAE,EAAAJ,EAKpBK,mBALoB,IAAAD,EAKN,EALMA,EAAAE,EAAAN,EAMpBO,cANoB,IAAAD,EAMX,GANWA,EAQtBE,EACEX,EADFW,eAEIC,EAAU,IAAIC,MAAM,GAAGC,KAAK,IAClC,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,MAAIC,UAAU,uBAAd,4BACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,qBACVH,EAAAC,EAAAC,cAAA,YAAOX,GADV,kCACkCS,EAAAC,EAAAC,cAAA,YAAOT,GADzC,iEAGAO,EAAAC,EAAAC,cAAA,KAAGC,UAAU,uBACbH,EAAAC,EAAAC,cAAA,MAAIC,UAAU,gCAEVN,EAAQO,IAAI,SAACC,EAAMC,GACjB,IAAMC,EAAUZ,EAAOW,GACvB,OACEN,EAAAC,EAAAC,cAAA,MAAIC,UAAU,cAAcK,IAAKF,GAE7BC,GAAWA,EAAO,YAAkBP,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBAAf,gBAEtCH,EAAAC,EAAAC,cAAA,OACEC,UAAU,sBACVM,IACEF,EACIA,EAAO,SACP,0FAENG,IAAI,SAMhBV,EAAAC,EAAAC,cAAA,UAAQS,KAAM,SAAUR,UAAU,uBAAuBS,QAAShB,GAAlE,yFC4ISiB,cAhLb,SAAAA,EAAY5B,GAAO,IAAA6B,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAJ,IACjBC,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAF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/js/treasure-box-mybox.30325f1c.chunk.js","sourcesContent":["import React from 'react';\nimport './index.scss';\n\nexport default (props) => {\n console.log(props);\n const { \n data: {\n team_num = 1,\n lack_member = 4,\n member = [],\n },\n handleToInvite\n } = props;\n const members = new Array(5).fill({});\n return (\n <div className=\"team-success\">\n <h2 className=\"team-success__title\">创建成功</h2>\n <p className=\"team-success__tip\">\n {<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~\n </p>\n <i className=\"team-success__icon\"></i>\n <ul className='team-success__member members'>\n {\n members.map((item, index) => {\n const _member = member[index]\n return (\n <li className=\"member-item\" key={index}>\n {\n _member && _member['is_captain'] && <sup className=\"member-item__captain\">队长</sup>\n }\n <img\n className=\"member-item__avatar\"\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n );\n })\n }\n </ul>\n <button type={'button'} className=\"team-success__button\" onClick={handleToInvite}>邀请好友加入队伍</button>\n </div>\n )\n}","import React, { Component } from 'react';\nimport classnames from 'classnames';\nimport { Link } from 'react-router-dom';\nimport './team.scss';\nimport { getParam } from \"@/utils\"\n\nclass TreasureTeam extends Component {\n constructor(props) {\n super(props);\n this.state = {\n team: {},\n currentMember: {}\n };\n }\n\n componentDidMount() {\n this.initMemberInfo();\n }\n\n componentWillReceiveProps(nextProps) {\n const { data: oldData } = this.props;\n const { data: newData } = nextProps;\n if(newData.is_open != oldData.is_open) {\n this.initMemberInfo(newData);\n }\n }\n\n initMemberInfo = (params = {}) => {\n const { data, userInfo } = this.props;\n const arr = JSON.stringify(params) !== '{}'? params: data;\n let member = arr.member;\n let len = member.length - 5;\n for(; len < 0; len++) {\n member.push({});\n }\n this.setState({\n team: Object.assign({}, arr, {\n member\n }),\n currentMember: userInfo.uid? member.filter(item => item.uid == userInfo.uid)[0] : {}\n });\n }\n\n computedClass = (id) => {\n const { data: { is_open } } = this.props;\n const { currentMember } = this.state;\n return classnames(\n 'team-member__item',\n {\n 'active': id === currentMember.uid && is_open,\n }\n );\n }\n\n computedBg = (val) => {\n return val? {\n backgroundImage: `url(${val})`\n } : {};\n }\n\n // 查看队友的奖品,条件:宝箱已拆\n toCheckPrize = (id) => {\n const { team: { is_open, member = []} } = this.state;\n if(is_open) {\n const data = member.filter(item => item.uid === id);\n this.setState({\n currentMember: data[0]\n });\n }\n }\n\n render() {\n const {\n team: {\n is_captain,\n status,\n team_num,\n lack_member,\n is_open,\n treasure_code,\n member = [],\n },\n currentMember\n } = this.state;\n const {\n toSplitTreasure,\n userInfo,\n children\n } = this.props;\n return (\n <div className=\"team-container\" data-skip=\"team\">\n {\n !is_captain &&\n <i className=\"team-friend\">友</i>\n }\n\n {/* 组队状态 */}\n {\n status === 1\n ? <i className=\"team-status\">组队中..</i>\n : <i className=\"team-decorate\"></i>\n }\n\n {/* 队伍类型 */}\n {\n is_captain\n ? <h2 className=\"team-title\">{team_num}号队伍</h2>\n : <h2 className=\"team-title\">好友队伍</h2>\n }\n\n\n {/* 队员情况 */}\n {\n status === 1\n ? <p className=\"team-desc\">还差{lack_member}名队员即可获得宝箱哦~</p>\n : <p className=\"team-desc\">组队成功</p>\n }\n <div className=\"team-member\">\n {\n member.map((item, index) => (\n <div\n className={this.computedClass(item.uid)}\n onClick={() => this.toCheckPrize(item.uid)}\n key={index}\n style={this.computedBg(item.head_img)}\n >\n {\n item.is_captain &&\n <span className=\"team-member__captain\">队长</span>\n }\n </div>\n ))\n }\n </div>\n <div className=\"team-footer\" data-layout={is_open? 'column': 'row'}>\n {/* 队伍未满 */}\n {\n status === 1 &&\n <>\n {\n getParam('version')\n ? is_captain\n ? <a className=\"team-button\" href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1&version=${getParam('version')}`}>继续邀请队友</a>\n : <a className=\"team-button\" href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=2&version=${getParam('version')}`}>帮好友完成组队</a>\n : is_captain\n ? <a className=\"team-button\" href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1`}>继续邀请队友</a>\n : <a className=\"team-button\" href={`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=2`}>帮好友完成组队</a>\n }\n </>\n }\n\n {/* 可拆状态 */}\n {\n (status === 2 && !is_open) &&\n <>\n <span className=\"team-icon\" data-direction=\"left\"></span>\n <span className=\"team-button--split\" onClick={toSplitTreasure}></span>\n <span className=\"team-icon\" data-direction=\"right\"></span>\n </>\n }\n\n {/* 已拆状态 */}\n {\n (status === 2 && is_open) &&\n <>\n {\n currentMember.prize_name\n ? <p className=\"team-prize\">{currentMember.prize_name}</p>\n : <p className=\"team-prize\">尚未开宝箱</p>\n }\n {\n currentMember.uid == userInfo.uid\n ? children\n : null\n }\n </>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default TreasureTeam;\n","import React from 'react';\nimport './prize.scss';\n\nexport default (props) => {\n const { \n data: {\n bind_phone, \n bind_address, \n prize_type,\n },\n handleToBindPhone,\n handleToBindAddress,\n toComposeCoupon,\n toUseCoupon,\n toCourseList,\n toFecthMoney,\n } = props;\n return (\n <>\n {/* 第一:是否需要绑定手机号 */}\n {\n bind_phone &&\n <a className=\"team-result\" onClick={handleToBindPhone}>\n <span>绑定手机号</span>\n </a>\n }\n\n {/* 第二:是否需要填写地址 */}\n {\n (!bind_phone && bind_address) &&\n <a className=\"team-result\" onClick={handleToBindAddress}>\n <span>查看/修改收货信息</span>\n </a>\n }\n\n {/* 第三:奖品,实物 */}\n {\n (!bind_phone && !bind_address && prize_type === 1) &&\n <a className=\"team-result\" onClick={handleToBindAddress}>\n <span>查看/修改收货信息</span>\n </a>\n }\n\n {/* 第三:奖品,代金券碎片 */}\n {\n (!bind_phone && !bind_address && prize_type === 6) &&\n <a className=\"team-result\" onClick={toComposeCoupon}>\n 可合成代金券在购课时使用,\n <span>去合成</span>\n </a>\n }\n\n {/* 第三:奖品,指定课程代金券 */}\n {\n (!bind_phone && !bind_address && prize_type === 3) &&\n <a className=\"team-result\" onClick={toUseCoupon}>\n 已发放至您的账户,\n <span>去使用</span>\n </a>\n }\n\n {/* 第三:奖品,通用课程代金券 */}\n {\n (!bind_phone && !bind_address && prize_type === 4) &&\n <a className=\"team-result\" onClick={toCourseList}>\n 已发放至您的账户,\n <span>去使用</span>\n </a>\n }\n\n {/* 第三:奖品,现金红包 */}\n {\n (!bind_phone && !bind_address && prize_type === 7) &&\n <a className=\"team-result\" onClick={toFecthMoney}>\n 已存入您的账户,\n <span>去提现</span>\n </a>\n }\n\n {/* 第三:奖品,线上课程 */}\n {\n (!bind_phone && !bind_address && prize_type === 2) &&\n <a className=\"team-result\">已发放至您的账户</a>\n }\n\n {/* 第三:奖品,任意线上课程兑换券 */}\n {\n (!bind_phone && !bind_address && prize_type === 5) &&\n <a className=\"team-result\">无法领取请添加微信:julyedukefu10\n </a>\n }\n </>\n )\n}","import React, { Component } from 'react';\nimport { http } from '@/utils';\nimport './index.scss';\n\nclass SplitSuccess extends Component {\n\n computedBg = (val) => {\n return val? {\n backgroundImage: `url(${val})`\n } : {};\n }\n\n continueSplitTreasure = () => {\n const { ids, successSplitTreasure, handleToBindPhone, handleToBindAddress } = this.props;\n const params = ids[0];\n http.post(`${API.home}/sys/split_treasure`, params).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n successSplitTreasure(data);\n if(data.bind_phone) {\n setTimeout(() => {\n handleToBindPhone(data.id);\n }, 500);\n }else if(data.bind_address) {\n setTimeout(() => {\n handleToBindAddress(data.id, data.prize_name);\n }, 500);\n }\n }else if(code === 12000) {\n // 请先绑定手机号再拆宝箱\n handleToBindPhone();\n }else if(code === 12001) {\n // 请先填写收货地址再拆宝箱\n handleToBindAddress();\n }\n });\n }\n\n render() {\n const { \n ids,\n data: {\n member = [],\n prize_img,\n prize_name,\n },\n handleToInvite,\n children,\n } = this.props;\n return (\n <div data-skip=\"split\">\n <h2 className=\"split-success__title\">恭喜你获得</h2>\n <div className=\"split-success__image\">\n <img src={prize_img} alt=\"\"/>\n </div>\n <p className=\"split-success__prize\">{prize_name}</p>\n\n {children}\n\n <div className=\"split-success__member\">\n {\n member.map((item, index) => (\n <div className=\"member-item\" key={index}>\n <span className=\"member-item__avatar\" style={this.computedBg(item.avatar)}>\n {\n item.is_captain && <i className=\"member-item__captain\">队长</i>\n }\n </span>\n {\n item.prize\n ? <span className=\"member-item__prize\">{item.prize}</span>\n : <span className=\"member-item__prize\">尚未开宝箱</span>\n }\n </div>\n ))\n }\n </div>\n {\n ids.length > 0\n ? <button className=\"split-success__jump\" onClick={this.continueSplitTreasure}>继续开宝箱</button>\n : <button className=\"split-success__jump\" onClick={handleToInvite}>继续组队开宝箱</button>\n }\n </div>\n );\n }\n}\n\nexport default SplitSuccess;","import React, { Component } from 'react';\nimport ReactDOM from 'react-dom';\nimport classnames from 'classnames';\nimport './mask.scss';\n\nconst Root = document.querySelector('body');\n\nclass Mask extends Component {\n\n constructor(props) {\n super(props);\n if(!this.el) {\n this.el = document.createElement('div');\n }\n }\n\n componentDidMount() {\n Root.appendChild(this.el);\n }\n\n componentWillUnmount() {\n Root.removeChild(this.el);\n }\n\n render() {\n const { visible, handleToHide, className } = this.props;\n if(visible) {\n return ReactDOM.createPortal(\n (\n <div className=\"mask\">\n <div className={classnames(\"mask-content\", className)}>\n {this.props.children}\n </div>\n <div className=\"mask-footer\">\n <i className=\"mask-button__close\" onClick={handleToHide}></i>\n </div>\n </div>\n ),\n this.el\n );\n }else {\n return null;\n }\n }\n}\n\nexport default Mask;","import React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport { HeaderBar } from '@common'\nimport AddressPopup from '@common/addressPopup/index'\nimport BindPhone from '@common/bindPhone/index'\nimport ConfirmPhone from '@common/confirmPhone/index'\nimport CreateSuccess from './../common/createSuccess/index'\nimport TreasureTeam from './team'\nimport PrizeStatus from './prize'\nimport SplitSuccess from './../common/splitSuccess/index'\nimport { http, getParam, SendMessageToApp, browser } from '@/utils'\nimport Mask from './mask'\nimport './index.scss'\n\n@connect(({country, user}) => ({\n country,\n userInfo: user.data\n}))\nclass MyTreasure extends Component {\n popupInstance = null\n\n constructor(props) {\n super(props)\n this.state = {\n isEnd: false,\n isEmpty: false,\n seconds: 3,\n teams: [],\n ids: [], // 未拆宝箱统计\n bindInfo: {}, // 绑定手机号冲突信息\n isPhone: false,\n isAddress: false,\n isConfirm: false,\n confirmInfo: {},\n isSplit: false,\n isCreate: false,\n createInfo: {},\n prizeName: '', // 当前商品的名字\n treasureTime: '', // 宝箱活动结束时间\n }\n }\n\n componentDidMount() {\n this.fetchMyTreasure()\n this.fetchActivityStatus()\n document.title = 'AI充电季,开宝箱免费学AI爆款好课,300本程序员必备纸质书免费送,AI进阶宝典来就送!-七月在线';\n }\n\n componentWillReceiveProps(nextProp) {\n const {history} = this.props\n const {userInfo} = nextProp\n if (!userInfo.uid) {\n history.push('/passport')\n }else {\n this.fetchMyTreasure();\n }\n }\n\n // 页面加载时,初始化当前需要绑定手机号的奖品名字\n initPrizeName = (params) => {\n const key = this.fetchCurrentTeamId(params)\n const data = params.filter(item => item.id == key)\n if (data.length > 0) {\n this.setState({\n prizeName: data[0]['prize_name']\n })\n }\n }\n\n // 页面加载时,是否需要拆宝箱\n judgeIsHaveId = (data) => {\n const id = getParam('id')\n if (id) {\n const newData = data.filter(item => item.id == id)\n if (newData.length > 0) {\n const params = {\n team_num: newData[0]['team_num'],\n owner_uid: newData[0]['captain_uid']\n }\n this.toSplitTreasure(params)\n }\n }\n }\n\n // 获取当前需要绑定手机的队伍id,当拆到需要绑定手机号/地址的宝箱时,如果不进行绑定则无法拆下一个\n fetchCurrentTeamId = (data = []) => {\n const arr = data.filter(item => item.is_open && (item.bind_phone || item.bind_address))\n if (arr.length > 0) {\n return arr[0]['id']\n } else {\n return ''\n }\n }\n\n // 页面加载时,是否是从选择区号页面过来的\n // TODO,当同时展示拆宝箱成功弹窗和绑定手机号弹窗时,选择区号返回时未展示拆宝箱成功弹窗(和产品确认,后续优化)\n isShowBindPhone = (data) => {\n const {country} = this.props\n if (country.from) {\n const id = this.fetchCurrentTeamId(data)\n this.handleToBindPhone(id)\n }\n }\n\n // 绑定手机号--展示\n handleToBindPhone = (id) => {\n this.setState({\n isPhone: true,\n })\n }\n\n // 绑定手机号--确认\n handleToConfirmPhone = (params, bindInfo) => {\n this.handleToHideWindow('isPhone')\n this.setState({\n confirmInfo: {\n params,\n bindInfo,\n },\n isConfirm: true,\n })\n }\n\n // 绑定手机号--成功\n successBindPhone = () => {\n this.setState({\n isPhone: false,\n isConfirm: false,\n })\n const {teams, splitInfo} = this.state\n const teamId = this.fetchCurrentTeamId(teams)\n const data = teams.map(item => {\n if (item.id == teamId) {\n if (item.bind_address) {\n this.handleToBindAddress()\n }\n return Object.assign({}, item, {\n bind_phone: false,\n })\n }\n return item\n })\n this.setState({\n teams: data,\n splitInfo: Object.assign({}, splitInfo, {\n bind_phone: false\n })\n })\n }\n\n // 拆宝箱--拆\n toSplitTreasure = (params) => {\n http.post(`${API.home}/sys/split_treasure`, params).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n // 拆宝箱弹窗--成功\n this.showSuccessSplit(data)\n\n // 更新队伍状态\n this.successSplitTreasure(data)\n if (data.bind_phone) {\n setTimeout(() => {\n this.handleToBindPhone(data.id)\n }, 500)\n } else if (data.bind_address) {\n setTimeout(() => {\n this.handleToBindAddress(data.id, data.prize_name)\n }, 500)\n }\n } else if (code === 12000) {\n // 绑定手机号\n this.handleToBindPhone()\n } else if (code === 12001) {\n // 绑定地址\n this.handleToBindAddress()\n }\n })\n }\n\n // 拆宝箱--成功,更新数据\n successSplitTreasure = (params) => {\n const {userInfo} = this.props\n const {teams} = this.state\n const data = teams.map(item => {\n if (item.id == params.id) {\n return Object.assign({}, item, {\n bind_phone: params.bind_phone,\n bind_address: params.bind_address,\n is_open: true,\n prize_type: params.prize_type,\n prize_data: params.prize_data,\n member: item.member.map(val => {\n if (val.uid == userInfo.uid) {\n return Object.assign({}, val, {\n is_open: true,\n prize_name: params.prize_name\n })\n }\n return val\n })\n })\n } else {\n return item\n }\n })\n this.initNoSplitInfo(data)\n this.setState({\n teams: data,\n splitInfo: params,\n prizeName: params.prize_name\n })\n }\n\n // 拆宝箱--成功,展示弹窗\n showSuccessSplit = (data) => {\n this.setState({\n isSplit: true,\n splitInfo: data\n })\n }\n\n // 绑定地址--展示\n handleToBindAddress = (id, prizeName = '') => {\n if (id) {\n if(prizeName) {\n this.setState({\n prizeName\n })\n }else {\n const {teams} = this.state\n const data = teams.filter(item => item.id == id)\n if (data.length > 0) {\n this.setState({\n prizeName: data[0]['prize_name']\n })\n }\n }\n }\n this.setState({\n isAddress: true\n })\n }\n\n // 绑定地址--成功\n successBindAddress = () => {\n this.setState({\n isAddress: false,\n })\n const {teams, splitInfo} = this.state\n const teamId = this.fetchCurrentTeamId(teams)\n const data = teams.map(item => {\n if (item.id == teamId) {\n return Object.assign({}, item, {\n bind_address: false,\n })\n }\n return item\n })\n this.setState({\n teams: data,\n splitInfo: Object.assign({}, splitInfo, {\n bind_address: false\n })\n })\n }\n\n // 获取我的宝箱信息\n fetchMyTreasure = () => {\n http.get(`${API.home}/sys/treasure/my`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.setState({\n rule: data.rule\n })\n if (Array.isArray(data.team) && data.team.length > 0) {\n this.initNoSplitInfo(data.team)\n this.judgeIsHaveId(data.team)\n this.isShowBindPhone(data.team)\n this.initPrizeName(data.team)\n this.setState({\n isEmpty: false,\n teams: data.team,\n })\n } else {\n this.setState({\n isEmpty: true,\n })\n }\n }\n })\n }\n\n // 统计未拆的宝箱信息\n initNoSplitInfo = (data = []) => {\n if (data.length > 0) {\n this.setState({\n ids: data.filter(item => !item.is_open && item.status === 2).map(val => {\n return {\n team_num: val.team_num,\n owner_uid: val.captain_uid\n }\n })\n })\n }\n }\n\n // 获取宝箱活动状态\n fetchActivityStatus = () => {\n http.get(`${API.home}/activity/stage`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n if(Number(data.activity_stage) === 0) {\n this.props.history.push('/');\n return;\n }\n // treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内\n if (data.treasure_stage === 0) {\n this.startCountDown()\n }\n this.setState({\n isEnd: data.treasure_stage === 0,\n treasureTime: data.treasure_stop_date\n })\n }\n })\n }\n\n // 活动结束--倒计时\n startCountDown = () => {\n const {history} = this.props\n let {seconds} = this.state\n if (this.timer) {\n clearInterval(this.timer)\n }\n this.setState({\n seconds: seconds--\n })\n this.timer = setInterval(() => {\n this.setState({\n seconds: seconds--\n })\n if (seconds === 0) {\n this.setState({\n seconds: 0\n })\n clearInterval(this.timer)\n if (getParam('version')) {\n history.push(`/year/yearIndex?version=${getParam('version')}`)\n } else {\n history.push('/year/yearIndex')\n }\n }\n }, 1000)\n }\n\n // 邀请好友\n handleToInvite = (treasure_code) => {\n const {history} = this.props\n if (getParam('version')) {\n window.location.assign(`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1&version=${getParam('version')}`)\n } else {\n window.location.assign(`https://h5.julyedu.com/box/landing?treasure_code=${treasure_code}&origin=1`)\n }\n }\n\n // 组队开宝箱\n toOrganizeTeam = () => {\n const {history, userInfo: {uid = ''}} = this.props\n if (uid === '') {\n history.push('/passport')\n } else {\n http.get(`${API.home}/sys/treasure/createMyTeam`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n const teams = []\n teams[0] = data\n this.setState({\n isEmpty: false,\n teams,\n isCreate: true,\n createInfo: data\n })\n }\n })\n }\n }\n\n // 奖品,代金券碎片--合成\n toComposeCoupon = () => {\n const {history} = this.props\n if (getParam('version')) {\n SendMessageToApp(\"toCoupon\")\n } else {\n history.push('/coupons/my-patch')\n }\n }\n\n // 奖品,指定课程代金券--使用\n toUseCoupon = (id) => {\n const {history} = this.props\n if (getParam('version')) {\n SendMessageToApp(\"toCourse\", id)\n } else {\n history.push(`/detail?id=${id}`)\n }\n }\n\n // 第三:奖品,通用课程代金券--使用\n toCourseList = () => {\n const {history} = this.props\n if (getParam('version')) {\n SendMessageToApp('toQualityCourse')\n } else {\n history.push('/classify')\n }\n }\n\n // 第三:奖品,现金红包--提现\n toFecthMoney = () => {\n const {history} = this.props\n if (getParam('version')) {\n SendMessageToApp('toAccount')\n } else {\n history.push('/scholarship')\n }\n }\n\n // 弹窗--隐藏\n handleToHideWindow = (key) => {\n const param = {}\n param[key] = false\n this.setState(param)\n }\n\n render() {\n const {history, userInfo, country} = this.props\n const {\n isEnd,\n isEmpty,\n seconds,\n teams,\n ids,\n isPhone,\n isAddress,\n isConfirm,\n isSplit,\n splitInfo = {},\n confirmInfo: {\n params = {},\n bindInfo = {}\n },\n isCreate,\n createInfo,\n prizeName,\n rule,\n treasureTime,\n } = this.state\n return (\n <div data-skip=\"treasure\">\n {(!browser.isAndroidApp && !browser.isIOSApp) && <HeaderBar title=\"我的宝箱\" arrow={true}/>}\n {\n isEnd &&\n <div className=\"team-empty\">\n <p className=\"activity-end__desc\">\n 活动已结束<br/>\n {seconds}s后将自动返回首页\n </p>\n </div>\n }\n {\n (!isEnd && isEmpty) &&\n <div className=\"team-empty\">\n <i className=\"team-empty__icon\"></i>\n <p className=\"team-empty__desc\">您当前还没有宝箱哦~</p>\n <p className=\"team-empty__desc\">快去组队邀请好友一起开宝箱吧!</p>\n <button className=\"team-empty__button\" onClick={this.toOrganizeTeam}>组队开宝箱</button>\n </div>\n }\n {\n (!isEnd && !isEmpty && userInfo.uid) &&\n <div className=\"treasure-content\">\n {\n teams.map((item, index) => (\n <TreasureTeam\n data={item}\n key={index}\n userInfo={userInfo}\n history={history}\n splitInstance={this.splitInstance}\n toSplitTreasure={() => this.toSplitTreasure({\n team_num: item.team_num,\n owner_uid: item.captain_uid\n })}\n >\n <PrizeStatus\n data={{\n bind_phone: item.bind_phone,\n bind_address: item.bind_address,\n prize_type: item.prize_type,\n }}\n handleToBindPhone={this.handleToBindPhone}\n handleToBindAddress={() => this.handleToBindAddress(item.id)}\n toComposeCoupon={this.toComposeCoupon}\n toUseCoupon={() => this.toUseCoupon(item.prize_data)}\n toCourseList={this.toCourseList}\n toFecthMoney={this.toFecthMoney}\n />\n </TreasureTeam>\n ))\n }\n\n {/* 拆宝箱--弹窗,成功 */}\n <Mask visible={isSplit} handleToHide={() => this.handleToHideWindow('isSplit')}>\n <SplitSuccess\n ids={ids}\n data={splitInfo}\n handleToInvite={() => this.handleToInvite(splitInfo.treasure_code)}\n handleToBindPhone={this.handleToBindPhone}\n handleToBindAddress={this.handleToBindAddress}\n successSplitTreasure={this.successSplitTreasure}\n >\n <PrizeStatus\n data={splitInfo}\n handleToBindPhone={this.handleToBindPhone}\n handleToBindAddress={this.handleToBindAddress}\n toComposeCoupon={this.toComposeCoupon}\n toUseCoupon={() => this.toUseCoupon(splitInfo.prize_data)}\n toCourseList={this.toCourseList}\n toFecthMoney={this.toFecthMoney}\n />\n </SplitSuccess>\n </Mask>\n\n {/*绑定手机号--弹窗 */}\n <Mask visible={isPhone} className=\"popup-bind-phone\" handleToHide={() => this.handleToHideWindow('isPhone')}>\n <BindPhone\n history={history}\n country={country}\n hideBindPhone={() => this.handleToHideWindow('isPhone')}\n handleToConfirmPhone={this.handleToConfirmPhone}\n successBindPhone={this.successBindPhone}\n desc={\n <>\n <p className=\"phone-treasure__desc\">恭喜您获得 {prizeName}</p>\n <p className=\"phone-treasure__notice\">为了您的账户安全,请于{treasureTime}前绑定手机号,过期将失效</p>\n </>\n }\n />\n </Mask>\n\n {/* 绑定手机号--弹窗,确认 */}\n <Mask visible={isConfirm} handleToHide={() => this.handleToHideWindow('isConfirm')}>\n <ConfirmPhone\n data={params}\n bindInfo={bindInfo}\n handleToCancle={() => this.handleToHideWindow('isConfirm')}\n successBindPhone={this.successBindPhone}\n />\n </Mask>\n\n {/* 绑定地址--弹窗 */}\n <Mask visible={isAddress} className=\"popup-bind-address\" handleToHide={() => this.handleToHideWindow('isAddress')}>\n <AddressPopup\n skip=\"year\"\n tip={\n <>\n <p className=\"address-treasure__desc\">恭喜您获得 {prizeName}</p>\n <p className=\"address-treasure__notice\">请及时填写/确认收货信息,活动结束后统一邮寄</p>\n </>\n }\n successBindAddress={this.successBindAddress}\n />\n </Mask>\n\n {/* 组队成功 */}\n <Mask visible={isCreate} handleToHide={() => this.handleToHideWindow('isCreate')}>\n <CreateSuccess\n data={createInfo}\n handleToInvite={() => {\n this.handleToInvite(createInfo.treasure_code)\n this.handleToHideWindow('isCreate')\n }}\n />\n </Mask>\n </div>\n }\n {\n rule &&\n <>\n <div className=\"activity-rule__header\">\n <i className=\"activity-rule__decorate\"></i>\n <h2 className=\"activity-rule__title\">活动规则</h2>\n <i className=\"activity-rule__decorate\"></i>\n </div>\n <div className=\"activity-rule__body\" dangerouslySetInnerHTML={{__html: rule}}></div>\n </>\n }\n </div>\n )\n }\n}\n\nexport default MyTreasure\n","import React, { Component } from 'react';\nimport { http } from '@/utils';\nimport { Formik, Form, Field } from 'formik';\nimport { Toast } from \"antd-mobile\";\nimport './index.scss';\n\nclass AddressPopup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n isLoading: false,\n addressInfo: {\n name: '',\n phone: '',\n address: '',\n },\n }\n }\n\n componentDidMount() {\n this.fetchUserAddress();\n }\n\n // 获取收货信息\n fetchUserAddress = () => {\n const { addressInfo } = this.state;\n http.get(`${API.home}/sys/user_address_info`).then(res => {\n const {code, data, msg} = res.data;\n if (code === 200) {\n this.setState({\n addressInfo: Object.assign({}, addressInfo, {\n name: data.name,\n phone: data.phone,\n address: data.address,\n }),\n isLoading: true,\n });\n }\n });\n }\n\n handleToSubmit = (params = {}) => {\n const { successBindAddress } = this.props;\n http.post(`${API.home}/sys/update_address`, {\n act_type: 'treasure',\n ...params\n }).then(res => {\n const {code, msg} = res.data;\n if (code === 200) {\n successBindAddress();\n } else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { isLoading, addressInfo } = this.state;\n const {tip, prize, skip = 'default'} = this.props;\n return (\n <>\n {\n isLoading &&\n <Formik\n initialValues={{ \n ...addressInfo\n }}\n validate={({name, phone, address}) => {\n const errors = {};\n\n if (!name) {\n errors.name = '请输入收件人';\n }\n if(!/^1[3-9]\\d{9}$/.test(phone)) {\n errors.phone = '请填写正确格式的手机号';\n }\n if (!address) {\n errors.address = '请输入收货地址';\n }\n\n return errors;\n }}\n validateOnBlur={false}\n validateOnChange={false}\n onSubmit={(values) => {\n this.handleToSubmit(values);\n }}\n render={({errors}) => (\n <Form className=\"address-form\" data-skip={skip}>\n <h2 className=\"address-form__title\">收货信息</h2>\n {\n prize ? (\n <p className='address__prize'>\n 您抽中了\n <span style={{'color': '#FF4000'}}>{prize}</span>\n </p>\n ) : (null)\n }\n {\n tip ? (<div className=\"address-form__subtitle\">{tip}</div>) : (<p className=\"address-form__desc\">请及时填写收货信息,获得实物奖品后将第一时间为您邮寄</p>) \n }\n <Field \n name=\"name\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收件人\"\n />\n {\n errors.name &&\n <p className=\"address-form__tip\">{errors.name}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"phone\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"联系方式\"\n />\n {\n errors.phone &&\n <p className=\"address-form__tip\">{errors.phone}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"address\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收货地址\"\n />\n {\n errors.address &&\n <p className=\"address-form__tip\">{errors.address}</p>\n }\n </div>\n )}\n />\n <button \n className=\"address-form__submit\" \n data-status=\"do\"\n type=\"submit\"\n >提交</button>\n </Form>\n )}\n />\n }\n </>\n );\n }\n}\n\nexport default AddressPopup;","import React, { Component } from 'react';\nimport { Formik, Form, Field } from 'formik';\nimport { Toast } from 'antd-mobile';\nimport { isEmpty } from 'lodash';\nimport Captcha from '@/common/Captcha';\nimport { http, getParam } from '@/utils';\nimport './index.scss';\n\nclass BindPhone extends Component {\n captchaInstance = null;\n\n constructor(props) {\n super(props),\n this.state = {\n validate: '',\n seconds: 60,\n isFirst: true,\n timer: null,\n isTimer: false, // 是否开始倒计时\n accountInfo: {},\n bindInfo: {},\n country: {\n num: '86'\n }\n }\n }\n\n componentDidMount() {\n this.initCountryInfo();\n }\n\n initCountryInfo = () => {\n const { country } = this.props;\n this.setState({\n country\n });\n }\n\n toFetchCountryNum = () => {\n const { history, hideBindPhone } = this.props;\n hideBindPhone();\n history.push('/country?from=bind');\n }\n\n getCaptchaInstance = instance => {\n this.captchaInstance = instance;\n }\n\n onVerify = (err, data) => {\n if (err) {\n console.log(err);\n } else {\n this.setState({\n validate: data.validate\n });\n }\n }\n\n // 获取手机号验证码\n handleToSend = ({tel, code}) => {\n let { validate, seconds, isFirst, isTimer, country: {num = '86'} } = this.state;\n if(validate) {\n if (!isFirst) {\n Toast.info('请重新进行滑块验证', 2, null, false);\n this.captchaInstance.refresh();\n this.setState({\n isFirst: true\n });\n return\n }\n if(!isTimer) {\n if (!tel) {\n Toast.info('手机号码不能为空', 2, null, false);\n }else if(!/^\\d+$/.test(tel)) {\n Toast.info('请输入正确格式的手机号码', 2, null, false);\n }else {\n\n // 获取验证码\n http.post(\n `${API['passport-api']}/m/personal/bindPhoneSendCode`,\n {\n area_code: `00${num}`,\n phone_num: tel\n }\n ).then(res => {\n const { errno, msg } = res.data;\n if(errno === 200) {\n Toast.info('验证码发送成功', 2, null, false);\n\n // 倒计时\n this.timer = window.setInterval(() => {\n if (seconds <= 0) {\n window.clearInterval(this.timer);\n this.setState({\n isTimer: false,\n seconds: 60\n });\n }else {\n this.setState({\n isTimer: true,\n seconds: --seconds\n });\n }\n }, 1000);\n\n // 滑块\n this.setState({\n isFirst: false\n })\n }else {\n Toast.info(msg, 2, null, false);\n }\n })\n }\n }\n }\n return false;\n }\n\n // 绑定手机\n toBindPhone = () => {\n const { accountInfo: { tel, code }, country: {num = '86'} } = this.state;\n const { handleToConfirmPhone, successBindPhone } = this.props;\n const params = {\n area_code: `00${num}`,\n mobile: tel,\n code: code,\n act_type: 'treasure', // 宝箱\n };\n http.post(\n `${API.home}/sys/v2/user/bindMobile`,\n { \n ...params,\n type: 1, // 1:绑定,2:修改绑定\n is_valid: 1, // is_valid\t是否验证 1:验证(默认),0不验证\n }\n ).then(res => {\n const { code, data, msg } = res.data;\n if(code === 200 ) {\n if(data.tip_info) {\n handleToConfirmPhone(params, data.tip_info);\n }else {\n successBindPhone();\n }\n }else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { desc, skip = 'year' } = this.props;\n const { country, validate, isTimer, seconds } = this.state;\n return (\n <Formik\n initialValues={{\n tel: '',\n code: ''\n }}\n validate={({tel, code}) => {\n const errors = {};\n\n // if (!validateTel(tel)) {\n if(!/^\\d+$/.test(tel)) {\n errors.tel = '请填写正确格式的手机号';\n }\n if (!/[0-9]{6}/.test(code)) {\n errors.code = '请输入验证码';\n }\n\n return errors;\n }}\n onSubmit={(values, { setStatus, setSubmitting }) => {\n this.setState({\n accountInfo: {\n ...values\n }\n });\n this.toBindPhone();\n }}\n render={({values: {tel, code}, errors}) => (\n <Form className=\"popup-form\" data-skip={skip}>\n <h2 className=\"popup-form__title\">绑定手机号</h2>\n {\n desc &&\n <div className=\"poup-form__desc\">{desc}</div>\n }\n <div className=\"popup-form__item\">\n <a className=\"popup-form__button--num\" onClick={this.toFetchCountryNum}>\n +{country.num}\n <i className=\"iconfont iconiconfront-69\"/>\n </a>\n <Field\n name=\"tel\"\n render={({field}) => {\n return (\n <input\n {...field}\n className=\"popup-form__ipt\"\n data-type=\"tel\"\n type=\"text\"\n placeholder=\"请填写手机号\"\n />\n );\n }}\n />\n </div>\n <Captcha\n getInstance={this.getCaptchaInstance}\n onVerify={this.onVerify}\n />\n <div className=\"popup-form__item\">\n <Field\n name=\"code\"\n render={({field}) => {\n return (\n <input\n {...field}\n className=\"popup-form__ipt popup-form__ipt--left\"\n type=\"text\"\n placeholder=\"输入验证码\"\n />\n );\n }}\n />\n <button\n className=\"popup-form__button--code\"\n data-status={(validate && !isTimer)? 'do': ''}\n type=\"button\"\n onClick={() => this.handleToSend({tel, code})}\n >\n {\n isTimer? `重新发送${seconds}s` : '发送验证码'\n }\n </button>\n </div>\n <button\n className=\"popup-form__button--bundle\"\n data-status={(tel && code && isEmpty(errors))? 'do': 'done'}\n type=\"submit\"\n >\n 完成绑定\n </button>\n </Form>\n )}\n />\n )\n }\n}\n\nexport default BindPhone;","import React, { Component } from 'react';\nimport { Toast } from 'antd-mobile';\nimport { http } from '@/utils';\nimport './index.scss';\n\nclass ConfirmPhone extends Component {\n continueBindPhone = () => {\n const { data, successBindPhone } = this.props;\n http.post(\n `${API.home}/sys/v2/user/bindMobile`,\n { \n ...data,\n type: 1, // 1:绑定,2:修改绑定\n is_valid: 0, // is_valid\t是否验证 1:验证(默认),0不验证\n }\n ).then(res => {\n const { code, msg } = res.data;\n if(code === 200 ) {\n successBindPhone();\n }else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { \n bindInfo = { }, \n desc, \n skip = 'year', \n handleToCancle \n } = this.props;\n return (\n <div className=\"popup-bind\" data-skip={skip}>\n <h2 className=\"popup-bind__title\">绑定手机号</h2>\n {\n desc\n ? <div className=\"popup-bind__desc\">{desc}</div>\n : <p className=\"popup-bind__desc\">该手机号已绑定到以下账号,继续绑定将解除以下绑定状态</p>\n }\n <ul className=\"popup-bind__list\">\n {\n bindInfo['email'] &&\n <li className=\"popup-bind__account\">\n\n {/* 邮箱 */}\n <i className=\"popup-bind__icon\" data-plat=\"mail\"></i>\n <p className=\"popup-bind__account--name\">{bindInfo['email']}</p>\n </li>\n }\n {\n bindInfo['wechat_nickname'] &&\n <li className=\"popup-bind__account\">\n\n {/* wechat */}\n <i className=\"popup-bind__icon\" data-plat=\"wachat\"></i>\n <p className=\"popup-bind__account--name\">{bindInfo['wechat_nickname']}</p>\n </li>\n }\n {\n bindInfo['qq_nickname'] &&\n <li className=\"popup-bind__account\">\n\n {/* qq */}\n <i className=\"popup-bind__icon\" data-plat=\"qq\"></i>\n <p className=\"popup-bind__account--name\">{bindInfo['qq_nickname']}</p>\n </li>\n }\n {\n bindInfo['sina_nickname'] &&\n <li className=\"popup-bind__account\">\n\n {/* 微博 */}\n <i className=\"popup-bind__icon\" data-plat=\"sina\"></i>\n <p className=\"popup-bind__account--name\">{bindInfo['sina_nickname']}</p>\n </li>\n }\n </ul>\n <div className=\"popup-bind__footer\">\n <button\n className=\"popup-bind__button popup-bind__button--cancle\"\n onClick={handleToCancle}>取消</button>\n <button\n className=\"popup-bind__button popup-bind__button--confirm\"\n onClick={this.continueBindPhone}>继续绑定</button>\n </div>\n </div>\n )\n }\n}\n\nexport default ConfirmPhone;"],"sourceRoot":""}
\ No newline at end of file
......@@ -24,16 +24,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/3.4a2be69d.chunk.js"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "f2949abb34e07b68608a",
"url": "/mrstatic/js/4.8874c5f6.chunk.js"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "247e8d2296e2614ded15",
......@@ -88,8 +88,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Examination.003c1591.chunk.js"
},
{
"revision": "64fd0b167457064e12ff8a6afcd31720",
"url": "/mrstatic/media/iconfont.64fd0b16.eot"
"revision": "99b2454970e48c8bb00578cdca15b3d2",
"url": "/mrstatic/media/iconfont.99b24549.ttf"
},
{
"revision": "b3dbf1c1f04ce6daf5d5",
......@@ -100,8 +100,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/MyEdit.9defb510.chunk.js"
},
{
"revision": "99b2454970e48c8bb00578cdca15b3d2",
"url": "/mrstatic/media/iconfont.99b24549.ttf"
"revision": "64fd0b167457064e12ff8a6afcd31720",
"url": "/mrstatic/media/iconfont.64fd0b16.eot"
},
{
"revision": "df08c74da10f1f578bdf",
......@@ -236,8 +236,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/48.1ae71ff2.chunk.js"
},
{
"revision": "3489b7514a36f8fd4bb6",
"url": "/mrstatic/js/newyear-2019-landing.a9a5b25d.chunk.js"
"revision": "e2b8cbc54efbea175eb1",
"url": "/mrstatic/js/newyear-2019-landing.0a331da1.chunk.js"
},
{
"revision": "0c92200a7bb344715069",
......@@ -272,20 +272,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/python-class.f9f16c0a.chunk.js"
},
{
"revision": "f8ae1c1cf5d158fecb3f",
"url": "/mrstatic/js/runtime~main.e3598684.js"
"revision": "622406565c02b59d9aba",
"url": "/mrstatic/js/runtime~main.8bde8b2d.js"
},
{
"revision": "3a9b0504d70b4439e7af",
"url": "/mrstatic/js/treasure-box-mybox.30325f1c.chunk.js"
"revision": "f7db657f30bb5ebab06a",
"url": "/mrstatic/js/treasure-box-mybox.072605c6.chunk.js"
},
{
"revision": "0723110b47af657e05ae",
"url": "/mrstatic/js/search.20bbab86.chunk.js"
},
{
"revision": "7f579ca2dcbe4b02baa1",
"url": "/mrstatic/js/treasure-box-home.800f0ead.chunk.js"
"revision": "2f4d34c014bdd1301329",
"url": "/mrstatic/js/treasure-box-home.a88198e8.chunk.js"
},
{
"revision": "9d08c50abb19b4eb4f4c",
......@@ -316,7 +316,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/togroup.f08bc5f3.chunk.css"
},
{
"revision": "7f579ca2dcbe4b02baa1",
"revision": "2f4d34c014bdd1301329",
"url": "/mrstatic/css/treasure-box-home.d7bb8063.chunk.css"
},
{
......@@ -324,7 +324,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/video.da74d427.chunk.css"
},
{
"revision": "3a9b0504d70b4439e7af",
"revision": "f7db657f30bb5ebab06a",
"url": "/mrstatic/css/treasure-box-mybox.b5f40384.chunk.css"
},
{
......@@ -364,7 +364,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/48.ae54e35c.chunk.css"
},
{
"revision": "3489b7514a36f8fd4bb6",
"revision": "e2b8cbc54efbea175eb1",
"url": "/mrstatic/css/newyear-2019-landing.57b46b09.chunk.css"
},
{
......@@ -528,7 +528,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/1.037b510f.chunk.css"
},
{
"revision": "38c3a02a23115054cf0a047f39b5e0a3",
"revision": "47c62b10a0c26ec7dbf0251606539cc7",
"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.b1fac8804d278cd121ff3b50057c6005.js"
"/precache-manifest.ff8a6686704c273a4d9eca4b6101d242.js"
);
workbox.clientsClaim();
......
......@@ -89,7 +89,7 @@ class Landing extends Component {
http.get(`${API.home}/activity/stage`).then(res => {
const {code, data, msg} = res.data
if (code === 200) {
if (Number(data.activity_stage) === 0) {
if (Number(data.treasure_stage) === 0) {
this.props.history.push('/');
return;
}
......
......@@ -309,7 +309,7 @@ class MyTreasure extends Component {
http.get(`${API.home}/activity/stage`).then(res => {
const {code, data} = res.data
if (code === 200) {
if(Number(data.activity_stage) === 0) {
if(Number(data.treasure_stage) === 0) {
this.props.history.push('/');
return;
}
......
......@@ -110,7 +110,7 @@ export default class index extends Component {
http.get(`${API.home}/activity/stage`).then(res => {
const {code, data, msg} = res.data
if (code === 200) {
if(Number(data.activity_stage) === 0) {
if(Number(data.treasure_stage) === 0) {
this.props.history.push('/');
return;
}
......
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