Commit 5dc25768 by xuzhenghua

登录

parent b116c899
......@@ -56,8 +56,8 @@
"aist-share.js": "/mrstatic/js/aist-share.3a04b022.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.3a04b022.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.564d8d7c.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.e897c984.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.e897c984.chunk.js.map",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.dadc0252.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.dadc0252.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.9beb2e6a.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.9beb2e6a.chunk.js.map",
......@@ -85,8 +85,8 @@
"purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css",
"purchased.js": "/mrstatic/js/purchased.a38723f4.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.a38723f4.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.b8db1102.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.b8db1102.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.30eaa37c.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.30eaa37c.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.589ab26a.chunk.js",
"search.js.map": "/mrstatic/js/search.589ab26a.chunk.js.map",
......@@ -100,8 +100,8 @@
"togroup.js": "/mrstatic/js/togroup.59f6d7fd.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.59f6d7fd.chunk.js.map",
"video.css": "/mrstatic/css/video.1c1131c9.chunk.css",
"video.js": "/mrstatic/js/video.ee79f0c1.chunk.js",
"video.js.map": "/mrstatic/js/video.ee79f0c1.chunk.js.map",
"video.js": "/mrstatic/js/video.5b3754da.chunk.js",
"video.js.map": "/mrstatic/js/video.5b3754da.chunk.js.map",
"mrstatic/css/36.2c78a65e.chunk.css": "/mrstatic/css/36.2c78a65e.chunk.css",
"mrstatic/js/36.be086e62.chunk.js": "/mrstatic/js/36.be086e62.chunk.js",
"mrstatic/js/36.be086e62.chunk.js.map": "/mrstatic/js/36.be086e62.chunk.js.map",
......@@ -166,6 +166,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.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.e1b050fa0efbb6f4526894ae0d52c4d7.js": "/precache-manifest.e1b050fa0efbb6f4526894ae0d52c4d7.js",
"precache-manifest.f6076862d5191c1033983d25b3603037.js": "/precache-manifest.f6076862d5191c1033983d25b3603037.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/mrstatic/css/36.2c78a65e.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.f9f26bcf.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(c){function e(e){for(var r,t,a=e[0],n=e[1],o=e[2],i=0,f=[];i<a.length;i++)t=a[i],l[t]&&f.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(c[r]=n[r]);for(p&&p(e);f.length;)f.shift()();return s.push.apply(s,o||[]),d()}function d(){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!==l[o]&&(a=!1)}a&&(s.splice(r--,1),e=b(b.s=t[0]))}return e}var t={},u={30:0},l={30:0},s=[];function b(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return c[e].call(r.exports,r,r.exports,b),r.l=!0,r.exports}b.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1}[s]&&e.push(u[s]=new Promise(function(e,a){for(var r="mrstatic/css/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[s]||s)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"bf839917",3:"fa2c419d",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"fa2c419d",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"564d8d7c",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"54d9956e",27:"494a90ad",28:"7ff5ff63",29:"bb758677",31:"5716d9b3",32:"76774ba4",33:"bf6b9b43",34:"f08bc5f3",35:"1c1131c9",37:"c76b300d",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[s]+".chunk.css",n=b.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var i=(c=t[o]).getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(i===r||i===n))return e()}var f=document.getElementsByTagName("style");for(o=0;o<f.length;o++){var c;if((i=(c=f[o]).getAttribute("data-href"))===r||i===n)return e()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=e,d.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],d.parentNode.removeChild(d),a(t)},d.href=n,document.getElementsByTagName("head")[0].appendChild(d)}).then(function(){u[s]=0}));var t=l[s];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[s]=[e,r]});e.push(t[2]=r);var a,o=document.createElement("script");o.charset="utf-8",o.timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.src=b.p+"mrstatic/js/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[s]||s)+"."+{0:"19bf510b",1:"1ae9bc37",2:"f02a0573",3:"73c8f0a9",4:"7dc150ca",5:"87e5a787",6:"b77d0054",7:"55b9cd02",8:"7376b4ea",9:"ef054c07",10:"1ca5eb03",11:"fea133fd",12:"40f1e2cd",13:"57e0641d",14:"21e0b5d0",15:"a868f51f",16:"c6a31aa7",17:"a1843d18",18:"5bce9778",19:"3a04b022",20:"e897c984",21:"9beb2e6a",22:"9328617e",23:"3386f2f1",24:"77f90737",25:"34640f52",27:"5b24e8bb",28:"44109093",29:"a38723f4",31:"589ab26a",32:"bc3debb9",33:"7bbf8730",34:"59f6d7fd",35:"ee79f0c1",37:"60ac9e86",38:"6484232f",39:"abfd1e74",40:"f027a2bf",41:"7432e73e",42:"7d3b7120"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(i);var r=l[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)}l[s]=void 0}};var i=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},b.m=c,b.c=t,b.d=function(e,r,t){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(b.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)b.d(t,a,function(e){return r[e]}.bind(null,a));return t},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],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;d()}([])</script><script src="/mrstatic/js/36.be086e62.chunk.js"></script><script src="/mrstatic/js/main.2b14c8b9.chunk.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/mrstatic/css/36.2c78a65e.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.f9f26bcf.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],i=0,d=[];i<a.length;i++)t=a[i],l[t]&&d.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(f[r]=n[r]);for(p&&p(e);d.length;)d.shift()();return s.push.apply(s,o||[]),c()}function c(){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!==l[o]&&(a=!1)}a&&(s.splice(r--,1),e=b(b.s=t[0]))}return e}var t={},u={30:0},l={30:0},s=[];function b(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,b),r.l=!0,r.exports}b.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1}[s]&&e.push(u[s]=new Promise(function(e,a){for(var r="mrstatic/css/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[s]||s)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"bf839917",3:"fa2c419d",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"fa2c419d",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"564d8d7c",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"54d9956e",27:"494a90ad",28:"7ff5ff63",29:"bb758677",31:"5716d9b3",32:"76774ba4",33:"bf6b9b43",34:"f08bc5f3",35:"1c1131c9",37:"c76b300d",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[s]+".chunk.css",n=b.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var i=(f=t[o]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(i===r||i===n))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var f;if((i=(f=d[o]).getAttribute("data-href"))===r||i===n)return e()}var c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.onload=e,c.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],c.parentNode.removeChild(c),a(t)},c.href=n,document.getElementsByTagName("head")[0].appendChild(c)}).then(function(){u[s]=0}));var t=l[s];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[s]=[e,r]});e.push(t[2]=r);var a,o=document.createElement("script");o.charset="utf-8",o.timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.src=b.p+"mrstatic/js/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[s]||s)+"."+{0:"19bf510b",1:"1ae9bc37",2:"f02a0573",3:"73c8f0a9",4:"7dc150ca",5:"87e5a787",6:"b77d0054",7:"55b9cd02",8:"7376b4ea",9:"ef054c07",10:"1ca5eb03",11:"fea133fd",12:"40f1e2cd",13:"57e0641d",14:"21e0b5d0",15:"a868f51f",16:"c6a31aa7",17:"a1843d18",18:"5bce9778",19:"3a04b022",20:"dadc0252",21:"9beb2e6a",22:"9328617e",23:"3386f2f1",24:"77f90737",25:"34640f52",27:"5b24e8bb",28:"44109093",29:"a38723f4",31:"589ab26a",32:"bc3debb9",33:"7bbf8730",34:"59f6d7fd",35:"5b3754da",37:"60ac9e86",38:"6484232f",39:"abfd1e74",40:"f027a2bf",41:"7432e73e",42:"7d3b7120"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(i);var r=l[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)}l[s]=void 0}};var i=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},b.m=f,b.c=t,b.d=function(e,r,t){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(b.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)b.d(t,a,function(e){return r[e]}.bind(null,a));return t},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],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;c()}([])</script><script src="/mrstatic/js/36.be086e62.chunk.js"></script><script src="/mrstatic/js/main.2b14c8b9.chunk.js"></script></body></html>
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1186:function(e,t,a){},1187:function(e,t,a){},1188:function(e,t,a){},1189:function(e,t,a){},1190:function(e,t,a){},1191:function(e,t,a){},1192:function(e,t,a){},1193:function(e,t,a){},1194:function(e,t,a){},1195:function(e,t,a){},1196:function(e,t,a){},1197:function(e,t,a){},1198:function(e,t,a){},1199:function(e,t,a){},1200:function(e,t,a){},1201:function(e,t,a){},1235:function(e,t,a){"use strict";a.r(t);var n=a(20),s=(a(41),a(12)),c=a.n(s),o=a(4),r=a(7),i=a(5),l=a(8),u=a(9),m=a(0),d=a.n(m),p=a(624),_=a.n(p),h=a(3),b=a(15),f=a(42),v=(a(1186),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).state={rules:["\u2022\t\u62bd\u5956\u7684\u6b21\u6570\u53ef\u901a\u8fc7\u79ef\u798f\u6c14\u83b7\u5f97\uff0c\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u62bd\u5956\u7684\u6b21\u6570\u8d8a\u591a;","\u2022\t\u672c\u6b21\u62bd\u5956\u5f62\u5f0f\u4e3a\u5f00\u5956\u5236\uff0c\u4e0b\u4e00\u65f6\u6bb5\u5f00\u542f\u62bd\u5956\u524d\u4f1a\u516c\u5e03\u4e0a\u4e00\u6b21\u4e2d\u5956\u7ed3\u679c\u53ca\u540d\u5355\uff0c\u53ef\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u53ca\u65f6\u83b7\u53d6\u4e2d\u5956\u7ed3\u679c\uff0c\u63d0\u9192\u53c2\u4e0e\u4e0b\u6b21\u62bd\u5956;","\u2022\t\u6bcf\u4e2a\u65f6\u6bb5\u4ec5\u53ef\u4f7f\u7528\u4e00\u6b21\u62bd\u5956\u673a\u4f1a\uff0c\u6bcf\u65e5\u62bd\u5956\u6b21\u6570\u9650\u5f53\u65e5\u7528\uff0c\u62bd\u5956\u6b21\u6570\u4e0d\u7d2f\u52a0\u81f3\u6b21\u65e5;","\u2022\t\u4e2d\u5956\u540e\u8bf7\u53ca\u65f6\u586b\u5199\u90ae\u5bc4\u4fe1\u606f\uff0c\u4e0d\u586b\u5199\u89c6\u4e3a\u4e3b\u52a8\u653e\u5f03\u5956\u54c1\uff1b","\u2022\t\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u6240\u6709\u3002"]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.state.rules,t=this.props.handleToHide;return d.a.createElement("div",{className:"rule-popup__container"},d.a.createElement("div",{className:"rule-popup"},d.a.createElement("h2",{className:"rule-popup__title"},"\u6d3b\u52a8\u89c4\u5219"),d.a.createElement("ul",{className:"rule-popup__list"},e.map(function(e,t){return d.a.createElement("li",{className:"rule-popup__item",key:t},e)}))),d.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:t}))}}]),t}(m.Component)),E=(a(1187),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).fetchCourseData=function(){Promise.all([h.d.get("".concat(API.home,"/sys/browse/blessing/courses")),h.d.get("".concat(API.home,"/sys/user/blessing"))]).then(function(e){var t=e[0].data,n=t.code,s=t.data,c=e[1].data.data.today_browsed_courses||[];200===n&&a.setState({courseList:s.map(function(e){return c.some(function(t){return t==e.course_id})?Object.assign({},e,{blessing:2}):e})})})},a.toCourseDetail=function(e){console.log(a.props);var t=a.props,n=t.isLogin,s=t.history,c=t.toLogin;if(n)if(Object(h.c)("version")){var o=0;o=e.blessing?2:1;var r={courseId:e.course_id,type:o};Object(h.a)("toCourse",r)}else s.push("/detail?id=".concat(e.course_id,"&ac=11"));else c()},a.state={courseList:[]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseData()}},{key:"render",value:function(){var e=this,t=this.state.courseList,a=this.props.handleToHide;return d.a.createElement("div",{className:"course-popup__container"},d.a.createElement("div",{className:"course-popup"},d.a.createElement("h2",{className:"course-popup__title"},"\u6307\u5b9a\u8bfe\u7a0b"),d.a.createElement("div",{className:"course-popup__list"},t.map(function(t){return d.a.createElement("span",{className:"course-popup__item",key:t.course_id,onClick:function(){e.toCourseDetail(t)}},d.a.createElement("span",{className:"course-popup__name"},t.course_title),t.blessing&&d.a.createElement("span",null,"+2\u70b9"))}))),d.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:a}))}}]),t}(m.Component)),g=(a(1188),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).state={recordList:[]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/sys/ai_test/get_user_testinfo")).then(function(t){var a=t.data,n=a.code,s=a.data.user_test_record;200===n&&e.setState({recordList:s})})}},{key:"render",value:function(){var e=this.state.recordList,t=this.props.handleToHide;return d.a.createElement("div",{className:"record__mark"},d.a.createElement("div",{className:"gift__record"},d.a.createElement("div",{className:"close__button",onClick:t},d.a.createElement("i",{className:"icon iconfont iconiconfront-77"})),d.a.createElement("p",{className:"mark__title"},"\u6d4b\u8bd5\u8bb0\u5f55"),d.a.createElement("p",{className:"mark__tip"},"\u591a\u6b21\u6d4b\u8bd5\u4fdd\u7559\u6700\u9ad8\u5206\uff0c\u53ef\u67e5\u770b\u6700\u8fd1\u4e00\u6b21\u7b54\u9898\u8bb0\u5f55"),d.a.createElement("div",null,d.a.createElement("div",{className:"table__head"},d.a.createElement("span",{className:"tr"},"\u6d4b\u8bd5\u65f6\u95f4"),d.a.createElement("span",{className:"tr"},"\u5206\u6570"),d.a.createElement("span",{className:"tr"},"\u64cd\u4f5c")),d.a.createElement("div",{className:"table__body"},e.map(function(e,t){return d.a.createElement("div",{className:"tr__container",key:t},d.a.createElement("span",{className:"tr"},e.submit_time),d.a.createElement("span",{className:"tr"},e.score),d.a.createElement("span",{className:"tr"},0===t?d.a.createElement("a",{href:"/levelTest/report?id=".concat(e.id)},"\u6d4b\u8bd5\u8bb0\u5f55"):null))})))))}}]),t}(m.Component)),y=a(17),N=a.n(y);a(1189);var j,C=function(e){return function(t){function a(){return Object(o.a)(this,a),Object(i.a)(this,Object(l.a)(a).apply(this,arguments))}return Object(u.a)(a,t),Object(r.a)(a,[{key:"render",value:function(){return d.a.createElement("div",{className:"list-frame"},d.a.createElement("div",{className:"list-frame__content"},d.a.createElement(e,this.props)))}}]),a}(m.Component)},k=(a(1190),function(e){function t(){return Object(o.a)(this,t),Object(i.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id;return d.a.createElement("div",{className:"course-container"},d.a.createElement("div",{className:"course__cover"},d.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(m.Component)),O=(a(1191),function(e){function t(){return Object(o.a)(this,t),Object(i.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.text,a=e.size,n=e.styles,s=e.id,c=a?"list-header--".concat(a):"";return d.a.createElement("div",{id:s,className:N()("list-header",c),style:n},d.a.createElement("i",{className:"list-header__decorate","data-position":"left"}),t?d.a.createElement("h2",{className:"list-header__content"},t):this.props.children,d.a.createElement("i",{className:"list-header__decorate","data-position":"right"}))}}]),t}(m.Component)),x=(a(1192),C(function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).fetchAICourse=function(e){var t=a.state,n=t.basic,s=t.advanced,c=t.higher,o=t.expand;h.d.get("".concat(API.home,"/sys/ai_grow_up_courses/").concat(e)).then(function(t){var r=t.data,i=r.code,l=r.data;200===i&&(l.length>4?("one"===e&&a.setState({basic:Object.assign({},n,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})}),"two"===e&&a.setState({advanced:Object.assign({},s,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})}),"three"===e&&a.setState({higher:Object.assign({},c,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})}),"four"===e&&a.setState({expand:Object.assign({},o,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})})):("one"===e&&a.setState({basic:Object.assign({},n,{isMore:!1,course:l,courseList:l})}),"two"===e&&a.setState({advanced:Object.assign({},s,{isMore:!1,course:l,courseList:l})}),"three"===e&&a.setState({higher:Object.assign({},c,{isMore:!1,course:l,courseList:l})}),"four"===e&&a.setState({expand:Object.assign({},o,{isMore:!1,course:l,courseList:l})})))})},a.fetchCourseData=function(){var e=a.state,t=e.group,n=e.training;h.d.get("".concat(API.home,"/sys/preheat_data")).then(function(e){var s=e.data,c=s.code,o=s.data;200===c&&(o.excellent_course.length>2?a.setState({group:Object.assign({},t,{isMore:!0,course:o.excellent_course.filter(function(e,t){return t<2}),courseList:o.excellent_course})}):a.setState({group:Object.assign({},t,{isMore:!1,course:o.excellent_course,courseList:o.excellent_course})}),o.ai_elite_courses.length>2?a.setState({training:Object.assign({},n,{isMore:!0,course:o.ai_elite_courses.filter(function(e,t){return t<2}),courseList:o.ai_elite_courses})}):a.setState({training:Object.assign({},n,{isMore:!1,course:o.ai_elite_courses,courseList:o.ai_elite_courses})}))})},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},a.setState(Object(n.a)({},t))):(t[e]="group"===e||"training"===e?{isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<2}),courseList:a.state[e].courseList}:{isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList},a.setState(Object(n.a)({},t)))},a.toQQque=function(){Object(h.c)("version")?Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="https://q.url.cn/AB8aue?_type=wpa&qidian=true"},a.toCourse=function(e){var t=a.props.history;if(Object(h.c)("version")){var n={courseId:e,type:0};Object(h.a)("toCourse",n)}else t.push("/detail?id=".concat(e))},a.state={basic:{course:[],courseList:[],isMore:!1},advanced:{course:[],courseList:[],isMore:!1},higher:{course:[],courseList:[],isMore:!1},expand:{course:[],courseList:[],isMore:!1},group:{course:[],courseList:[],isMore:!1},training:{course:[],courseList:[],isMore:!1}},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseData(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four")}},{key:"toReceiveCoupon",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=this.props,o=s.isLogin,r=s.toLogin;alert(o),o?h.d.post("".concat(API.home,"/sys/activity/coupon/receive"),{course_id:e}).then(function(s){var o=s.data,r=o.code,i=o.msg;if(200===r){c.a.info("\u9886\u53d6\u6210\u529f\uff5e",2,null,!1);var l={};l[a]={isMore:t.state[a].isMore,course:t.state[a].course.map(function(t){return t.course_id===e?Object.assign({},t,{course_status:2}):t}),courseList:t.state[a].courseList.map(function(t){return t.course_id===e?Object.assign({},t,{course_status:2}):t})},t.setState(Object(n.a)({},l))}else c.a.info(i,2,null,!1)}):r()}},{key:"render",value:function(){var e=this,t=this.props.isFormal,a=this.state,n=a.basic,s=a.advanced,c=a.higher,o=a.expand,r=a.group,i=a.training;return d.a.createElement("div",{className:"boutique-course"},d.a.createElement(O,{text:"\u96c6\u8bad\u8425\u3001\u5c31\u4e1a\u73ed",size:"middle",styles:{margin:"20px 0 15px"}}),r.course&&r.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{"data-layout":"row"},r.course.map(function(t){return d.a.createElement(k,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},d.a.createElement("div",{className:"coupon-course__footer"},d.a.createElement("a",{onClick:function(){return e.toQQque()},className:"course-button"},"\u7acb\u62a2\u8d85\u4f4e\u56e2\u8d2d\u4ef7")))})),r.courseList&&r.courseList.length>2&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("group")}},r.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),d.a.createElement(O,{text:"AI\u7279\u8bad\u8425",size:"middle",styles:{margin:"0 0 15px"}}),i.course&&i.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{"data-layout":"row"},i.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"training")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),i.courseList&&i.courseList.length>2&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("training")}},i.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),d.a.createElement(O,{text:"AI\u6210\u957f\u4e4b\u8def",size:"middle",styles:{margin:"0 0 15px"}}),n.course&&n.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("h4",{className:"ai-course__subtitle"},"\u57fa\u7840"),d.a.createElement("div",{"data-layout":"row"},n.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},0===a.type&&d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"basic")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")),1===a.type&&d.a.createElement("div",{className:"cent-course__footer"},1===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button"},"1\u5206\u94b1\u5f00\u56e2"),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),n.courseList&&n.courseList.length>4&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("basic")}},n.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),s.course&&s.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("h4",{className:"ai-course__subtitle"},"\u8fdb\u9636"),d.a.createElement("div",{"data-layout":"row"},s.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},0===a.type&&d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"advanced")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")),1===a.type&&d.a.createElement("div",{className:"cent-course__footer"},1===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button"},"1\u5206\u94b1\u5f00\u56e2"),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),s.courseList&&s.courseList.length>4&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("advanced")}},s.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),c.course&&c.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("h4",{className:"ai-course__subtitle"},"\u9ad8\u9636"),d.a.createElement("div",{"data-layout":"row"},c.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},0===a.type&&d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"higher")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")),1===a.type&&d.a.createElement("div",{className:"cent-course__footer"},1===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button"},"1\u5206\u94b1\u5f00\u56e2"),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),c.courseList&&c.courseList.length>4&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("higher")}},c.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),o.course&&o.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("h4",{className:"ai-course__subtitle"},"\u6269\u5c55"),d.a.createElement("div",{"data-layout":"row"},o.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},0===a.type&&d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"expand")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")),1===a.type&&d.a.createElement("div",{className:"cent-course__footer"},1===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button"},"1\u5206\u94b1\u5f00\u56e2"),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),o.courseList&&o.courseList.length>4&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("expand")}},o.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")))}}]),t}(m.Component))),w=(a(1193),function(e){function t(){return Object(o.a)(this,t),Object(i.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return d.a.createElement("div",{className:"share__container"},h.b.isWeixin&&d.a.createElement("div",{className:"share__row"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/throw_icon.png"})),d.a.createElement("div",{className:"share__content"},d.a.createElement("p",{className:"share__text"},"\u5206\u4eab\u6d3b\u52a8\u9875\u5230\u670b\u53cb\u5708\u3001qq\u3001\u5fae\u535a\u5206\u522b"),d.a.createElement("div",{className:"share__rule"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png"}),d.a.createElement("span",null,"\uff08\u6bcf\u4e2a\u5e73\u53f0\u6bcf\u5929\u4e00\u6b21\uff09"))))}}]),t}(m.Component)),S=(a(158),a(91)),L=a.n(S),I=(a(1194),C(function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).fetchActivityPrize=function(){h.d.get("".concat(API.home,"/sys/activity/prize_data")).then(function(e){var t=e.data,n=t.code,s=t.data.list,c=void 0===s?[]:s;200===n&&a.setState({tabs:c.map(function(e){return{title:e.date}}),prizes:c})})},a.state={tabs:[],prizes:[]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchActivityPrize()}},{key:"render",value:function(){var e=this.state,t=e.tabs,a=e.prizes;return d.a.createElement("div",{className:"luck-draw__container"},d.a.createElement(L.a,{swipeable:!1,tabs:t,tabBarBackgroundColor:"transparent",tabBarUnderlineStyle:{display:"none"}},a.map(function(e,t){var a=e.son;return d.a.createElement("div",{className:"tab__body",key:t},a.map(function(e){return d.a.createElement("div",{key:e.id},d.a.createElement("h2",{className:"prize__label"},d.a.createElement("i",{className:"prize__label-icon"}),d.a.createElement("span",null,e.time)),d.a.createElement("div",{className:"prize__content"},e.data.map(function(t,a){return d.a.createElement("div",{className:"prize__container",key:"".concat(e.id,"-").concat(a)},d.a.createElement("div",{className:"prize__image"},d.a.createElement("img",{src:t.img,alt:"image"})),d.a.createElement("p",{className:"prize__desc"},t.name),d.a.createElement("p",{className:"prize__desc"},"\uff08",t.num,"\u6570\u91cf\uff09"))})))}))})))}}]),t}(m.Component))),T=a(21),A=(a(1195),C(Object(T.b)(function(e){return{uid:e.user.data.uid||""}})(j=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).qqToShare=function(){var e=a.props,t=e.uid,n=e.history;Object(h.c)("version")?t?Object(h.a)("QQshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}):Object(h.a)("toLogin"):t?(n.push("/blessingPreheat?utm_source=qq&utm_medium=11&utm_campaign=QQ11&utm_content=11&utm_term=11"),a.fetchUserBlessing(3,function(){a.handleToAddBlessing(3)})):n.push("/passport")},a.wechatToShare=function(){var e=a.props,t=e.uid,n=e.history;Object(h.c)("version")?t?Object(h.a)("WXshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}):Object(h.a)("toLogin"):t?(n.push("/blessingPreheat?utm_source=1&utm_medium=1&utm_campaign=11&utm_content=1&utm_term=1"),a.fetchUserBlessing(1,function(){a.handleToAddBlessing(1)})):n.push("/passport")},a.weiboToShare=function(){var e=a.props,t=e.uid,n=e.history;Object(h.c)("version")?t?Object(h.a)("WBshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}):Object(h.a)("toLogin"):t?(n.push("/blessingPreheat?utm_source=sina&utm_medium=11&utm_campaign=sina11&utm_content=1&utm_term=11"),a.fetchUserBlessing(2,function(){a.handleToAddBlessing(2)})):n.push("/passport")},a.handleToAddBlessing=function(e){h.d.post("".concat(API.home,"/sys/add/blessing"),{share_platform:e,type:3}).then(function(e){200===e.data.code&&c.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1)})},a.state={rules:["app/h5/pc\u7aef\u6d3b\u52a8\u9875\u7b7e\u5230+5\u70b9\u798f\u6c14\u503c\uff08\u6bcf\u5929\u4e00\u6b21\uff09","\u5173\u6ce8\u4e03\u6708\u5728\u7ebf\u5fae\u4fe1\u670d\u52a1\u53f7+30\u70b9\u798f\u6c14\u503c\uff08\u4ec5\u9650\u4e00\u6b21\uff09","\u5206\u4eab\u6d3b\u52a8\u9875\u5230\u670b\u53cb\u5708\u3001qq\uff0c\u5206\u522b+2\u70b9\u798f\u6c14\u503c\uff08\u6bcf\u4e2a\u5e73\u53f0\u6bcf\u5929\u4e00\u6b21\uff09","\u6d4f\u89c8\u6307\u5b9a\u8bfe\u7a0b\u8be6\u60c5\u9875\uff0c\u4e00\u95e8\u8bfe\u7a0b+2\u70b9\u798f\u6c14\u503c\uff08\u6bcf\u5929\u4e00\u6b21\uff09","\u9080\u8bf7\u597d\u53cb\u6ce8\u518c\uff0c+10\u70b9\u798f\u6c14\u503c/\u4eba\uff08\u65e0\u4e0a\u9650\uff09","\u6d3b\u52a8\u671f\u95f4\u6bcf\u8d2d\u4e70\u4e00\u95e8\u8bfe\u7a0b+20\u70b9\u798f\u6c14\u503c"],welfareRuleList:[{range:"50~100",rules:[{id:1,text:"1.\u6bcf\u5929\u4e00\u6b21\u62bd\u5956\u673a\u4f1a\uff1b"},{id:2,text:"2.\u4e2d\u5956\u6982\u7387\u7ffb2\u500d",des:"\uff08\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff09\uff1b"},{id:3,text:"3.\u6ee1111\u51cf11\u3001\u6ee11111\u51cf111\u3002"}]},{range:"101~190",rules:[{id:1,text:"1.\u6bcf\u5929\u4e24\u6b21\u62bd\u5956\u673a\u4f1a\uff1b"},{id:2,text:"2.\u4e2d\u5956\u6982\u7387\u7ffb3\u500d",des:"\uff08\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff09\uff1b"},{id:3,text:"3.\u6ee1111\u51cf31\u3001\u6ee11111\u51cf211\uff1b"},{id:4,text:"4.AI\u6c34\u5e73\u6d4b\u8bd5\u589e\u52a01\u6b21\u3002"}]},{range:">190",rules:[{id:1,text:"1.\u6bcf\u5929\u4e09\u6b21\u62bd\u5956\u673a\u4f1a\uff1b"},{id:2,text:"2.\u4e2d\u5956\u6982\u7387\u7ffb4\u500d",des:"\uff08\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff09\uff1b"},{id:3,text:"3.\u6ee1111\u51cf51\u3001\u6ee11111\u51cf411\uff1b"},{id:4,text:"4.AI\u6c34\u5e73\u6d4b\u8bd5\u589e\u52a02\u6b21\u3002"}]}],seconds:5},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"fetchUserBlessing",value:function(e,t){var a=this,n=this.props,s=n.handleToShowShare,o=n.handleToHideShare,r=this.state.seconds;h.d.get("".concat(API.home,"/sys/user/blessing")).then(function(n){var i=n.data,l=i.code,u=i.data;200===l&&(u.today_shared_platforms.some(function(t){return t===e})?c.a.info("\u4eca\u65e5\u5df2\u5206\u4eab\uff0c\u8bb0\u5f97\u660e\u5929\u6765~",2,null,!1):(s(),a.shareTimer=setInterval(function(){a.setState({seconds:--r},function(){0===r&&("function"===typeof t&&t(),o(),clearInterval(a.shareTimer))})},1e3)))})}},{key:"render",value:function(){var e=this,t=this.props,a=t.isSign,n=t.userInfo,s=n.blessingVal,c=void 0===s?0:s,o=n.buyBlessing,r=void 0===o?0:o,i=n.inviteBlessing,l=void 0===i?0:i,u=t.isLogin,m=t.handleToShowNotice,p=t.handleToShowList,_=t.handleToShowInvite,h=(t.handleToShow,t.toLogin),b=t.toSection,f=this.state,v=f.rules,E=f.welfareRuleList;f.seconds;return d.a.createElement("div",{className:"collect-blessing"},u?d.a.createElement(O,{text:"\u6211\u7684\u798f\u6c14\u503c\uff1a ".concat(c,"\u5206"),size:"middle",styles:{margin:"20px 0 0 0"}}):d.a.createElement(O,{size:"middle",styles:{margin:"20px 0 0 0"}},d.a.createElement("span",{className:"text_nologin"},"\u6211\u7684\u798f\u6c14\u503c\uff1a"),d.a.createElement("span",{onClick:h,className:"login__btn"},"\u767b\u5f55")),d.a.createElement("p",{className:"activity__over"},"\u6d3b\u52a8\u7ed3\u675f\u524d\u798f\u6c14\u699c\u524d50\u540d\u53ef\u83b7\u5956\u54c1\u4e00\u4efd"),E.map(function(e,t){return d.a.createElement("div",{className:"rules__item",key:t},d.a.createElement("div",{className:"item__left"},d.a.createElement("div",{className:"tip__bubble"},d.a.createElement("div",{className:"tip__text"},"\u798f\u6c14\u503c"),d.a.createElement("div",{className:"tip__style"})),d.a.createElement("div",{className:"range__number"},e.range)),d.a.createElement("div",{className:"item__right"},e.rules.map(function(e){return d.a.createElement("p",{key:e.id},e.text,d.a.createElement("span",null,e.des))})))}),d.a.createElement(O,{text:"\u798f\u6c14\u503c\u79ef\u6512\u89c4\u5219",size:"middle",styles:{margin:"30px 0 0"}}),v.map(function(t,n){return d.a.createElement("div",{className:"collect-blessing__item",key:n},d.a.createElement("i",{className:"collect-blessing__num"},n+1),d.a.createElement("p",{className:"collect-blessing__title"},t),0===n&&d.a.createElement(d.a.Fragment,null,u&&a?d.a.createElement("a",{className:"collect-blessing__content","data-status":"done"},"+5\u70b9",d.a.createElement("br",null),"\u798f\u6c14\u503c"):d.a.createElement("span",{onClick:h,className:"collect-blessing__content"},"\u70b9\u51fb",d.a.createElement("br",null),"\u7b7e\u5230")),1===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:m},"\u5173\u6ce8",d.a.createElement("br",null),"\u4e8c\u7ef4\u7801"),2===n&&d.a.createElement("div",{className:"collect-blessing__content","data-layout":"column"},d.a.createElement("p",{className:"collect-blessing__label"},"\u53bb\u5206\u4eab"),d.a.createElement("div",{className:"collect-blessing__share"},d.a.createElement("a",{className:"collect-blessing__share-button","data-type":"qq",onClick:e.qqToShare}),d.a.createElement("a",{className:"collect-blessing__share-button","data-type":"wechat",onClick:e.wechatToShare}),d.a.createElement("a",{className:"collect-blessing__share-button","data-type":"weibo",onClick:e.weiboToShare}))),3===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:p},"\u6d4f\u89c8\u8bfe\u7a0b",d.a.createElement("br",null),"\u8be6\u60c5\u9875"),4===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:_},d.a.createElement("span",null,"\u9080\u8bf7\u94fe\u63a5"),l>0&&d.a.createElement("i",null,"\u5df2\u52a0",l,"\u70b9")),5===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:b},d.a.createElement("span",null,"\u53bb\u9009\u8bfe"),r>0&&d.a.createElement("i",null,"\u5df2\u52a0",r,"\u70b9")))}))}}]),t}(m.Component))||j)),M=(a(1196),a(49)),P=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).fetchAICourse=function(){h.d.get("".concat(API.home,"/sys/pre_coursee")).then(function(e){var t=e.data,n=t.code,s=t.data,o=t.msg;200===n?a.setState({courseData:s.filter(function(e,t){return t<4}),courseDataAll:s}):c.a.info(o,2)})},a.expandPaydj=function(e){var t=a.props,n=t.user;t.history;n&&n.data&&n.data.uid?Object(h.c)("version")?Object(h.a)("earnestMoney",e):a.props.history.push("/deposit-order?oid=".concat(e,"&source=",2),{id:e,isexpand:1,sourcenum:2}):Object(h.c)("version")?Object(h.a)("toLogin"):a.props.history.push("/passport/login")},a.expandPaywk=function(e,t,n){var s=a.props,o=s.user;s.history;o&&o.data&&o.data.uid?Date.parse(new Date)/1e3>=t?Object(h.c)("version")?Object(h.a)("TailMoney"):a.props.history.push("/final-deposit-order?source=1",{id:e,sourcenum:1}):c.a.info("\u4ed8\u5c3e\u6b3e\u65f6\u95f4\u5c06\u5728"+n+"\u5f00\u542f",2):Object(h.c)("version")?Object(h.a)("toLogin"):a.props.history.push("/passport/login")},a.tostudy=function(e){if(Object(h.c)("version")){var t={courseId:e,type:0};Object(h.a)("toCourse",t)}else a.props.history.push("/getDetail?id=".concat(e))},a.showMoreData=function(){a.setState({isShowMore:!a.state.isShowMore,courseData:a.state.isShowMore?a.state.courseDataAll.filter(function(e,t){return t<4}):a.state.courseDataAll})},a.state={courseData:[],isShowMore:!1},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchAICourse()}},{key:"render",value:function(){var e=this.state,t=e.courseData,a=e.isShowMore;return d.a.createElement("div",{className:"reserve-course-module"},d.a.createElement(D,{courseData:t,expandPaydj:this.expandPaydj,expandPaywk:this.expandPaywk,tostudy:this.tostudy}),d.a.createElement("button",{className:"more-button",onClick:this.showMoreData},a?"\u6536\u8d77":"\u5c55\u5f00\u66f4\u591a"))}}]),t}(m.Component);function D(e){var t=e.courseData,a=e.expandPaydj,n=e.expandPaywk,s=e.tostudy;return d.a.createElement("div",{className:"course-list"},d.a.createElement("ul",null,t.map(function(e,t){return d.a.createElement("li",{className:"course-item-box",key:t},d.a.createElement("a",{onClick:function(){return s(e.course_id)}},d.a.createElement("div",{className:"top"},d.a.createElement("div",{className:"square"},d.a.createElement("p",{className:"circular"},"\u5230\u624b\u6700\u4f4e\xa5",d.a.createElement("span",null,Number(e.price)-Number(e.deduction_amount)-Number(e.limit_amount)))),d.a.createElement("img",{className:"course-img",src:e.image_name,alt:""}))),d.a.createElement("p",{className:"count-price"},"=\u539f\u4ef7\xa5",e.price,d.a.createElement("span",null,"-\u62b5\u6263\xa5",d.a.createElement("i",null,e.deduction_amount)),d.a.createElement("span",null,"-\u81a8\u80c0\u5238\xa5",d.a.createElement("i",null,e.limit_amount))),d.a.createElement("div",{className:"btn"},0===e.is_buy&&d.a.createElement("button",{className:"to-expand-buy1",onClick:function(){return a(e.course_id)}},"\u7acb\u5373\u4ed8\u5b9a\u91d1"),1===e.is_buy&&d.a.createElement("button",{className:"to-expand-buy2",onClick:function(){return n(e.course_id,e.start_timestamp,e.final_start_time)}},"\u7acb\u5373\u4ed8\u5c3e\u6b3e"),2===e.is_buy&&d.a.createElement("button",{className:"to-study",onClick:function(){return s(e.course_id)}},"\u5f00\u59cb\u5b66\u4e60")))})))}var U,q=C(Object(T.b)(function(e){return{user:e.user}})(Object(M.g)(P))),R=(a(1197),C(function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).startTest=function(){var e=a.props,t=e.history,n=e.isLogin,s=e.toLogin;n?t.push("/levelTest/test"):s()},a.state={testNumber:12345,number:1,prizeListUrl:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top1.png"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top2.png"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top3-4.png"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top5-7.png"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top8-10.png"}]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.props.isLogin&&h.d.get("".concat(API.home,"/sys/ai_test/get_user_testinfo")).then(function(t){var a=t.data,n=a.code,s=a.data,c=s.user_test_total,o=s.user_residue_number;200===n&&e.setState({testNumber:c,number:o})})}},{key:"render",value:function(){var e=this.state,t=e.testNumber,a=e.number,n=e.prizeListUrl,s=this.props.isLogin;return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"level__test_module"},d.a.createElement("div",{className:"start__test",onClick:this.startTest},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/test_icon.png"}),d.a.createElement("div",{className:"button__text"},d.a.createElement("p",null,"\u70b9\u51fb\u6d4b\u8bd5"),s&&d.a.createElement("span",null,"\uff08\u5269\u4f59",a,"\u6b21\uff09"))),d.a.createElement("div",{className:"test__number"},"\u5df2\u6709",d.a.createElement("span",{className:"number"},t),"\u4eba\u53c2\u52a0\u6d4b\u8bd5"),d.a.createElement("div",{className:"prize__rules"},d.a.createElement("div",{className:"prize__title"},"\u2014 \u6d3b\u52a8\u5956\u54c1 \u2014"),d.a.createElement("div",{className:"prize__list"},n.map(function(e,t){return d.a.createElement("div",{className:"prize__container",key:t},d.a.createElement("img",{src:e.url}))})),d.a.createElement("div",{className:"prize__title"},"\u2014 \u6d3b\u52a8\u89c4\u5219 \u2014"),d.a.createElement("div",{className:"rules__text"},d.a.createElement("p",null,"1. 11\u67085\u65e5\u81f311\u670813\u65e5\u4e4b\u95f4\u6bcf\u4eba\u6709\u4e00\u6b21\u6d4b\u8bd5\u673a\u4f1a\uff0c\u53ef\u901a\u8fc7\u201c\u96c6\u798f\u6c14\u201d\u6d3b\u52a8\u989d\u5916\u83b7\u5f972\u6b21\u6d4b\u8bd5\u673a\u4f1a\uff1b"),d.a.createElement("p",null,"2. \u5355\u6b21\u6d4b\u8bd5\u65f6\u95f4\u4e3a\u4e00\u5c0f\u65f6\uff0c\u8d85\u65f6\u81ea\u52a8\u63d0\u4ea4\u8bd5\u5377\uff1b"),d.a.createElement("p",null,"3. \u8bd5\u5377\u5185\u5bb9\u4e3aPython\u57fa\u7840\uff088\u9053\u9898*3\u5206\uff09\u3001\u673a\u5668\u5b66\u4e60\uff0812\u9053\u9898*3\u5206\uff09\u3001\u6df1\u5ea6\u5b66\u4e60\uff0810\u9053\u9898*4\u5206\uff09\uff0c\u603b\u5206100\u5206\uff1b"),d.a.createElement("p",null,"4. \u65e0\u56fa\u5b9a\u8bd5\u5377\uff0c\u53c2\u4e0e\u6d4b\u8bd5\u65f6\u4ece\u8bd5\u9898\u5e93\u4e2d\u968f\u673a\u62bd\u9898\u7ec4\u5377\uff1b"),d.a.createElement("p",null,"5. \u6392\u884c\u699c\u5b9e\u65f6\u66f4\u65b0\uff0c\u5206\u6570\u76f8\u540c\u5219\u7528\u65f6\u77ed\u8005\u6392\u540d\u66f4\u9ad8\uff0c\u591a\u6b21\u6d4b\u8bd5\u4fdd\u7559\u6700\u9ad8\u5206\uff1b"),d.a.createElement("p",null,"6. \u5982\u53d1\u73b0\u67d0\u8d26\u53f7\u6709\u4f5c\u5f0a\u5acc\u7591\uff0c\u4e03\u6708\u5728\u7ebf\u6709\u6743\u6e05\u7a7a\u8d26\u53f7\u6d4b\u8bd5\u6210\u7ee9\uff1b"),d.a.createElement("p",null,"7. \u6d3b\u52a8\u6700\u7ec8\u89e3\u91ca\u6743\u5f52\u4e03\u6708\u5728\u7ebf\u6240\u6709\u3002")))))}}]),t}(m.Component))),z=(a(1198),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).formart=function(e){var t,a,n,s=1e3*e;return t="".concat(parseInt(s/36e5)).padStart(2,0),a="".concat(parseInt((s-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((s-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(a,"'").concat(n,'"')},a.state={rankList:[]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/sys/ai_test/ranking/10")).then(function(t){var a=t.data.data;200===t.data.code&&e.setState({rankList:a.rankings})})}},{key:"render",value:function(){var e=this,t=this.state.rankList;return d.a.createElement(d.a.Fragment,null,d.a.createElement(O,{text:"\u6d4b\u8bd5\u6392\u884c\u699c",styles:{margin:"20px 0 10px"},size:"middle"}),d.a.createElement("div",{className:"sort__rules"},"\u4ec5\u663e\u793a\u524d10\u540d"),d.a.createElement("div",{className:"rank__list_module"},d.a.createElement("div",{className:"rank__table_head"},d.a.createElement("div",{className:"table_head table_head__sort"},"\u6392\u540d"),d.a.createElement("div",{className:"table_head table_head__user_info"},"\u7528\u6237"),d.a.createElement("div",{className:"table_head table_head__time"},"\u7528\u65f6"),d.a.createElement("div",{className:"table_head table_head__score"},"\u6210\u7ee9"),d.a.createElement("div",{className:"table_head table_head__prize"},"\u5956\u54c1")),d.a.createElement("div",{className:"rank__table_body"},t.map(function(t,a){return d.a.createElement("div",{className:"table__tr",key:a},d.a.createElement("div",{className:"table__body table_head__sort"},a>2?a+1:null),d.a.createElement("div",{className:"table__body table_head__user_info"},d.a.createElement("img",{className:"user__avatar",src:t.avatar}),d.a.createElement("span",{className:"user__name"},t.user_name)),d.a.createElement("div",{className:"table__body table_head__time"},e.formart(t.cost_time)),d.a.createElement("div",{className:"table__body table_head__score"},t.score),d.a.createElement("div",{className:"table__body table_head__prize"},t.prize))}))))}}]),t}(m.Component)),B=(a(1199),a(27)),F=a(720),H=(a(1200),Object(T.b)(function(e){return{user:e.user}})(U=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(s)))).state={tabs:[],lives:{},preheatLives:[],visible:!1,qrcode:"",today:"",isApp:Object(h.c)("version")},a.toLiveRoom=function(e){a.state.isApp?Object(h.a)("toLiveRoom",e):window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.makeSubscribe=function(e){var t=a.props,n=t.user,s=t.history;n.hasError&&s.push("/passport/login"),h.d.get("".concat(API.home,"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data;200==t.code?_.a.toDataURL(t.data.url,function(e,t){a.setState({qrcode:t,visible:!0})}):c.a.info(t.msg,2,null,!1)})},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/sys/get_live_info")).then(function(t){var a=t.data;if(200==a.code){var n,s,o=a.data.data_active.reduce(function(e,t){return t.date in e?e[t.date].push(t):e[t.date]=[t],e},{});e.props.isFormal?(n=Object.keys(o).map(function(e){return{title:e}}),s=Object(f.uniqBy)(a.data.data_active,function(e){return e.date}).findIndex(function(e){return e.is_today})):(n=a.data.data_hot.map(function(e){return{title:e.date}}),s=a.data.data_hot.findIndex(function(e){return e.is_today})),e.setState({tabs:n,lives:o,today:s,preheatLives:a.data.data_hot})}else c.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this,t=this.state,a=t.tabs,n=t.lives,s=t.visible,c=t.qrcode,o=t.preheatLives,r=t.today;return d.a.createElement("div",{id:"live"},d.a.createElement(B.h,{title:"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6",visible:s},d.a.createElement("img",{id:"live-qr-code",src:c,alt:""})),d.a.createElement("div",{className:"title"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-left.png",alt:""}),d.a.createElement("span",null,"\u5927\u5496\u76f4\u64ad"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-right.png",alt:""})),d.a.createElement("div",{className:"live-container"},""!==r&&d.a.createElement(L.a,{tabs:a,tabBarBackgroundColor:"transparent",tabBarActiveTextColor:"#5600DF",tabBarInactiveTextColor:"#FFF604",tabBarUnderlineStyle:{display:"none"},initialPage:r,swipeable:!1},this.props.isFormal?a.map(function(t,a){var s=n[t.title];return d.a.createElement("div",{key:a},s.map(function(t,a){return d.a.createElement(Q,{item:t,key:a,makeSubscribe:e.makeSubscribe})}))}):o.map(function(t,a){return d.a.createElement("div",{key:a},o.map(function(t,a){return d.a.createElement(Q,{key:a,item:t,makeSubscribe:e.makeSubscribe})}))}))))}}]),t}(m.Component))||U);function Q(e){var t=e.item,a=e.makeSubscribe;return d.a.createElement("div",{className:"content"},t.is_teacher?d.a.createElement("div",{className:"tag teacher"},"\u8bb2\u5e08\u5206\u4eab"):d.a.createElement("div",{className:"tag student"},"\u5b66\u5458\u5206\u4eab"),d.a.createElement("div",{className:"person-info"},d.a.createElement("div",{className:"left"},d.a.createElement("img",{src:t.avatar,alt:"\u5934\u50cf",className:"avatar"})),d.a.createElement("div",{className:"right"},d.a.createElement("div",{className:"name"},"\u8bb2\u5e08\uff1a",t.teacher),d.a.createElement("div",{className:"profession"},t.teacher_desc))),d.a.createElement("div",{className:"title"},t.title),d.a.createElement("div",{className:"time"},"\u76f4\u64ad\u65f6\u95f4\uff1a",t.time),d.a.createElement("div",{className:"outline"},d.a.createElement("div",{className:"outline-title"},"\u5185\u5bb9\u5927\u7eb2\uff1a"),d.a.createElement("ul",null,t.content.map(function(e,t){return d.a.createElement("li",{key:t},e)}))),t.on_live?d.a.createElement("button",{className:"on-living",onClick:this.toLiveRoom.bind(this,t.live_id)},"\u6b63\u5728\u76f4\u64ad"):t.is_subscribe?d.a.createElement("button",{className:"subscribed"},"\u5df2\u9884\u7ea6"):d.a.createElement("button",{className:"subscribe",onClick:a.bind(this,t.live_id)},"\u7acb\u5373\u9884\u7ea6"))}var V=Object(M.g)(H),Y=(a(1201),function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(s)))).navTop=183,a.prevY=0,a.state={navs:[{text:"\u79ef\u798f\u6c14",id:"lucky-value"},{text:"\u5e78\u8fd0\u5927\u62bd\u5956",id:"lucky-draw"},{text:"\u9884\u4ed8\u5b9a\u91d1",id:"deposit"},{text:"\u7cbe\u54c1\u7279\u60e0",id:"best-courses"},{text:"AI\u6d4b\u8bd5",id:"ai-test"},{text:"\u5927\u5496\u76f4\u64ad",id:"live"}],index:0},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.toSection,a=e.navs,n=e.index;return d.a.createElement("div",{id:"main-banner"},d.a.createElement("div",{className:"banner"}),d.a.createElement("nav",{id:"main-nav"},d.a.createElement("ul",null,a.map(function(e,a){return d.a.createElement("li",{key:a,className:n===a?"active":""},d.a.createElement("a",{href:"#".concat(e.id),onClick:function(e){return t(a,e)}},e.text))}))))}}]),t}(m.Component)),W=a(37),X=a.n(W),J=a(31),G=a(156),K=a(24),Z=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).loginInfo=function(e){a.setState({userInfoList:e}),0!==a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())},a.appLogin=function(){var e=Object(G.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){c.a.info(t.uid),X.a.set("token",t.token,{expires:e,path:"/",domain:"julyedu.com"}),X.a.set("plat",t.plat,{expires:e,path:"/",domain:"julyedu.com"}),X.a.set("uid",t.uid,{expires:e,path:"/",domain:"julyedu.com"}),X.a.set("uname",t.uname,{expires:e,path:"/",domain:"julyedu.com"}),X.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:"julyedu.com"})}),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.getActiveIndex=function(e,t){for(var a=0,n=e.length;a<n;a++)if(e[a]>t)return a?Math.abs(t-e[a])<Math.abs(t-e[a-1])?a:a-1:a;return e.length-1},a.setInitialNavActiveStatus=function(){new MutationObserver(Object(f.debounce)(function(e,t){var n=a.state.navs.map(function(e){return document.querySelector("#".concat(e.id))});if(n.every(function(e){return e})){var s=n.map(function(e){return e.offsetTop}),c=a.getActiveIndex(s,window.pageYOffset);a.setState({index:c,navsTop:s},function(){a.calcNavActive(),t.disconnect()})}},30)).observe(document.querySelector("#blessing-preheat"),{childList:!0,subtree:!0})},a.initNav=function(e){var t=a.state.navs;e&&a.setState({navs:t.filter(function(e){return"deposit"!==e.id})})},a.fetchMoudleId=function(e){var t=a.state.navs;return Object(f.findIndex)(t,function(t){return t.id===e})},a.handleToAddBlessing=function(e){h.d.post("".concat(API.home,"/sys/add/blessing"),{share_platform:e,type:3}).then(function(e){200===e.data.code&&c.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1)})},a.handleToSign=function(){h.d.post("".concat(API.home,"/sys/add/blessing"),{type:1}).then(function(e){200===e.data.code&&(a.setState({isSign:!0}),c.a.info("+5\u70b9\u798f\u6c14\u503c~",2,null,!1))})},a.handleToHide=function(e){var t={};t[e]=!1,a.setState(Object(n.a)({},t))},a.handleToShow=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!a.props.user.hasError;if(t&&!s)a.toLogin();else{var c={};c[e]=!0,a.setState(Object(n.a)({},c))}},a.handleToShowInvite=function(){if(!a.props.user.hasError)if(Object(h.c)("version")){Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})}else _.a.toDataURL("".concat(API.m,"/invite"),{width:120,height:120,margin:1}).then(function(e){a.setState({inviteUrl:e,inviteVisible:!0})}).catch(function(e){console.error(e)});else a.toLogin()},a.handleToShowNotice=function(){h.d.get("".concat(API["base-api"],"/sys/activity/create_blessing_qrcode")).then(function(e){var t=e.data,n=t.errno,s=t.data;200===n?_.a.toDataURL(s.url,{width:120,height:120,margin:1}).then(function(e){a.setState({isServer:!0,serverUrl:e})}).catch(function(e){console.error(e)}):4030!==n&&4040!==n||a.toLogin()})},a.toLogin=function(){var e=a.props.history;Object(h.c)("version")?Object(h.a)("toLogin"):e.push("/passport")},a.onCopy=function(){c.a.info("\u590d\u5236\u6210\u529f",2,null,!1)},a.toSection=function(e,t){var n=a.state.navs;t.preventDefault();var s=document.querySelector("#".concat(n[e].id)).offsetTop;a.setState({index:e}),window.scrollTo({top:s-60,left:0})},a.calcNavActive=function(){var e,t=a.state,n=t.navs,s=t.index,c=window.scrollY,o=c>a.prevY?"up":"down";e="up"===o?s+1>=n.length?s:s+1:s-1<=0?0:s-1;var r=document.querySelector("#".concat(n[e].id)),i=document.querySelector("#main-nav");if(r){var l=r.offsetTop;c<=a.navTop?i.classList.remove("fixed"):!i.classList.contains("fixed")&&i.classList.add("fixed"),"up"===o?c+30+30>=l&&a.setState({index:e}):c+30+20<=l&&a.setState({index:e}),a.prevY=c}},a.navTop=183,a.prevY=0,a.state={userInfoList:[],isRule:!1,isCourse:!1,inviteUrl:"",inviteVisible:!1,joinLotteryVisible:!1,timelineShareVisible:!1,showRecordList:!1,isFormal:!1,isServer:!1,serverUrl:"",shareMark:!1,userInfo:{},isSign:!1,navs:[{text:"\u79ef\u798f\u6c14",id:"lucky-value"},{text:"\u5e78\u8fd0\u5927\u62bd\u5956",id:"lucky-draw"},{text:"\u9884\u4ed8\u5b9a\u91d1",id:"deposit"},{text:"\u7cbe\u54c1\u7279\u60e0",id:"best-courses"},{text:"AI\u6d4b\u8bd5",id:"ai-test"},{text:"\u5927\u5496\u76f4\u64ad",id:"live"}],index:0,userHasError:e.user.hasError},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchUserBlessing(),this.setInitialNavActiveStatus(),window.addEventListener("scroll",Object(f.throttle)(this.calcNavActive,100)),Object(h.f)()&&Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:window.location.href,imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),window.loginInfo=function(t){e.loginInfo(t)},window.getNewData=function(t){e.fetchUserBlessing()},window.QQWXWBshare=function(t){e.handleToAddBlessing(t)}}},{key:"fetchUserBlessing",value:function(){var e=this,t=this.state.userInfo;h.d.get("".concat(API.home,"/sys/user/blessing")).then(function(a){var n=a.data,s=n.code,c=n.data;200===s&&(e.setState({isSign:!!c.today_signed,isFormal:c.is_activity,userInfo:Object.assign({},t,{blessingVal:c.user_blessing_value,buyBlessing:c.types_total_blessing_value&&c.types_total_blessing_value.buy_course?c.types_total_blessing_value.buy_course:0,inviteBlessing:c.types_total_blessing_value&&c.types_total_blessing_value.invite?c.types_total_blessing_value.invite:0})}),1===c.is_login&&e.handleToSign(),e.initNav(c.is_activity))})}},{key:"render",value:function(){var e=this,t=this.state,a=t.navs,n=t.userInfo,s=t.isRule,c=t.isCourse,o=t.inviteUrl,r=t.inviteVisible,i=t.isFormal,l=t.isServer,u=t.serverUrl,m=t.isSign,p=t.showRecordList,_=t.shareMark,h=t.index,f=this.props.history,y=!this.props.user.hasError;return d.a.createElement("div",{id:"blessing-preheat"},d.a.createElement(Y,{isFormal:i,navs:a,toSection:this.toSection,index:h}),d.a.createElement(O,{id:"lucky-value",text:"\u79ef\u798f\u6c14\uff0c\u4eab\u53d7\u66f4\u591a\u798f\u5229",styles:{margin:"60px 0 15px"}}),d.a.createElement(b.b,{className:"luck-draw__button",to:"/blessingRank"},"\u798f\u6c14\u6392\u884c\u699c>"),d.a.createElement("div",{className:"demo"},String(!this.props.user.hasError)),d.a.createElement(A,{isSign:m,userInfo:n,isLogin:y,history:this.props.history,toSection:function(t){return e.toSection(e.fetchMoudleId("best-courses"),t)},handleToShowList:function(){return e.handleToShow("isCourse")},handleToShowInvite:this.handleToShowInvite,handleToShowNotice:this.handleToShowNotice,handleToShow:this.handleToShow,toLogin:this.toLogin,handleToShowShare:function(){return e.handleToShow("shareMark")},handleToHideShare:function(){return e.handleToHide("shareMark")}}),d.a.createElement(O,{id:"lucky-draw",text:"\u5e78\u8fd0\u5927\u62bd\u5956",styles:{margin:"30px 0 10px"}}),d.a.createElement("p",{className:"luck-draw__tip"},"- \u5c06\u4e8e11\u670811\u65e510\u70b9\u5f00\u542f -"),d.a.createElement("button",{className:"luck-draw__button",onClick:function(){return e.handleToShow("isRule")}},"\u6d3b\u52a8\u89c4\u5219>"),d.a.createElement(I,null),0===i&&d.a.createElement(d.a.Fragment,null,d.a.createElement(O,{id:"deposit",text:"\u9884\u4ed81\u5143\u5b9a\u91d1\uff0c\u6700\u9ad8\u53ef\u7701100\u5143",styles:{margin:"30px 0 15px"}}),d.a.createElement(q,null)),d.a.createElement(O,{id:"best-courses",text:"\u7cbe\u54c1\u8bfe\u7a0b\u7279\u60e0\u4e13\u533a",styles:{margin:"30px 0 15px"}}),d.a.createElement(x,{isFormal:i,isLogin:y,history:this.props.history,toLogin:this.toLogin}),s&&d.a.createElement(v,{handleToHide:function(){return e.handleToHide("isRule")}}),c&&d.a.createElement(E,{toLogin:this.toLogin,history:f,isLogin:y,handleToHide:function(){return e.handleToHide("isCourse")}}),p&&d.a.createElement(g,{handleToHide:function(){return e.handleToHide("showRecordList")}}),_&&d.a.createElement(w,null),d.a.createElement(B.h,{visible:r,title:"\u626b\u7801\u9080\u8bf7\u597d\u53cb\u6ce8\u518c+10\u70b9\u798f\u6c14\u503c",className:"invite-popup"},d.a.createElement("img",{src:o,alt:"barcode",className:"qr-code"}),d.a.createElement(F.CopyToClipboard,{text:"".concat(API.m,'/invite"'),onCopy:this.onCopy},d.a.createElement("button",null,"\u4e00\u952e\u590d\u5236\u7f51\u5740"))),d.a.createElement(B.h,{visible:l,title:"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7",className:"invite-popup"},d.a.createElement("img",{src:u,alt:"barcode",className:"qr-code"})),d.a.createElement(B.h,{visible:this.state.joinLotteryVisible,title:"\u4f60\u5df2\u6210\u529f\u53c2\u4e0e\u672c\u65f6\u6bb5\u62bd\u5956",className:"join-lottery"},d.a.createElement("div",{className:"text"},d.a.createElement("div",{className:"code"},"\u62bd\u5956\u7801\u4e3a\uff1a99999999"),d.a.createElement("div",{className:"time"},"\u672c\u65f6\u6bb5\u7684\u4e2d\u5956\u7ed3\u679c\u5c06\u5728xx:xx\u516c\u5e03"),d.a.createElement("div",{className:"hint"},"\u4f60\u53ef\u5173\u6ce8\u2018\u4e03\u6708\u5728\u7ebf\u2019\u670d\u52a1\u53f7\u7b2c\u4e00\u65f6\u95f4\u83b7\u5f97\u4e2d\u5956\u4fe1\u606f\u3002"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",className:"qr-code",alt:""})),d.a.createElement("button",{onClick:function(){e.setState({joinLottery:!1})}},"\u77e5\u9053\u4e86")),d.a.createElement(B.h,{title:"\u5fae\u4fe1\u626b\u7801\u5206\u4eab\u5230\u5fae\u4fe1\u670b\u53cb\u5708",visible:this.state.timelineShareVisible,className:"timeline-share"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:"",className:"qr-code"})),d.a.createElement(O,{id:"ai-test",text:"\u5168\u56fdAI\u5de5\u7a0b\u5e08\u6c34\u5e73\u6d4b\u8bd5",styles:{margin:"30px 0 15px"}}),d.a.createElement("div",{className:"test__record",onClick:function(){return e.handleToShow("showRecordList",!0)}},"\u6d4b\u8bd5\u8bb0\u5f55>"),d.a.createElement(R,{history:f,isLogin:y,toLogin:this.toLogin}),d.a.createElement(z,null),d.a.createElement(V,{isFormal:i}))}}]),t}(m.Component);t.default=Object(K.d)(Object(T.b)(function(e){return{user:e.user}},{setCurrentUser:J.g,startFetchUser:J.h}))(Z)},720:function(e,t,a){"use strict";var n=a(721).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},721:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),c=r(a(0)),o=r(a(722));function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(t.CopyToClipboard=function(e){function t(){var e,a,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,r=Array(s),l=0;l<s;l++)r[l]=arguments[l];return a=n=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),n.onClick=function(e){var t=n.props,a=t.text,s=t.onCopy,r=t.children,i=t.options,l=c.default.Children.only(r),u=(0,o.default)(a,i);s&&s(a,u),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(e)},i(n,a)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),s(t,[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),a=function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(e,["text","onCopy","options","children"]),s=c.default.Children.only(t);return c.default.cloneElement(s,n({},a,{onClick:this.onClick}))}}]),t}()).defaultProps={onCopy:void 0,options:void 0}},722:function(e,t,a){"use strict";var n=a(723),s="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var a,c,o,r,i,l,u=!1;t||(t={}),a=t.debug||!1;try{if(o=n(),r=document.createRange(),i=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(a){a.stopPropagation(),t.format&&(a.preventDefault(),a.clipboardData.clearData(),a.clipboardData.setData(t.format,e))}),document.body.appendChild(l),r.selectNodeContents(l),i.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(m){a&&console.error("unable to copy using execCommand: ",m),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),u=!0}catch(m){a&&console.error("unable to copy using clipboardData: ",m),a&&console.error("falling back to prompt"),c=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:s),window.prompt(c,e)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(r):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}},723:function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,a=[],n=0;n<e.rangeCount;n++)a.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||a.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}}]);
//# sourceMappingURL=blessing-preheat.dadc0252.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1186:function(e,t,a){},1187:function(e,t,a){},1188:function(e,t,a){},1189:function(e,t,a){},1190:function(e,t,a){},1191:function(e,t,a){},1192:function(e,t,a){},1193:function(e,t,a){},1194:function(e,t,a){},1195:function(e,t,a){},1196:function(e,t,a){},1197:function(e,t,a){},1198:function(e,t,a){},1199:function(e,t,a){},1200:function(e,t,a){},1201:function(e,t,a){},1235:function(e,t,a){"use strict";a.r(t);var n=a(20),s=(a(41),a(12)),c=a.n(s),o=a(4),r=a(7),i=a(5),l=a(8),u=a(9),m=a(0),d=a.n(m),p=a(624),_=a.n(p),h=a(3),b=a(15),f=a(42),v=(a(1186),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).state={rules:["\u2022\t\u62bd\u5956\u7684\u6b21\u6570\u53ef\u901a\u8fc7\u79ef\u798f\u6c14\u83b7\u5f97\uff0c\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u62bd\u5956\u7684\u6b21\u6570\u8d8a\u591a;","\u2022\t\u672c\u6b21\u62bd\u5956\u5f62\u5f0f\u4e3a\u5f00\u5956\u5236\uff0c\u4e0b\u4e00\u65f6\u6bb5\u5f00\u542f\u62bd\u5956\u524d\u4f1a\u516c\u5e03\u4e0a\u4e00\u6b21\u4e2d\u5956\u7ed3\u679c\u53ca\u540d\u5355\uff0c\u53ef\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u53ca\u65f6\u83b7\u53d6\u4e2d\u5956\u7ed3\u679c\uff0c\u63d0\u9192\u53c2\u4e0e\u4e0b\u6b21\u62bd\u5956;","\u2022\t\u6bcf\u4e2a\u65f6\u6bb5\u4ec5\u53ef\u4f7f\u7528\u4e00\u6b21\u62bd\u5956\u673a\u4f1a\uff0c\u6bcf\u65e5\u62bd\u5956\u6b21\u6570\u9650\u5f53\u65e5\u7528\uff0c\u62bd\u5956\u6b21\u6570\u4e0d\u7d2f\u52a0\u81f3\u6b21\u65e5;","\u2022\t\u4e2d\u5956\u540e\u8bf7\u53ca\u65f6\u586b\u5199\u90ae\u5bc4\u4fe1\u606f\uff0c\u4e0d\u586b\u5199\u89c6\u4e3a\u4e3b\u52a8\u653e\u5f03\u5956\u54c1\uff1b","\u2022\t\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u6240\u6709\u3002"]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.state.rules,t=this.props.handleToHide;return d.a.createElement("div",{className:"rule-popup__container"},d.a.createElement("div",{className:"rule-popup"},d.a.createElement("h2",{className:"rule-popup__title"},"\u6d3b\u52a8\u89c4\u5219"),d.a.createElement("ul",{className:"rule-popup__list"},e.map(function(e,t){return d.a.createElement("li",{className:"rule-popup__item",key:t},e)}))),d.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:t}))}}]),t}(m.Component)),E=(a(1187),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).fetchCourseData=function(){Promise.all([h.d.get("".concat(API.home,"/sys/browse/blessing/courses")),h.d.get("".concat(API.home,"/sys/user/blessing"))]).then(function(e){var t=e[0].data,n=t.code,s=t.data,c=e[1].data.data.today_browsed_courses||[];200===n&&a.setState({courseList:s.map(function(e){return c.some(function(t){return t==e.course_id})?Object.assign({},e,{blessing:2}):e})})})},a.toCourseDetail=function(e){console.log(a.props);var t=a.props,n=t.isLogin,s=t.history,c=t.toLogin;if(n)if(Object(h.c)("version")){var o=0;o=e.blessing?2:1;var r={courseId:e.course_id,type:o};Object(h.a)("toCourse",r)}else s.push("/detail?id=".concat(e.course_id,"&ac=11"));else c()},a.state={courseList:[]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseData()}},{key:"render",value:function(){var e=this,t=this.state.courseList,a=this.props.handleToHide;return d.a.createElement("div",{className:"course-popup__container"},d.a.createElement("div",{className:"course-popup"},d.a.createElement("h2",{className:"course-popup__title"},"\u6307\u5b9a\u8bfe\u7a0b"),d.a.createElement("div",{className:"course-popup__list"},t.map(function(t){return d.a.createElement("span",{className:"course-popup__item",key:t.course_id,onClick:function(){e.toCourseDetail(t)}},d.a.createElement("span",{className:"course-popup__name"},t.course_title),t.blessing&&d.a.createElement("span",null,"+2\u70b9"))}))),d.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:a}))}}]),t}(m.Component)),g=(a(1188),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).state={recordList:[]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/sys/ai_test/get_user_testinfo")).then(function(t){var a=t.data,n=a.code,s=a.data.user_test_record;200===n&&e.setState({recordList:s})})}},{key:"render",value:function(){var e=this.state.recordList,t=this.props.handleToHide;return d.a.createElement("div",{className:"record__mark"},d.a.createElement("div",{className:"gift__record"},d.a.createElement("div",{className:"close__button",onClick:t},d.a.createElement("i",{className:"icon iconfont iconiconfront-77"})),d.a.createElement("p",{className:"mark__title"},"\u6d4b\u8bd5\u8bb0\u5f55"),d.a.createElement("p",{className:"mark__tip"},"\u591a\u6b21\u6d4b\u8bd5\u4fdd\u7559\u6700\u9ad8\u5206\uff0c\u53ef\u67e5\u770b\u6700\u8fd1\u4e00\u6b21\u7b54\u9898\u8bb0\u5f55"),d.a.createElement("div",null,d.a.createElement("div",{className:"table__head"},d.a.createElement("span",{className:"tr"},"\u6d4b\u8bd5\u65f6\u95f4"),d.a.createElement("span",{className:"tr"},"\u5206\u6570"),d.a.createElement("span",{className:"tr"},"\u64cd\u4f5c")),d.a.createElement("div",{className:"table__body"},e.map(function(e,t){return d.a.createElement("div",{className:"tr__container",key:t},d.a.createElement("span",{className:"tr"},e.submit_time),d.a.createElement("span",{className:"tr"},e.score),d.a.createElement("span",{className:"tr"},0===t?d.a.createElement("a",{href:"/levelTest/report?id=".concat(e.id)},"\u6d4b\u8bd5\u8bb0\u5f55"):null))})))))}}]),t}(m.Component)),y=a(17),N=a.n(y);a(1189);var j,C=function(e){return function(t){function a(){return Object(o.a)(this,a),Object(i.a)(this,Object(l.a)(a).apply(this,arguments))}return Object(u.a)(a,t),Object(r.a)(a,[{key:"render",value:function(){return d.a.createElement("div",{className:"list-frame"},d.a.createElement("div",{className:"list-frame__content"},d.a.createElement(e,this.props)))}}]),a}(m.Component)},k=(a(1190),function(e){function t(){return Object(o.a)(this,t),Object(i.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id;return d.a.createElement("div",{className:"course-container"},d.a.createElement("div",{className:"course__cover"},d.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(m.Component)),O=(a(1191),function(e){function t(){return Object(o.a)(this,t),Object(i.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.text,a=e.size,n=e.styles,s=e.id,c=a?"list-header--".concat(a):"";return d.a.createElement("div",{id:s,className:N()("list-header",c),style:n},d.a.createElement("i",{className:"list-header__decorate","data-position":"left"}),t?d.a.createElement("h2",{className:"list-header__content"},t):this.props.children,d.a.createElement("i",{className:"list-header__decorate","data-position":"right"}))}}]),t}(m.Component)),x=(a(1192),C(function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).fetchAICourse=function(e){var t=a.state,n=t.basic,s=t.advanced,c=t.higher,o=t.expand;h.d.get("".concat(API.home,"/sys/ai_grow_up_courses/").concat(e)).then(function(t){var r=t.data,i=r.code,l=r.data;200===i&&(l.length>4?("one"===e&&a.setState({basic:Object.assign({},n,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})}),"two"===e&&a.setState({advanced:Object.assign({},s,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})}),"three"===e&&a.setState({higher:Object.assign({},c,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})}),"four"===e&&a.setState({expand:Object.assign({},o,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})})):("one"===e&&a.setState({basic:Object.assign({},n,{isMore:!1,course:l,courseList:l})}),"two"===e&&a.setState({advanced:Object.assign({},s,{isMore:!1,course:l,courseList:l})}),"three"===e&&a.setState({higher:Object.assign({},c,{isMore:!1,course:l,courseList:l})}),"four"===e&&a.setState({expand:Object.assign({},o,{isMore:!1,course:l,courseList:l})})))})},a.fetchCourseData=function(){var e=a.state,t=e.group,n=e.training;h.d.get("".concat(API.home,"/sys/preheat_data")).then(function(e){var s=e.data,c=s.code,o=s.data;200===c&&(o.excellent_course.length>2?a.setState({group:Object.assign({},t,{isMore:!0,course:o.excellent_course.filter(function(e,t){return t<2}),courseList:o.excellent_course})}):a.setState({group:Object.assign({},t,{isMore:!1,course:o.excellent_course,courseList:o.excellent_course})}),o.ai_elite_courses.length>2?a.setState({training:Object.assign({},n,{isMore:!0,course:o.ai_elite_courses.filter(function(e,t){return t<2}),courseList:o.ai_elite_courses})}):a.setState({training:Object.assign({},n,{isMore:!1,course:o.ai_elite_courses,courseList:o.ai_elite_courses})}))})},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},a.setState(Object(n.a)({},t))):(t[e]="group"===e||"training"===e?{isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<2}),courseList:a.state[e].courseList}:{isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList},a.setState(Object(n.a)({},t)))},a.toQQque=function(){Object(h.c)("version")?Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="https://q.url.cn/AB8aue?_type=wpa&qidian=true"},a.toCourse=function(e){var t=a.props.history;if(Object(h.c)("version")){var n={courseId:e,type:0};Object(h.a)("toCourse",n)}else t.push("/detail?id=".concat(e))},a.state={basic:{course:[],courseList:[],isMore:!1},advanced:{course:[],courseList:[],isMore:!1},higher:{course:[],courseList:[],isMore:!1},expand:{course:[],courseList:[],isMore:!1},group:{course:[],courseList:[],isMore:!1},training:{course:[],courseList:[],isMore:!1}},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseData(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four")}},{key:"toReceiveCoupon",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=this.props,o=s.isLogin,r=s.toLogin;o?h.d.post("".concat(API.home,"/sys/activity/coupon/receive"),{course_id:e}).then(function(s){var o=s.data,r=o.code,i=o.msg;if(200===r){c.a.info("\u9886\u53d6\u6210\u529f\uff5e",2,null,!1);var l={};l[a]={isMore:t.state[a].isMore,course:t.state[a].course.map(function(t){return t.course_id===e?Object.assign({},t,{course_status:2}):t}),courseList:t.state[a].courseList.map(function(t){return t.course_id===e?Object.assign({},t,{course_status:2}):t})},t.setState(Object(n.a)({},l))}else c.a.info(i,2,null,!1)}):r()}},{key:"render",value:function(){var e=this,t=this.props.isFormal,a=this.state,n=a.basic,s=a.advanced,c=a.higher,o=a.expand,r=a.group,i=a.training;return d.a.createElement("div",{className:"boutique-course"},d.a.createElement(O,{text:"\u96c6\u8bad\u8425\u3001\u5c31\u4e1a\u73ed",size:"middle",styles:{margin:"20px 0 15px"}}),r.course&&r.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{"data-layout":"row"},r.course.map(function(t){return d.a.createElement(k,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},d.a.createElement("div",{className:"coupon-course__footer"},d.a.createElement("a",{onClick:function(){return e.toQQque()},className:"course-button"},"\u7acb\u62a2\u8d85\u4f4e\u56e2\u8d2d\u4ef7")))})),r.courseList&&r.courseList.length>2&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("group")}},r.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),d.a.createElement(O,{text:"AI\u7279\u8bad\u8425",size:"middle",styles:{margin:"0 0 15px"}}),i.course&&i.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{"data-layout":"row"},i.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"training")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),i.courseList&&i.courseList.length>2&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("training")}},i.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),d.a.createElement(O,{text:"AI\u6210\u957f\u4e4b\u8def",size:"middle",styles:{margin:"0 0 15px"}}),n.course&&n.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("h4",{className:"ai-course__subtitle"},"\u57fa\u7840"),d.a.createElement("div",{"data-layout":"row"},n.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},0===a.type&&d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"basic")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")),1===a.type&&d.a.createElement("div",{className:"cent-course__footer"},1===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button"},"1\u5206\u94b1\u5f00\u56e2"),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),n.courseList&&n.courseList.length>4&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("basic")}},n.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),s.course&&s.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("h4",{className:"ai-course__subtitle"},"\u8fdb\u9636"),d.a.createElement("div",{"data-layout":"row"},s.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},0===a.type&&d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"advanced")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")),1===a.type&&d.a.createElement("div",{className:"cent-course__footer"},1===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button"},"1\u5206\u94b1\u5f00\u56e2"),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),s.courseList&&s.courseList.length>4&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("advanced")}},s.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),c.course&&c.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("h4",{className:"ai-course__subtitle"},"\u9ad8\u9636"),d.a.createElement("div",{"data-layout":"row"},c.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},0===a.type&&d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"higher")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")),1===a.type&&d.a.createElement("div",{className:"cent-course__footer"},1===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button"},"1\u5206\u94b1\u5f00\u56e2"),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),c.courseList&&c.courseList.length>4&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("higher")}},c.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")),o.course&&o.course.length>0&&d.a.createElement(d.a.Fragment,null,d.a.createElement("h4",{className:"ai-course__subtitle"},"\u6269\u5c55"),d.a.createElement("div",{"data-layout":"row"},o.course.map(function(a){return d.a.createElement(k,{image:a.image_name,key:a.course_id,id:a.course_id,toCourse:e.toCourse},0===a.type&&d.a.createElement("div",{className:"coupon-course__footer"},1===a.course_status&&d.a.createElement("a",{className:N()("coupon-course__button","coupon-course__button--receive"),onClick:function(){return e.toReceiveCoupon(a.course_id,"expand")}},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u7acb\u5373\u9886\u5238")),0===t&&2===a.course_status&&d.a.createElement("a",{className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"11.11\u5f00\u59cb\u4f7f\u7528")),1===t&&2===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"coupon-course__button"},d.a.createElement("span",{className:"coupon-course__button-price"},d.a.createElement("em",null,"\xa5",a.coupon),d.a.createElement("i",null,"\u4ee3\u91d1\u5238")),d.a.createElement("span",{className:"coupon-course__button-label"},"\u5f00\u59cb\u4f7f\u7528")),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")),1===a.type&&d.a.createElement("div",{className:"cent-course__footer"},1===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button"},"1\u5206\u94b1\u5f00\u56e2"),3===a.course_status&&d.a.createElement("a",{onClick:function(){return e.toCourse(a.course_id)},className:"course-button","data-type":"study"},"\u5f00\u59cb\u5b66\u4e60")))})),o.courseList&&o.courseList.length>4&&d.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("expand")}},o.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")))}}]),t}(m.Component))),w=(a(1193),function(e){function t(){return Object(o.a)(this,t),Object(i.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){return d.a.createElement("div",{className:"share__container"},h.b.isWeixin&&d.a.createElement("div",{className:"share__row"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/throw_icon.png"})),d.a.createElement("div",{className:"share__content"},d.a.createElement("p",{className:"share__text"},"\u5206\u4eab\u6d3b\u52a8\u9875\u5230\u670b\u53cb\u5708\u3001qq\u3001\u5fae\u535a\u5206\u522b"),d.a.createElement("div",{className:"share__rule"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png"}),d.a.createElement("span",null,"\uff08\u6bcf\u4e2a\u5e73\u53f0\u6bcf\u5929\u4e00\u6b21\uff09"))))}}]),t}(m.Component)),S=(a(158),a(91)),L=a.n(S),I=(a(1194),C(function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).fetchActivityPrize=function(){h.d.get("".concat(API.home,"/sys/activity/prize_data")).then(function(e){var t=e.data,n=t.code,s=t.data.list,c=void 0===s?[]:s;200===n&&a.setState({tabs:c.map(function(e){return{title:e.date}}),prizes:c})})},a.state={tabs:[],prizes:[]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchActivityPrize()}},{key:"render",value:function(){var e=this.state,t=e.tabs,a=e.prizes;return d.a.createElement("div",{className:"luck-draw__container"},d.a.createElement(L.a,{swipeable:!1,tabs:t,tabBarBackgroundColor:"transparent",tabBarUnderlineStyle:{display:"none"}},a.map(function(e,t){var a=e.son;return d.a.createElement("div",{className:"tab__body",key:t},a.map(function(e){return d.a.createElement("div",{key:e.id},d.a.createElement("h2",{className:"prize__label"},d.a.createElement("i",{className:"prize__label-icon"}),d.a.createElement("span",null,e.time)),d.a.createElement("div",{className:"prize__content"},e.data.map(function(t,a){return d.a.createElement("div",{className:"prize__container",key:"".concat(e.id,"-").concat(a)},d.a.createElement("div",{className:"prize__image"},d.a.createElement("img",{src:t.img,alt:"image"})),d.a.createElement("p",{className:"prize__desc"},t.name),d.a.createElement("p",{className:"prize__desc"},"\uff08",t.num,"\u6570\u91cf\uff09"))})))}))})))}}]),t}(m.Component))),T=a(21),A=(a(1195),C(Object(T.b)(function(e){return{uid:e.user.data.uid||""}})(j=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).qqToShare=function(){var e=a.props,t=e.uid,n=e.history;Object(h.c)("version")?t?Object(h.a)("QQshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}):Object(h.a)("toLogin"):t?(n.push("/blessingPreheat?utm_source=qq&utm_medium=11&utm_campaign=QQ11&utm_content=11&utm_term=11"),a.fetchUserBlessing(3,function(){a.handleToAddBlessing(3)})):n.push("/passport")},a.wechatToShare=function(){var e=a.props,t=e.uid,n=e.history;Object(h.c)("version")?t?Object(h.a)("WXshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}):Object(h.a)("toLogin"):t?(n.push("/blessingPreheat?utm_source=1&utm_medium=1&utm_campaign=11&utm_content=1&utm_term=1"),a.fetchUserBlessing(1,function(){a.handleToAddBlessing(1)})):n.push("/passport")},a.weiboToShare=function(){var e=a.props,t=e.uid,n=e.history;Object(h.c)("version")?t?Object(h.a)("WBshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}):Object(h.a)("toLogin"):t?(n.push("/blessingPreheat?utm_source=sina&utm_medium=11&utm_campaign=sina11&utm_content=1&utm_term=11"),a.fetchUserBlessing(2,function(){a.handleToAddBlessing(2)})):n.push("/passport")},a.handleToAddBlessing=function(e){h.d.post("".concat(API.home,"/sys/add/blessing"),{share_platform:e,type:3}).then(function(e){200===e.data.code&&c.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1)})},a.state={rules:["app/h5/pc\u7aef\u6d3b\u52a8\u9875\u7b7e\u5230+5\u70b9\u798f\u6c14\u503c\uff08\u6bcf\u5929\u4e00\u6b21\uff09","\u5173\u6ce8\u4e03\u6708\u5728\u7ebf\u5fae\u4fe1\u670d\u52a1\u53f7+30\u70b9\u798f\u6c14\u503c\uff08\u4ec5\u9650\u4e00\u6b21\uff09","\u5206\u4eab\u6d3b\u52a8\u9875\u5230\u670b\u53cb\u5708\u3001qq\uff0c\u5206\u522b+2\u70b9\u798f\u6c14\u503c\uff08\u6bcf\u4e2a\u5e73\u53f0\u6bcf\u5929\u4e00\u6b21\uff09","\u6d4f\u89c8\u6307\u5b9a\u8bfe\u7a0b\u8be6\u60c5\u9875\uff0c\u4e00\u95e8\u8bfe\u7a0b+2\u70b9\u798f\u6c14\u503c\uff08\u6bcf\u5929\u4e00\u6b21\uff09","\u9080\u8bf7\u597d\u53cb\u6ce8\u518c\uff0c+10\u70b9\u798f\u6c14\u503c/\u4eba\uff08\u65e0\u4e0a\u9650\uff09","\u6d3b\u52a8\u671f\u95f4\u6bcf\u8d2d\u4e70\u4e00\u95e8\u8bfe\u7a0b+20\u70b9\u798f\u6c14\u503c"],welfareRuleList:[{range:"50~100",rules:[{id:1,text:"1.\u6bcf\u5929\u4e00\u6b21\u62bd\u5956\u673a\u4f1a\uff1b"},{id:2,text:"2.\u4e2d\u5956\u6982\u7387\u7ffb2\u500d",des:"\uff08\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff09\uff1b"},{id:3,text:"3.\u6ee1111\u51cf11\u3001\u6ee11111\u51cf111\u3002"}]},{range:"101~190",rules:[{id:1,text:"1.\u6bcf\u5929\u4e24\u6b21\u62bd\u5956\u673a\u4f1a\uff1b"},{id:2,text:"2.\u4e2d\u5956\u6982\u7387\u7ffb3\u500d",des:"\uff08\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff09\uff1b"},{id:3,text:"3.\u6ee1111\u51cf31\u3001\u6ee11111\u51cf211\uff1b"},{id:4,text:"4.AI\u6c34\u5e73\u6d4b\u8bd5\u589e\u52a01\u6b21\u3002"}]},{range:">190",rules:[{id:1,text:"1.\u6bcf\u5929\u4e09\u6b21\u62bd\u5956\u673a\u4f1a\uff1b"},{id:2,text:"2.\u4e2d\u5956\u6982\u7387\u7ffb4\u500d",des:"\uff08\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff09\uff1b"},{id:3,text:"3.\u6ee1111\u51cf51\u3001\u6ee11111\u51cf411\uff1b"},{id:4,text:"4.AI\u6c34\u5e73\u6d4b\u8bd5\u589e\u52a02\u6b21\u3002"}]}],seconds:5},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"fetchUserBlessing",value:function(e,t){var a=this,n=this.props,s=n.handleToShowShare,o=n.handleToHideShare,r=this.state.seconds;h.d.get("".concat(API.home,"/sys/user/blessing")).then(function(n){var i=n.data,l=i.code,u=i.data;200===l&&(u.today_shared_platforms.some(function(t){return t===e})?c.a.info("\u4eca\u65e5\u5df2\u5206\u4eab\uff0c\u8bb0\u5f97\u660e\u5929\u6765~",2,null,!1):(s(),a.shareTimer=setInterval(function(){a.setState({seconds:--r},function(){0===r&&("function"===typeof t&&t(),o(),clearInterval(a.shareTimer))})},1e3)))})}},{key:"render",value:function(){var e=this,t=this.props,a=t.isSign,n=t.userInfo,s=n.blessingVal,c=void 0===s?0:s,o=n.buyBlessing,r=void 0===o?0:o,i=n.inviteBlessing,l=void 0===i?0:i,u=t.isLogin,m=t.handleToShowNotice,p=t.handleToShowList,_=t.handleToShowInvite,h=(t.handleToShow,t.toLogin),b=t.toSection,f=this.state,v=f.rules,E=f.welfareRuleList;f.seconds;return d.a.createElement("div",{className:"collect-blessing"},u?d.a.createElement(O,{text:"\u6211\u7684\u798f\u6c14\u503c\uff1a ".concat(c,"\u5206"),size:"middle",styles:{margin:"20px 0 0 0"}}):d.a.createElement(O,{size:"middle",styles:{margin:"20px 0 0 0"}},d.a.createElement("span",{className:"text_nologin"},"\u6211\u7684\u798f\u6c14\u503c\uff1a"),d.a.createElement("span",{onClick:h,className:"login__btn"},"\u767b\u5f55")),d.a.createElement("p",{className:"activity__over"},"\u6d3b\u52a8\u7ed3\u675f\u524d\u798f\u6c14\u699c\u524d50\u540d\u53ef\u83b7\u5956\u54c1\u4e00\u4efd"),E.map(function(e,t){return d.a.createElement("div",{className:"rules__item",key:t},d.a.createElement("div",{className:"item__left"},d.a.createElement("div",{className:"tip__bubble"},d.a.createElement("div",{className:"tip__text"},"\u798f\u6c14\u503c"),d.a.createElement("div",{className:"tip__style"})),d.a.createElement("div",{className:"range__number"},e.range)),d.a.createElement("div",{className:"item__right"},e.rules.map(function(e){return d.a.createElement("p",{key:e.id},e.text,d.a.createElement("span",null,e.des))})))}),d.a.createElement(O,{text:"\u798f\u6c14\u503c\u79ef\u6512\u89c4\u5219",size:"middle",styles:{margin:"30px 0 0"}}),v.map(function(t,n){return d.a.createElement("div",{className:"collect-blessing__item",key:n},d.a.createElement("i",{className:"collect-blessing__num"},n+1),d.a.createElement("p",{className:"collect-blessing__title"},t),0===n&&d.a.createElement(d.a.Fragment,null,u&&a?d.a.createElement("a",{className:"collect-blessing__content","data-status":"done"},"+5\u70b9",d.a.createElement("br",null),"\u798f\u6c14\u503c"):d.a.createElement("span",{onClick:h,className:"collect-blessing__content"},"\u70b9\u51fb",d.a.createElement("br",null),"\u7b7e\u5230")),1===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:m},"\u5173\u6ce8",d.a.createElement("br",null),"\u4e8c\u7ef4\u7801"),2===n&&d.a.createElement("div",{className:"collect-blessing__content","data-layout":"column"},d.a.createElement("p",{className:"collect-blessing__label"},"\u53bb\u5206\u4eab"),d.a.createElement("div",{className:"collect-blessing__share"},d.a.createElement("a",{className:"collect-blessing__share-button","data-type":"qq",onClick:e.qqToShare}),d.a.createElement("a",{className:"collect-blessing__share-button","data-type":"wechat",onClick:e.wechatToShare}),d.a.createElement("a",{className:"collect-blessing__share-button","data-type":"weibo",onClick:e.weiboToShare}))),3===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:p},"\u6d4f\u89c8\u8bfe\u7a0b",d.a.createElement("br",null),"\u8be6\u60c5\u9875"),4===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:_},d.a.createElement("span",null,"\u9080\u8bf7\u94fe\u63a5"),l>0&&d.a.createElement("i",null,"\u5df2\u52a0",l,"\u70b9")),5===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:b},d.a.createElement("span",null,"\u53bb\u9009\u8bfe"),r>0&&d.a.createElement("i",null,"\u5df2\u52a0",r,"\u70b9")))}))}}]),t}(m.Component))||j)),M=(a(1196),a(49)),P=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).fetchAICourse=function(){h.d.get("".concat(API.home,"/sys/pre_coursee")).then(function(e){var t=e.data,n=t.code,s=t.data,o=t.msg;200===n?a.setState({courseData:s.filter(function(e,t){return t<4}),courseDataAll:s}):c.a.info(o,2)})},a.expandPaydj=function(e){var t=a.props,n=t.user;t.history;n&&n.data&&n.data.uid?Object(h.c)("version")?Object(h.a)("earnestMoney",e):a.props.history.push("/deposit-order?oid=".concat(e,"&source=",2),{id:e,isexpand:1,sourcenum:2}):Object(h.c)("version")?Object(h.a)("toLogin"):a.props.history.push("/passport/login")},a.expandPaywk=function(e,t,n){var s=a.props,o=s.user;s.history;o&&o.data&&o.data.uid?Date.parse(new Date)/1e3>=t?Object(h.c)("version")?Object(h.a)("TailMoney"):a.props.history.push("/final-deposit-order?source=1",{id:e,sourcenum:1}):c.a.info("\u4ed8\u5c3e\u6b3e\u65f6\u95f4\u5c06\u5728"+n+"\u5f00\u542f",2):Object(h.c)("version")?Object(h.a)("toLogin"):a.props.history.push("/passport/login")},a.tostudy=function(e){if(Object(h.c)("version")){var t={courseId:e,type:0};Object(h.a)("toCourse",t)}else a.props.history.push("/getDetail?id=".concat(e))},a.showMoreData=function(){a.setState({isShowMore:!a.state.isShowMore,courseData:a.state.isShowMore?a.state.courseDataAll.filter(function(e,t){return t<4}):a.state.courseDataAll})},a.state={courseData:[],isShowMore:!1},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchAICourse()}},{key:"render",value:function(){var e=this.state,t=e.courseData,a=e.isShowMore;return d.a.createElement("div",{className:"reserve-course-module"},d.a.createElement(D,{courseData:t,expandPaydj:this.expandPaydj,expandPaywk:this.expandPaywk,tostudy:this.tostudy}),d.a.createElement("button",{className:"more-button",onClick:this.showMoreData},a?"\u6536\u8d77":"\u5c55\u5f00\u66f4\u591a"))}}]),t}(m.Component);function D(e){var t=e.courseData,a=e.expandPaydj,n=e.expandPaywk,s=e.tostudy;return d.a.createElement("div",{className:"course-list"},d.a.createElement("ul",null,t.map(function(e,t){return d.a.createElement("li",{className:"course-item-box",key:t},d.a.createElement("a",{onClick:function(){return s(e.course_id)}},d.a.createElement("div",{className:"top"},d.a.createElement("div",{className:"square"},d.a.createElement("p",{className:"circular"},"\u5230\u624b\u6700\u4f4e\xa5",d.a.createElement("span",null,Number(e.price)-Number(e.deduction_amount)-Number(e.limit_amount)))),d.a.createElement("img",{className:"course-img",src:e.image_name,alt:""}))),d.a.createElement("p",{className:"count-price"},"=\u539f\u4ef7\xa5",e.price,d.a.createElement("span",null,"-\u62b5\u6263\xa5",d.a.createElement("i",null,e.deduction_amount)),d.a.createElement("span",null,"-\u81a8\u80c0\u5238\xa5",d.a.createElement("i",null,e.limit_amount))),d.a.createElement("div",{className:"btn"},0===e.is_buy&&d.a.createElement("button",{className:"to-expand-buy1",onClick:function(){return a(e.course_id)}},"\u7acb\u5373\u4ed8\u5b9a\u91d1"),1===e.is_buy&&d.a.createElement("button",{className:"to-expand-buy2",onClick:function(){return n(e.course_id,e.start_timestamp,e.final_start_time)}},"\u7acb\u5373\u4ed8\u5c3e\u6b3e"),2===e.is_buy&&d.a.createElement("button",{className:"to-study",onClick:function(){return s(e.course_id)}},"\u5f00\u59cb\u5b66\u4e60")))})))}var U,q=C(Object(T.b)(function(e){return{user:e.user}})(Object(M.g)(P))),R=(a(1197),C(function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).startTest=function(){var e=a.props,t=e.history,n=e.isLogin,s=e.toLogin;n?t.push("/levelTest/testing"):s()},a.state={testNumber:12345,number:1,prizeListUrl:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top1.png"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top2.png"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top3-4.png"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top5-7.png"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/AIExam/top8-10.png"}]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.props.isLogin&&h.d.get("".concat(API.home,"/sys/ai_test/get_user_testinfo")).then(function(t){var a=t.data,n=a.code,s=a.data,c=s.user_test_total,o=s.user_residue_number;200===n&&e.setState({testNumber:c,number:o})})}},{key:"render",value:function(){var e=this.state,t=e.testNumber,a=e.number,n=e.prizeListUrl,s=this.props.isLogin;return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"level__test_module"},d.a.createElement("div",{className:"start__test",onClick:this.startTest},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/test_icon.png"}),d.a.createElement("div",{className:"button__text"},d.a.createElement("p",null,"\u70b9\u51fb\u6d4b\u8bd5"),s&&d.a.createElement("span",null,"\uff08\u5269\u4f59",a,"\u6b21\uff09"))),d.a.createElement("div",{className:"test__number"},"\u5df2\u6709",d.a.createElement("span",{className:"number"},t),"\u4eba\u53c2\u52a0\u6d4b\u8bd5"),d.a.createElement("div",{className:"prize__rules"},d.a.createElement("div",{className:"prize__title"},"\u2014 \u6d3b\u52a8\u5956\u54c1 \u2014"),d.a.createElement("div",{className:"prize__list"},n.map(function(e,t){return d.a.createElement("div",{className:"prize__container",key:t},d.a.createElement("img",{src:e.url}))})),d.a.createElement("div",{className:"prize__title"},"\u2014 \u6d3b\u52a8\u89c4\u5219 \u2014"),d.a.createElement("div",{className:"rules__text"},d.a.createElement("p",null,"1. 11\u67085\u65e5\u81f311\u670813\u65e5\u4e4b\u95f4\u6bcf\u4eba\u6709\u4e00\u6b21\u6d4b\u8bd5\u673a\u4f1a\uff0c\u53ef\u901a\u8fc7\u201c\u96c6\u798f\u6c14\u201d\u6d3b\u52a8\u989d\u5916\u83b7\u5f972\u6b21\u6d4b\u8bd5\u673a\u4f1a\uff1b"),d.a.createElement("p",null,"2. \u5355\u6b21\u6d4b\u8bd5\u65f6\u95f4\u4e3a\u4e00\u5c0f\u65f6\uff0c\u8d85\u65f6\u81ea\u52a8\u63d0\u4ea4\u8bd5\u5377\uff1b"),d.a.createElement("p",null,"3. \u8bd5\u5377\u5185\u5bb9\u4e3aPython\u57fa\u7840\uff088\u9053\u9898*3\u5206\uff09\u3001\u673a\u5668\u5b66\u4e60\uff0812\u9053\u9898*3\u5206\uff09\u3001\u6df1\u5ea6\u5b66\u4e60\uff0810\u9053\u9898*4\u5206\uff09\uff0c\u603b\u5206100\u5206\uff1b"),d.a.createElement("p",null,"4. \u65e0\u56fa\u5b9a\u8bd5\u5377\uff0c\u53c2\u4e0e\u6d4b\u8bd5\u65f6\u4ece\u8bd5\u9898\u5e93\u4e2d\u968f\u673a\u62bd\u9898\u7ec4\u5377\uff1b"),d.a.createElement("p",null,"5. \u6392\u884c\u699c\u5b9e\u65f6\u66f4\u65b0\uff0c\u5206\u6570\u76f8\u540c\u5219\u7528\u65f6\u77ed\u8005\u6392\u540d\u66f4\u9ad8\uff0c\u591a\u6b21\u6d4b\u8bd5\u4fdd\u7559\u6700\u9ad8\u5206\uff1b"),d.a.createElement("p",null,"6. \u5982\u53d1\u73b0\u67d0\u8d26\u53f7\u6709\u4f5c\u5f0a\u5acc\u7591\uff0c\u4e03\u6708\u5728\u7ebf\u6709\u6743\u6e05\u7a7a\u8d26\u53f7\u6d4b\u8bd5\u6210\u7ee9\uff1b"),d.a.createElement("p",null,"7. \u6d3b\u52a8\u6700\u7ec8\u89e3\u91ca\u6743\u5f52\u4e03\u6708\u5728\u7ebf\u6240\u6709\u3002")))))}}]),t}(m.Component))),z=(a(1198),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).formart=function(e){var t,a,n,s=1e3*e;return t="".concat(parseInt(s/36e5)).padStart(2,0),a="".concat(parseInt((s-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((s-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(a,"'").concat(n,'"')},a.state={rankList:[]},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/sys/ai_test/ranking/10")).then(function(t){var a=t.data.data;200===t.data.code&&e.setState({rankList:a.rankings})})}},{key:"render",value:function(){var e=this,t=this.state.rankList;return d.a.createElement(d.a.Fragment,null,d.a.createElement(O,{text:"\u6d4b\u8bd5\u6392\u884c\u699c",styles:{margin:"20px 0 10px"},size:"middle"}),d.a.createElement("div",{className:"sort__rules"},"\u4ec5\u663e\u793a\u524d10\u540d"),d.a.createElement("div",{className:"rank__list_module"},d.a.createElement("div",{className:"rank__table_head"},d.a.createElement("div",{className:"table_head table_head__sort"},"\u6392\u540d"),d.a.createElement("div",{className:"table_head table_head__user_info"},"\u7528\u6237"),d.a.createElement("div",{className:"table_head table_head__time"},"\u7528\u65f6"),d.a.createElement("div",{className:"table_head table_head__score"},"\u6210\u7ee9"),d.a.createElement("div",{className:"table_head table_head__prize"},"\u5956\u54c1")),d.a.createElement("div",{className:"rank__table_body"},t.map(function(t,a){return d.a.createElement("div",{className:"table__tr",key:a},d.a.createElement("div",{className:"table__body table_head__sort"},a>2?a+1:null),d.a.createElement("div",{className:"table__body table_head__user_info"},d.a.createElement("img",{className:"user__avatar",src:t.avatar}),d.a.createElement("span",{className:"user__name"},t.user_name)),d.a.createElement("div",{className:"table__body table_head__time"},e.formart(t.cost_time)),d.a.createElement("div",{className:"table__body table_head__score"},t.score),d.a.createElement("div",{className:"table__body table_head__prize"},t.prize))}))))}}]),t}(m.Component)),B=(a(1199),a(27)),F=a(720),H=(a(1200),Object(T.b)(function(e){return{user:e.user}})(U=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(s)))).state={tabs:[],lives:{},preheatLives:[],visible:!1,qrcode:"",today:"",isApp:Object(h.c)("version")},a.toLiveRoom=function(e){a.state.isApp?Object(h.a)("toLiveRoom",e):window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.makeSubscribe=function(e){var t=a.props,n=t.user,s=t.history;n.hasError&&s.push("/passport/login"),h.d.get("".concat(API.home,"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data;200==t.code?_.a.toDataURL(t.data.url,function(e,t){a.setState({qrcode:t,visible:!0})}):c.a.info(t.msg,2,null,!1)})},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/sys/get_live_info")).then(function(t){var a=t.data;if(200==a.code){var n,s,o=a.data.data_active.reduce(function(e,t){return t.date in e?e[t.date].push(t):e[t.date]=[t],e},{});e.props.isFormal?(n=Object.keys(o).map(function(e){return{title:e}}),s=Object(f.uniqBy)(a.data.data_active,function(e){return e.date}).findIndex(function(e){return e.is_today})):(n=a.data.data_hot.map(function(e){return{title:e.date}}),s=a.data.data_hot.findIndex(function(e){return e.is_today})),e.setState({tabs:n,lives:o,today:s,preheatLives:a.data.data_hot})}else c.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this,t=this.state,a=t.tabs,n=t.lives,s=t.visible,c=t.qrcode,o=t.preheatLives,r=t.today;return d.a.createElement("div",{id:"live"},d.a.createElement(B.h,{title:"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6",visible:s},d.a.createElement("img",{id:"live-qr-code",src:c,alt:""})),d.a.createElement("div",{className:"title"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-left.png",alt:""}),d.a.createElement("span",null,"\u5927\u5496\u76f4\u64ad"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/title-decorate-right.png",alt:""})),d.a.createElement("div",{className:"live-container"},""!==r&&d.a.createElement(L.a,{tabs:a,tabBarBackgroundColor:"transparent",tabBarActiveTextColor:"#5600DF",tabBarInactiveTextColor:"#FFF604",tabBarUnderlineStyle:{display:"none"},initialPage:r,swipeable:!1},this.props.isFormal?a.map(function(t,a){var s=n[t.title];return d.a.createElement("div",{key:a},s.map(function(t,a){return d.a.createElement(Q,{item:t,key:a,makeSubscribe:e.makeSubscribe})}))}):o.map(function(t,a){return d.a.createElement("div",{key:a},o.map(function(t,a){return d.a.createElement(Q,{key:a,item:t,makeSubscribe:e.makeSubscribe})}))}))))}}]),t}(m.Component))||U);function Q(e){var t=e.item,a=e.makeSubscribe;return d.a.createElement("div",{className:"content"},t.is_teacher?d.a.createElement("div",{className:"tag teacher"},"\u8bb2\u5e08\u5206\u4eab"):d.a.createElement("div",{className:"tag student"},"\u5b66\u5458\u5206\u4eab"),d.a.createElement("div",{className:"person-info"},d.a.createElement("div",{className:"left"},d.a.createElement("img",{src:t.avatar,alt:"\u5934\u50cf",className:"avatar"})),d.a.createElement("div",{className:"right"},d.a.createElement("div",{className:"name"},"\u8bb2\u5e08\uff1a",t.teacher),d.a.createElement("div",{className:"profession"},t.teacher_desc))),d.a.createElement("div",{className:"title"},t.title),d.a.createElement("div",{className:"time"},"\u76f4\u64ad\u65f6\u95f4\uff1a",t.time),d.a.createElement("div",{className:"outline"},d.a.createElement("div",{className:"outline-title"},"\u5185\u5bb9\u5927\u7eb2\uff1a"),d.a.createElement("ul",null,t.content.map(function(e,t){return d.a.createElement("li",{key:t},e)}))),t.on_live?d.a.createElement("button",{className:"on-living",onClick:this.toLiveRoom.bind(this,t.live_id)},"\u6b63\u5728\u76f4\u64ad"):t.is_subscribe?d.a.createElement("button",{className:"subscribed"},"\u5df2\u9884\u7ea6"):d.a.createElement("button",{className:"subscribe",onClick:a.bind(this,t.live_id)},"\u7acb\u5373\u9884\u7ea6"))}var V=Object(M.g)(H),Y=(a(1201),function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(s)))).navTop=183,a.prevY=0,a.state={navs:[{text:"\u79ef\u798f\u6c14",id:"lucky-value"},{text:"\u5e78\u8fd0\u5927\u62bd\u5956",id:"lucky-draw"},{text:"\u9884\u4ed8\u5b9a\u91d1",id:"deposit"},{text:"\u7cbe\u54c1\u7279\u60e0",id:"best-courses"},{text:"AI\u6d4b\u8bd5",id:"ai-test"},{text:"\u5927\u5496\u76f4\u64ad",id:"live"}],index:0},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.toSection,a=e.navs,n=e.index;return d.a.createElement("div",{id:"main-banner"},d.a.createElement("div",{className:"banner"}),d.a.createElement("nav",{id:"main-nav"},d.a.createElement("ul",null,a.map(function(e,a){return d.a.createElement("li",{key:a,className:n===a?"active":""},d.a.createElement("a",{href:"#".concat(e.id),onClick:function(e){return t(a,e)}},e.text))}))))}}]),t}(m.Component)),W=a(37),X=a.n(W),J=a(31),G=a(156),K=a(24),Z=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).loginInfo=function(e){a.setState({userInfoList:e}),0!==a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())},a.appLogin=function(){var e=Object(G.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){c.a.info(t.uid),X.a.set("token",t.token,{expires:e,path:"/",domain:"julyedu.com"}),X.a.set("plat",t.plat,{expires:e,path:"/",domain:"julyedu.com"}),X.a.set("uid",t.uid,{expires:e,path:"/",domain:"julyedu.com"}),X.a.set("uname",t.uname,{expires:e,path:"/",domain:"julyedu.com"}),X.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:"julyedu.com"})}),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.getActiveIndex=function(e,t){for(var a=0,n=e.length;a<n;a++)if(e[a]>t)return a?Math.abs(t-e[a])<Math.abs(t-e[a-1])?a:a-1:a;return e.length-1},a.setInitialNavActiveStatus=function(){new MutationObserver(Object(f.debounce)(function(e,t){var n=a.state.navs.map(function(e){return document.querySelector("#".concat(e.id))});if(n.every(function(e){return e})){var s=n.map(function(e){return e.offsetTop}),c=a.getActiveIndex(s,window.pageYOffset);a.setState({index:c,navsTop:s},function(){a.calcNavActive(),t.disconnect()})}},30)).observe(document.querySelector("#blessing-preheat"),{childList:!0,subtree:!0})},a.initNav=function(e){var t=a.state.navs;e&&a.setState({navs:t.filter(function(e){return"deposit"!==e.id})})},a.fetchMoudleId=function(e){var t=a.state.navs;return Object(f.findIndex)(t,function(t){return t.id===e})},a.handleToAddBlessing=function(e){h.d.post("".concat(API.home,"/sys/add/blessing"),{share_platform:e,type:3}).then(function(e){200===e.data.code&&c.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1)})},a.handleToSign=function(){h.d.post("".concat(API.home,"/sys/add/blessing"),{type:1}).then(function(e){200===e.data.code&&(a.setState({isSign:!0}),c.a.info("+5\u70b9\u798f\u6c14\u503c~",2,null,!1))})},a.handleToHide=function(e){var t={};t[e]=!1,a.setState(Object(n.a)({},t))},a.handleToShow=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!a.props.user.hasError;if(t&&s)a.toLogin();else{var c={};c[e]=!0,a.setState(Object(n.a)({},c))}},a.handleToShowInvite=function(){if(!a.props.user.hasError)if(Object(h.c)("version")){Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})}else _.a.toDataURL("".concat(API.m,"/invite"),{width:120,height:120,margin:1}).then(function(e){a.setState({inviteUrl:e,inviteVisible:!0})}).catch(function(e){console.error(e)});else a.toLogin()},a.handleToShowNotice=function(){h.d.get("".concat(API["base-api"],"/sys/activity/create_blessing_qrcode")).then(function(e){var t=e.data,n=t.errno,s=t.data;200===n?_.a.toDataURL(s.url,{width:120,height:120,margin:1}).then(function(e){a.setState({isServer:!0,serverUrl:e})}).catch(function(e){console.error(e)}):4030!==n&&4040!==n||a.toLogin()})},a.toLogin=function(){var e=a.props.history;Object(h.c)("version")?Object(h.a)("toLogin"):e.push("/passport")},a.onCopy=function(){c.a.info("\u590d\u5236\u6210\u529f",2,null,!1)},a.toSection=function(e,t){var n=a.state.navs;t.preventDefault();var s=document.querySelector("#".concat(n[e].id)).offsetTop;a.setState({index:e}),window.scrollTo({top:s-60,left:0})},a.calcNavActive=function(){var e,t=a.state,n=t.navs,s=t.index,c=window.scrollY,o=c>a.prevY?"up":"down";e="up"===o?s+1>=n.length?s:s+1:s-1<=0?0:s-1;var r=document.querySelector("#".concat(n[e].id)),i=document.querySelector("#main-nav");if(r){var l=r.offsetTop;c<=a.navTop?i.classList.remove("fixed"):!i.classList.contains("fixed")&&i.classList.add("fixed"),"up"===o?c+30+30>=l&&a.setState({index:e}):c+30+20<=l&&a.setState({index:e}),a.prevY=c}},a.navTop=183,a.prevY=0,a.state={userInfoList:[],isRule:!1,isCourse:!1,inviteUrl:"",inviteVisible:!1,joinLotteryVisible:!1,timelineShareVisible:!1,showRecordList:!1,isFormal:!1,isServer:!1,serverUrl:"",shareMark:!1,userInfo:{},isSign:!1,navs:[{text:"\u79ef\u798f\u6c14",id:"lucky-value"},{text:"\u5e78\u8fd0\u5927\u62bd\u5956",id:"lucky-draw"},{text:"\u9884\u4ed8\u5b9a\u91d1",id:"deposit"},{text:"\u7cbe\u54c1\u7279\u60e0",id:"best-courses"},{text:"AI\u6d4b\u8bd5",id:"ai-test"},{text:"\u5927\u5496\u76f4\u64ad",id:"live"}],index:0,userHasError:e.user.hasError},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchUserBlessing(),this.setInitialNavActiveStatus(),window.addEventListener("scroll",Object(f.throttle)(this.calcNavActive,100)),Object(h.f)()&&Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:window.location.href,imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),window.loginInfo=function(t){e.loginInfo(t)},window.getNewData=function(t){e.fetchUserBlessing()},window.QQWXWBshare=function(t){e.handleToAddBlessing(t)}}},{key:"fetchUserBlessing",value:function(){var e=this,t=this.state.userInfo;h.d.get("".concat(API.home,"/sys/user/blessing")).then(function(a){var n=a.data,s=n.code,c=n.data;200===s&&(e.setState({isSign:!!c.today_signed,isFormal:c.is_activity,userInfo:Object.assign({},t,{blessingVal:c.user_blessing_value,buyBlessing:c.types_total_blessing_value&&c.types_total_blessing_value.buy_course?c.types_total_blessing_value.buy_course:0,inviteBlessing:c.types_total_blessing_value&&c.types_total_blessing_value.invite?c.types_total_blessing_value.invite:0})}),1===c.is_login&&e.handleToSign(),e.initNav(c.is_activity))})}},{key:"render",value:function(){var e=this,t=this.state,a=t.navs,n=t.userInfo,s=t.isRule,c=t.isCourse,o=t.inviteUrl,r=t.inviteVisible,i=t.isFormal,l=t.isServer,u=t.serverUrl,m=t.isSign,p=t.showRecordList,_=t.shareMark,h=t.index,f=this.props.history,y=!this.props.user.hasError;return d.a.createElement("div",{id:"blessing-preheat"},d.a.createElement(Y,{isFormal:i,navs:a,toSection:this.toSection,index:h}),d.a.createElement(O,{id:"lucky-value",text:"\u79ef\u798f\u6c14\uff0c\u4eab\u53d7\u66f4\u591a\u798f\u5229",styles:{margin:"60px 0 15px"}}),d.a.createElement(b.b,{className:"luck-draw__button",to:"/blessingRank"},"\u798f\u6c14\u6392\u884c\u699c>"),d.a.createElement("div",{className:"demo"},String(!this.props.user.hasError)),d.a.createElement(A,{isSign:m,userInfo:n,isLogin:y,history:this.props.history,toSection:function(t){return e.toSection(e.fetchMoudleId("best-courses"),t)},handleToShowList:function(){return e.handleToShow("isCourse")},handleToShowInvite:this.handleToShowInvite,handleToShowNotice:this.handleToShowNotice,handleToShow:this.handleToShow,toLogin:this.toLogin,handleToShowShare:function(){return e.handleToShow("shareMark")},handleToHideShare:function(){return e.handleToHide("shareMark")}}),d.a.createElement(O,{id:"lucky-draw",text:"\u5e78\u8fd0\u5927\u62bd\u5956",styles:{margin:"30px 0 10px"}}),d.a.createElement("p",{className:"luck-draw__tip"},"- \u5c06\u4e8e11\u670811\u65e510\u70b9\u5f00\u542f -"),d.a.createElement("button",{className:"luck-draw__button",onClick:function(){return e.handleToShow("isRule")}},"\u6d3b\u52a8\u89c4\u5219>"),d.a.createElement(I,null),0===i&&d.a.createElement(d.a.Fragment,null,d.a.createElement(O,{id:"deposit",text:"\u9884\u4ed81\u5143\u5b9a\u91d1\uff0c\u6700\u9ad8\u53ef\u7701100\u5143",styles:{margin:"30px 0 15px"}}),d.a.createElement(q,null)),d.a.createElement(O,{id:"best-courses",text:"\u7cbe\u54c1\u8bfe\u7a0b\u7279\u60e0\u4e13\u533a",styles:{margin:"30px 0 15px"}}),d.a.createElement(x,{isFormal:i,isLogin:y,history:this.props.history,toLogin:this.toLogin}),s&&d.a.createElement(v,{handleToHide:function(){return e.handleToHide("isRule")}}),c&&d.a.createElement(E,{toLogin:this.toLogin,history:f,isLogin:y,handleToHide:function(){return e.handleToHide("isCourse")}}),p&&d.a.createElement(g,{handleToHide:function(){return e.handleToHide("showRecordList")}}),_&&d.a.createElement(w,null),d.a.createElement(B.h,{visible:r,title:"\u626b\u7801\u9080\u8bf7\u597d\u53cb\u6ce8\u518c+10\u70b9\u798f\u6c14\u503c",className:"invite-popup"},d.a.createElement("img",{src:o,alt:"barcode",className:"qr-code"}),d.a.createElement(F.CopyToClipboard,{text:"".concat(API.m,'/invite"'),onCopy:this.onCopy},d.a.createElement("button",null,"\u4e00\u952e\u590d\u5236\u7f51\u5740"))),d.a.createElement(B.h,{visible:l,title:"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7",className:"invite-popup"},d.a.createElement("img",{src:u,alt:"barcode",className:"qr-code"})),d.a.createElement(B.h,{visible:this.state.joinLotteryVisible,title:"\u4f60\u5df2\u6210\u529f\u53c2\u4e0e\u672c\u65f6\u6bb5\u62bd\u5956",className:"join-lottery"},d.a.createElement("div",{className:"text"},d.a.createElement("div",{className:"code"},"\u62bd\u5956\u7801\u4e3a\uff1a99999999"),d.a.createElement("div",{className:"time"},"\u672c\u65f6\u6bb5\u7684\u4e2d\u5956\u7ed3\u679c\u5c06\u5728xx:xx\u516c\u5e03"),d.a.createElement("div",{className:"hint"},"\u4f60\u53ef\u5173\u6ce8\u2018\u4e03\u6708\u5728\u7ebf\u2019\u670d\u52a1\u53f7\u7b2c\u4e00\u65f6\u95f4\u83b7\u5f97\u4e2d\u5956\u4fe1\u606f\u3002"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",className:"qr-code",alt:""})),d.a.createElement("button",{onClick:function(){e.setState({joinLottery:!1})}},"\u77e5\u9053\u4e86")),d.a.createElement(B.h,{title:"\u5fae\u4fe1\u626b\u7801\u5206\u4eab\u5230\u5fae\u4fe1\u670b\u53cb\u5708",visible:this.state.timelineShareVisible,className:"timeline-share"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:"",className:"qr-code"})),d.a.createElement(O,{id:"ai-test",text:"\u5168\u56fdAI\u5de5\u7a0b\u5e08\u6c34\u5e73\u6d4b\u8bd5",styles:{margin:"30px 0 15px"}}),d.a.createElement("div",{className:"test__record",onClick:function(){return e.handleToShow("showRecordList",!0)}},"\u6d4b\u8bd5\u8bb0\u5f55>"),d.a.createElement(R,{history:f,isLogin:y,toLogin:this.toLogin}),d.a.createElement(z,null),d.a.createElement(V,{isFormal:i}))}}]),t}(m.Component);t.default=Object(K.d)(Object(T.b)(function(e){return{user:e.user}},{setCurrentUser:J.g,startFetchUser:J.h}))(Z)},720:function(e,t,a){"use strict";var n=a(721).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},721:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),c=r(a(0)),o=r(a(722));function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(t.CopyToClipboard=function(e){function t(){var e,a,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,r=Array(s),l=0;l<s;l++)r[l]=arguments[l];return a=n=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),n.onClick=function(e){var t=n.props,a=t.text,s=t.onCopy,r=t.children,i=t.options,l=c.default.Children.only(r),u=(0,o.default)(a,i);s&&s(a,u),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(e)},i(n,a)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),s(t,[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),a=function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(e,["text","onCopy","options","children"]),s=c.default.Children.only(t);return c.default.cloneElement(s,n({},a,{onClick:this.onClick}))}}]),t}()).defaultProps={onCopy:void 0,options:void 0}},722:function(e,t,a){"use strict";var n=a(723),s="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var a,c,o,r,i,l,u=!1;t||(t={}),a=t.debug||!1;try{if(o=n(),r=document.createRange(),i=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(a){a.stopPropagation(),t.format&&(a.preventDefault(),a.clipboardData.clearData(),a.clipboardData.setData(t.format,e))}),document.body.appendChild(l),r.selectNodeContents(l),i.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(m){a&&console.error("unable to copy using execCommand: ",m),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),u=!0}catch(m){a&&console.error("unable to copy using clipboardData: ",m),a&&console.error("falling back to prompt"),c=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:s),window.prompt(c,e)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(r):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}},723:function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,a=[],n=0;n<e.rangeCount;n++)a.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||a.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}}]);
//# sourceMappingURL=blessing-preheat.e897c984.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){function r(r){for(var a,n,f=r[0],c=r[1],d=r[2],s=0,l=[];s<f.length;s++)n=f[s],o[n]&&l.push(o[n][0]),o[n]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(u&&u(r);l.length;)l.shift()();return i.push.apply(i,d||[]),t()}function t(){for(var e,r=0;r<i.length;r++){for(var t=i[r],a=!0,n=1;n<t.length;n++){var c=t[n];0!==o[c]&&(a=!1)}a&&(i.splice(r--,1),e=f(f.s=t[0]))}return e}var a={},n={30:0},o={30:0},i=[];function f(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,f),t.l=!0,t.exports}f.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"bf839917",3:"fa2c419d",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"fa2c419d",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"564d8d7c",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"54d9956e",27:"494a90ad",28:"7ff5ff63",29:"bb758677",31:"5716d9b3",32:"76774ba4",33:"bf6b9b43",34:"f08bc5f3",35:"1c1131c9",37:"c76b300d",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[e]+".chunk.css",o=f.p+a,i=document.getElementsByTagName("link"),c=0;c<i.length;c++){var d=(u=i[c]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(d===a||d===o))return r()}var s=document.getElementsByTagName("style");for(c=0;c<s.length;c++){var u;if((d=(u=s[c]).getAttribute("data-href"))===a||d===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");i.request=a,delete n[e],l.parentNode.removeChild(l),t(i)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).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 i,c=document.createElement("script");c.charset="utf-8",c.timeout=120,f.nc&&c.setAttribute("nonce",f.nc),c.src=function(e){return f.p+"mrstatic/js/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[e]||e)+"."+{0:"19bf510b",1:"1ae9bc37",2:"f02a0573",3:"73c8f0a9",4:"7dc150ca",5:"87e5a787",6:"b77d0054",7:"55b9cd02",8:"7376b4ea",9:"ef054c07",10:"1ca5eb03",11:"fea133fd",12:"40f1e2cd",13:"57e0641d",14:"21e0b5d0",15:"a868f51f",16:"c6a31aa7",17:"a1843d18",18:"5bce9778",19:"3a04b022",20:"e897c984",21:"9beb2e6a",22:"9328617e",23:"3386f2f1",24:"77f90737",25:"34640f52",27:"5b24e8bb",28:"44109093",29:"a38723f4",31:"589ab26a",32:"bc3debb9",33:"7bbf8730",34:"59f6d7fd",35:"ee79f0c1",37:"60ac9e86",38:"6484232f",39:"abfd1e74",40:"f027a2bf",41:"7432e73e",42:"7d3b7120"}[e]+".chunk.js"}(e),i=function(r){c.onerror=c.onload=null,clearTimeout(d);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,i=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");i.type=a,i.request=n,t[1](i)}o[e]=void 0}};var d=setTimeout(function(){i({type:"timeout",target:c})},12e4);c.onerror=c.onload=i,document.head.appendChild(c)}return Promise.all(r)},f.m=e,f.c=a,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)f.d(t,a,function(r){return e[r]}.bind(null,a));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/",f.oe=function(e){throw console.error(e),e};var c=window.webpackJsonp=window.webpackJsonp||[],d=c.push.bind(c);c.push=r,c=c.slice();for(var s=0;s<c.length;s++)r(c[s]);var u=d;t()}([]);
//# sourceMappingURL=runtime~main.b8db1102.js.map
\ No newline at end of file
!function(e){function r(r){for(var a,n,f=r[0],d=r[1],c=r[2],s=0,l=[];s<f.length;s++)n=f[s],o[n]&&l.push(o[n][0]),o[n]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(e[a]=d[a]);for(u&&u(r);l.length;)l.shift()();return i.push.apply(i,c||[]),t()}function t(){for(var e,r=0;r<i.length;r++){for(var t=i[r],a=!0,n=1;n<t.length;n++){var d=t[n];0!==o[d]&&(a=!1)}a&&(i.splice(r--,1),e=f(f.s=t[0]))}return e}var a={},n={30:0},o={30:0},i=[];function f(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,f),t.l=!0,t.exports}f.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"bf839917",3:"fa2c419d",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"fa2c419d",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"564d8d7c",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"54d9956e",27:"494a90ad",28:"7ff5ff63",29:"bb758677",31:"5716d9b3",32:"76774ba4",33:"bf6b9b43",34:"f08bc5f3",35:"1c1131c9",37:"c76b300d",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[e]+".chunk.css",o=f.p+a,i=document.getElementsByTagName("link"),d=0;d<i.length;d++){var c=(u=i[d]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(c===a||c===o))return r()}var s=document.getElementsByTagName("style");for(d=0;d<s.length;d++){var u;if((c=(u=s[d]).getAttribute("data-href"))===a||c===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");i.request=a,delete n[e],l.parentNode.removeChild(l),t(i)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).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 i,d=document.createElement("script");d.charset="utf-8",d.timeout=120,f.nc&&d.setAttribute("nonce",f.nc),d.src=function(e){return f.p+"mrstatic/js/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[e]||e)+"."+{0:"19bf510b",1:"1ae9bc37",2:"f02a0573",3:"73c8f0a9",4:"7dc150ca",5:"87e5a787",6:"b77d0054",7:"55b9cd02",8:"7376b4ea",9:"ef054c07",10:"1ca5eb03",11:"fea133fd",12:"40f1e2cd",13:"57e0641d",14:"21e0b5d0",15:"a868f51f",16:"c6a31aa7",17:"a1843d18",18:"5bce9778",19:"3a04b022",20:"dadc0252",21:"9beb2e6a",22:"9328617e",23:"3386f2f1",24:"77f90737",25:"34640f52",27:"5b24e8bb",28:"44109093",29:"a38723f4",31:"589ab26a",32:"bc3debb9",33:"7bbf8730",34:"59f6d7fd",35:"5b3754da",37:"60ac9e86",38:"6484232f",39:"abfd1e74",40:"f027a2bf",41:"7432e73e",42:"7d3b7120"}[e]+".chunk.js"}(e),i=function(r){d.onerror=d.onload=null,clearTimeout(c);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,i=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");i.type=a,i.request=n,t[1](i)}o[e]=void 0}};var c=setTimeout(function(){i({type:"timeout",target:d})},12e4);d.onerror=d.onload=i,document.head.appendChild(d)}return Promise.all(r)},f.m=e,f.c=a,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)f.d(t,a,function(r){return e[r]}.bind(null,a));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/",f.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],c=d.push.bind(d);d.push=r,d=d.slice();for(var s=0;s<d.length;s++)r(d[s]);var u=c;t()}([]);
//# sourceMappingURL=runtime~main.30eaa37c.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","30","exports","module","l","e","promises","2","3","4","5","6","7","8","9","10","12","14","15","16","17","18","19","20","21","22","23","24","25","27","28","29","31","32","33","34","35","37","38","39","40","41","42","Promise","resolve","reject","href","11","13","0","1","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"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","file":"mrstatic/js/runtime~main.b8db1102.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\t30: 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\t30: 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/\" + ({\"3\":\"Activity\",\"4\":\"BargainMiddlePage\",\"5\":\"Classify\",\"6\":\"Country\",\"7\":\"CourseList\",\"8\":\"DrawDocument\",\"9\":\"Examination\",\"10\":\"Invite\",\"11\":\"MyEdit\",\"12\":\"Order\",\"13\":\"Orderinfo\",\"14\":\"PayOrder\",\"15\":\"Preferential\",\"16\":\"SearchResult\",\"17\":\"ShareCourse\",\"18\":\"ShopCart\",\"19\":\"aist-share\",\"20\":\"blessing-preheat\",\"21\":\"blessing-rank\",\"22\":\"coupons\",\"23\":\"deposit-order\",\"24\":\"deposit-pay-order\",\"25\":\"detail\",\"27\":\"myorders\",\"28\":\"prize-winner-list\",\"29\":\"purchased\",\"31\":\"search\",\"32\":\"shareposter\",\"33\":\"study\",\"34\":\"togroup\",\"35\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"19bf510b\",\"1\":\"1ae9bc37\",\"2\":\"f02a0573\",\"3\":\"73c8f0a9\",\"4\":\"7dc150ca\",\"5\":\"87e5a787\",\"6\":\"b77d0054\",\"7\":\"55b9cd02\",\"8\":\"7376b4ea\",\"9\":\"ef054c07\",\"10\":\"1ca5eb03\",\"11\":\"fea133fd\",\"12\":\"40f1e2cd\",\"13\":\"57e0641d\",\"14\":\"21e0b5d0\",\"15\":\"a868f51f\",\"16\":\"c6a31aa7\",\"17\":\"a1843d18\",\"18\":\"5bce9778\",\"19\":\"3a04b022\",\"20\":\"e897c984\",\"21\":\"9beb2e6a\",\"22\":\"9328617e\",\"23\":\"3386f2f1\",\"24\":\"77f90737\",\"25\":\"34640f52\",\"27\":\"5b24e8bb\",\"28\":\"44109093\",\"29\":\"a38723f4\",\"31\":\"589ab26a\",\"32\":\"bc3debb9\",\"33\":\"7bbf8730\",\"34\":\"59f6d7fd\",\"35\":\"ee79f0c1\",\"37\":\"60ac9e86\",\"38\":\"6484232f\",\"39\":\"abfd1e74\",\"40\":\"f027a2bf\",\"41\":\"7432e73e\",\"42\":\"7d3b7120\"}[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 = {\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"12\":1,\"14\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"27\":1,\"28\":1,\"29\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"42\":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/\" + ({\"3\":\"Activity\",\"4\":\"BargainMiddlePage\",\"5\":\"Classify\",\"6\":\"Country\",\"7\":\"CourseList\",\"8\":\"DrawDocument\",\"9\":\"Examination\",\"10\":\"Invite\",\"11\":\"MyEdit\",\"12\":\"Order\",\"13\":\"Orderinfo\",\"14\":\"PayOrder\",\"15\":\"Preferential\",\"16\":\"SearchResult\",\"17\":\"ShareCourse\",\"18\":\"ShopCart\",\"19\":\"aist-share\",\"20\":\"blessing-preheat\",\"21\":\"blessing-rank\",\"22\":\"coupons\",\"23\":\"deposit-order\",\"24\":\"deposit-pay-order\",\"25\":\"detail\",\"27\":\"myorders\",\"28\":\"prize-winner-list\",\"29\":\"purchased\",\"31\":\"search\",\"32\":\"shareposter\",\"33\":\"study\",\"34\":\"togroup\",\"35\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"31d6cfe0\",\"2\":\"bf839917\",\"3\":\"fa2c419d\",\"4\":\"eb686c74\",\"5\":\"fb4bedde\",\"6\":\"2d34330b\",\"7\":\"afc8902e\",\"8\":\"aeb3f822\",\"9\":\"7bb0622b\",\"10\":\"fa2c419d\",\"11\":\"31d6cfe0\",\"12\":\"8c058a7a\",\"13\":\"31d6cfe0\",\"14\":\"7eb7d317\",\"15\":\"0c91fa43\",\"16\":\"cdf852c1\",\"17\":\"8046fb41\",\"18\":\"92ab48a3\",\"19\":\"40873df0\",\"20\":\"564d8d7c\",\"21\":\"edf00bf8\",\"22\":\"466858c7\",\"23\":\"5ea077aa\",\"24\":\"09ce6fd5\",\"25\":\"54d9956e\",\"27\":\"494a90ad\",\"28\":\"7ff5ff63\",\"29\":\"bb758677\",\"31\":\"5716d9b3\",\"32\":\"76774ba4\",\"33\":\"bf6b9b43\",\"34\":\"f08bc5f3\",\"35\":\"1c1131c9\",\"37\":\"c76b300d\",\"38\":\"bff100af\",\"39\":\"820320a6\",\"40\":\"35e22f8c\",\"41\":\"befec011\",\"42\":\"b02d1de6\"}[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","30","exports","module","l","e","promises","2","3","4","5","6","7","8","9","10","12","14","15","16","17","18","19","20","21","22","23","24","25","27","28","29","31","32","33","34","35","37","38","39","40","41","42","Promise","resolve","reject","href","11","13","0","1","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"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","file":"mrstatic/js/runtime~main.30eaa37c.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\t30: 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\t30: 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/\" + ({\"3\":\"Activity\",\"4\":\"BargainMiddlePage\",\"5\":\"Classify\",\"6\":\"Country\",\"7\":\"CourseList\",\"8\":\"DrawDocument\",\"9\":\"Examination\",\"10\":\"Invite\",\"11\":\"MyEdit\",\"12\":\"Order\",\"13\":\"Orderinfo\",\"14\":\"PayOrder\",\"15\":\"Preferential\",\"16\":\"SearchResult\",\"17\":\"ShareCourse\",\"18\":\"ShopCart\",\"19\":\"aist-share\",\"20\":\"blessing-preheat\",\"21\":\"blessing-rank\",\"22\":\"coupons\",\"23\":\"deposit-order\",\"24\":\"deposit-pay-order\",\"25\":\"detail\",\"27\":\"myorders\",\"28\":\"prize-winner-list\",\"29\":\"purchased\",\"31\":\"search\",\"32\":\"shareposter\",\"33\":\"study\",\"34\":\"togroup\",\"35\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"19bf510b\",\"1\":\"1ae9bc37\",\"2\":\"f02a0573\",\"3\":\"73c8f0a9\",\"4\":\"7dc150ca\",\"5\":\"87e5a787\",\"6\":\"b77d0054\",\"7\":\"55b9cd02\",\"8\":\"7376b4ea\",\"9\":\"ef054c07\",\"10\":\"1ca5eb03\",\"11\":\"fea133fd\",\"12\":\"40f1e2cd\",\"13\":\"57e0641d\",\"14\":\"21e0b5d0\",\"15\":\"a868f51f\",\"16\":\"c6a31aa7\",\"17\":\"a1843d18\",\"18\":\"5bce9778\",\"19\":\"3a04b022\",\"20\":\"dadc0252\",\"21\":\"9beb2e6a\",\"22\":\"9328617e\",\"23\":\"3386f2f1\",\"24\":\"77f90737\",\"25\":\"34640f52\",\"27\":\"5b24e8bb\",\"28\":\"44109093\",\"29\":\"a38723f4\",\"31\":\"589ab26a\",\"32\":\"bc3debb9\",\"33\":\"7bbf8730\",\"34\":\"59f6d7fd\",\"35\":\"5b3754da\",\"37\":\"60ac9e86\",\"38\":\"6484232f\",\"39\":\"abfd1e74\",\"40\":\"f027a2bf\",\"41\":\"7432e73e\",\"42\":\"7d3b7120\"}[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 = {\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"12\":1,\"14\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"27\":1,\"28\":1,\"29\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"42\":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/\" + ({\"3\":\"Activity\",\"4\":\"BargainMiddlePage\",\"5\":\"Classify\",\"6\":\"Country\",\"7\":\"CourseList\",\"8\":\"DrawDocument\",\"9\":\"Examination\",\"10\":\"Invite\",\"11\":\"MyEdit\",\"12\":\"Order\",\"13\":\"Orderinfo\",\"14\":\"PayOrder\",\"15\":\"Preferential\",\"16\":\"SearchResult\",\"17\":\"ShareCourse\",\"18\":\"ShopCart\",\"19\":\"aist-share\",\"20\":\"blessing-preheat\",\"21\":\"blessing-rank\",\"22\":\"coupons\",\"23\":\"deposit-order\",\"24\":\"deposit-pay-order\",\"25\":\"detail\",\"27\":\"myorders\",\"28\":\"prize-winner-list\",\"29\":\"purchased\",\"31\":\"search\",\"32\":\"shareposter\",\"33\":\"study\",\"34\":\"togroup\",\"35\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"31d6cfe0\",\"2\":\"bf839917\",\"3\":\"fa2c419d\",\"4\":\"eb686c74\",\"5\":\"fb4bedde\",\"6\":\"2d34330b\",\"7\":\"afc8902e\",\"8\":\"aeb3f822\",\"9\":\"7bb0622b\",\"10\":\"fa2c419d\",\"11\":\"31d6cfe0\",\"12\":\"8c058a7a\",\"13\":\"31d6cfe0\",\"14\":\"7eb7d317\",\"15\":\"0c91fa43\",\"16\":\"cdf852c1\",\"17\":\"8046fb41\",\"18\":\"92ab48a3\",\"19\":\"40873df0\",\"20\":\"564d8d7c\",\"21\":\"edf00bf8\",\"22\":\"466858c7\",\"23\":\"5ea077aa\",\"24\":\"09ce6fd5\",\"25\":\"54d9956e\",\"27\":\"494a90ad\",\"28\":\"7ff5ff63\",\"29\":\"bb758677\",\"31\":\"5716d9b3\",\"32\":\"76774ba4\",\"33\":\"bf6b9b43\",\"34\":\"f08bc5f3\",\"35\":\"1c1131c9\",\"37\":\"c76b300d\",\"38\":\"bff100af\",\"39\":\"820320a6\",\"40\":\"35e22f8c\",\"41\":\"befec011\",\"42\":\"b02d1de6\"}[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([[35],{1238:function(e,t,a){"use strict";a.r(t);a(41);var n,i=a(12),c=a.n(i),o=a(4),s=a(7),r=a(5),d=a(8),l=a(89),u=a(9),p=(a(256),a(92)),m=a.n(p),h=a(0),f=a.n(h),v=a(165),y=(a(813),a(15)),g=a(49),b=a(3),_=a(21),E=(a(73),a(814),a(620)),S=function(e){var t=e.item;return f.a.createElement("div",{className:"bottom"},f.a.createElement("span",{className:"price"},"\xa5",t.price1),f.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},w=Object(_.b)()(n=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):c.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?f.a.createElement("div",{className:"recommendation"},f.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),f.a.createElement("ul",null,this.state.list.map(function(t){var a=f.a.createElement("div",{className:"info"},f.a.createElement("p",{className:"title text-overflow-1"},t.course_title),f.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),f.a.createElement(S,{item:t}));return f.a.createElement(E.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(h.PureComponent))||n,I=(a(815),a(17)),N=a.n(I),P=function(e){function t(){var e,a;Object(o.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(d.a)(t)).call.apply(e,[this].concat(i)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:"video-catalog"},f.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return f.a.createElement("li",{key:t.id,className:N()({active:e.props.activeIndex===a})},f.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},f.a.createElement("span",{className:"title"},t.name),f.a.createElement("span",{className:"duration"},t.duration),f.a.createElement("i",{className:N()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?f.a.createElement(y.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},f.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,f.a.createElement("i",{className:N()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(h.Component),O=(a(816),a(818)),x=a.n(O),k=(a(819),function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.datum;return f.a.createElement("div",{className:"datum-catalog"},f.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),f.a.createElement(x.a,null,e&&e.length&&e.map(function(e,t){return f.a.createElement(x.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return f.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(h.Component));k.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var j=k,C=a(802),T=(a(865),a(27)),A=a(37),B=a.n(A),R=a(866),L=a.n(R),D=a(674),W=a(675),M=a(1207),J=C.a.getComponent("Component"),V=C.a.getComponent("Button"),z=function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(J),H=function(e){function t(e,a){var n;return Object(o.a)(this,t),(n=Object(r.a)(this,Object(d.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(V);J.registerComponent("CustomPlayButton",H),z.prototype.options_={children:["CustomPlayButton"]},J.registerComponent("CustomPlayButtonCover",z);var F=m.a.alert;function U(e){return e.isShow&&f.a.createElement("div",{className:"progress-share-modal-wrapper"},f.a.createElement("div",{className:"progress-share-modal"},f.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),f.a.createElement("ul",{className:"progress-container"},f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),f.a.createElement("div",{className:"share-container"},f.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),f.a.createElement("ul",null,f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconweixinzhifu"})),f.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),f.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),f.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var q=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.isCurrentVideoFirstPlay=!0,a.WATCHTIME="watch_time",a.COUNTSCHEDULE="count_schedule",a.RECENTLEARN="recent_learn",a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):c.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(l.a)(a);Object(b.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(b.c)("code");if(t){if(!Object(b.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(b.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3)):F("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/class_order_status/").concat(e)).then(function(e){200===Number(e.data.data.errno)?a.setState({singleType:6}):201===Number(e.data.data.errno)?a.setState({singleType:4}):202===Number(e.data.data.errno)?a.setState({singleType:3}):203===Number(e.data.data.errno)?a.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,singleType:2}):c.a.info(e.data.data.msg,2)})},a.setupRecord=function(){a.recordSocket=L()(API.record,{transports:["websocket"],forceNew:!0}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer),a.timer=null}),a.ws.addEventListener("message",function(e){var t=JSON.parse(e.data);4040==t.code&&(a.reconnect=!1),0===t.code&&(console.log("\u4e0a\u6b21\u7684\u5b66\u4e60\u8bb0\u5f55"+JSON.stringify(t)),t.data&&t.data.position&&a.player.currentTime(t.data.position))})},a.sendMessage=function(e){var t=a.ws.readyState,n=Object(l.a)(a);if(1===t)a.ws&&a.ws.send(JSON.stringify(e));else if(3===t){a.ws.close(),a.ws=null;var i=setTimeout(function(){clearTimeout(i),i=null,n.ws=new WebSocket(PROCESS_URL)},500)}},a.getShareProgressInfo=function(){b.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId,c=e.course,o=void 0===c?{}:c;if(0!==Number(o.course_id)&&""!==o.course_id){var s=0;o.is_aist&&(s=2),a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,ctype:s})}else console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.sendWatchTime=function(e,t){var n=a.state,i=n.videoList,c=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(e)){var d=0;r.is_aist&&(d=2),a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:i[c].id,course_id:a.state.courseId,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:5,position:parseInt(a.player.currentTime()),ctype:d})}},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=null,a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,!a.player.paused()&&a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(C.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("play",function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId;e.course;a.isCurrentVideoFirstPlay&&(a.isCurrentVideoFirstPlay=!1,a.ws.send(JSON.stringify({mtype:a.RECENTLEARN,uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,is_live:0}))),a.timer||a.setupTimer()}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0,a.countSchedule(),a.state.course.is_aist&&a.getShareProgressInfo(),clearInterval(a.timer),a.timer=null}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(console.log("selectVideo \u5148\u53d1\u9001\u65f6\u95f4 \u518d\u53d1\u9001\u8fdb\u5ea6 \u5728\u91cd\u7f6e\u5b9a\u65f6\u5668"),a.isCurrentVideoFirstPlay=!0,a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.setupTimer(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";Object(b.c)("video_id")?(e="".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.c)("video_id")),b.d.post("".concat(API["base-api"],"/sys/get_class_audition"),{video_id:Object(b.c)("video_id")})):e="".concat(API.home,"/m/course/play/").concat(a.courseID),b.d.get(e).then(function(e){var t=e.data,n=t.data,i=void 0===n?{}:n;200===t.code?a.setState(function(e){return{videoList:i.lessons,currentVideoSrc:i.lessons[e.activeIndex].play_url,course:i.course,courseId:i.course.course_id,vCourseId:i.course.v_course_id,title:i.course.course_title,isLoading:!1}},a.playSetup):c.a.info(i.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e,n=Object(l.a)(a);a.setupWS(),a.setupTimer();var i=setTimeout(function(){clearTimeout(i),i=null,n.countSchedule()},1e3),c=a.getLastVideoIndex(t.last_video_id);c=c>=0?c:0,a.setState({activeIndex:c},function(){a.lessonAvailable(c)?a.hasAuth(c)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():F("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.play()},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){if("https:"!==window.location.protocol)if(this.courseID=Object(b.c)("id"),this.courseID){this.setState({courseId:this.courseID});var e=this.props,t=(e.location,e.location.state),a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(b.c)("is_class")||Object(b.c)("weixinpay"))&&this.payCallback(),b.b.isWeixin&&this.isweixinPay(),this.token=B.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()}else this.props.history.replace("/");else window.location.replace("http"+window.location.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.timer=null,this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):c.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,i=t.history,c=this.state,o=c.videoList,s=c.activeIndex,r=c.isAuth,d=c.salePrice,l=c.course,u=c.singleBox,p=c.singleType,m="";return n.state&&n.state.to&&"detail"===n.state.to&&(m="/detail?id=".concat(l.course_id)),f.a.createElement("div",{className:"play"},f.a.createElement(v.a,{title:this.state.title,arrow:!0,toHref:function(){m?i.push(m,{to:"classify"}):i.go(-1)}}),f.a.createElement(T.f,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"video"},f.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t},"webkit-playsinline":"true",playsInline:!0,"x-webkit-airplay":"allow","x5-video-player-type":"h5"},f.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!o[s].is_class&&f.a.createElement("div",{className:"purchase-box"},f.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),f.a.createElement("div",{className:"btns"},f.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",d," \u8d2d\u4e70\u8bfe\u7a0b"),f.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,o[s]),className:"purchase-episode"},"\xa5",o.length&&o[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&f.a.createElement("div",{className:"is-aist-box"},f.a.createElement("i",{className:"iconfont iconiconfront-21"}),f.a.createElement("p",{className:"time"},o[s].aist_start_time),f.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),f.a.createElement("div",{className:"tab"},f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),u&&f.a.createElement(D.a,{courseId:l.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==p&&f.a.createElement(W.a,{courseId:l.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:p,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),f.a.createElement(g.d,null,f.a.createElement(g.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),f.a.createElement(g.b,{path:"".concat(a.path,"/video"),render:function(t){return f.a.createElement(P,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:o},t))}}),f.a.createElement(g.b,{path:"".concat(a.path,"/datum"),render:function(t){return f.a.createElement(j,Object.assign({},t,{datum:e.state.datum}))}})),f.a.createElement(g.b,{render:function(t){return e.state.vCourseId?f.a.createElement(w,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),f.a.createElement(U,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(h.Component);t.default=Object(_.b)(function(e){return{user:e.user}},null)(q)},620:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(621);t.a=function(e){return i.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},i.a.createElement("div",{className:"content"},i.a.createElement("div",{className:"cover"},e.status,i.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},621:function(e,t,a){},623:function(e,t,a){},674:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(4),o=a(7),s=a(5),r=a(8),d=a(89),l=a(9),u=a(0),p=a.n(u),m=(a(623),a(3)),h=a(49),f=a(24),v=a(21),y=a(156),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):i.a.info(t.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(m.c)("code");if(t){if(!Object(m.c)("oid"))return;m.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(m.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(a);Object(m.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,i=Object(y.differenceInMinutes)(new Date(t),a)%60,c=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(g)},675:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(4),o=a(7),s=a(5),r=a(8),d=a(9),l=a(0),u=a.n(l),p=(a(623),a(3)),m=a(49),h=a(24),f=a(21),v=a(156),y=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.c)("id");p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);p.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):i.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.differenceInSeconds)(new Date(t),a)%60,i=Object(v.differenceInMinutes)(new Date(t),a)%60,c=Object(v.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}var n=this.props.singleType,i=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(y)},813:function(e,t,a){},814:function(e,t,a){},815:function(e,t,a){},819:function(e,t,a){},821:function(e,t){},889:function(e,t){}}]);
//# sourceMappingURL=video.ee79f0c1.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1238:function(e,t,a){"use strict";a.r(t);a(41);var n,i=a(12),c=a.n(i),o=a(4),s=a(7),r=a(5),d=a(8),l=a(89),u=a(9),p=(a(256),a(92)),m=a.n(p),h=a(0),f=a.n(h),v=a(165),y=(a(813),a(15)),g=a(49),b=a(3),_=a(21),E=(a(73),a(814),a(620)),S=function(e){var t=e.item;return f.a.createElement("div",{className:"bottom"},f.a.createElement("span",{className:"price"},"\xa5",t.price1),f.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},w=Object(_.b)()(n=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):c.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?f.a.createElement("div",{className:"recommendation"},f.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),f.a.createElement("ul",null,this.state.list.map(function(t){var a=f.a.createElement("div",{className:"info"},f.a.createElement("p",{className:"title text-overflow-1"},t.course_title),f.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),f.a.createElement(S,{item:t}));return f.a.createElement(E.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(h.PureComponent))||n,I=(a(815),a(17)),N=a.n(I),P=function(e){function t(){var e,a;Object(o.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(d.a)(t)).call.apply(e,[this].concat(i)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:"video-catalog"},f.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return f.a.createElement("li",{key:t.id,className:N()({active:e.props.activeIndex===a})},f.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},f.a.createElement("span",{className:"title"},t.name),f.a.createElement("span",{className:"duration"},t.duration),f.a.createElement("i",{className:N()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?f.a.createElement(y.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},f.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,f.a.createElement("i",{className:N()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(h.Component),O=(a(816),a(818)),x=a.n(O),k=(a(819),function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.datum;return f.a.createElement("div",{className:"datum-catalog"},f.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),f.a.createElement(x.a,null,e&&e.length&&e.map(function(e,t){return f.a.createElement(x.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return f.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(h.Component));k.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var j=k,C=a(802),T=(a(865),a(27)),A=a(37),B=a.n(A),R=a(866),L=a.n(R),D=a(674),W=a(675),M=a(1207),J=C.a.getComponent("Component"),V=C.a.getComponent("Button"),z=function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(J),H=function(e){function t(e,a){var n;return Object(o.a)(this,t),(n=Object(r.a)(this,Object(d.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(V);J.registerComponent("CustomPlayButton",H),z.prototype.options_={children:["CustomPlayButton"]},J.registerComponent("CustomPlayButtonCover",z);var F=m.a.alert;function U(e){return e.isShow&&f.a.createElement("div",{className:"progress-share-modal-wrapper"},f.a.createElement("div",{className:"progress-share-modal"},f.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),f.a.createElement("ul",{className:"progress-container"},f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),f.a.createElement("div",{className:"share-container"},f.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),f.a.createElement("ul",null,f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconweixinzhifu"})),f.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),f.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),f.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var q=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.isCurrentVideoFirstPlay=!0,a.WATCHTIME="watch_time",a.COUNTSCHEDULE="count_schedule",a.RECENTLEARN="recent_learn",a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):c.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(l.a)(a);Object(b.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(b.c)("code");if(t){if(!Object(b.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(b.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3)):F("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/class_order_status/").concat(e)).then(function(e){200===Number(e.data.data.errno)?a.setState({singleType:6}):201===Number(e.data.data.errno)?a.setState({singleType:4}):202===Number(e.data.data.errno)?a.setState({singleType:3}):203===Number(e.data.data.errno)?a.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,singleType:2}):c.a.info(e.data.data.msg,2)})},a.setupRecord=function(){a.recordSocket=L()(API.record,{transports:["websocket"],forceNew:!0}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer),a.timer=null}),a.ws.addEventListener("message",function(e){var t=JSON.parse(e.data);4040==t.code&&(a.reconnect=!1),0===t.code&&(console.log("\u4e0a\u6b21\u7684\u5b66\u4e60\u8bb0\u5f55"+JSON.stringify(t)),t.data&&t.data.position&&a.player.currentTime(t.data.position))})},a.sendMessage=function(e){var t=a.ws.readyState,n=Object(l.a)(a);if(1===t)a.ws&&a.ws.send(JSON.stringify(e));else if(3===t){a.ws.close(),a.ws=null;var i=setTimeout(function(){clearTimeout(i),i=null,n.ws=new WebSocket(PROCESS_URL)},500)}},a.getShareProgressInfo=function(){b.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId,c=e.course,o=void 0===c?{}:c;if(0!==Number(o.course_id)&&""!==o.course_id){var s=0;o.is_aist&&(s=2),a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,ctype:s})}else console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.sendWatchTime=function(e,t){var n=a.state,i=n.videoList,c=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(e)){var d=0;r.is_aist&&(d=2),a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:i[c].id,course_id:a.state.courseId,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:5,position:parseInt(a.player.currentTime()),ctype:d})}},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=null,a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,!a.player.paused()&&a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(C.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("play",function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId;e.course;a.isCurrentVideoFirstPlay&&(a.isCurrentVideoFirstPlay=!1,a.ws.send(JSON.stringify({mtype:a.RECENTLEARN,uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,is_live:0}))),a.timer||a.setupTimer()}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0,a.countSchedule(),a.state.course.is_aist&&a.getShareProgressInfo(),clearInterval(a.timer),a.timer=null}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(console.log("selectVideo \u5148\u53d1\u9001\u65f6\u95f4 \u518d\u53d1\u9001\u8fdb\u5ea6 \u5728\u91cd\u7f6e\u5b9a\u65f6\u5668"),a.isCurrentVideoFirstPlay=!0,a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.setupTimer(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";Object(b.c)("video_id")?(e="".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.c)("video_id")),b.d.post("".concat(API["base-api"],"/sys/get_class_audition"),{video_id:Object(b.c)("video_id")})):e="".concat(API.home,"/m/course/play/").concat(a.courseID),b.d.get(e).then(function(e){var t=e.data,n=t.data,i=void 0===n?{}:n;200===t.code?a.setState(function(e){return{videoList:i.lessons,currentVideoSrc:i.lessons[e.activeIndex].play_url,course:i.course,courseId:i.course.course_id,vCourseId:i.course.v_course_id,title:i.course.course_title,isLoading:!1}},a.playSetup):c.a.info(i.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e,n=Object(l.a)(a);a.setupWS(),a.setupTimer();var i=setTimeout(function(){clearTimeout(i),i=null,n.countSchedule()},1e3),c=a.getLastVideoIndex(t.last_video_id);c=c>=0?c:0,a.setState({activeIndex:c},function(){a.lessonAvailable(c)?a.hasAuth(c)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():F("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.ready(function(){a.player.play()})},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){if("https:"!==window.location.protocol)if(this.courseID=Object(b.c)("id"),this.courseID){this.setState({courseId:this.courseID});var e=this.props,t=(e.location,e.location.state),a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(b.c)("is_class")||Object(b.c)("weixinpay"))&&this.payCallback(),b.b.isWeixin&&this.isweixinPay(),this.token=B.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()}else this.props.history.replace("/");else window.location.replace("http"+window.location.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.timer=null,this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):c.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,i=t.history,c=this.state,o=c.videoList,s=c.activeIndex,r=c.isAuth,d=c.salePrice,l=c.course,u=c.singleBox,p=c.singleType,m="";return n.state&&n.state.to&&"detail"===n.state.to&&(m="/detail?id=".concat(l.course_id)),f.a.createElement("div",{className:"play"},f.a.createElement(v.a,{title:this.state.title,arrow:!0,toHref:function(){m?i.push(m,{to:"classify"}):i.go(-1)}}),f.a.createElement(T.f,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"video"},f.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t},"webkit-playsinline":"true",playsInline:!0,"x-webkit-airplay":"allow","x5-video-player-type":"h5"},f.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!o[s].is_class&&f.a.createElement("div",{className:"purchase-box"},f.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),f.a.createElement("div",{className:"btns"},f.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",d," \u8d2d\u4e70\u8bfe\u7a0b"),f.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,o[s]),className:"purchase-episode"},"\xa5",o.length&&o[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&f.a.createElement("div",{className:"is-aist-box"},f.a.createElement("i",{className:"iconfont iconiconfront-21"}),f.a.createElement("p",{className:"time"},o[s].aist_start_time),f.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),f.a.createElement("div",{className:"tab"},f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),u&&f.a.createElement(D.a,{courseId:l.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==p&&f.a.createElement(W.a,{courseId:l.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:p,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),f.a.createElement(g.d,null,f.a.createElement(g.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),f.a.createElement(g.b,{path:"".concat(a.path,"/video"),render:function(t){return f.a.createElement(P,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:o},t))}}),f.a.createElement(g.b,{path:"".concat(a.path,"/datum"),render:function(t){return f.a.createElement(j,Object.assign({},t,{datum:e.state.datum}))}})),f.a.createElement(g.b,{render:function(t){return e.state.vCourseId?f.a.createElement(w,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),f.a.createElement(U,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(h.Component);t.default=Object(_.b)(function(e){return{user:e.user}},null)(q)},620:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(621);t.a=function(e){return i.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},i.a.createElement("div",{className:"content"},i.a.createElement("div",{className:"cover"},e.status,i.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},621:function(e,t,a){},623:function(e,t,a){},674:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(4),o=a(7),s=a(5),r=a(8),d=a(89),l=a(9),u=a(0),p=a.n(u),m=(a(623),a(3)),h=a(49),f=a(24),v=a(21),y=a(156),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):i.a.info(t.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(m.c)("code");if(t){if(!Object(m.c)("oid"))return;m.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(m.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(a);Object(m.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,i=Object(y.differenceInMinutes)(new Date(t),a)%60,c=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(g)},675:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(4),o=a(7),s=a(5),r=a(8),d=a(9),l=a(0),u=a.n(l),p=(a(623),a(3)),m=a(49),h=a(24),f=a(21),v=a(156),y=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.c)("id");p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);p.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):i.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.differenceInSeconds)(new Date(t),a)%60,i=Object(v.differenceInMinutes)(new Date(t),a)%60,c=Object(v.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}var n=this.props.singleType,i=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(y)},813:function(e,t,a){},814:function(e,t,a){},815:function(e,t,a){},819:function(e,t,a){},821:function(e,t){},889:function(e,t){}}]);
//# sourceMappingURL=video.5b3754da.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -16,16 +16,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/2.f02a0573.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": "f8b11e0088ed6e17f173",
"url": "/mrstatic/js/Activity.73c8f0a9.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": "9a7afeee0f7f7550064e",
......@@ -84,8 +84,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/MyEdit.fea133fd.chunk.js"
},
{
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
{
"revision": "a28bdbb65926824a31b2",
......@@ -96,8 +96,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Orderinfo.57e0641d.chunk.js"
},
{
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
},
{
"revision": "17e2d9973e72bb3206ae",
......@@ -148,8 +148,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/38.6484232f.chunk.js"
},
{
"revision": "e0282a9c0c1a1d37c5e2",
"url": "/mrstatic/js/blessing-preheat.e897c984.chunk.js"
"revision": "2624bab4ee536a0bf7ba",
"url": "/mrstatic/js/blessing-preheat.dadc0252.chunk.js"
},
{
"revision": "ce643559cbe26713d628",
......@@ -168,8 +168,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/coupons.9328617e.chunk.js"
},
{
"revision": "380bfd4ec90c28d03f1b",
"url": "/mrstatic/js/video.ee79f0c1.chunk.js"
"revision": "63013a04c083466a8c9c",
"url": "/mrstatic/js/video.5b3754da.chunk.js"
},
{
"revision": "85d7bdf68a1cd0ca73e4",
......@@ -208,8 +208,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.5b24e8bb.chunk.js"
},
{
"revision": "9858e3402f6b3b845034",
"url": "/mrstatic/js/runtime~main.b8db1102.js"
"revision": "f69da9266c2a6e83aa4f",
"url": "/mrstatic/js/runtime~main.30eaa37c.js"
},
{
"revision": "480dec355e65b21ce336",
......@@ -232,7 +232,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/search.5716d9b3.chunk.css"
},
{
"revision": "380bfd4ec90c28d03f1b",
"revision": "63013a04c083466a8c9c",
"url": "/mrstatic/css/video.1c1131c9.chunk.css"
},
{
......@@ -288,7 +288,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/38.bff100af.chunk.css"
},
{
"revision": "e0282a9c0c1a1d37c5e2",
"revision": "2624bab4ee536a0bf7ba",
"url": "/mrstatic/css/blessing-preheat.564d8d7c.chunk.css"
},
{
......@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css"
},
{
"revision": "f68864c50428193e3cc56a6ed011070f",
"revision": "fe2e1f201d13297d9f6a69ef44c71468",
"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.e1b050fa0efbb6f4526894ae0d52c4d7.js"
"/precache-manifest.f6076862d5191c1033983d25b3603037.js"
);
workbox.clientsClaim();
......
......@@ -221,8 +221,8 @@ class CourseList extends Component {
}
toReceiveCoupon(id, key = '') {
const {isLogin, toLogin} = this.props;
alert(isLogin)
const {isLogin, toLogin,uid} = this.props;
alert(uid)
if(isLogin) {
http.post(`${API.home}/sys/activity/coupon/receive`, {
course_id: id
......
......@@ -135,6 +135,11 @@ class BlessingPreheat extends Component {
cookie.set("uname", item.uname, {expires, path: '/', domain: 'julyedu.com'});
cookie.set("avatar_file", item.avatar_file, {expires, path: '/', domain: 'julyedu.com'});
});
if (cookie.get("token") && cookie.get("uid")) {
window.location.reload()
}
this.props.setCurrentUser(this.transformUser(this.state.userInfoList))
}
transformUser = res => {
......@@ -418,6 +423,7 @@ class BlessingPreheat extends Component {
} = this.state;
const {history} = this.props;
const isLogin = !this.props.user.hasError
const uid = this.props.user.data.uid
return (
<div id={'blessing-preheat'}>
<Banner
......@@ -469,6 +475,7 @@ class BlessingPreheat extends Component {
<CourseList
isFormal={isFormal}
isLogin={isLogin}
uid={uid}
history={this.props.history}
toLogin={this.toLogin}
/>
......
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