Commit 18053bb6 by xuzhenghua

测试分享

parent 1ef670f9
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"mrstatic/js/2.94d294dd.chunk.js": "/mrstatic/js/2.94d294dd.chunk.js", "mrstatic/js/2.94d294dd.chunk.js": "/mrstatic/js/2.94d294dd.chunk.js",
"mrstatic/js/2.94d294dd.chunk.js.map": "/mrstatic/js/2.94d294dd.chunk.js.map", "mrstatic/js/2.94d294dd.chunk.js.map": "/mrstatic/js/2.94d294dd.chunk.js.map",
"Activity.css": "/mrstatic/css/Activity.fa2c419d.chunk.css", "Activity.css": "/mrstatic/css/Activity.fa2c419d.chunk.css",
"Activity.js": "/mrstatic/js/Activity.98ecb255.chunk.js", "Activity.js": "/mrstatic/js/Activity.95be3a03.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.98ecb255.chunk.js.map", "Activity.js.map": "/mrstatic/js/Activity.95be3a03.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css", "BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.516fb98e.chunk.js", "BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.516fb98e.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.516fb98e.chunk.js.map", "BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.516fb98e.chunk.js.map",
...@@ -56,14 +56,14 @@ ...@@ -56,14 +56,14 @@
"aist-share.js": "/mrstatic/js/aist-share.1aac9dd7.chunk.js", "aist-share.js": "/mrstatic/js/aist-share.1aac9dd7.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.1aac9dd7.chunk.js.map", "aist-share.js.map": "/mrstatic/js/aist-share.1aac9dd7.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.d6114e36.chunk.css", "blessing-preheat.css": "/mrstatic/css/blessing-preheat.d6114e36.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.4660c218.chunk.js", "blessing-preheat.js": "/mrstatic/js/blessing-preheat.351ca7e0.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.4660c218.chunk.js.map", "blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.351ca7e0.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css", "blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.2ca65536.chunk.js", "blessing-rank.js": "/mrstatic/js/blessing-rank.2ca65536.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.2ca65536.chunk.js.map", "blessing-rank.js.map": "/mrstatic/js/blessing-rank.2ca65536.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.466858c7.chunk.css", "coupons.css": "/mrstatic/css/coupons.466858c7.chunk.css",
"coupons.js": "/mrstatic/js/coupons.7b30820c.chunk.js", "coupons.js": "/mrstatic/js/coupons.588b230f.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.7b30820c.chunk.js.map", "coupons.js.map": "/mrstatic/js/coupons.588b230f.chunk.js.map",
"deposit-order.css": "/mrstatic/css/deposit-order.5ea077aa.chunk.css", "deposit-order.css": "/mrstatic/css/deposit-order.5ea077aa.chunk.css",
"deposit-order.js": "/mrstatic/js/deposit-order.12e65d34.chunk.js", "deposit-order.js": "/mrstatic/js/deposit-order.12e65d34.chunk.js",
"deposit-order.js.map": "/mrstatic/js/deposit-order.12e65d34.chunk.js.map", "deposit-order.js.map": "/mrstatic/js/deposit-order.12e65d34.chunk.js.map",
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js", "deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js.map", "deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js.map",
"detail.css": "/mrstatic/css/detail.54d9956e.chunk.css", "detail.css": "/mrstatic/css/detail.54d9956e.chunk.css",
"detail.js": "/mrstatic/js/detail.b1be5899.chunk.js", "detail.js": "/mrstatic/js/detail.454052b6.chunk.js",
"detail.js.map": "/mrstatic/js/detail.b1be5899.chunk.js.map", "detail.js.map": "/mrstatic/js/detail.454052b6.chunk.js.map",
"main.css": "/mrstatic/css/main.f9f26bcf.chunk.css", "main.css": "/mrstatic/css/main.f9f26bcf.chunk.css",
"main.js": "/mrstatic/js/main.b85a8e2f.chunk.js", "main.js": "/mrstatic/js/main.b85a8e2f.chunk.js",
"main.js.map": "/mrstatic/js/main.b85a8e2f.chunk.js.map", "main.js.map": "/mrstatic/js/main.b85a8e2f.chunk.js.map",
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
"purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css", "purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css",
"purchased.js": "/mrstatic/js/purchased.d4a92690.chunk.js", "purchased.js": "/mrstatic/js/purchased.d4a92690.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.d4a92690.chunk.js.map", "purchased.js.map": "/mrstatic/js/purchased.d4a92690.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.29099c02.js", "runtime~main.js": "/mrstatic/js/runtime~main.a7acd8d3.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.29099c02.js.map", "runtime~main.js.map": "/mrstatic/js/runtime~main.a7acd8d3.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css", "search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.34ce5f12.chunk.js", "search.js": "/mrstatic/js/search.34ce5f12.chunk.js",
"search.js.map": "/mrstatic/js/search.34ce5f12.chunk.js.map", "search.js.map": "/mrstatic/js/search.34ce5f12.chunk.js.map",
...@@ -166,6 +166,6 @@ ...@@ -166,6 +166,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff", "mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png", "mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png", "mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.70bf3c0539f1e2c1ad56cc1c20e50a58.js": "/precache-manifest.70bf3c0539f1e2c1ad56cc1c20e50a58.js", "precache-manifest.1292f00762a03a7437feb7232d42dc04.js": "/precache-manifest.1292f00762a03a7437feb7232d42dc04.js",
"service-worker.js": "/service-worker.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(i){function e(e){for(var r,t,a=e[0],n=e[1],o=e[2],c=0,d=[];c<a.length;c++)t=a[c],l[t]&&d.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(b&&b(e);d.length;)d.shift()();return s.push.apply(s,o||[]),f()}function f(){for(var e,r=0;r<s.length;r++){for(var t=s[r],a=!0,n=1;n<t.length;n++){var o=t[n];0!==l[o]&&(a=!1)}a&&(s.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},u={30:0},l={30:0},s=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.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:"d6114e36",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:"2fd45d08",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[s]+".chunk.css",n=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(i=t[o]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(c===r||c===n))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var i;if((c=(i=d[o]).getAttribute("data-href"))===r||c===n)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+s+" failed.\n("+r+")");t.request=r,delete u[s],f.parentNode.removeChild(f),a(t)},f.href=n,document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){u[s]=0}));var t=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,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.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:"3dd5ea64",1:"6cf4fcc0",2:"94d294dd",3:"98ecb255",4:"516fb98e",5:"3cd508ca",6:"dc0a622e",7:"0e417a35",8:"c3384ccf",9:"1cf1d3c6",10:"a5980622",11:"94f33fa9",12:"31074b32",13:"75fbdb93",14:"50a8d6cd",15:"cc147796",16:"e975acec",17:"67da1b3f",18:"324a37ed",19:"1aac9dd7",20:"4660c218",21:"2ca65536",22:"7b30820c",23:"12e65d34",24:"d88a3cad",25:"b1be5899",27:"1c01ec2c",28:"5510b46c",29:"d4a92690",31:"34ce5f12",32:"41ca1c66",33:"4baa4e31",34:"2e983343",35:"094ca7d6",37:"7951ce42",38:"70e9bd98",39:"fa6af3f3",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);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 c=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},p.m=i,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)p.d(t,a,function(e){return r[e]}.bind(null,a));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.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 b=a;f()}([])</script><script src="/mrstatic/js/36.b3176d91.chunk.js"></script><script src="/mrstatic/js/main.b85a8e2f.chunk.js"></script></body></html> <!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(i){function e(e){for(var r,t,a=e[0],n=e[1],o=e[2],c=0,d=[];c<a.length;c++)t=a[c],l[t]&&d.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(b&&b(e);d.length;)d.shift()();return s.push.apply(s,o||[]),f()}function f(){for(var e,r=0;r<s.length;r++){for(var t=s[r],a=!0,n=1;n<t.length;n++){var o=t[n];0!==l[o]&&(a=!1)}a&&(s.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},u={30:0},l={30:0},s=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.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:"d6114e36",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:"2fd45d08",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[s]+".chunk.css",n=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(i=t[o]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(c===r||c===n))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var i;if((c=(i=d[o]).getAttribute("data-href"))===r||c===n)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+s+" failed.\n("+r+")");t.request=r,delete u[s],f.parentNode.removeChild(f),a(t)},f.href=n,document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){u[s]=0}));var t=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,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.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:"3dd5ea64",1:"6cf4fcc0",2:"94d294dd",3:"95be3a03",4:"516fb98e",5:"3cd508ca",6:"dc0a622e",7:"0e417a35",8:"c3384ccf",9:"1cf1d3c6",10:"a5980622",11:"94f33fa9",12:"31074b32",13:"75fbdb93",14:"50a8d6cd",15:"cc147796",16:"e975acec",17:"67da1b3f",18:"324a37ed",19:"1aac9dd7",20:"351ca7e0",21:"2ca65536",22:"588b230f",23:"12e65d34",24:"d88a3cad",25:"454052b6",27:"1c01ec2c",28:"5510b46c",29:"d4a92690",31:"34ce5f12",32:"41ca1c66",33:"4baa4e31",34:"2e983343",35:"094ca7d6",37:"7951ce42",38:"70e9bd98",39:"fa6af3f3",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);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 c=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},p.m=i,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)p.d(t,a,function(e){return r[e]}.bind(null,a));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.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 b=a;f()}([])</script><script src="/mrstatic/js/36.b3176d91.chunk.js"></script><script src="/mrstatic/js/main.b85a8e2f.chunk.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1213:function(e,t,n){"use strict";n.r(t);n(41);var i=n(12),c=n.n(i),a=n(5),s=n(7),o=n(6),r=n(8),u=n(9),l=n(0),d=n.n(l),p=n(22),b=n(3),m=(n(728),n(37)),f=n.n(m),v=function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(o.a)(this,Object(r.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport"):c.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2)},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){f.a.set("blessing_invite_uid",Object(b.c)("shareuid"),{domain:".julyedu.com",expires:30}),f.a.set("blessing_invite_code",Object(b.c)("inviteCode"),{domain:".julyedu.com",expires:30})}},{key:"render",value:function(){return d.a.createElement("div",{className:"activity__con"},d.a.createElement("div",{className:"banner__con"}),d.a.createElement("div",{className:"content__con"},d.a.createElement("div",{className:"button__get",onClick:this.getGift},"\u7acb\u5373\u9886\u53d6")))}}]),t}(l.Component);t.default=Object(p.b)(function(e){return{user:e.user}},null)(v)},728:function(e,t,n){}}]);
//# sourceMappingURL=Activity.95be3a03.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getGift","user","hasError","history","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","jsCookie","set","getParam","domain","expires","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect","state"],"mappings":"yNAOMA,cACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,aAExBC,EAAAC,EAAMC,KAAK,yHAA2B,IAbvBd,oFAKjBe,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,sCAY/F,OACEC,EAAAP,EAAAQ,cAAA,OAAKC,UAAU,iBACbF,EAAAP,EAAAQ,cAAA,OAAKC,UAAU,gBACfF,EAAAP,EAAAQ,cAAA,OAAKC,UAAU,gBACbF,EAAAP,EAAAQ,cAAA,OAAKC,UAAU,cAAcC,QAASpB,KAAKI,SAA3C,qCAvBaiB,aA8BRC,sBACb,SAAAC,GAAK,MAAK,CAAClB,KAAMkB,EAAMlB,OACvB,KAFaiB,CAGb3B","file":"mrstatic/js/Activity.95be3a03.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com', expires: 30});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com', expires: 30});\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }\n }\n\n render() {\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>立即领取</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1213:function(e,t,n){"use strict";n.r(t);n(41);var c=n(12),a=n.n(c),i=n(5),o=n(7),s=n(6),r=n(8),u=n(9),l=n(0),d=n.n(l),b=n(22),m=n(3),p=(n(728),n(37)),f=n.n(p),v=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(s.a)(this,Object(r.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport"):a.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2)},n}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentWillMount",value:function(){f.a.set("blessing_invite_uid",Object(m.c)("shareuid"),{domain:".julyedu.com"}),f.a.set("blessing_invite_code",Object(m.c)("inviteCode"),{domain:".julyedu.com"})}},{key:"render",value:function(){return d.a.createElement("div",{className:"activity__con"},d.a.createElement("div",{className:"banner__con"}),d.a.createElement("div",{className:"content__con"},d.a.createElement("div",{className:"button__get",onClick:this.getGift},"\u7acb\u5373\u9886\u53d6")))}}]),t}(l.Component);t.default=Object(b.b)(function(e){return{user:e.user}},null)(v)},728:function(e,t,n){}}]);
//# sourceMappingURL=Activity.98ecb255.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getGift","user","hasError","history","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","jsCookie","set","getParam","domain","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect","state"],"mappings":"yNAOMA,cACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,aAExBC,EAAAC,EAAMC,KAAK,yHAA2B,IAbvBd,oFAKjBe,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,iBACnEH,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,kDAYtE,OACEC,EAAAN,EAAAO,cAAA,OAAKC,UAAU,iBACbF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,gBACfF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,gBACbF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,cAAcC,QAASnB,KAAKI,SAA3C,qCAvBagB,aA8BRC,sBACb,SAAAC,GAAK,MAAK,CAACjB,KAAMiB,EAAMjB,OACvB,KAFagB,CAGb1B","file":"mrstatic/js/Activity.98ecb255.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com'});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com'});\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }\n }\n\n render() {\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>立即领取</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1172:function(e,t,a){},1173:function(e,t,a){},1174:function(e,t,a){},1175:function(e,t,a){},1176:function(e,t,a){},1177:function(e,t,a){},1178:function(e,t,a){},1179:function(e,t,a){},1180:function(e,t,a){},1181:function(e,t,a){},1182:function(e,t,a){},1183:function(e,t,a){},1184:function(e,t,a){},1185:function(e,t,a){},1186:function(e,t,a){},1187:function(e,t,a){},1221:function(e,t,a){"use strict";a.r(t);var n=a(20),s=(a(41),a(12)),o=a.n(s),c=a(5),r=a(7),i=a(6),l=a(8),u=a(9),m=a(0),d=a.n(m),p=a(623),_=a.n(p),h=a(3),b=a(15),f=a(42),v=(a(1172),function(e){function t(e){var a;return Object(c.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(1173),function(e){function t(e){var a;return Object(c.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,o=e[1].data.data.today_browsed_courses||[];200===n&&a.setState({courseList:s.map(function(e){return o.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,o=t.toLogin;if(n)if(Object(h.c)("version")){var c=0;c=e.blessing?2:1;var r={courseId:e.course_id,type:c};Object(h.a)("toCourse",r)}else s.push("/detail?id=".concat(e.course_id,"&ac=11"));else o()},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(1174),function(e){function t(e){var a;return Object(c.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(1175);var j,C=function(e){return function(t){function a(){return Object(c.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(1176),function(e){function t(){return Object(c.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(1177),function(e){function t(){return Object(c.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,o=a?"list-header--".concat(a):"";return d.a.createElement("div",{id:s,className:N()("list-header",o),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(1178),a(37)),w=a.n(x),L=C(function(e){function t(e){var a;return Object(c.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,o=t.higher,c=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({},o,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})}),"four"===e&&a.setState({expand:Object.assign({},c,{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({},o,{isMore:!1,course:l,courseList:l})}),"four"===e&&a.setState({expand:Object.assign({},c,{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,o=s.code,c=s.data;200===o&&(c.excellent_course.length>2?a.setState({group:Object.assign({},t,{isMore:!0,course:c.excellent_course.filter(function(e,t){return t<2}),courseList:c.excellent_course})}):a.setState({group:Object.assign({},t,{isMore:!1,course:c.excellent_course,courseList:c.excellent_course})}),c.ai_elite_courses.length>2?a.setState({training:Object.assign({},n,{isMore:!0,course:c.ai_elite_courses.filter(function(e,t){return t<2}),courseList:c.ai_elite_courses})}):a.setState({training:Object.assign({},n,{isMore:!1,course:c.ai_elite_courses,courseList:c.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:"shouldComponentUpdate",value:function(e,t,a){return this.props.isApp===e.isApp||(this.fetchCourseData(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"toReceiveCoupon",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=this.props,c=s.isLogin,r=s.toLogin;c?h.d.post("".concat(API.home,"/sys/activity/coupon/receive"),{course_id:e}).then(function(s){var c=s.data,r=c.code,i=c.msg;if(200===r){o.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 o.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,o=a.higher,c=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||2===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||2===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")),o.course&&o.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"},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,"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||2===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("higher")}},o.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"},"\u6269\u5c55"),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,"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||2===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("expand")}},c.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")))}}]),t}(m.Component)),S=(a(1179),function(e){function t(){return Object(c.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",onClick:this.props.toClose},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)),A=(a(158),a(91)),I=a.n(A),T=(a(1180),C(function(e){function t(e){var a;return Object(c.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,o=void 0===s?[]:s;200===n&&a.setState({tabs:o.map(function(e){return{title:e.date}}),prizes:o})})},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(I.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,"\uff09"))})))}))})))}}]),t}(m.Component))),M=a(22),P=(a(1181),C(Object(M.b)(function(e){var t=e.user;return{uid:t&&t.data&&t.data.uid?t.data.uid:""}})(j=function(e){function t(e){var a;return Object(c.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&&o.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1)})},a.handleToInvite=function(){var e=a.props,t=e.uid,n=e.history;t?n.push("/invite"):Object(h.c)("version")?Object(h.a)("toLogin"):n.push("/passport")},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,c=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})?(s(),o.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(),c(),clearInterval(a.shareTimer))})},1e3)))})}},{key:"render",value:function(){var e=this,t=this.props,a=t.isSign,n=t.userInfo,s=n.blessingVal,o=void 0===s?0:s,c=n.buyBlessing,r=void 0===c?0:c,i=n.inviteBlessing,l=void 0===i?0:i,u=n.isFollow,m=void 0===u?0:u,p=t.isLogin,_=t.handleToShowNotice,h=t.handleToShowList,b=(t.handleToShow,t.toLogin),f=t.toSection,v=this.state,E=v.rules,g=v.welfareRuleList;v.seconds;return d.a.createElement("div",{className:"collect-blessing"},p?d.a.createElement(O,{text:"\u6211\u7684\u798f\u6c14\u503c\uff1a ".concat(o,"\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:b,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"),g.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"}}),E.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,p&&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:b,className:"collect-blessing__content"},"\u70b9\u51fb",d.a.createElement("br",null),"\u7b7e\u5230")),1===n&&d.a.createElement(d.a.Fragment,null,1===m?d.a.createElement("a",{className:"collect-blessing__content","data-status":"done",onClick:_},"\u5df2\u52a030\u70b9"):d.a.createElement("a",{className:"collect-blessing__content",onClick:_},"\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:h},"\u6d4f\u89c8\u8bfe\u7a0b",d.a.createElement("br",null),"\u8be6\u60c5\u9875"),4===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:e.handleToInvite},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:f},d.a.createElement("span",null,"\u53bb\u9009\u8bfe"),r>0&&d.a.createElement("i",null,"\u5df2\u52a0",r,"\u70b9")))}))}}]),t}(m.Component))||j)),D=(a(1182),a(49)),R=function(e){function t(e){var a;return Object(c.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,c=t.msg;200===n?a.setState({courseData:s.filter(function(e,t){return t<4}),courseDataAll:s}):o.a.info(c,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,c=s.user;s.history;c&&c.data&&c.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}):o.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:"shouldComponentUpdate",value:function(e,t,a){return this.props.isApp===e.isApp||(this.fetchAICourse(),!1)}},{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(U,{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 U(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 z,B=C(Object(M.b)(function(e){return{user:e.user}})(Object(D.g)(R))),q=(a(1183),C(function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).startTest=function(){var e=a.props,t=(e.history,e.isLogin),n=e.toLogin;t?window.location.href="".concat(API.m,"/levelTest/test"):n()},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,o=s.user_test_total,c=s.user_residue_number;200===n&&e.setState({testNumber:o,number:c})})}},{key:"render",value:function(){var e=this.state,t=e.testNumber,a=(e.number,e.prizeListUrl);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"))),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"},a.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))),F=(a(1184),function(e){function t(e){var a;return Object(c.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)),H=(a(1185),a(27)),Q=(a(716),a(1186),Object(M.b)(function(e){return{user:e.user}})(z=function(e){function t(){var e,a;Object(c.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:[],today:"",isApp:Object(h.c)("version")},a.toLiveRoom=function(e){var t=a.props,n=t.history,s=t.isLogin;a.state.isApp?s?Object(h.a)("toLiveRoom",e):Object(h.a)("toLogin"):s?window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e):n.push("/passport")},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["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data;200==t.errno?_.a.toDataURL(t.data.url,function(e,t){Object(H.h)({title:"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6",content:d.a.createElement("img",{id:"live-qr-code",src:t,alt:""})})}):o.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,c=a.data.data_active.reduce(function(e,t){return t.date in e?e[t.date].push(t):e[t.date]=[t],e},{}),r=a.data.data_hot.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(c).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=Object.keys(r).map(function(e){return{title:e}}),s=Object(f.uniqBy)(a.data.data_hot,function(e){return e.date}).findIndex(function(e){return e.is_today})),e.setState({tabs:n,lives:c,today:s,preheatLives:r})}else o.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.preheatLives,o=t.today;return d.a.createElement("div",{id:"live"},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"},""!==o&&d.a.createElement(I.a,{tabs:a,tabBarBackgroundColor:"transparent",tabBarActiveTextColor:"#5600DF",tabBarInactiveTextColor:"#FFF604",tabBarUnderlineStyle:{display:"none"},initialPage:o,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(V,{item:t,key:a,makeSubscribe:e.makeSubscribe,toLiveRoom:e.toLiveRoom})}))}):a.map(function(t,a){var n=s[t.title];return d.a.createElement("div",{key:a},n.map(function(t,a){return d.a.createElement(V,{item:t,key:a,makeSubscribe:e.makeSubscribe,toLiveRoom:e.toLiveRoom})}))}))))}}]),t}(m.Component))||z);function V(e){var t=e.item,a=e.makeSubscribe,n=e.toLiveRoom;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:function(){n(t.room_url)}},"\u6b63\u5728\u76f4\u64ad"):t.is_end?d.a.createElement("button",{className:"subscribed"},"\u5df2\u7ed3\u675f"):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 Y=Object(D.g)(Q),W=(a(1187),function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];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)),X=a(31),J=a(156),G=a(25),K=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(J.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){w.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),w.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),w.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),w.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),w.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),w.a.get("token")&&w.a.get("uid")&&(a.fetchUserBlessing(),a.setState({isApp:!0})),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.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},a.fetchMoudleId=function(e){var t=a.state.navs;return Object(f.findIndex)(t,function(t){return t.id===e})},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}),o=a.getActiveIndex(s,window.pageYOffset);a.setState({index:o,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.fetchUserBlessing=function(){var e=a.state.userInfo;h.d.get("".concat(API.home,"/sys/user/blessing")).then(function(t){var n=t.data,s=n.code,o=n.data;200===s&&(a.setState({isSign:!!o.today_signed,isFormal:o.is_activity,userInfo:Object.assign({},e,{isFollow:o.subscribed,blessingVal:o.user_blessing_value,buyBlessing:o.types_total_blessing_value&&o.types_total_blessing_value.buy_course?o.types_total_blessing_value.buy_course:0,inviteBlessing:o.types_total_blessing_value&&o.types_total_blessing_value.invite?o.types_total_blessing_value.invite:0})}),1===o.is_login&&a.handleToSign(),a.initNav(o.is_activity))})},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&&o.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1)})},a.handleToSign=function(){var e=a.state.userInfo;h.d.post("".concat(API.home,"/sys/add/blessing"),{type:1}).then(function(t){200===t.data.code&&(a.setState({isSign:!0,userInfo:Object.assign({},e,{blessingVal:e.blessingVal+5})}),o.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 o={};o[e]=!0,a.setState(Object(n.a)({},o))}},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){Object(H.h)({title:"",content:d.a.createElement("img",{src:e,alt:"barcode",className:"qr-code"}),className:"invite-popup"})}).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(){o.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,o=window.scrollY,c=o>a.prevY?"up":"down";e="up"===c?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;o<=a.navTop?i.classList.remove("fixed"):!i.classList.contains("fixed")&&i.classList.add("fixed"),"up"===c?o+30+30>=l&&a.setState({index:e}):o+30+20<=l&&a.setState({index:e}),a.prevY=o}},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,isApp:!1},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){h.d.post("".concat(API.home,"/sys/add/blessing"),{share_platform:t,type:3}).then(function(t){200===t.data.code&&(o.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1),e.fetchUserBlessing())})}}},{key:"render",value:function(){var e=this,t=this.state,a=t.navs,n=t.userInfo,s=t.isRule,o=t.isCourse,c=t.isFormal,r=t.isSign,i=t.showRecordList,l=t.shareMark,u=t.index,m=t.isApp,p=this.props.history,_=!this.props.user.hasError;return d.a.createElement("div",{id:"blessing-preheat"},d.a.createElement(W,{isFormal:c,navs:a,toSection:this.toSection,index:u}),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(P,{isSign:r,userInfo:n,isLogin:_,history:this.props.history,toSection:function(t){return e.toSection(e.fetchMoudleId("best-courses"),t)},handleToShowList:function(){return e.handleToShow("isCourse")},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(T,null),0===c&&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(B,{isApp:m})),d.a.createElement(O,{id:"best-courses",text:"\u7cbe\u54c1\u8bfe\u7a0b\u7279\u60e0\u4e13\u533a",styles:{margin:"30px 0 15px"}}),d.a.createElement(L,{isApp:m,isFormal:c,isLogin:_,history:this.props.history,toLogin:this.toLogin}),s&&d.a.createElement(v,{handleToHide:function(){return e.handleToHide("isRule")}}),o&&d.a.createElement(E,{toLogin:this.toLogin,history:p,isLogin:_,handleToHide:function(){return e.handleToHide("isCourse")}}),i&&d.a.createElement(g,{handleToHide:function(){return e.handleToHide("showRecordList")}}),l&&d.a.createElement(S,{toClose:function(){return e.handleToHide("shareMark")}}),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(q,{history:p,isLogin:_,toLogin:this.toLogin}),d.a.createElement(F,null),d.a.createElement(Y,{isFormal:c,isLogin:_}))}}]),t}(m.Component);t.default=Object(G.d)(Object(M.b)(function(e){return{user:e.user}},{setCurrentUser:X.g,startFetchUser:X.h}))(K)},716:function(e,t,a){"use strict";var n=a(717).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},717: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}}(),o=r(a(0)),c=r(a(718));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=o.default.Children.only(r),u=(0,c.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,o.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=o.default.Children.only(t);return o.default.cloneElement(s,n({},a,{onClick:this.onClick}))}}]),t}()).defaultProps={onCopy:void 0,options:void 0}},718:function(e,t,a){"use strict";var n=a(719),s="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var a,o,c,r,i,l,u=!1;t||(t={}),a=t.debug||!1;try{if(c=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"),o=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(o,e)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(r):i.removeAllRanges()),l&&document.body.removeChild(l),c()}return u}},719: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.351ca7e0.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],{1172:function(e,t,a){},1173:function(e,t,a){},1174:function(e,t,a){},1175:function(e,t,a){},1176:function(e,t,a){},1177:function(e,t,a){},1178:function(e,t,a){},1179:function(e,t,a){},1180:function(e,t,a){},1181:function(e,t,a){},1182:function(e,t,a){},1183:function(e,t,a){},1184:function(e,t,a){},1185:function(e,t,a){},1186:function(e,t,a){},1187:function(e,t,a){},1221:function(e,t,a){"use strict";a.r(t);var n=a(20),s=(a(41),a(12)),o=a.n(s),c=a(5),r=a(7),i=a(6),l=a(8),u=a(9),m=a(0),d=a.n(m),p=a(623),_=a.n(p),h=a(3),b=a(15),f=a(42),v=(a(1172),function(e){function t(e){var a;return Object(c.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(1173),function(e){function t(e){var a;return Object(c.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,o=e[1].data.data.today_browsed_courses||[];200===n&&a.setState({courseList:s.map(function(e){return o.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,o=t.toLogin;if(n)if(Object(h.c)("version")){var c=0;c=e.blessing?2:1;var r={courseId:e.course_id,type:c};Object(h.a)("toCourse",r)}else s.push("/detail?id=".concat(e.course_id,"&ac=11"));else o()},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(1174),function(e){function t(e){var a;return Object(c.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(1175);var j,C=function(e){return function(t){function a(){return Object(c.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(1176),function(e){function t(){return Object(c.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(1177),function(e){function t(){return Object(c.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,o=a?"list-header--".concat(a):"";return d.a.createElement("div",{id:s,className:N()("list-header",o),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(1178),a(37)),w=a.n(x),L=C(function(e){function t(e){var a;return Object(c.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,o=t.higher,c=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({},o,{isMore:!0,course:l.filter(function(e,t){return t<4}),courseList:l})}),"four"===e&&a.setState({expand:Object.assign({},c,{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({},o,{isMore:!1,course:l,courseList:l})}),"four"===e&&a.setState({expand:Object.assign({},c,{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,o=s.code,c=s.data;200===o&&(c.excellent_course.length>2?a.setState({group:Object.assign({},t,{isMore:!0,course:c.excellent_course.filter(function(e,t){return t<2}),courseList:c.excellent_course})}):a.setState({group:Object.assign({},t,{isMore:!1,course:c.excellent_course,courseList:c.excellent_course})}),c.ai_elite_courses.length>2?a.setState({training:Object.assign({},n,{isMore:!0,course:c.ai_elite_courses.filter(function(e,t){return t<2}),courseList:c.ai_elite_courses})}):a.setState({training:Object.assign({},n,{isMore:!1,course:c.ai_elite_courses,courseList:c.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:"shouldComponentUpdate",value:function(e,t,a){return this.props.isApp===e.isApp||(this.fetchCourseData(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"toReceiveCoupon",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=this.props,c=s.isLogin,r=s.toLogin;c?h.d.post("".concat(API.home,"/sys/activity/coupon/receive"),{course_id:e}).then(function(s){var c=s.data,r=c.code,i=c.msg;if(200===r){o.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 o.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,o=a.higher,c=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||2===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||2===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")),o.course&&o.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"},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,"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||2===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("higher")}},o.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"},"\u6269\u5c55"),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,"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||2===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("expand")}},c.isMore?"\u5c55\u5f00\u66f4\u591a":"\u6536\u8d77")))}}]),t}(m.Component)),S=(a(1179),function(e){function t(){return Object(c.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)),A=(a(158),a(91)),I=a.n(A),T=(a(1180),C(function(e){function t(e){var a;return Object(c.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,o=void 0===s?[]:s;200===n&&a.setState({tabs:o.map(function(e){return{title:e.date}}),prizes:o})})},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(I.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,"\uff09"))})))}))})))}}]),t}(m.Component))),M=a(22),P=(a(1181),C(Object(M.b)(function(e){var t=e.user;return{uid:t&&t.data&&t.data.uid?t.data.uid:""}})(j=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).qqToShare=function(e){e.preventDefault();var t=a.props,n=t.uid,s=t.history;Object(h.c)("version")?n?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"):n?(s.push("/blessingPreheat?utm_source=qq&utm_medium=11&utm_campaign=QQ11&utm_content=11&utm_term=11"),a.fetchUserBlessing(3,function(){a.handleToAddBlessing(3)})):s.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&&o.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1)})},a.handleToInvite=function(){var e=a.props,t=e.uid,n=e.history;t?n.push("/invite"):Object(h.c)("version")?Object(h.a)("toLogin"):n.push("/passport")},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,c=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})?o.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(),c(),clearInterval(a.shareTimer))})},1e3)))})}},{key:"render",value:function(){var e=this,t=this.props,a=t.isSign,n=t.userInfo,s=n.blessingVal,o=void 0===s?0:s,c=n.buyBlessing,r=void 0===c?0:c,i=n.inviteBlessing,l=void 0===i?0:i,u=n.isFollow,m=void 0===u?0:u,p=t.isLogin,_=t.handleToShowNotice,h=t.handleToShowList,b=(t.handleToShow,t.toLogin),f=t.toSection,v=this.state,E=v.rules,g=v.welfareRuleList;v.seconds;return d.a.createElement("div",{className:"collect-blessing"},p?d.a.createElement(O,{text:"\u6211\u7684\u798f\u6c14\u503c\uff1a ".concat(o,"\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:b,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"),g.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"}}),E.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,p&&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:b,className:"collect-blessing__content"},"\u70b9\u51fb",d.a.createElement("br",null),"\u7b7e\u5230")),1===n&&d.a.createElement(d.a.Fragment,null,1===m?d.a.createElement("a",{className:"collect-blessing__content","data-status":"done",onClick:_},"\u5df2\u52a030\u70b9"):d.a.createElement("a",{className:"collect-blessing__content",onClick:_},"\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:function(t){return e.qqToShare(t)}}),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:h},"\u6d4f\u89c8\u8bfe\u7a0b",d.a.createElement("br",null),"\u8be6\u60c5\u9875"),4===n&&d.a.createElement("a",{className:"collect-blessing__content",onClick:e.handleToInvite},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:f},d.a.createElement("span",null,"\u53bb\u9009\u8bfe"),r>0&&d.a.createElement("i",null,"\u5df2\u52a0",r,"\u70b9")))}))}}]),t}(m.Component))||j)),D=(a(1182),a(49)),R=function(e){function t(e){var a;return Object(c.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,c=t.msg;200===n?a.setState({courseData:s.filter(function(e,t){return t<4}),courseDataAll:s}):o.a.info(c,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,c=s.user;s.history;c&&c.data&&c.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}):o.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:"shouldComponentUpdate",value:function(e,t,a){return this.props.isApp===e.isApp||(this.fetchAICourse(),!1)}},{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(U,{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 U(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 z,B=C(Object(M.b)(function(e){return{user:e.user}})(Object(D.g)(R))),q=(a(1183),C(function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).startTest=function(){var e=a.props,t=(e.history,e.isLogin),n=e.toLogin;t?window.location.href="".concat(API.m,"/levelTest/test"):n()},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,o=s.user_test_total,c=s.user_residue_number;200===n&&e.setState({testNumber:o,number:c})})}},{key:"render",value:function(){var e=this.state,t=e.testNumber,a=(e.number,e.prizeListUrl);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"))),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"},a.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))),F=(a(1184),function(e){function t(e){var a;return Object(c.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)),H=(a(1185),a(27)),Q=(a(716),a(1186),Object(M.b)(function(e){return{user:e.user}})(z=function(e){function t(){var e,a;Object(c.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:[],today:"",isApp:Object(h.c)("version")},a.toLiveRoom=function(e){var t=a.props,n=t.history,s=t.isLogin;a.state.isApp?s?Object(h.a)("toLiveRoom",e):Object(h.a)("toLogin"):s?window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e):n.push("/passport")},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["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data;200==t.errno?_.a.toDataURL(t.data.url,function(e,t){Object(H.h)({title:"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6",content:d.a.createElement("img",{id:"live-qr-code",src:t,alt:""})})}):o.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,c=a.data.data_active.reduce(function(e,t){return t.date in e?e[t.date].push(t):e[t.date]=[t],e},{}),r=a.data.data_hot.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(c).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=Object.keys(r).map(function(e){return{title:e}}),s=Object(f.uniqBy)(a.data.data_hot,function(e){return e.date}).findIndex(function(e){return e.is_today})),e.setState({tabs:n,lives:c,today:s,preheatLives:r})}else o.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.preheatLives,o=t.today;return d.a.createElement("div",{id:"live"},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"},""!==o&&d.a.createElement(I.a,{tabs:a,tabBarBackgroundColor:"transparent",tabBarActiveTextColor:"#5600DF",tabBarInactiveTextColor:"#FFF604",tabBarUnderlineStyle:{display:"none"},initialPage:o,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(V,{item:t,key:a,makeSubscribe:e.makeSubscribe,toLiveRoom:e.toLiveRoom})}))}):a.map(function(t,a){var n=s[t.title];return d.a.createElement("div",{key:a},n.map(function(t,a){return d.a.createElement(V,{item:t,key:a,makeSubscribe:e.makeSubscribe,toLiveRoom:e.toLiveRoom})}))}))))}}]),t}(m.Component))||z);function V(e){var t=e.item,a=e.makeSubscribe,n=e.toLiveRoom;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:function(){n(t.room_url)}},"\u6b63\u5728\u76f4\u64ad"):t.is_end?d.a.createElement("button",{className:"subscribed"},"\u5df2\u7ed3\u675f"):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 Y=Object(D.g)(Q),W=(a(1187),function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];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)),X=a(31),J=a(156),G=a(25),K=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(J.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){w.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),w.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),w.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),w.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),w.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),w.a.get("token")&&w.a.get("uid")&&(a.fetchUserBlessing(),a.setState({isApp:!0})),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.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},a.fetchMoudleId=function(e){var t=a.state.navs;return Object(f.findIndex)(t,function(t){return t.id===e})},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}),o=a.getActiveIndex(s,window.pageYOffset);a.setState({index:o,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.fetchUserBlessing=function(){var e=a.state.userInfo;h.d.get("".concat(API.home,"/sys/user/blessing")).then(function(t){var n=t.data,s=n.code,o=n.data;200===s&&(a.setState({isSign:!!o.today_signed,isFormal:o.is_activity,userInfo:Object.assign({},e,{isFollow:o.subscribed,blessingVal:o.user_blessing_value,buyBlessing:o.types_total_blessing_value&&o.types_total_blessing_value.buy_course?o.types_total_blessing_value.buy_course:0,inviteBlessing:o.types_total_blessing_value&&o.types_total_blessing_value.invite?o.types_total_blessing_value.invite:0})}),1===o.is_login&&a.handleToSign(),a.initNav(o.is_activity))})},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&&o.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1)})},a.handleToSign=function(){var e=a.state.userInfo;h.d.post("".concat(API.home,"/sys/add/blessing"),{type:1}).then(function(t){200===t.data.code&&(a.setState({isSign:!0,userInfo:Object.assign({},e,{blessingVal:e.blessingVal+5})}),o.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 o={};o[e]=!0,a.setState(Object(n.a)({},o))}},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){Object(H.h)({title:"",content:d.a.createElement("img",{src:e,alt:"barcode",className:"qr-code"}),className:"invite-popup"})}).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(){o.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,o=window.scrollY,c=o>a.prevY?"up":"down";e="up"===c?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;o<=a.navTop?i.classList.remove("fixed"):!i.classList.contains("fixed")&&i.classList.add("fixed"),"up"===c?o+30+30>=l&&a.setState({index:e}):o+30+20<=l&&a.setState({index:e}),a.prevY=o}},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,isApp:!1},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){h.d.post("".concat(API.home,"/sys/add/blessing"),{share_platform:t,type:3}).then(function(t){200===t.data.code&&(o.a.info("+2\u70b9\u798f\u6c14\u503c~",2,null,!1),e.fetchUserBlessing())})}}},{key:"render",value:function(){var e=this,t=this.state,a=t.navs,n=t.userInfo,s=t.isRule,o=t.isCourse,c=t.isFormal,r=t.isSign,i=t.showRecordList,l=t.shareMark,u=t.index,m=t.isApp,p=this.props.history,_=!this.props.user.hasError;return d.a.createElement("div",{id:"blessing-preheat"},d.a.createElement(W,{isFormal:c,navs:a,toSection:this.toSection,index:u}),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(P,{isSign:r,userInfo:n,isLogin:_,history:this.props.history,toSection:function(t){return e.toSection(e.fetchMoudleId("best-courses"),t)},handleToShowList:function(){return e.handleToShow("isCourse")},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(T,null),0===c&&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(B,{isApp:m})),d.a.createElement(O,{id:"best-courses",text:"\u7cbe\u54c1\u8bfe\u7a0b\u7279\u60e0\u4e13\u533a",styles:{margin:"30px 0 15px"}}),d.a.createElement(L,{isApp:m,isFormal:c,isLogin:_,history:this.props.history,toLogin:this.toLogin}),s&&d.a.createElement(v,{handleToHide:function(){return e.handleToHide("isRule")}}),o&&d.a.createElement(E,{toLogin:this.toLogin,history:p,isLogin:_,handleToHide:function(){return e.handleToHide("isCourse")}}),i&&d.a.createElement(g,{handleToHide:function(){return e.handleToHide("showRecordList")}}),l&&d.a.createElement(S,null),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(q,{history:p,isLogin:_,toLogin:this.toLogin}),d.a.createElement(F,null),d.a.createElement(Y,{isFormal:c,isLogin:_}))}}]),t}(m.Component);t.default=Object(G.d)(Object(M.b)(function(e){return{user:e.user}},{setCurrentUser:X.g,startFetchUser:X.h}))(K)},716:function(e,t,a){"use strict";var n=a(717).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},717: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}}(),o=r(a(0)),c=r(a(718));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=o.default.Children.only(r),u=(0,c.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,o.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=o.default.Children.only(t);return o.default.cloneElement(s,n({},a,{onClick:this.onClick}))}}]),t}()).defaultProps={onCopy:void 0,options:void 0}},718:function(e,t,a){"use strict";var n=a(719),s="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var a,o,c,r,i,l,u=!1;t||(t={}),a=t.debug||!1;try{if(c=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"),o=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(o,e)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(r):i.removeAllRanges()),l&&document.body.removeChild(l),c()}return u}},719: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.4660c218.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([[22],{1223:function(e,t,a){"use strict";a.r(t);var n=a(20),o=a(5),c=a(7),s=a(6),i=a(8),r=a(9),l=a(0),u=a.n(l),m=a(15),p=a(49),d=a(23),h=a(82),E=(a(41),a(12)),f=a.n(E),v=a(147),b=(a(799),a(800),a(801),a(17)),C=a.n(b),g=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(i.a)(t).call(this,e))).clearInput=function(){a.props.onChange("")},a.state={isFocus:!1},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.type,n=t.placeholder,o=this.state.isFocus;return u.a.createElement("div",{className:"custom-input-wrapper"},u.a.createElement("input",{type:a,className:C()("custom-input",{"custom-input--active":o}),placeholder:n,onChange:this.props.onChange,value:this.props.value,onBlur:function(){e.setState({isFocus:!1})},onFocus:function(){e.setState({isFocus:!0})}}),u.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(l.Component);g.defaultProps={type:"text",placeholder:""};var y=g,N=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return u.a.createElement("div",{className:"exchange-bar"},u.a.createElement(y,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),u.a.createElement("button",{className:C()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(l.Component),O=a(81),x=(a(802),a(3)),j=a(659),_=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).VOUCHER=1,a.FREE=2,a.EXPAND=4,a.pick=function(e){var t=a.props,n=t.useCoupon,o=t.invalid,c=t.start_amount,s=t.id,i=t.location,r=t.history,l=t.code,u=i.state;u&&u.from&&"/my"===u.from&&"undefined"!==typeof c?r.push("/expand/index?deposit_code=".concat(l)):c?a.stopExpanding(s,e):!o&&n&&n(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a.ExchangeCourse=function(e){a.props.toExchangeCourse(e,a.props.code)},a.stopExpanding=function(e,t){var n=a.props,o=n.amount,c=n.limit_amount;t.stopPropagation(),Object(j.a)({amount:o,limit_amount:c,onConfirm:function(){x.d.post("".concat(API.home,"/m/end_expansion"),{id:e}).then(function(t){var n=t.data;200==n.code?a.props.endExpansion(e,n.data.coupon_id):f.a.info(n.msg)})}})},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e,t,a=this,n=this.props,o=n.ctype,c=n.amount,s=n.course_title,i=n.showUseButton,r=n.id,l=n.format_expire_time,m=n.start_amount,p=n.limit_amount;switch(o){case this.VOUCHER:e=u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b"),i&&o==this.VOUCHER&&u.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528"));break;case this.FREE:e=u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"course-title"},s),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),i&&o==this.FREE&&u.a.createElement("button",{className:"use",onClick:function(e){return a.ExchangeCourse(e)}},"\u7acb\u5373\u5151\u6362"));break;case this.EXPAND:e=m?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"progress-container"},u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("div",{className:"progress-bar-container"},u.a.createElement("span",{className:"progress-bar",style:{width:"".concat(Math.round((c-m)/p*100),"%")}})),u.a.createElement("div",{className:"money"},u.a.createElement("span",null,m,"\u5143"),u.a.createElement("span",null,p,"\u5143")))):u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u5168\u573a\u901a\u7528"),m&&u.a.createElement("button",{className:"stop-expanding",onClick:this.stopExpanding.bind(this,r)},"\u7acb\u5373\u7ed3\u675f\u81a8\u80c0"))}return u.a.createElement(k,Object.assign({},this.props,{top:e,VOUCHER:this.VOUCHER,FREE:this.FREE,EXPAND:this.EXPAND,pick:this.pick,bottom:t}))}}]),t}(l.PureComponent);function k(e){var t,a=e.pick,n=e.ctype,o=e.invalid,c=e.top,s=e.VOUCHER,i=e.FREE,r=e.EXPAND,l=e.selectedCouponId,m=e.id,p=e.bottom,d=(t={},Object(O.a)(t,s,"\u4ee3\u91d1\u5238"),Object(O.a)(t,i,"\u8bfe\u7a0b\u5238"),Object(O.a)(t,r,"\u81a8\u80c0\u5238"),t);return u.a.createElement("li",{className:"coupon",onClick:a},u.a.createElement("div",{className:C()("coupon-info",o?"invalid":"coupon-type".concat(n))},u.a.createElement("p",{className:"type"},d[n]),c,l===m&&u.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-5",{check:!o})}),u.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return u.a.createElement("li",{key:t})}))),u.a.createElement("div",{className:"coupon-des"},p))}var A,I=Object(p.g)(_),P=a(63),S=a(22),F=Object(S.b)()(A=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(x.c)("id"),showUseButton:!1,courseCouponExchange:!1,courseCouponData:""},a.handleChange=function(e){var t=e?e.target.value:"";a.setState({redeemCode:t})},a.exchange=function(){var e=a.props.location.state,t=void 0===e?{}:e;""!==a.state.redeemCode?x.d.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode,type:t.from.substr(1)}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if("/my"===t.from&&(2==o.ctype?a.setState({courseCouponData:o,courseCouponExchange:!0,redeemCode:""}):(a.setState({couponList:[].concat(Object(v.a)(a.state.couponList),[o]),redeemCode:""}),f.a.info("\u5151\u6362\u6210\u529f"),a.getMyCoupons())),"/order"===t.from){var c=n.data;2==c.ctype&&c.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(v.a)(a.state.invalid_coupons),[c]),showUseButton:null,redeemCode:""}):a.setState({valid_coupons:[].concat(Object(v.a)(a.state.valid_coupons),[c]),redeemCode:""}),f.a.info("\u5151\u6362\u6210\u529f"),a.getAllCoupons()}}else f.a.info(n.msg)}):f.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){Promise.all([x.d.get("".concat(API.home,"/m/coupon/expansion")),x.d.get("".concat(API.home,"/m/coupon/all"))]).then(function(e){var t=[],n=Object(h.a)(e,2),o=n[0],c=n[1].data,s=o.data;200==s.code?Array.isArray(s.data)&&(s.data=s.data.map(function(e){return e.ctype=4,e}))&&(t=t.concat(s.data)):f.a.info(s.msg),200==c.code?Array.isArray(c.data)&&(t=t.concat(c.data)):f.a.info(c.msg),a.setState({couponList:t})})},a.getAllCoupons=function(){Promise.all([x.d.get("".concat(API.home,"/m/coupon/expansion")),x.d.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId})]).then(function(e){var t=Object(h.a)(e,2),n=t[0],o=t[1].data,c=n.data;if(200==c.code?Array.isArray(c.data)&&(c.data=c.data.map(function(e){return e.ctype=4,e}))&&a.setState({valid_coupons:a.state.valid_coupons.concat(c.data)}):f.a.info(c.msg),200===o.code){var s=o.data.inuse_coupon;a.setState({valid_coupons:s?[].concat(Object(v.a)(s),Object(v.a)(o.data.valid_coupons)):o.data.valid_coupons,invalid_coupons:o.data.invalid_coupons,selectedCouponId:s.length?s[0].id:0})}else f.a.info(data.msg)})},a.toExchangeCourse=function(e,t){e.stopPropagation(),x.d.post("".concat(API["base-api"],"/pay/miandan/").concat(t),{}).then(function(e){var t=e.data;200===t.errno?(a.setState({courseCouponExchange:!0,courseCouponData:e.data.data}),a.getMyCoupons()):f.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props.history,n=a.state.couponList.find(function(t){return t.id===e});if(e)if(a.state.showUseButton){if(0!==n.limit_course)return t.push("/detail?id=".concat(n.limit_course)),!1;t.push("/classify")}else{var o=a.state,c=o.courseId;o.selectedCouponId===e?x.d.post("".concat(API.home,"/m/coupon/cancel"),{course_id:c}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):f.a.info(t.msg)}):x.d.post("".concat(API.home,"/m/coupon/use"),{course_id:a.state.courseId,coupon_id:e}).then(function(t){var n=t&&t.data;200===n.code?(a.setState({selectedCouponId:e}),a.props.history.goBack()):f.a.info(n.msg)})}else f.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a.toStudy=function(e,t){var n=a.props.history;0==t?f.a.info("\u5c1a\u672a\u5f00\u8bfe\uff0c\u5f00\u8bfe\u540e\u7acb\u5373\u4e0a\u4f20\u8bfe\u7a0b\uff5e",2):n.push("/play/video?id=".concat(e)),a.setState({courseCouponExchange:!1})},a.closeFreeCourse=function(){a.setState({courseCouponExchange:!1})},a.endExpansion=function(e,t){a.setState({valid_coupons:a.state.valid_coupons.map(function(a){return a.id===e&&(delete a.start_amount,a.id=t),a})})},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.history,a=e.location,n=this.props.location.state;n&&n.from&&("/my"===n.from?(this.getMyCoupons(),this.setState({showUseButton:!0})):(this.state.courseId||(a.state&&a.state.from?t.replace(a.state.from):t.goBack()),this.getAllCoupons()))}},{key:"render",value:function(){var e=this.props.location.state,t=this.state,a=t.showUseButton,n=t.selectedCouponId;return u.a.createElement("div",{className:"use-coupon"},u.a.createElement(N,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),u.a.createElement("div",{className:"coupons-area"},u.a.createElement(w,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon,toExchangeCourse:this.toExchangeCourse,endExpansion:this.endExpansion}),this.state.invalid_coupons.length>0&&u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),u.a.createElement(w,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))),this.state.courseCouponExchange&&u.a.createElement(U,{toStudy:this.toStudy,closeFreeCourse:this.closeFreeCourse,courseCouponData:this.state.courseCouponData}))}}]),t}(l.PureComponent))||A;function w(e){var t=e.coupons,a=Object(d.a)(e,["coupons"]);return 0===t.length?u.a.createElement("div",{className:"empty"},u.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):u.a.createElement("ul",null,t.map(function(e){return u.a.createElement(I,Object.assign({key:e.id},e,{id:e.id},a))}))}function U(e){var t=e.toStudy,a=e.closeFreeCourse,n=e.courseCouponData;return u.a.createElement("div",{className:"free-coupon-box"},u.a.createElement("div",{className:"free-coupon-content"},u.a.createElement("div",{className:"coures-content-success"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"})),u.a.createElement("div",{className:"coures-content-title"},"\u606d\u559c\u4f60\u8bfe\u7a0b\u5151\u6362\u6210\u529f!\u8d76\u5feb\u53bb\u5b66\u4e60\u5427~"),u.a.createElement("img",{className:"coures-content-img",src:n.image_name,alt:""}),0!=n.course_expire&&u.a.createElement("div",{className:"coures-content-tip"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),u.a.createElement("span",null,"\u8bfe\u7a0b\u6709\u6548\u671f\uff1a\u81ea\u4eca\u65e5\u8d77",n.course_expire,"\u5929\u5185\uff0c\u8bf7\u5728\u6709\u6548\u671f\u5185\u5b66\u4e60\u8be5\u8bfe\u7a0b\u54e6\uff5e")),u.a.createElement("a",{className:"toStudy",onClick:function(){return t(n.v_course_id,n.is_is_start)}},"\u53bb\u5b66\u4e60")),u.a.createElement("div",{className:"free-coupon-close"},u.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:function(){return a()}})))}var D=Object(P.a)(F),R=a(89),B=(a(803),a(27)),L=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(i.a)(t).call(this,e))).select=function(e,t){a.state.couponAmount>=t.amount&&a.setState({checkedIndex:e})},a.compound=function(){var e=Object(R.a)(a);a.state.couponAmount>=10&&x.d.post("".concat(API.home,"/sys/red_packet/compose"),{type:e.state.checkedIndex+1}).then(function(t){200===t.data.code?(e.setState({success:!0}),setTimeout(function(){e.getPatchList()},2e3)):f.a.info(t.data.msg,2)})},a.state={success:!1,checkedIndex:0,list:[{amount:10,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:20,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:50,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:100,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"}],couponAmount:""},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getPatchList()}},{key:"getPatchList",value:function(){var e=this;x.d.get("".concat(API.home,"/sys/red_packet/balance")).then(function(t){200===t.data.code?e.setState({couponAmount:t.data.data.coupon_amount,success:!1}):f.a.info(t.data.msg,2)})}},{key:"render",value:function(){return u.a.createElement("div",{className:"my-patch"},u.a.createElement("div",{className:"couponAmount"},"\u4ee3\u91d1\u5238\u788e\u7247\u4f59\u989d\uff1a",u.a.createElement("span",null,this.state.couponAmount,"\u5143")),u.a.createElement(M,{data:this.state.list,myAmount:this.state.couponAmount,select:this.select,checkedIndex:this.state.checkedIndex}),u.a.createElement("div",{className:"compound-button--compose"},u.a.createElement("button",{className:"compound ".concat(this.state.couponAmount>=10?"disable-active":"disable"),onClick:this.compound},"\u5408\u6210")),u.a.createElement("div",{className:"patch-desc"},u.a.createElement("p",{className:"title"},u.a.createElement("i",null),u.a.createElement("span",null,"\u4ee3\u91d1\u5238\u788e\u7247\u8bf4\u660e"),u.a.createElement("i",null)),u.a.createElement("p",{className:"desc-item"},"1. \u788e\u7247\u53ef\u901a\u8fc7\u201c\u5206\u4eab\u8bfe\u7a0b\u9886\u53d6\u7ea2\u5305\u201d\u83b7\u5f97\uff0c\u4e5f\u53ef\u901a\u8fc7\u7ebf\u4e0a\u6d3b\u52a8\u83b7\u5f97\uff0c\u5177\u4f53\u8bf7\u5173\u6ce8\u5b98\u7f51\u4fe1\u606f\uff1b"),u.a.createElement("p",{className:"desc-item"},"2. \u788e\u7247\u5728\u8d2d\u8bfe\u65f6\u4e0d\u80fd\u5355\u72ec\u4f7f\u7528\uff0c\u53ef\u5408\u6210\u5b8c\u6574\u4ee3\u91d1\u5238\u540e\u7528\u4ee3\u91d1\u5238\u62b5\u6263\u73b0\u91d1\uff1b"),u.a.createElement("p",{className:"desc-item"},"3. \u788e\u7247\u5408\u6210\u4ee3\u91d1\u5238\u540e7\u65e5\u5185\u6709\u6548\u3002")),this.state.success&&u.a.createElement("div",{className:"success"},"\u5151\u6362\u6210\u529f"))}}]),t}(l.PureComponent);function M(e){var t=e.data,a=e.myAmount,n=e.select,o=e.checkedIndex;return u.a.createElement("div",{className:"coupons"},t&&t.length>0&&t.map(function(e,t){return u.a.createElement("div",{className:"items-box",key:t,onClick:function(){return n(t,e)}},u.a.createElement("div",{className:"coupon-info ".concat(a>=e.amount?"active":null)},u.a.createElement("div",{className:"type"},e.type),u.a.createElement("div",{className:"amount"},u.a.createElement("span",null,e.amount),"\u5143"),a>=e.amount&&u.a.createElement("i",{className:"checkout ".concat(t===o?"iconfont icondanseshixintubiao-5":"nochecked")}),u.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return u.a.createElement("li",{key:t})}))),u.a.createElement("div",{className:"coupon-des"},e.desc))}))}var H=Object(P.a)(L),V=(a(804),function(e){function t(){return Object(o.a)(this,t),Object(s.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.match,a=e.location;return u.a.createElement("div",{className:"coupons-box"},u.a.createElement(B.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),u.a.createElement("section",{id:"coupons"},u.a.createElement("div",{className:"tab"},u.a.createElement("div",null,u.a.createElement(m.c,{to:{pathname:"".concat(t.url,"/my-coupon"),search:a.search,state:Object(n.a)({},this.props.location.state)},replace:!0,activeClassName:"tab-active"},"\u6211\u7684\u4f18\u60e0\u5238")),u.a.createElement("div",null,u.a.createElement(m.c,{to:{pathname:"".concat(t.url,"/my-patch"),search:a.search,state:Object(n.a)({},this.props.location.state)},replace:!0,activeClassName:"tab-active"},"\u788e\u7247\u5408\u6210"))),u.a.createElement("div",{className:"btm-border"}),u.a.createElement("div",{className:"coupons-container"},u.a.createElement(p.d,null,u.a.createElement(p.a,{exact:!0,from:"/coupons",to:{pathname:"coupons/my-coupon",search:a.search,state:{from:this.props.location.state&&this.props.location.state.from}}}),u.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-coupon"),component:D}),u.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-patch"),component:H})))))}}]),t}(l.Component));t.default=V},659:function(e,t,a){"use strict";a(256);var n=a(92),o=a.n(n),c=a(0),s=a.n(c);a(660);t.a=function(e){var t=e.amount,a=e.limit_amount,n=e.onCancel,c=void 0===n?function(){}:n,i=e.onConfirm,r=s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"end-expansion-alert-ques"},"\u4f60\u7684".concat(t,"\u5143\u4f18\u60e0\u5238\u6b63\u5728\u81a8\u80c0\u4e2d\uff0c\n \u786e\u5b9a\u8981\u7ed3\u675f\u81a8\u80c0\u5417\uff1f")),s.a.createElement("div",{className:"end-expansion-alert-hint"},"\u79bb".concat(a,"\u5143\u53ea\u5dee\u4e00\u70b9\u70b9\u4e86\uff01\u7ee7\u7eed\u81a8\u80c0\uff0c\u4f18\u60e0\u66f4\u591a\u54e6")));o.a.alert("\u6e29\u99a8\u63d0\u793a",r,[{text:"\u518d\u8003\u8651\u4e0b",onPress:c,style:{color:"#333"}},{text:"\u786e\u5b9a\u7ed3\u675f\u81a8\u80c0",onPress:i}])}},660:function(e,t,a){},799:function(e,t,a){},800:function(e,t,a){},801:function(e,t,a){},802:function(e,t,a){},803:function(e,t,a){},804:function(e,t,a){}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1223:function(e,t,a){"use strict";a.r(t);var n=a(20),o=a(5),c=a(7),s=a(6),i=a(8),r=a(9),l=a(0),u=a.n(l),m=a(15),p=a(49),d=a(23),h=a(82),E=(a(41),a(12)),f=a.n(E),v=a(147),b=(a(799),a(800),a(801),a(17)),C=a.n(b),g=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(i.a)(t).call(this,e))).clearInput=function(){a.props.onChange("")},a.state={isFocus:!1},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.type,n=t.placeholder,o=this.state.isFocus;return u.a.createElement("div",{className:"custom-input-wrapper"},u.a.createElement("input",{type:a,className:C()("custom-input",{"custom-input--active":o}),placeholder:n,onChange:this.props.onChange,value:this.props.value,onBlur:function(){e.setState({isFocus:!1})},onFocus:function(){e.setState({isFocus:!0})}}),u.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(l.Component);g.defaultProps={type:"text",placeholder:""};var y=g,N=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return u.a.createElement("div",{className:"exchange-bar"},u.a.createElement(y,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),u.a.createElement("button",{className:C()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(l.Component),O=a(81),x=(a(802),a(3)),j=a(659),_=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).VOUCHER=1,a.FREE=2,a.EXPAND=4,a.pick=function(e){var t=a.props,n=t.useCoupon,o=t.invalid,c=t.start_amount,s=t.id,i=t.location,r=t.history,l=t.code,u=i.state;u&&u.from&&"/my"===u.from&&"undefined"!==typeof c?r.push("/expand/index?deposit_code=".concat(l)):c?a.stopExpanding(s,e):!o&&n&&n(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a.ExchangeCourse=function(e){a.props.toExchangeCourse(e,a.props.code)},a.stopExpanding=function(e,t){var n=a.props,o=n.amount,c=n.limit_amount;t.stopPropagation(),Object(j.a)({amount:o,limit_amount:c,onConfirm:function(){x.d.post("".concat(API.home,"/m/end_expansion"),{id:e}).then(function(t){var n=t.data;200==n.code?a.props.endExpansion(e,n.data.coupon_id):f.a.info(n.msg)})}})},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e,t,a=this,n=this.props,o=n.ctype,c=n.amount,s=n.course_title,i=n.showUseButton,r=n.id,l=n.format_expire_time,m=n.start_amount,p=n.limit_amount;switch(o){case this.VOUCHER:e=u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b"),i&&o==this.VOUCHER&&u.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528"));break;case this.FREE:e=u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"course-title"},s),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),i&&o==this.FREE&&u.a.createElement("button",{className:"use",onClick:function(e){return a.ExchangeCourse(e)}},"\u7acb\u5373\u5151\u6362"));break;case this.EXPAND:e=m?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"progress-container"},u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("div",{className:"progress-bar-container"},u.a.createElement("span",{className:"progress-bar",style:{width:"".concat(Math.round((c-m)/p*100),"%")}})),u.a.createElement("div",{className:"money"},u.a.createElement("span",null,m,"\u5143"),u.a.createElement("span",null,p,"\u5143")))):u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u5168\u573a\u901a\u7528"),m&&u.a.createElement("button",{className:"stop-expanding",onClick:this.stopExpanding.bind(this,r)},"\u7acb\u5373\u7ed3\u675f\u81a8\u80c0"))}return u.a.createElement(k,Object.assign({},this.props,{top:e,VOUCHER:this.VOUCHER,FREE:this.FREE,EXPAND:this.EXPAND,pick:this.pick,bottom:t}))}}]),t}(l.PureComponent);function k(e){var t,a=e.pick,n=e.ctype,o=e.invalid,c=e.top,s=e.VOUCHER,i=e.FREE,r=e.EXPAND,l=e.selectedCouponId,m=e.id,p=e.bottom,d=(t={},Object(O.a)(t,s,"\u4ee3\u91d1\u5238"),Object(O.a)(t,i,"\u8bfe\u7a0b\u5238"),Object(O.a)(t,r,"\u81a8\u80c0\u5238"),t);return u.a.createElement("li",{className:"coupon",onClick:a},u.a.createElement("div",{className:C()("coupon-info",o?"invalid":"coupon-type".concat(n))},u.a.createElement("p",{className:"type"},d[n]),c,l===m&&u.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-5",{check:!o})}),u.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return u.a.createElement("li",{key:t})}))),u.a.createElement("div",{className:"coupon-des"},p))}var A,I=Object(p.g)(_),P=a(63),S=a(22),F=Object(S.b)()(A=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(x.c)("id"),showUseButton:!1,courseCouponExchange:!1,courseCouponData:""},a.handleChange=function(e){var t=e?e.target.value:"";a.setState({redeemCode:t})},a.exchange=function(){var e=a.props.location.state,t=void 0===e?{}:e;""!==a.state.redeemCode?x.d.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode,type:t.from.substr(1)}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if("/my"===t.from&&(2==o.ctype?a.setState({courseCouponData:o,courseCouponExchange:!0,redeemCode:""}):(a.setState({couponList:[].concat(Object(v.a)(a.state.couponList),[o]),redeemCode:""}),f.a.info("\u5151\u6362\u6210\u529f"),a.getMyCoupons())),"/order"===t.from){var c=n.data;2==c.ctype&&c.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(v.a)(a.state.invalid_coupons),[c]),showUseButton:null,redeemCode:""}):a.setState({valid_coupons:[].concat(Object(v.a)(a.state.valid_coupons),[c]),redeemCode:""}),f.a.info("\u5151\u6362\u6210\u529f"),a.getAllCoupons()}}else f.a.info(n.msg)}):f.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){Promise.all([x.d.get("".concat(API.home,"/m/coupon/expansion")),x.d.get("".concat(API.home,"/m/coupon/all"))]).then(function(e){var t=[],n=Object(h.a)(e,2),o=n[0],c=n[1].data,s=o.data;200==s.code?Array.isArray(s.data)&&(s.data=s.data.map(function(e){return e.ctype=4,e}))&&(t=t.concat(s.data)):f.a.info(s.msg),200==c.code?Array.isArray(c.data)&&(t=t.concat(c.data)):f.a.info(c.msg),a.setState({couponList:t})})},a.getAllCoupons=function(){Promise.all([x.d.get("".concat(API.home,"/m/coupon/expansion")),x.d.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId})]).then(function(e){var t=Object(h.a)(e,2),n=t[0],o=t[1].data,c=n.data,s=a.state.valid_coupons.concat(c.data);if(200==c.code?Array.isArray(c.data)&&(c.data=c.data.map(function(e){return e.ctype=4,e}))&&a.setState({valid_coupons:a.state.valid_coupons.concat(c.data)}):f.a.info(c.msg),200===o.code){var i=o.data.inuse_coupon,r=i?[].concat(Object(v.a)(i),Object(v.a)(o.data.valid_coupons)):o.data.valid_coupons;a.setState({valid_coupons:s.concat(r),invalid_coupons:o.data.invalid_coupons,selectedCouponId:i.length?i[0].id:0})}else f.a.info(data.msg)})},a.toExchangeCourse=function(e,t){e.stopPropagation(),x.d.post("".concat(API["base-api"],"/pay/miandan/").concat(t),{}).then(function(e){var t=e.data;200===t.errno?(a.setState({courseCouponExchange:!0,courseCouponData:e.data.data}),a.getMyCoupons()):f.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props.history,n=a.state.couponList.find(function(t){return t.id===e});if(e)if(a.state.showUseButton){if(0!==n.limit_course)return t.push("/detail?id=".concat(n.limit_course)),!1;t.push("/classify")}else{var o=a.state,c=o.courseId;o.selectedCouponId===e?x.d.post("".concat(API.home,"/m/coupon/cancel"),{course_id:c}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):f.a.info(t.msg)}):x.d.post("".concat(API.home,"/m/coupon/use"),{course_id:a.state.courseId,coupon_id:e}).then(function(t){var n=t&&t.data;200===n.code?(a.setState({selectedCouponId:e}),a.props.history.goBack()):f.a.info(n.msg)})}else f.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a.toStudy=function(e,t){var n=a.props.history;0==t?f.a.info("\u5c1a\u672a\u5f00\u8bfe\uff0c\u5f00\u8bfe\u540e\u7acb\u5373\u4e0a\u4f20\u8bfe\u7a0b\uff5e",2):n.push("/play/video?id=".concat(e)),a.setState({courseCouponExchange:!1})},a.closeFreeCourse=function(){a.setState({courseCouponExchange:!1})},a.endExpansion=function(e,t){a.setState({valid_coupons:a.state.valid_coupons.map(function(a){return a.id===e&&(delete a.start_amount,a.id=t),a})})},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.history,a=e.location,n=this.props.location.state;n&&n.from&&("/my"===n.from?(this.getMyCoupons(),this.setState({showUseButton:!0})):(this.state.courseId||(a.state&&a.state.from?t.replace(a.state.from):t.goBack()),this.getAllCoupons()))}},{key:"render",value:function(){var e=this.props.location.state,t=this.state,a=t.showUseButton,n=t.selectedCouponId;return u.a.createElement("div",{className:"use-coupon"},u.a.createElement(N,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),u.a.createElement("div",{className:"coupons-area"},u.a.createElement(w,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon,toExchangeCourse:this.toExchangeCourse,endExpansion:this.endExpansion}),this.state.invalid_coupons.length>0&&u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),u.a.createElement(w,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))),this.state.courseCouponExchange&&u.a.createElement(U,{toStudy:this.toStudy,closeFreeCourse:this.closeFreeCourse,courseCouponData:this.state.courseCouponData}))}}]),t}(l.PureComponent))||A;function w(e){var t=e.coupons,a=Object(d.a)(e,["coupons"]);return 0===t.length?u.a.createElement("div",{className:"empty"},u.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):u.a.createElement("ul",null,t.map(function(e){return e.id&&u.a.createElement(I,Object.assign({key:e.id},e,{id:e.id},a))}))}function U(e){var t=e.toStudy,a=e.closeFreeCourse,n=e.courseCouponData;return u.a.createElement("div",{className:"free-coupon-box"},u.a.createElement("div",{className:"free-coupon-content"},u.a.createElement("div",{className:"coures-content-success"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"})),u.a.createElement("div",{className:"coures-content-title"},"\u606d\u559c\u4f60\u8bfe\u7a0b\u5151\u6362\u6210\u529f!\u8d76\u5feb\u53bb\u5b66\u4e60\u5427~"),u.a.createElement("img",{className:"coures-content-img",src:n.image_name,alt:""}),0!=n.course_expire&&u.a.createElement("div",{className:"coures-content-tip"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),u.a.createElement("span",null,"\u8bfe\u7a0b\u6709\u6548\u671f\uff1a\u81ea\u4eca\u65e5\u8d77",n.course_expire,"\u5929\u5185\uff0c\u8bf7\u5728\u6709\u6548\u671f\u5185\u5b66\u4e60\u8be5\u8bfe\u7a0b\u54e6\uff5e")),u.a.createElement("a",{className:"toStudy",onClick:function(){return t(n.v_course_id,n.is_is_start)}},"\u53bb\u5b66\u4e60")),u.a.createElement("div",{className:"free-coupon-close"},u.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:function(){return a()}})))}var D=Object(P.a)(F),R=a(89),B=(a(803),a(27)),L=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(i.a)(t).call(this,e))).select=function(e,t){a.state.couponAmount>=t.amount&&a.setState({checkedIndex:e})},a.compound=function(){var e=Object(R.a)(a);a.state.couponAmount>=10&&x.d.post("".concat(API.home,"/sys/red_packet/compose"),{type:e.state.checkedIndex+1}).then(function(t){200===t.data.code?(e.setState({success:!0}),setTimeout(function(){e.getPatchList()},2e3)):f.a.info(t.data.msg,2)})},a.state={success:!1,checkedIndex:0,list:[{amount:10,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:20,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:50,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:100,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"}],couponAmount:""},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getPatchList()}},{key:"getPatchList",value:function(){var e=this;x.d.get("".concat(API.home,"/sys/red_packet/balance")).then(function(t){200===t.data.code?e.setState({couponAmount:t.data.data.coupon_amount,success:!1}):f.a.info(t.data.msg,2)})}},{key:"render",value:function(){return u.a.createElement("div",{className:"my-patch"},u.a.createElement("div",{className:"couponAmount"},"\u4ee3\u91d1\u5238\u788e\u7247\u4f59\u989d\uff1a",u.a.createElement("span",null,this.state.couponAmount,"\u5143")),u.a.createElement(M,{data:this.state.list,myAmount:this.state.couponAmount,select:this.select,checkedIndex:this.state.checkedIndex}),u.a.createElement("div",{className:"compound-button--compose"},u.a.createElement("button",{className:"compound ".concat(this.state.couponAmount>=10?"disable-active":"disable"),onClick:this.compound},"\u5408\u6210")),u.a.createElement("div",{className:"patch-desc"},u.a.createElement("p",{className:"title"},u.a.createElement("i",null),u.a.createElement("span",null,"\u4ee3\u91d1\u5238\u788e\u7247\u8bf4\u660e"),u.a.createElement("i",null)),u.a.createElement("p",{className:"desc-item"},"1. \u788e\u7247\u53ef\u901a\u8fc7\u201c\u5206\u4eab\u8bfe\u7a0b\u9886\u53d6\u7ea2\u5305\u201d\u83b7\u5f97\uff0c\u4e5f\u53ef\u901a\u8fc7\u7ebf\u4e0a\u6d3b\u52a8\u83b7\u5f97\uff0c\u5177\u4f53\u8bf7\u5173\u6ce8\u5b98\u7f51\u4fe1\u606f\uff1b"),u.a.createElement("p",{className:"desc-item"},"2. \u788e\u7247\u5728\u8d2d\u8bfe\u65f6\u4e0d\u80fd\u5355\u72ec\u4f7f\u7528\uff0c\u53ef\u5408\u6210\u5b8c\u6574\u4ee3\u91d1\u5238\u540e\u7528\u4ee3\u91d1\u5238\u62b5\u6263\u73b0\u91d1\uff1b"),u.a.createElement("p",{className:"desc-item"},"3. \u788e\u7247\u5408\u6210\u4ee3\u91d1\u5238\u540e7\u65e5\u5185\u6709\u6548\u3002")),this.state.success&&u.a.createElement("div",{className:"success"},"\u5151\u6362\u6210\u529f"))}}]),t}(l.PureComponent);function M(e){var t=e.data,a=e.myAmount,n=e.select,o=e.checkedIndex;return u.a.createElement("div",{className:"coupons"},t&&t.length>0&&t.map(function(e,t){return u.a.createElement("div",{className:"items-box",key:t,onClick:function(){return n(t,e)}},u.a.createElement("div",{className:"coupon-info ".concat(a>=e.amount?"active":null)},u.a.createElement("div",{className:"type"},e.type),u.a.createElement("div",{className:"amount"},u.a.createElement("span",null,e.amount),"\u5143"),a>=e.amount&&u.a.createElement("i",{className:"checkout ".concat(t===o?"iconfont icondanseshixintubiao-5":"nochecked")}),u.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return u.a.createElement("li",{key:t})}))),u.a.createElement("div",{className:"coupon-des"},e.desc))}))}var H=Object(P.a)(L),V=(a(804),function(e){function t(){return Object(o.a)(this,t),Object(s.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.match,a=e.location;return u.a.createElement("div",{className:"coupons-box"},u.a.createElement(B.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),u.a.createElement("section",{id:"coupons"},u.a.createElement("div",{className:"tab"},u.a.createElement("div",null,u.a.createElement(m.c,{to:{pathname:"".concat(t.url,"/my-coupon"),search:a.search,state:Object(n.a)({},this.props.location.state)},replace:!0,activeClassName:"tab-active"},"\u6211\u7684\u4f18\u60e0\u5238")),u.a.createElement("div",null,u.a.createElement(m.c,{to:{pathname:"".concat(t.url,"/my-patch"),search:a.search,state:Object(n.a)({},this.props.location.state)},replace:!0,activeClassName:"tab-active"},"\u788e\u7247\u5408\u6210"))),u.a.createElement("div",{className:"btm-border"}),u.a.createElement("div",{className:"coupons-container"},u.a.createElement(p.d,null,u.a.createElement(p.a,{exact:!0,from:"/coupons",to:{pathname:"coupons/my-coupon",search:a.search,state:{from:this.props.location.state&&this.props.location.state.from}}}),u.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-coupon"),component:D}),u.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-patch"),component:H})))))}}]),t}(l.Component));t.default=V},659:function(e,t,a){"use strict";a(256);var n=a(92),o=a.n(n),c=a(0),s=a.n(c);a(660);t.a=function(e){var t=e.amount,a=e.limit_amount,n=e.onCancel,c=void 0===n?function(){}:n,i=e.onConfirm,r=s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"end-expansion-alert-ques"},"\u4f60\u7684".concat(t,"\u5143\u4f18\u60e0\u5238\u6b63\u5728\u81a8\u80c0\u4e2d\uff0c\n \u786e\u5b9a\u8981\u7ed3\u675f\u81a8\u80c0\u5417\uff1f")),s.a.createElement("div",{className:"end-expansion-alert-hint"},"\u79bb".concat(a,"\u5143\u53ea\u5dee\u4e00\u70b9\u70b9\u4e86\uff01\u7ee7\u7eed\u81a8\u80c0\uff0c\u4f18\u60e0\u66f4\u591a\u54e6")));o.a.alert("\u6e29\u99a8\u63d0\u793a",r,[{text:"\u518d\u8003\u8651\u4e0b",onPress:c,style:{color:"#333"}},{text:"\u786e\u5b9a\u7ed3\u675f\u81a8\u80c0",onPress:i}])}},660:function(e,t,a){},799:function(e,t,a){},800:function(e,t,a){},801:function(e,t,a){},802:function(e,t,a){},803:function(e,t,a){},804:function(e,t,a){}}]);
//# sourceMappingURL=coupons.7b30820c.chunk.js.map //# sourceMappingURL=coupons.588b230f.chunk.js.map
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/myCoupons/index.js","components/coupons/myPatch/index.js","components/coupons/index.js","common/deposit/end-expansion-alert/index.js"],"names":["Input","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","clearInput","onChange","state","isFocus","_this2","_this$props","type","placeholder","react_default","a","createElement","className","classnames","custom-input--active","value","onBlur","setState","onFocus","hide","length","onClick","Component","defaultProps","RedeemBar","redeemCode","exchange","coupons_Input","active","Coupon","VOUCHER","FREE","EXPAND","pick","e","useCoupon","invalid","start_amount","id","location","history","code","from","push","concat","stopExpanding","GoToUse","ExchangeCourse","toExchangeCourse","_this$props2","amount","limit_amount","stopPropagation","showAlert","onConfirm","http","post","API","home","then","res","data","endExpansion","coupon_id","toast_default","info","msg","top","bottom","_this$props3","ctype","course_title","showUseButton","format_expire_time","Fragment","style","width","Math","round","bind","BaseCoupon","assign","PureComponent","_ref","_couponTypes","selectedCouponId","couponTypes","defineProperty","check","Array","fill","map","item","index","key","withRouter","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","courseCouponExchange","courseCouponData","handleChange","target","_this$props$location$","substr","coupon","toConsumableArray","getMyCoupons","getAllCoupons","Promise","all","get","coupons","myCoupons","_coupons","slicedToArray","expansionCoupons","expansion","isArray","course_id","_coupons2","select","PzCoupon","inuse_coupon","PzCoupon2","errno","val","find","_this$state","goBack","reload","toStudy","vCourseId","isHaveVideo","closeFreeCourse","validId","replace","_this$state2","coupons_RedeemBar","Content","purpose","FreeCouponCourse","rest","objectWithoutProperties","coupons_Coupon","src","image_name","alt","course_expire","v_course_id","is_is_start","WithFullSize","UsePatch","couponAmount","checkedIndex","compound","assertThisInitialized","success","setTimeout","getPatchList","list","desc","_this3","coupon_amount","myPatch_Coupon","myAmount","match","common","title","arrow","react_router_dom","to","pathname","url","search","objectSpread","activeClassName","react_router","exact","path","component","myPatch","__webpack_exports__","_ref$onCancel","onCancel","content","react__WEBPACK_IMPORTED_MODULE_2___default","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_1___default","alert","text","onPress","color"],"mappings":"4QAKMA,cAEF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAMVQ,WAAa,WACTP,EAAKD,MAAMS,SAAS,KANpBR,EAAKS,MAAQ,CACTC,SAAS,GAHEV,wEAWV,IAAAW,EAAAR,KAAAS,EACqBT,KAAKJ,MAA1Bc,EADAD,EACAC,KAAMC,EADNF,EACME,YACHJ,EAAYP,KAAKM,MAAjBC,QACR,OACIK,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,eAAe,CAACC,uBAAwBV,IAC9DI,YAAaA,EACbN,SAAUL,KAAKJ,MAAMS,SACrBa,MAAOlB,KAAKJ,MAAMsB,MAClBC,OAAQ,WACJX,EAAKY,SAAS,CACVb,SAAS,KAGjBc,QAAS,WACLb,EAAKY,SAAS,CACVb,SAAS,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,CACzB,CAACI,KAAM,2BAAQC,QAASN,EAAUjH,MAAO,CAACwH,MAAO,SACjD,CAACF,KAAM,uCAAUC,QAAS5I","file":"mrstatic/js/coupons.588b230f.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n isFocus: false\n }\n }\n\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n const { isFocus } = this.state;\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input',{'custom-input--active': isFocus})}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n onBlur={() => {\n this.setState({\n isFocus: false\n })\n }}\n onFocus={() => {\n this.setState({\n isFocus: true\n })\n }}\n />\n <i\n className={classnames('iconfont icondanseshixintubiao-3', {\n hide: this.props.value.length === 0\n })}\n onClick={this.clearInput}\n />\n </div>\n );\n }\n}\n\n\nInput.defaultProps = {type: 'text', placeholder: ''}\n\nexport default Input;","import React, { Component } from 'react';\nimport './exchange-bar.scss'\nimport Input from '../Input'\nimport classnames from 'classnames'\n\nclass RedeemBar extends Component {\n state = {}\n\n render() {\n const {onChange, redeemCode, exchange} = this.props\n return (\n <div className=\"exchange-bar\">\n <Input\n placeholder={'请输入优惠码'}\n onChange={onChange}\n value={redeemCode}\n />\n <button className={classnames({\n active: redeemCode && redeemCode.length > 0\n })} onClick={exchange}>兑换\n </button>\n </div>\n );\n }\n}\n\nexport default RedeemBar;","import React, { PureComponent } from 'react'\nimport './coupon.scss'\nimport classnames from 'classnames'\nimport { http } from \"@/utils\"\nimport showAlert from '@common/deposit/end-expansion-alert'\nimport { Toast } from 'antd-mobile'\nimport { withRouter } from \"react-router-dom\"\n\n\nclass Coupon extends PureComponent {\n\n VOUCHER = 1 //代金券\n FREE = 2 //免单券\n EXPAND = 4 //膨胀全\n\n\n pick = (e) => {\n let {useCoupon, invalid, start_amount, id, location, history, code} = this.props\n const {state} = location\n if(state && state.from && state.from === '/my' && typeof start_amount !== 'undefined'){\n history.push(`/expand/index?deposit_code=${code}`)\n return\n }\n if (start_amount) {\n this.stopExpanding(id, e)\n } else {\n !invalid && useCoupon && useCoupon(this.props.id)\n }\n\n }\n\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n ExchangeCourse = (e) => {\n this.props.toExchangeCourse(e, this.props.code)\n }\n\n stopExpanding = (id, e) => {\n const {amount, limit_amount} = this.props\n e.stopPropagation()\n showAlert({\n amount,\n limit_amount,\n onConfirm: () => {\n http.post(`${API.home}/m/end_expansion`, {\n id\n })\n .then(res => {\n const {data} = res\n if (data.code == 200) {\n this.props.endExpansion(id, data.data.coupon_id)\n } else {\n Toast.info(data.msg)\n }\n })\n }\n })\n\n }\n\n render() {\n let {\n ctype,\n amount,\n course_title,\n showUseButton,\n id,\n format_expire_time,\n start_amount,\n limit_amount\n } = this.props\n\n let top, bottom\n\n switch (ctype) {\n case this.VOUCHER:\n top = (\n <>\n <p className='denomination'>{amount} <span>元</span></p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n </>\n\n )\n bottom = (\n <>\n <span className={'limit'}>可用于大于代金券金额的课程</span>\n {\n showUseButton && ctype == this.VOUCHER &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n </>\n\n )\n break\n case this.FREE:\n top = (\n <>\n <p className='course-title'>{course_title}</p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n\n </>\n )\n bottom = (\n <>\n <span className={'limit'}>{`仅适用于《${course_title}》`}</span>\n {\n showUseButton && ctype == this.FREE &&\n <button\n className='use'\n onClick={(e) => this.ExchangeCourse(e)}\n >立即兑换\n </button>\n }\n </>\n\n )\n break\n case this.EXPAND:\n if (!start_amount) {\n top = (\n <>\n <p className='denomination'>{amount} <span>元</span></p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n </>\n )\n\n } else {\n top = (\n <>\n <div className=\"progress-container\">\n <p className='denomination'>{amount} <span>元</span></p>\n <div className={'progress-bar-container'}>\n <span className={'progress-bar'}\n style={{width: `${Math.round((amount - start_amount) / limit_amount * 100)}%`}}\n ></span>\n </div>\n <div className={'money'}>\n <span>{start_amount}元</span>\n <span>{limit_amount}元</span>\n </div>\n </div>\n </>\n )\n }\n bottom = (\n <>\n <span className={'limit'}>全场通用</span>\n {\n start_amount\n && <button className='stop-expanding'\n onClick={this.stopExpanding.bind(this, id)}>立即结束膨胀</button>\n }\n </>\n\n )\n break\n }\n\n return (\n <BaseCoupon\n {...this.props}\n top={top}\n VOUCHER={this.VOUCHER}\n FREE={this.FREE}\n EXPAND={this.EXPAND}\n pick={this.pick}\n bottom={bottom}\n />\n )\n }\n}\n\nfunction BaseCoupon(\n {\n pick,\n ctype,\n invalid,\n top,\n VOUCHER,\n FREE,\n EXPAND,\n selectedCouponId,\n id,\n bottom\n }) {\n let couponTypes = {\n [VOUCHER]: '代金券',\n [FREE]: '课程券',\n [EXPAND]: '膨胀券'\n }\n return (\n <li className='coupon' onClick={pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{couponTypes[ctype]}</p>\n {top}\n {\n selectedCouponId === id &&\n <i className={classnames('iconfont icondanseshixintubiao-5', {\n check: !invalid\n })}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n <div className=\"coupon-des\">\n {bottom}\n </div>\n </li>\n )\n}\n\nexport default withRouter(Coupon)\n","import React, { PureComponent } from 'react'\nimport './index.scss'\n\nimport RedeemBar from \"../RedeemBar\"\nimport Coupon from '../Coupon'\nimport { http, getParam } from '@/utils'\nimport { WithFullSize } from '@/HOCs'\nimport { Toast } from 'antd-mobile'\nimport { connect } from 'react-redux'\n\n@connect()\nclass UseCoupon extends PureComponent {\n\n state = {\n selectedCouponId: 0,\n redeemCode: '',\n couponList: [],\n valid_coupons: [],\n invalid_coupons: [],\n courseId: getParam('id'),\n showUseButton: false,\n courseCouponExchange: false, // 课程券兑换弹窗\n courseCouponData: '' // 兑换课程信息\n }\n\n componentDidMount() {\n const {history, location} = this.props\n\n const {state} = this.props.location\n if (state && state.from) {\n if (state.from === '/my') {\n this.getMyCoupons()\n this.setState({\n showUseButton: true\n })\n } else {\n if (!this.state.courseId) {\n location.state && location.state.from ? history.replace(location.state.from) : history.goBack()\n }\n this.getAllCoupons()\n }\n }\n }\n\n handleChange = e => {\n let value = e ? e.target.value : ''\n this.setState({redeemCode: value})\n }\n\n // 兑换\n exchange = () => {\n const {location: {state = {}}} = this.props\n if (this.state.redeemCode !== '') {\n http.post(`${API.home}/m/coupon/exchange`, {\n code: this.state.redeemCode,\n type: state.from.substr(1)\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n // 如果从我的页面进来,点击兑换直接兑换成功课程,弹出弹窗\n // 如果从订单页面进来,点击兑换兑换成券\n const coupon = data.data\n\n if (state.from === '/my') {\n if (coupon['ctype'] == 2) {\n this.setState({\n courseCouponData: coupon,\n courseCouponExchange: true,\n redeemCode: ''\n })\n } else {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n Toast.info('兑换成功')\n this.getMyCoupons()\n }\n }\n if (state.from === '/order') {\n const coupon = data.data\n\n if (coupon['ctype'] == 2\n && coupon['limit_course'] != this.state.courseId) {\n this.setState({\n invalid_coupons: [...this.state.invalid_coupons, coupon],\n showUseButton: null,\n redeemCode: ''\n })\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n Toast.info('兑换成功')\n this.getAllCoupons()\n }\n\n } else {\n Toast.info(data.msg)\n }\n })\n } else {\n Toast.info('请输入兑换码')\n }\n }\n\n getMyCoupons = () => {\n Promise.all([\n http.get(`${API.home}/m/coupon/expansion`),\n http.get(`${API.home}/m/coupon/all`)\n ]).then((coupons) => {\n let myCoupons = []\n const [expansionCoupons, allCoupons] = coupons\n const {data: all} = allCoupons\n const {data: expansion} = expansionCoupons\n if (expansion.code == 200) {\n Array.isArray(expansion.data)\n && (expansion.data = expansion.data.map(item => (item.ctype = 4, item)))\n && (myCoupons = myCoupons.concat(expansion.data))\n } else {\n Toast.info(expansion.msg)\n }\n if (all.code == 200) {\n Array.isArray(all.data) && (myCoupons = myCoupons.concat(all.data))\n } else {\n Toast.info(all.msg)\n }\n\n this.setState({\n couponList: myCoupons\n })\n })\n }\n\n getAllCoupons = () => {\n Promise.all([\n http.get(`${API.home}/m/coupon/expansion`),\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n ]).then((coupons) => {\n const [expansionCoupons, selectCoupons] = coupons\n const {data: select} = selectCoupons\n const {data: expansion} = expansionCoupons\n let PzCoupon = this.state.valid_coupons.concat(expansion.data)\n if (expansion.code == 200) {\n Array.isArray(expansion.data)\n && (expansion.data = expansion.data.map(item => (item.ctype = 4, item)))\n && (this.setState({\n valid_coupons: this.state.valid_coupons.concat(expansion.data)\n }))\n } else {\n Toast.info(expansion.msg)\n }\n if (select.code === 200) {\n const inuse_coupon = select.data['inuse_coupon']\n let PzCoupon2 = inuse_coupon\n ? [...inuse_coupon, ...select.data.valid_coupons]\n : select.data.valid_coupons\n this.setState({\n valid_coupons: PzCoupon.concat(PzCoupon2),\n invalid_coupons: select.data.invalid_coupons,\n selectedCouponId: inuse_coupon.length ? inuse_coupon[0].id : 0\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n // 立即兑换课程\n toExchangeCourse = (e, code) => {\n e.stopPropagation()\n http.post(`${API['base-api']}/pay/miandan/${code}`, {}).then(res => {\n const data = res.data\n if (data.errno === 200) {\n this.setState({\n courseCouponExchange: true,\n courseCouponData: res.data.data\n })\n this.getMyCoupons()\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n useCoupon = val => {\n const {history} = this.props\n const coupon = this.state.couponList.find(item => item.id === val)\n\n if (val) {\n if (this.state.showUseButton) {\n\n if (coupon['limit_course'] === 0) {\n history.push(`/classify`)\n } else {\n history.push(`/detail?id=${coupon['limit_course']}`)\n return false\n }\n\n } else {\n\n const {courseId, selectedCouponId} = this.state\n\n if (selectedCouponId === val) {\n\n\n http.post(`${API.home}/m/coupon/cancel`, {\n course_id: courseId\n }).then(res => {\n const data = res.data\n if (data.code === 200) {\n\n\n this.setState({\n selectedCouponId: 0\n })\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n\n } else {\n http.post(`${API.home}/m/coupon/use`, {\n course_id: this.state.courseId,\n coupon_id: val\n })\n .then(res => {\n const data = res && res.data\n if (data.code === 200) {\n\n this.setState({selectedCouponId: val})\n this.props.history.goBack()\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n\n }\n\n } else {\n Toast.info('未知错误')\n location.reload()\n }\n\n }\n\n // 开始学习\n toStudy = (vCourseId, isHaveVideo) => {\n const {history} = this.props\n if (isHaveVideo == 0) {\n Toast.info('尚未开课,开课后立即上传课程~', 2)\n } else {\n history.push(`/play/video?id=${vCourseId}`)\n }\n this.setState({\n courseCouponExchange: false\n })\n }\n\n // 关闭弹窗\n closeFreeCourse = () => {\n this.setState({\n courseCouponExchange: false\n })\n }\n\n endExpansion = (id, validId) => {\n this.setState({\n valid_coupons: this.state.valid_coupons.map(item => {\n if (item.id === id) {\n delete item.start_amount\n item.id = validId\n }\n return item\n })\n })\n }\n\n\n render() {\n const {state} = this.props.location\n const {showUseButton, selectedCouponId} = this.state\n return (\n <div className='use-coupon'>\n <RedeemBar onChange={this.handleChange}\n exchange={this.exchange}\n redeemCode={this.state.redeemCode}/>\n <div className=\"coupons-area\">\n <Content\n coupons={\n state\n && state.from\n && state.from === '/my'\n ? this.state.couponList\n : this.state.valid_coupons\n }\n showUseButton={showUseButton}\n selectedCouponId={selectedCouponId}\n select={this.select}\n useCoupon={this.useCoupon}\n toExchangeCourse={this.toExchangeCourse}\n endExpansion={this.endExpansion}\n />\n {\n this.state.invalid_coupons.length > 0 &&\n (\n <>\n <div className='invalid-title'>- 不可使用的优惠券 -</div>\n <Content\n coupons={this.state.invalid_coupons}\n selectedCouponId={selectedCouponId}\n select={this.select}\n purpose={'use'}\n invalid={'invalid'}\n />\n </>\n )\n }\n </div>\n {\n this.state.courseCouponExchange &&\n <FreeCouponCourse toStudy={this.toStudy} closeFreeCourse={this.closeFreeCourse}\n courseCouponData={this.state.courseCouponData}/>\n }\n </div>\n )\n }\n}\n\nfunction Content({coupons, ...rest}) {\n if (coupons.length === 0) {\n return (\n <div className='empty'>\n <p>暂无可使用的优惠券</p>\n </div>\n )\n }\n return (\n <ul>\n {\n coupons.map(item => {\n return (\n item.id &&\n <Coupon\n key={item.id}\n {...item}\n id={item.id}\n {...rest}\n />\n )\n })\n }\n </ul>\n )\n}\n\nfunction FreeCouponCourse(props) {\n const {toStudy, closeFreeCourse, courseCouponData} = props\n return (\n <div className=\"free-coupon-box\">\n <div className=\"free-coupon-content\">\n <div className=\"coures-content-success\"><i className={'iconfont icondanseshixintubiao-5'}/></div>\n <div className=\"coures-content-title\">恭喜你课程兑换成功!赶快去学习吧~</div>\n <img className=\"coures-content-img\" src={courseCouponData.image_name} alt=\"\"/>\n {\n courseCouponData.course_expire != 0 &&\n <div className=\"coures-content-tip\"><i\n className={'iconfont icondanseshixintubiao-8'}/><span>课程有效期:自今日起{courseCouponData.course_expire}天内,请在有效期内学习该课程哦~</span>\n </div>\n }\n\n <a className='toStudy'\n onClick={() => toStudy(courseCouponData.v_course_id, courseCouponData.is_is_start)}>去学习</a>\n </div>\n <div className=\"free-coupon-close\">\n <i className={'iconfont iconiconfront-2'} onClick={() => closeFreeCourse()}/>\n </div>\n </div>\n )\n}\n\nexport default WithFullSize(UseCoupon)\n","import React, {PureComponent} from 'react';\nimport './index.scss'\n\nimport {http, getParam} from '@/utils'\nimport {WithFullSize} from '@/HOCs'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\";\n\nclass UsePatch extends PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n success: false,\n checkedIndex: 0,\n list: [\n {\n amount: 10,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 20,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 50,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 100,\n desc: '兑换后7日内有效',\n type: '代金券'\n }\n ],\n couponAmount: '', // 碎片额度\n };\n }\n\n componentDidMount() {\n this.getPatchList()\n }\n\n // 选中\n select = (index, item) => {\n if (this.state.couponAmount >= item.amount) {\n this.setState({\n checkedIndex: index\n })\n }\n }\n\n // 合成\n compound = () => {\n const _this = this\n if (this.state.couponAmount >= 10) {\n http.post(`${API.home}/sys/red_packet/compose`, {type: _this.state.checkedIndex + 1}).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n success: true\n })\n setTimeout(() => {\n _this.getPatchList()\n }, 2000)\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n\n getPatchList() {\n http.get(`${API.home}/sys/red_packet/balance`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n couponAmount: res.data.data.coupon_amount,\n success: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n render() {\n return (\n <div className='my-patch'>\n <div className={'couponAmount'}>\n 代金券碎片余额:<span>{this.state.couponAmount}元</span>\n </div>\n\n <Coupon data={this.state.list}\n myAmount={this.state.couponAmount}\n select={this.select}\n checkedIndex={this.state.checkedIndex}/>\n <div className=\"compound-button--compose\">\n <button\n className={`compound ${this.state.couponAmount >= 10 ? 'disable-active' : 'disable'}`}\n onClick={this.compound}>合成\n </button>\n </div>\n\n <div className=\"patch-desc\">\n <p className={'title'}><i></i><span>代金券碎片说明</span><i></i></p>\n <p className={'desc-item'}>1. 碎片可通过“分享课程领取红包”获得,也可通过线上活动获得,具体请关注官网信息;</p>\n <p className={'desc-item'}>2. 碎片在购课时不能单独使用,可合成完整代金券后用代金券抵扣现金;</p>\n <p className={'desc-item'}>3. 碎片合成代金券后7日内有效。</p>\n </div>\n \n {\n this.state.success &&\n <div className=\"success\">\n 兑换成功\n </div>\n }\n </div>\n );\n }\n}\n\nfunction Coupon(props) {\n const {data, myAmount, select, checkedIndex} = props\n return (\n <div className={'coupons'}>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <div className='items-box' key={index} onClick={() => select(index, item)}>\n <div className={`coupon-info ${myAmount >= item.amount ? 'active' : null}`}>\n <div className=\"type\">{item.type}</div>\n <div className={'amount'}><span>{item.amount}</span>元</div>\n\n {\n myAmount >= item.amount &&\n <i className={`checkout ${index === checkedIndex ? 'iconfont icondanseshixintubiao-5' : 'nochecked'}`}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n\n <div className={'coupon-des'}>\n {item.desc}\n </div>\n </div>\n )\n })\n }\n </div>\n )\n}\n\n\nexport default WithFullSize(UsePatch);","import React, { Component } from 'react'\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport myCoupons from \"./myCoupons\"\nimport myPatch from './myPatch'\nimport { HeaderBar } from \"@/common\";\nimport './coupons.scss'\n\n\nclass coupons extends Component {\n render() {\n const {match, location} = this.props;\n return (\n <div className={'coupons-box'}>\n <HeaderBar title='优惠券' arrow={true}/>\n <section id='coupons'>\n <div className='tab'>\n <div>\n <NavLink to={{\n pathname: `${match.url}/my-coupon`,\n search: location.search,\n state: {...this.props.location.state}\n }}\n replace\n activeClassName='tab-active'\n >我的优惠券</NavLink>\n </div>\n <div>\n <NavLink to={{\n pathname: `${match.url}/my-patch`,\n search: location.search,\n state: {...this.props.location.state}\n }}\n replace\n activeClassName='tab-active'\n >碎片合成</NavLink>\n </div>\n </div>\n <div className=\"btm-border\"></div>\n\n <div className=\"coupons-container\">\n <Switch>\n <Redirect exact from='/coupons' to={{\n pathname: 'coupons/my-coupon', search: location.search, state: {\n from: this.props.location.state && this.props.location.state.from\n }\n }}/>\n <Route path={`${this.props.match.path}/my-coupon`} component={myCoupons}/>\n <Route path={`${this.props.match.path}/my-patch`} component={myPatch}/>\n </Switch>\n </div>\n </section>\n </div>\n )\n }\n\n}\n\nexport default coupons;\n","import React from 'react'\nimport { Modal } from 'antd-mobile'\nimport './index.scss'\n\nexport default function ({\n amount,\n limit_amount,\n onCancel = () => {\n },\n onConfirm\n }) {\n const content = (\n <>\n <div className=\"end-expansion-alert-ques\">\n {`你的${amount}元优惠券正在膨胀中,\n 确定要结束膨胀吗?`}\n </div>\n <div className=\"end-expansion-alert-hint\">\n {`离${limit_amount}元只差一点点了!继续膨胀,优惠更多哦`}\n </div>\n </>\n )\n Modal.alert('温馨提示', content, [\n {text: '再考虑下', onPress: onCancel, style: {color: '#333'}},\n {text: '确定结束膨胀', onPress: onConfirm}\n ])\n}\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/myCoupons/index.js","components/coupons/myPatch/index.js","components/coupons/index.js","common/deposit/end-expansion-alert/index.js"],"names":["Input","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","clearInput","onChange","state","isFocus","_this2","_this$props","type","placeholder","react_default","a","createElement","className","classnames","custom-input--active","value","onBlur","setState","onFocus","hide","length","onClick","Component","defaultProps","RedeemBar","redeemCode","exchange","coupons_Input","active","Coupon","VOUCHER","FREE","EXPAND","pick","e","useCoupon","invalid","start_amount","id","location","history","code","from","push","concat","stopExpanding","GoToUse","ExchangeCourse","toExchangeCourse","_this$props2","amount","limit_amount","stopPropagation","showAlert","onConfirm","http","post","API","home","then","res","data","endExpansion","coupon_id","toast_default","info","msg","top","bottom","_this$props3","ctype","course_title","showUseButton","format_expire_time","Fragment","style","width","Math","round","bind","BaseCoupon","assign","PureComponent","_ref","_couponTypes","selectedCouponId","couponTypes","defineProperty","check","Array","fill","map","item","index","key","withRouter","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","courseCouponExchange","courseCouponData","handleChange","target","_this$props$location$","substr","coupon","toConsumableArray","getMyCoupons","getAllCoupons","Promise","all","get","coupons","myCoupons","_coupons","slicedToArray","expansionCoupons","expansion","isArray","course_id","_coupons2","select","inuse_coupon","errno","val","find","_this$state","goBack","reload","toStudy","vCourseId","isHaveVideo","closeFreeCourse","validId","replace","_this$state2","coupons_RedeemBar","Content","purpose","FreeCouponCourse","rest","objectWithoutProperties","coupons_Coupon","src","image_name","alt","course_expire","v_course_id","is_is_start","WithFullSize","UsePatch","couponAmount","checkedIndex","compound","assertThisInitialized","success","setTimeout","getPatchList","list","desc","_this3","coupon_amount","myPatch_Coupon","myAmount","match","common","title","arrow","react_router_dom","to","pathname","url","search","objectSpread","activeClassName","react_router","exact","path","component","myPatch","__webpack_exports__","_ref$onCancel","onCancel","content","react__WEBPACK_IMPORTED_MODULE_2___default","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_1___default","alert","text","onPress","color"],"mappings":"4QAKMA,cAEF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAMVQ,WAAa,WACTP,EAAKD,MAAMS,SAAS,KANpBR,EAAKS,MAAQ,CACTC,SAAS,GAHEV,wEAWV,IAAAW,EAAAR,KAAAS,EACqBT,KAAKJ,MAA1Bc,EADAD,EACAC,KAAMC,EADNF,EACME,YACHJ,EAAYP,KAAKM,MAAjBC,QACR,OACIK,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,eAAe,CAACC,uBAAwBV,IAC9DI,YAAaA,EACbN,SAAUL,KAAKJ,MAAMS,SACrBa,MAAOlB,KAAKJ,MAAMsB,MAClBC,OAAQ,WACJX,EAAKY,SAAS,CACVb,SAAS,KAGjBc,QA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,uCAAUC,QAAS1I","file":"mrstatic/js/coupons.7b30820c.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n isFocus: false\n }\n }\n\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n const { isFocus } = this.state;\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input',{'custom-input--active': isFocus})}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n onBlur={() => {\n this.setState({\n isFocus: false\n })\n }}\n onFocus={() => {\n this.setState({\n isFocus: true\n })\n }}\n />\n <i\n className={classnames('iconfont icondanseshixintubiao-3', {\n hide: this.props.value.length === 0\n })}\n onClick={this.clearInput}\n />\n </div>\n );\n }\n}\n\n\nInput.defaultProps = {type: 'text', placeholder: ''}\n\nexport default Input;","import React, { Component } from 'react';\nimport './exchange-bar.scss'\nimport Input from '../Input'\nimport classnames from 'classnames'\n\nclass RedeemBar extends Component {\n state = {}\n\n render() {\n const {onChange, redeemCode, exchange} = this.props\n return (\n <div className=\"exchange-bar\">\n <Input\n placeholder={'请输入优惠码'}\n onChange={onChange}\n value={redeemCode}\n />\n <button className={classnames({\n active: redeemCode && redeemCode.length > 0\n })} onClick={exchange}>兑换\n </button>\n </div>\n );\n }\n}\n\nexport default RedeemBar;","import React, { PureComponent } from 'react'\nimport './coupon.scss'\nimport classnames from 'classnames'\nimport { http } from \"@/utils\"\nimport showAlert from '@common/deposit/end-expansion-alert'\nimport { Toast } from 'antd-mobile'\nimport { withRouter } from \"react-router-dom\"\n\n\nclass Coupon extends PureComponent {\n\n VOUCHER = 1 //代金券\n FREE = 2 //免单券\n EXPAND = 4 //膨胀全\n\n\n pick = (e) => {\n let {useCoupon, invalid, start_amount, id, location, history, code} = this.props\n const {state} = location\n if(state && state.from && state.from === '/my' && typeof start_amount !== 'undefined'){\n history.push(`/expand/index?deposit_code=${code}`)\n return\n }\n if (start_amount) {\n this.stopExpanding(id, e)\n } else {\n !invalid && useCoupon && useCoupon(this.props.id)\n }\n\n }\n\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n ExchangeCourse = (e) => {\n this.props.toExchangeCourse(e, this.props.code)\n }\n\n stopExpanding = (id, e) => {\n const {amount, limit_amount} = this.props\n e.stopPropagation()\n showAlert({\n amount,\n limit_amount,\n onConfirm: () => {\n http.post(`${API.home}/m/end_expansion`, {\n id\n })\n .then(res => {\n const {data} = res\n if (data.code == 200) {\n this.props.endExpansion(id, data.data.coupon_id)\n } else {\n Toast.info(data.msg)\n }\n })\n }\n })\n\n }\n\n render() {\n let {\n ctype,\n amount,\n course_title,\n showUseButton,\n id,\n format_expire_time,\n start_amount,\n limit_amount\n } = this.props\n\n let top, bottom\n\n switch (ctype) {\n case this.VOUCHER:\n top = (\n <>\n <p className='denomination'>{amount} <span>元</span></p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n </>\n\n )\n bottom = (\n <>\n <span className={'limit'}>可用于大于代金券金额的课程</span>\n {\n showUseButton && ctype == this.VOUCHER &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n </>\n\n )\n break\n case this.FREE:\n top = (\n <>\n <p className='course-title'>{course_title}</p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n\n </>\n )\n bottom = (\n <>\n <span className={'limit'}>{`仅适用于《${course_title}》`}</span>\n {\n showUseButton && ctype == this.FREE &&\n <button\n className='use'\n onClick={(e) => this.ExchangeCourse(e)}\n >立即兑换\n </button>\n }\n </>\n\n )\n break\n case this.EXPAND:\n if (!start_amount) {\n top = (\n <>\n <p className='denomination'>{amount} <span>元</span></p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n </>\n )\n\n } else {\n top = (\n <>\n <div className=\"progress-container\">\n <p className='denomination'>{amount} <span>元</span></p>\n <div className={'progress-bar-container'}>\n <span className={'progress-bar'}\n style={{width: `${Math.round((amount - start_amount) / limit_amount * 100)}%`}}\n ></span>\n </div>\n <div className={'money'}>\n <span>{start_amount}元</span>\n <span>{limit_amount}元</span>\n </div>\n </div>\n </>\n )\n }\n bottom = (\n <>\n <span className={'limit'}>全场通用</span>\n {\n start_amount\n && <button className='stop-expanding'\n onClick={this.stopExpanding.bind(this, id)}>立即结束膨胀</button>\n }\n </>\n\n )\n break\n }\n\n return (\n <BaseCoupon\n {...this.props}\n top={top}\n VOUCHER={this.VOUCHER}\n FREE={this.FREE}\n EXPAND={this.EXPAND}\n pick={this.pick}\n bottom={bottom}\n />\n )\n }\n}\n\nfunction BaseCoupon(\n {\n pick,\n ctype,\n invalid,\n top,\n VOUCHER,\n FREE,\n EXPAND,\n selectedCouponId,\n id,\n bottom\n }) {\n let couponTypes = {\n [VOUCHER]: '代金券',\n [FREE]: '课程券',\n [EXPAND]: '膨胀券'\n }\n return (\n <li className='coupon' onClick={pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{couponTypes[ctype]}</p>\n {top}\n {\n selectedCouponId === id &&\n <i className={classnames('iconfont icondanseshixintubiao-5', {\n check: !invalid\n })}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n <div className=\"coupon-des\">\n {bottom}\n </div>\n </li>\n )\n}\n\nexport default withRouter(Coupon)\n","import React, { PureComponent } from 'react'\nimport './index.scss'\n\nimport RedeemBar from \"../RedeemBar\"\nimport Coupon from '../Coupon'\nimport { http, getParam } from '@/utils'\nimport { WithFullSize } from '@/HOCs'\nimport { Toast } from 'antd-mobile'\nimport { connect } from 'react-redux'\n\n@connect()\nclass UseCoupon extends PureComponent {\n\n state = {\n selectedCouponId: 0,\n redeemCode: '',\n couponList: [],\n valid_coupons: [],\n invalid_coupons: [],\n courseId: getParam('id'),\n showUseButton: false,\n courseCouponExchange: false, // 课程券兑换弹窗\n courseCouponData: '' // 兑换课程信息\n }\n\n componentDidMount() {\n const {history, location} = this.props\n\n const {state} = this.props.location\n if (state && state.from) {\n if (state.from === '/my') {\n this.getMyCoupons()\n this.setState({\n showUseButton: true\n })\n } else {\n if (!this.state.courseId) {\n location.state && location.state.from ? history.replace(location.state.from) : history.goBack()\n }\n this.getAllCoupons()\n }\n }\n }\n\n handleChange = e => {\n let value = e ? e.target.value : ''\n this.setState({redeemCode: value})\n }\n\n // 兑换\n exchange = () => {\n const {location: {state = {}}} = this.props\n if (this.state.redeemCode !== '') {\n http.post(`${API.home}/m/coupon/exchange`, {\n code: this.state.redeemCode,\n type: state.from.substr(1)\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n // 如果从我的页面进来,点击兑换直接兑换成功课程,弹出弹窗\n // 如果从订单页面进来,点击兑换兑换成券\n const coupon = data.data\n\n if (state.from === '/my') {\n if (coupon['ctype'] == 2) {\n this.setState({\n courseCouponData: coupon,\n courseCouponExchange: true,\n redeemCode: ''\n })\n } else {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n Toast.info('兑换成功')\n this.getMyCoupons()\n }\n }\n if (state.from === '/order') {\n const coupon = data.data\n\n if (coupon['ctype'] == 2\n && coupon['limit_course'] != this.state.courseId) {\n this.setState({\n invalid_coupons: [...this.state.invalid_coupons, coupon],\n showUseButton: null,\n redeemCode: ''\n })\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n Toast.info('兑换成功')\n this.getAllCoupons()\n }\n\n } else {\n Toast.info(data.msg)\n }\n })\n } else {\n Toast.info('请输入兑换码')\n }\n }\n\n getMyCoupons = () => {\n Promise.all([\n http.get(`${API.home}/m/coupon/expansion`),\n http.get(`${API.home}/m/coupon/all`)\n ]).then((coupons) => {\n let myCoupons = []\n const [expansionCoupons, allCoupons] = coupons\n const {data: all} = allCoupons\n const {data: expansion} = expansionCoupons\n if (expansion.code == 200) {\n Array.isArray(expansion.data)\n && (expansion.data = expansion.data.map(item => (item.ctype = 4, item)))\n && (myCoupons = myCoupons.concat(expansion.data))\n } else {\n Toast.info(expansion.msg)\n }\n if (all.code == 200) {\n Array.isArray(all.data) && (myCoupons = myCoupons.concat(all.data))\n } else {\n Toast.info(all.msg)\n }\n\n this.setState({\n couponList: myCoupons\n })\n })\n }\n\n getAllCoupons = () => {\n Promise.all([\n http.get(`${API.home}/m/coupon/expansion`),\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n ]).then((coupons) => {\n const [expansionCoupons, selectCoupons] = coupons\n const {data: select} = selectCoupons\n const {data: expansion} = expansionCoupons\n if (expansion.code == 200) {\n Array.isArray(expansion.data)\n && (expansion.data = expansion.data.map(item => (item.ctype = 4, item)))\n && (this.setState({\n valid_coupons: this.state.valid_coupons.concat(expansion.data)\n }))\n } else {\n Toast.info(expansion.msg)\n }\n if (select.code === 200) {\n const inuse_coupon = select.data['inuse_coupon']\n this.setState({\n valid_coupons: inuse_coupon\n ? [...inuse_coupon, ...select.data.valid_coupons]\n : select.data.valid_coupons,\n invalid_coupons: select.data.invalid_coupons,\n selectedCouponId: inuse_coupon.length ? inuse_coupon[0].id : 0\n })\n\n } else {\n Toast.info(data.msg)\n }\n\n\n })\n }\n\n // 立即兑换课程\n toExchangeCourse = (e, code) => {\n e.stopPropagation()\n http.post(`${API['base-api']}/pay/miandan/${code}`, {}).then(res => {\n const data = res.data\n if (data.errno === 200) {\n this.setState({\n courseCouponExchange: true,\n courseCouponData: res.data.data\n })\n this.getMyCoupons()\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n useCoupon = val => {\n const {history} = this.props\n const coupon = this.state.couponList.find(item => item.id === val)\n\n if (val) {\n if (this.state.showUseButton) {\n\n if (coupon['limit_course'] === 0) {\n history.push(`/classify`)\n } else {\n history.push(`/detail?id=${coupon['limit_course']}`)\n return false\n }\n\n } else {\n\n const {courseId, selectedCouponId} = this.state\n\n if (selectedCouponId === val) {\n\n\n http.post(`${API.home}/m/coupon/cancel`, {\n course_id: courseId\n }).then(res => {\n const data = res.data\n if (data.code === 200) {\n\n\n this.setState({\n selectedCouponId: 0\n })\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n\n } else {\n http.post(`${API.home}/m/coupon/use`, {\n course_id: this.state.courseId,\n coupon_id: val\n })\n .then(res => {\n const data = res && res.data\n if (data.code === 200) {\n\n this.setState({selectedCouponId: val})\n this.props.history.goBack()\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n\n }\n\n } else {\n Toast.info('未知错误')\n location.reload()\n }\n\n }\n\n // 开始学习\n toStudy = (vCourseId, isHaveVideo) => {\n const {history} = this.props\n if (isHaveVideo == 0) {\n Toast.info('尚未开课,开课后立即上传课程~', 2)\n } else {\n history.push(`/play/video?id=${vCourseId}`)\n }\n this.setState({\n courseCouponExchange: false\n })\n }\n\n // 关闭弹窗\n closeFreeCourse = () => {\n this.setState({\n courseCouponExchange: false\n })\n }\n\n endExpansion = (id, validId) => {\n this.setState({\n valid_coupons: this.state.valid_coupons.map(item => {\n if (item.id === id) {\n delete item.start_amount\n item.id = validId\n }\n return item\n })\n })\n }\n\n\n render() {\n const {state} = this.props.location\n const {showUseButton, selectedCouponId} = this.state\n return (\n <div className='use-coupon'>\n <RedeemBar onChange={this.handleChange}\n exchange={this.exchange}\n redeemCode={this.state.redeemCode}/>\n <div className=\"coupons-area\">\n <Content\n coupons={\n state\n && state.from\n && state.from === '/my'\n ? this.state.couponList\n : this.state.valid_coupons\n }\n showUseButton={showUseButton}\n selectedCouponId={selectedCouponId}\n select={this.select}\n useCoupon={this.useCoupon}\n toExchangeCourse={this.toExchangeCourse}\n endExpansion={this.endExpansion}\n />\n {\n this.state.invalid_coupons.length > 0 &&\n (\n <>\n <div className='invalid-title'>- 不可使用的优惠券 -</div>\n <Content\n coupons={this.state.invalid_coupons}\n selectedCouponId={selectedCouponId}\n select={this.select}\n purpose={'use'}\n invalid={'invalid'}\n />\n </>\n )\n }\n </div>\n {\n this.state.courseCouponExchange &&\n <FreeCouponCourse toStudy={this.toStudy} closeFreeCourse={this.closeFreeCourse}\n courseCouponData={this.state.courseCouponData}/>\n }\n </div>\n )\n }\n}\n\nfunction Content({coupons, ...rest}) {\n if (coupons.length === 0) {\n return (\n <div className='empty'>\n <p>暂无可使用的优惠券</p>\n </div>\n )\n }\n return (\n <ul>\n {\n coupons.map(item => {\n return (\n <Coupon\n key={item.id}\n {...item}\n id={item.id}\n {...rest}\n />\n )\n })\n }\n </ul>\n )\n}\n\nfunction FreeCouponCourse(props) {\n const {toStudy, closeFreeCourse, courseCouponData} = props\n return (\n <div className=\"free-coupon-box\">\n <div className=\"free-coupon-content\">\n <div className=\"coures-content-success\"><i className={'iconfont icondanseshixintubiao-5'}/></div>\n <div className=\"coures-content-title\">恭喜你课程兑换成功!赶快去学习吧~</div>\n <img className=\"coures-content-img\" src={courseCouponData.image_name} alt=\"\"/>\n {\n courseCouponData.course_expire != 0 &&\n <div className=\"coures-content-tip\"><i\n className={'iconfont icondanseshixintubiao-8'}/><span>课程有效期:自今日起{courseCouponData.course_expire}天内,请在有效期内学习该课程哦~</span>\n </div>\n }\n\n <a className='toStudy'\n onClick={() => toStudy(courseCouponData.v_course_id, courseCouponData.is_is_start)}>去学习</a>\n </div>\n <div className=\"free-coupon-close\">\n <i className={'iconfont iconiconfront-2'} onClick={() => closeFreeCourse()}/>\n </div>\n </div>\n )\n}\n\nexport default WithFullSize(UseCoupon)\n","import React, {PureComponent} from 'react';\nimport './index.scss'\n\nimport {http, getParam} from '@/utils'\nimport {WithFullSize} from '@/HOCs'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\";\n\nclass UsePatch extends PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n success: false,\n checkedIndex: 0,\n list: [\n {\n amount: 10,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 20,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 50,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 100,\n desc: '兑换后7日内有效',\n type: '代金券'\n }\n ],\n couponAmount: '', // 碎片额度\n };\n }\n\n componentDidMount() {\n this.getPatchList()\n }\n\n // 选中\n select = (index, item) => {\n if (this.state.couponAmount >= item.amount) {\n this.setState({\n checkedIndex: index\n })\n }\n }\n\n // 合成\n compound = () => {\n const _this = this\n if (this.state.couponAmount >= 10) {\n http.post(`${API.home}/sys/red_packet/compose`, {type: _this.state.checkedIndex + 1}).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n success: true\n })\n setTimeout(() => {\n _this.getPatchList()\n }, 2000)\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n\n getPatchList() {\n http.get(`${API.home}/sys/red_packet/balance`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n couponAmount: res.data.data.coupon_amount,\n success: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n render() {\n return (\n <div className='my-patch'>\n <div className={'couponAmount'}>\n 代金券碎片余额:<span>{this.state.couponAmount}元</span>\n </div>\n\n <Coupon data={this.state.list}\n myAmount={this.state.couponAmount}\n select={this.select}\n checkedIndex={this.state.checkedIndex}/>\n <div className=\"compound-button--compose\">\n <button\n className={`compound ${this.state.couponAmount >= 10 ? 'disable-active' : 'disable'}`}\n onClick={this.compound}>合成\n </button>\n </div>\n\n <div className=\"patch-desc\">\n <p className={'title'}><i></i><span>代金券碎片说明</span><i></i></p>\n <p className={'desc-item'}>1. 碎片可通过“分享课程领取红包”获得,也可通过线上活动获得,具体请关注官网信息;</p>\n <p className={'desc-item'}>2. 碎片在购课时不能单独使用,可合成完整代金券后用代金券抵扣现金;</p>\n <p className={'desc-item'}>3. 碎片合成代金券后7日内有效。</p>\n </div>\n \n {\n this.state.success &&\n <div className=\"success\">\n 兑换成功\n </div>\n }\n </div>\n );\n }\n}\n\nfunction Coupon(props) {\n const {data, myAmount, select, checkedIndex} = props\n return (\n <div className={'coupons'}>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <div className='items-box' key={index} onClick={() => select(index, item)}>\n <div className={`coupon-info ${myAmount >= item.amount ? 'active' : null}`}>\n <div className=\"type\">{item.type}</div>\n <div className={'amount'}><span>{item.amount}</span>元</div>\n\n {\n myAmount >= item.amount &&\n <i className={`checkout ${index === checkedIndex ? 'iconfont icondanseshixintubiao-5' : 'nochecked'}`}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n\n <div className={'coupon-des'}>\n {item.desc}\n </div>\n </div>\n )\n })\n }\n </div>\n )\n}\n\n\nexport default WithFullSize(UsePatch);","import React, { Component } from 'react'\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport myCoupons from \"./myCoupons\"\nimport myPatch from './myPatch'\nimport { HeaderBar } from \"@/common\";\nimport './coupons.scss'\n\n\nclass coupons extends Component {\n render() {\n const {match, location} = this.props;\n return (\n <div className={'coupons-box'}>\n <HeaderBar title='优惠券' arrow={true}/>\n <section id='coupons'>\n <div className='tab'>\n <div>\n <NavLink to={{\n pathname: `${match.url}/my-coupon`,\n search: location.search,\n state: {...this.props.location.state}\n }}\n replace\n activeClassName='tab-active'\n >我的优惠券</NavLink>\n </div>\n <div>\n <NavLink to={{\n pathname: `${match.url}/my-patch`,\n search: location.search,\n state: {...this.props.location.state}\n }}\n replace\n activeClassName='tab-active'\n >碎片合成</NavLink>\n </div>\n </div>\n <div className=\"btm-border\"></div>\n\n <div className=\"coupons-container\">\n <Switch>\n <Redirect exact from='/coupons' to={{\n pathname: 'coupons/my-coupon', search: location.search, state: {\n from: this.props.location.state && this.props.location.state.from\n }\n }}/>\n <Route path={`${this.props.match.path}/my-coupon`} component={myCoupons}/>\n <Route path={`${this.props.match.path}/my-patch`} component={myPatch}/>\n </Switch>\n </div>\n </section>\n </div>\n )\n }\n\n}\n\nexport default coupons;\n","import React from 'react'\nimport { Modal } from 'antd-mobile'\nimport './index.scss'\n\nexport default function ({\n amount,\n limit_amount,\n onCancel = () => {\n },\n onConfirm\n }) {\n const content = (\n <>\n <div className=\"end-expansion-alert-ques\">\n {`你的${amount}元优惠券正在膨胀中,\n 确定要结束膨胀吗?`}\n </div>\n <div className=\"end-expansion-alert-hint\">\n {`离${limit_amount}元只差一点点了!继续膨胀,优惠更多哦`}\n </div>\n </>\n )\n Modal.alert('温馨提示', content, [\n {text: '再考虑下', onPress: onCancel, style: {color: '#333'}},\n {text: '确定结束膨胀', onPress: onConfirm}\n ])\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1123:function(e,t,a){},1124:function(e,t,a){},1125:function(e,t,a){},1126:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},1127:function(e,t,a){e.exports=a.p+"mrstatic/media/kanjia_cg_icon.81a489ac.png"},1128:function(e,t,a){},1129:function(e,t,a){},1130:function(e,t,a){},1131:function(e,t,a){},1132:function(e,t,a){},1133:function(e,t,a){},1134:function(e,t,a){},1135:function(e,t,a){},1136:function(e,t,a){},1222:function(e,t,a){"use strict";a.r(t);var n=a(20),o=(a(41),a(12)),c=a.n(o),s=a(5),i=a(7),r=a(6),l=a(8),d=a(89),u=a(9),p=a(0),m=a.n(p),h=(a(1123),a(82)),f=(a(90),a(26)),b=a.n(f),_=(a(1124),a(639)),g=a(81),v=(a(1125),a(3)),y=a(15),E=a(17),N=a.n(E),S=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={mobile:"",code:"",num:"86",isBargain:!0,isFocus:!1,bindInfo:{},isTip:!1,seconds:60,isTimer:!1},a.handleChange=function(e){var t=e.target,n=t.name,o=t.value;a.setState(Object(g.a)({},n,o))},a.sendCode=function(){var e=a.props.country,t=a.state,n=t.mobile,o=t.isTimer,s=t.seconds;if(!o){if(!/^\d+$/.test(n))return void c.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7");v.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(e),phone_num:n}).then(function(e){var t=e.data,n=t.errno,o=t.msg;200===n?(c.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){console.log(s),s<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--s})},1e3)):c.a.info(o)})}},a.handleClick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=a.props,n=t.country,o=t.iWantBargain,s=a.state,i=s.code,r=s.mobile;r?i?v.d.post("".concat(API["passport-api"],"/m/personal/bindPhone"),{area_code:"00".concat(n),phone_num:r,code:i,type:1,is_valid:e}).then(function(t){var n=t.data,s=n.errno,i=n.data,r=n.msg;200===s?e&&i.tip_info?a.setState({isTip:!0,bindInfo:i.tip_info}):o():c.a.info(r)}):c.a.info("\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801"):c.a.info("\u8bf7\u586b\u624b\u673a\u53f7\u7801")},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.country,n=t.toClose,o=this.state,c=o.mobile,s=o.code,i=o.isBargain,r=o.isFocus,l=o.bindInfo,d=o.isTip,u=o.isTimer,p=o.seconds,h=/^\d+$/.test(c);return m.a.createElement(m.a.Fragment,null,d&&m.a.createElement("div",{className:"popup-bind popup-bind--bargain"},m.a.createElement("div",{className:"popup-bind__content"},m.a.createElement("h4",{className:"popup-bind__title"},"\u7ed1\u5b9a\u786e\u8ba4"),m.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),m.a.createElement("ul",{className:"popup-bind__list"},l.email&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"iconfont iconduanxin"}),m.a.createElement("p",{className:"popup-bind__account--name"},l.email)),l.wechat_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-wachat"}),m.a.createElement("p",{className:"popup-bind__account--name"},l.wechat_nickname)),l.qq_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-qq"}),m.a.createElement("p",{className:"popup-bind__account--name"},l.qq_nickname)),l.sina_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-sina"}),m.a.createElement("p",{className:"popup-bind__account--name"},l.sina_nickname))),m.a.createElement("div",{className:"popup-bind__button"},m.a.createElement("button",{className:"popup-bind__button--cancle",onClick:n},"\u53d6\u6d88"),m.a.createElement("button",{className:"popup-bind__button--confirm",onClick:function(){return e.handleClick(0)}},"\u7ee7\u7eed\u7ed1\u5b9a")))),!d&&m.a.createElement("div",{className:"bargain-phone-popup"},m.a.createElement("h2",{className:"bargain-phone-popup__title"},"\u7ed1\u5b9a\u624b\u673a\uff0c\u5148\u780d\u4e00\u5200"),m.a.createElement("div",{className:N()("bargain-phone-popup__item",{active:r})},m.a.createElement(y.b,{className:"bargain-phone-popup__button--num",to:"/country?id=".concat(Object(v.c)("id"),"&from=bargain")},"+",a,m.a.createElement("i",{className:"iconfont iconiconfront-69"})),m.a.createElement("input",{className:"bargain-phone-popup__ipt",type:"tel",onChange:this.handleChange,onFocus:function(){e.setState({isFocus:!0})},onBlur:function(){e.setState({isFocus:!1})},name:"mobile",placeholder:"\u624b\u673a\u53f7",maxLength:11})),m.a.createElement("div",{className:"bargain-phone-popup__item"},m.a.createElement("input",{type:"tel",id:"code",onChange:this.handleChange,name:"code",placeholder:"\u9a8c\u8bc1\u7801",maxLength:6}),m.a.createElement("button",{type:"button",className:N()("bargain-phone-popup__button--send",{active:h}),onClick:this.sendCode},u?"\u91cd\u65b0\u53d1\u9001".concat(p,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),i?m.a.createElement("button",{type:"button",onClick:function(){return e.handleClick()},className:N()("bargain-phone-popup__button--bargain",{active:h&&s})},"\u5148\u780d\u4e00\u5200"):m.a.createElement(y.b,{className:"bargain-phone-popup__button--bargain active",to:"/passport/login"},"\u53bb\u767b\u5f55")))}}]),t}(p.Component),w=a(156),j=a(682),k=a(25),C=a(49),O=a(22),I=(a(756),function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(r.a)(this,Object(l.a)(t).call(this,e))).judgePopupTypeFromCountry=function(){var e=n.props,t=e.country,a=e.delCountryNum;t.from&&"bargain"===t.from&&(n.setState({country:t.num,isShowOverlay:!0,status:3}),a())},n.getBargainRankList=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v.d.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(e){200===e.data.code?n.setState({list:e.data.data.list,outList:e.data.data.list[0]}):c.a.info(e.data.msg,2)})},n.getBargainInfo=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={courseId:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(t){var a=t.data,o=a.code,s=a.data,i=a.msg,r=void 0===i?"":i;200===o?(n.setState({barInfo:s}),e&&(0!==s.bargain_status&&1!==s.bargain_status||n.getBargainRankList({type:0,bargain_code:s.bargain_code}))):c.a.info(r,2)})},n.getMore=function(){n.setState({isShowMore:!0})},n.boxHide=function(e){n.setState({isShowMore:e})},n.toArtifact=function(){var e={courseId:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/bargain/receiveLimit"),e).then(function(e){200===e.data.code?(n.setState({isShowOverlay:!0,status:1}),n.getBargainInfo(!1)):c.a.info(e.data.msg,2)})},n.useArtifact=function(){n.toKanjia(Object(v.c)("id"),2,0)},n.toCart=function(){var e={course_id:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/cart/add"),e).then(function(e){200===e.data.code||15001===e.data.code?n.props.history.push("/shopcart"):c.a.info(e.data.msg,2)})},n.continueBargain=function(){var e=n.state.barInfo,t=(void 0===e?{}:e).bargain_code;n.props.history.push("/bargain-middle-page?id=".concat(Object(v.c)("id"),"&bargaincode=").concat(t,"&is_originator=1"))},n.iWantBargain=function(){var e=n.props,t=e.history,a=e.user;a&&a.data&&a.data.uid?n.toKanjia(Object(v.c)("id"),1,0):t.push("/passport/login")},n.toKanjia=function(e,t,a){var o={course_id:e,type:t,parent_uid:a},s=n.props.history;v.d.post("".concat(API.home,"/m/bargain/toBargain"),o).then(function(e){var a=e.data,o=a.data;200===a.code?2===o.user_status?n.setState({isShowOverlay:!0,status:3}):2===t?(n.setState({isShowOverlay:!0,status:2,price:o.amount,sum:o.bargain_price}),n.getBargainInfo(!1),n.getBargainRankList({type:0,bargain_code:o.bargain_code})):s.push("/bargain-middle-page?id=".concat(Object(v.c)("id"),"&bargaincode=").concat(o.bargain_code,"&is_originator=1")):c.a.info(e.data.msg,2)})},n.close=function(){n.setState({isShowOverlay:!1,status:""})},n.state={isShowOverlay:!1,kanjiaIcon:a(1126),info:"",outList:[],list:[],limitPeople:"",status:"",bargainCode:"",time:"",barInfo:{},country:"86",price:0,sum:0},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getBargainInfo(),this.judgePopupTypeFromCountry()}},{key:"render",value:function(){var e=this.state,t=e.list,a=e.outList,n=e.barInfo,o=e.country,c=e.price,s=e.sum,i=this.props.user,r=i&&i.data&&i.data.uid;return m.a.createElement("div",{className:"bargain-func"},(2===n.bargain_status||"139"===Object(v.c)("id")&&3===n.bargain_status||!r)&&m.a.createElement(P,{limitPeople:n.limit_people,iWantBargain:this.iWantBargain}),(0===n.bargain_status||1===n.bargain_status)&&r&&m.a.createElement(x,{info:n,outList:a,getMore:this.getMore,toArtifact:this.toArtifact,useArtifact:this.useArtifact,continueBargain:this.continueBargain}),this.state.isShowOverlay&&m.a.createElement(_.a,null,3===this.state.status&&m.a.createElement(S,{country:o,iWantBargain:this.iWantBargain,toClose:this.close}),1===this.state.status&&m.a.createElement(A,{useArtifact:this.useArtifact}),2===this.state.status&&m.a.createElement(T,{price:c,sum:s,toCart:this.toCart}),0!==this.state.status&&m.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})),m.a.createElement(j.a,{list:t,icon:this.state.kanjiaIcon,limitPeople:n.limit_people,isShowMore:this.state.isShowMore,boxHide:this.boxHide}))}}]),t}(p.Component));function P(e){return m.a.createElement("div",{className:"intro-outer"},m.a.createElement("div",{className:"intro-inner"},m.a.createElement(b.a,{direction:"column",justify:"center",className:"intro-wrapper"},m.a.createElement("p",null,"\u9080\u8bf7",m.a.createElement("span",{className:"indicator"},e.limitPeople,"\u4f4d"),"\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),m.a.createElement("p",null,"\u4e00\u5200\u7edd\u6740\uff0c\u780d\u7206\u5e95\u4ef7"),m.a.createElement(b.a.Item,null,m.a.createElement("button",{onClick:e.iWantBargain},"\u6211\u8981\u780d\u4ef7")))))}function x(e){var t,a,n=Object(p.useState)(0),o=Object(h.a)(n,2),c=o[0],s=o[1],i=Object(p.useState)(0),r=Object(h.a)(i,2),l=r[0],d=r[1],u=Object(p.useState)(0),f=Object(h.a)(u,2),_=f[0],g=f[1],v=Object(p.useState)(0),y=Object(h.a)(v,2),E=y[0],N=y[1];0===e.info.is_artifact?t=m.a.createElement("div",null,"\u518d\u9080\u8bf7",m.a.createElement("span",{className:"indicator"},e.info.invit_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===e.info.is_artifact?(t=m.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=m.a.createElement("button",{onClick:e.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===e.info.is_artifact&&(t=m.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=m.a.createElement("button",{onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var S=1e3*e.info.end_time,j=Date.now();return setInterval(function(){S-=1e3,N(Object(w.differenceInSeconds)(new Date(S),j)%60),g(Object(w.differenceInMinutes)(new Date(S),j)%60),d(Object(w.differenceInHours)(new Date(S),j)%24),s(Object(w.differenceInDays)(new Date(S),j)%24)},1e3),m.a.createElement("div",{className:"status-outer"},0===e.info.bargain_status&&m.a.createElement("div",{className:"status-inner"},m.a.createElement(b.a,{direction:"column"},m.a.createElement("div",{className:"first-row"},m.a.createElement("div",null,"\u5df2\u780d",m.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),m.a.createElement("span",{className:"time hour"},String(l).padStart(2,0))," :\xa0",m.a.createElement("span",{className:"time min"},String(_).padStart(2,0))," :\xa0",m.a.createElement("span",{className:"time sec"},String(E).padStart(2,0)),m.a.createElement("span",{className:"over"},"\u540e\u780d\u4ef7\u7ed3\u675f")),m.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),m.a.createElement("div",{className:"sec-row"},m.a.createElement("div",null,m.a.createElement("img",{src:e.outList.avatar_file,alt:""}),m.a.createElement("span",{className:"name"},e.outList.user_name)),m.a.createElement("div",null,m.a.createElement("div",null,"\u780d\u6389",m.a.createElement("span",{className:"indicator"},e.outList.amount,"\u5143")),m.a.createElement("button",{onClick:e.continueBargain},"\u7ee7\u7eed\u780d\u4ef7"))),m.a.createElement("div",{className:"third-row"},t,a))),1===e.info.bargain_status&&m.a.createElement("div",{className:"status-inner status-over"},m.a.createElement(b.a,{direction:"column"},m.a.createElement("div",{className:"first-row"},m.a.createElement("div",null,"\u5df2\u780d",m.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),m.a.createElement("span",{className:"bargain-over"},"\u780d\u4ef7\u7ed3\u675f")),m.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),m.a.createElement("div",{className:"time-tobuy"},"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",m.a.createElement("span",{className:"time hour"},String(c).padStart(2,0)),m.a.createElement("span",{className:"unit"}," \u5929 "),m.a.createElement("span",{className:"time min"},String(l).padStart(2,0)),m.a.createElement("span",{className:"unit"}," \u65f6 "),m.a.createElement("span",{className:"time sec"},String(_).padStart(2,0)),m.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"))))}function A(e){return m.a.createElement("div",{className:"artifact-box"},m.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),m.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),m.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function T(e){var t=e.sum,n=e.price;return m.a.createElement("div",{className:"use-artifact-box"},m.a.createElement("img",{className:"top-img",src:a(1127),alt:""}),m.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",n,"\u5143\uff01"),m.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",m.a.createElement("span",{className:"indicator"},t,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),m.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),m.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}var B=Object(k.d)(Object(O.b)(function(e){return{user:e.user}},null),C.g)(I),D=(a(1128),p.Component,a(158),a(91)),R=a.n(D),z=(a(154),a(35)),M=a.n(z),F=(a(1129),a(166)),L=a(27),W=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).htmlDecode=function(e){return e&&(e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e},a.getList=function(){v.d.get("".concat(API.home,"/m/course/syllabuses/").concat(Object(v.c)("id"))).then(function(e){200===e.data.code?a.setState({stageInfo:e.data.data}):c.a.info(e.data.msg,2)})},a.changeTab=function(e,t){a.setState({tab:t})},a.state={stageInfo:[],tab:0},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t="";return this.props.data&&(t=this.props.data),m.a.createElement("div",{className:"course-detail"},m.a.createElement(M.a,null),m.a.createElement(F.StickyContainer,null,m.a.createElement(R.a,{tabs:[{title:"\u4ecb\u7ecd"},{title:"\u5927\u7eb2"}],initialPage:0,swipeable:!1,onTabClick:function(t,a){return e.changeTab(t,a)}}),0===this.state.tab?m.a.createElement("div",{className:"introduce"},m.a.createElement("p",null,"\u8bb2\u5e08\uff1a",t.teachers),m.a.createElement("p",null,"\u8bfe\u65f6\uff1a",t.course_hour),m.a.createElement("p",null,"\u65f6\u95f4\uff1a",t.start_time),m.a.createElement("div",{className:"dec",dangerouslySetInnerHTML:{__html:this.htmlDecode(t.intro)}})):null,1===this.state.tab?m.a.createElement("div",{className:"outline"},this.state.stageInfo&&this.state.stageInfo.length>0&&this.state.stageInfo.map(function(a,n){return m.a.createElement("div",{className:"stagebox",key:n},m.a.createElement("h1",{className:"stage text-overflow-1"},a.stage_name),a.lesson.map(function(a,n){return m.a.createElement("ul",{key:n},m.a.createElement("h2",{className:"classhour"},m.a.createElement("span",{className:"title text-overflow-1"},a.name),!t.is_aist&&(6===a.class_status||5===a.class_status)&&m.a.createElement("span",{className:"btn-right-10 audition",onClick:function(n){return e.props.toAudition(t.v_course_id,a.video_id)}},"\u8bd5\u542c",m.a.createElement("i",{className:"iconfont iconcelluar"})),!t.is_aist&&0===a.class_status&&m.a.createElement("i",{className:"iconfont iconiconfront-74 icon-right-22"}),!t.is_aist&&1===a.class_status&&m.a.createElement("span",{className:"btn-right-10 singleset",onClick:function(t){return e.props.toSingleset(a)}},"\xa5 ",a.class_price),!t.is_aist&&4===a.class_status&&1===a.video_auth&&4===a.is_video&&m.a.createElement("span",{className:"live icon-right-22"},"\u6b63\u5728\u76f4\u64ad",m.a.createElement("i",{className:"iconfont icondanseshixintubiao-23"})),!t.is_aist&&2===a.class_status&&m.a.createElement(y.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"iconfont icondanseshixintubiao-23 icon-right-22"}),t.is_aist&&a.is_open&&1===t.is_baoming&&m.a.createElement(y.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"aist aist_open"}),t.is_aist&&(!a.is_open||0===t.is_baoming)&&m.a.createElement("i",{className:"aist iconfont iconiconfront-74"})),a.point&&a.point.length>0&&a.point.map(function(e,t){var a=m.a.createElement("span",null,1===e.type&&m.a.createElement("span",null,"\u77e5\u8bc6\u70b9",t+1,"\uff1a"),2===e.type&&m.a.createElement("span",{className:"red"},"\u5b9e\u6218\u9879\u76ee\uff1a"));return m.a.createElement("li",{className:"points text-overflow-1",key:t},a,e.name)}),m.a.createElement(m.a.Fragment,null,t.is_aist&&""!==a.practice.title&&(!a.is_open||0===t.is_baoming)&&m.a.createElement("span",{className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),m.a.createElement("i",{className:"exam exam_close"})),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&!a.practice.is_tested&&m.a.createElement(y.b,{to:{pathname:"/campTest",search:"?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),state:{from:"/detail".concat(window.location.search)}},className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title)),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&a.practice.is_tested&&m.a.createElement(y.b,{to:{pathname:"/campResolve",search:"?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),state:{from:"/detail".concat(window.location.search)}},className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),m.a.createElement("i",{className:"exam exam_open"}))))}))})):null),m.a.createElement(M.a,null))}}]),t}(p.Component),q=(a(1130),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getRankList=function(){v.d.get("".concat(API.home,"/dist/rankList/").concat(Object(v.c)("id"))).then(function(e){200===e.data.code?a.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):c.a.info(e.data.msg,2)})},a.getCode=function(){var e=a.props.user;if(e&&e.data&&e.data.uid){var t={course_id:Object(v.c)("id")};v.d.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?a.setState({code:e.data.data.code}):c.a.info(e.data.msg,2)})}},a.share=function(e){var t=a.props.user;if(t&&t.data&&t.data.uid){var n=Object(v.c)("id"),o=e.dist_first_level_ti,c=e.uid,s=a.state.code;a.props.history.push("/shareposter?courseId=".concat(n,"&dist_first=").concat(o,"&uid=").concat(c,"&dist_code=").concat(s))}else a.props.history.push("/passport/login")},a.openRanking=function(){a.setState({shareRank:!0})},a.colse=function(){a.setState({shareRank:!1})},a.state={list:[],rankingslice:[],code:"",shareRank:!1},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getRankList(),this.getCode()}},{key:"render",value:function(){var e=this.props.courseInfo,t=void 0===e?"":e;return m.a.createElement("div",{className:"share-ranking"},m.a.createElement(b.a,{className:"share-container",justify:"between"},m.a.createElement(b.a,{className:"share-list"},m.a.createElement("span",{className:"title"},"\u6392\u884c\u699c\uff1a"),m.a.createElement("div",{className:"ranking-box",onClick:this.openRanking},this.state.rankingslice&&this.state.rankingslice.length>0&&this.state.rankingslice.map(function(e,t){return m.a.createElement("span",{key:t,className:"ranking-mess"},m.a.createElement("img",{src:e.head_imgurl,alt:""}),m.a.createElement("i",null,e.amount,"\u5143"))}))),m.a.createElement(b.a,{className:"share-money",justify:"between",align:"center"},m.a.createElement("img",{onClick:this.openRanking,className:"ranking-ellipsis",src:"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png",alt:""}),m.a.createElement("button",{className:"share",onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143"))),this.state.shareRank&&m.a.createElement("div",{className:"shareMbc"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title-box"},m.a.createElement("span",{className:"lable"},"\u8d5a\u94b1\u6392\u884c\u699c"),m.a.createElement("span",{className:"tips"},"\u53ea\u5c55\u793a\u524d9\u540d\u7528\u6237")),m.a.createElement("ul",null,this.state.list&&this.state.list.length>0&&this.state.list.map(function(e,t){return m.a.createElement("li",{key:t},m.a.createElement("img",{src:e.head_imgurl,alt:""}),m.a.createElement("span",{className:"course-title"},e.user_name),m.a.createElement("span",{className:"course-price"},e.amount,"\u5143"))})),m.a.createElement("div",{className:"shareBtn"},m.a.createElement("button",{onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))))}}]),t}(p.Component)),U=Object(k.d)(Object(O.b)(function(e){return{user:e.user}},null),C.g)(q),J=(a(1131),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).colse=function(){a.props.boxHide(!1)},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return m.a.createElement("div",null,this.props.auditionBox&&m.a.createElement("div",{className:"popup-box"},m.a.createElement("div",{className:"content audition-box"},m.a.createElement("p",{className:"audition-header"},"\u5f53\u524d\u9875\u9762\u4e0d\u652f\u6301\u8bd5\u542c"),m.a.createElement("p",{className:"audition-dec"},"\u8bf7\u524d\u5f80APP\u8bd5\u542c"),m.a.createElement(L.a,{className:"btn btn-18B4ED",text:"\u7acb\u5373\u524d\u5f80"})),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(p.Component)),H=a(670),Q=a(671),K=a(73),G=(a(1132),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).signUpNow=function(){if(a.props.user.hasError)a.props.history.push("/passport");else{var e=JSON.stringify([Number(Object(v.c)("id"))]);v.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(e,"?type=1")).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{type:1}):c.a.info(e.data.msg,2)})}},a.simpleCourse=function(){a.props.user.hasError?a.props.history.push("/passport"):v.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(v.c)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(v.c)("id")),{simple:1}):c.a.info(e.data.msg,2)})},a.formatDate=function(e){var t=e.split("-");return"".concat(t[1],"\u6708").concat(t[2],"\u65e5\u5f00\u8bfe")},a.tobuy=function(){var e=a.props.user,t=a.state.barInfo;e&&e.data&&e.data.uid?2===t.bargain_status?a.simpleCourse():a.setState({isShowOverlay:!0,bargainStatus:1}):a.props.history.push("/passport/login")},a.keyToGroup=function(){a.props.user.hasError?a.props.history.push("/passport"):a.props.history.push("/order?id=".concat(Object(v.c)("id")),{group:1})},a.bargainToOrder=function(){a.props.user.hasError?a.props.history.push("/passport"):v.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(v.c)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(v.c)("id"),"]"),{bargain:1}):c.a.info(e.data.msg,2)})},a.cancel=function(){var e={courseId:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/bargain/cancel"),e).then(function(e){200===e.data.code?(a.setState({isShowOverlay:!1,bargainStatus:""}),v.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(v.c)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(v.c)("id"),"]"),{simple:1}):c.a.info(e.data.msg,2)})):c.a.info(e.data.msg,2)})},a.close=function(){a.setState({isShowOverlay:!1,bargainStatus:""})},a.toKanjia=function(){var e=a.props,t=e.user,n=e.history,o=t&&t.data&&t.data.uid,s=Object(v.c)("id");if(o){var i={course_id:s,type:1,parent_uid:0};v.d.post("".concat(API.home,"/m/bargain/toBargain"),i).then(function(e){var t=e.data,a=t.data,o=t.code,i=t.msg;200===o?n.push("/bargain-middle-page?id=".concat(s,"&bargaincode=").concat(a.bargain_code,"&is_originator=1")):c.a.info(i,2)})}else a.props.history.push("/passport/login")},a.toStudy=function(e,t){var n=a.props.history;0==t?c.a.info("\u5c1a\u672a\u5f00\u8bfe\uff0c\u5f00\u8bfe\u540e\u7acb\u5373\u4e0a\u4f20\u8bfe\u7a0b\uff5e",2):n.push("/play/video?id=".concat(e))},a.getBargainInfo=function(){var e=a.props.user,t=(e&&e.data&&e.data.uid,{courseId:Object(v.c)("id")});v.d.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(e){200===e.data.code?a.setState({barInfo:e.data.data}):c.a.info(e.data.msg,2)})},a.expandPay=function(e,t){var n=a.props,o=n.user;n.history;o&&o.data&&o.data.uid?1==t?a.props.history.push("/deposit-order?oid=".concat(Object(v.c)("id"),"&source=",1),{id:Object(v.c)("id"),isexpand:1,sourcenum:1}):Date.parse(new Date)/1e3>=e.start_timestamp?a.props.history.push("/final-deposit-order?source=1",{id:Object(v.c)("id"),sourcenum:1}):c.a.info("\u4ed8\u5c3e\u6b3e\u65f6\u95f4\u5c06\u5728"+e.final_start_time+"\u5f00\u542f",2):a.props.history.push("/passport/login")},a.state={isbuy:1,is_baoming:0,group_status:3,in_cart:!1,countdown:0,barInfo:{}},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.group=!1}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=void 0===t?{}:t,n=e.user,o=void 0===n?{}:n;a.is_bargain&&o.data&&o.data.uid&&this.getBargainInfo(),this.setState({courseInfo:a,countdown:e.countdown})}},{key:"render",value:function(){var e=this,t=this.props,a=t.user,n=void 0===a?{}:a,o=t.toCart,c=this.state,s=c.countdown,i=c.barInfo,r=c.courseInfo,l=void 0===r?{}:r,d=n.data&&n.data.uid;return m.a.createElement("div",null,0===l.is_baoming&&3!==l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),l.in_cart&&m.a.createElement(y.b,{to:"/shopcart",className:"btn btn-s bg-FCCD05"},"\u53bb\u8d2d\u7269\u8f66\u7ed3\u7b97"),!l.in_cart&&m.a.createElement("button",{className:"btn btn-s bg-FCCD05",onClick:function(e){return o(1)}},"\u52a0\u5165\u8d2d\u7269\u8f66"),m.a.createElement("span",{className:"btn btn-s bg-FD7700",onClick:function(t){return e.simpleCourse()}},"\u7acb\u5373\u62a5\u540d")),0===l.is_baoming&&0!=l.is_deposit&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("div",{className:"btn btn-m bg-FD7700",onClick:function(){return e.expandPay(l.deposit_info,l.is_deposit)}},1==l.is_deposit?"\u7acb\u5373\u4ed8\u5b9a\u91d1":"\u7acb\u5373\u4ed8\u5c3e\u6b3e")),1===l.is_baoming&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("a",{className:"btn btn-m bg-09f",onClick:function(){return e.toStudy(l.v_course_id,l.is_have_video)}},"\u5f00\u59cb\u5b66\u4e60")),0===l.is_baoming&&3===l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn btn-s bg-F4AAA7",onClick:this.simpleCourse},m.a.createElement("span",null,"\xa5 ".concat(l.price1)),m.a.createElement("span",null,"\u76f4\u63a5\u8d2d\u4e70")),m.a.createElement("button",{className:"btn btn-s bg-E02E24"},m.a.createElement("span",{onClick:this.keyToGroup},m.a.createElement("span",null,"\xa5 ".concat(l.pdd_group_info.price)),m.a.createElement("span",null,"\u4e00\u952e\u5f00\u56e2")))),0===l.is_baoming&&4===l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("div",{className:"btn btn-l bg-E02E24",onClick:this.props.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",s," \u540e\u7ed3\u675f")),0===l.is_baoming&&this.props.data&&this.props.data.is_bargain&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn btn-s bg-F4AAA7"},m.a.createElement("span",null,"\xa5",l.price1),m.a.createElement("span",{onClick:this.tobuy},"\u76f4\u63a5\u8d2d\u4e70")),(2===i.bargain_status||"139"===Object(v.c)("id")&&3===i.bargain_status||!d)&&m.a.createElement("button",{className:"btn btn-s bg-E02E24",onClick:this.toKanjia},"\u6211\u8981\u780d\u4ef7"),(0===i.bargain_status||1===i.bargain_status)&&d&&m.a.createElement("button",{className:"btn btn-s bg-E02E24"},m.a.createElement("span",null,"\xa5",i.amount),m.a.createElement("span",{onClick:this.bargainToOrder},"\u53bb\u652f\u4ed8"))),20===this.state.isbuy&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult-l",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2"))),l.is_aist&&(this.props.user.hasError||0===l.is_baoming)&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn sign-up-now",onClick:function(t){return e.signUpNow()}},m.a.createElement("span",null,"\u7acb\u5373\u62a5\u540d"))),l.is_aist&&!this.props.user.hasError&&1===l.is_baoming&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),""===l.aist_start_time?m.a.createElement("a",{className:"btn btn-m bg-09f",onClick:function(){return e.toStudy(l.v_course_id,l.is_have_video)}},"\u5f00\u59cb\u5b66\u4e60"):m.a.createElement("button",{className:"btn btn-m wait-open"},m.a.createElement("span",null,this.formatDate(l.aist_start_time)))),this.state.isShowOverlay&&m.a.createElement(_.a,null,1===this.state.bargainStatus&&m.a.createElement(V,{close:this.close,cancel:this.cancel}),m.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(p.Component));function V(e){return m.a.createElement("div",{className:"cancel-bargain"},m.a.createElement("p",{className:"top-img"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"})),m.a.createElement("p",{className:"tip-mess"},"\u60a8\u5df2\u53d1\u8d77\u780d\u4ef7\uff0c\u76f4\u63a5\u8d2d\u4e70\u5c06\u6e05\u9664\u5df2\u780d\u91d1\u989d\u3002\u76f4\u63a5\u8d2d\u4e70\u53ef\u4f7f\u7528\u4f18\u60e0\u5238~"),m.a.createElement("div",{className:"btns"},m.a.createElement("button",{onClick:e.close},"\u53d6\u6d88"),m.a.createElement("button",{onClick:e.cancel},"\u786e\u5b9a")))}var Z=Object(O.b)(function(e){return{user:e.user}},{getCourses:K.d})(G),Y=(a(155),a(74)),X=a.n(Y),$=(a(1133),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).setupBarrage=function(){for(var e=new Date(Date.now()).getHours(),t=0,n=[{start:0,end:7,interval:6e4},{start:7,end:8,interval:3e4},{start:8,end:23,interval:15e3},{start:23,end:24,interval:3e4}];t<n.length;t++){var o=n[t];if(e>=o.start&&e<=o.end){a.timer=setTimeout(function(){a.getList()},o.interval);break}}},a.getList=function(){var e={course_id:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/course/barrages"),e).then(function(e){200===e.data.code&&a.setState({list:e.data.data,isShowBarrage:!0},function(){a.barageTimer=setTimeout(function(){a.setState({isShowBarrage:!a.state.isShowBarrage}),a.setupBarrage()},5e3)})})},a.state={list:[],isShowBarrage:!1},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this,a=this.props.isShow;e.isShow!==a&&void 0!==a&&(a&&setTimeout(function(){t.getList()},5e3),this.componentDidUpdate=null)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer),this.barageTimer&&clearTimeout(this.barageTimer)}},{key:"render",value:function(){return m.a.createElement(X.a,null,m.a.createElement("div",{className:"my-carousel",style:{opacity:this.state.isShowBarrage?1:0}},this.state.list&&m.a.createElement("div",{className:"v-item text-overflow-one"},m.a.createElement("img",{src:this.state.list.avatar,alt:""}),this.state.list.user_name," ",this.state.list.live_msg)))}}]),t}(p.Component)),ee=(a(1134),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).state={},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this.props.courseInfo,t="";return e&&(t=e.deposit_info),m.a.createElement("div",{className:"buy-expand"},m.a.createElement("p",{className:"buy-time"},"\u4ed8\u5b9a\u91d1\u65f6\u95f4\uff1a",t.deposit_start_time,"-",t.deposit_end_time),m.a.createElement("p",{className:"buy-time"},"\u4ed8\u5c3e\u6b3e\u65f6\u95f4\uff1a",t.final_start_time,"-",t.final_end_time),m.a.createElement("div",{className:"expand-bgimg"},m.a.createElement("img",{className:"four-year",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/dj-1111.png",alt:""}),m.a.createElement("span",{className:"dingjin"},"\u5b9a\u91d1",t.deposit_amount,"\u5143\uff0c\u53ef\u62b5\u6263",t.deduction_amount,"\u5143"),m.a.createElement("p",{className:"small"},"\u5230\u624b\u4ef7\u6700\u4f4e\uff1a\xa5",m.a.createElement("span",null,t.low_price)),m.a.createElement("p",{className:"else-tip"},"\u53e6\u53ef\u83b7\u5f97\u6700\u9ad8",t.deposit_coupon,"\u5143\u4ee3\u91d1\u5238\u8fdb\u884c\u53e0\u52a0")))}}]),t}(p.Component)),te=Object(k.d)(Object(O.b)(function(e){return{user:e.user}},null),C.g)(ee),ae=a(163),ne=a(716),oe=a(42),ce=a(19),se=a(71),ie=(a(1135),a(623)),re=a.n(ie),le=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).state={src:"",codeSrc:""},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props&&this.props.user&&this.props.user.data.uid;v.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(t)).then(function(t){if(0==t.data.errno)return e.setState({src:t.data.data.url}),new Promise(function(t){re.a.toDataURL(e.state.src,{},function(t,a){e.setState({codeSrc:a})}),t()});c.a.info(t.data.msg,2)})}},{key:"render",value:function(){return m.a.createElement("div",{className:"followQRcode-box"},m.a.createElement("div",{className:"followQRcode"},m.a.createElement("div",{className:"content"},m.a.createElement("p",{className:"title"},"\u5173\u6ce8\u516c\u4f17\u53f7"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"1"),"\u6709\u4eba\u901a\u8fc7\u60a8\u5206\u4eab\u7684\u94fe\u63a5\u9886\u53d6\u7ea2\u5305\u540e\uff0c\u4f1a\u7b2c\u4e00\u65f6\u95f4\u901a\u8fc7\u5fae\u4fe1\u670d\u52a1\u53f7\u901a\u77e5\u60a8\u3002"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"2"),"\u8bf7\u7528\u4e2a\u4eba\u5fae\u4fe1\u626b\u63cf\uff0c\u5173\u6ce8\u670d\u52a1\u53f7\u540e\u53ef\u63d0\u73b0\u7ea2\u5305\u5230\u5fae\u4fe1\u96f6\u94b1\u3002"),m.a.createElement("img",{src:this.state.codeSrc,alt:""}),m.a.createElement("p",{className:"tip"},"\u957f\u6309\u4e8c\u7ef4\u7801\u4fdd\u5b58\u5230\u76f8\u518c")),m.a.createElement("div",{className:"close"},m.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:this.props.toClose}))))}}]),t}(p.Component),de=Object(O.b)(function(e){return{user:e.user}})(le),ue=(a(1136),a(37)),pe=a.n(ue),me=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(r.a)(this,Object(l.a)(t).call(this,e)),a.removeStatisticsCookie=function(){pe.a.remove("share_code",{path:"/",domain:".julyedu.com"})},a.fetchShareInfo=function(){var e=Object(v.c)("share_code");v.d.get("".concat(API.home,"/sys/redPacket/shareUrl/").concat(Object(v.c)("id"))).then(function(t){var n=t.data,o=n.code,c=n.data;200===o&&a.setState({shareInfo:e?Object.assign({},c,{share_code:e}):c})})},a.judgePopupType=function(){var e=Object(v.c)("share_code"),t=a.state.shareInfo;e&&"null"!==e&&(a.setState({shareInfo:Object.assign({},t,{share_code:e})}),v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"check",share_code:e}).then(function(e){var t=e.data,n=t.code,o=t.data;200===n&&(o.is_overdue?a.setState({type:7}):o.is_receive?a.judgeReceiveStatus(o):a.setState({type:v.b.isWeixin?2:3})),4030!==n&&4040!==n||a.setState({type:v.b.isWeixin?2:3})}))},a.judgePopupTypeFromCountry=function(){var e=a.props.country,t=a.state.shareInfo;e.code&&(a.setState({country:e,shareInfo:Object.assign({},t,{share_code:e.code})}),v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"check",share_code:e.code}).then(function(e){console.log(e);var t=e.data,n=t.code,o=t.data;200===n&&(o.is_receive?a.judgeReceiveStatus(o,8):a.setState({type:3}),a.props.delCountryNum())}))},a.judgeReceiveStatus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n="",o="";1===e.receive_type&&(o="\u8d8a\u591a\u597d\u53cb\u9886\u53d6\uff0c\u4f60\u6240\u5f97\u8d8a\u591a\uff01"),2===e.receive_type&&(o="\u6bcf\u5929\u53ea\u80fd\u5e2e\u597d\u53cb\u9886\u53d6\u4e00\u6b21\u54e6~"),n=e.is_overdue?1===e.red_packet_type?"\u60a8\u5df2\u7ecf\u9886\u8fc7\u8be5\u7ea2\u5305 ".concat(e.amount,"\u5143\u73b0\u91d1\uff01"):"\u60a8\u5df2\u7ecf\u9886\u8fc7\u8be5\u7ea2\u5305 ".concat(e.amount,"\u5143\u4ee3\u91d1\u5238\u788e\u7247\uff01"):1===e.red_packet_type?"\u4eca\u65e5\u5df2\u9886\u53d6".concat(e.amount,"\u5143\u73b0\u91d1\uff01"):"\u4eca\u65e5\u5df2\u9886\u53d6".concat(e.amount,"\u5143\u4ee3\u91d1\u5238\u788e\u7247\uff01"),1===e.receive_status?a.setState({type:9,doneInfo:{status:1,txt:n,desc:o}}):2===e.receive_status?(a.setState({type:t,money:e.amount,endTime:e.end_time}),a.startCountDown()):3===e.receive_status&&a.setState({type:9,doneInfo:{status:2,txt:"\u624b\u673a\u53f7\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!",desc:o}})},a.startCountDown=function(){a.countdownTimer&&window.clearInterval(a.countdownTimer);var e=a.state.endTime,t=0,n=0;a.countdownTimer=window.setInterval(function(){e<=0&&(window.clearInterval(a.countdownTimer),a.setState({endTime:0})),e-=1,t="".concat(Math.floor(e/60)).padStart(2,0),n="".concat(e%60).padStart(2,0),a.setState({countdown:"".concat(t,"\u5206").concat(n,"\u79d2")})},1e3)},a.handleToShare=function(){var e=a.props,t=e.history,n=e.userInfo;v.b.isWeixin?(a.setState({type:2}),t.push("/detail?id=".concat(Object(v.c)("id"),"&wechat=1"))):n&&n.uid?v.d.get("".concat(API.home,"/sys/redPacket/shareUrl/").concat(Object(v.c)("id"))).then(function(e){var t=e.data,n=t.code,o=t.data;200===n&&a.setState({shareInfo:o,type:1})}):t.push("/passport/login")},a.openTip=function(){a.state.shareInfo.is_follow||a.setState({type:11})},a.handleToOpen=function(){var e=a.props.history,t=a.state.shareInfo.share_code,n=void 0===t?"":t;v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"receive",share_code:n}).then(function(t){var n=t.data,o=n.code,c=n.data;200===o?c.is_receive?a.judgeReceiveStatus(c):2===c.red_packet_type?a.setState({type:6,money:c.amount}):1===c.red_packet_type&&(1===c.receive_status?1===c.red_packet_type?a.setState({type:5,money:c.amount}):2===c.red_packet_type&&a.setState({type:6,money:c.amount}):2===c.receive_status?(a.setState({type:4,money:c.amount,endTime:c.end_time}),a.startCountDown()):3===c.receive_status&&a.setState({type:9,doneInfo:{status:2,txt:"\u624b\u673a\u53f7\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!",desc:1===c.receive_type?"\u8d8a\u591a\u597d\u53cb\u9886\u53d6\uff0c\u4f60\u6240\u5f97\u8d8a\u591a\uff01":2===c.receive_type?"\u6bcf\u5929\u53ea\u80fd\u5e2e\u597d\u53cb\u9886\u53d6\u4e00\u6b21\u54e6~":""}})):4030!==o&&4040!==o||e.push("/passport/login")})},a.handleToClose=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=a.state.shareInfo.share_code,o=void 0===n?"":n;v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"check",share_code:o}).then(function(e){var t=e.data,n=t.code,o=t.data;200===n&&(o.is_receive?a.judgeReceiveStatus(o):a.setState({type:3}))})}else{if(t)a.props.history.push("/detail?id=".concat(Object(v.c)("id")));a.setState({type:0})}},a.clickMask=function(){2===a.state.type&&a.setState({type:0})},a.getCaptchaInstance=function(e){a.setState({captchaInstance:e})},a.onVerify=function(e,t){e?console.log(e):a.setState({validate:t.validate})},a.handleToSend=function(e){var t=e.tel,n=(e.code,a.state),o=n.validate,s=n.seconds,i=n.isFirst,r=n.isTimer,l=n.captchaInstance,d=n.country.num,u=void 0===d?"86":d;if(o){if(!i)return c.a.info("\u8bf7\u91cd\u65b0\u8fdb\u884c\u6ed1\u5757\u9a8c\u8bc1",2,null,!1),l.refresh(),void a.setState({isFirst:!0});r||(t?/^\d+$/.test(t)?v.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(u),phone_num:t}).then(function(e){var t=e.data,n=t.errno,o=t.msg;200===n?(c.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){s<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--s})},1e3),a.setState({isFirst:!1})):c.a.info(o,2,null,!1)}):c.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7\u7801",2,null,!1):c.a.info("\u624b\u673a\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a",2,null,!1))}return!1},a.receviceAfterBind=function(){v.d.get("".concat(API.home,"/sys/red_packet/receive")).then(function(e){var t=e.data,n=t.code,o=t.data,s=t.msg;200===n?1===o.receive_status?1===o.red_packet_type?a.setState({type:5,money:o.amount}):2===o.red_packet_type&&a.setState({type:6,money:o.amount}):2===o.receive_status?(a.setState({type:4,money:o.amount,endTime:o.end_time}),a.startCountDown()):3===o.receive_status&&a.setState({type:9,doneInfo:{status:2,txt:"\u624b\u673a\u53f7\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!",desc:1===o.receive_type?"\u8d8a\u591a\u597d\u53cb\u9886\u53d6\uff0c\u4f60\u6240\u5f97\u8d8a\u591a\uff01":2===o.receive_type?"\u6bcf\u5929\u53ea\u80fd\u5e2e\u597d\u53cb\u9886\u53d6\u4e00\u6b21\u54e6~":""}}):c.a.info(s,2,null,!1)})},a.toContinueBind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=a.state,n=t.accountInfo,o=n.tel,s=n.code,i=t.country.num,r=void 0===i?"86":i;v.d.post("".concat(API["passport-api"],"/m/personal/bindPhone"),{area_code:"00".concat(r),phone_num:o,code:s,type:1,is_valid:e}).then(function(t){var n=t.data,o=n.errno,s=n.data,i=n.msg;200===o?e&&s.tip_info?a.setState({type:10,bindInfo:s.tip_info}):a.receviceAfterBind():c.a.info(i,2,null,!1)})},a.setRelativeCookie=function(){pe.a.set("share_code",Object(v.c)("share_code")?Object(v.c)("share_code"):"share_code",{path:"/",domain:".julyedu.com"})},a.state={type:0,isCopy:!1,validate:"",captchaInstance:null,seconds:60,isFirst:!0,timer:null,isTimer:!1,shareInfo:{url:"",share_code:"",command:"\u3010\u4e03\u6708\u5728\u7ebf\u9001\u4f60\u4e00\u4e2a\u7ea2\u5305\u3011https://www.julyedu.com/"},doneInfo:{status:2,txt:"\u624b\u673a\u53f7\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!",desc:""},money:"",endTime:10,countdownTimer:null,countdown:"00\u520600\u79d2",accountInfo:{},bindInfo:{},country:{num:"86"}},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.judgePopupTypeFromCountry(),this.judgePopupType(),window.addEventListener("beforeunload",this.removeStatisticsCookie);var t=Object(v.c)("wechat"),a=this.props.userInfo;(a&&a.uid||this.setRelativeCookie(),"1"!==t||v.b.isWeixin)||(a&&a.uid?"split"===window.localStorage.getItem("redpacket-click")?v.d.get("".concat(API.home,"/sys/redPacket/shareUrl/").concat(Object(v.c)("id"))).then(function(t){var a=t.data,n=a.code,o=a.data;200===n&&v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"check",share_code:o.share_code}).then(function(t){var a=t.data,n=a.code,o=a.data;200===n&&(window.localStorage.removeItem("redpacket-click"),o.is_receive?e.judgeReceiveStatus(o,8):e.setState({type:3}))})}):(this.setState({type:1}),window.localStorage.removeItem("redpacket-click")):(this.setRelativeCookie(),this.setState({type:1})));this.fetchShareInfo()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.removeStatisticsCookie)}},{key:"render",value:function(){var e=this,t=this.props,a=t.history,o=t.userInfo,c=this.state,s=c.type,i=c.isCopy,r=c.validate,l=c.isTimer,d=c.seconds,u=c.shareInfo,p=u.command,h=void 0===p?"":p,f=u.share_code,b=void 0===f?"":f,_=c.money,g=c.doneInfo,E=c.countdown,S=c.endTime,w=c.bindInfo,j=c.country,k=N()("popup-mask",{"popup-mask--no":2!==s});return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"red-packet"},m.a.createElement("p",{className:"red-packet__title"},"\u5206\u4eab\u8bfe\u7a0b\u7ed9\u597d\u53cb\uff0c\u4f60\u548c\u597d\u53cb\u90fd\u53ef\u4ee5\u9886\u7ea2\u5305\u54e6\u301c"),m.a.createElement("button",{className:"red-packet__button",onClick:this.handleToShare},"\u5206\u4eab\u9886\u7ea2\u5305")),0!==s&&m.a.createElement("div",{className:k,onClick:this.clickMask},2==s&&m.a.createElement("div",{className:"pupup-wechat"},m.a.createElement("h4",{className:"popup-wechat__title"},"\u5f53\u524d\u73af\u5883\u4e0d\u652f\u6301\u9886\u7ea2\u5305\u6d3b\u52a8"),m.a.createElement("p",{className:"popup-wechat__desc"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u201c \xb7\xb7\xb7 \u201d\uff0c\u9009\u62e9\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00 \u7136\u540e\u53c2\u4e0e\u6d3b\u52a8\uff01"),m.a.createElement("i",{className:"popup-wechat__icon"})),1===s&&m.a.createElement("div",{className:"popup-password"},m.a.createElement("div",{className:"popup-password__content"},m.a.createElement("h4",{className:"popup-password__header"},"\u590d\u5236\u53e3\u4ee4\u53d1\u9001\u7ed9\u597d\u53cb"),m.a.createElement("div",{className:"popup-password__body"},m.a.createElement("p",{id:"password",className:"popup-passowrd__info"},h.length>16?"".concat(h.substr(0,16),"..."):h),i?m.a.createElement("p",{className:"popup-password__success"},"\u590d\u5236\u6210\u529f\uff0c\u5feb\u53d1\u9001\u7ed9\u597d\u53cb\u5427~"):o&&o.uid?m.a.createElement(ne.CopyToClipboard,{text:h,onCopy:function(){return e.setState({isCopy:!0})}},m.a.createElement("button",{className:"popup-password__button--copy"},"\u590d\u5236\u53e3\u4ee4")):m.a.createElement("button",{className:"popup-password__button--copy",onClick:function(){window.localStorage.setItem("redpacket-click","copy"),a.push("/passport/login")}},"\u590d\u5236\u53e3\u4ee4")),m.a.createElement("p",{className:"popup-password__footer"},"\u597d\u53cb\u9886\u53d6\u7ea2\u5305\u540e\uff0c\u4f60\u5c06\u83b7\u5f97\u540c\u6837\u5956\u52b1\u3002",m.a.createElement("br",null),"\u81ea\u5df1\u4e5f\u53ef\u4ee5\u9886\u53d6\u54e6~")),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:function(){"1"===Object(v.c)("wechat")?o&&o.uid?(e.handleToClose(!0),a.push("/detail?id=".concat(Object(v.c)("id")))):(e.setState({type:3}),window.localStorage.setItem("redpacket-click","split")):e.handleToClose(!0),e.setState({isCopy:!1})}})),3===s&&m.a.createElement(he,{type:3,packetInfo:{title:"\u4e03\u6708\u5728\u7ebf\u7ed9\u4f60\u53d1\u4e86\u4e2a\u7ea2\u5305\uff5e"},handleToClose:function(){return e.handleToClose(!1)},handleToOpen:this.handleToOpen}),4===s&&m.a.createElement(he,{type:4,packetInfo:{money:_,tip:["\u4e3a\u4e86\u60a8\u7684\u8d44\u91d1\u5b89\u5168\uff0c\u8bf7\u4e8e5\u5206\u949f\u4e4b\u5185\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8d85\u65f6\u7ea2\u5305\u5c06\u5931\u6548"],btn:{txt:"\u7acb\u5373\u7ed1\u5b9a\uff08".concat(E,"\uff09"),onClick:function(){e.setState({type:8})}}},handleToClose:function(){return e.handleToClose(!1)}}),5===s&&m.a.createElement(he,{type:5,packetInfo:{money:_,tip:["\u53ef\u524d\u5f80\u3010\u4e03\u6708\u5728\u7ebf\u3011APP","- \u8d26\u6237\u8d44\u91d1\u4e2d\u63d0\u73b0"],btn:{txt:"\u83b7\u53d6\u66f4\u591a\u5956\u52b1",onClick:function(){a.push("/ShareCourse")}}},handleToClose:function(){var t=!!Object(v.c)("share_code");e.handleToClose(!1,t),e.openTip()}}),6===s&&m.a.createElement(he,{type:6,packetInfo:{money:_,tip:["\u53ef\u524d\u5f80\u3010\u4e03\u6708\u5728\u7ebf\u3011APP","- \u6211\u7684\u4f18\u60e0\u5238\u4e2d\u5408\u6210\u4ee3\u91d1\u5238"],btn:{txt:"\u83b7\u53d6\u66f4\u591a\u5956\u52b1",onClick:function(){a.push("/ShareCourse")}}},handleToClose:function(){var t=!!Object(v.c)("share_code");e.handleToClose(!1,t),e.openTip()}}),7===s&&m.a.createElement(he,{type:7,packetInfo:{btn:{txt:"\u83b7\u53d6\u66f4\u591a\u5956\u52b1",onClick:function(){a.push("/ShareCourse")}}},handleToClose:function(){var t=!!Object(v.c)("share_code");e.handleToClose(!1,t)}}),8===s&&m.a.createElement("div",{className:"popup-form"},m.a.createElement(ce.d,{initialValues:{tel:"",code:""},validate:function(e){var t=e.tel,a=e.code,n={};return/^\d+$/.test(t)||(n.tel="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),/[0-9]{6}/.test(a)||(n.code="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"),n},onSubmit:function(t,a){a.setStatus,a.setSubmitting;e.setState({accountInfo:Object(n.a)({},t)}),e.toContinueBind()},render:function(t){var n=t.values,o=n.tel,c=n.code,s=t.errors;return m.a.createElement(ce.c,{className:"popup-form__content"},m.a.createElement("h4",{className:"popup-form__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),m.a.createElement("div",{className:"popup-form__item"},m.a.createElement(y.b,{className:"popup-form__button--num",to:"/country?id=".concat(Object(v.c)("id"),"&share_code=").concat(b)},"+",j.num,m.a.createElement("i",{className:"iconfont iconiconfront-69"})),m.a.createElement(ce.b,{name:"tel",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt","data-bdrs":"0 6px 6px 0","data-type":"tel",type:"text",placeholder:"\u8bf7\u586b\u5199\u624b\u673a\u53f7"}))}})),m.a.createElement(se.a,{mrBtm:15,getInstance:e.getCaptchaInstance,onVerify:e.onVerify}),0===S?m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"popup-form__item"},m.a.createElement("p",{className:"popup-form__tip"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),"\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!")),m.a.createElement("button",{className:"popup-packet__button--bundle","data-status":"do",type:"button",onClick:function(){a.push("/ShareCourse")}},"\u83b7\u53d6\u66f4\u591a\u5956\u52b1")):m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"popup-form__item"},m.a.createElement(ce.b,{name:"code",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt popup-form__ipt--left",type:"text",placeholder:"\u8f93\u5165\u9a8c\u8bc1\u7801"}))}}),m.a.createElement("button",{className:"popup-form__button--code","data-status":r&&!l?"do":"",type:"button",onClick:function(){return e.handleToSend({tel:o,code:c})}},l?"\u91cd\u65b0\u53d1\u9001".concat(d,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),m.a.createElement("button",{className:"popup-packet__button--bundle","data-status":o&&c&&Object(oe.isEmpty)(s)?"do":"done",type:"submit"},"\u5b8c\u6210\u7ed1\u5b9a(".concat(E,")"))))}}),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:function(){return e.handleToClose(!1)}})),9===s&&m.a.createElement("div",{className:"popup-done"},m.a.createElement("div",{className:"popup-done__content"},m.a.createElement("h4",{className:N()("popup-done__title",{"popup-done__title--overtime":2===g.status})},2===g.status&&m.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),g.txt),m.a.createElement("p",{className:"popup-done__desc"},g.desc),m.a.createElement("button",{className:"popup-packet__button--bundle","data-status":"do",type:"submit",onClick:function(){a.push("/ShareCourse")}},"\u83b7\u53d6\u66f4\u591a\u5956\u52b1")),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:function(){var t=!!Object(v.c)("share_code");e.handleToClose(!1,t)}})),10===s&&m.a.createElement("div",{className:"popup-bind"},m.a.createElement("div",{className:"popup-bind__content"},m.a.createElement("h4",{className:"popup-bind__title"},"\u7ed1\u5b9a\u786e\u8ba4"),m.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),m.a.createElement("ul",{className:"popup-bind__list"},w.email&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"iconfont iconduanxin"}),m.a.createElement("p",{className:"popup-bind__account--name"},w.email)),w.wechat_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-wachat"}),m.a.createElement("p",{className:"popup-bind__account--name"},w.wechat_nickname)),w.qq_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-qq"}),m.a.createElement("p",{className:"popup-bind__account--name"},w.qq_nickname)),w.sina_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-sina"}),m.a.createElement("p",{className:"popup-bind__account--name"},w.sina_nickname))),m.a.createElement("div",{className:"popup-bind__button"},m.a.createElement("button",{className:"popup-bind__button--cancle",onClick:function(){return e.handleToClose(!1)}},"\u53d6\u6d88"),m.a.createElement("button",{className:"popup-bind__button--confirm",onClick:function(){return e.toContinueBind(0)}},"\u7ee7\u7eed\u7ed1\u5b9a"))),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:function(){return e.handleToClose(!1)}})),11===s&&m.a.createElement(de,{toClose:function(){return e.handleToClose(!1)}})))}}]),t}(p.PureComponent),he=function(e){var t=e.type,a=e.packetInfo,n=e.handleToClose,o=e.handleToOpen,c=N()("popup-packet__content",{"popup-packet__content--open":4===t,"popup-packet__content--money":5===t,"popup-packet__content--fragment":6===t,"popup-packet__content--late":7===t}),s=a.money,i=a.tip,r=void 0===i?[]:i,l=a.btn;return m.a.createElement("div",{className:N()("popup-packet")},m.a.createElement("div",{className:c},3===t&&m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"popup-packet__title"},"\u4e03\u6708\u5728\u7ebf\u7ed9\u4f60\u53d1\u4e86\u4e2a\u7ea2\u5305\uff5e"),m.a.createElement("button",{className:"popup-packet__button--split",onClick:o})),(4===t||5===t||6===t)&&m.a.createElement(m.a.Fragment,null,m.a.createElement("h4",{className:"popup-packet__label"},"\u606d\u559c\u60a8\u83b7\u5f97"),m.a.createElement("p",{className:"popup-packet__value"},s,m.a.createElement("span",{className:"popup-packet__value--unit"},"\u5143")),m.a.createElement("p",{className:"popup-packet__tip"},r.map(function(e,t){return t!==r.lenght-1?m.a.createElement(m.a.Fragment,null,e,m.a.createElement("br",null)):e})),m.a.createElement("button",{className:"popup-packet__button--bundle",onClick:l.onClick},l.txt)),7===t&&m.a.createElement(m.a.Fragment,null,m.a.createElement("h4",{className:"popup-packet__label"},"\u60a8\u6765\u665a\u4e86\uff01"),m.a.createElement("p",{className:"popup-packet__value"},"\u7ea2\u5305\u4ec5\u80fd\u5f53\u65e5\u9886\u53d6\uff0c\u4e0b\u6b21",m.a.createElement("br",null),"\u65e9\u70b9\u6765\u54e6~"),m.a.createElement("button",{className:"popup-packet__button--bundle",onClick:l.onClick},l.txt))),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:n}))},fe=me,be=a(197),_e=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getBorwerCourse=function(){v.d.get("".concat(API.home,"/sys/user/blessing"),{type:4,course_id:Object(v.c)("id")}).then(function(e){var t=e.data,n=t.code,o=t.data.today_browsed_courses;if(200===n){var c=Object(v.c)("id");o.includes(Number(c))?a.setState({countDownTime:"\u4efb\u52a1\u5b8c\u6210"}):a.startActivity()}})},a.startActivity=function(){var e=Object(d.a)(a),t=setInterval(function(){var a=parseInt(e.state.countDownTime);--a>0?e.setState({countDownTime:a+"s"}):0===a&&(clearInterval(t),t=null,v.d.post("".concat(API.home,"/sys/add/blessing"),{type:4,course_id:Object(v.c)("id")}).then(function(t){200===t.data.code&&e.setState({countDownTime:"\u4efb\u52a1\u5b8c\u6210"})}))},1e3)},a.judgeIsRedPacket=function(){v.d.get("".concat(API.home,"/sys/redPacket/showShareActive/").concat(Object(v.c)("id"))).then(function(e){var t=e.data,n=t.code,o=t.data;200===n&&a.setState({isRedPacket:o.is_show})})},a.payCallback=function(){var e=Object(d.a)(a);Object(v.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){v.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(v.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,v.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(v.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,isPdd:t.data.data.data.is_pdd}):c.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(v.c)("code");if(t){if(!Object(v.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),v.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(v.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(){v.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(v.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,v.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(v.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,isPdd:t.data.data.data.is_pdd}):c.a.info(t.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 c.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),v.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,isPdd:e.data.data.data.is_pdd}):c.a.info(e.data.data.msg,2)})},a.payCallBack=function(e,t,n){var o=Object(d.a)(a);2===e?o.setState({singleType:e,nowPrice:t,laterPrice:n}):o.setState({singleType:e})},a.fetchCourseInfo=function(){var e=Object(v.c)("id");v.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code&&(""!==n.redirect_url&&(window.location.href=n.redirect_url),a.setState({course:n}),n.course_info)){var o=n.course_info;if(document.title="".concat(o.course_title," - \u4e03\u6708\u5728\u7ebf"),3===o.group_status||4===o.group_status){var c=1e3*o.pdd_group_info.groupon_member.end_time,s=0,i=0,r=0;setInterval(function(){c-=1e3,s="".concat(parseInt(c/864e5)).padStart(2,0),i="".concat(parseInt((c-36e5*s*24)/36e5)).padStart(2,0),r="".concat(parseInt((c-36e5*s*24-36e5*i)/6e4)).padStart(2,0),"".concat(parseInt((c-36e5*s*24-36e5*i-6e4*r)/1e3)).padStart(2,0),a.setState({countdown:"".concat(s,"\u5929").concat(i,"\u65f6").concat(r,"\u5206")})},1e3)}Object(v.i)({title:o.course_title,desc:o.index_description,link:encodeURI(location.origin+"/detail?id="+Object(v.c)("id")),imgUrl:o.image_name})}})},a.toAudition=function(e,t){var n=a.props.user;if(n&&n.data&&n.data.uid){if(""==t||0==t||void 0==t)return!1;v.d.post("".concat(API["base-api"],"/sys/get_class_audition?video_id=").concat(t)).then(function(n){200==n.data.errno?a.props.history.push("/play/video?id=".concat(e+"&video_id="+t)):c.a.info(n.data.msg,2)})}else a.props.history.push("/passport/login")},a.toSingleset=function(e){var t=a.props.user;t&&t.data&&t.data.uid?(a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))):a.props.history.push("/passport/login")},a.toCart=function(e){var t=a.props,n=t.history,o=t.addCourseToCart,s={course_id:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/cart/add"),s).then(function(t){200===t.data.code?1===e?(c.a.info("\u5df2\u52a0\u5165\u8d2d\u7269\u8f66",2),o(),a.fetchCourseInfo()):(n.replace("/shopcart"),\u00df):15001===t.data.code?n.replace("/shopcart"):4030===t.data.code?n.replace("/passport"):c.a.info(t.data.msg,2)})},a.invitedFriends=function(){var e=a.props.history,t=a.state.course,n=void 0===t?{}:t;n.course_info&&n.course_info.self_oid&&e.push("/togroup?id=".concat(n.course_info.self_oid))},a.boxHide=function(e){a.setState({auditionBox:e,singleBox:e,singleType:1}),a.props.history.push("/detail?id=".concat(Object(v.c)("id")))},a.state={isbuy:0,isvip:0,auditionBox:!1,singleBox:!1,singleType:1,shareRank:!1,singMess:"",barInfo:"",share:!1,countdown:"00:00:00",outList:[],list:[],course:{},nowPrice:0,laterPrice:0,isPdd:0,isRedPacket:!0,countDownTime:"20s"},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseInfo();var e=this.props.location.state,t=void 0===e?{}:e;t.oid&&this.check(t.oid),(1===Object(v.c)("is_class")||Object(v.c)("weixinpay"))&&this.payCallback(),v.b.isWeixin&&this.isweixinPay(),this.judgeIsRedPacket(),Object(v.c)("share_code")&&this.setState({isRedPacket:!0}),Object(v.c)("ac")&&11===Number(Object(v.c)("ac"))&&this.getBorwerCourse()}},{key:"componentDidUpdate",value:function(e){e.user.hasError!==this.props.user.hasError&&this.fetchCourseInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.course.course_info,n=void 0===a?{}:a,o=(t.barInfo,t.singleBox),c=t.singleType,s=t.isRedPacket,i=t.countDownTime,r=0;3!==n.group_status&&4!==n.group_status||(r=n.pdd_group_info.groupon_member.number);var l=this.state,d=l.share,u=l.countdown,p=(l.list,l.outList,""),h=this.props.location.state,f=void 0===h?{}:h;f.to&&"classify"===f.to&&(p="/classify"),f.oid&&(p="/classify"),Object(v.c)("dist_code")&&(p="/");n.pdd_group_info&&n.pdd_group_info.price;return m.a.createElement("div",null,11===Number(Object(v.c)("ac"))?m.a.createElement("div",{className:"activity__blessing"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/count_donw.png"}),m.a.createElement("span",{className:"count__down__time"},"".concat(i))):null,m.a.createElement("div",{className:"detail-box"},m.a.createElement(L.e,{title:"\u8bfe\u7a0b\u8be6\u60c5",arrow:!0,cart:!0,toHref:p}),m.a.createElement(be.a,null),m.a.createElement(L.a,{className:"toapp",path:"/detail/id=".concat(Object(v.c)("id"))}),m.a.createElement($,{isShow:n.is_show}),m.a.createElement("div",{className:"course-content"},m.a.createElement("div",{className:"cover"},m.a.createElement("img",{src:n.image_name,alt:""}),n.is_aist&&m.a.createElement("span",{className:"return_cash"})),m.a.createElement("div",{className:"info"},m.a.createElement("p",{className:"title"},n.course_title),m.a.createElement("p",{className:"contact text-overflow-2"},n.simpledescription),m.a.createElement("div",{className:"des"},0===n.is_baoming&&m.a.createElement("p",{className:"course-price"},m.a.createElement("span",{className:"new"},"\xa5",n.price1),m.a.createElement("span",{className:"old"},"\xa5",n.price0)),!!n.is_deposit&&0!=n.is_deposit&&m.a.createElement("div",{className:"openExpand"},"\u652f\u4ed8\u5b9a\u91d1\uffe5",n.deposit_info.deposit_amount,"\uff0c\u53ef\u62b5\u6263\uffe5",n.deposit_info.deduction_amount)))),1===n.is_baoming&&1==n.is_pay&&1==n.contact_type&&n.course_qq&&m.a.createElement("div",{className:"group"},"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid),1===n.is_baoming&&1==n.is_pay&&2==n.contact_type&&n.course_qq&&m.a.createElement("div",{className:"group"},"\u8bf7\u6dfb\u52a0\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",n.course_qq,"\uff0c\u6dfb\u52a0\u65f6\u5907\u6ce8\u5b66\u53f7\uff1a",n.uid),n.vip_range&&1==n.is_vip&&0==n.is_pay&&1==n.contact_type&&n.course_qq&&m.a.createElement("div",{className:"vip"},m.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),m.a.createElement("p",null,"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid)),n.vip_range&&1==n.is_vip&&0==n.is_pay&&2==n.contact_type&&n.course_qq&&m.a.createElement("div",{className:"vip"},m.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),m.a.createElement("p",null,"\u8bf7\u6dfb\u52a0\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",n.course_qq,"\uff0c\u6dfb\u52a0\u65f6\u5907\u6ce8\u5b66\u53f7\uff1a",n.uid)),!!n.is_deposit&&0!=n.is_deposit&&m.a.createElement(te,{courseInfo:n}),m.a.createElement("div",{className:"promise"},m.a.createElement("label",null,"\u670d\u52a1\u627f\u8bfa"),m.a.createElement("p",null,n.service&&n.service.length>0&&n.service.map(function(e,t){return m.a.createElement("span",{key:t}," ",e," ")}))),m.a.createElement(J,{auditionBox:this.state.auditionBox,boxHide:this.boxHide}),o&&m.a.createElement(H.a,{singleType:this.state.singleType,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,title:n.course_title,check:this.check,courseId:n.course_id}),1!==c&&m.a.createElement(Q.a,{boxHide:this.boxHide,data:this.state.singMess,singleType:c,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,isPdd:this.state.isPdd,laterPrice:this.state.laterPrice,courseId:n.course_id}),s&&m.a.createElement(fe,{history:this.props.history,country:this.props.country,delCountryNum:this.props.delCountryNum,userInfo:this.props.user.data}),n.is_dist&&m.a.createElement(U,{courseInfo:n}),0===n.is_baoming&&!n.is_aist&&n.is_bargain&&m.a.createElement(B,{country:this.props.country,delCountryNum:this.props.delCountryNum}),m.a.createElement(W,{data:n,toAudition:this.toAudition,toSingleset:this.toSingleset}),n&&m.a.createElement(Z,{countdown:u,data:n,user:this.props.user,invitedFriends:this.invitedFriends,toCart:this.toCart,history:this.props.history}),d?m.a.createElement("div",{className:"groupSuccessMbc",onClick:function(){e.setState({share:!1})}},m.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(r,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),m.a.createElement("div",{className:"tipArrow"},m.a.createElement("i",{className:"iconfont iconyindao"}))):null))}}]),t}(p.Component);t.default=Object(O.b)(function(e){return{user:Object(n.a)({},e.user),country:e.country}},function(e){return Object(k.b)({getCourses:K.d,addCourseToCart:K.c,delCountryNum:ae.c},e)})(_e)},622:function(e,t,a){},638:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},639:function(e,t,a){"use strict";var n=a(5),o=a(7),c=a(6),s=a(8),i=a(9),r=a(0),l=a.n(r),d=a(21),u=a.n(d),p=(a(684),document.body||document.documentElement),m=["touchmove","mousewheel"],h=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(s.a)(t).call(this,e))).preventScroll=function(e){e.preventDefault()},a.overlayBox=null,a}return Object(i.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;m.forEach(function(t){e.overlayBox.addEventListener(t,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;m.forEach(function(t){e.overlayBox.removeEventListener(t,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(t){return e.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),p)}}]),t}(r.Component);t.a=h},670:function(e,t,a){"use strict";a(41);var n=a(12),o=a.n(n),c=a(5),s=a(7),i=a(6),r=a(8),l=a(89),d=a(9),u=a(0),p=a.n(u),m=(a(622),a(3)),h=a(49),f=a(25),b=a(22),_=a(156),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.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)):o.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():o.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)):o.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(l.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?(o.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}):o.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 o.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(l.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}):o.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){o.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)):o.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):o.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}):o.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(d.a)(t,e),Object(s.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(_.differenceInSeconds)(new Date(t),a)%60,o=Object(_.differenceInMinutes)(new Date(t),a)%60,c=Object(_.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:o,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(b.b)(function(e){return{user:e.user}},null),h.g)(g)},671:function(e,t,a){"use strict";a(41);var n=a(12),o=a.n(n),c=a(5),s=a(7),i=a(6),r=a(8),l=a(9),d=a(0),u=a.n(d),p=(a(622),a(3)),m=a(49),h=a(25),f=a(22),b=a(156),_=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.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)):o.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():o.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)):o.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}):o.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){o.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)):o.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):o.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}):o.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(l.a)(t,e),Object(s.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(b.differenceInSeconds)(new Date(t),a)%60,o=Object(b.differenceInMinutes)(new Date(t),a)%60,c=Object(b.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:o,sec:n})},1e3)}var n=this.props.singleType,o=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,o)},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,o)},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}(d.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(_)},682:function(e,t,a){"use strict";var n=a(5),o=a(7),c=a(6),s=a(8),i=a(9),r=a(0),l=a.n(r),d=(a(683),function(e){function t(e){var o;return Object(n.a)(this,t),(o=Object(c.a)(this,Object(s.a)(t).call(this,e))).closeMore=function(){o.props.boxHide(!1)},o.state={kanjiaIcon:a(638)},o}return Object(i.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),t}(r.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(t,a){return l.a.createElement("li",{key:a,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},t.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},t.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=d},683:function(e,t,a){},684:function(e,t,a){},716:function(e,t,a){"use strict";var n=a(717).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},717: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},o=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=i(a(0)),s=i(a(718));function i(e){return e&&e.__esModule?e:{default:e}}function r(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 o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return a=n=r(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.onClick=function(e){var t=n.props,a=t.text,o=t.onCopy,i=t.children,r=t.options,l=c.default.Children.only(i),d=(0,s.default)(a,r);o&&o(a,d),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(e)},r(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),o(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"]),o=c.default.Children.only(t);return c.default.cloneElement(o,n({},a,{onClick:this.onClick}))}}]),t}()).defaultProps={onCopy:void 0,options:void 0}},718:function(e,t,a){"use strict";var n=a(719),o="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var a,c,s,i,r,l,d=!1;t||(t={}),a=t.debug||!1;try{if(s=n(),i=document.createRange(),r=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),i.selectNodeContents(l),r.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(u){a&&console.error("unable to copy using execCommand: ",u),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),d=!0}catch(u){a&&console.error("unable to copy using clipboardData: ",u),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:o),window.prompt(c,e)}}finally{r&&("function"==typeof r.removeRange?r.removeRange(i):r.removeAllRanges()),l&&document.body.removeChild(l),s()}return d}},719: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=detail.454052b6.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([[25],{1123:function(e,t,a){},1124:function(e,t,a){},1125:function(e,t,a){},1126:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},1127:function(e,t,a){e.exports=a.p+"mrstatic/media/kanjia_cg_icon.81a489ac.png"},1128:function(e,t,a){},1129:function(e,t,a){},1130:function(e,t,a){},1131:function(e,t,a){},1132:function(e,t,a){},1133:function(e,t,a){},1134:function(e,t,a){},1135:function(e,t,a){},1136:function(e,t,a){},1222:function(e,t,a){"use strict";a.r(t);var n=a(20),o=(a(41),a(12)),c=a.n(o),s=a(5),i=a(7),r=a(6),l=a(8),d=a(89),u=a(9),p=a(0),m=a.n(p),f=(a(1123),a(82)),h=(a(90),a(26)),b=a.n(h),_=(a(1124),a(639)),g=a(81),v=(a(1125),a(3)),E=a(15),y=a(17),N=a.n(y),w=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={mobile:"",code:"",num:"86",isBargain:!0,isFocus:!1,bindInfo:{},isTip:!1,seconds:60,isTimer:!1},a.handleChange=function(e){var t=e.target,n=t.name,o=t.value;a.setState(Object(g.a)({},n,o))},a.sendCode=function(){var e=a.props.country,t=a.state,n=t.mobile,o=t.isTimer,s=t.seconds;if(!o){if(!/^\d+$/.test(n))return void c.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7");v.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(e),phone_num:n}).then(function(e){var t=e.data,n=t.errno,o=t.msg;200===n?(c.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){console.log(s),s<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--s})},1e3)):c.a.info(o)})}},a.handleClick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=a.props,n=t.country,o=t.iWantBargain,s=a.state,i=s.code,r=s.mobile;r?i?v.d.post("".concat(API["passport-api"],"/m/personal/bindPhone"),{area_code:"00".concat(n),phone_num:r,code:i,type:1,is_valid:e}).then(function(t){var n=t.data,s=n.errno,i=n.data,r=n.msg;200===s?e&&i.tip_info?a.setState({isTip:!0,bindInfo:i.tip_info}):o():c.a.info(r)}):c.a.info("\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801"):c.a.info("\u8bf7\u586b\u624b\u673a\u53f7\u7801")},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.country,n=t.toClose,o=this.state,c=o.mobile,s=o.code,i=o.isBargain,r=o.isFocus,l=o.bindInfo,d=o.isTip,u=o.isTimer,p=o.seconds,f=/^\d+$/.test(c);return m.a.createElement(m.a.Fragment,null,d&&m.a.createElement("div",{className:"popup-bind popup-bind--bargain"},m.a.createElement("div",{className:"popup-bind__content"},m.a.createElement("h4",{className:"popup-bind__title"},"\u7ed1\u5b9a\u786e\u8ba4"),m.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),m.a.createElement("ul",{className:"popup-bind__list"},l.email&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"iconfont iconduanxin"}),m.a.createElement("p",{className:"popup-bind__account--name"},l.email)),l.wechat_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-wachat"}),m.a.createElement("p",{className:"popup-bind__account--name"},l.wechat_nickname)),l.qq_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-qq"}),m.a.createElement("p",{className:"popup-bind__account--name"},l.qq_nickname)),l.sina_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-sina"}),m.a.createElement("p",{className:"popup-bind__account--name"},l.sina_nickname))),m.a.createElement("div",{className:"popup-bind__button"},m.a.createElement("button",{className:"popup-bind__button--cancle",onClick:n},"\u53d6\u6d88"),m.a.createElement("button",{className:"popup-bind__button--confirm",onClick:function(){return e.handleClick(0)}},"\u7ee7\u7eed\u7ed1\u5b9a")))),!d&&m.a.createElement("div",{className:"bargain-phone-popup"},m.a.createElement("h2",{className:"bargain-phone-popup__title"},"\u7ed1\u5b9a\u624b\u673a\uff0c\u5148\u780d\u4e00\u5200"),m.a.createElement("div",{className:N()("bargain-phone-popup__item",{active:r})},m.a.createElement(E.b,{className:"bargain-phone-popup__button--num",to:"/country?id=".concat(Object(v.c)("id"),"&from=bargain")},"+",a,m.a.createElement("i",{className:"iconfont iconiconfront-69"})),m.a.createElement("input",{className:"bargain-phone-popup__ipt",type:"tel",onChange:this.handleChange,onFocus:function(){e.setState({isFocus:!0})},onBlur:function(){e.setState({isFocus:!1})},name:"mobile",placeholder:"\u624b\u673a\u53f7",maxLength:11})),m.a.createElement("div",{className:"bargain-phone-popup__item"},m.a.createElement("input",{type:"tel",id:"code",onChange:this.handleChange,name:"code",placeholder:"\u9a8c\u8bc1\u7801",maxLength:6}),m.a.createElement("button",{type:"button",className:N()("bargain-phone-popup__button--send",{active:f}),onClick:this.sendCode},u?"\u91cd\u65b0\u53d1\u9001".concat(p,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),i?m.a.createElement("button",{type:"button",onClick:function(){return e.handleClick()},className:N()("bargain-phone-popup__button--bargain",{active:f&&s})},"\u5148\u780d\u4e00\u5200"):m.a.createElement(E.b,{className:"bargain-phone-popup__button--bargain active",to:"/passport/login"},"\u53bb\u767b\u5f55")))}}]),t}(p.Component),S=a(156),j=a(682),k=a(25),C=a(49),I=a(22),O=(a(756),function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(r.a)(this,Object(l.a)(t).call(this,e))).judgePopupTypeFromCountry=function(){var e=n.props,t=e.country,a=e.delCountryNum;t.from&&"bargain"===t.from&&(n.setState({country:t.num,isShowOverlay:!0,status:3}),a())},n.getBargainRankList=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v.d.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(e){200===e.data.code?n.setState({list:e.data.data.list,outList:e.data.data.list[0]}):c.a.info(e.data.msg,2)})},n.getBargainInfo=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={courseId:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(t){var a=t.data,o=a.code,s=a.data,i=a.msg,r=void 0===i?"":i;200===o?(n.setState({barInfo:s}),e&&(0!==s.bargain_status&&1!==s.bargain_status||n.getBargainRankList({type:0,bargain_code:s.bargain_code}))):c.a.info(r,2)})},n.getMore=function(){n.setState({isShowMore:!0})},n.boxHide=function(e){n.setState({isShowMore:e})},n.toArtifact=function(){var e={courseId:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/bargain/receiveLimit"),e).then(function(e){200===e.data.code?(n.setState({isShowOverlay:!0,status:1}),n.getBargainInfo(!1)):c.a.info(e.data.msg,2)})},n.useArtifact=function(){n.toKanjia(Object(v.c)("id"),2,0)},n.toCart=function(){var e={course_id:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/cart/add"),e).then(function(e){200===e.data.code||15001===e.data.code?n.props.history.push("/shopcart"):c.a.info(e.data.msg,2)})},n.continueBargain=function(){var e=n.state.barInfo,t=(void 0===e?{}:e).bargain_code;n.props.history.push("/bargain-middle-page?id=".concat(Object(v.c)("id"),"&bargaincode=").concat(t,"&is_originator=1"))},n.iWantBargain=function(){var e=n.props,t=e.history,a=e.user;a&&a.data&&a.data.uid?n.toKanjia(Object(v.c)("id"),1,0):t.push("/passport/login")},n.toKanjia=function(e,t,a){var o={course_id:e,type:t,parent_uid:a},s=n.props.history;v.d.post("".concat(API.home,"/m/bargain/toBargain"),o).then(function(e){var a=e.data,o=a.data;200===a.code?2===o.user_status?n.setState({isShowOverlay:!0,status:3}):2===t?(n.setState({isShowOverlay:!0,status:2,price:o.amount,sum:o.bargain_price}),n.getBargainInfo(!1),n.getBargainRankList({type:0,bargain_code:o.bargain_code})):s.push("/bargain-middle-page?id=".concat(Object(v.c)("id"),"&bargaincode=").concat(o.bargain_code,"&is_originator=1")):c.a.info(e.data.msg,2)})},n.close=function(){n.setState({isShowOverlay:!1,status:""})},n.state={isShowOverlay:!1,kanjiaIcon:a(1126),info:"",outList:[],list:[],limitPeople:"",status:"",bargainCode:"",time:"",barInfo:{},country:"86",price:0,sum:0},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getBargainInfo(),this.judgePopupTypeFromCountry()}},{key:"render",value:function(){var e=this.state,t=e.list,a=e.outList,n=e.barInfo,o=e.country,c=e.price,s=e.sum,i=this.props.user,r=i&&i.data&&i.data.uid;return m.a.createElement("div",{className:"bargain-func"},(2===n.bargain_status||"139"===Object(v.c)("id")&&3===n.bargain_status||!r)&&m.a.createElement(P,{limitPeople:n.limit_people,iWantBargain:this.iWantBargain}),(0===n.bargain_status||1===n.bargain_status)&&r&&m.a.createElement(x,{info:n,outList:a,getMore:this.getMore,toArtifact:this.toArtifact,useArtifact:this.useArtifact,continueBargain:this.continueBargain}),this.state.isShowOverlay&&m.a.createElement(_.a,null,3===this.state.status&&m.a.createElement(w,{country:o,iWantBargain:this.iWantBargain,toClose:this.close}),1===this.state.status&&m.a.createElement(A,{useArtifact:this.useArtifact}),2===this.state.status&&m.a.createElement(T,{price:c,sum:s,toCart:this.toCart}),0!==this.state.status&&m.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})),m.a.createElement(j.a,{list:t,icon:this.state.kanjiaIcon,limitPeople:n.limit_people,isShowMore:this.state.isShowMore,boxHide:this.boxHide}))}}]),t}(p.Component));function P(e){return m.a.createElement("div",{className:"intro-outer"},m.a.createElement("div",{className:"intro-inner"},m.a.createElement(b.a,{direction:"column",justify:"center",className:"intro-wrapper"},m.a.createElement("p",null,"\u9080\u8bf7",m.a.createElement("span",{className:"indicator"},e.limitPeople,"\u4f4d"),"\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),m.a.createElement("p",null,"\u4e00\u5200\u7edd\u6740\uff0c\u780d\u7206\u5e95\u4ef7"),m.a.createElement(b.a.Item,null,m.a.createElement("button",{onClick:e.iWantBargain},"\u6211\u8981\u780d\u4ef7")))))}function x(e){var t,a,n=Object(p.useState)(0),o=Object(f.a)(n,2),c=o[0],s=o[1],i=Object(p.useState)(0),r=Object(f.a)(i,2),l=r[0],d=r[1],u=Object(p.useState)(0),h=Object(f.a)(u,2),_=h[0],g=h[1],v=Object(p.useState)(0),E=Object(f.a)(v,2),y=E[0],N=E[1];0===e.info.is_artifact?t=m.a.createElement("div",null,"\u518d\u9080\u8bf7",m.a.createElement("span",{className:"indicator"},e.info.invit_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===e.info.is_artifact?(t=m.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=m.a.createElement("button",{onClick:e.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===e.info.is_artifact&&(t=m.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=m.a.createElement("button",{onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var w=1e3*e.info.end_time,j=Date.now();return setInterval(function(){w-=1e3,N(Object(S.differenceInSeconds)(new Date(w),j)%60),g(Object(S.differenceInMinutes)(new Date(w),j)%60),d(Object(S.differenceInHours)(new Date(w),j)%24),s(Object(S.differenceInDays)(new Date(w),j)%24)},1e3),m.a.createElement("div",{className:"status-outer"},0===e.info.bargain_status&&m.a.createElement("div",{className:"status-inner"},m.a.createElement(b.a,{direction:"column"},m.a.createElement("div",{className:"first-row"},m.a.createElement("div",null,"\u5df2\u780d",m.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),m.a.createElement("span",{className:"time hour"},String(l).padStart(2,0))," :\xa0",m.a.createElement("span",{className:"time min"},String(_).padStart(2,0))," :\xa0",m.a.createElement("span",{className:"time sec"},String(y).padStart(2,0)),m.a.createElement("span",{className:"over"},"\u540e\u780d\u4ef7\u7ed3\u675f")),m.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),m.a.createElement("div",{className:"sec-row"},m.a.createElement("div",null,m.a.createElement("img",{src:e.outList.avatar_file,alt:""}),m.a.createElement("span",{className:"name"},e.outList.user_name)),m.a.createElement("div",null,m.a.createElement("div",null,"\u780d\u6389",m.a.createElement("span",{className:"indicator"},e.outList.amount,"\u5143")),m.a.createElement("button",{onClick:e.continueBargain},"\u7ee7\u7eed\u780d\u4ef7"))),m.a.createElement("div",{className:"third-row"},t,a))),1===e.info.bargain_status&&m.a.createElement("div",{className:"status-inner status-over"},m.a.createElement(b.a,{direction:"column"},m.a.createElement("div",{className:"first-row"},m.a.createElement("div",null,"\u5df2\u780d",m.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),m.a.createElement("span",{className:"bargain-over"},"\u780d\u4ef7\u7ed3\u675f")),m.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),m.a.createElement("div",{className:"time-tobuy"},"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",m.a.createElement("span",{className:"time hour"},String(c).padStart(2,0)),m.a.createElement("span",{className:"unit"}," \u5929 "),m.a.createElement("span",{className:"time min"},String(l).padStart(2,0)),m.a.createElement("span",{className:"unit"}," \u65f6 "),m.a.createElement("span",{className:"time sec"},String(_).padStart(2,0)),m.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"))))}function A(e){return m.a.createElement("div",{className:"artifact-box"},m.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),m.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),m.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function T(e){var t=e.sum,n=e.price;return m.a.createElement("div",{className:"use-artifact-box"},m.a.createElement("img",{className:"top-img",src:a(1127),alt:""}),m.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",n,"\u5143\uff01"),m.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",m.a.createElement("span",{className:"indicator"},t,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),m.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),m.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}var B=Object(k.d)(Object(I.b)(function(e){return{user:e.user}},null),C.g)(O),D=(a(1128),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getMore=function(){a.setState({isShowMore:!0})},a.closeMore=function(){a.setState({isShowMore:!1})},a.toPay=function(e){var t=a.props,n=t.courseInfo,o=t.history;3===n.group_status?o.push("/order?id=".concat(Object(v.c)("id")),{group:1,pdd_order_id:e}):a.setState({isShowMore:!1,alreadyIn:!0})},a.invitedFriends=function(){a.setState({isShowMore:!1,alreadyIn:!1}),a.props.invitedFriends()},a.hideMbc=function(){a.setState({alreadyIn:!1})},a.formatTimeByMillisecond=function(e){var t,a,n,o=1e3*e;return o-=1e3,t="".concat(parseInt(o/36e5)).padStart(2,0),a="".concat(parseInt((o-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((o-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(t,":").concat(a,":").concat(n)},a.state={isShowMore:!1,alreadyIn:!1,pdd_price:0,number:0,data:{},countdown:e.countdown,now_groupon_list:[]},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.courseInfo&&e.courseInfo.courseInfo&&e.courseInfo.courseInfo.course_info&&e.courseInfo.courseInfo.course_info.pdd_group_info){var t=e.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;t&&t.length>0&&(t.map(function(e){return e.end_time-=1,e}),this.setState({now_groupon_list:t}))}this.setState({countdown:e.countdown})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.courseInfo,a=void 0===t?{}:t;if(a.pdd_group_info){var n=a.pdd_group_info.now_groupon_list;n&&n.length>0&&setInterval(function(){n.map(function(e){return e.end_time-=1,e}),e.setState({now_groupon_list:n})},1e3)}}},{key:"render",value:function(){var e=this,t=this.props.courseInfo,a=this.state,n=a.alreadyIn,o=a.countdown,c=(a.now_groupon_list,""),s="",i=-1,r=null;if(t&&(s=(c=t.pdd_group_info).groupon_member,i=t.group_status),4===i&&s.member){for(var l=[],d=s.number;0!=d;)l.push(d),d--;var u=m.a.createElement("div",{className:"group-user-list"},m.a.createElement(b.a,{justify:"center",className:"imgList"},s.member.map(function(e){return m.a.createElement("div",{className:"imgContainer",key:Math.random()},m.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?m.a.createElement("div",{className:"leaderFlag"},m.a.createElement("span",null,"\u56e2\u957f")):null)}),l.map(function(e){return m.a.createElement("div",{className:"imgContainer",key:Math.random()},m.a.createElement("div",{className:"imgname"},m.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})));r=m.a.createElement("div",{className:"groupSuccessMbc",onClick:this.hideMbc},m.a.createElement("div",{className:"content"},m.a.createElement("p",null,"\u4f60\u5df2\u53c2\u56e2"),u,m.a.createElement("div",{className:"group-btn",onClick:this.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",o," \u540e\u7ed3\u675f"),m.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")))}return m.a.createElement("div",{className:"group-box"},m.a.createElement("div",{className:"group-title"},m.a.createElement("span",null,c.now_groupon_total,"\u4eba\u6b63\u5728\u5f00\u56e2\uff0c\u53ef\u76f4\u63a5\u53c2\u4e0e"),m.a.createElement("span",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a",m.a.createElement("i",{className:"iconfont iconiconfront-70"}))),m.a.createElement("ul",{className:"group-list"},c.now_groupon_list&&c.now_groupon_list.length>0&&c.now_groupon_list.map(function(t,a){return m.a.createElement("li",{key:a,className:"group-item"},m.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),m.a.createElement("div",{className:"user-name text-overflow-one"},t.user_name),m.a.createElement("div",{className:"group-status"},m.a.createElement("p",null,"\u8fd8\u5dee",m.a.createElement("span",{className:"red"},t.number,"\u4eba"),"\u62fc\u6210"),m.a.createElement("p",null,"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),m.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),m.a.createElement("div",{className:"group-dec"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),m.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(c.person_num,"\u4eba\u6210\u56e2"))),n&&4===i&&m.a.createElement(m.a.Fragment,null,r),this.state.isShowMore&&m.a.createElement("div",{className:"moreMbc"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title-box"},"\u6b63\u5728\u62fc\u56e2"),m.a.createElement("ul",{className:"more-group-list"},c.now_groupon_list&&c.now_groupon_list.length>0&&c.now_groupon_list.map(function(t,a){return m.a.createElement("li",{key:a,className:"group-item"},m.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),m.a.createElement("div",{className:"user-name"},m.a.createElement("p",{className:"name text-overflow-one"},t.user_name),m.a.createElement("p",{className:"time"},"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),m.a.createElement("p",{className:"group-status"},"\u8fd8\u5dee",t.number,"\u4eba"),m.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),m.a.createElement("div",{className:"more-group-dec"},"\u4ec5\u663e\u793a10\u4e2a\u6b63\u5728\u5f00\u56e2\u7684\u4eba"),m.a.createElement("i",{onClick:this.closeMore,className:"iconfont iconiconfront-2 close"}))))}}]),t}(p.Component)),M=(a(158),a(91)),R=a.n(M),z=(a(154),a(35)),F=a.n(z),L=(a(1129),a(166)),W=a(27),q=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).htmlDecode=function(e){return e&&(e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e},a.getList=function(){v.d.get("".concat(API.home,"/m/course/syllabuses/").concat(Object(v.c)("id"))).then(function(e){200===e.data.code?a.setState({stageInfo:e.data.data}):c.a.info(e.data.msg,2)})},a.changeTab=function(e,t){a.setState({tab:t})},a.state={stageInfo:[],tab:0},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t="";return this.props.data&&(t=this.props.data),m.a.createElement("div",{className:"course-detail"},m.a.createElement(F.a,null),m.a.createElement(L.StickyContainer,null,m.a.createElement(R.a,{tabs:[{title:"\u4ecb\u7ecd"},{title:"\u5927\u7eb2"}],initialPage:0,swipeable:!1,onTabClick:function(t,a){return e.changeTab(t,a)}}),0===this.state.tab?m.a.createElement("div",{className:"introduce"},m.a.createElement("p",null,"\u8bb2\u5e08\uff1a",t.teachers),m.a.createElement("p",null,"\u8bfe\u65f6\uff1a",t.course_hour),m.a.createElement("p",null,"\u65f6\u95f4\uff1a",t.start_time),m.a.createElement("div",{className:"dec",dangerouslySetInnerHTML:{__html:this.htmlDecode(t.intro)}})):null,1===this.state.tab?m.a.createElement("div",{className:"outline"},this.state.stageInfo&&this.state.stageInfo.length>0&&this.state.stageInfo.map(function(a,n){return m.a.createElement("div",{className:"stagebox",key:n},m.a.createElement("h1",{className:"stage text-overflow-1"},a.stage_name),a.lesson.map(function(a,n){return m.a.createElement("ul",{key:n},m.a.createElement("h2",{className:"classhour"},m.a.createElement("span",{className:"title text-overflow-1"},a.name),!t.is_aist&&(6===a.class_status||5===a.class_status)&&m.a.createElement("span",{className:"btn-right-10 audition",onClick:function(n){return e.props.toAudition(t.v_course_id,a.video_id)}},"\u8bd5\u542c",m.a.createElement("i",{className:"iconfont iconcelluar"})),!t.is_aist&&0===a.class_status&&m.a.createElement("i",{className:"iconfont iconiconfront-74 icon-right-22"}),!t.is_aist&&1===a.class_status&&m.a.createElement("span",{className:"btn-right-10 singleset",onClick:function(t){return e.props.toSingleset(a)}},"\xa5 ",a.class_price),!t.is_aist&&4===a.class_status&&1===a.video_auth&&4===a.is_video&&m.a.createElement("span",{className:"live icon-right-22"},"\u6b63\u5728\u76f4\u64ad",m.a.createElement("i",{className:"iconfont icondanseshixintubiao-23"})),!t.is_aist&&2===a.class_status&&m.a.createElement(E.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"iconfont icondanseshixintubiao-23 icon-right-22"}),t.is_aist&&a.is_open&&1===t.is_baoming&&m.a.createElement(E.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"aist aist_open"}),t.is_aist&&(!a.is_open||0===t.is_baoming)&&m.a.createElement("i",{className:"aist iconfont iconiconfront-74"})),a.point&&a.point.length>0&&a.point.map(function(e,t){var a=m.a.createElement("span",null,1===e.type&&m.a.createElement("span",null,"\u77e5\u8bc6\u70b9",t+1,"\uff1a"),2===e.type&&m.a.createElement("span",{className:"red"},"\u5b9e\u6218\u9879\u76ee\uff1a"));return m.a.createElement("li",{className:"points text-overflow-1",key:t},a,e.name)}),m.a.createElement(m.a.Fragment,null,t.is_aist&&""!==a.practice.title&&(!a.is_open||0===t.is_baoming)&&m.a.createElement("span",{className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),m.a.createElement("i",{className:"exam exam_close"})),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&!a.practice.is_tested&&m.a.createElement(E.b,{to:{pathname:"/campTest",search:"?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),state:{from:"/detail".concat(window.location.search)}},className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title)),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&a.practice.is_tested&&m.a.createElement(E.b,{to:{pathname:"/campResolve",search:"?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),state:{from:"/detail".concat(window.location.search)}},className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),m.a.createElement("i",{className:"exam exam_open"}))))}))})):null),m.a.createElement(F.a,null))}}]),t}(p.Component),U=(a(1130),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getRankList=function(){v.d.get("".concat(API.home,"/dist/rankList/").concat(Object(v.c)("id"))).then(function(e){200===e.data.code?a.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):c.a.info(e.data.msg,2)})},a.getCode=function(){var e=a.props.user;if(e&&e.data&&e.data.uid){var t={course_id:Object(v.c)("id")};v.d.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?a.setState({code:e.data.data.code}):c.a.info(e.data.msg,2)})}},a.share=function(e){var t=a.props.user;if(t&&t.data&&t.data.uid){var n=Object(v.c)("id"),o=e.dist_first_level_ti,c=e.uid,s=a.state.code;a.props.history.push("/shareposter?courseId=".concat(n,"&dist_first=").concat(o,"&uid=").concat(c,"&dist_code=").concat(s))}else a.props.history.push("/passport/login")},a.openRanking=function(){a.setState({shareRank:!0})},a.colse=function(){a.setState({shareRank:!1})},a.state={list:[],rankingslice:[],code:"",shareRank:!1},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getRankList(),this.getCode()}},{key:"render",value:function(){var e=this.props.courseInfo,t=void 0===e?"":e;return m.a.createElement("div",{className:"share-ranking"},m.a.createElement(b.a,{className:"share-container",justify:"between"},m.a.createElement(b.a,{className:"share-list"},m.a.createElement("span",{className:"title"},"\u6392\u884c\u699c\uff1a"),m.a.createElement("div",{className:"ranking-box",onClick:this.openRanking},this.state.rankingslice&&this.state.rankingslice.length>0&&this.state.rankingslice.map(function(e,t){return m.a.createElement("span",{key:t,className:"ranking-mess"},m.a.createElement("img",{src:e.head_imgurl,alt:""}),m.a.createElement("i",null,e.amount,"\u5143"))}))),m.a.createElement(b.a,{className:"share-money",justify:"between",align:"center"},m.a.createElement("img",{onClick:this.openRanking,className:"ranking-ellipsis",src:"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png",alt:""}),m.a.createElement("button",{className:"share",onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143"))),this.state.shareRank&&m.a.createElement("div",{className:"shareMbc"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title-box"},m.a.createElement("span",{className:"lable"},"\u8d5a\u94b1\u6392\u884c\u699c"),m.a.createElement("span",{className:"tips"},"\u53ea\u5c55\u793a\u524d9\u540d\u7528\u6237")),m.a.createElement("ul",null,this.state.list&&this.state.list.length>0&&this.state.list.map(function(e,t){return m.a.createElement("li",{key:t},m.a.createElement("img",{src:e.head_imgurl,alt:""}),m.a.createElement("span",{className:"course-title"},e.user_name),m.a.createElement("span",{className:"course-price"},e.amount,"\u5143"))})),m.a.createElement("div",{className:"shareBtn"},m.a.createElement("button",{onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))))}}]),t}(p.Component)),J=Object(k.d)(Object(I.b)(function(e){return{user:e.user}},null),C.g)(U),H=(a(1131),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).colse=function(){a.props.boxHide(!1)},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return m.a.createElement("div",null,this.props.auditionBox&&m.a.createElement("div",{className:"popup-box"},m.a.createElement("div",{className:"content audition-box"},m.a.createElement("p",{className:"audition-header"},"\u5f53\u524d\u9875\u9762\u4e0d\u652f\u6301\u8bd5\u542c"),m.a.createElement("p",{className:"audition-dec"},"\u8bf7\u524d\u5f80APP\u8bd5\u542c"),m.a.createElement(W.a,{className:"btn btn-18B4ED",text:"\u7acb\u5373\u524d\u5f80"})),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(p.Component)),Q=a(670),K=a(671),G=a(73),V=(a(1132),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).signUpNow=function(){if(a.props.user.hasError)a.props.history.push("/passport");else{var e=JSON.stringify([Number(Object(v.c)("id"))]);v.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(e,"?type=1")).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{type:1}):c.a.info(e.data.msg,2)})}},a.simpleCourse=function(){a.props.user.hasError?a.props.history.push("/passport"):v.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(v.c)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(v.c)("id")),{simple:1}):c.a.info(e.data.msg,2)})},a.formatDate=function(e){var t=e.split("-");return"".concat(t[1],"\u6708").concat(t[2],"\u65e5\u5f00\u8bfe")},a.tobuy=function(){var e=a.props.user,t=a.state.barInfo;e&&e.data&&e.data.uid?2===t.bargain_status?a.simpleCourse():a.setState({isShowOverlay:!0,bargainStatus:1}):a.props.history.push("/passport/login")},a.keyToGroup=function(){a.props.user.hasError?a.props.history.push("/passport"):a.props.history.push("/order?id=".concat(Object(v.c)("id")),{group:1})},a.bargainToOrder=function(){a.props.user.hasError?a.props.history.push("/passport"):v.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(v.c)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(v.c)("id"),"]"),{bargain:1}):c.a.info(e.data.msg,2)})},a.cancel=function(){var e={courseId:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/bargain/cancel"),e).then(function(e){200===e.data.code?(a.setState({isShowOverlay:!1,bargainStatus:""}),v.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(v.c)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(v.c)("id"),"]"),{simple:1}):c.a.info(e.data.msg,2)})):c.a.info(e.data.msg,2)})},a.close=function(){a.setState({isShowOverlay:!1,bargainStatus:""})},a.toKanjia=function(){var e=a.props,t=e.user,n=e.history,o=t&&t.data&&t.data.uid,s=Object(v.c)("id");if(o){var i={course_id:s,type:1,parent_uid:0};v.d.post("".concat(API.home,"/m/bargain/toBargain"),i).then(function(e){var t=e.data,a=t.data,o=t.code,i=t.msg;200===o?n.push("/bargain-middle-page?id=".concat(s,"&bargaincode=").concat(a.bargain_code,"&is_originator=1")):c.a.info(i,2)})}else a.props.history.push("/passport/login")},a.toStudy=function(e,t){var n=a.props.history;0==t?c.a.info("\u5c1a\u672a\u5f00\u8bfe\uff0c\u5f00\u8bfe\u540e\u7acb\u5373\u4e0a\u4f20\u8bfe\u7a0b\uff5e",2):n.push("/play/video?id=".concat(e))},a.getBargainInfo=function(){var e=a.props.user,t=(e&&e.data&&e.data.uid,{courseId:Object(v.c)("id")});v.d.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(e){200===e.data.code?a.setState({barInfo:e.data.data}):c.a.info(e.data.msg,2)})},a.expandPay=function(e,t){var n=a.props,o=n.user;n.history;o&&o.data&&o.data.uid?1==t?a.props.history.push("/deposit-order?oid=".concat(Object(v.c)("id"),"&source=",1),{id:Object(v.c)("id"),isexpand:1,sourcenum:1}):Date.parse(new Date)/1e3>=e.start_timestamp?a.props.history.push("/final-deposit-order?source=1",{id:Object(v.c)("id"),sourcenum:1}):c.a.info("\u4ed8\u5c3e\u6b3e\u65f6\u95f4\u5c06\u5728"+e.final_start_time+"\u5f00\u542f",2):a.props.history.push("/passport/login")},a.state={isbuy:1,is_baoming:0,group_status:3,in_cart:!1,countdown:0,barInfo:{}},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.group=!1}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=void 0===t?{}:t,n=e.user,o=void 0===n?{}:n;a.is_bargain&&o.data&&o.data.uid&&this.getBargainInfo(),this.setState({courseInfo:a,countdown:e.countdown})}},{key:"render",value:function(){var e=this,t=this.props,a=t.user,n=void 0===a?{}:a,o=t.toCart,c=this.state,s=c.countdown,i=c.barInfo,r=c.courseInfo,l=void 0===r?{}:r,d=n.data&&n.data.uid;return m.a.createElement("div",null,0===l.is_baoming&&3!==l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),l.in_cart&&m.a.createElement(E.b,{to:"/shopcart",className:"btn btn-s bg-FCCD05"},"\u53bb\u8d2d\u7269\u8f66\u7ed3\u7b97"),!l.in_cart&&m.a.createElement("button",{className:"btn btn-s bg-FCCD05",onClick:function(e){return o(1)}},"\u52a0\u5165\u8d2d\u7269\u8f66"),m.a.createElement("span",{className:"btn btn-s bg-FD7700",onClick:function(t){return e.simpleCourse()}},"\u7acb\u5373\u62a5\u540d")),0===l.is_baoming&&0!=l.is_deposit&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("div",{className:"btn btn-m bg-FD7700",onClick:function(){return e.expandPay(l.deposit_info,l.is_deposit)}},1==l.is_deposit?"\u7acb\u5373\u4ed8\u5b9a\u91d1":"\u7acb\u5373\u4ed8\u5c3e\u6b3e")),1===l.is_baoming&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("a",{className:"btn btn-m bg-09f",onClick:function(){return e.toStudy(l.v_course_id,l.is_have_video)}},"\u5f00\u59cb\u5b66\u4e60")),0===l.is_baoming&&3===l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn btn-s bg-F4AAA7",onClick:this.simpleCourse},m.a.createElement("span",null,"\xa5 ".concat(l.price1)),m.a.createElement("span",null,"\u76f4\u63a5\u8d2d\u4e70")),m.a.createElement("button",{className:"btn btn-s bg-E02E24"},m.a.createElement("span",{onClick:this.keyToGroup},m.a.createElement("span",null,"\xa5 ".concat(l.pdd_group_info.price)),m.a.createElement("span",null,"\u4e00\u952e\u5f00\u56e2")))),0===l.is_baoming&&4===l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("div",{className:"btn btn-l bg-E02E24",onClick:this.props.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",s," \u540e\u7ed3\u675f")),0===l.is_baoming&&this.props.data&&this.props.data.is_bargain&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn btn-s bg-F4AAA7"},m.a.createElement("span",null,"\xa5",l.price1),m.a.createElement("span",{onClick:this.tobuy},"\u76f4\u63a5\u8d2d\u4e70")),(2===i.bargain_status||"139"===Object(v.c)("id")&&3===i.bargain_status||!d)&&m.a.createElement("button",{className:"btn btn-s bg-E02E24",onClick:this.toKanjia},"\u6211\u8981\u780d\u4ef7"),(0===i.bargain_status||1===i.bargain_status)&&d&&m.a.createElement("button",{className:"btn btn-s bg-E02E24"},m.a.createElement("span",null,"\xa5",i.amount),m.a.createElement("span",{onClick:this.bargainToOrder},"\u53bb\u652f\u4ed8"))),20===this.state.isbuy&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult-l",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2"))),l.is_aist&&(this.props.user.hasError||0===l.is_baoming)&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn sign-up-now",onClick:function(t){return e.signUpNow()}},m.a.createElement("span",null,"\u7acb\u5373\u62a5\u540d"))),l.is_aist&&!this.props.user.hasError&&1===l.is_baoming&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),""===l.aist_start_time?m.a.createElement("a",{className:"btn btn-m bg-09f",onClick:function(){return e.toStudy(l.v_course_id,l.is_have_video)}},"\u5f00\u59cb\u5b66\u4e60"):m.a.createElement("button",{className:"btn btn-m wait-open"},m.a.createElement("span",null,this.formatDate(l.aist_start_time)))),this.state.isShowOverlay&&m.a.createElement(_.a,null,1===this.state.bargainStatus&&m.a.createElement(Z,{close:this.close,cancel:this.cancel}),m.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(p.Component));function Z(e){return m.a.createElement("div",{className:"cancel-bargain"},m.a.createElement("p",{className:"top-img"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"})),m.a.createElement("p",{className:"tip-mess"},"\u60a8\u5df2\u53d1\u8d77\u780d\u4ef7\uff0c\u76f4\u63a5\u8d2d\u4e70\u5c06\u6e05\u9664\u5df2\u780d\u91d1\u989d\u3002\u76f4\u63a5\u8d2d\u4e70\u53ef\u4f7f\u7528\u4f18\u60e0\u5238~"),m.a.createElement("div",{className:"btns"},m.a.createElement("button",{onClick:e.close},"\u53d6\u6d88"),m.a.createElement("button",{onClick:e.cancel},"\u786e\u5b9a")))}var Y=Object(I.b)(function(e){return{user:e.user}},{getCourses:G.d})(V),X=(a(155),a(74)),$=a.n(X),ee=(a(1133),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).setupBarrage=function(){for(var e=new Date(Date.now()).getHours(),t=0,n=[{start:0,end:7,interval:6e4},{start:7,end:8,interval:3e4},{start:8,end:23,interval:15e3},{start:23,end:24,interval:3e4}];t<n.length;t++){var o=n[t];if(e>=o.start&&e<=o.end){a.timer=setTimeout(function(){a.getList()},o.interval);break}}},a.getList=function(){var e={course_id:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/course/barrages"),e).then(function(e){200===e.data.code&&a.setState({list:e.data.data,isShowBarrage:!0},function(){a.barageTimer=setTimeout(function(){a.setState({isShowBarrage:!a.state.isShowBarrage}),a.setupBarrage()},5e3)})})},a.state={list:[],isShowBarrage:!1},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidUpdate",value:function(e){var t=this,a=this.props.isShow;e.isShow!==a&&void 0!==a&&(a&&setTimeout(function(){t.getList()},5e3),this.componentDidUpdate=null)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer),this.barageTimer&&clearTimeout(this.barageTimer)}},{key:"render",value:function(){return m.a.createElement($.a,null,m.a.createElement("div",{className:"my-carousel",style:{opacity:this.state.isShowBarrage?1:0}},this.state.list&&m.a.createElement("div",{className:"v-item text-overflow-one"},m.a.createElement("img",{src:this.state.list.avatar,alt:""}),this.state.list.user_name," ",this.state.list.live_msg)))}}]),t}(p.Component)),te=(a(1134),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).state={},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this.props.courseInfo,t="";return e&&(t=e.deposit_info),m.a.createElement("div",{className:"buy-expand"},m.a.createElement("p",{className:"buy-time"},"\u4ed8\u5b9a\u91d1\u65f6\u95f4\uff1a",t.deposit_start_time,"-",t.deposit_end_time),m.a.createElement("p",{className:"buy-time"},"\u4ed8\u5c3e\u6b3e\u65f6\u95f4\uff1a",t.final_start_time,"-",t.final_end_time),m.a.createElement("div",{className:"expand-bgimg"},m.a.createElement("img",{className:"four-year",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/dj-1111.png",alt:""}),m.a.createElement("span",{className:"dingjin"},"\u5b9a\u91d1",t.deposit_amount,"\u5143\uff0c\u53ef\u62b5\u6263",t.deduction_amount,"\u5143"),m.a.createElement("p",{className:"small"},"\u5230\u624b\u4ef7\u6700\u4f4e\uff1a\xa5",m.a.createElement("span",null,t.low_price)),m.a.createElement("p",{className:"else-tip"},"\u53e6\u53ef\u83b7\u5f97\u6700\u9ad8",t.deposit_coupon,"\u5143\u4ee3\u91d1\u5238\u8fdb\u884c\u53e0\u52a0")))}}]),t}(p.Component)),ae=Object(k.d)(Object(I.b)(function(e){return{user:e.user}},null),C.g)(te),ne=a(163),oe=a(716),ce=a(42),se=a(19),ie=a(71),re=(a(1135),a(623)),le=a.n(re),de=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).state={src:"",codeSrc:""},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props&&this.props.user&&this.props.user.data.uid;v.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(t)).then(function(t){if(0==t.data.errno)return e.setState({src:t.data.data.url}),new Promise(function(t){le.a.toDataURL(e.state.src,{},function(t,a){e.setState({codeSrc:a})}),t()});c.a.info(t.data.msg,2)})}},{key:"render",value:function(){return m.a.createElement("div",{className:"followQRcode-box"},m.a.createElement("div",{className:"followQRcode"},m.a.createElement("div",{className:"content"},m.a.createElement("p",{className:"title"},"\u5173\u6ce8\u516c\u4f17\u53f7"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"1"),"\u6709\u4eba\u901a\u8fc7\u60a8\u5206\u4eab\u7684\u94fe\u63a5\u9886\u53d6\u7ea2\u5305\u540e\uff0c\u4f1a\u7b2c\u4e00\u65f6\u95f4\u901a\u8fc7\u5fae\u4fe1\u670d\u52a1\u53f7\u901a\u77e5\u60a8\u3002"),m.a.createElement("p",{className:"desc"},m.a.createElement("span",null,"2"),"\u8bf7\u7528\u4e2a\u4eba\u5fae\u4fe1\u626b\u63cf\uff0c\u5173\u6ce8\u670d\u52a1\u53f7\u540e\u53ef\u63d0\u73b0\u7ea2\u5305\u5230\u5fae\u4fe1\u96f6\u94b1\u3002"),m.a.createElement("img",{src:this.state.codeSrc,alt:""}),m.a.createElement("p",{className:"tip"},"\u957f\u6309\u4e8c\u7ef4\u7801\u4fdd\u5b58\u5230\u76f8\u518c")),m.a.createElement("div",{className:"close"},m.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:this.props.toClose}))))}}]),t}(p.Component),ue=Object(I.b)(function(e){return{user:e.user}})(de),pe=(a(1136),a(37)),me=a.n(pe),fe=function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(r.a)(this,Object(l.a)(t).call(this,e)),a.removeStatisticsCookie=function(){me.a.remove("share_code",{path:"/",domain:".julyedu.com"})},a.fetchShareInfo=function(){var e=Object(v.c)("share_code");v.d.get("".concat(API.home,"/sys/redPacket/shareUrl/").concat(Object(v.c)("id"))).then(function(t){var n=t.data,o=n.code,c=n.data;200===o&&a.setState({shareInfo:e?Object.assign({},c,{share_code:e}):c})})},a.judgePopupType=function(){var e=Object(v.c)("share_code"),t=a.state.shareInfo;e&&"null"!==e&&(a.setState({shareInfo:Object.assign({},t,{share_code:e})}),v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"check",share_code:e}).then(function(e){var t=e.data,n=t.code,o=t.data;200===n&&(o.is_overdue?a.setState({type:7}):o.is_receive?a.judgeReceiveStatus(o):a.setState({type:v.b.isWeixin?2:3})),4030!==n&&4040!==n||a.setState({type:v.b.isWeixin?2:3})}))},a.judgePopupTypeFromCountry=function(){var e=a.props.country,t=a.state.shareInfo;e.code&&(a.setState({country:e,shareInfo:Object.assign({},t,{share_code:e.code})}),v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"check",share_code:e.code}).then(function(e){console.log(e);var t=e.data,n=t.code,o=t.data;200===n&&(o.is_receive?a.judgeReceiveStatus(o,8):a.setState({type:3}),a.props.delCountryNum())}))},a.judgeReceiveStatus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n="",o="";1===e.receive_type&&(o="\u8d8a\u591a\u597d\u53cb\u9886\u53d6\uff0c\u4f60\u6240\u5f97\u8d8a\u591a\uff01"),2===e.receive_type&&(o="\u6bcf\u5929\u53ea\u80fd\u5e2e\u597d\u53cb\u9886\u53d6\u4e00\u6b21\u54e6~"),n=e.is_overdue?1===e.red_packet_type?"\u60a8\u5df2\u7ecf\u9886\u8fc7\u8be5\u7ea2\u5305 ".concat(e.amount,"\u5143\u73b0\u91d1\uff01"):"\u60a8\u5df2\u7ecf\u9886\u8fc7\u8be5\u7ea2\u5305 ".concat(e.amount,"\u5143\u4ee3\u91d1\u5238\u788e\u7247\uff01"):1===e.red_packet_type?"\u4eca\u65e5\u5df2\u9886\u53d6".concat(e.amount,"\u5143\u73b0\u91d1\uff01"):"\u4eca\u65e5\u5df2\u9886\u53d6".concat(e.amount,"\u5143\u4ee3\u91d1\u5238\u788e\u7247\uff01"),1===e.receive_status?a.setState({type:9,doneInfo:{status:1,txt:n,desc:o}}):2===e.receive_status?(a.setState({type:t,money:e.amount,endTime:e.end_time}),a.startCountDown()):3===e.receive_status&&a.setState({type:9,doneInfo:{status:2,txt:"\u624b\u673a\u53f7\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!",desc:o}})},a.startCountDown=function(){a.countdownTimer&&window.clearInterval(a.countdownTimer);var e=a.state.endTime,t=0,n=0;a.countdownTimer=window.setInterval(function(){e<=0&&(window.clearInterval(a.countdownTimer),a.setState({endTime:0})),e-=1,t="".concat(Math.floor(e/60)).padStart(2,0),n="".concat(e%60).padStart(2,0),a.setState({countdown:"".concat(t,"\u5206").concat(n,"\u79d2")})},1e3)},a.handleToShare=function(){var e=a.props,t=e.history,n=e.userInfo;v.b.isWeixin?(a.setState({type:2}),t.push("/detail?id=".concat(Object(v.c)("id"),"&wechat=1"))):n&&n.uid?v.d.get("".concat(API.home,"/sys/redPacket/shareUrl/").concat(Object(v.c)("id"))).then(function(e){var t=e.data,n=t.code,o=t.data;200===n&&a.setState({shareInfo:o,type:1})}):t.push("/passport/login")},a.openTip=function(){a.state.shareInfo.is_follow||a.setState({type:11})},a.handleToOpen=function(){var e=a.props.history,t=a.state.shareInfo.share_code,n=void 0===t?"":t;v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"receive",share_code:n}).then(function(t){var n=t.data,o=n.code,c=n.data;200===o?c.is_receive?a.judgeReceiveStatus(c):2===c.red_packet_type?a.setState({type:6,money:c.amount}):1===c.red_packet_type&&(1===c.receive_status?1===c.red_packet_type?a.setState({type:5,money:c.amount}):2===c.red_packet_type&&a.setState({type:6,money:c.amount}):2===c.receive_status?(a.setState({type:4,money:c.amount,endTime:c.end_time}),a.startCountDown()):3===c.receive_status&&a.setState({type:9,doneInfo:{status:2,txt:"\u624b\u673a\u53f7\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!",desc:1===c.receive_type?"\u8d8a\u591a\u597d\u53cb\u9886\u53d6\uff0c\u4f60\u6240\u5f97\u8d8a\u591a\uff01":2===c.receive_type?"\u6bcf\u5929\u53ea\u80fd\u5e2e\u597d\u53cb\u9886\u53d6\u4e00\u6b21\u54e6~":""}})):4030!==o&&4040!==o||e.push("/passport/login")})},a.handleToClose=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=a.state.shareInfo.share_code,o=void 0===n?"":n;v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"check",share_code:o}).then(function(e){var t=e.data,n=t.code,o=t.data;200===n&&(o.is_receive?a.judgeReceiveStatus(o):a.setState({type:3}))})}else{if(t)a.props.history.push("/detail?id=".concat(Object(v.c)("id")));a.setState({type:0})}},a.clickMask=function(){2===a.state.type&&a.setState({type:0})},a.getCaptchaInstance=function(e){a.setState({captchaInstance:e})},a.onVerify=function(e,t){e?console.log(e):a.setState({validate:t.validate})},a.handleToSend=function(e){var t=e.tel,n=(e.code,a.state),o=n.validate,s=n.seconds,i=n.isFirst,r=n.isTimer,l=n.captchaInstance,d=n.country.num,u=void 0===d?"86":d;if(o){if(!i)return c.a.info("\u8bf7\u91cd\u65b0\u8fdb\u884c\u6ed1\u5757\u9a8c\u8bc1",2,null,!1),l.refresh(),void a.setState({isFirst:!0});r||(t?/^\d+$/.test(t)?v.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(u),phone_num:t}).then(function(e){var t=e.data,n=t.errno,o=t.msg;200===n?(c.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){s<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--s})},1e3),a.setState({isFirst:!1})):c.a.info(o,2,null,!1)}):c.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7\u7801",2,null,!1):c.a.info("\u624b\u673a\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a",2,null,!1))}return!1},a.receviceAfterBind=function(){v.d.get("".concat(API.home,"/sys/red_packet/receive")).then(function(e){var t=e.data,n=t.code,o=t.data,s=t.msg;200===n?1===o.receive_status?1===o.red_packet_type?a.setState({type:5,money:o.amount}):2===o.red_packet_type&&a.setState({type:6,money:o.amount}):2===o.receive_status?(a.setState({type:4,money:o.amount,endTime:o.end_time}),a.startCountDown()):3===o.receive_status&&a.setState({type:9,doneInfo:{status:2,txt:"\u624b\u673a\u53f7\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!",desc:1===o.receive_type?"\u8d8a\u591a\u597d\u53cb\u9886\u53d6\uff0c\u4f60\u6240\u5f97\u8d8a\u591a\uff01":2===o.receive_type?"\u6bcf\u5929\u53ea\u80fd\u5e2e\u597d\u53cb\u9886\u53d6\u4e00\u6b21\u54e6~":""}}):c.a.info(s,2,null,!1)})},a.toContinueBind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=a.state,n=t.accountInfo,o=n.tel,s=n.code,i=t.country.num,r=void 0===i?"86":i;v.d.post("".concat(API["passport-api"],"/m/personal/bindPhone"),{area_code:"00".concat(r),phone_num:o,code:s,type:1,is_valid:e}).then(function(t){var n=t.data,o=n.errno,s=n.data,i=n.msg;200===o?e&&s.tip_info?a.setState({type:10,bindInfo:s.tip_info}):a.receviceAfterBind():c.a.info(i,2,null,!1)})},a.setRelativeCookie=function(){me.a.set("share_code",Object(v.c)("share_code")?Object(v.c)("share_code"):"share_code",{path:"/",domain:".julyedu.com"})},a.state={type:0,isCopy:!1,validate:"",captchaInstance:null,seconds:60,isFirst:!0,timer:null,isTimer:!1,shareInfo:{url:"",share_code:"",command:"\u3010\u4e03\u6708\u5728\u7ebf\u9001\u4f60\u4e00\u4e2a\u7ea2\u5305\u3011https://www.julyedu.com/"},doneInfo:{status:2,txt:"\u624b\u673a\u53f7\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!",desc:""},money:"",endTime:10,countdownTimer:null,countdown:"00\u520600\u79d2",accountInfo:{},bindInfo:{},country:{num:"86"}},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.judgePopupTypeFromCountry(),this.judgePopupType(),window.addEventListener("beforeunload",this.removeStatisticsCookie);var t=Object(v.c)("wechat"),a=this.props.userInfo;(a&&a.uid||this.setRelativeCookie(),"1"!==t||v.b.isWeixin)||(a&&a.uid?"split"===window.localStorage.getItem("redpacket-click")?v.d.get("".concat(API.home,"/sys/redPacket/shareUrl/").concat(Object(v.c)("id"))).then(function(t){var a=t.data,n=a.code,o=a.data;200===n&&v.d.post("".concat(API.home,"/sys/redPacket/split"),{action:"check",share_code:o.share_code}).then(function(t){var a=t.data,n=a.code,o=a.data;200===n&&(window.localStorage.removeItem("redpacket-click"),o.is_receive?e.judgeReceiveStatus(o,8):e.setState({type:3}))})}):(this.setState({type:1}),window.localStorage.removeItem("redpacket-click")):(this.setRelativeCookie(),this.setState({type:1})));this.fetchShareInfo()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.removeStatisticsCookie)}},{key:"render",value:function(){var e=this,t=this.props,a=t.history,o=t.userInfo,c=this.state,s=c.type,i=c.isCopy,r=c.validate,l=c.isTimer,d=c.seconds,u=c.shareInfo,p=u.command,f=void 0===p?"":p,h=u.share_code,b=void 0===h?"":h,_=c.money,g=c.doneInfo,y=c.countdown,w=c.endTime,S=c.bindInfo,j=c.country,k=N()("popup-mask",{"popup-mask--no":2!==s});return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"red-packet"},m.a.createElement("p",{className:"red-packet__title"},"\u5206\u4eab\u8bfe\u7a0b\u7ed9\u597d\u53cb\uff0c\u4f60\u548c\u597d\u53cb\u90fd\u53ef\u4ee5\u9886\u7ea2\u5305\u54e6\u301c"),m.a.createElement("button",{className:"red-packet__button",onClick:this.handleToShare},"\u5206\u4eab\u9886\u7ea2\u5305")),0!==s&&m.a.createElement("div",{className:k,onClick:this.clickMask},2==s&&m.a.createElement("div",{className:"pupup-wechat"},m.a.createElement("h4",{className:"popup-wechat__title"},"\u5f53\u524d\u73af\u5883\u4e0d\u652f\u6301\u9886\u7ea2\u5305\u6d3b\u52a8"),m.a.createElement("p",{className:"popup-wechat__desc"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u201c \xb7\xb7\xb7 \u201d\uff0c\u9009\u62e9\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00 \u7136\u540e\u53c2\u4e0e\u6d3b\u52a8\uff01"),m.a.createElement("i",{className:"popup-wechat__icon"})),1===s&&m.a.createElement("div",{className:"popup-password"},m.a.createElement("div",{className:"popup-password__content"},m.a.createElement("h4",{className:"popup-password__header"},"\u590d\u5236\u53e3\u4ee4\u53d1\u9001\u7ed9\u597d\u53cb"),m.a.createElement("div",{className:"popup-password__body"},m.a.createElement("p",{id:"password",className:"popup-passowrd__info"},f.length>16?"".concat(f.substr(0,16),"..."):f),i?m.a.createElement("p",{className:"popup-password__success"},"\u590d\u5236\u6210\u529f\uff0c\u5feb\u53d1\u9001\u7ed9\u597d\u53cb\u5427~"):o&&o.uid?m.a.createElement(oe.CopyToClipboard,{text:f,onCopy:function(){return e.setState({isCopy:!0})}},m.a.createElement("button",{className:"popup-password__button--copy"},"\u590d\u5236\u53e3\u4ee4")):m.a.createElement("button",{className:"popup-password__button--copy",onClick:function(){window.localStorage.setItem("redpacket-click","copy"),a.push("/passport/login")}},"\u590d\u5236\u53e3\u4ee4")),m.a.createElement("p",{className:"popup-password__footer"},"\u597d\u53cb\u9886\u53d6\u7ea2\u5305\u540e\uff0c\u4f60\u5c06\u83b7\u5f97\u540c\u6837\u5956\u52b1\u3002",m.a.createElement("br",null),"\u81ea\u5df1\u4e5f\u53ef\u4ee5\u9886\u53d6\u54e6~")),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:function(){"1"===Object(v.c)("wechat")?o&&o.uid?(e.handleToClose(!0),a.push("/detail?id=".concat(Object(v.c)("id")))):(e.setState({type:3}),window.localStorage.setItem("redpacket-click","split")):e.handleToClose(!0),e.setState({isCopy:!1})}})),3===s&&m.a.createElement(he,{type:3,packetInfo:{title:"\u4e03\u6708\u5728\u7ebf\u7ed9\u4f60\u53d1\u4e86\u4e2a\u7ea2\u5305\uff5e"},handleToClose:function(){return e.handleToClose(!1)},handleToOpen:this.handleToOpen}),4===s&&m.a.createElement(he,{type:4,packetInfo:{money:_,tip:["\u4e3a\u4e86\u60a8\u7684\u8d44\u91d1\u5b89\u5168\uff0c\u8bf7\u4e8e5\u5206\u949f\u4e4b\u5185\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8d85\u65f6\u7ea2\u5305\u5c06\u5931\u6548"],btn:{txt:"\u7acb\u5373\u7ed1\u5b9a\uff08".concat(y,"\uff09"),onClick:function(){e.setState({type:8})}}},handleToClose:function(){return e.handleToClose(!1)}}),5===s&&m.a.createElement(he,{type:5,packetInfo:{money:_,tip:["\u53ef\u524d\u5f80\u3010\u4e03\u6708\u5728\u7ebf\u3011APP","- \u8d26\u6237\u8d44\u91d1\u4e2d\u63d0\u73b0"],btn:{txt:"\u83b7\u53d6\u66f4\u591a\u5956\u52b1",onClick:function(){a.push("/ShareCourse")}}},handleToClose:function(){var t=!!Object(v.c)("share_code");e.handleToClose(!1,t),e.openTip()}}),6===s&&m.a.createElement(he,{type:6,packetInfo:{money:_,tip:["\u53ef\u524d\u5f80\u3010\u4e03\u6708\u5728\u7ebf\u3011APP","- \u6211\u7684\u4f18\u60e0\u5238\u4e2d\u5408\u6210\u4ee3\u91d1\u5238"],btn:{txt:"\u83b7\u53d6\u66f4\u591a\u5956\u52b1",onClick:function(){a.push("/ShareCourse")}}},handleToClose:function(){var t=!!Object(v.c)("share_code");e.handleToClose(!1,t),e.openTip()}}),7===s&&m.a.createElement(he,{type:7,packetInfo:{btn:{txt:"\u83b7\u53d6\u66f4\u591a\u5956\u52b1",onClick:function(){a.push("/ShareCourse")}}},handleToClose:function(){var t=!!Object(v.c)("share_code");e.handleToClose(!1,t)}}),8===s&&m.a.createElement("div",{className:"popup-form"},m.a.createElement(se.d,{initialValues:{tel:"",code:""},validate:function(e){var t=e.tel,a=e.code,n={};return/^\d+$/.test(t)||(n.tel="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),/[0-9]{6}/.test(a)||(n.code="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"),n},onSubmit:function(t,a){a.setStatus,a.setSubmitting;e.setState({accountInfo:Object(n.a)({},t)}),e.toContinueBind()},render:function(t){var n=t.values,o=n.tel,c=n.code,s=t.errors;return m.a.createElement(se.c,{className:"popup-form__content"},m.a.createElement("h4",{className:"popup-form__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),m.a.createElement("div",{className:"popup-form__item"},m.a.createElement(E.b,{className:"popup-form__button--num",to:"/country?id=".concat(Object(v.c)("id"),"&share_code=").concat(b)},"+",j.num,m.a.createElement("i",{className:"iconfont iconiconfront-69"})),m.a.createElement(se.b,{name:"tel",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt","data-bdrs":"0 6px 6px 0","data-type":"tel",type:"text",placeholder:"\u8bf7\u586b\u5199\u624b\u673a\u53f7"}))}})),m.a.createElement(ie.a,{mrBtm:15,getInstance:e.getCaptchaInstance,onVerify:e.onVerify}),0===w?m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"popup-form__item"},m.a.createElement("p",{className:"popup-form__tip"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),"\u7ed1\u5b9a\u8d85\u65f6\uff0c\u7ea2\u5305\u5df2\u5931\u6548!")),m.a.createElement("button",{className:"popup-packet__button--bundle","data-status":"do",type:"button",onClick:function(){a.push("/ShareCourse")}},"\u83b7\u53d6\u66f4\u591a\u5956\u52b1")):m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"popup-form__item"},m.a.createElement(se.b,{name:"code",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt popup-form__ipt--left",type:"text",placeholder:"\u8f93\u5165\u9a8c\u8bc1\u7801"}))}}),m.a.createElement("button",{className:"popup-form__button--code","data-status":r&&!l?"do":"",type:"button",onClick:function(){return e.handleToSend({tel:o,code:c})}},l?"\u91cd\u65b0\u53d1\u9001".concat(d,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),m.a.createElement("button",{className:"popup-packet__button--bundle","data-status":o&&c&&Object(ce.isEmpty)(s)?"do":"done",type:"submit"},"\u5b8c\u6210\u7ed1\u5b9a(".concat(y,")"))))}}),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:function(){return e.handleToClose(!1)}})),9===s&&m.a.createElement("div",{className:"popup-done"},m.a.createElement("div",{className:"popup-done__content"},m.a.createElement("h4",{className:N()("popup-done__title",{"popup-done__title--overtime":2===g.status})},2===g.status&&m.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),g.txt),m.a.createElement("p",{className:"popup-done__desc"},g.desc),m.a.createElement("button",{className:"popup-packet__button--bundle","data-status":"do",type:"submit",onClick:function(){a.push("/ShareCourse")}},"\u83b7\u53d6\u66f4\u591a\u5956\u52b1")),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:function(){var t=!!Object(v.c)("share_code");e.handleToClose(!1,t)}})),10===s&&m.a.createElement("div",{className:"popup-bind"},m.a.createElement("div",{className:"popup-bind__content"},m.a.createElement("h4",{className:"popup-bind__title"},"\u7ed1\u5b9a\u786e\u8ba4"),m.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),m.a.createElement("ul",{className:"popup-bind__list"},S.email&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"iconfont iconduanxin"}),m.a.createElement("p",{className:"popup-bind__account--name"},S.email)),S.wechat_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-wachat"}),m.a.createElement("p",{className:"popup-bind__account--name"},S.wechat_nickname)),S.qq_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-qq"}),m.a.createElement("p",{className:"popup-bind__account--name"},S.qq_nickname)),S.sina_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"icon-sina"}),m.a.createElement("p",{className:"popup-bind__account--name"},S.sina_nickname))),m.a.createElement("div",{className:"popup-bind__button"},m.a.createElement("button",{className:"popup-bind__button--cancle",onClick:function(){return e.handleToClose(!1)}},"\u53d6\u6d88"),m.a.createElement("button",{className:"popup-bind__button--confirm",onClick:function(){return e.toContinueBind(0)}},"\u7ee7\u7eed\u7ed1\u5b9a"))),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:function(){return e.handleToClose(!1)}})),11===s&&m.a.createElement(ue,{toClose:function(){return e.handleToClose(!1)}})))}}]),t}(p.PureComponent),he=function(e){var t=e.type,a=e.packetInfo,n=e.handleToClose,o=e.handleToOpen,c=N()("popup-packet__content",{"popup-packet__content--open":4===t,"popup-packet__content--money":5===t,"popup-packet__content--fragment":6===t,"popup-packet__content--late":7===t}),s=a.money,i=a.tip,r=void 0===i?[]:i,l=a.btn;return m.a.createElement("div",{className:N()("popup-packet")},m.a.createElement("div",{className:c},3===t&&m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"popup-packet__title"},"\u4e03\u6708\u5728\u7ebf\u7ed9\u4f60\u53d1\u4e86\u4e2a\u7ea2\u5305\uff5e"),m.a.createElement("button",{className:"popup-packet__button--split",onClick:o})),(4===t||5===t||6===t)&&m.a.createElement(m.a.Fragment,null,m.a.createElement("h4",{className:"popup-packet__label"},"\u606d\u559c\u60a8\u83b7\u5f97"),m.a.createElement("p",{className:"popup-packet__value"},s,m.a.createElement("span",{className:"popup-packet__value--unit"},"\u5143")),m.a.createElement("p",{className:"popup-packet__tip"},r.map(function(e,t){return t!==r.lenght-1?m.a.createElement(m.a.Fragment,null,e,m.a.createElement("br",null)):e})),m.a.createElement("button",{className:"popup-packet__button--bundle",onClick:l.onClick},l.txt)),7===t&&m.a.createElement(m.a.Fragment,null,m.a.createElement("h4",{className:"popup-packet__label"},"\u60a8\u6765\u665a\u4e86\uff01"),m.a.createElement("p",{className:"popup-packet__value"},"\u7ea2\u5305\u4ec5\u80fd\u5f53\u65e5\u9886\u53d6\uff0c\u4e0b\u6b21",m.a.createElement("br",null),"\u65e9\u70b9\u6765\u54e6~"),m.a.createElement("button",{className:"popup-packet__button--bundle",onClick:l.onClick},l.txt))),m.a.createElement("i",{className:"popup-password__button--close iconfont iconiconfront-2",onClick:n}))},be=fe,_e=a(197),ge=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getBorwerCourse=function(){v.d.get("".concat(API.home,"/sys/user/blessing"),{type:4,course_id:Object(v.c)("id")}).then(function(e){var t=e.data,n=t.code,o=t.data.today_browsed_courses;if(200===n){var c=Object(v.c)("id");o.includes(Number(c))?a.setState({countDownTime:"\u4efb\u52a1\u5b8c\u6210"}):a.startActivity()}})},a.startActivity=function(){var e=Object(d.a)(a),t=setInterval(function(){var a=parseInt(e.state.countDownTime);--a>0?e.setState({countDownTime:a+"s"}):0===a&&(clearInterval(t),t=null,v.d.post("".concat(API.home,"/sys/add/blessing"),{type:4,course_id:Object(v.c)("id")}).then(function(t){200===t.data.code&&e.setState({countDownTime:"\u4efb\u52a1\u5b8c\u6210"})}))},1e3)},a.judgeIsRedPacket=function(){v.d.get("".concat(API.home,"/sys/redPacket/showShareActive/").concat(Object(v.c)("id"))).then(function(e){var t=e.data,n=t.code,o=t.data;200===n&&a.setState({isRedPacket:o.is_show})})},a.payCallback=function(){var e=Object(d.a)(a);Object(v.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){v.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(v.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,v.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(v.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,isPdd:t.data.data.data.is_pdd}):c.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(v.c)("code");if(t){if(!Object(v.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),v.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(v.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(){v.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(v.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,v.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(v.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,isPdd:t.data.data.data.is_pdd}):c.a.info(t.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 c.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),v.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,isPdd:e.data.data.data.is_pdd}):c.a.info(e.data.data.msg,2)})},a.payCallBack=function(e,t,n){var o=Object(d.a)(a);2===e?o.setState({singleType:e,nowPrice:t,laterPrice:n}):o.setState({singleType:e})},a.fetchCourseInfo=function(){var e=Object(v.c)("id");v.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code&&(""!==n.redirect_url&&(window.location.href=n.redirect_url),a.setState({course:n}),n.course_info)){var o=n.course_info;if(document.title="".concat(o.course_title," - \u4e03\u6708\u5728\u7ebf"),3===o.group_status||4===o.group_status){var c=1e3*o.pdd_group_info.groupon_member.end_time,s=0,i=0,r=0;setInterval(function(){c-=1e3,s="".concat(parseInt(c/864e5)).padStart(2,0),i="".concat(parseInt((c-36e5*s*24)/36e5)).padStart(2,0),r="".concat(parseInt((c-36e5*s*24-36e5*i)/6e4)).padStart(2,0),"".concat(parseInt((c-36e5*s*24-36e5*i-6e4*r)/1e3)).padStart(2,0),a.setState({countdown:"".concat(s,"\u5929").concat(i,"\u65f6").concat(r,"\u5206")})},1e3)}Object(v.i)({title:o.course_title,desc:o.index_description,link:encodeURI(location.origin+"/detail?id="+Object(v.c)("id")),imgUrl:o.image_name})}})},a.toAudition=function(e,t){var n=a.props.user;if(n&&n.data&&n.data.uid){if(""==t||0==t||void 0==t)return!1;v.d.post("".concat(API["base-api"],"/sys/get_class_audition?video_id=").concat(t)).then(function(n){200==n.data.errno?a.props.history.push("/play/video?id=".concat(e+"&video_id="+t)):c.a.info(n.data.msg,2)})}else a.props.history.push("/passport/login")},a.toSingleset=function(e){var t=a.props.user;t&&t.data&&t.data.uid?(a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))):a.props.history.push("/passport/login")},a.toCart=function(e){var t=a.props,n=t.history,o=t.addCourseToCart,s={course_id:Object(v.c)("id")};v.d.post("".concat(API.home,"/m/cart/add"),s).then(function(t){200===t.data.code?1===e?(c.a.info("\u5df2\u52a0\u5165\u8d2d\u7269\u8f66",2),o(),a.fetchCourseInfo()):(n.replace("/shopcart"),\u00df):15001===t.data.code?n.replace("/shopcart"):4030===t.data.code?n.replace("/passport"):c.a.info(t.data.msg,2)})},a.invitedFriends=function(){var e=a.props.history,t=a.state.course,n=void 0===t?{}:t;n.course_info&&n.course_info.self_oid&&e.push("/togroup?id=".concat(n.course_info.self_oid))},a.boxHide=function(e){a.setState({auditionBox:e,singleBox:e,singleType:1}),a.props.history.push("/detail?id=".concat(Object(v.c)("id")))},a.state={isbuy:0,isvip:0,auditionBox:!1,singleBox:!1,singleType:1,shareRank:!1,singMess:"",barInfo:"",share:!1,countdown:"00:00:00",outList:[],list:[],course:{},nowPrice:0,laterPrice:0,isPdd:0,isRedPacket:!0,countDownTime:"20s"},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseInfo();var e=this.props.location.state,t=void 0===e?{}:e;t.oid&&this.check(t.oid),(1===Object(v.c)("is_class")||Object(v.c)("weixinpay"))&&this.payCallback(),v.b.isWeixin&&this.isweixinPay(),this.judgeIsRedPacket(),Object(v.c)("share_code")&&this.setState({isRedPacket:!0}),Object(v.c)("ac")&&11===Number(Object(v.c)("ac"))&&this.getBorwerCourse()}},{key:"componentDidUpdate",value:function(e){e.user.hasError!==this.props.user.hasError&&this.fetchCourseInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.course.course_info,n=void 0===a?{}:a,o=(t.barInfo,t.singleBox),c=t.singleType,s=t.isRedPacket,i=t.countDownTime,r=0;3!==n.group_status&&4!==n.group_status||(r=n.pdd_group_info.groupon_member.number);var l=this.state,d=l.share,u=l.countdown,p=(l.list,l.outList,""),f=this.props.location.state,h=void 0===f?{}:f;h.to&&"classify"===h.to&&(p="/classify"),h.oid&&(p="/classify"),Object(v.c)("dist_code")&&(p="/");var b=n.pdd_group_info&&"0.01"!=n.pdd_group_info.price;return m.a.createElement("div",null,11===Number(Object(v.c)("ac"))?m.a.createElement("div",{className:"activity__blessing"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/count_donw.png"}),m.a.createElement("span",{className:"count__down__time"},"".concat(i))):null,m.a.createElement("div",{className:"detail-box"},m.a.createElement(W.e,{title:"\u8bfe\u7a0b\u8be6\u60c5",arrow:!0,cart:!0,toHref:p}),m.a.createElement(_e.a,null),m.a.createElement(W.a,{className:"toapp",path:"/detail/id=".concat(Object(v.c)("id"))}),m.a.createElement(ee,{isShow:n.is_show}),m.a.createElement("div",{className:"course-content"},m.a.createElement("div",{className:"cover"},m.a.createElement("img",{src:n.image_name,alt:""}),n.is_aist&&m.a.createElement("span",{className:"return_cash"})),m.a.createElement("div",{className:"info"},m.a.createElement("p",{className:"title"},n.course_title),m.a.createElement("p",{className:"contact text-overflow-2"},n.simpledescription),m.a.createElement("div",{className:"des"},0===n.is_baoming&&m.a.createElement("p",{className:"course-price"},m.a.createElement("span",{className:"new"},"\xa5",n.price1),m.a.createElement("span",{className:"old"},"\xa5",n.price0)),!!n.is_deposit&&0!=n.is_deposit&&m.a.createElement("div",{className:"openExpand"},"\u652f\u4ed8\u5b9a\u91d1\uffe5",n.deposit_info.deposit_amount,"\uff0c\u53ef\u62b5\u6263\uffe5",n.deposit_info.deduction_amount)))),1===n.is_baoming&&1==n.is_pay&&1==n.contact_type&&n.course_qq&&m.a.createElement("div",{className:"group"},"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid),1===n.is_baoming&&1==n.is_pay&&2==n.contact_type&&n.course_qq&&m.a.createElement("div",{className:"group"},"\u8bf7\u6dfb\u52a0\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",n.course_qq,"\uff0c\u6dfb\u52a0\u65f6\u5907\u6ce8\u5b66\u53f7\uff1a",n.uid),n.vip_range&&1==n.is_vip&&0==n.is_pay&&1==n.contact_type&&n.course_qq&&m.a.createElement("div",{className:"vip"},m.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),m.a.createElement("p",null,"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid)),n.vip_range&&1==n.is_vip&&0==n.is_pay&&2==n.contact_type&&n.course_qq&&m.a.createElement("div",{className:"vip"},m.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),m.a.createElement("p",null,"\u8bf7\u6dfb\u52a0\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",n.course_qq,"\uff0c\u6dfb\u52a0\u65f6\u5907\u6ce8\u5b66\u53f7\uff1a",n.uid)),!!n.is_deposit&&0!=n.is_deposit&&m.a.createElement(ae,{courseInfo:n}),m.a.createElement("div",{className:"promise"},m.a.createElement("label",null,"\u670d\u52a1\u627f\u8bfa"),m.a.createElement("p",null,n.service&&n.service.length>0&&n.service.map(function(e,t){return m.a.createElement("span",{key:t}," ",e," ")}))),m.a.createElement(H,{auditionBox:this.state.auditionBox,boxHide:this.boxHide}),o&&m.a.createElement(Q.a,{singleType:this.state.singleType,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,title:n.course_title,check:this.check,courseId:n.course_id}),1!==c&&m.a.createElement(K.a,{boxHide:this.boxHide,data:this.state.singMess,singleType:c,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,isPdd:this.state.isPdd,laterPrice:this.state.laterPrice,courseId:n.course_id}),s&&m.a.createElement(be,{history:this.props.history,country:this.props.country,delCountryNum:this.props.delCountryNum,userInfo:this.props.user.data}),n.is_dist&&m.a.createElement(J,{courseInfo:n}),b&&!n.is_aist&&(3===n.group_status||4===n.group_status)&&m.a.createElement(D,{courseInfo:n,history:this.props.history,countdown:u,invitedFriends:this.invitedFriends}),0===n.is_baoming&&!n.is_aist&&n.is_bargain&&m.a.createElement(B,{country:this.props.country,delCountryNum:this.props.delCountryNum}),m.a.createElement(q,{data:n,toAudition:this.toAudition,toSingleset:this.toSingleset}),n&&m.a.createElement(Y,{countdown:u,data:n,user:this.props.user,invitedFriends:this.invitedFriends,toCart:this.toCart,history:this.props.history}),d?m.a.createElement("div",{className:"groupSuccessMbc",onClick:function(){e.setState({share:!1})}},m.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(r,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),m.a.createElement("div",{className:"tipArrow"},m.a.createElement("i",{className:"iconfont iconyindao"}))):null))}}]),t}(p.Component);t.default=Object(I.b)(function(e){return{user:Object(n.a)({},e.user),country:e.country}},function(e){return Object(k.b)({getCourses:G.d,addCourseToCart:G.c,delCountryNum:ne.c},e)})(ge)},622:function(e,t,a){},638:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},639:function(e,t,a){"use strict";var n=a(5),o=a(7),c=a(6),s=a(8),i=a(9),r=a(0),l=a.n(r),d=a(21),u=a.n(d),p=(a(684),document.body||document.documentElement),m=["touchmove","mousewheel"],f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(s.a)(t).call(this,e))).preventScroll=function(e){e.preventDefault()},a.overlayBox=null,a}return Object(i.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;m.forEach(function(t){e.overlayBox.addEventListener(t,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;m.forEach(function(t){e.overlayBox.removeEventListener(t,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(t){return e.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),p)}}]),t}(r.Component);t.a=f},670:function(e,t,a){"use strict";a(41);var n=a(12),o=a.n(n),c=a(5),s=a(7),i=a(6),r=a(8),l=a(89),d=a(9),u=a(0),p=a.n(u),m=(a(622),a(3)),f=a(49),h=a(25),b=a(22),_=a(156),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.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)):o.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():o.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)):o.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(l.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?(o.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}):o.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 o.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(l.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}):o.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){o.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)):o.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):o.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}):o.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(d.a)(t,e),Object(s.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(_.differenceInSeconds)(new Date(t),a)%60,o=Object(_.differenceInMinutes)(new Date(t),a)%60,c=Object(_.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:o,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(h.d)(Object(b.b)(function(e){return{user:e.user}},null),f.g)(g)},671:function(e,t,a){"use strict";a(41);var n=a(12),o=a.n(n),c=a(5),s=a(7),i=a(6),r=a(8),l=a(9),d=a(0),u=a.n(d),p=(a(622),a(3)),m=a(49),f=a(25),h=a(22),b=a(156),_=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.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)):o.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():o.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)):o.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}):o.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){o.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)):o.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):o.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}):o.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(l.a)(t,e),Object(s.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(b.differenceInSeconds)(new Date(t),a)%60,o=Object(b.differenceInMinutes)(new Date(t),a)%60,c=Object(b.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:o,sec:n})},1e3)}var n=this.props.singleType,o=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,o)},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,o)},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}(d.Component);t.a=Object(f.d)(Object(h.b)(function(e){return{user:e.user}},null),m.g)(_)},682:function(e,t,a){"use strict";var n=a(5),o=a(7),c=a(6),s=a(8),i=a(9),r=a(0),l=a.n(r),d=(a(683),function(e){function t(e){var o;return Object(n.a)(this,t),(o=Object(c.a)(this,Object(s.a)(t).call(this,e))).closeMore=function(){o.props.boxHide(!1)},o.state={kanjiaIcon:a(638)},o}return Object(i.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),t}(r.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(t,a){return l.a.createElement("li",{key:a,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},t.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},t.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=d},683:function(e,t,a){},684:function(e,t,a){},716:function(e,t,a){"use strict";var n=a(717).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},717: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},o=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=i(a(0)),s=i(a(718));function i(e){return e&&e.__esModule?e:{default:e}}function r(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 o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return a=n=r(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.onClick=function(e){var t=n.props,a=t.text,o=t.onCopy,i=t.children,r=t.options,l=c.default.Children.only(i),d=(0,s.default)(a,r);o&&o(a,d),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(e)},r(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),o(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"]),o=c.default.Children.only(t);return c.default.cloneElement(o,n({},a,{onClick:this.onClick}))}}]),t}()).defaultProps={onCopy:void 0,options:void 0}},718:function(e,t,a){"use strict";var n=a(719),o="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var a,c,s,i,r,l,d=!1;t||(t={}),a=t.debug||!1;try{if(s=n(),i=document.createRange(),r=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),i.selectNodeContents(l),r.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(u){a&&console.error("unable to copy using execCommand: ",u),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),d=!0}catch(u){a&&console.error("unable to copy using clipboardData: ",u),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:o),window.prompt(c,e)}}finally{r&&("function"==typeof r.removeRange?r.removeRange(i):r.removeAllRanges()),l&&document.body.removeChild(l),s()}return d}},719: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=detail.b1be5899.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,d=r[0],i=r[1],f=r[2],s=0,l=[];s<d.length;s++)n=d[s],o[n]&&l.push(o[n][0]),o[n]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(u&&u(r);l.length;)l.shift()();return c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==o[i]&&(a=!1)}a&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={30:0},o={30:0},c=[];function d(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{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:"d6114e36",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:"2fd45d08",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[e]+".chunk.css",o=d.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(u=c[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(f===a||f===o))return r()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var u;if((f=(u=s[i]).getAttribute("data-href"))===a||f===o)return r()}var 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,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],l.parentNode.removeChild(l),t(c)},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 c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.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:"3dd5ea64",1:"6cf4fcc0",2:"94d294dd",3:"98ecb255",4:"516fb98e",5:"3cd508ca",6:"dc0a622e",7:"0e417a35",8:"c3384ccf",9:"1cf1d3c6",10:"a5980622",11:"94f33fa9",12:"31074b32",13:"75fbdb93",14:"50a8d6cd",15:"cc147796",16:"e975acec",17:"67da1b3f",18:"324a37ed",19:"1aac9dd7",20:"4660c218",21:"2ca65536",22:"7b30820c",23:"12e65d34",24:"d88a3cad",25:"b1be5899",27:"1c01ec2c",28:"5510b46c",29:"d4a92690",31:"34ce5f12",32:"41ca1c66",33:"4baa4e31",34:"2e983343",35:"094ca7d6",37:"7951ce42",38:"70e9bd98",39:"fa6af3f3",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=a,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)d.d(t,a,function(r){return e[r]}.bind(null,a));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],f=i.push.bind(i);i.push=r,i=i.slice();for(var s=0;s<i.length;s++)r(i[s]);var u=f;t()}([]); !function(e){function r(r){for(var a,n,d=r[0],i=r[1],f=r[2],s=0,l=[];s<d.length;s++)n=d[s],o[n]&&l.push(o[n][0]),o[n]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(u&&u(r);l.length;)l.shift()();return c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==o[i]&&(a=!1)}a&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={30:0},o={30:0},c=[];function d(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{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:"d6114e36",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:"2fd45d08",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[e]+".chunk.css",o=d.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(u=c[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(f===a||f===o))return r()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var u;if((f=(u=s[i]).getAttribute("data-href"))===a||f===o)return r()}var 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,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],l.parentNode.removeChild(l),t(c)},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 c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.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:"3dd5ea64",1:"6cf4fcc0",2:"94d294dd",3:"95be3a03",4:"516fb98e",5:"3cd508ca",6:"dc0a622e",7:"0e417a35",8:"c3384ccf",9:"1cf1d3c6",10:"a5980622",11:"94f33fa9",12:"31074b32",13:"75fbdb93",14:"50a8d6cd",15:"cc147796",16:"e975acec",17:"67da1b3f",18:"324a37ed",19:"1aac9dd7",20:"351ca7e0",21:"2ca65536",22:"588b230f",23:"12e65d34",24:"d88a3cad",25:"454052b6",27:"1c01ec2c",28:"5510b46c",29:"d4a92690",31:"34ce5f12",32:"41ca1c66",33:"4baa4e31",34:"2e983343",35:"094ca7d6",37:"7951ce42",38:"70e9bd98",39:"fa6af3f3",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=a,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)d.d(t,a,function(r){return e[r]}.bind(null,a));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],f=i.push.bind(i);i.push=r,i=i.slice();for(var s=0;s<i.length;s++)r(i[s]);var u=f;t()}([]);
//# sourceMappingURL=runtime~main.29099c02.js.map //# sourceMappingURL=runtime~main.a7acd8d3.js.map
\ No newline at end of file \ 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":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,EAAA,GAGAC,EAAA,CACAC,GAAA,GAMAtB,EAAA,CACAsB,GAAA,GAGAb,EAAA,GAQA,S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ourcesContent":[" \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\":\"3dd5ea64\",\"1\":\"6cf4fcc0\",\"2\":\"94d294dd\",\"3\":\"98ecb255\",\"4\":\"516fb98e\",\"5\":\"3cd508ca\",\"6\":\"dc0a622e\",\"7\":\"0e417a35\",\"8\":\"c3384ccf\",\"9\":\"1cf1d3c6\",\"10\":\"a5980622\",\"11\":\"94f33fa9\",\"12\":\"31074b32\",\"13\":\"75fbdb93\",\"14\":\"50a8d6cd\",\"15\":\"cc147796\",\"16\":\"e975acec\",\"17\":\"67da1b3f\",\"18\":\"324a37ed\",\"19\":\"1aac9dd7\",\"20\":\"4660c218\",\"21\":\"2ca65536\",\"22\":\"7b30820c\",\"23\":\"12e65d34\",\"24\":\"d88a3cad\",\"25\":\"b1be5899\",\"27\":\"1c01ec2c\",\"28\":\"5510b46c\",\"29\":\"d4a92690\",\"31\":\"34ce5f12\",\"32\":\"41ca1c66\",\"33\":\"4baa4e31\",\"34\":\"2e983343\",\"35\":\"094ca7d6\",\"37\":\"7951ce42\",\"38\":\"70e9bd98\",\"39\":\"fa6af3f3\",\"40\":\"85e468c7\",\"41\":\"073f03fb\",\"42\":\"c7abb0fd\"}[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\":\"d6114e36\",\"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\":\"2fd45d08\",\"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":""} {"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":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB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AC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAmG,EAAAE,EAAA,IAAAA,GACAA,GAIArG,EAAAsG,EAAA,SAAAgB,EAAAC,GAAsD,OAAAvI,OAAAC,UAAAC,eAAAC,KAAAmI,EAAAC,IAGtDvH,EAAAuD,EAAA,IAGAvD,EAAAwH,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAA3I,KAAAqI,KAAAM,GACAA,EAAA3I,KAAAX,EACAsJ,IAAAG,QACA,QAAAlJ,EAAA,EAAgBA,EAAA+I,EAAA7I,OAAuBF,IAAAP,EAAAsJ,EAAA/I,IACvC,IAAAU,EAAAuI,EAIAnI","file":"mrstatic/js/runtime~main.a7acd8d3.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\":\"3dd5ea64\",\"1\":\"6cf4fcc0\",\"2\":\"94d294dd\",\"3\":\"95be3a03\",\"4\":\"516fb98e\",\"5\":\"3cd508ca\",\"6\":\"dc0a622e\",\"7\":\"0e417a35\",\"8\":\"c3384ccf\",\"9\":\"1cf1d3c6\",\"10\":\"a5980622\",\"11\":\"94f33fa9\",\"12\":\"31074b32\",\"13\":\"75fbdb93\",\"14\":\"50a8d6cd\",\"15\":\"cc147796\",\"16\":\"e975acec\",\"17\":\"67da1b3f\",\"18\":\"324a37ed\",\"19\":\"1aac9dd7\",\"20\":\"351ca7e0\",\"21\":\"2ca65536\",\"22\":\"588b230f\",\"23\":\"12e65d34\",\"24\":\"d88a3cad\",\"25\":\"454052b6\",\"27\":\"1c01ec2c\",\"28\":\"5510b46c\",\"29\":\"d4a92690\",\"31\":\"34ce5f12\",\"32\":\"41ca1c66\",\"33\":\"4baa4e31\",\"34\":\"2e983343\",\"35\":\"094ca7d6\",\"37\":\"7951ce42\",\"38\":\"70e9bd98\",\"39\":\"fa6af3f3\",\"40\":\"85e468c7\",\"41\":\"073f03fb\",\"42\":\"c7abb0fd\"}[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\":\"d6114e36\",\"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\":\"2fd45d08\",\"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 \ No newline at end of file
self.__precacheManifest = [ self.__precacheManifest = [
{ {
"revision": "79fbf34fe2bc5c30c436", "revision": "d4249f6c6e14ee7989f4",
"url": "/mrstatic/js/detail.b1be5899.chunk.js" "url": "/mrstatic/js/detail.454052b6.chunk.js"
}, },
{ {
"revision": "29d11d2f46d301d41b82", "revision": "29d11d2f46d301d41b82",
...@@ -20,8 +20,8 @@ self.__precacheManifest = [ ...@@ -20,8 +20,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png" "url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
}, },
{ {
"revision": "ce6ff4f258074b4c0163", "revision": "3669a1bd3c7b073d093e",
"url": "/mrstatic/js/Activity.98ecb255.chunk.js" "url": "/mrstatic/js/Activity.95be3a03.chunk.js"
}, },
{ {
"revision": "6902434f8f18a23319d57d0ac8aaea8c", "revision": "6902434f8f18a23319d57d0ac8aaea8c",
...@@ -84,8 +84,8 @@ self.__precacheManifest = [ ...@@ -84,8 +84,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/MyEdit.94f33fa9.chunk.js" "url": "/mrstatic/js/MyEdit.94f33fa9.chunk.js"
}, },
{ {
"revision": "258b4b114d3d9be3018cd113b2470a13", "revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.258b4b11.ttf" "url": "/mrstatic/media/iconfont.7aa984ce.eot"
}, },
{ {
"revision": "4c1cbc5f78aaebc347cf", "revision": "4c1cbc5f78aaebc347cf",
...@@ -96,8 +96,8 @@ self.__precacheManifest = [ ...@@ -96,8 +96,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Orderinfo.75fbdb93.chunk.js" "url": "/mrstatic/js/Orderinfo.75fbdb93.chunk.js"
}, },
{ {
"revision": "7aa984cefad739ea18edb76c541aa1fd", "revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.7aa984ce.eot" "url": "/mrstatic/media/iconfont.258b4b11.ttf"
}, },
{ {
"revision": "d8ff407b74cf1d5edf99", "revision": "d8ff407b74cf1d5edf99",
...@@ -148,8 +148,8 @@ self.__precacheManifest = [ ...@@ -148,8 +148,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/38.70e9bd98.chunk.js" "url": "/mrstatic/js/38.70e9bd98.chunk.js"
}, },
{ {
"revision": "07583cff4df2a4f5f713", "revision": "f79dd5e238cd00f75937",
"url": "/mrstatic/js/blessing-preheat.4660c218.chunk.js" "url": "/mrstatic/js/blessing-preheat.351ca7e0.chunk.js"
}, },
{ {
"revision": "71d97cf00cf6d7c0538e", "revision": "71d97cf00cf6d7c0538e",
...@@ -164,8 +164,8 @@ self.__precacheManifest = [ ...@@ -164,8 +164,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/36.b3176d91.chunk.js" "url": "/mrstatic/js/36.b3176d91.chunk.js"
}, },
{ {
"revision": "42ab5505a79a6e65ae36", "revision": "3352a9b002ca69d66ddb",
"url": "/mrstatic/js/coupons.7b30820c.chunk.js" "url": "/mrstatic/js/coupons.588b230f.chunk.js"
}, },
{ {
"revision": "253052c4f4dfc3b7f507", "revision": "253052c4f4dfc3b7f507",
...@@ -208,8 +208,8 @@ self.__precacheManifest = [ ...@@ -208,8 +208,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.1c01ec2c.chunk.js" "url": "/mrstatic/js/myorders.1c01ec2c.chunk.js"
}, },
{ {
"revision": "95ea50bd61b102b18054", "revision": "61aceabf7192c442a371",
"url": "/mrstatic/js/runtime~main.29099c02.js" "url": "/mrstatic/js/runtime~main.a7acd8d3.js"
}, },
{ {
"revision": "52917a3a43143beb8b70", "revision": "52917a3a43143beb8b70",
...@@ -252,7 +252,7 @@ self.__precacheManifest = [ ...@@ -252,7 +252,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/ShareCourse.8046fb41.chunk.css" "url": "/mrstatic/css/ShareCourse.8046fb41.chunk.css"
}, },
{ {
"revision": "79fbf34fe2bc5c30c436", "revision": "d4249f6c6e14ee7989f4",
"url": "/mrstatic/css/detail.54d9956e.chunk.css" "url": "/mrstatic/css/detail.54d9956e.chunk.css"
}, },
{ {
...@@ -288,7 +288,7 @@ self.__precacheManifest = [ ...@@ -288,7 +288,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/38.bff100af.chunk.css" "url": "/mrstatic/css/38.bff100af.chunk.css"
}, },
{ {
"revision": "07583cff4df2a4f5f713", "revision": "f79dd5e238cd00f75937",
"url": "/mrstatic/css/blessing-preheat.d6114e36.chunk.css" "url": "/mrstatic/css/blessing-preheat.d6114e36.chunk.css"
}, },
{ {
...@@ -320,7 +320,7 @@ self.__precacheManifest = [ ...@@ -320,7 +320,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/42.b02d1de6.chunk.css" "url": "/mrstatic/css/42.b02d1de6.chunk.css"
}, },
{ {
"revision": "42ab5505a79a6e65ae36", "revision": "3352a9b002ca69d66ddb",
"url": "/mrstatic/css/coupons.466858c7.chunk.css" "url": "/mrstatic/css/coupons.466858c7.chunk.css"
}, },
{ {
...@@ -364,7 +364,7 @@ self.__precacheManifest = [ ...@@ -364,7 +364,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css" "url": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css"
}, },
{ {
"revision": "ce6ff4f258074b4c0163", "revision": "3669a1bd3c7b073d093e",
"url": "/mrstatic/css/Activity.fa2c419d.chunk.css" "url": "/mrstatic/css/Activity.fa2c419d.chunk.css"
}, },
{ {
...@@ -372,7 +372,7 @@ self.__precacheManifest = [ ...@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css" "url": "/mrstatic/css/2.bf839917.chunk.css"
}, },
{ {
"revision": "3e59ae6f02aab92c333c1e3ca2ff5bbb", "revision": "3f7211c743d7a506cd01f6c79cfe7752",
"url": "/index.html" "url": "/index.html"
} }
]; ];
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.70bf3c0539f1e2c1ad56cc1c20e50a58.js" "/precache-manifest.1292f00762a03a7437feb7232d42dc04.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();
......
import React, {Component} from 'react' import React, {Component} from 'react'
import {SendMessageToApp} from '@/utils' import {SendMessageToApp,wxShare} from '@/utils'
import {setCurrentUser, startFetchUser} from "@/store/userAction" import {setCurrentUser, startFetchUser} from "@/store/userAction"
import {Button, Toast, WhiteSpace} from 'antd-mobile' import {Button, Toast, WhiteSpace} from 'antd-mobile'
import cookie from 'js-cookie' import cookie from 'js-cookie'
...@@ -11,8 +11,7 @@ import {connect} from "react-redux"; ...@@ -11,8 +11,7 @@ import {connect} from "react-redux";
class ToAppDemo extends Component { class ToAppDemo extends Component {
state = { state = {
userInfoList: [ userInfoList: [],
],
} }
componentDidMount() { componentDidMount() {
...@@ -69,6 +68,14 @@ class ToAppDemo extends Component { ...@@ -69,6 +68,14 @@ class ToAppDemo extends Component {
return payload return payload
} }
testShare = () => {
wxShare({
title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',
desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',
link: window.location.href,
imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',
})
}
// 跳转App登录 // 跳转App登录
...@@ -134,6 +141,7 @@ class ToAppDemo extends Component { ...@@ -134,6 +141,7 @@ class ToAppDemo extends Component {
render() { render() {
return ( return (
<div> <div>
<Button type={'primary'} onClick={() => this.testShare()}>测试分享</Button><WhiteSpace/>
<p>登录</p> <p>登录</p>
<Button type={'primary'} onClick={() => this.toLogin()}>App登录</Button><WhiteSpace/> <Button type={'primary'} onClick={() => this.toLogin()}>App登录</Button><WhiteSpace/>
<p>去课程详情页</p> <p>去课程详情页</p>
......
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