Commit 3a5cbbc5 by zhanghaozhe

ml小课统计

parents 3f2cd091 87673eb6
......@@ -10,11 +10,11 @@
"mrstatic/js/3.4a2be69d.chunk.js": "/mrstatic/js/3.4a2be69d.chunk.js",
"mrstatic/js/3.4a2be69d.chunk.js.map": "/mrstatic/js/3.4a2be69d.chunk.js.map",
"mrstatic/css/4.0dc24c6e.chunk.css": "/mrstatic/css/4.0dc24c6e.chunk.css",
"mrstatic/js/4.22a0562b.chunk.js": "/mrstatic/js/4.22a0562b.chunk.js",
"mrstatic/js/4.22a0562b.chunk.js.map": "/mrstatic/js/4.22a0562b.chunk.js.map",
"mrstatic/js/4.026d6db3.chunk.js": "/mrstatic/js/4.026d6db3.chunk.js",
"mrstatic/js/4.026d6db3.chunk.js.map": "/mrstatic/js/4.026d6db3.chunk.js.map",
"Activity.css": "/mrstatic/css/Activity.a74b39fb.chunk.css",
"Activity.js": "/mrstatic/js/Activity.dc19ea48.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.dc19ea48.chunk.js.map",
"Activity.js": "/mrstatic/js/Activity.ce04657e.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.ce04657e.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.31cef199.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.8814b7db.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.8814b7db.chunk.js.map",
......@@ -25,17 +25,17 @@
"Country.js": "/mrstatic/js/Country.282356fe.chunk.js",
"Country.js.map": "/mrstatic/js/Country.282356fe.chunk.js.map",
"CourseList.css": "/mrstatic/css/CourseList.47812ac6.chunk.css",
"CourseList.js": "/mrstatic/js/CourseList.27f68cf5.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.27f68cf5.chunk.js.map",
"CourseList.js": "/mrstatic/js/CourseList.5557a131.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.5557a131.chunk.js.map",
"DrawDocument.css": "/mrstatic/css/DrawDocument.2e7d81ca.chunk.css",
"DrawDocument.js": "/mrstatic/js/DrawDocument.2b492d24.chunk.js",
"DrawDocument.js.map": "/mrstatic/js/DrawDocument.2b492d24.chunk.js.map",
"DrawDocument.js": "/mrstatic/js/DrawDocument.bcec53f1.chunk.js",
"DrawDocument.js.map": "/mrstatic/js/DrawDocument.bcec53f1.chunk.js.map",
"Examination.css": "/mrstatic/css/Examination.f2cc3163.chunk.css",
"Examination.js": "/mrstatic/js/Examination.b8ab0d85.chunk.js",
"Examination.js.map": "/mrstatic/js/Examination.b8ab0d85.chunk.js.map",
"Invite.css": "/mrstatic/css/Invite.361dc1a3.chunk.css",
"Invite.js": "/mrstatic/js/Invite.8aa16057.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.8aa16057.chunk.js.map",
"Invite.js": "/mrstatic/js/Invite.2df843ed.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.2df843ed.chunk.js.map",
"MyEdit.js": "/mrstatic/js/MyEdit.93346dbf.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.93346dbf.chunk.js.map",
"Order.css": "/mrstatic/css/Order.35f475a1.chunk.css",
......@@ -44,11 +44,11 @@
"Orderinfo.js": "/mrstatic/js/Orderinfo.9523d283.chunk.js",
"Orderinfo.js.map": "/mrstatic/js/Orderinfo.9523d283.chunk.js.map",
"PayOrder.css": "/mrstatic/css/PayOrder.e5315535.chunk.css",
"PayOrder.js": "/mrstatic/js/PayOrder.608c293d.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.608c293d.chunk.js.map",
"PayOrder.js": "/mrstatic/js/PayOrder.3406a411.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.3406a411.chunk.js.map",
"Preferential.css": "/mrstatic/css/Preferential.18d20d0c.chunk.css",
"Preferential.js": "/mrstatic/js/Preferential.3abfd449.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.3abfd449.chunk.js.map",
"Preferential.js": "/mrstatic/js/Preferential.d93f1005.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.d93f1005.chunk.js.map",
"SearchResult.css": "/mrstatic/css/SearchResult.bb7c3056.chunk.css",
"SearchResult.js": "/mrstatic/js/SearchResult.6b2e53db.chunk.js",
"SearchResult.js.map": "/mrstatic/js/SearchResult.6b2e53db.chunk.js.map",
......@@ -59,14 +59,14 @@
"ShopCart.js": "/mrstatic/js/ShopCart.bbca129b.chunk.js",
"ShopCart.js.map": "/mrstatic/js/ShopCart.bbca129b.chunk.js.map",
"aist-share.css": "/mrstatic/css/aist-share.ca49c1cb.chunk.css",
"aist-share.js": "/mrstatic/js/aist-share.81d5ede7.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.81d5ede7.chunk.js.map",
"aist-share.js": "/mrstatic/js/aist-share.de8a0e2a.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.de8a0e2a.chunk.js.map",
"blessing-getPrize.css": "/mrstatic/css/blessing-getPrize.951fd27d.chunk.css",
"blessing-getPrize.js": "/mrstatic/js/blessing-getPrize.e7b78512.chunk.js",
"blessing-getPrize.js.map": "/mrstatic/js/blessing-getPrize.e7b78512.chunk.js.map",
"blessing-getPrize.js": "/mrstatic/js/blessing-getPrize.3520a0c4.chunk.js",
"blessing-getPrize.js.map": "/mrstatic/js/blessing-getPrize.3520a0c4.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.715eb28a.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.5b1b8785.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.5b1b8785.chunk.js.map",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.62d874e7.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.62d874e7.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.b92d0394.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.57beb548.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.57beb548.chunk.js.map",
......@@ -77,23 +77,23 @@
"deposit-order.js": "/mrstatic/js/deposit-order.ffeee7d1.chunk.js",
"deposit-order.js.map": "/mrstatic/js/deposit-order.ffeee7d1.chunk.js.map",
"deposit-pay-order.css": "/mrstatic/css/deposit-pay-order.219bad3d.chunk.css",
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.ba2d9956.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.ba2d9956.chunk.js.map",
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.021258b8.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.021258b8.chunk.js.map",
"detail.css": "/mrstatic/css/detail.581c1e79.chunk.css",
"detail.js": "/mrstatic/js/detail.845d0afd.chunk.js",
"detail.js.map": "/mrstatic/js/detail.845d0afd.chunk.js.map",
"detail.js": "/mrstatic/js/detail.858a4eac.chunk.js",
"detail.js.map": "/mrstatic/js/detail.858a4eac.chunk.js.map",
"main.css": "/mrstatic/css/main.d853aa5c.chunk.css",
"main.js": "/mrstatic/js/main.0b1ac758.chunk.js",
"main.js.map": "/mrstatic/js/main.0b1ac758.chunk.js.map",
"main.js": "/mrstatic/js/main.830293b0.chunk.js",
"main.js.map": "/mrstatic/js/main.830293b0.chunk.js.map",
"myorders.css": "/mrstatic/css/myorders.3c41b358.chunk.css",
"myorders.js": "/mrstatic/js/myorders.58381c0c.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.58381c0c.chunk.js.map",
"newyear-2019-landing.css": "/mrstatic/css/newyear-2019-landing.b0d930fa.chunk.css",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.b21e70e7.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.b21e70e7.chunk.js.map",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.5a799102.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.5a799102.chunk.js.map",
"newyear-yearIndex.css": "/mrstatic/css/newyear-yearIndex.c8863d51.chunk.css",
"newyear-yearIndex.js": "/mrstatic/js/newyear-yearIndex.b1d3c38c.chunk.js",
"newyear-yearIndex.js.map": "/mrstatic/js/newyear-yearIndex.b1d3c38c.chunk.js.map",
"newyear-yearIndex.js": "/mrstatic/js/newyear-yearIndex.25ec9dae.chunk.js",
"newyear-yearIndex.js.map": "/mrstatic/js/newyear-yearIndex.25ec9dae.chunk.js.map",
"prize-winner-list.css": "/mrstatic/css/prize-winner-list.55e46fc9.chunk.css",
"prize-winner-list.js": "/mrstatic/js/prize-winner-list.6a939100.chunk.js",
"prize-winner-list.js.map": "/mrstatic/js/prize-winner-list.6a939100.chunk.js.map",
......@@ -101,10 +101,10 @@
"purchased.js": "/mrstatic/js/purchased.4dd2d566.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.4dd2d566.chunk.js.map",
"python-class.css": "/mrstatic/css/python-class.087d6571.chunk.css",
"python-class.js": "/mrstatic/js/python-class.6cf6e65b.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.6cf6e65b.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.1e33a4b1.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.1e33a4b1.js.map",
"python-class.js": "/mrstatic/js/python-class.bfdfc4dc.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.bfdfc4dc.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.c4e71bdf.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.c4e71bdf.js.map",
"search.css": "/mrstatic/css/search.38c3e634.chunk.css",
"search.js": "/mrstatic/js/search.d392edb8.chunk.js",
"search.js.map": "/mrstatic/js/search.d392edb8.chunk.js.map",
......@@ -118,28 +118,28 @@
"system-notices.js": "/mrstatic/js/system-notices.a2bbffec.chunk.js",
"system-notices.js.map": "/mrstatic/js/system-notices.a2bbffec.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.49988cae.chunk.css",
"togroup.js": "/mrstatic/js/togroup.53f8f9e0.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.53f8f9e0.chunk.js.map",
"togroup.js": "/mrstatic/js/togroup.aed3e309.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.aed3e309.chunk.js.map",
"treasure-box-home.css": "/mrstatic/css/treasure-box-home.742fb589.chunk.css",
"treasure-box-home.js": "/mrstatic/js/treasure-box-home.583175e7.chunk.js",
"treasure-box-home.js.map": "/mrstatic/js/treasure-box-home.583175e7.chunk.js.map",
"treasure-box-home.js": "/mrstatic/js/treasure-box-home.83c24468.chunk.js",
"treasure-box-home.js.map": "/mrstatic/js/treasure-box-home.83c24468.chunk.js.map",
"treasure-box-mybox.css": "/mrstatic/css/treasure-box-mybox.012a9beb.chunk.css",
"treasure-box-mybox.js": "/mrstatic/js/treasure-box-mybox.3670c265.chunk.js",
"treasure-box-mybox.js.map": "/mrstatic/js/treasure-box-mybox.3670c265.chunk.js.map",
"video.css": "/mrstatic/css/video.d836ed34.chunk.css",
"video.js": "/mrstatic/js/video.340c63ed.chunk.js",
"video.js.map": "/mrstatic/js/video.340c63ed.chunk.js.map",
"video.js": "/mrstatic/js/video.c109b6c2.chunk.js",
"video.js.map": "/mrstatic/js/video.c109b6c2.chunk.js.map",
"mrstatic/css/45.0c7eea28.chunk.css": "/mrstatic/css/45.0c7eea28.chunk.css",
"mrstatic/js/45.dd43571c.chunk.js": "/mrstatic/js/45.dd43571c.chunk.js",
"mrstatic/js/45.dd43571c.chunk.js.map": "/mrstatic/js/45.dd43571c.chunk.js.map",
"mrstatic/js/45.9458e81a.chunk.js": "/mrstatic/js/45.9458e81a.chunk.js",
"mrstatic/js/45.9458e81a.chunk.js.map": "/mrstatic/js/45.9458e81a.chunk.js.map",
"mrstatic/js/46.44f38ed3.chunk.js": "/mrstatic/js/46.44f38ed3.chunk.js",
"mrstatic/js/46.44f38ed3.chunk.js.map": "/mrstatic/js/46.44f38ed3.chunk.js.map",
"mrstatic/css/47.50547718.chunk.css": "/mrstatic/css/47.50547718.chunk.css",
"mrstatic/js/47.4ef49615.chunk.js": "/mrstatic/js/47.4ef49615.chunk.js",
"mrstatic/js/47.4ef49615.chunk.js.map": "/mrstatic/js/47.4ef49615.chunk.js.map",
"mrstatic/css/48.bd48401c.chunk.css": "/mrstatic/css/48.bd48401c.chunk.css",
"mrstatic/js/48.83cf4630.chunk.js": "/mrstatic/js/48.83cf4630.chunk.js",
"mrstatic/js/48.83cf4630.chunk.js.map": "/mrstatic/js/48.83cf4630.chunk.js.map",
"mrstatic/js/48.3cae0429.chunk.js": "/mrstatic/js/48.3cae0429.chunk.js",
"mrstatic/js/48.3cae0429.chunk.js.map": "/mrstatic/js/48.3cae0429.chunk.js.map",
"mrstatic/css/49.2471f477.chunk.css": "/mrstatic/css/49.2471f477.chunk.css",
"mrstatic/js/49.0dfc3020.chunk.js": "/mrstatic/js/49.0dfc3020.chunk.js",
"mrstatic/js/49.0dfc3020.chunk.js.map": "/mrstatic/js/49.0dfc3020.chunk.js.map",
......@@ -162,8 +162,8 @@
"mrstatic/js/55.2165edcc.chunk.js": "/mrstatic/js/55.2165edcc.chunk.js",
"mrstatic/js/55.2165edcc.chunk.js.map": "/mrstatic/js/55.2165edcc.chunk.js.map",
"mrstatic/css/56.4c85e85c.chunk.css": "/mrstatic/css/56.4c85e85c.chunk.css",
"mrstatic/js/56.d999618a.chunk.js": "/mrstatic/js/56.d999618a.chunk.js",
"mrstatic/js/56.d999618a.chunk.js.map": "/mrstatic/js/56.d999618a.chunk.js.map",
"mrstatic/js/56.25719836.chunk.js": "/mrstatic/js/56.25719836.chunk.js",
"mrstatic/js/56.25719836.chunk.js.map": "/mrstatic/js/56.25719836.chunk.js.map",
"mrstatic/css/57.470b9744.chunk.css": "/mrstatic/css/57.470b9744.chunk.css",
"mrstatic/js/57.67a640cc.chunk.js": "/mrstatic/js/57.67a640cc.chunk.js",
"mrstatic/js/57.67a640cc.chunk.js.map": "/mrstatic/js/57.67a640cc.chunk.js.map",
......@@ -244,6 +244,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.f2f4294d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.6a6259230fe2ee2691d96029c45ef248.js": "/precache-manifest.6a6259230fe2ee2691d96029c45ef248.js",
"precache-manifest.2247f72941ae95de2eece57f665b1cb3.js": "/precache-manifest.2247f72941ae95de2eece57f665b1cb3.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
<!doctype html><html lang="zh"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/mrstatic/css/45.0c7eea28.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.d853aa5c.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],c=e[2],o=0,d=[];o<a.length;o++)t=a[o],b[t]&&d.push(b[t][0]),b[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(p&&p(e);d.length;)d.shift()();return f.push.apply(f,c||[]),s()}function s(){for(var e,r=0;r<f.length;r++){for(var t=f[r],a=!0,n=1;n<t.length;n++){var c=t[n];0!==b[c]&&(a=!1)}a&&(f.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},u={36:0},b={36:0},f=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.e=function(f){var e=[];u[f]?e.push(u[f]):0!==u[f]&&{1:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,14:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,30:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,47:1,48:1,49:1,50:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,60:1,61:1,62:1}[f]&&e.push(u[f]=new Promise(function(e,a){for(var r="mrstatic/css/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[f]||f)+"."+{0:"31d6cfe0",1:"bff22cf8",2:"31d6cfe0",3:"5ed15c7e",4:"0dc24c6e",5:"a74b39fb",6:"31cef199",7:"f2f19957",8:"16a64650",9:"47812ac6",10:"2e7d81ca",11:"f2cc3163",12:"361dc1a3",13:"31d6cfe0",14:"35f475a1",15:"31d6cfe0",16:"e5315535",17:"18d20d0c",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"ca49c1cb",22:"951fd27d",23:"715eb28a",24:"b92d0394",25:"c10ecc19",26:"6f3a01ca",27:"219bad3d",28:"581c1e79",30:"3c41b358",31:"b0d930fa",32:"c8863d51",33:"55e46fc9",34:"f583a040",35:"087d6571",37:"38c3e634",38:"f09a5959",39:"e406d228",40:"08df3d15",41:"49988cae",42:"742fb589",43:"012a9beb",44:"d836ed34",46:"31d6cfe0",47:"50547718",48:"bd48401c",49:"2471f477",50:"0bb224f2",51:"ecbb6f9a",52:"9f46e45e",53:"ee45d0b0",54:"025e3921",55:"ab7f5e40",56:"4c85e85c",57:"470b9744",58:"10a4034d",59:"697fa90d",60:"eb90513f",61:"5fba4ed0",62:"e51ea0fc"}[f]+".chunk.css",n=l.p+r,t=document.getElementsByTagName("link"),c=0;c<t.length;c++){var o=(i=t[c]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===r||o===n))return e()}var d=document.getElementsByTagName("style");for(c=0;c<d.length;c++){var i;if((o=(i=d[c]).getAttribute("data-href"))===r||o===n)return e()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=e,s.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+f+" failed.\n("+r+")");t.request=r,delete u[f],s.parentNode.removeChild(s),a(t)},s.href=n,document.getElementsByTagName("head")[0].appendChild(s)}).then(function(){u[f]=0}));var t=b[f];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=b[f]=[e,r]});e.push(t[2]=r);var a,c=document.createElement("script");c.charset="utf-8",c.timeout=120,l.nc&&c.setAttribute("nonce",l.nc),c.src=l.p+"mrstatic/js/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[f]||f)+"."+{0:"bc874a24",1:"cb268bcf",2:"0417c21c",3:"4a2be69d",4:"22a0562b",5:"dc19ea48",6:"8814b7db",7:"1316928e",8:"282356fe",9:"27f68cf5",10:"2b492d24",11:"b8ab0d85",12:"8aa16057",13:"93346dbf",14:"336cedef",15:"9523d283",16:"608c293d",17:"3abfd449",18:"6b2e53db",19:"5eeef10c",20:"bbca129b",21:"81d5ede7",22:"e7b78512",23:"5b1b8785",24:"57beb548",25:"f14154ef",26:"ffeee7d1",27:"ba2d9956",28:"845d0afd",30:"58381c0c",31:"b21e70e7",32:"b1d3c38c",33:"6a939100",34:"4dd2d566",35:"6cf6e65b",37:"d392edb8",38:"268a2ca3",39:"404b2f61",40:"a2bbffec",41:"53f8f9e0",42:"583175e7",43:"3670c265",44:"340c63ed",46:"44f38ed3",47:"4ef49615",48:"83cf4630",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"c69a440a",53:"c2ea86c0",54:"d8bf61b4",55:"2165edcc",56:"d999618a",57:"67a640cc",58:"86365e8c",59:"24412a5e",60:"612e025e",61:"528d1560",62:"7af7cc5d"}[f]+".chunk.js",a=function(e){c.onerror=c.onload=null,clearTimeout(o);var r=b[f];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 "+f+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}b[f]=void 0}};var o=setTimeout(function(){a({type:"timeout",target:c})},12e4);c.onerror=c.onload=a,document.head.appendChild(c)}return Promise.all(e)},l.m=i,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)l.d(t,a,function(e){return r[e]}.bind(null,a));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/",l.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=a;s()}([])</script><script src="/mrstatic/js/45.dd43571c.chunk.js"></script><script src="/mrstatic/js/main.0b1ac758.chunk.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="zh"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/mrstatic/css/45.0c7eea28.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.d853aa5c.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],c=e[2],o=0,d=[];o<a.length;o++)t=a[o],b[t]&&d.push(b[t][0]),b[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(p&&p(e);d.length;)d.shift()();return f.push.apply(f,c||[]),s()}function s(){for(var e,r=0;r<f.length;r++){for(var t=f[r],a=!0,n=1;n<t.length;n++){var c=t[n];0!==b[c]&&(a=!1)}a&&(f.splice(r--,1),e=l(l.s=t[0]))}return e}var t={},u={36:0},b={36:0},f=[];function l(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.e=function(f){var e=[];u[f]?e.push(u[f]):0!==u[f]&&{1:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,14:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,30:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,47:1,48:1,49:1,50:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,60:1,61:1,62:1}[f]&&e.push(u[f]=new Promise(function(e,a){for(var r="mrstatic/css/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[f]||f)+"."+{0:"31d6cfe0",1:"bff22cf8",2:"31d6cfe0",3:"5ed15c7e",4:"0dc24c6e",5:"a74b39fb",6:"31cef199",7:"f2f19957",8:"16a64650",9:"47812ac6",10:"2e7d81ca",11:"f2cc3163",12:"361dc1a3",13:"31d6cfe0",14:"35f475a1",15:"31d6cfe0",16:"e5315535",17:"18d20d0c",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"ca49c1cb",22:"951fd27d",23:"715eb28a",24:"b92d0394",25:"c10ecc19",26:"6f3a01ca",27:"219bad3d",28:"581c1e79",30:"3c41b358",31:"b0d930fa",32:"c8863d51",33:"55e46fc9",34:"f583a040",35:"087d6571",37:"38c3e634",38:"f09a5959",39:"e406d228",40:"08df3d15",41:"49988cae",42:"742fb589",43:"012a9beb",44:"d836ed34",46:"31d6cfe0",47:"50547718",48:"bd48401c",49:"2471f477",50:"0bb224f2",51:"ecbb6f9a",52:"9f46e45e",53:"ee45d0b0",54:"025e3921",55:"ab7f5e40",56:"4c85e85c",57:"470b9744",58:"10a4034d",59:"697fa90d",60:"eb90513f",61:"5fba4ed0",62:"e51ea0fc"}[f]+".chunk.css",n=l.p+r,t=document.getElementsByTagName("link"),c=0;c<t.length;c++){var o=(i=t[c]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===r||o===n))return e()}var d=document.getElementsByTagName("style");for(c=0;c<d.length;c++){var i;if((o=(i=d[c]).getAttribute("data-href"))===r||o===n)return e()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=e,s.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+f+" failed.\n("+r+")");t.request=r,delete u[f],s.parentNode.removeChild(s),a(t)},s.href=n,document.getElementsByTagName("head")[0].appendChild(s)}).then(function(){u[f]=0}));var t=b[f];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=b[f]=[e,r]});e.push(t[2]=r);var a,c=document.createElement("script");c.charset="utf-8",c.timeout=120,l.nc&&c.setAttribute("nonce",l.nc),c.src=l.p+"mrstatic/js/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[f]||f)+"."+{0:"bc874a24",1:"cb268bcf",2:"0417c21c",3:"4a2be69d",4:"026d6db3",5:"ce04657e",6:"8814b7db",7:"1316928e",8:"282356fe",9:"5557a131",10:"bcec53f1",11:"b8ab0d85",12:"2df843ed",13:"93346dbf",14:"336cedef",15:"9523d283",16:"3406a411",17:"d93f1005",18:"6b2e53db",19:"5eeef10c",20:"bbca129b",21:"de8a0e2a",22:"3520a0c4",23:"62d874e7",24:"57beb548",25:"f14154ef",26:"ffeee7d1",27:"021258b8",28:"858a4eac",30:"58381c0c",31:"5a799102",32:"25ec9dae",33:"6a939100",34:"4dd2d566",35:"bfdfc4dc",37:"d392edb8",38:"268a2ca3",39:"404b2f61",40:"a2bbffec",41:"aed3e309",42:"83c24468",43:"3670c265",44:"c109b6c2",46:"44f38ed3",47:"4ef49615",48:"3cae0429",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"c69a440a",53:"c2ea86c0",54:"d8bf61b4",55:"2165edcc",56:"25719836",57:"67a640cc",58:"86365e8c",59:"24412a5e",60:"612e025e",61:"528d1560",62:"7af7cc5d"}[f]+".chunk.js",a=function(e){c.onerror=c.onload=null,clearTimeout(o);var r=b[f];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 "+f+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}b[f]=void 0}};var o=setTimeout(function(){a({type:"timeout",target:c})},12e4);c.onerror=c.onload=a,document.head.appendChild(c)}return Promise.all(e)},l.m=i,l.c=t,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(r,e){if(1&e&&(r=l(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)l.d(t,a,function(e){return r[e]}.bind(null,a));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/",l.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=a;s()}([])</script><script src="/mrstatic/js/45.9458e81a.chunk.js"></script><script src="/mrstatic/js/main.830293b0.chunk.js"></script></body></html>
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1210:function(e,t,n){},1211:function(e,t,n){"use strict";n.r(t);n(629);var a=n(631),s=n.n(a),r=(n(37),n(11)),o=n.n(r),i=n(4),c=n(7),l=n(5),u=n(8),p=n(9),f=n(0),m=n.n(f),d=n(25),h=n(3),y=(n(1212),n(21)),b=n(807),v=n(618),_=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).fetchCourseDetail=function(){h.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(h.c)("id"),"&is_pay=1")).then(function(e){var t=e.data,a=t.data,s=t.code,r=t.msg;200===s?n.setState({courseInfo:a.course_info,syllabus:a.syllabus,learning:a.learning}):o.a.info(r,2)})},n.Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],n=e.toString(),a=Number(n)%10,s=Math.floor(Number(n)/10),r="";return r=n.length>1?1==s?a>=1?t[9]+t[a-1]:t[9]:a>1?t[s-1]+t[9]+t[a-1]:t[s-1]+t[9]:t[a-1],n.replace(n,r)},n.onChange=function(e){console.log(e)},n.toPythonHome=function(e){1==e&&n.setState({toApp:!0})},n.toLearn=function(){n.setState({toApp:!0})},n.closePop=function(){n.setState({toApp:!1})},n.state={toApp:!1,courseInfo:"",syllabus:"",learning:"",isShowChannel:window.sessionStorage.getItem("isShowSiteWindowByChannel")},n}return Object(p.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseDetail()}},{key:"render",value:function(){var e=this,t=this.props.user,n=t&&t.data&&t.data.uid,a=this.state,r=a.courseInfo,o=a.syllabus,i=a.learning,c=a.toApp;return m.a.createElement("div",{className:"python-study"},m.a.createElement(d.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0}),m.a.createElement("div",{className:"python-study__header"},m.a.createElement("div",{className:"python-study__course"},m.a.createElement("h2",{className:"python-study__course-name"},"Python\u4eba\u5de5\u667a\u80fd"),m.a.createElement("p",{className:"python-study__course-contact"},m.a.createElement("span",null,1==r.contact_type?"\u4e0a\u8bfe\u8bf7\u52a0QQ\u5b66\u4e60\u7fa4":"\u6dfb\u52a0\u52a9\u6559\u5fae\u4fe1\u5165\u7fa4","\uff1a",r.course_qq),m.a.createElement("span",null,"\u5e76\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n))),i.schedule>0&&m.a.createElement("div",{className:"python-study__progress"},m.a.createElement("h2",{className:"python-study__progress-title"},"\u5b66\u4e60\u8fdb\u5ea6"),m.a.createElement("div",{className:"python-study__progress-bar"},m.a.createElement("i",{style:{width:i.schedule+"%"}}),m.a.createElement("span",{className:"python-study__progress-tip",style:{left:i.schedule+"%"}},i.schedule+"%")))),!!r.is_dist&&m.a.createElement("div",{className:"dist-wrapper"},m.a.createElement(v.a,{courseInfo:r})),1==this.state.isShowChannel&&m.a.createElement(d.a,{className:"toapp"}),m.a.createElement(s.a,{defaultActiveKey:"0",className:"python-study__stage",onChange:this.onChange},o&&o.length>0&&o.map(function(t,n){var a="\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5\uff1a").concat(t.name);return m.a.createElement(s.a.Panel,{header:a,className:"pad",key:n},t.lessons&&t.lessons.length>0&&t.lessons.map(function(t,n){return m.a.createElement("div",{key:n},m.a.createElement("h2",{className:"python-study__pass"},"\u7b2c",t.shut,"\u5173 ",t.name,1==t.complete&&m.a.createElement("i",{className:"python-study__pass-tag"},"\u95ef\u5173\u5b8c\u6210")),m.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.info.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.info.is_unlock)},key:n},m.a.createElement("img",{className:"python-study__subject-icon",src:t.info.img_url,alt:""}),1==t.info.is_unlock&&1==t.info.complete&&m.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),0==t.info.is_unlock&&m.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),m.a.createElement("div",{className:"python-study__subject-content"},m.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.info.name))),t.questions&&t.questions.length>0&&t.questions.map(function(t,n){return m.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.is_unlock)},key:n},m.a.createElement("img",{className:"python-study__subject-icon",src:t.icon,alt:""}),1==t.is_unlock&&1==t.complete&&m.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),1==t.is_unlock&&0==t.complete&&m.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),m.a.createElement("div",{className:"python-study__subject-content"},m.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.name),1==t.is_must&&m.a.createElement("span",{className:"python-study__subject-tag"},"\u5fc5\u505a\u7ec3\u4e60")))}))}))})),0==i.schedule&&m.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u5f00\u59cb\u5b66\u4e60"),0!=i.schedule&&100!=i.schedule&&m.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u7ee7\u7eed\u5b66\u4e60"),100==i.schedule&&m.a.createElement("button",{className:"python-study__button python-study__over"},"\u5df2\u5b66\u5b8c\u5168\u90e8\u8bfe\u65f6"),c&&m.a.createElement(b.a,{closePop:this.closePop,type:2}))}}]),t}(f.Component);t.default=Object(y.b)(function(e){return{user:e.user}},null)(_)},1212:function(e,t,n){},618:function(e,t,n){"use strict";n(91);var a=n(27),s=n.n(a),r=(n(37),n(11)),o=n.n(r),i=n(4),c=n(7),l=n(5),u=n(8),p=n(9),f=n(0),m=n.n(f),d=(n(641),n(3)),h=n(21),y=n(45),b=n(24),v=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).getRankList=function(){d.d.get("".concat(API.home,"/dist/rankList/").concat(Object(d.c)("id"))).then(function(e){200===e.data.code?n.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):o.a.info(e.data.msg,2)})},n.getCode=function(){var e=n.props.user;if(e&&e.data&&e.data.uid){var t={course_id:Object(d.c)("id")};d.d.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?n.setState({code:e.data.data.code}):o.a.info(e.data.msg,2)})}},n.share=function(e){var t=n.props.user,a=t&&t.data&&t.data.uid;if(a){var s=Object(d.c)("id"),r=e.dist_first_level_ti,o=n.state.code;n.props.history.push("/shareposter?courseId=".concat(s,"&dist_first=").concat(r,"&uid=").concat(a,"&dist_code=").concat(o))}else n.props.history.push("/passport/login")},n.openRanking=function(){n.setState({shareRank:!0})},n.colse=function(){n.setState({shareRank:!1})},n.state={list:[],rankingslice:[],code:"",shareRank:!1},n}return Object(p.a)(t,e),Object(c.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(s.a,{className:"share-container",justify:"between"},m.a.createElement(s.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(s.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}(f.Component);t.a=Object(b.d)(Object(h.b)(function(e){return{user:e.user}},null),y.g)(v)},629:function(e,t,n){"use strict";n(49),n(630)},630:function(e,t,n){},631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(n(12)),s=u(n(15)),r=u(n(13)),o=u(n(16)),i=n(643),c=u(i),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));function u(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,a.default)(this,t),(0,r.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,o.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){return l.createElement(c.default,this.props)}}]),t}(l.Component);t.default=p,p.Panel=i.Panel,p.defaultProps={prefixCls:"am-accordion"},e.exports=t.default},641:function(e,t,n){},643:function(e,t,n){"use strict";n.r(t);var a=n(0),s=n.n(a),r=n(2),o=n.n(r),i=n(18),c=n.n(i),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,a["Component"]),l(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.forceRender||this.props.isActive||e.isActive}},{key:"render",value:function(){var e;if(this._isActived=this.props.forceRender||this._isActived||this.props.isActive,!this._isActived)return null;var t=this.props,n=t.prefixCls,a=t.isActive,r=t.children,o=t.destroyInactivePanel,i=t.forceRender,l=t.role,p=c()((u(e={},n+"-content",!0),u(e,n+"-content-active",a),u(e,n+"-content-inactive",!a),e)),f=i||a||!o?s.a.createElement("div",{className:n+"-content-box"},r):null;return s.a.createElement("div",{className:p,role:l},f)}}]),t}();p.propTypes={prefixCls:o.a.string,isActive:o.a.bool,children:o.a.any,destroyInactivePanel:o.a.bool,forceRender:o.a.bool,role:o.a.string};var f=p,m=n(85),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(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}var b=function(e){function t(){var e,n,a;!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),o=0;o<s;o++)r[o]=arguments[o];return n=a=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),a.handleItemClick=function(){a.props.onItemClick&&a.props.onItemClick()},a.handleKeyPress=function(e){"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||a.handleItemClick()},y(a,n)}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,a["Component"]),d(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,a=t.id,r=t.style,o=t.prefixCls,i=t.header,l=t.headerClass,u=t.children,p=t.isActive,d=t.showArrow,y=t.destroyInactivePanel,b=t.disabled,v=t.accordion,_=t.forceRender,g=c()(o+"-header",h({},l,l)),E=c()((h(e={},o+"-item",!0),h(e,o+"-item-active",p),h(e,o+"-item-disabled",b),e),n);return s.a.createElement("div",{className:E,style:r,id:a},s.a.createElement("div",{className:g,onClick:this.handleItemClick,role:v?"tab":"button",tabIndex:b?-1:0,"aria-expanded":""+p,onKeyPress:this.handleKeyPress},d&&s.a.createElement("i",{className:"arrow"}),i),s.a.createElement(m.a,{showProp:"isActive",exclusive:!0,component:"",animation:this.props.openAnimation},s.a.createElement(f,{prefixCls:o,isActive:p,destroyInactivePanel:y,forceRender:_,role:v?"tabpanel":null},u)))}}]),t}();b.propTypes={className:o.a.oneOfType([o.a.string,o.a.object]),id:o.a.string,children:o.a.any,openAnimation:o.a.object,prefixCls:o.a.string,header:o.a.oneOfType([o.a.string,o.a.number,o.a.node]),headerClass:o.a.string,showArrow:o.a.bool,isActive:o.a.bool,onItemClick:o.a.func,style:o.a.object,destroyInactivePanel:o.a.bool,disabled:o.a.bool,accordion:o.a.bool,forceRender:o.a.bool},b.defaultProps={showArrow:!0,isActive:!1,destroyInactivePanel:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var v=b,_=n(121);function g(e,t,n,a){var s=void 0;return Object(_.a)(e,n,{start:function(){t?(s=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){e.style.height=(t?s:0)+"px"},end:function(){e.style.height="",a()}})}var E=function(e){return{enter:function(t,n){return g(t,!0,e+"-anim",n)},leave:function(t,n){return g(t,!1,e+"-anim",n)}}},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t}var N=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),a=n.props,s=a.activeKey,r=a.defaultActiveKey;return"activeKey"in n.props&&(r=s),n.state={openAnimation:n.props.openAnimation||E(n.props.prefixCls),activeKey:C(r)},n}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,a["Component"]),k(t,[{key:"componentWillReceiveProps",value:function(e){"activeKey"in e&&this.setState({activeKey:C(e.activeKey)}),"openAnimation"in e&&this.setState({openAnimation:e.openAnimation})}},{key:"onClickItem",value:function(e){var t=this.state.activeKey;if(this.props.accordion)t=t[0]===e?[]:[e];else{var n=(t=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))).indexOf(e);n>-1?t.splice(n,1):t.push(e)}this.setActiveKey(t)}},{key:"getItems",value:function(){var e=this,t=this.state.activeKey,n=this.props,r=n.prefixCls,o=n.accordion,i=n.destroyInactivePanel,c=[];return a.Children.forEach(this.props.children,function(n,a){if(n){var l=n.key||String(a),u=n.props,p=u.header,f=u.headerClass,m=u.disabled,d=!1;d=o?t[0]===l:t.indexOf(l)>-1;var h={key:l,header:p,headerClass:f,isActive:d,prefixCls:r,destroyInactivePanel:i,openAnimation:e.state.openAnimation,accordion:o,children:n.props.children,onItemClick:m?null:function(){return e.onClickItem(l)}};c.push(s.a.cloneElement(n,h))}}),c}},{key:"setActiveKey",value:function(e){"activeKey"in this.props||this.setState({activeKey:e}),this.props.onChange(this.props.accordion?e[0]:e)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,a=t.className,r=t.style,o=t.accordion,i=c()((j(e={},n,!0),j(e,a,!!a),e));return s.a.createElement("div",{className:i,style:r,role:o?"tablist":null},this.getItems())}}]),t}();N.propTypes={children:o.a.any,prefixCls:o.a.string,activeKey:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.string)]),defaultActiveKey:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.string)]),openAnimation:o.a.object,onChange:o.a.func,accordion:o.a.bool,className:o.a.string,style:o.a.object,destroyInactivePanel:o.a.bool},N.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},N.Panel=v;var P=N;n.d(t,"Panel",function(){return O});t.default=P;var O=P.Panel},807:function(e,t,n){"use strict";n.d(t,"a",function(){return p});var a=n(4),s=n(7),r=n(5),o=n(8),i=n(9),c=n(0),l=n.n(c),u=(n(1210),n(25)),p=function(e){function t(){return Object(a.a)(this,t),Object(r.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"mask_container"},l.a.createElement("div",{className:"content"},l.a.createElement("p",{className:"title"},"\u6e29\u99a8\u63d0\u793a"),1===this.props.type?l.a.createElement(l.a.Fragment,null,l.a.createElement("p",{className:"tip"},"\u5f53\u524d\u73af\u5883\u6682\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u60a8\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebfPC\u7aef\u6216\u8005APP\u4f53\u9a8c\u8bfe\u7a0b\u3002"),l.a.createElement(u.a,{className:"btn btn-18B4ED",text:"\u524d\u5f80APP\u4f53\u9a8c\u8bfe\u7a0b"})):l.a.createElement(l.a.Fragment,null,l.a.createElement("p",{className:"tip"},"\u5f53\u524d\u73af\u5883\u6682\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u60a8\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebfPC\u7aef\u6216\u8005APP\u5b66\u4e60\u8bfe\u7a0b\u3002"),l.a.createElement(u.a,{className:"btn btn-18B4ED",text:"\u524d\u5f80APP\u5b66\u4e60\u8bfe\u7a0b"})),l.a.createElement("img",{onClick:this.props.closePop,className:"close_btn",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/bottom_close.png",alt:""})))}}]),t}(c.Component)}}]);
//# sourceMappingURL=4.026d6db3.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/python/pythonStudy/index.js","components/detail/shareRank/index.js","../node_modules/antd-mobile/lib/accordion/style/css.js","../node_modules/antd-mobile/lib/accordion/index.js","../node_modules/rc-collapse/es/PanelContent.js","../node_modules/rc-collapse/es/Panel.js","../node_modules/rc-collapse/es/openAnimationFactory.js","../node_modules/rc-collapse/es/Collapse.js","../node_modules/rc-collapse/es/index.js","components/python/poup/index.js"],"names":["PythonStudy","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__","call","fetchCourseDetail","http","get","concat","API","getParam","then","res","_res$data","data","code","msg","setState","courseInfo","course_info","syllabus","learning","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_3___default","a","info","Change","cn","str","toString","ci","Number","cs","Math","floor","cv","length","replace","onChange","key","console","log","toPythonHome","isUnlock","toApp","toLearn","closePop","state","isShowChannel","window","sessionStorage","getItem","_this2","user","uid","_this$state","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","contact_type","course_qq","schedule","style","width","left","is_dist","_components_detail_shareRank__WEBPACK_IMPORTED_MODULE_15__","antd_mobile_lib_accordion__WEBPACK_IMPORTED_MODULE_1___default","defaultActiveKey","map","syllabusItem","index","header","stage","name","Panel","lessons","lessonsItem","shut","complete","opacity","is_unlock","onClick","src","img_url","alt","data-status","questions","item","icon","is_must","_poup_index_js__WEBPACK_IMPORTED_MODULE_14__","type","Component","connect","ShareRank","getRankList","home","list","rankingslice","slice","getCode","course_id","post","share","courseId","dist_first","dist_first_level_ti","dist_code","history","push","openRanking","shareRank","colse","_this$props$courseInf","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","head_imgurl","amount","align","bind","user_name","compose","withRouter","__webpack_require__","defineProperty","exports","value","_classCallCheck3","_interopRequireDefault","_createClass3","_possibleConstructorReturn3","_inherits3","_rcCollapse","_rcCollapse2","React","obj","__esModule","newObj","prototype","hasOwnProperty","_interopRequireWildcard","default","Accordion","_React$Component","__proto__","getPrototypeOf","apply","arguments","defaultProps","prefixCls","module","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","_defineProperty","PanelContent_PanelContent","_Component","PanelContent","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","subClass","superClass","create","constructor","setPrototypeOf","_inherits","react","nextProps","forceRender","isActive","_classnames","_isActived","_props","children","destroyInactivePanel","role","contentCls","classnames_default","child","react_default","propTypes","prop_types_default","string","bool","any","es_PanelContent","Panel_createClass","Panel_defineProperty","Panel_possibleConstructorReturn","Panel_CollapsePanel","CollapsePanel","_ref","_temp","Panel_classCallCheck","_len","args","Array","_key","handleItemClick","onItemClick","handleKeyPress","e","keyCode","which","Panel_inherits","_classNames2","id","headerClass","showArrow","disabled","accordion","headerCls","itemCls","tabIndex","aria-expanded","onKeyPress","Animate","showProp","exclusive","component","animation","openAnimation","oneOfType","object","number","node","func","animate","show","transitionName","done","height","es","start","offsetHeight","active","end","openAnimationFactory","enter","leave","Collapse_createClass","Collapse_defineProperty","toArray","activeKey","currentActiveKey","isArray","Collapse_Collapse","Collapse","Collapse_classCallCheck","Collapse_possibleConstructorReturn","_this$props","Collapse_inherits","arr","arr2","from","_toConsumableArray","indexOf","splice","setActiveKey","newChildren","forEach","String","_child$props","onClickItem","cloneElement","_classNames","_props2","collapseClassName","getItems","arrayOf","es_Collapse","d","__webpack_exports__","es_Panel","Poup","react__WEBPACK_IMPORTED_MODULE_5___default","Fragment","_common__WEBPACK_IMPORTED_MODULE_7__","text"],"mappings":"qRAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,E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,UACtFuC,cAAiBxC,EAAA7K,EAASuN,OAC1BzM,SAAY+J,EAAA7K,EAAS0N,KACrBhB,UAAa7B,EAAA7K,EAAS+K,KACtB7I,UAAa2I,EAAA7K,EAAS8K,OACtBrI,MAASoI,EAAA7K,EAASuN,OAClBjD,qBAAwBO,EAAA7K,EAAS+K,MAEjC+D,EAAQ9G,aAAA,CACRC,UAAA,cACAnH,SAAA,aACA4L,WAAA,EACApC,sBAAA,GAEAwE,EAAQxL,MAASA,EACF,IAAAgN,EAAA,ECzPf/J,EAAAgK,EAAAC,EAAA,0BAAAC,IACeD,EAAA,cACJC,EAAQH,EAAQhN,iJCENoN,mLAEjB,OACEC,EAAA3Q,EAAAiC,cAAA,OAAKC,UAAW,kBACdyO,EAAA3Q,EAAAiC,cAAA,OAAKC,UAAW,WACdyO,EAAA3Q,EAAAiC,cAAA,KAAGC,UAAW,SAAd,4BAEsB,IAApBxD,KAAKJ,MAAMiG,KACToM,EAAA3Q,EAAAiC,cAAA0O,EAAA3Q,EAAA4Q,SAAA,KACED,EAAA3Q,EAAAiC,cAAA,KAAGC,UAAW,OAAd,6LACAyO,EAAA3Q,EAAAiC,cAAC4O,EAAA,EAAD,CAAS3O,UAAU,iBAAiB4O,KAAM,6CAG5CH,EAAA3Q,EAAAiC,cAAA0O,EAAA3Q,EAAA4Q,SAAA,KACED,EAAA3Q,EAAAiC,cAAA,KAAGC,UAAW,OAAd,6LACAyO,EAAA3Q,EAAAiC,cAAC4O,EAAA,EAAD,CAAS3O,UAAU,iBAAiB4O,KAAM,6CAIhDH,EAAA3Q,EAAAiC,cAAA,OAAK4B,QAASnF,KAAKJ,MAAMgD,SAAUY,UAAW,YAAa4B,IAAI,mFAAmFE,IAAI,cAnB9HQ","file":"mrstatic/js/4.026d6db3.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport {Accordion, Toast} from 'antd-mobile';\nimport {HeaderBar, CallApp} from '@/common';\nimport {http, getParam} from '@/utils';\nimport './index.scss';\nimport {Link} from \"react-router-dom\"\nimport {connect} from \"react-redux\";\nimport Mask from './../poup/index.js'\nimport ShareRank from \"@components/detail/shareRank\"\n\nclass PythonStudy extends Component {\n constructor(props) {\n super(props);\n this.state = {\n toApp: false,\n courseInfo: '',\n syllabus: '',\n learning: '',\n isShowChannel: window.sessionStorage.getItem('isShowSiteWindowByChannel')\n };\n }\n\n componentDidMount() {\n this.fetchCourseDetail();\n }\n\n fetchCourseDetail = () => {\n http.get(`${API['home']}/web/it_detail?course_id=${getParam('id')}&is_pay=1`).then(res => {\n const {data, code, msg} = res.data;\n if (code === 200) {\n this.setState({\n courseInfo: data.course_info,\n syllabus: data.syllabus,\n learning: data.learning\n })\n } else {\n Toast.info(msg, 2)\n }\n });\n }\n\n Change = (data) => {\n let cn = [\"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", '十'];\n let newStr = ''\n let str = data.toString()\n let ci = Number(str) % 10\n let cs = Math.floor(Number(str) / 10)\n let cv = ''\n if (str.length > 1) {\n if (cs == 1) {\n cv = ci >= 1 ? cn[9] + cn[ci - 1] : cn[9]\n } else {\n cv = ci > 1 ? cn[cs - 1] + cn[9] + cn[ci - 1] : cn[cs - 1] + cn[9]\n }\n } else {\n cv = cn[ci - 1]\n }\n newStr = str.replace(str, cv)\n return newStr;\n }\n\n onChange = (key) => {\n console.log(key);\n }\n\n toPythonHome = (isUnlock) => {\n if (isUnlock == 1) {\n this.setState({\n toApp: true\n })\n }\n }\n\n toLearn = () => {\n this.setState({\n toApp: true\n })\n }\n closePop = () => {\n this.setState({\n toApp: false,\n })\n }\n\n render() {\n const {user} = this.props;\n const uid = user && user.data && user.data.uid\n const {courseInfo, syllabus, learning, toApp} = this.state;\n return (\n <div className=\"python-study\">\n <HeaderBar title='Python基础语法' arrow={true}/>\n <div className=\"python-study__header\">\n <div className=\"python-study__course\">\n <h2 className=\"python-study__course-name\">Python人工智能</h2>\n <p className=\"python-study__course-contact\">\n <span>{courseInfo.contact_type == 1 ? '上课请加QQ学习群' : '添加助教微信入群'}:{courseInfo.course_qq}</span>\n <span>并备注您的学号:{uid}</span>\n </p>\n </div>\n {\n learning.schedule > 0 &&\n <div className=\"python-study__progress\">\n <h2 className=\"python-study__progress-title\">学习进度</h2>\n <div className=\"python-study__progress-bar\">\n <i style={{width: learning.schedule + '%'}}/>\n <span className=\"python-study__progress-tip\"\n style={{left: learning.schedule + '%'}}>{learning.schedule + '%'}</span>\n </div>\n </div>\n }\n\n </div>\n {\n !!courseInfo.is_dist && <div className={'dist-wrapper'}>\n <ShareRank courseInfo={courseInfo}/>\n </div>\n }\n\n {\n this.state.isShowChannel == 1 &&\n <CallApp className='toapp'/>\n }\n\n <Accordion\n defaultActiveKey=\"0\"\n className=\"python-study__stage\"\n onChange={this.onChange}\n >\n {\n syllabus && syllabus.length > 0 && syllabus.map((syllabusItem, index) => {\n let header = `第${this.Change(syllabusItem.stage)}阶段:${syllabusItem.name}`\n return (\n <Accordion.Panel header={header} className=\"pad\" key={index}>\n {\n syllabusItem.lessons && syllabusItem.lessons.length > 0 && syllabusItem.lessons.map((lessonsItem, index) => {\n return (\n <div key={index}>\n <h2 className=\"python-study__pass\">\n 第{lessonsItem.shut}关 {lessonsItem.name}\n {\n lessonsItem.complete == 1 &&\n <i className=\"python-study__pass-tag\">闯关完成</i>\n }\n </h2>\n\n <div className=\"python-study__subject\"\n style={{opacity: lessonsItem.info.is_unlock == 0 ? '.6' : '1'}}\n onClick={() => {\n this.toPythonHome(lessonsItem.info.is_unlock)\n }}\n key={index}>\n <img className=\"python-study__subject-icon\"\n src={lessonsItem.info.img_url} alt=\"\"/>\n {\n lessonsItem.info.is_unlock == 1 && lessonsItem.info.complete == 1 &&\n <i className=\"python-study__subject-status\"\n data-status=\"complete\"/>\n }\n {\n lessonsItem.info.is_unlock == 0 &&\n <i className=\"python-study__subject-status\"\n data-status=\"lock\"/>\n }\n <div className=\"python-study__subject-content\">\n <h2 className=\"python-study__subject-title text-overflow-1\">{lessonsItem.info.name}</h2>\n </div>\n </div>\n\n {\n lessonsItem.questions && lessonsItem.questions.length > 0 && lessonsItem.questions.map((item, index) => {\n return (\n <div className=\"python-study__subject\"\n style={{opacity: item.is_unlock == 0 ? '.6' : '1'}}\n onClick={() => {\n this.toPythonHome(item.is_unlock)\n }}\n key={index}>\n <img className=\"python-study__subject-icon\"\n src={item.icon} alt=\"\"/>\n {\n item.is_unlock == 1 && item.complete == 1 &&\n <i className=\"python-study__subject-status\"\n data-status=\"complete\"/>\n }\n {\n item.is_unlock == 1 && item.complete == 0 &&\n <i className=\"python-study__subject-status\"\n data-status=\"lock\"/>\n }\n <div className=\"python-study__subject-content\">\n <h2 className=\"python-study__subject-title text-overflow-1\">{item.name}</h2>\n {\n item.is_must == 1 &&\n <span\n className=\"python-study__subject-tag\">必做练习</span>\n }\n </div>\n </div>\n )\n })\n }\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n {\n learning.schedule == 0 &&\n <span onClick={this.toLearn} className=\"python-study__button\">开始学习</span>\n }\n {\n learning.schedule != 0 && learning.schedule != 100 &&\n <span onClick={this.toLearn} className=\"python-study__button\">继续学习</span>\n }\n {\n learning.schedule == 100 &&\n <button className=\"python-study__button python-study__over\">已学完全部课时</button>\n }\n\n {\n toApp && <Mask closePop={this.closePop} type={2} />\n }\n </div>\n )\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(PythonStudy);","import React, {Component} from 'react'\nimport './index.scss'\nimport {getParam, http} from \"@/utils\"\nimport {Toast, Flex} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {withRouter} from 'react-router-dom'\nimport {compose} from \"redux\"\n\nclass ShareRank extends Component {\n constructor(props) {\n super(props)\n this.state = {\n list: [], // 分销排行榜\n rankingslice: [], // 分销排行榜前两名\n code: '', // 分销code\n shareRank: false\n }\n }\n\n componentDidMount() {\n this.getRankList()\n this.getCode()\n }\n\n // 获取排行榜\n getRankList = () => {\n http.get(`${API.home}/dist/rankList/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n list: res.data.data,\n rankingslice: res.data.data.slice(0, 2)\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取分销码\n getCode = () => {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n if (!uid) return\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API.home}/dist/createCode`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n code: res.data.data.code\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 点击分销跳转到海报页\n share = (info) => {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n if (!uid) {\n this.props.history.push('/passport/login')\n } else {\n const courseId = getParam('id')\n const dist_first = info.dist_first_level_ti\n const dist_code = this.state.code\n this.props.history.push(`/shareposter?courseId=${courseId}&dist_first=${dist_first}&uid=${uid}&dist_code=${dist_code}`)\n }\n }\n\n\n // 打开分销排行榜弹窗\n openRanking = () => {\n this.setState({\n shareRank: true\n })\n }\n\n // 关闭弹窗\n colse = () => {\n this.setState({\n shareRank: false\n })\n }\n\n render() {\n const { courseInfo: info = '' } = this.props;\n // let info = ''\n // if (this.props.courseInfo && this.props.courseInfo.courseInfo && this.props.courseInfo.courseInfo.course_info) {\n // info = this.props.courseInfo.courseInfo.course_info\n // }\n return (\n <div className='share-ranking'>\n <Flex className='share-container' justify='between'>\n <Flex className='share-list'>\n <span className=\"title\">排行榜:</span>\n <div className='ranking-box' onClick={this.openRanking}>\n {\n this.state.rankingslice && this.state.rankingslice.length > 0 && this.state.rankingslice.map((item, index) => {\n return (\n <span key={index} className=\"ranking-mess\">\n <img src={item.head_imgurl} alt=\"\"/>\n <i>{item.amount}元</i>\n </span>\n )\n })\n }\n\n\n </div>\n </Flex>\n <Flex className='share-money' justify='between' align='center'>\n <img onClick={this.openRanking} className=\"ranking-ellipsis\"\n src=\"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png\" alt=\"\"/>\n <button className=\"share\" onClick={this.share.bind(this, info)}>分享赚{info.dist_first_level_ti}元\n </button>\n </Flex>\n </Flex>\n\n\n {\n this.state.shareRank &&\n <div className=\"shareMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n <span className=\"lable\">赚钱排行榜</span>\n <span className=\"tips\">只展示前9名用户</span>\n </div>\n <ul>\n {\n this.state.list && this.state.list.length > 0 && this.state.list.map((item, index) => {\n return (\n <li key={index}>\n <img src={item.head_imgurl} alt=\"\"/>\n <span className='course-title'>{item.user_name}</span>\n <span className='course-price'>{item.amount}元</span>\n </li>\n )\n })\n }\n </ul>\n <div className='shareBtn'>\n <button onClick={this.share.bind(this, info)}>分享赚{info.dist_first_level_ti}元</button>\n </div>\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n\n </div>\n }\n </div>\n );\n }\n}\n\nexport default compose(\n connect(\n state => ({\n // courseInfo: state,\n user: state.user\n }),\n null\n ),\n withRouter\n)(ShareRank)\n","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _rcCollapse = require('rc-collapse');\n\nvar _rcCollapse2 = _interopRequireDefault(_rcCollapse);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar Accordion = function (_React$Component) {\n (0, _inherits3['default'])(Accordion, _React$Component);\n\n function Accordion() {\n (0, _classCallCheck3['default'])(this, Accordion);\n return (0, _possibleConstructorReturn3['default'])(this, (Accordion.__proto__ || Object.getPrototypeOf(Accordion)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Accordion, [{\n key: 'render',\n value: function render() {\n return React.createElement(_rcCollapse2['default'], this.props);\n }\n }]);\n return Accordion;\n}(React.Component);\n\nexports['default'] = Accordion;\nAccordion.Panel = _rcCollapse.Panel;\nAccordion.defaultProps = {\n prefixCls: 'am-accordion'\n};\nmodule.exports = exports['default'];","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\n\nvar PanelContent = function (_Component) {\n _inherits(PanelContent, _Component);\n\n function PanelContent() {\n _classCallCheck(this, PanelContent);\n\n return _possibleConstructorReturn(this, (PanelContent.__proto__ || Object.getPrototypeOf(PanelContent)).apply(this, arguments));\n }\n\n _createClass(PanelContent, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return this.props.forceRender || this.props.isActive || nextProps.isActive;\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames;\n\n this._isActived = this.props.forceRender || this._isActived || this.props.isActive;\n\n if (!this._isActived) {\n return null;\n }\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n isActive = _props.isActive,\n children = _props.children,\n destroyInactivePanel = _props.destroyInactivePanel,\n forceRender = _props.forceRender,\n role = _props.role;\n var contentCls = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls + '-content', true), _defineProperty(_classnames, prefixCls + '-content-active', isActive), _defineProperty(_classnames, prefixCls + '-content-inactive', !isActive), _classnames));\n var child = !forceRender && !isActive && destroyInactivePanel ? null : React.createElement('div', {\n className: prefixCls + '-content-box'\n }, children);\n return React.createElement('div', {\n className: contentCls,\n role: role\n }, child);\n }\n }]);\n\n return PanelContent;\n}(Component);\n\nPanelContent.propTypes = {\n prefixCls: PropTypes.string,\n isActive: PropTypes.bool,\n children: PropTypes.any,\n destroyInactivePanel: PropTypes.bool,\n forceRender: PropTypes.bool,\n role: PropTypes.string\n};\nexport default PanelContent;","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport PanelContent from './PanelContent';\nimport Animate from 'rc-animate';\n\nvar CollapsePanel = function (_Component) {\n _inherits(CollapsePanel, _Component);\n\n function CollapsePanel() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, CollapsePanel);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CollapsePanel.__proto__ || Object.getPrototypeOf(CollapsePanel)).call.apply(_ref, [this].concat(args))), _this), _this.handleItemClick = function () {\n if (_this.props.onItemClick) {\n _this.props.onItemClick();\n }\n }, _this.handleKeyPress = function (e) {\n if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {\n _this.handleItemClick();\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(CollapsePanel, [{\n key: 'render',\n value: function render() {\n var _classNames2;\n\n var _props = this.props,\n className = _props.className,\n id = _props.id,\n style = _props.style,\n prefixCls = _props.prefixCls,\n header = _props.header,\n headerClass = _props.headerClass,\n children = _props.children,\n isActive = _props.isActive,\n showArrow = _props.showArrow,\n destroyInactivePanel = _props.destroyInactivePanel,\n disabled = _props.disabled,\n accordion = _props.accordion,\n forceRender = _props.forceRender;\n var headerCls = classNames(prefixCls + '-header', _defineProperty({}, headerClass, headerClass));\n var itemCls = classNames((_classNames2 = {}, _defineProperty(_classNames2, prefixCls + '-item', true), _defineProperty(_classNames2, prefixCls + '-item-active', isActive), _defineProperty(_classNames2, prefixCls + '-item-disabled', disabled), _classNames2), className);\n return React.createElement('div', {\n className: itemCls,\n style: style,\n id: id\n }, React.createElement('div', {\n className: headerCls,\n onClick: this.handleItemClick,\n role: accordion ? 'tab' : 'button',\n tabIndex: disabled ? -1 : 0,\n 'aria-expanded': '' + isActive,\n onKeyPress: this.handleKeyPress\n }, showArrow && React.createElement('i', {\n className: 'arrow'\n }), header), React.createElement(Animate, {\n showProp: 'isActive',\n exclusive: true,\n component: '',\n animation: this.props.openAnimation\n }, React.createElement(PanelContent, {\n prefixCls: prefixCls,\n isActive: isActive,\n destroyInactivePanel: destroyInactivePanel,\n forceRender: forceRender,\n role: accordion ? 'tabpanel' : null\n }, children)));\n }\n }]);\n\n return CollapsePanel;\n}(Component);\n\nCollapsePanel.propTypes = {\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n id: PropTypes.string,\n children: PropTypes.any,\n openAnimation: PropTypes.object,\n prefixCls: PropTypes.string,\n header: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),\n headerClass: PropTypes.string,\n showArrow: PropTypes.bool,\n isActive: PropTypes.bool,\n onItemClick: PropTypes.func,\n style: PropTypes.object,\n destroyInactivePanel: PropTypes.bool,\n disabled: PropTypes.bool,\n accordion: PropTypes.bool,\n forceRender: PropTypes.bool\n};\nCollapsePanel.defaultProps = {\n showArrow: true,\n isActive: false,\n destroyInactivePanel: false,\n onItemClick: function onItemClick() {},\n headerClass: '',\n forceRender: false\n};\nexport default CollapsePanel;","import cssAnimation from 'css-animation';\n\nfunction animate(node, show, transitionName, done) {\n var height = void 0;\n return cssAnimation(node, transitionName, {\n start: function start() {\n if (!show) {\n node.style.height = node.offsetHeight + 'px';\n } else {\n height = node.offsetHeight;\n node.style.height = 0;\n }\n },\n active: function active() {\n node.style.height = (show ? height : 0) + 'px';\n },\n end: function end() {\n node.style.height = '';\n done();\n }\n });\n}\n\nfunction animation(prefixCls) {\n return {\n enter: function enter(node, done) {\n return animate(node, true, prefixCls + '-anim', done);\n },\n leave: function leave(node, done) {\n return animate(node, false, prefixCls + '-anim', done);\n }\n };\n}\n\nexport default animation;","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _toConsumableArray(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport CollapsePanel from './Panel';\nimport openAnimationFactory from './openAnimationFactory';\nimport classNames from 'classnames';\n\nfunction toArray(activeKey) {\n var currentActiveKey = activeKey;\n\n if (!Array.isArray(currentActiveKey)) {\n currentActiveKey = currentActiveKey ? [currentActiveKey] : [];\n }\n\n return currentActiveKey;\n}\n\nvar Collapse = function (_Component) {\n _inherits(Collapse, _Component);\n\n function Collapse(props) {\n _classCallCheck(this, Collapse);\n\n var _this = _possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));\n\n var _this$props = _this.props,\n activeKey = _this$props.activeKey,\n defaultActiveKey = _this$props.defaultActiveKey;\n var currentActiveKey = defaultActiveKey;\n\n if ('activeKey' in _this.props) {\n currentActiveKey = activeKey;\n }\n\n _this.state = {\n openAnimation: _this.props.openAnimation || openAnimationFactory(_this.props.prefixCls),\n activeKey: toArray(currentActiveKey)\n };\n return _this;\n }\n\n _createClass(Collapse, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('activeKey' in nextProps) {\n this.setState({\n activeKey: toArray(nextProps.activeKey)\n });\n }\n\n if ('openAnimation' in nextProps) {\n this.setState({\n openAnimation: nextProps.openAnimation\n });\n }\n }\n }, {\n key: 'onClickItem',\n value: function onClickItem(key) {\n var activeKey = this.state.activeKey;\n\n if (this.props.accordion) {\n activeKey = activeKey[0] === key ? [] : [key];\n } else {\n activeKey = [].concat(_toConsumableArray(activeKey));\n var index = activeKey.indexOf(key);\n var isActive = index > -1;\n\n if (isActive) {\n // remove active state\n activeKey.splice(index, 1);\n } else {\n activeKey.push(key);\n }\n }\n\n this.setActiveKey(activeKey);\n }\n }, {\n key: 'getItems',\n value: function getItems() {\n var _this2 = this;\n\n var activeKey = this.state.activeKey;\n var _props = this.props,\n prefixCls = _props.prefixCls,\n accordion = _props.accordion,\n destroyInactivePanel = _props.destroyInactivePanel;\n var newChildren = [];\n Children.forEach(this.props.children, function (child, index) {\n if (!child) return; // If there is no key provide, use the panel order as default key\n\n var key = child.key || String(index);\n var _child$props = child.props,\n header = _child$props.header,\n headerClass = _child$props.headerClass,\n disabled = _child$props.disabled;\n var isActive = false;\n\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n\n var props = {\n key: key,\n header: header,\n headerClass: headerClass,\n isActive: isActive,\n prefixCls: prefixCls,\n destroyInactivePanel: destroyInactivePanel,\n openAnimation: _this2.state.openAnimation,\n accordion: accordion,\n children: child.props.children,\n onItemClick: disabled ? null : function () {\n return _this2.onClickItem(key);\n }\n };\n newChildren.push(React.cloneElement(child, props));\n });\n return newChildren;\n }\n }, {\n key: 'setActiveKey',\n value: function setActiveKey(activeKey) {\n if (!('activeKey' in this.props)) {\n this.setState({\n activeKey: activeKey\n });\n }\n\n this.props.onChange(this.props.accordion ? activeKey[0] : activeKey);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _props2 = this.props,\n prefixCls = _props2.prefixCls,\n className = _props2.className,\n style = _props2.style,\n accordion = _props2.accordion;\n var collapseClassName = classNames((_classNames = {}, _defineProperty(_classNames, prefixCls, true), _defineProperty(_classNames, className, !!className), _classNames));\n return React.createElement('div', {\n className: collapseClassName,\n style: style,\n role: accordion ? 'tablist' : null\n }, this.getItems());\n }\n }]);\n\n return Collapse;\n}(Component);\n\nCollapse.propTypes = {\n children: PropTypes.any,\n prefixCls: PropTypes.string,\n activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n openAnimation: PropTypes.object,\n onChange: PropTypes.func,\n accordion: PropTypes.bool,\n className: PropTypes.string,\n style: PropTypes.object,\n destroyInactivePanel: PropTypes.bool\n};\nCollapse.defaultProps = {\n prefixCls: 'rc-collapse',\n onChange: function onChange() {},\n accordion: false,\n destroyInactivePanel: false\n};\nCollapse.Panel = CollapsePanel;\nexport default Collapse;","import Collapse from './Collapse';\nexport default Collapse;\nexport var Panel = Collapse.Panel;","import React, { Component } from 'react'\nimport './index.scss'\nimport {CallApp} from './../../../common'\n\nexport default class Poup extends Component {\n render() {\n return (\n <div className={'mask_container'}>\n <div className={'content'}>\n <p className={'title'}>温馨提示</p>\n {\n this.props.type === 1 ? (\n <>\n <p className={'tip'}>当前环境暂不支持该课程模式,您可前往七月在线PC端或者APP体验课程。</p>\n <CallApp className='btn btn-18B4ED' text={'前往APP体验课程'}></CallApp>\n </>\n ) : (\n <>\n <p className={'tip'}>当前环境暂不支持该课程模式,您可前往七月在线PC端或者APP学习课程。</p>\n <CallApp className='btn btn-18B4ED' text={'前往APP学习课程'}></CallApp>\n </>\n )\n }\n <img onClick={this.props.closePop} className={'close_btn'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/bottom_close.png\" alt=\"\"/>\n </div>\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1210:function(e,t,n){},1211:function(e,t,n){"use strict";n.r(t);n(629);var a=n(631),s=n.n(a),r=(n(37),n(11)),o=n.n(r),i=n(4),c=n(7),l=n(5),u=n(8),p=n(9),f=n(0),m=n.n(f),d=n(25),h=n(3),y=(n(1212),n(21)),b=n(807),v=n(618),_=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).fetchCourseDetail=function(){h.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(h.c)("id"),"&is_pay=1")).then(function(e){var t=e.data,a=t.data,s=t.code,r=t.msg;200===s?n.setState({courseInfo:a.course_info,syllabus:a.syllabus,learning:a.learning}):o.a.info(r,2)})},n.Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],n=e.toString(),a=Number(n)%10,s=Math.floor(Number(n)/10),r="";return r=n.length>1?1==s?a>=1?t[9]+t[a-1]:t[9]:a>1?t[s-1]+t[9]+t[a-1]:t[s-1]+t[9]:t[a-1],n.replace(n,r)},n.onChange=function(e){console.log(e)},n.toPythonHome=function(e){1==e&&n.setState({toApp:!0})},n.toLearn=function(){n.setState({toApp:!0})},n.closePop=function(){n.setState({toApp:!1})},n.state={toApp:!1,courseInfo:"",syllabus:"",learning:""},n}return Object(p.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseDetail()}},{key:"render",value:function(){var e=this,t=this.props.user,n=t&&t.data&&t.data.uid,a=this.state,r=a.courseInfo,o=a.syllabus,i=a.learning,c=a.toApp;return m.a.createElement("div",{className:"python-study"},m.a.createElement(d.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0}),m.a.createElement("div",{className:"python-study__header"},m.a.createElement("div",{className:"python-study__course"},m.a.createElement("h2",{className:"python-study__course-name"},"Python\u4eba\u5de5\u667a\u80fd"),m.a.createElement("p",{className:"python-study__course-contact"},m.a.createElement("span",null,1==r.contact_type?"\u4e0a\u8bfe\u8bf7\u52a0QQ\u5b66\u4e60\u7fa4":"\u6dfb\u52a0\u52a9\u6559\u5fae\u4fe1\u5165\u7fa4","\uff1a",r.course_qq),m.a.createElement("span",null,"\u5e76\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n))),i.schedule>0&&m.a.createElement("div",{className:"python-study__progress"},m.a.createElement("h2",{className:"python-study__progress-title"},"\u5b66\u4e60\u8fdb\u5ea6"),m.a.createElement("div",{className:"python-study__progress-bar"},m.a.createElement("i",{style:{width:i.schedule+"%"}}),m.a.createElement("span",{className:"python-study__progress-tip",style:{left:i.schedule+"%"}},i.schedule+"%")))),!!r.is_dist&&m.a.createElement("div",{className:"dist-wrapper"},m.a.createElement(v.a,{courseInfo:r})),m.a.createElement(d.a,{className:"toapp"}),m.a.createElement(s.a,{defaultActiveKey:"0",className:"python-study__stage",onChange:this.onChange},o&&o.length>0&&o.map(function(t,n){var a="\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5\uff1a").concat(t.name);return m.a.createElement(s.a.Panel,{header:a,className:"pad",key:n},t.lessons&&t.lessons.length>0&&t.lessons.map(function(t,n){return m.a.createElement("div",{key:n},m.a.createElement("h2",{className:"python-study__pass"},"\u7b2c",t.shut,"\u5173 ",t.name,1==t.complete&&m.a.createElement("i",{className:"python-study__pass-tag"},"\u95ef\u5173\u5b8c\u6210")),m.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.info.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.info.is_unlock)},key:n},m.a.createElement("img",{className:"python-study__subject-icon",src:t.info.img_url,alt:""}),1==t.info.is_unlock&&1==t.info.complete&&m.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),0==t.info.is_unlock&&m.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),m.a.createElement("div",{className:"python-study__subject-content"},m.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.info.name))),t.questions&&t.questions.length>0&&t.questions.map(function(t,n){return m.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.is_unlock)},key:n},m.a.createElement("img",{className:"python-study__subject-icon",src:t.icon,alt:""}),1==t.is_unlock&&1==t.complete&&m.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),1==t.is_unlock&&0==t.complete&&m.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),m.a.createElement("div",{className:"python-study__subject-content"},m.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.name),1==t.is_must&&m.a.createElement("span",{className:"python-study__subject-tag"},"\u5fc5\u505a\u7ec3\u4e60")))}))}))})),0==i.schedule&&m.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u5f00\u59cb\u5b66\u4e60"),0!=i.schedule&&100!=i.schedule&&m.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u7ee7\u7eed\u5b66\u4e60"),100==i.schedule&&m.a.createElement("button",{className:"python-study__button python-study__over"},"\u5df2\u5b66\u5b8c\u5168\u90e8\u8bfe\u65f6"),c&&m.a.createElement(b.a,{closePop:this.closePop,type:2}))}}]),t}(f.Component);t.default=Object(y.b)(function(e){return{user:e.user}},null)(_)},1212:function(e,t,n){},618:function(e,t,n){"use strict";n(91);var a=n(27),s=n.n(a),r=(n(37),n(11)),o=n.n(r),i=n(4),c=n(7),l=n(5),u=n(8),p=n(9),f=n(0),m=n.n(f),d=(n(641),n(3)),h=n(21),y=n(45),b=n(24),v=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).getRankList=function(){d.d.get("".concat(API.home,"/dist/rankList/").concat(Object(d.c)("id"))).then(function(e){200===e.data.code?n.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):o.a.info(e.data.msg,2)})},n.getCode=function(){var e=n.props.user;if(e&&e.data&&e.data.uid){var t={course_id:Object(d.c)("id")};d.d.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?n.setState({code:e.data.data.code}):o.a.info(e.data.msg,2)})}},n.share=function(e){var t=n.props.user,a=t&&t.data&&t.data.uid;if(a){var s=Object(d.c)("id"),r=e.dist_first_level_ti,o=n.state.code;n.props.history.push("/shareposter?courseId=".concat(s,"&dist_first=").concat(r,"&uid=").concat(a,"&dist_code=").concat(o))}else n.props.history.push("/passport/login")},n.openRanking=function(){n.setState({shareRank:!0})},n.colse=function(){n.setState({shareRank:!1})},n.state={list:[],rankingslice:[],code:"",shareRank:!1},n}return Object(p.a)(t,e),Object(c.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(s.a,{className:"share-container",justify:"between"},m.a.createElement(s.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(s.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}(f.Component);t.a=Object(b.d)(Object(h.b)(function(e){return{user:e.user}},null),y.g)(v)},629:function(e,t,n){"use strict";n(49),n(630)},630:function(e,t,n){},631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(n(12)),s=u(n(15)),r=u(n(13)),o=u(n(16)),i=n(643),c=u(i),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));function u(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,a.default)(this,t),(0,r.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,o.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){return l.createElement(c.default,this.props)}}]),t}(l.Component);t.default=p,p.Panel=i.Panel,p.defaultProps={prefixCls:"am-accordion"},e.exports=t.default},641:function(e,t,n){},643:function(e,t,n){"use strict";n.r(t);var a=n(0),s=n.n(a),r=n(2),o=n.n(r),i=n(18),c=n.n(i),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,a["Component"]),l(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.forceRender||this.props.isActive||e.isActive}},{key:"render",value:function(){var e;if(this._isActived=this.props.forceRender||this._isActived||this.props.isActive,!this._isActived)return null;var t=this.props,n=t.prefixCls,a=t.isActive,r=t.children,o=t.destroyInactivePanel,i=t.forceRender,l=t.role,p=c()((u(e={},n+"-content",!0),u(e,n+"-content-active",a),u(e,n+"-content-inactive",!a),e)),f=i||a||!o?s.a.createElement("div",{className:n+"-content-box"},r):null;return s.a.createElement("div",{className:p,role:l},f)}}]),t}();p.propTypes={prefixCls:o.a.string,isActive:o.a.bool,children:o.a.any,destroyInactivePanel:o.a.bool,forceRender:o.a.bool,role:o.a.string};var f=p,m=n(85),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(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}var b=function(e){function t(){var e,n,a;!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),o=0;o<s;o++)r[o]=arguments[o];return n=a=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),a.handleItemClick=function(){a.props.onItemClick&&a.props.onItemClick()},a.handleKeyPress=function(e){"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||a.handleItemClick()},y(a,n)}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,a["Component"]),d(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,a=t.id,r=t.style,o=t.prefixCls,i=t.header,l=t.headerClass,u=t.children,p=t.isActive,d=t.showArrow,y=t.destroyInactivePanel,b=t.disabled,v=t.accordion,_=t.forceRender,g=c()(o+"-header",h({},l,l)),E=c()((h(e={},o+"-item",!0),h(e,o+"-item-active",p),h(e,o+"-item-disabled",b),e),n);return s.a.createElement("div",{className:E,style:r,id:a},s.a.createElement("div",{className:g,onClick:this.handleItemClick,role:v?"tab":"button",tabIndex:b?-1:0,"aria-expanded":""+p,onKeyPress:this.handleKeyPress},d&&s.a.createElement("i",{className:"arrow"}),i),s.a.createElement(m.a,{showProp:"isActive",exclusive:!0,component:"",animation:this.props.openAnimation},s.a.createElement(f,{prefixCls:o,isActive:p,destroyInactivePanel:y,forceRender:_,role:v?"tabpanel":null},u)))}}]),t}();b.propTypes={className:o.a.oneOfType([o.a.string,o.a.object]),id:o.a.string,children:o.a.any,openAnimation:o.a.object,prefixCls:o.a.string,header:o.a.oneOfType([o.a.string,o.a.number,o.a.node]),headerClass:o.a.string,showArrow:o.a.bool,isActive:o.a.bool,onItemClick:o.a.func,style:o.a.object,destroyInactivePanel:o.a.bool,disabled:o.a.bool,accordion:o.a.bool,forceRender:o.a.bool},b.defaultProps={showArrow:!0,isActive:!1,destroyInactivePanel:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var v=b,_=n(121);function g(e,t,n,a){var s=void 0;return Object(_.a)(e,n,{start:function(){t?(s=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){e.style.height=(t?s:0)+"px"},end:function(){e.style.height="",a()}})}var E=function(e){return{enter:function(t,n){return g(t,!0,e+"-anim",n)},leave:function(t,n){return g(t,!1,e+"-anim",n)}}},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t}var C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),a=n.props,s=a.activeKey,r=a.defaultActiveKey;return"activeKey"in n.props&&(r=s),n.state={openAnimation:n.props.openAnimation||E(n.props.prefixCls),activeKey:N(r)},n}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,a["Component"]),k(t,[{key:"componentWillReceiveProps",value:function(e){"activeKey"in e&&this.setState({activeKey:N(e.activeKey)}),"openAnimation"in e&&this.setState({openAnimation:e.openAnimation})}},{key:"onClickItem",value:function(e){var t=this.state.activeKey;if(this.props.accordion)t=t[0]===e?[]:[e];else{var n=(t=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))).indexOf(e);n>-1?t.splice(n,1):t.push(e)}this.setActiveKey(t)}},{key:"getItems",value:function(){var e=this,t=this.state.activeKey,n=this.props,r=n.prefixCls,o=n.accordion,i=n.destroyInactivePanel,c=[];return a.Children.forEach(this.props.children,function(n,a){if(n){var l=n.key||String(a),u=n.props,p=u.header,f=u.headerClass,m=u.disabled,d=!1;d=o?t[0]===l:t.indexOf(l)>-1;var h={key:l,header:p,headerClass:f,isActive:d,prefixCls:r,destroyInactivePanel:i,openAnimation:e.state.openAnimation,accordion:o,children:n.props.children,onItemClick:m?null:function(){return e.onClickItem(l)}};c.push(s.a.cloneElement(n,h))}}),c}},{key:"setActiveKey",value:function(e){"activeKey"in this.props||this.setState({activeKey:e}),this.props.onChange(this.props.accordion?e[0]:e)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,a=t.className,r=t.style,o=t.accordion,i=c()((j(e={},n,!0),j(e,a,!!a),e));return s.a.createElement("div",{className:i,style:r,role:o?"tablist":null},this.getItems())}}]),t}();C.propTypes={children:o.a.any,prefixCls:o.a.string,activeKey:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.string)]),defaultActiveKey:o.a.oneOfType([o.a.string,o.a.arrayOf(o.a.string)]),openAnimation:o.a.object,onChange:o.a.func,accordion:o.a.bool,className:o.a.string,style:o.a.object,destroyInactivePanel:o.a.bool},C.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},C.Panel=v;var P=C;n.d(t,"Panel",function(){return O});t.default=P;var O=P.Panel},807:function(e,t,n){"use strict";n.d(t,"a",function(){return p});var a=n(4),s=n(7),r=n(5),o=n(8),i=n(9),c=n(0),l=n.n(c),u=(n(1210),n(25)),p=function(e){function t(){return Object(a.a)(this,t),Object(r.a)(this,Object(o.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"mask_container"},l.a.createElement("div",{className:"content"},l.a.createElement("p",{className:"title"},"\u6e29\u99a8\u63d0\u793a"),1===this.props.type?l.a.createElement(l.a.Fragment,null,l.a.createElement("p",{className:"tip"},"\u5f53\u524d\u73af\u5883\u6682\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u60a8\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebfPC\u7aef\u6216\u8005APP\u4f53\u9a8c\u8bfe\u7a0b\u3002"),l.a.createElement(u.a,{className:"btn btn-18B4ED",text:"\u524d\u5f80APP\u4f53\u9a8c\u8bfe\u7a0b"})):l.a.createElement(l.a.Fragment,null,l.a.createElement("p",{className:"tip"},"\u5f53\u524d\u73af\u5883\u6682\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u60a8\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebfPC\u7aef\u6216\u8005APP\u5b66\u4e60\u8bfe\u7a0b\u3002"),l.a.createElement(u.a,{className:"btn btn-18B4ED",text:"\u524d\u5f80APP\u5b66\u4e60\u8bfe\u7a0b"})),l.a.createElement("img",{onClick:this.props.closePop,className:"close_btn",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/bottom_close.png",alt:""})))}}]),t}(c.Component)}}]);
//# sourceMappingURL=4.22a0562b.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/python/pythonStudy/index.js","components/detail/shareRank/index.js","../node_modules/antd-mobile/lib/accordion/style/css.js","../node_modules/antd-mobile/lib/accordion/index.js","../node_modules/rc-collapse/es/PanelContent.js","../node_modules/rc-collapse/es/Panel.js","../node_modules/rc-collapse/es/openAnimationFactory.js","../node_modules/rc-collapse/es/Collapse.js","../node_modules/rc-collapse/es/index.js","components/python/poup/index.js"],"names":["PythonStudy","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__","call","fetchCourseDetail","http","get","concat","API","getParam","then","res","_res$data","data","code","msg","setState","courseInfo","course_info","syllabus","learning","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_3___default","a","info","Change","cn","str","toString","ci","Number","cs","Math","floor","cv","length","replace","onChange","key","console","log","toPythonHome","isUnlock","toApp","toLearn","closePop","state","_this2","user","uid","_this$state","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","contact_type","course_qq","schedule","style","width","left","is_dist","_components_detail_shareRank__WEBPACK_IMPORTED_MODULE_15__","antd_mobile_lib_accordion__WEBPACK_IMPORTED_MODULE_1___default","defaultActiveKey","map","syllabusItem","index","header","stage","name","Panel","lessons","lessonsItem","shut","complete","opacity","is_unlock","onClick","src","img_url","alt","data-status","questions","item","icon","is_must","_poup_index_js__WEBPACK_IMPORTED_MODULE_14__","type","Component","connect","ShareRank","getRankList","home","list","rankingslice","slice","getCode","course_id","post","share","courseId","dist_first","dist_first_level_ti","dist_code","history","push","openRanking","shareRank","colse","_this$props$courseInf","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","head_imgurl","amount","align","bind","user_name","compose","withRouter","__webpack_require__","defineProperty","exports","value","_classCallCheck3","_interopRequireDefault","_createClass3","_possibleConstructorReturn3","_inherits3","_rcCollapse","_rcCollapse2","React","obj","__esModule","newObj","prototype","hasOwnProperty","_interopRequireWildcard","default","Accordion","_React$Component","__proto__","getPrototypeOf","apply","arguments","defaultProps","prefixCls","module","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","_defineProperty","PanelContent_PanelContent","_Component","PanelContent","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","subClass","superClass","create","constructor","setPrototypeOf","_inherits","react","nextProps","forceRender","isActive","_classnames","_isActived","_props","children","destroyInactivePanel","role","contentCls","classnames_default","child","react_default","propTypes","prop_types_default","string","bool","any","es_PanelContent","Panel_createClass","Panel_defineProperty","Panel_possibleConstructorReturn","Panel_CollapsePanel","CollapsePanel","_ref","_temp","Panel_classCallCheck","_len","args","Array","_key","handleItemClick","onItemClick","handleKeyPress","e","keyCode","which","Panel_inherits","_classNames2","id","headerClass","showArrow","disabled","accordion","headerCls","itemCls","tabIndex","aria-expanded","onKeyPress","Animate","showProp","exclusive","component","animation","openAnimation","oneOfType","object","number","node","func","animate","show","transitionName","done","height","es","start","offsetHeight","active","end","openAnimationFactory","enter","leave","Collapse_createClass","Collapse_defineProperty","toArray","activeKey","currentActiveKey","isArray","Collapse_Collapse","Collapse","Collapse_classCallCheck","Collapse_possibleConstructorReturn","_this$props","Collapse_inherits","arr","arr2","from","_toConsumableArray","indexOf","splice","setActiveKey","newChildren","forEach","String","_child$props","onClickItem","cloneElement","_classNames","_props2","collapseClassName","getItems","arrayOf","es_Collapse","d","__webpack_exports__","es_Panel","Poup","react__WEBPACK_IMPORTED_MODULE_5___default","Fragment","_common__WEBPACK_IMPORTED_MODULE_7__","text"],"mappings":"qRAUMA,cACF,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,KAaVQ,kBAAoB,WAChBC,IAAKC,IAAL,GAAAC,OAAYC,IAAG,KAAf,6BAAAD,OAAmDE,YAAS,MAA5D,cAA8EC,KAAK,SAAAC,GAAO,IAAAC,EAC5DD,EAAIE,KAAvBA,EAD+ED,EAC/EC,KAAMC,EADyEF,EACzEE,KAAMC,EADmEH,EACnEG,IACN,MAATD,EACAjB,EAAKmB,SAAS,CACVC,WAAYJ,EAAKK,YACjBC,SAA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ACdyO,EAAAvQ,EAAA6B,cAAA,OAAKC,UAAW,WACdyO,EAAAvQ,EAAA6B,cAAA,KAAGC,UAAW,SAAd,4BAEsB,IAApBpD,KAAKJ,MAAM6F,KACToM,EAAAvQ,EAAA6B,cAAA0O,EAAAvQ,EAAAwQ,SAAA,KACED,EAAAvQ,EAAA6B,cAAA,KAAGC,UAAW,OAAd,6LACAyO,EAAAvQ,EAAA6B,cAAC4O,EAAA,EAAD,CAAS3O,UAAU,iBAAiB4O,KAAM,6CAG5CH,EAAAvQ,EAAA6B,cAAA0O,EAAAvQ,EAAAwQ,SAAA,KACED,EAAAvQ,EAAA6B,cAAA,KAAGC,UAAW,OAAd,6LACAyO,EAAAvQ,EAAA6B,cAAC4O,EAAA,EAAD,CAAS3O,UAAU,iBAAiB4O,KAAM,6CAIhDH,EAAAvQ,EAAA6B,cAAA,OAAK4B,QAAS/E,KAAKJ,MAAMgD,SAAUQ,UAAW,YAAa4B,IAAI,mFAAmFE,IAAI,cAnB9HQ","file":"mrstatic/js/4.22a0562b.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport {Accordion, Toast} from 'antd-mobile';\nimport {HeaderBar, CallApp} from '@/common';\nimport {http, getParam} from '@/utils';\nimport './index.scss';\nimport {Link} from \"react-router-dom\"\nimport {connect} from \"react-redux\";\nimport Mask from './../poup/index.js'\nimport ShareRank from \"@components/detail/shareRank\"\n\nclass PythonStudy extends Component {\n constructor(props) {\n super(props);\n this.state = {\n toApp: false,\n courseInfo: '',\n syllabus: '',\n learning: ''\n };\n }\n\n componentDidMount() {\n this.fetchCourseDetail();\n }\n\n fetchCourseDetail = () => {\n http.get(`${API['home']}/web/it_detail?course_id=${getParam('id')}&is_pay=1`).then(res => {\n const {data, code, msg} = res.data;\n if (code === 200) {\n this.setState({\n courseInfo: data.course_info,\n syllabus: data.syllabus,\n learning: data.learning\n })\n } else {\n Toast.info(msg, 2)\n }\n });\n }\n\n Change = (data) => {\n let cn = [\"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", '十'];\n let newStr = ''\n let str = data.toString()\n let ci = Number(str) % 10\n let cs = Math.floor(Number(str) / 10)\n let cv = ''\n if (str.length > 1) {\n if (cs == 1) {\n cv = ci >= 1 ? cn[9] + cn[ci - 1] : cn[9]\n } else {\n cv = ci > 1 ? cn[cs - 1] + cn[9] + cn[ci - 1] : cn[cs - 1] + cn[9]\n }\n } else {\n cv = cn[ci - 1]\n }\n newStr = str.replace(str, cv)\n return newStr;\n }\n\n onChange = (key) => {\n console.log(key);\n }\n\n toPythonHome = (isUnlock) => {\n if (isUnlock == 1) {\n this.setState({\n toApp: true\n })\n }\n }\n\n toLearn = () => {\n this.setState({\n toApp: true\n })\n }\n closePop = () => {\n this.setState({\n toApp: false,\n })\n }\n\n render() {\n const {user} = this.props;\n const uid = user && user.data && user.data.uid\n const {courseInfo, syllabus, learning, toApp} = this.state;\n return (\n <div className=\"python-study\">\n <HeaderBar title='Python基础语法' arrow={true}/>\n <div className=\"python-study__header\">\n <div className=\"python-study__course\">\n <h2 className=\"python-study__course-name\">Python人工智能</h2>\n <p className=\"python-study__course-contact\">\n <span>{courseInfo.contact_type == 1 ? '上课请加QQ学习群' : '添加助教微信入群'}:{courseInfo.course_qq}</span>\n <span>并备注您的学号:{uid}</span>\n </p>\n </div>\n {\n learning.schedule > 0 &&\n <div className=\"python-study__progress\">\n <h2 className=\"python-study__progress-title\">学习进度</h2>\n <div className=\"python-study__progress-bar\">\n <i style={{width: learning.schedule + '%'}}/>\n <span className=\"python-study__progress-tip\"\n style={{left: learning.schedule + '%'}}>{learning.schedule + '%'}</span>\n </div>\n </div>\n }\n\n </div>\n {\n !!courseInfo.is_dist && <div className={'dist-wrapper'}>\n <ShareRank courseInfo={courseInfo}/>\n </div>\n }\n\n <CallApp className={'toapp'}/>\n\n <Accordion\n defaultActiveKey=\"0\"\n className=\"python-study__stage\"\n onChange={this.onChange}\n >\n {\n syllabus && syllabus.length > 0 && syllabus.map((syllabusItem, index) => {\n let header = `第${this.Change(syllabusItem.stage)}阶段:${syllabusItem.name}`\n return (\n <Accordion.Panel header={header} className=\"pad\" key={index}>\n {\n syllabusItem.lessons && syllabusItem.lessons.length > 0 && syllabusItem.lessons.map((lessonsItem, index) => {\n return (\n <div key={index}>\n <h2 className=\"python-study__pass\">\n 第{lessonsItem.shut}关 {lessonsItem.name}\n {\n lessonsItem.complete == 1 &&\n <i className=\"python-study__pass-tag\">闯关完成</i>\n }\n </h2>\n\n <div className=\"python-study__subject\"\n style={{opacity: lessonsItem.info.is_unlock == 0 ? '.6' : '1'}}\n onClick={() => {\n this.toPythonHome(lessonsItem.info.is_unlock)\n }}\n key={index}>\n <img className=\"python-study__subject-icon\"\n src={lessonsItem.info.img_url} alt=\"\"/>\n {\n lessonsItem.info.is_unlock == 1 && lessonsItem.info.complete == 1 &&\n <i className=\"python-study__subject-status\"\n data-status=\"complete\"/>\n }\n {\n lessonsItem.info.is_unlock == 0 &&\n <i className=\"python-study__subject-status\"\n data-status=\"lock\"/>\n }\n <div className=\"python-study__subject-content\">\n <h2 className=\"python-study__subject-title text-overflow-1\">{lessonsItem.info.name}</h2>\n </div>\n </div>\n\n {\n lessonsItem.questions && lessonsItem.questions.length > 0 && lessonsItem.questions.map((item, index) => {\n return (\n <div className=\"python-study__subject\"\n style={{opacity: item.is_unlock == 0 ? '.6' : '1'}}\n onClick={() => {\n this.toPythonHome(item.is_unlock)\n }}\n key={index}>\n <img className=\"python-study__subject-icon\"\n src={item.icon} alt=\"\"/>\n {\n item.is_unlock == 1 && item.complete == 1 &&\n <i className=\"python-study__subject-status\"\n data-status=\"complete\"/>\n }\n {\n item.is_unlock == 1 && item.complete == 0 &&\n <i className=\"python-study__subject-status\"\n data-status=\"lock\"/>\n }\n <div className=\"python-study__subject-content\">\n <h2 className=\"python-study__subject-title text-overflow-1\">{item.name}</h2>\n {\n item.is_must == 1 &&\n <span\n className=\"python-study__subject-tag\">必做练习</span>\n }\n </div>\n </div>\n )\n })\n }\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n {\n learning.schedule == 0 &&\n <span onClick={this.toLearn} className=\"python-study__button\">开始学习</span>\n }\n {\n learning.schedule != 0 && learning.schedule != 100 &&\n <span onClick={this.toLearn} className=\"python-study__button\">继续学习</span>\n }\n {\n learning.schedule == 100 &&\n <button className=\"python-study__button python-study__over\">已学完全部课时</button>\n }\n\n {\n toApp && <Mask closePop={this.closePop} type={2} />\n }\n </div>\n )\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(PythonStudy);","import React, {Component} from 'react'\nimport './index.scss'\nimport {getParam, http} from \"@/utils\"\nimport {Toast, Flex} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {withRouter} from 'react-router-dom'\nimport {compose} from \"redux\"\n\nclass ShareRank extends Component {\n constructor(props) {\n super(props)\n this.state = {\n list: [], // 分销排行榜\n rankingslice: [], // 分销排行榜前两名\n code: '', // 分销code\n shareRank: false\n }\n }\n\n componentDidMount() {\n this.getRankList()\n this.getCode()\n }\n\n // 获取排行榜\n getRankList = () => {\n http.get(`${API.home}/dist/rankList/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n list: res.data.data,\n rankingslice: res.data.data.slice(0, 2)\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取分销码\n getCode = () => {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n if (!uid) return\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API.home}/dist/createCode`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n code: res.data.data.code\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 点击分销跳转到海报页\n share = (info) => {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n if (!uid) {\n this.props.history.push('/passport/login')\n } else {\n const courseId = getParam('id')\n const dist_first = info.dist_first_level_ti\n const dist_code = this.state.code\n this.props.history.push(`/shareposter?courseId=${courseId}&dist_first=${dist_first}&uid=${uid}&dist_code=${dist_code}`)\n }\n }\n\n\n // 打开分销排行榜弹窗\n openRanking = () => {\n this.setState({\n shareRank: true\n })\n }\n\n // 关闭弹窗\n colse = () => {\n this.setState({\n shareRank: false\n })\n }\n\n render() {\n const { courseInfo: info = '' } = this.props;\n // let info = ''\n // if (this.props.courseInfo && this.props.courseInfo.courseInfo && this.props.courseInfo.courseInfo.course_info) {\n // info = this.props.courseInfo.courseInfo.course_info\n // }\n return (\n <div className='share-ranking'>\n <Flex className='share-container' justify='between'>\n <Flex className='share-list'>\n <span className=\"title\">排行榜:</span>\n <div className='ranking-box' onClick={this.openRanking}>\n {\n this.state.rankingslice && this.state.rankingslice.length > 0 && this.state.rankingslice.map((item, index) => {\n return (\n <span key={index} className=\"ranking-mess\">\n <img src={item.head_imgurl} alt=\"\"/>\n <i>{item.amount}元</i>\n </span>\n )\n })\n }\n\n\n </div>\n </Flex>\n <Flex className='share-money' justify='between' align='center'>\n <img onClick={this.openRanking} className=\"ranking-ellipsis\"\n src=\"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png\" alt=\"\"/>\n <button className=\"share\" onClick={this.share.bind(this, info)}>分享赚{info.dist_first_level_ti}元\n </button>\n </Flex>\n </Flex>\n\n\n {\n this.state.shareRank &&\n <div className=\"shareMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n <span className=\"lable\">赚钱排行榜</span>\n <span className=\"tips\">只展示前9名用户</span>\n </div>\n <ul>\n {\n this.state.list && this.state.list.length > 0 && this.state.list.map((item, index) => {\n return (\n <li key={index}>\n <img src={item.head_imgurl} alt=\"\"/>\n <span className='course-title'>{item.user_name}</span>\n <span className='course-price'>{item.amount}元</span>\n </li>\n )\n })\n }\n </ul>\n <div className='shareBtn'>\n <button onClick={this.share.bind(this, info)}>分享赚{info.dist_first_level_ti}元</button>\n </div>\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n\n </div>\n }\n </div>\n );\n }\n}\n\nexport default compose(\n connect(\n state => ({\n // courseInfo: state,\n user: state.user\n }),\n null\n ),\n withRouter\n)(ShareRank)\n","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _rcCollapse = require('rc-collapse');\n\nvar _rcCollapse2 = _interopRequireDefault(_rcCollapse);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar Accordion = function (_React$Component) {\n (0, _inherits3['default'])(Accordion, _React$Component);\n\n function Accordion() {\n (0, _classCallCheck3['default'])(this, Accordion);\n return (0, _possibleConstructorReturn3['default'])(this, (Accordion.__proto__ || Object.getPrototypeOf(Accordion)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Accordion, [{\n key: 'render',\n value: function render() {\n return React.createElement(_rcCollapse2['default'], this.props);\n }\n }]);\n return Accordion;\n}(React.Component);\n\nexports['default'] = Accordion;\nAccordion.Panel = _rcCollapse.Panel;\nAccordion.defaultProps = {\n prefixCls: 'am-accordion'\n};\nmodule.exports = exports['default'];","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\n\nvar PanelContent = function (_Component) {\n _inherits(PanelContent, _Component);\n\n function PanelContent() {\n _classCallCheck(this, PanelContent);\n\n return _possibleConstructorReturn(this, (PanelContent.__proto__ || Object.getPrototypeOf(PanelContent)).apply(this, arguments));\n }\n\n _createClass(PanelContent, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return this.props.forceRender || this.props.isActive || nextProps.isActive;\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames;\n\n this._isActived = this.props.forceRender || this._isActived || this.props.isActive;\n\n if (!this._isActived) {\n return null;\n }\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n isActive = _props.isActive,\n children = _props.children,\n destroyInactivePanel = _props.destroyInactivePanel,\n forceRender = _props.forceRender,\n role = _props.role;\n var contentCls = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls + '-content', true), _defineProperty(_classnames, prefixCls + '-content-active', isActive), _defineProperty(_classnames, prefixCls + '-content-inactive', !isActive), _classnames));\n var child = !forceRender && !isActive && destroyInactivePanel ? null : React.createElement('div', {\n className: prefixCls + '-content-box'\n }, children);\n return React.createElement('div', {\n className: contentCls,\n role: role\n }, child);\n }\n }]);\n\n return PanelContent;\n}(Component);\n\nPanelContent.propTypes = {\n prefixCls: PropTypes.string,\n isActive: PropTypes.bool,\n children: PropTypes.any,\n destroyInactivePanel: PropTypes.bool,\n forceRender: PropTypes.bool,\n role: PropTypes.string\n};\nexport default PanelContent;","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport PanelContent from './PanelContent';\nimport Animate from 'rc-animate';\n\nvar CollapsePanel = function (_Component) {\n _inherits(CollapsePanel, _Component);\n\n function CollapsePanel() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, CollapsePanel);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CollapsePanel.__proto__ || Object.getPrototypeOf(CollapsePanel)).call.apply(_ref, [this].concat(args))), _this), _this.handleItemClick = function () {\n if (_this.props.onItemClick) {\n _this.props.onItemClick();\n }\n }, _this.handleKeyPress = function (e) {\n if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {\n _this.handleItemClick();\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(CollapsePanel, [{\n key: 'render',\n value: function render() {\n var _classNames2;\n\n var _props = this.props,\n className = _props.className,\n id = _props.id,\n style = _props.style,\n prefixCls = _props.prefixCls,\n header = _props.header,\n headerClass = _props.headerClass,\n children = _props.children,\n isActive = _props.isActive,\n showArrow = _props.showArrow,\n destroyInactivePanel = _props.destroyInactivePanel,\n disabled = _props.disabled,\n accordion = _props.accordion,\n forceRender = _props.forceRender;\n var headerCls = classNames(prefixCls + '-header', _defineProperty({}, headerClass, headerClass));\n var itemCls = classNames((_classNames2 = {}, _defineProperty(_classNames2, prefixCls + '-item', true), _defineProperty(_classNames2, prefixCls + '-item-active', isActive), _defineProperty(_classNames2, prefixCls + '-item-disabled', disabled), _classNames2), className);\n return React.createElement('div', {\n className: itemCls,\n style: style,\n id: id\n }, React.createElement('div', {\n className: headerCls,\n onClick: this.handleItemClick,\n role: accordion ? 'tab' : 'button',\n tabIndex: disabled ? -1 : 0,\n 'aria-expanded': '' + isActive,\n onKeyPress: this.handleKeyPress\n }, showArrow && React.createElement('i', {\n className: 'arrow'\n }), header), React.createElement(Animate, {\n showProp: 'isActive',\n exclusive: true,\n component: '',\n animation: this.props.openAnimation\n }, React.createElement(PanelContent, {\n prefixCls: prefixCls,\n isActive: isActive,\n destroyInactivePanel: destroyInactivePanel,\n forceRender: forceRender,\n role: accordion ? 'tabpanel' : null\n }, children)));\n }\n }]);\n\n return CollapsePanel;\n}(Component);\n\nCollapsePanel.propTypes = {\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n id: PropTypes.string,\n children: PropTypes.any,\n openAnimation: PropTypes.object,\n prefixCls: PropTypes.string,\n header: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),\n headerClass: PropTypes.string,\n showArrow: PropTypes.bool,\n isActive: PropTypes.bool,\n onItemClick: PropTypes.func,\n style: PropTypes.object,\n destroyInactivePanel: PropTypes.bool,\n disabled: PropTypes.bool,\n accordion: PropTypes.bool,\n forceRender: PropTypes.bool\n};\nCollapsePanel.defaultProps = {\n showArrow: true,\n isActive: false,\n destroyInactivePanel: false,\n onItemClick: function onItemClick() {},\n headerClass: '',\n forceRender: false\n};\nexport default CollapsePanel;","import cssAnimation from 'css-animation';\n\nfunction animate(node, show, transitionName, done) {\n var height = void 0;\n return cssAnimation(node, transitionName, {\n start: function start() {\n if (!show) {\n node.style.height = node.offsetHeight + 'px';\n } else {\n height = node.offsetHeight;\n node.style.height = 0;\n }\n },\n active: function active() {\n node.style.height = (show ? height : 0) + 'px';\n },\n end: function end() {\n node.style.height = '';\n done();\n }\n });\n}\n\nfunction animation(prefixCls) {\n return {\n enter: function enter(node, done) {\n return animate(node, true, prefixCls + '-anim', done);\n },\n leave: function leave(node, done) {\n return animate(node, false, prefixCls + '-anim', done);\n }\n };\n}\n\nexport default animation;","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _toConsumableArray(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport CollapsePanel from './Panel';\nimport openAnimationFactory from './openAnimationFactory';\nimport classNames from 'classnames';\n\nfunction toArray(activeKey) {\n var currentActiveKey = activeKey;\n\n if (!Array.isArray(currentActiveKey)) {\n currentActiveKey = currentActiveKey ? [currentActiveKey] : [];\n }\n\n return currentActiveKey;\n}\n\nvar Collapse = function (_Component) {\n _inherits(Collapse, _Component);\n\n function Collapse(props) {\n _classCallCheck(this, Collapse);\n\n var _this = _possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));\n\n var _this$props = _this.props,\n activeKey = _this$props.activeKey,\n defaultActiveKey = _this$props.defaultActiveKey;\n var currentActiveKey = defaultActiveKey;\n\n if ('activeKey' in _this.props) {\n currentActiveKey = activeKey;\n }\n\n _this.state = {\n openAnimation: _this.props.openAnimation || openAnimationFactory(_this.props.prefixCls),\n activeKey: toArray(currentActiveKey)\n };\n return _this;\n }\n\n _createClass(Collapse, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('activeKey' in nextProps) {\n this.setState({\n activeKey: toArray(nextProps.activeKey)\n });\n }\n\n if ('openAnimation' in nextProps) {\n this.setState({\n openAnimation: nextProps.openAnimation\n });\n }\n }\n }, {\n key: 'onClickItem',\n value: function onClickItem(key) {\n var activeKey = this.state.activeKey;\n\n if (this.props.accordion) {\n activeKey = activeKey[0] === key ? [] : [key];\n } else {\n activeKey = [].concat(_toConsumableArray(activeKey));\n var index = activeKey.indexOf(key);\n var isActive = index > -1;\n\n if (isActive) {\n // remove active state\n activeKey.splice(index, 1);\n } else {\n activeKey.push(key);\n }\n }\n\n this.setActiveKey(activeKey);\n }\n }, {\n key: 'getItems',\n value: function getItems() {\n var _this2 = this;\n\n var activeKey = this.state.activeKey;\n var _props = this.props,\n prefixCls = _props.prefixCls,\n accordion = _props.accordion,\n destroyInactivePanel = _props.destroyInactivePanel;\n var newChildren = [];\n Children.forEach(this.props.children, function (child, index) {\n if (!child) return; // If there is no key provide, use the panel order as default key\n\n var key = child.key || String(index);\n var _child$props = child.props,\n header = _child$props.header,\n headerClass = _child$props.headerClass,\n disabled = _child$props.disabled;\n var isActive = false;\n\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n\n var props = {\n key: key,\n header: header,\n headerClass: headerClass,\n isActive: isActive,\n prefixCls: prefixCls,\n destroyInactivePanel: destroyInactivePanel,\n openAnimation: _this2.state.openAnimation,\n accordion: accordion,\n children: child.props.children,\n onItemClick: disabled ? null : function () {\n return _this2.onClickItem(key);\n }\n };\n newChildren.push(React.cloneElement(child, props));\n });\n return newChildren;\n }\n }, {\n key: 'setActiveKey',\n value: function setActiveKey(activeKey) {\n if (!('activeKey' in this.props)) {\n this.setState({\n activeKey: activeKey\n });\n }\n\n this.props.onChange(this.props.accordion ? activeKey[0] : activeKey);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _props2 = this.props,\n prefixCls = _props2.prefixCls,\n className = _props2.className,\n style = _props2.style,\n accordion = _props2.accordion;\n var collapseClassName = classNames((_classNames = {}, _defineProperty(_classNames, prefixCls, true), _defineProperty(_classNames, className, !!className), _classNames));\n return React.createElement('div', {\n className: collapseClassName,\n style: style,\n role: accordion ? 'tablist' : null\n }, this.getItems());\n }\n }]);\n\n return Collapse;\n}(Component);\n\nCollapse.propTypes = {\n children: PropTypes.any,\n prefixCls: PropTypes.string,\n activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n openAnimation: PropTypes.object,\n onChange: PropTypes.func,\n accordion: PropTypes.bool,\n className: PropTypes.string,\n style: PropTypes.object,\n destroyInactivePanel: PropTypes.bool\n};\nCollapse.defaultProps = {\n prefixCls: 'rc-collapse',\n onChange: function onChange() {},\n accordion: false,\n destroyInactivePanel: false\n};\nCollapse.Panel = CollapsePanel;\nexport default Collapse;","import Collapse from './Collapse';\nexport default Collapse;\nexport var Panel = Collapse.Panel;","import React, { Component } from 'react'\nimport './index.scss'\nimport {CallApp} from './../../../common'\n\nexport default class Poup extends Component {\n render() {\n return (\n <div className={'mask_container'}>\n <div className={'content'}>\n <p className={'title'}>温馨提示</p>\n {\n this.props.type === 1 ? (\n <>\n <p className={'tip'}>当前环境暂不支持该课程模式,您可前往七月在线PC端或者APP体验课程。</p>\n <CallApp className='btn btn-18B4ED' text={'前往APP体验课程'}></CallApp>\n </>\n ) : (\n <>\n <p className={'tip'}>当前环境暂不支持该课程模式,您可前往七月在线PC端或者APP学习课程。</p>\n <CallApp className='btn btn-18B4ED' text={'前往APP学习课程'}></CallApp>\n </>\n )\n }\n <img onClick={this.props.closePop} className={'close_btn'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/bottom_close.png\" alt=\"\"/>\n </div>\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{1248:function(e,t,a){},1249:function(e,t,a){},1250:function(e,t,a){},1251:function(e,t,a){},1252:function(e,t,a){},1253:function(e,t,a){},1254:function(e,t,a){},1255:function(e,t,a){},1256:function(e,t,a){},1257:function(e,t,a){},1304:function(e,t,a){"use strict";a.r(t);var n,s=a(4),c=a(7),i=a(5),r=a(8),o=a(9),l=a(0),u=a.n(l),m=a(3),p=(a(37),a(11)),d=a.n(p),h=(a(1248),a(1249),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(c)))).state={list:[{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_1.png",text:"0\u95e8\u69db\u4ea4\u4e92\u5f0f\u6388\u8bfe\uff0c\u5b66\u4e60\u50cf\u804a\u5929\u4e00\u6837\u6709\u8da3\uff1b"},{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_2.png",text:"\u539f\u7406\u90e8\u5206\u7ed3\u5408\u56fe\u7247\u548c\u4f8b\u5b50\uff0c\u5185\u5bb9\u8bb2\u89e3\u8be6\u7ec6\uff1b"},{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_3.png",text:"\u4ee3\u7801\u9010\u884c\u8bb2\u89e3\uff0c\u5728\u7ebf\u7f16\u7a0b\uff0cQQ\u7fa4\u7b54\u7591\uff0c\u5b66\u4f1a\u4e3a\u6b62\uff1b"},{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_4.png",text:"\u7cbe\u7f16\u8bfe\u7a0b\u4e60\u9898\uff0c\u7ed3\u5408\u9762\u8bd5\u573a\u666f\uff0c\u592f\u5b9e\u7406\u8bba\u57fa\u7840\uff1b"},{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_5.png",text:"\u7cbe\u9009\u9879\u76ee\u5e72\u8d27\uff0c\u7ed3\u5408\u6240\u5b66\uff0c\u624b\u628a\u624b\u6307\u5bfc\u3002"}]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state.list;return u.a.createElement("div",{className:"description"},u.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png",alt:""}),u.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png",alt:""}),u.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u7279 / \u8272"),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/ml-introduce.png"}),u.a.createElement("ul",{className:"des-list"},e.map(function(e,t){return u.a.createElement("li",{key:t},u.a.createElement("img",{src:e.icon,alt:""}),u.a.createElement("span",null,e.text))})))}}]),t}(l.Component)),y=(a(1250),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(c)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this;return u.a.createElement("div",{className:"study__container"},u.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),u.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),u.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u5b89 / \u6392"),u.a.createElement("div",{className:"table__container"},u.a.createElement("div",{className:"table__head"},u.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),u.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),u.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),u.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return u.a.createElement("div",{className:"item__container",key:a},u.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return u.a.createElement("div",{className:"item__content",key:t},u.a.createElement("div",{className:"content order_number number_center"},e.number),u.a.createElement("div",{className:"content chapter"},e.name),u.a.createElement("div",{className:"content points"},e.info.name))}))})),u.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?u.a.createElement("div",{onClick:function(){return e.props.hide(1)}},u.a.createElement("p",null,"\u6536\u8d77"),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):u.a.createElement("div",{onClick:function(){return e.props.show(1)}},u.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(l.Component)),f=(a(1251),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(r.a)(t).call(this,e))).state={teacherList:[{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png",name:"\u9648\u535a\u58eb",des:"\u4e03\u6708\u5728\u7ebfAI Lab\u8d1f\u8d23\u4eba\u517c\u79d1\u5b66\u5bb6\u3002\u5386\u4efb\u6d6a\u6f6e\u96c6\u56e2\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u56fd\u5bb6\u7535\u7f51\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u5e94\u7528\u65b9\u5411\u56e2\u961f\u8d1f\u8d23\u4eba\u3002\u53c2\u4e0e\u8fc7\u4e00\u56fd\u5bb6863\u9879\u76ee\uff0c\u4e14\u66fe\u4e3b\u6301\u4e00\u5c71\u4e1c\u7701\u81ea\u4e3b\u521b\u65b0\u53ca\u6210\u679c\u8f6c\u5316\u4e13\u9879\uff0c\u53d1\u660e\u4e13\u5229\u5341\u4f59\u9879\uff0c\u4e13\u4e1a\u8bba\u6587\u5341\u4f59\u7bc7\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png",name:"\u5b59\u8001\u5e08",des:"10\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u5148\u540e\u4efb\u804c\u56fd\u5185\u77e5\u540d\u4e92\u8054\u7f51\u4f01\u4e1a\uff0c\u4ece\u4e8b\u4eba\u5de5\u667a\u80fd\u65b9\u5411\u7684\u5b9e\u65bd\uff0c\u64c5\u957f\u5168\u6808\u5f00\u53d1\uff0c\u5c06\u673a\u5668\u5b66\u4e60/\u6df1\u5ea6\u5b66\u4e60\u7ed3\u5408\u5230\u5b9e\u9645\u751f\u4ea7\u8fd0\u8425\u4e2d\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/teacher_3.png",name:"\u9b4f\u8001\u5e08",des:"\u901a\u4fe1\u5de5\u7a0b\u4e13\u4e1a\u6bd5\u4e1a\uff0c\u5728\u6821\u671f\u95f4\u5bf9\u8ba1\u7b97\u673a\u89c6\u89c9\u548c\u673a\u5668\u4eba\u6280\u672f\u6709\u8f83\u591a\u7684\u7814\u7a76\uff0c\u719f\u6089 Pyhton \u548c C++ \u7f16\u7a0b\uff0c\u73b0\u8d1f\u8d23\u4e03\u6708\u5728\u7ebf AI Lab \u63a8\u8350\u7cfb\u7edf\u65b9\u5411\u7684\u6280\u672f\u7814\u7a76\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png",name:"\u73ca\u9171",des:"\u73ed\u4e3b\u4efb\u7684\u5de5\u4f5c\u662f\u4e00\u9879\u975e\u5e38\u8f9b\u82e6\u548c\u7410\u788e\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ed8\u51fa\u8270\u8f9b\u7684\u52b3\u52a8\u548c\u8f9b\u82e6\u7684\u6c57\u6c34\u662f\u4e0d\u4f1a\u6709\u6536\u83b7\u7684\u3002\u5386\u7ecf\u6570\u4e07\u540d\u5b66\u5458\u7684\u4e00\u5bf9\u4e00\u670d\u52a1\uff0c\u59cb\u7ec8\u575a\u6301\u7ed9\u5b66\u5458\u505a\u5230\u6700\u597d\u7684\u670d\u52a1\u548c\u6700\u4e25\u683c\u7684\u8981\u6c42\uff0c\u5b66\u5458\u7684\u70b9\u6ef4\u8fdb\u6b65\u548c\u6210\u957f\u5c31\u662f\u6211\u6700\u5927\u7684\u671f\u671b\uff01"}]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return u.a.createElement("div",{className:"team_container"},u.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),u.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),u.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),u.a.createElement("p",{className:"sub_title"},"\u8bb2\u5e08+\u52a9\u6559+\u73ed\u4e3b\u4efb\u5168\u7a0b\u966a\u4f34\uff0c\u54ea\u91cc\u4e0d\u4f1a\u95ee\u54ea\u91cc"),u.a.createElement("ul",null,e.map(function(e,t){return u.a.createElement("li",{key:t,className:"item_li"},u.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),u.a.createElement("div",{className:"item_info"},u.a.createElement("span",{className:"name"},e.name),u.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(l.Component)),b=(a(1252),function(e){function t(){return Object(s.a)(this,t),Object(i.a)(this,Object(r.a)(t).apply(this,arguments))}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return u.a.createElement("div",{className:"experience_container"},u.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"experience"},u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),u.a.createElement("div",null,u.a.createElement("p",null,"\u9650\u65f6\u798f\u5229\u514d\u8d39\u8bd5\u5b66"),u.a.createElement("p",null,"\u5f00\u59cb\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),u.a.createElement("div",{className:"btn",onClick:function(){a(1)}},"\u7acb\u5373\u4f53\u9a8c")):u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"experience"},u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),u.a.createElement("div",null,u.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),u.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),u.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(l.Component)),_=(a(1253),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(r.a)(t).call(this,e))).state={list:[{q:"\u8bfe\u7a0b\u5b66\u4e60\u5468\u671f\u662f\u591a\u4e45\uff1f",a:"\u6bcf\u5929\u5b66\u4e601\u5c0f\u65f6\uff0c\u8bfe\u7a0b\u91c7\u7528\u901a\u5173\u5236\u89e3\u9501\u7684\u65b9\u5f0f\uff0c\u6839\u636e\u81ea\u5df1\u7684\u65f6\u95f4\u548c\u5b66\u4e60\u901f\u5ea6\u7075\u6d3b\u8c03\u6574\u3002"},{q:"\u6211\u6ca1\u6709\u673a\u5668\u5b66\u4e60\u57fa\u7840\u53ef\u4ee5\u5b66\u4e60\u5417\uff1f",a:"\u6211\u4eec\u7684\u8bfe\u7a0b\u662f\u9762\u5411\u96f6\u57fa\u7840\u7684\u5c0f\u4f19\u4f34\u8bbe\u8ba1\u7684\uff0c\u5185\u5bb9\u901a\u4fd7\u6613\u61c2\uff0c\u7531\u6d45\u5165\u6df1\uff0c\u5c42\u5c42\u9012\u8fdb\uff0c\u5c3d\u53ef\u80fd\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u6240\u5b66\u77e5\u8bc6\uff0c\u6ca1\u6709\u4efb\u4f55\u57fa\u7840\u662f\u53ef\u4ee5\u5b66\u4e60\u7684\u3002"},{q:"\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u56f0\u96be\u600e\u4e48\u529e\uff1f",a:"\u6211\u4eec\u4e3a\u5b66\u5458\u914d\u5907\u4e86\u4e13\u95e8\u7684\u52a9\u6559\uff0c\u6709\u95ee\u9898\u968f\u65f6\u53ef\u4ee5\u54a8\u8be2\u52a9\u6559\u8001\u5e08\u3002"},{q:"\u9879\u76ee\u5b9e\u6218\u7684\u5f62\u5f0f\u662f\u4ec0\u4e48\u6837\u7684\uff1f",a:"\u9879\u76ee\u5b9e\u6218\u4f1a\u4ee5\u8003\u8bd5\u7684\u5f62\u5f0f\u53d1\u7ed9\u4f60\uff0c\u6bcf\u4e00\u6b65\u90fd\u6709\u8be6\u7ec6\u7684\u6307\u5bfc\u8bf4\u660e\uff1b\u63d0\u4ea4\u8bd5\u5377\u540e\u53ef\u4ee5\u4e0b\u8f7d\u5b8c\u6574\u7684\u53c2\u8003\u4ee3\u7801\u8fdb\u884c\u5de9\u56fa\u590d\u4e60\u3002"}]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state.list;return u.a.createElement("div",{className:"pro_container"},u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),u.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),u.a.createElement("ul",null,e.map(function(e,t){return u.a.createElement("li",{key:t,className:"q_item"},u.a.createElement("div",{className:"q"}," ",u.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",u.a.createElement("span",null)),u.a.createElement("div",{className:"a__container"},u.a.createElement("div",null,"A\uff1a"),u.a.createElement("p",null,e.a)))})))}}]),t}(l.Component)),v=(a(1254),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(c)))).state={screenshots:["https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_1.png","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_2.png","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_3.png"]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){return u.a.createElement("div",{id:"selection"},u.a.createElement("h2",null,"\u7cbe / \u9009 / \u4e60 / \u9898"),u.a.createElement("ul",null,this.state.screenshots.map(function(e,t){return u.a.createElement("li",{key:t},u.a.createElement("img",{src:e,alt:""}))})))}}]),t}(l.Component)),g=(a(1255),function(e){function t(){return Object(s.a)(this,t),Object(i.a)(this,Object(r.a)(t).apply(this,arguments))}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){return u.a.createElement("div",{className:"mask_container"},u.a.createElement("div",{className:"content"},u.a.createElement("p",{className:"title"},"\u6e29\u99a8\u63d0\u793a"),1===this.props.type?u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"tip"},"\u5f53\u524d\u73af\u5883\u6682\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u60a8\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebfPC\u7aef\u4f53\u9a8c\u8bfe\u7a0b\u3002")):u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"tip"},"\u5f53\u524d\u73af\u5883\u6682\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u60a8\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebfPC\u7aef\u5b66\u4e60\u8bfe\u7a0b\u3002")),u.a.createElement("img",{onClick:this.props.closePop,className:"close_btn",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/bottom_close.png",alt:""})))}}]),t}(l.Component)),j=(a(1256),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(c)))).state={projects:[{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_1.png",title:" \u57fa\u4e8eKNN\u7684\u7535\u5f71\u63a8\u8350\u7cfb\u7edf",detail:"\u57fa\u4e8eSurprise\u5e93\u4f7f\u7528movielens\u6570\u636e\u96c6\u6784\u5efa\u7535\u5f71\u63a8\u8350\u7cfb\u7edf\u3002\u5728\u6b64\u4e4b\u524d\uff0c\u4f60\u8fd8\u5c06\u5b66\u4e60K\u8fd1\u90bb\u7b97\u6cd5\u3001\u534f\u540c\u8fc7\u6ee4\u4e0e\u63a8\u8350\u7cfb\u7edf\u7684\u672c\u8d28\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_2.png",title:" \u4f7f\u7528\u7ebf\u6027\u56de\u5f52\u9884\u6d4b\u80a1\u7968\u8d70\u52bf",detail:"\u57fa\u4e8eSklearn\u4e2d\u7684\u7ebf\u6027\u56de\u5f52\u5b9e\u73b0Google\u80a1\u7968\u8d70\u52bf\u9884\u6d4b\u3002\u5728\u6b64\u4e4b\u524d\uff0c\u4f60\u8fd8\u5c06\u5b66\u4e60\u7ebf\u6027\u56de\u5f52\u7b97\u6cd5\u7684\u76f8\u5173\u7ec6\u8282\u4e0e\u5bf9\u5e94\u7684\u4ee3\u7801\u5b9e\u6218\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_3.png",title:" \u57fa\u4e8eLR\u7684\u5e7f\u544a\u70b9\u51fb\u7387\u9884\u4f30",detail:"LR\u66fe\u662f\u5404\u5927\u4e92\u8054\u7f51\u516c\u53f8\u5728CTR\u9884\u4f30\u4e0a\u4f7f\u7528\u7684\u4e3b\u6d41\u6a21\u578b\u3002\u5b83\u6709\u7740\u53ef\u89e3\u91ca\u6027\u5f3a\u3001\u6613\u4e8e\u5e76\u884c\u5316\u3001\u4fbf\u4e8e\u5728\u7ebf\u5b66\u4e60\u7b49\u4e0d\u53ef\u66ff\u4ee3\u7684\u4f18\u52bf\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_4.png",title:"\u57fa\u4e8e\u6734\u7d20\u8d1d\u53f6\u65af\u7684\u5783\u573e\u90ae\u4ef6\u8fc7\u6ee4",detail:"\u6587\u672c\u5206\u7c7b\u662fNLP\u9886\u57df\u8f83\u4e3a\u5e38\u89c1\u7684\u4efb\u52a1\uff0c\u672c\u9879\u76ee\u4f7f\u7528\u6734\u7d20\u8d1d\u53f6\u65af\u5bf9\u5783\u573e\u90ae\u4ef6\u548c\u6b63\u5e38\u90ae\u4ef6\u8fdb\u884c\u5206\u7c7b\uff0c\u6d89\u53ca\u5206\u8bcd\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5185\u5bb9\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_5.png",title:" \u57fa\u4e8e\u51b3\u7b56\u6811\u7684\u7528\u6237\u6d41\u5931\u5206\u6790\u9884\u6d4b",detail:"\u7528\u6237\u6d41\u5931\u5206\u6790\u5bf9\u4e8e\u63d0\u5347\u7528\u6237\u6d3b\u8dc3\u5ea6\u6709\u91cd\u8981\u7684\u610f\u4e49\uff0c\u672c\u9879\u76ee\u57fa\u4e8eSklearn\u7684\u51b3\u7b56\u6811\u7b97\u6cd5\u5b9e\u73b0\u6d41\u5931\u7528\u6237\u9884\u6d4b\uff0c\u5e76\u5bf9\u51b3\u7b56\u6811\u8fdb\u884c\u53ef\u89c6\u5316\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_6.png",title:" \u5229\u7528\u968f\u673a\u68ee\u6797\u8bc4\u4f30\u7279\u5f81\u91cd\u8981\u6027",detail:"\u5206\u6790\u7279\u5f81\u91cd\u8981\u6027\u5bf9\u4e8e\u673a\u5668\u5b66\u4e60\u5efa\u6a21\u6709\u91cd\u8981\u7684\u610f\u4e49\uff0c\u672c\u9879\u76ee\u57fa\u4e8eSklearn\u4e2d\u7684\u968f\u673a\u68ee\u6797\u7b97\u6cd5\u8bc4\u4f30UCI\u8461\u8404\u9152\u6570\u636e\u7684\u7279\u5f81\u91cd\u8981\u6027\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_7.png",title:" \u57fa\u4e8eK-means\u5b9e\u73b0\u56fe\u50cf\u5206\u5272",detail:"\u57fa\u4e8eSklearn\u4e2d\u7684Kmeans\u7b97\u6cd5\u5b9e\u73b0\u56fe\u50cf\u5206\u5272\uff0c\u5c06\u4e00\u5e45\u56fe\u50cf\u5206\u89e3\u6210\u4e92\u4e0d\u76f8\u4ea4\u533a\u57df\u7684\u96c6\u5408\uff0c\u672c\u8d28\u4e0a\u662f\u4e00\u79cd\u50cf\u7d20\u805a\u7c7b\u7684\u8fc7\u7a0b\u3002"}],showAll:!1,initialShowCount:7},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state,t=e.showAll,a=e.initialShowCount;return u.a.createElement("div",{id:"in-action"},u.a.createElement("h2",null,"\u9879 / \u76ee / \u5b9e / \u6218"),u.a.createElement("ul",null,this.state.projects.map(function(e,n){return n>=a&&!t?null:u.a.createElement("li",{key:n},u.a.createElement("div",{className:"project-image"},u.a.createElement("img",{src:e.image,alt:""})),u.a.createElement("div",{className:"des"},u.a.createElement("div",{className:"title"},u.a.createElement("span",null,n+1),u.a.createElement("span",null,e.title)),u.a.createElement("p",{className:"detail"},e.detail)))})))}}]),t}(l.Component)),E=a(618),N=a(21),O=a(25);var k,C=Object(N.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(r.a)(t).call(this,e))).signUp=function(){a.statistics(3),a.props.user.hasError?a.toLogin():a.toDetail()},a.tryLearn=function(e){a.statistics(e),a.props.user.hasError?a.toLogin():a.toLearn()},a.toLearn=function(){var e=a.props.backwardVersion;m.d.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(m.c)("id")}).then(function(t){var n=t.data,s=n.code,c=n.msg;200==s?Object(m.c)("version")?e?d.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u4f53\u9a8c",2):Object(m.a)("toLearn",Object(m.c)("id")):a.setState({toApp:!0}):d.a.info(c,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props.backwardVersion,t=Object(m.c)("id");if(Object(m.c)("version"))if(e){d.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u8d2d\u4e70",2);var n=setTimeout(function(){clearTimeout(n),n=null,Object(m.a)("toPay",t)},2e3)}else Object(m.a)("toPay",t);else m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t),{simple:1}):d.a.info(e.data.msg,2)})},a.toLogin=function(){Object(m.c)("version")?Object(m.a)("toLogin"):a.props.history.push("/passport")},a.showAll=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus,allSyllabusShow:!0}),2===e&&a.setState({practice:a.state.allPractice,allPracticeShow:!0})},a.hideSome=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus.slice(0,2),allSyllabusShow:!1}),2===e&&a.setState({practice:a.state.allPractice.slice(0,2),allPracticeShow:!1})},a.getStatus=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"))).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200==n?a.setState({syllabus:s.syllabus.slice(0,2),allSyllabus:s.syllabus,allPractice:s.practice,payMoney:s.course_info.price1,courseInfo:s.course_info}):d.a.info(c)})},a.statistics=function(e){m.d.post("".concat(API.home,"/web/it_click_num/").concat(Object(m.c)("id")),{type:e})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,allPractice:[],toApp:!1,payMoney:0,isOnline:!0,courseInfo:{},isShowChannel:window.sessionStorage.getItem("isShowSiteWindowByChannel")},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&d.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u5b66\u4e60",2)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getStatus(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.syllabus,n=t.allSyllabusShow,s=t.toApp,c=t.payMoney,i=t.isOnline,r=t.courseInfo;return u.a.createElement("div",{className:"python__des"},u.a.createElement("div",{className:"des__start"}),!!r.is_dist&&u.a.createElement(E.a,{courseInfo:r}),u.a.createElement("div",{className:"course__introduce"}),i?u.a.createElement("div",{className:"bottom__btn_group"},u.a.createElement("div",{className:"course__price"},u.a.createElement("div",{className:"money"},c,u.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),u.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",u.a.createElement("div",{className:"triangle"}))),u.a.createElement("div",{className:"btn__group"},u.a.createElement("div",{className:"try__study",onClick:function(){e.tryLearn(2)}},"\u514d\u8d39\u8bd5\u5b66"),u.a.createElement("div",{className:"sign__now",onClick:this.signUp},"\u7acb\u5373\u62a5\u540d"))):u.a.createElement("div",{className:"bottom__btn_group"},u.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),u.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),1==this.state.isShowChannel&&u.a.createElement(O.a,{className:"toapp"}),u.a.createElement(h,null),u.a.createElement(y,{syllabus:a,allSyllabusShow:n,show:this.showAll,hide:this.hideSome}),u.a.createElement(v,null),u.a.createElement(j,null),u.a.createElement(f,null),u.a.createElement(b,{tryLearn:this.tryLearn,isOnline:i}),u.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/di.png",alt:""}),u.a.createElement(_,null),s&&u.a.createElement(g,{type:1,closePop:this.closePop}))}}]),t}(l.Component))||n,w=(a(629),a(631)),P=a.n(w),A=(a(1257),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(r.a)(t).call(this,e))).fetchCourseDetail=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"),"&is_pay=1")).then(function(e){var t=e.data,n=t.data,s=t.code,c=t.msg;200===s?a.setState({courseInfo:n.course_info,syllabus:n.syllabus,learning:n.learning}):d.a.info(c,2)})},a.Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a.onChange=function(e){console.log(e)},a.toPythonHome=function(e){1==e&&a.setState({toApp:!0})},a.toLearn=function(){a.setState({toApp:!0})},a.closePop=function(){a.setState({toApp:!1})},a.state={toApp:!1,courseInfo:"",syllabus:"",learning:"",isShowChannel:window.sessionStorage.getItem("isShowSiteWindowByChannel")},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseDetail()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid,n=this.state,s=n.courseInfo,c=n.syllabus,i=n.learning,r=n.toApp;return u.a.createElement("div",{className:"python-study"},u.a.createElement(O.e,{title:"\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe",arrow:!0}),u.a.createElement("div",{className:"python-study__header"},u.a.createElement("div",{className:"python-study__course"},u.a.createElement("h2",{className:"python-study__course-name"},"\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe"),u.a.createElement("p",{className:"python-study__course-contact"},u.a.createElement("span",null,1==s.contact_type?"\u4e0a\u8bfe\u8bf7\u52a0QQ\u5b66\u4e60\u7fa4":"\u6dfb\u52a0\u52a9\u6559\u5fae\u4fe1\u5165\u7fa4","\uff1a",s.course_qq),u.a.createElement("span",null,"\u5e76\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a))),i.schedule>0&&u.a.createElement("div",{className:"python-study__progress"},u.a.createElement("h2",{className:"python-study__progress-title"},"\u5b66\u4e60\u8fdb\u5ea6",!!i.day&&u.a.createElement("span",null,"\uff08\u5df2\u8fde\u7eed\u5b66\u4e60",u.a.createElement("span",null,i.day),"\u5929\uff09")),u.a.createElement("div",{className:"python-study__progress-bar"},u.a.createElement("i",{style:{width:i.schedule+"%"}}),u.a.createElement("span",{className:"python-study__progress-tip",style:{left:i.schedule+"%"}},i.schedule+"%"))),1==this.state.isShowChannel&&u.a.createElement(O.a,{className:"toapp"})),!!s.is_dist&&u.a.createElement("div",{className:"dist-wrapper"},u.a.createElement(E.a,{courseInfo:s})),u.a.createElement(P.a,{defaultActiveKey:"0",className:"python-study__stage",onChange:this.onChange},c&&c.length>0&&c.map(function(t,a){var n="\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5\uff1a").concat(t.name);return u.a.createElement(P.a.Panel,{header:n,className:"pad",key:a},t.lessons&&t.lessons.length>0&&t.lessons.map(function(t,a){return u.a.createElement("div",{key:a},u.a.createElement("h2",{className:"python-study__pass"},"\u7b2c",t.shut,"\u5173 ",t.name,1==t.complete&&u.a.createElement("i",{className:"python-study__pass-tag"},"\u95ef\u5173\u5b8c\u6210")),u.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.info.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.info.is_unlock)},key:a},u.a.createElement("img",{className:"python-study__subject-icon",src:t.info.img_url,alt:""}),1==t.info.is_unlock&&1==t.info.complete&&u.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),0==t.info.is_unlock&&u.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),u.a.createElement("div",{className:"python-study__subject-content"},u.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.info.name))),t.project&&u.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.project.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.project.is_unlock)}},u.a.createElement("img",{className:"python-study__subject-icon",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project-icon.png",alt:""}),1==t.project.is_unlock&&1==t.project.complete&&u.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),1==t.project.is_unlock&&0==t.project.complete&&u.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),u.a.createElement("div",{className:"python-study__subject-content"},u.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.project.name),1==t.project.is_must&&u.a.createElement("span",{className:"python-study__subject-tag"},"\u5fc5\u505a\u7ec3\u4e60"))))}))})),0==i.schedule&&u.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u5f00\u59cb\u5b66\u4e60"),0!=i.schedule&&100!=i.schedule&&u.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u7ee7\u7eed\u5b66\u4e60"),100==i.schedule&&u.a.createElement("button",{className:"python-study__button python-study__over"},"\u5df2\u5b66\u5b8c\u5168\u90e8\u8bfe\u65f6"),r&&u.a.createElement(g,{closePop:this.closePop,type:2}))}}]),t}(l.Component)),S=Object(N.b)(function(e){return{user:e.user}},null)(A),I=a(52),x=a(35),L=a.n(x),R=a(26),K=Object(N.b)(function(e){return{user:e.user}},{setCurrentUser:R.g,startFetchUser:R.h})(k=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(i.a)(this,Object(r.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(I.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){L.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),L.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),L.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),L.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),L.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),L.a.get("token")&&L.a.get("uid")&&(a.setState({isAppUpdate:!0}),a.fetchCourseInfo()),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.fetchCourseInfo=function(){var e=Object(m.c)("id");m.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(t){var n=t.data,s=n.data;if(200===n.code){var c=Object(m.c)("version");if(c)if(c=c.replace(/\./g,"").slice(0,3),m.b.isAndroidApp&&c<453)a.setState({backwardVersion:!0,isPay:0});else if(m.b.isIOSApp&&c<380)a.setState({backwardVersion:!0,isPay:0});else{if(1===s.course_info.is_pay)return void Object(m.a)("toSyllabusChapter",e);a.setState({backwardVersion:!1,isPay:s.course_info.is_pay})}else a.setState({backwardVersion:!1,isPay:s.course_info.is_pay})}})},a.state={isPay:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){document.title="\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe [\u7cbe\u8bb27\u5927\u7ecf\u5178\u7b97\u6cd5\uff0c\u5728\u7ebf\u7f16\u7a0b\uff0c\u65e0\u9700\u5b89\u88c5\u73af\u5883\uff0c\u4f1a python \u5373\u53ef\u5b66\u4e60] - \u4e03\u6708\u5728\u7ebf";var e=this;this.fetchCourseInfo(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.isAppUpdate,n=e.backwardVersion;return u.a.createElement("div",null,0===t&&u.a.createElement(C,{backwardVersion:n,history:this.props.history,isAppUpdate:a,isPay:t}),1===t&&!Object(m.c)("version")&&u.a.createElement(S,{isAppUpdate:a}))}}]),t}(l.Component))||k;t.default=K},618:function(e,t,a){"use strict";a(91);var n=a(27),s=a.n(n),c=(a(37),a(11)),i=a.n(c),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),p=a(0),d=a.n(p),h=(a(641),a(3)),y=a(21),f=a(45),b=a(24),_=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(l.a)(this,Object(u.a)(t).call(this,e))).getRankList=function(){h.d.get("".concat(API.home,"/dist/rankList/").concat(Object(h.c)("id"))).then(function(e){200===e.data.code?a.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):i.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(h.c)("id")};h.d.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?a.setState({code:e.data.data.code}):i.a.info(e.data.msg,2)})}},a.share=function(e){var t=a.props.user,n=t&&t.data&&t.data.uid;if(n){var s=Object(h.c)("id"),c=e.dist_first_level_ti,i=a.state.code;a.props.history.push("/shareposter?courseId=".concat(s,"&dist_first=").concat(c,"&uid=").concat(n,"&dist_code=").concat(i))}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(m.a)(t,e),Object(o.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 d.a.createElement("div",{className:"share-ranking"},d.a.createElement(s.a,{className:"share-container",justify:"between"},d.a.createElement(s.a,{className:"share-list"},d.a.createElement("span",{className:"title"},"\u6392\u884c\u699c\uff1a"),d.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 d.a.createElement("span",{key:t,className:"ranking-mess"},d.a.createElement("img",{src:e.head_imgurl,alt:""}),d.a.createElement("i",null,e.amount,"\u5143"))}))),d.a.createElement(s.a,{className:"share-money",justify:"between",align:"center"},d.a.createElement("img",{onClick:this.openRanking,className:"ranking-ellipsis",src:"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png",alt:""}),d.a.createElement("button",{className:"share",onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143"))),this.state.shareRank&&d.a.createElement("div",{className:"shareMbc"},d.a.createElement("div",{className:"content"},d.a.createElement("div",{className:"title-box"},d.a.createElement("span",{className:"lable"},"\u8d5a\u94b1\u6392\u884c\u699c"),d.a.createElement("span",{className:"tips"},"\u53ea\u5c55\u793a\u524d9\u540d\u7528\u6237")),d.a.createElement("ul",null,this.state.list&&this.state.list.length>0&&this.state.list.map(function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("img",{src:e.head_imgurl,alt:""}),d.a.createElement("span",{className:"course-title"},e.user_name),d.a.createElement("span",{className:"course-price"},e.amount,"\u5143"))})),d.a.createElement("div",{className:"shareBtn"},d.a.createElement("button",{onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143")),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))))}}]),t}(p.Component);t.a=Object(b.d)(Object(y.b)(function(e){return{user:e.user}},null),f.g)(_)},629:function(e,t,a){"use strict";a(49),a(630)},630:function(e,t,a){},631:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(a(12)),s=u(a(15)),c=u(a(13)),i=u(a(16)),r=a(643),o=u(r),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(0));function u(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(){return(0,n.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,i.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){return l.createElement(o.default,this.props)}}]),t}(l.Component);t.default=m,m.Panel=r.Panel,m.defaultProps={prefixCls:"am-accordion"},e.exports=t.default},641:function(e,t,a){},643:function(e,t,a){"use strict";a.r(t);var n=a(0),s=a.n(n),c=a(2),i=a.n(c),r=a(18),o=a.n(r),l=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}}();function u(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,n["Component"]),l(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.forceRender||this.props.isActive||e.isActive}},{key:"render",value:function(){var e;if(this._isActived=this.props.forceRender||this._isActived||this.props.isActive,!this._isActived)return null;var t=this.props,a=t.prefixCls,n=t.isActive,c=t.children,i=t.destroyInactivePanel,r=t.forceRender,l=t.role,m=o()((u(e={},a+"-content",!0),u(e,a+"-content-active",n),u(e,a+"-content-inactive",!n),e)),p=r||n||!i?s.a.createElement("div",{className:a+"-content-box"},c):null;return s.a.createElement("div",{className:m,role:l},p)}}]),t}();m.propTypes={prefixCls:i.a.string,isActive:i.a.bool,children:i.a.any,destroyInactivePanel:i.a.bool,forceRender:i.a.bool,role:i.a.string};var p=m,d=a(85),h=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}}();function y(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function f(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}var b=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,c=Array(s),i=0;i<s;i++)c[i]=arguments[i];return a=n=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),n.handleItemClick=function(){n.props.onItemClick&&n.props.onItemClick()},n.handleKeyPress=function(e){"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||n.handleItemClick()},f(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,n["Component"]),h(t,[{key:"render",value:function(){var e,t=this.props,a=t.className,n=t.id,c=t.style,i=t.prefixCls,r=t.header,l=t.headerClass,u=t.children,m=t.isActive,h=t.showArrow,f=t.destroyInactivePanel,b=t.disabled,_=t.accordion,v=t.forceRender,g=o()(i+"-header",y({},l,l)),j=o()((y(e={},i+"-item",!0),y(e,i+"-item-active",m),y(e,i+"-item-disabled",b),e),a);return s.a.createElement("div",{className:j,style:c,id:n},s.a.createElement("div",{className:g,onClick:this.handleItemClick,role:_?"tab":"button",tabIndex:b?-1:0,"aria-expanded":""+m,onKeyPress:this.handleKeyPress},h&&s.a.createElement("i",{className:"arrow"}),r),s.a.createElement(d.a,{showProp:"isActive",exclusive:!0,component:"",animation:this.props.openAnimation},s.a.createElement(p,{prefixCls:i,isActive:m,destroyInactivePanel:f,forceRender:v,role:_?"tabpanel":null},u)))}}]),t}();b.propTypes={className:i.a.oneOfType([i.a.string,i.a.object]),id:i.a.string,children:i.a.any,openAnimation:i.a.object,prefixCls:i.a.string,header:i.a.oneOfType([i.a.string,i.a.number,i.a.node]),headerClass:i.a.string,showArrow:i.a.bool,isActive:i.a.bool,onItemClick:i.a.func,style:i.a.object,destroyInactivePanel:i.a.bool,disabled:i.a.bool,accordion:i.a.bool,forceRender:i.a.bool},b.defaultProps={showArrow:!0,isActive:!1,destroyInactivePanel:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var _=b,v=a(121);function g(e,t,a,n){var s=void 0;return Object(v.a)(e,a,{start:function(){t?(s=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){e.style.height=(t?s:0)+"px"},end:function(){e.style.height="",n()}})}var j=function(e){return{enter:function(t,a){return g(t,!0,e+"-anim",a)},leave:function(t,a){return g(t,!1,e+"-anim",a)}}},E=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}}();function N(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function O(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t}var k=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=a.props,s=n.activeKey,c=n.defaultActiveKey;return"activeKey"in a.props&&(c=s),a.state={openAnimation:a.props.openAnimation||j(a.props.prefixCls),activeKey:O(c)},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,n["Component"]),E(t,[{key:"componentWillReceiveProps",value:function(e){"activeKey"in e&&this.setState({activeKey:O(e.activeKey)}),"openAnimation"in e&&this.setState({openAnimation:e.openAnimation})}},{key:"onClickItem",value:function(e){var t=this.state.activeKey;if(this.props.accordion)t=t[0]===e?[]:[e];else{var a=(t=[].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}(t))).indexOf(e);a>-1?t.splice(a,1):t.push(e)}this.setActiveKey(t)}},{key:"getItems",value:function(){var e=this,t=this.state.activeKey,a=this.props,c=a.prefixCls,i=a.accordion,r=a.destroyInactivePanel,o=[];return n.Children.forEach(this.props.children,function(a,n){if(a){var l=a.key||String(n),u=a.props,m=u.header,p=u.headerClass,d=u.disabled,h=!1;h=i?t[0]===l:t.indexOf(l)>-1;var y={key:l,header:m,headerClass:p,isActive:h,prefixCls:c,destroyInactivePanel:r,openAnimation:e.state.openAnimation,accordion:i,children:a.props.children,onItemClick:d?null:function(){return e.onClickItem(l)}};o.push(s.a.cloneElement(a,y))}}),o}},{key:"setActiveKey",value:function(e){"activeKey"in this.props||this.setState({activeKey:e}),this.props.onChange(this.props.accordion?e[0]:e)}},{key:"render",value:function(){var e,t=this.props,a=t.prefixCls,n=t.className,c=t.style,i=t.accordion,r=o()((N(e={},a,!0),N(e,n,!!n),e));return s.a.createElement("div",{className:r,style:c,role:i?"tablist":null},this.getItems())}}]),t}();k.propTypes={children:i.a.any,prefixCls:i.a.string,activeKey:i.a.oneOfType([i.a.string,i.a.arrayOf(i.a.string)]),defaultActiveKey:i.a.oneOfType([i.a.string,i.a.arrayOf(i.a.string)]),openAnimation:i.a.object,onChange:i.a.func,accordion:i.a.bool,className:i.a.string,style:i.a.object,destroyInactivePanel:i.a.bool},k.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},k.Panel=_;var C=k;a.d(t,"Panel",function(){return w});t.default=C;var w=C.Panel}}]);
//# sourceMappingURL=48.3cae0429.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([[48],{1248:function(e,t,a){},1249:function(e,t,a){},1250:function(e,t,a){},1251:function(e,t,a){},1252:function(e,t,a){},1253:function(e,t,a){},1254:function(e,t,a){},1255:function(e,t,a){},1256:function(e,t,a){},1257:function(e,t,a){},1304:function(e,t,a){"use strict";a.r(t);var n,s=a(4),c=a(7),r=a(5),i=a(8),o=a(9),l=a(0),u=a.n(l),m=a(3),p=(a(37),a(11)),d=a.n(p),h=(a(1248),a(1249),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(r.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={list:[{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_1.png",text:"0\u95e8\u69db\u4ea4\u4e92\u5f0f\u6388\u8bfe\uff0c\u5b66\u4e60\u50cf\u804a\u5929\u4e00\u6837\u6709\u8da3\uff1b"},{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_2.png",text:"\u539f\u7406\u90e8\u5206\u7ed3\u5408\u56fe\u7247\u548c\u4f8b\u5b50\uff0c\u5185\u5bb9\u8bb2\u89e3\u8be6\u7ec6\uff1b"},{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_3.png",text:"\u4ee3\u7801\u9010\u884c\u8bb2\u89e3\uff0c\u5728\u7ebf\u7f16\u7a0b\uff0cQQ\u7fa4\u7b54\u7591\uff0c\u5b66\u4f1a\u4e3a\u6b62\uff1b"},{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_4.png",text:"\u7cbe\u7f16\u8bfe\u7a0b\u4e60\u9898\uff0c\u7ed3\u5408\u9762\u8bd5\u573a\u666f\uff0c\u592f\u5b9e\u7406\u8bba\u57fa\u7840\uff1b"},{icon:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_5.png",text:"\u7cbe\u9009\u9879\u76ee\u5e72\u8d27\uff0c\u7ed3\u5408\u6240\u5b66\uff0c\u624b\u628a\u624b\u6307\u5bfc\u3002"}]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state.list;return u.a.createElement("div",{className:"description"},u.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png",alt:""}),u.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png",alt:""}),u.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u7279 / \u8272"),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/ml-introduce.png"}),u.a.createElement("ul",{className:"des-list"},e.map(function(e,t){return u.a.createElement("li",{key:t},u.a.createElement("img",{src:e.icon,alt:""}),u.a.createElement("span",null,e.text))})))}}]),t}(l.Component)),y=(a(1250),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(r.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this;return u.a.createElement("div",{className:"study__container"},u.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),u.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),u.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u5b89 / \u6392"),u.a.createElement("div",{className:"table__container"},u.a.createElement("div",{className:"table__head"},u.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),u.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),u.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),u.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return u.a.createElement("div",{className:"item__container",key:a},u.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return u.a.createElement("div",{className:"item__content",key:t},u.a.createElement("div",{className:"content order_number number_center"},e.number),u.a.createElement("div",{className:"content chapter"},e.name),u.a.createElement("div",{className:"content points"},e.info.name))}))})),u.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?u.a.createElement("div",{onClick:function(){return e.props.hide(1)}},u.a.createElement("p",null,"\u6536\u8d77"),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):u.a.createElement("div",{onClick:function(){return e.props.show(1)}},u.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(l.Component)),f=(a(1251),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(i.a)(t).call(this,e))).state={teacherList:[{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png",name:"\u9648\u535a\u58eb",des:"\u4e03\u6708\u5728\u7ebfAI Lab\u8d1f\u8d23\u4eba\u517c\u79d1\u5b66\u5bb6\u3002\u5386\u4efb\u6d6a\u6f6e\u96c6\u56e2\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u56fd\u5bb6\u7535\u7f51\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u5e94\u7528\u65b9\u5411\u56e2\u961f\u8d1f\u8d23\u4eba\u3002\u53c2\u4e0e\u8fc7\u4e00\u56fd\u5bb6863\u9879\u76ee\uff0c\u4e14\u66fe\u4e3b\u6301\u4e00\u5c71\u4e1c\u7701\u81ea\u4e3b\u521b\u65b0\u53ca\u6210\u679c\u8f6c\u5316\u4e13\u9879\uff0c\u53d1\u660e\u4e13\u5229\u5341\u4f59\u9879\uff0c\u4e13\u4e1a\u8bba\u6587\u5341\u4f59\u7bc7\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png",name:"\u5b59\u8001\u5e08",des:"10\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u5148\u540e\u4efb\u804c\u56fd\u5185\u77e5\u540d\u4e92\u8054\u7f51\u4f01\u4e1a\uff0c\u4ece\u4e8b\u4eba\u5de5\u667a\u80fd\u65b9\u5411\u7684\u5b9e\u65bd\uff0c\u64c5\u957f\u5168\u6808\u5f00\u53d1\uff0c\u5c06\u673a\u5668\u5b66\u4e60/\u6df1\u5ea6\u5b66\u4e60\u7ed3\u5408\u5230\u5b9e\u9645\u751f\u4ea7\u8fd0\u8425\u4e2d\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/teacher_3.png",name:"\u9b4f\u8001\u5e08",des:"\u901a\u4fe1\u5de5\u7a0b\u4e13\u4e1a\u6bd5\u4e1a\uff0c\u5728\u6821\u671f\u95f4\u5bf9\u8ba1\u7b97\u673a\u89c6\u89c9\u548c\u673a\u5668\u4eba\u6280\u672f\u6709\u8f83\u591a\u7684\u7814\u7a76\uff0c\u719f\u6089 Pyhton \u548c C++ \u7f16\u7a0b\uff0c\u73b0\u8d1f\u8d23\u4e03\u6708\u5728\u7ebf AI Lab \u63a8\u8350\u7cfb\u7edf\u65b9\u5411\u7684\u6280\u672f\u7814\u7a76\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png",name:"\u73ca\u9171",des:"\u73ed\u4e3b\u4efb\u7684\u5de5\u4f5c\u662f\u4e00\u9879\u975e\u5e38\u8f9b\u82e6\u548c\u7410\u788e\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ed8\u51fa\u8270\u8f9b\u7684\u52b3\u52a8\u548c\u8f9b\u82e6\u7684\u6c57\u6c34\u662f\u4e0d\u4f1a\u6709\u6536\u83b7\u7684\u3002\u5386\u7ecf\u6570\u4e07\u540d\u5b66\u5458\u7684\u4e00\u5bf9\u4e00\u670d\u52a1\uff0c\u59cb\u7ec8\u575a\u6301\u7ed9\u5b66\u5458\u505a\u5230\u6700\u597d\u7684\u670d\u52a1\u548c\u6700\u4e25\u683c\u7684\u8981\u6c42\uff0c\u5b66\u5458\u7684\u70b9\u6ef4\u8fdb\u6b65\u548c\u6210\u957f\u5c31\u662f\u6211\u6700\u5927\u7684\u671f\u671b\uff01"}]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return u.a.createElement("div",{className:"team_container"},u.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),u.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),u.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),u.a.createElement("p",{className:"sub_title"},"\u8bb2\u5e08+\u52a9\u6559+\u73ed\u4e3b\u4efb\u5168\u7a0b\u966a\u4f34\uff0c\u54ea\u91cc\u4e0d\u4f1a\u95ee\u54ea\u91cc"),u.a.createElement("ul",null,e.map(function(e,t){return u.a.createElement("li",{key:t,className:"item_li"},u.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),u.a.createElement("div",{className:"item_info"},u.a.createElement("span",{className:"name"},e.name),u.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(l.Component)),b=(a(1252),function(e){function t(){return Object(s.a)(this,t),Object(r.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return u.a.createElement("div",{className:"experience_container"},u.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"experience"},u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),u.a.createElement("div",null,u.a.createElement("p",null,"\u9650\u65f6\u798f\u5229\u514d\u8d39\u8bd5\u5b66"),u.a.createElement("p",null,"\u5f00\u59cb\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),u.a.createElement("div",{className:"btn",onClick:a},"\u7acb\u5373\u4f53\u9a8c")):u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"experience"},u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),u.a.createElement("div",null,u.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),u.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),u.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(l.Component)),_=(a(1253),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(i.a)(t).call(this,e))).state={list:[{q:"\u8bfe\u7a0b\u5b66\u4e60\u5468\u671f\u662f\u591a\u4e45\uff1f",a:"\u6bcf\u5929\u5b66\u4e601\u5c0f\u65f6\uff0c\u8bfe\u7a0b\u91c7\u7528\u901a\u5173\u5236\u89e3\u9501\u7684\u65b9\u5f0f\uff0c\u6839\u636e\u81ea\u5df1\u7684\u65f6\u95f4\u548c\u5b66\u4e60\u901f\u5ea6\u7075\u6d3b\u8c03\u6574\u3002"},{q:"\u6211\u6ca1\u6709\u673a\u5668\u5b66\u4e60\u57fa\u7840\u53ef\u4ee5\u5b66\u4e60\u5417\uff1f",a:"\u6211\u4eec\u7684\u8bfe\u7a0b\u662f\u9762\u5411\u96f6\u57fa\u7840\u7684\u5c0f\u4f19\u4f34\u8bbe\u8ba1\u7684\uff0c\u5185\u5bb9\u901a\u4fd7\u6613\u61c2\uff0c\u7531\u6d45\u5165\u6df1\uff0c\u5c42\u5c42\u9012\u8fdb\uff0c\u5c3d\u53ef\u80fd\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u6240\u5b66\u77e5\u8bc6\uff0c\u6ca1\u6709\u4efb\u4f55\u57fa\u7840\u662f\u53ef\u4ee5\u5b66\u4e60\u7684\u3002"},{q:"\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u56f0\u96be\u600e\u4e48\u529e\uff1f",a:"\u6211\u4eec\u4e3a\u5b66\u5458\u914d\u5907\u4e86\u4e13\u95e8\u7684\u52a9\u6559\uff0c\u6709\u95ee\u9898\u968f\u65f6\u53ef\u4ee5\u54a8\u8be2\u52a9\u6559\u8001\u5e08\u3002"},{q:"\u9879\u76ee\u5b9e\u6218\u7684\u5f62\u5f0f\u662f\u4ec0\u4e48\u6837\u7684\uff1f",a:"\u9879\u76ee\u5b9e\u6218\u4f1a\u4ee5\u8003\u8bd5\u7684\u5f62\u5f0f\u53d1\u7ed9\u4f60\uff0c\u6bcf\u4e00\u6b65\u90fd\u6709\u8be6\u7ec6\u7684\u6307\u5bfc\u8bf4\u660e\uff1b\u63d0\u4ea4\u8bd5\u5377\u540e\u53ef\u4ee5\u4e0b\u8f7d\u5b8c\u6574\u7684\u53c2\u8003\u4ee3\u7801\u8fdb\u884c\u5de9\u56fa\u590d\u4e60\u3002"}]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state.list;return u.a.createElement("div",{className:"pro_container"},u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),u.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),u.a.createElement("ul",null,e.map(function(e,t){return u.a.createElement("li",{key:t,className:"q_item"},u.a.createElement("div",{className:"q"}," ",u.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",u.a.createElement("span",null)),u.a.createElement("div",{className:"a__container"},u.a.createElement("div",null,"A\uff1a"),u.a.createElement("p",null,e.a)))})))}}]),t}(l.Component)),v=(a(1254),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(r.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={screenshots:["https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_1.png","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_2.png","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_3.png"]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){return u.a.createElement("div",{id:"selection"},u.a.createElement("h2",null,"\u7cbe / \u9009 / \u4e60 / \u9898"),u.a.createElement("ul",null,this.state.screenshots.map(function(e,t){return u.a.createElement("li",{key:t},u.a.createElement("img",{src:e,alt:""}))})))}}]),t}(l.Component)),g=(a(1255),function(e){function t(){return Object(s.a)(this,t),Object(r.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){return u.a.createElement("div",{className:"mask_container"},u.a.createElement("div",{className:"content"},u.a.createElement("p",{className:"title"},"\u6e29\u99a8\u63d0\u793a"),1===this.props.type?u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"tip"},"\u5f53\u524d\u73af\u5883\u6682\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u60a8\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebfPC\u7aef\u4f53\u9a8c\u8bfe\u7a0b\u3002")):u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"tip"},"\u5f53\u524d\u73af\u5883\u6682\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u60a8\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebfPC\u7aef\u5b66\u4e60\u8bfe\u7a0b\u3002")),u.a.createElement("img",{onClick:this.props.closePop,className:"close_btn",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/bottom_close.png",alt:""})))}}]),t}(l.Component)),j=(a(1256),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(r.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).state={projects:[{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_1.png",title:" \u57fa\u4e8eKNN\u7684\u7535\u5f71\u63a8\u8350\u7cfb\u7edf",detail:"\u57fa\u4e8eSurprise\u5e93\u4f7f\u7528movielens\u6570\u636e\u96c6\u6784\u5efa\u7535\u5f71\u63a8\u8350\u7cfb\u7edf\u3002\u5728\u6b64\u4e4b\u524d\uff0c\u4f60\u8fd8\u5c06\u5b66\u4e60K\u8fd1\u90bb\u7b97\u6cd5\u3001\u534f\u540c\u8fc7\u6ee4\u4e0e\u63a8\u8350\u7cfb\u7edf\u7684\u672c\u8d28\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_2.png",title:" \u4f7f\u7528\u7ebf\u6027\u56de\u5f52\u9884\u6d4b\u80a1\u7968\u8d70\u52bf",detail:"\u57fa\u4e8eSklearn\u4e2d\u7684\u7ebf\u6027\u56de\u5f52\u5b9e\u73b0Google\u80a1\u7968\u8d70\u52bf\u9884\u6d4b\u3002\u5728\u6b64\u4e4b\u524d\uff0c\u4f60\u8fd8\u5c06\u5b66\u4e60\u7ebf\u6027\u56de\u5f52\u7b97\u6cd5\u7684\u76f8\u5173\u7ec6\u8282\u4e0e\u5bf9\u5e94\u7684\u4ee3\u7801\u5b9e\u6218\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_3.png",title:" \u57fa\u4e8eLR\u7684\u5e7f\u544a\u70b9\u51fb\u7387\u9884\u4f30",detail:"LR\u66fe\u662f\u5404\u5927\u4e92\u8054\u7f51\u516c\u53f8\u5728CTR\u9884\u4f30\u4e0a\u4f7f\u7528\u7684\u4e3b\u6d41\u6a21\u578b\u3002\u5b83\u6709\u7740\u53ef\u89e3\u91ca\u6027\u5f3a\u3001\u6613\u4e8e\u5e76\u884c\u5316\u3001\u4fbf\u4e8e\u5728\u7ebf\u5b66\u4e60\u7b49\u4e0d\u53ef\u66ff\u4ee3\u7684\u4f18\u52bf\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_4.png",title:"\u57fa\u4e8e\u6734\u7d20\u8d1d\u53f6\u65af\u7684\u5783\u573e\u90ae\u4ef6\u8fc7\u6ee4",detail:"\u6587\u672c\u5206\u7c7b\u662fNLP\u9886\u57df\u8f83\u4e3a\u5e38\u89c1\u7684\u4efb\u52a1\uff0c\u672c\u9879\u76ee\u4f7f\u7528\u6734\u7d20\u8d1d\u53f6\u65af\u5bf9\u5783\u573e\u90ae\u4ef6\u548c\u6b63\u5e38\u90ae\u4ef6\u8fdb\u884c\u5206\u7c7b\uff0c\u6d89\u53ca\u5206\u8bcd\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5185\u5bb9\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_5.png",title:" \u57fa\u4e8e\u51b3\u7b56\u6811\u7684\u7528\u6237\u6d41\u5931\u5206\u6790\u9884\u6d4b",detail:"\u7528\u6237\u6d41\u5931\u5206\u6790\u5bf9\u4e8e\u63d0\u5347\u7528\u6237\u6d3b\u8dc3\u5ea6\u6709\u91cd\u8981\u7684\u610f\u4e49\uff0c\u672c\u9879\u76ee\u57fa\u4e8eSklearn\u7684\u51b3\u7b56\u6811\u7b97\u6cd5\u5b9e\u73b0\u6d41\u5931\u7528\u6237\u9884\u6d4b\uff0c\u5e76\u5bf9\u51b3\u7b56\u6811\u8fdb\u884c\u53ef\u89c6\u5316\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_6.png",title:" \u5229\u7528\u968f\u673a\u68ee\u6797\u8bc4\u4f30\u7279\u5f81\u91cd\u8981\u6027",detail:"\u5206\u6790\u7279\u5f81\u91cd\u8981\u6027\u5bf9\u4e8e\u673a\u5668\u5b66\u4e60\u5efa\u6a21\u6709\u91cd\u8981\u7684\u610f\u4e49\uff0c\u672c\u9879\u76ee\u57fa\u4e8eSklearn\u4e2d\u7684\u968f\u673a\u68ee\u6797\u7b97\u6cd5\u8bc4\u4f30UCI\u8461\u8404\u9152\u6570\u636e\u7684\u7279\u5f81\u91cd\u8981\u6027\u3002"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_7.png",title:" \u57fa\u4e8eK-means\u5b9e\u73b0\u56fe\u50cf\u5206\u5272",detail:"\u57fa\u4e8eSklearn\u4e2d\u7684Kmeans\u7b97\u6cd5\u5b9e\u73b0\u56fe\u50cf\u5206\u5272\uff0c\u5c06\u4e00\u5e45\u56fe\u50cf\u5206\u89e3\u6210\u4e92\u4e0d\u76f8\u4ea4\u533a\u57df\u7684\u96c6\u5408\uff0c\u672c\u8d28\u4e0a\u662f\u4e00\u79cd\u50cf\u7d20\u805a\u7c7b\u7684\u8fc7\u7a0b\u3002"}],showAll:!1,initialShowCount:7},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.state,t=e.showAll,a=e.initialShowCount;return u.a.createElement("div",{id:"in-action"},u.a.createElement("h2",null,"\u9879 / \u76ee / \u5b9e / \u6218"),u.a.createElement("ul",null,this.state.projects.map(function(e,n){return n>=a&&!t?null:u.a.createElement("li",{key:n},u.a.createElement("div",{className:"project-image"},u.a.createElement("img",{src:e.image,alt:""})),u.a.createElement("div",{className:"des"},u.a.createElement("div",{className:"title"},u.a.createElement("span",null,n+1),u.a.createElement("span",null,e.title)),u.a.createElement("p",{className:"detail"},e.detail)))})))}}]),t}(l.Component)),E=a(618),N=a(21),O=a(25);var k,C=Object(N.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(i.a)(t).call(this,e))).signUp=function(){a.props.user.hasError?a.toLogin():a.toDetail()},a.tryLearn=function(){a.props.user.hasError?a.toLogin():a.toLearn()},a.toLearn=function(){var e=a.props.backwardVersion;m.d.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(m.c)("id")}).then(function(t){var n=t.data,s=n.code,c=n.msg;200==s?Object(m.c)("version")?e?d.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u4f53\u9a8c",2):Object(m.a)("toLearn",Object(m.c)("id")):a.setState({toApp:!0}):d.a.info(c,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props.backwardVersion,t=Object(m.c)("id");if(Object(m.c)("version"))if(e){d.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u8d2d\u4e70",2);var n=setTimeout(function(){clearTimeout(n),n=null,Object(m.a)("toPay",t)},2e3)}else Object(m.a)("toPay",t);else m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t),{simple:1}):d.a.info(e.data.msg,2)})},a.toLogin=function(){Object(m.c)("version")?Object(m.a)("toLogin"):a.props.history.push("/passport")},a.showAll=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus,allSyllabusShow:!0}),2===e&&a.setState({practice:a.state.allPractice,allPracticeShow:!0})},a.hideSome=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus.slice(0,2),allSyllabusShow:!1}),2===e&&a.setState({practice:a.state.allPractice.slice(0,2),allPracticeShow:!1})},a.getStatus=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"))).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200==n?a.setState({syllabus:s.syllabus.slice(0,2),allSyllabus:s.syllabus,allPractice:s.practice,payMoney:s.course_info.price1,courseInfo:s.course_info}):d.a.info(c)})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,allPractice:[],toApp:!1,payMoney:0,isOnline:!0,courseInfo:{}},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&d.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u5b66\u4e60",2)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getStatus(),!1)}},{key:"render",value:function(){var e=this.state,t=e.syllabus,a=e.allSyllabusShow,n=e.toApp,s=e.payMoney,c=e.isOnline,r=e.courseInfo;return u.a.createElement("div",{className:"python__des"},u.a.createElement("div",{className:"des__start"}),!!r.is_dist&&u.a.createElement(E.a,{courseInfo:r}),u.a.createElement("div",{className:"course__introduce"}),c?u.a.createElement("div",{className:"bottom__btn_group"},u.a.createElement("div",{className:"course__price"},u.a.createElement("div",{className:"money"},s,u.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),u.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",u.a.createElement("div",{className:"triangle"}))),u.a.createElement("div",{className:"btn__group"},u.a.createElement("div",{className:"try__study",onClick:this.tryLearn},"\u514d\u8d39\u8bd5\u5b66"),u.a.createElement("div",{className:"sign__now",onClick:this.signUp},"\u7acb\u5373\u62a5\u540d"))):u.a.createElement("div",{className:"bottom__btn_group"},u.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),u.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),u.a.createElement(O.a,{className:"toapp"}),u.a.createElement(h,null),u.a.createElement(y,{syllabus:t,allSyllabusShow:a,show:this.showAll,hide:this.hideSome}),u.a.createElement(v,null),u.a.createElement(j,null),u.a.createElement(f,null),u.a.createElement(b,{tryLearn:this.tryLearn,isOnline:c}),u.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/di.png",alt:""}),u.a.createElement(_,null),n&&u.a.createElement(g,{type:1,closePop:this.closePop}))}}]),t}(l.Component))||n,w=(a(629),a(631)),P=a.n(w),A=(a(1257),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(i.a)(t).call(this,e))).fetchCourseDetail=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"),"&is_pay=1")).then(function(e){var t=e.data,n=t.data,s=t.code,c=t.msg;200===s?a.setState({courseInfo:n.course_info,syllabus:n.syllabus,learning:n.learning}):d.a.info(c,2)})},a.Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a.onChange=function(e){console.log(e)},a.toPythonHome=function(e){1==e&&a.setState({toApp:!0})},a.toLearn=function(){a.setState({toApp:!0})},a.closePop=function(){a.setState({toApp:!1})},a.state={toApp:!1,courseInfo:"",syllabus:"",learning:""},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseDetail()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid,n=this.state,s=n.courseInfo,c=n.syllabus,r=n.learning,i=n.toApp;return u.a.createElement("div",{className:"python-study"},u.a.createElement(O.e,{title:"\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe",arrow:!0}),u.a.createElement("div",{className:"python-study__header"},u.a.createElement("div",{className:"python-study__course"},u.a.createElement("h2",{className:"python-study__course-name"},"\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe"),u.a.createElement("p",{className:"python-study__course-contact"},u.a.createElement("span",null,1==s.contact_type?"\u4e0a\u8bfe\u8bf7\u52a0QQ\u5b66\u4e60\u7fa4":"\u6dfb\u52a0\u52a9\u6559\u5fae\u4fe1\u5165\u7fa4","\uff1a",s.course_qq),u.a.createElement("span",null,"\u5e76\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a))),r.schedule>0&&u.a.createElement("div",{className:"python-study__progress"},u.a.createElement("h2",{className:"python-study__progress-title"},"\u5b66\u4e60\u8fdb\u5ea6",!!r.day&&u.a.createElement("span",null,"\uff08\u5df2\u8fde\u7eed\u5b66\u4e60",u.a.createElement("span",null,r.day),"\u5929\uff09")),u.a.createElement("div",{className:"python-study__progress-bar"},u.a.createElement("i",{style:{width:r.schedule+"%"}}),u.a.createElement("span",{className:"python-study__progress-tip",style:{left:r.schedule+"%"}},r.schedule+"%"))),u.a.createElement(O.a,{className:"toapp"})),!!s.is_dist&&u.a.createElement("div",{className:"dist-wrapper"},u.a.createElement(E.a,{courseInfo:s})),u.a.createElement(P.a,{defaultActiveKey:"0",className:"python-study__stage",onChange:this.onChange},c&&c.length>0&&c.map(function(t,a){var n="\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5\uff1a").concat(t.name);return u.a.createElement(P.a.Panel,{header:n,className:"pad",key:a},t.lessons&&t.lessons.length>0&&t.lessons.map(function(t,a){return u.a.createElement("div",{key:a},u.a.createElement("h2",{className:"python-study__pass"},"\u7b2c",t.shut,"\u5173 ",t.name,1==t.complete&&u.a.createElement("i",{className:"python-study__pass-tag"},"\u95ef\u5173\u5b8c\u6210")),u.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.info.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.info.is_unlock)},key:a},u.a.createElement("img",{className:"python-study__subject-icon",src:t.info.img_url,alt:""}),1==t.info.is_unlock&&1==t.info.complete&&u.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),0==t.info.is_unlock&&u.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),u.a.createElement("div",{className:"python-study__subject-content"},u.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.info.name))),t.project&&u.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.project.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.project.is_unlock)}},u.a.createElement("img",{className:"python-study__subject-icon",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project-icon.png",alt:""}),1==t.project.is_unlock&&1==t.project.complete&&u.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),1==t.project.is_unlock&&0==t.project.complete&&u.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),u.a.createElement("div",{className:"python-study__subject-content"},u.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.project.name),1==t.project.is_must&&u.a.createElement("span",{className:"python-study__subject-tag"},"\u5fc5\u505a\u7ec3\u4e60"))))}))})),0==r.schedule&&u.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u5f00\u59cb\u5b66\u4e60"),0!=r.schedule&&100!=r.schedule&&u.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u7ee7\u7eed\u5b66\u4e60"),100==r.schedule&&u.a.createElement("button",{className:"python-study__button python-study__over"},"\u5df2\u5b66\u5b8c\u5168\u90e8\u8bfe\u65f6"),i&&u.a.createElement(g,{closePop:this.closePop,type:2}))}}]),t}(l.Component)),S=Object(N.b)(function(e){return{user:e.user}},null)(A),I=a(52),x=a(36),L=a.n(x),R=a(26),K=Object(N.b)(function(e){return{user:e.user}},{setCurrentUser:R.g,startFetchUser:R.h})(k=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(r.a)(this,Object(i.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(I.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){L.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),L.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),L.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),L.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),L.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),L.a.get("token")&&L.a.get("uid")&&(a.setState({isAppUpdate:!0}),a.fetchCourseInfo()),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.fetchCourseInfo=function(){var e=Object(m.c)("id");m.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(t){var n=t.data,s=n.data;if(200===n.code){var c=Object(m.c)("version");if(c)if(c=c.replace(/\./g,"").slice(0,3),m.b.isAndroidApp&&c<453)a.setState({backwardVersion:!0,isPay:0});else if(m.b.isIOSApp&&c<380)a.setState({backwardVersion:!0,isPay:0});else{if(1===s.course_info.is_pay)return void Object(m.a)("toSyllabusChapter",e);a.setState({backwardVersion:!1,isPay:s.course_info.is_pay})}else a.setState({backwardVersion:!1,isPay:s.course_info.is_pay})}})},a.state={isPay:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){document.title="\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe [\u7cbe\u8bb27\u5927\u7ecf\u5178\u7b97\u6cd5\uff0c\u5728\u7ebf\u7f16\u7a0b\uff0c\u65e0\u9700\u5b89\u88c5\u73af\u5883\uff0c\u4f1a python \u5373\u53ef\u5b66\u4e60] - \u4e03\u6708\u5728\u7ebf";var e=this;this.fetchCourseInfo(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.isAppUpdate,n=e.backwardVersion;return u.a.createElement("div",null,0===t&&u.a.createElement(C,{backwardVersion:n,history:this.props.history,isAppUpdate:a,isPay:t}),1===t&&!Object(m.c)("version")&&u.a.createElement(S,{isAppUpdate:a}))}}]),t}(l.Component))||k;t.default=K},618:function(e,t,a){"use strict";a(91);var n=a(27),s=a.n(n),c=(a(37),a(11)),r=a.n(c),i=a(4),o=a(7),l=a(5),u=a(8),m=a(9),p=a(0),d=a.n(p),h=(a(641),a(3)),y=a(21),f=a(45),b=a(24),_=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(u.a)(t).call(this,e))).getRankList=function(){h.d.get("".concat(API.home,"/dist/rankList/").concat(Object(h.c)("id"))).then(function(e){200===e.data.code?a.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):r.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(h.c)("id")};h.d.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?a.setState({code:e.data.data.code}):r.a.info(e.data.msg,2)})}},a.share=function(e){var t=a.props.user,n=t&&t.data&&t.data.uid;if(n){var s=Object(h.c)("id"),c=e.dist_first_level_ti,r=a.state.code;a.props.history.push("/shareposter?courseId=".concat(s,"&dist_first=").concat(c,"&uid=").concat(n,"&dist_code=").concat(r))}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(m.a)(t,e),Object(o.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 d.a.createElement("div",{className:"share-ranking"},d.a.createElement(s.a,{className:"share-container",justify:"between"},d.a.createElement(s.a,{className:"share-list"},d.a.createElement("span",{className:"title"},"\u6392\u884c\u699c\uff1a"),d.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 d.a.createElement("span",{key:t,className:"ranking-mess"},d.a.createElement("img",{src:e.head_imgurl,alt:""}),d.a.createElement("i",null,e.amount,"\u5143"))}))),d.a.createElement(s.a,{className:"share-money",justify:"between",align:"center"},d.a.createElement("img",{onClick:this.openRanking,className:"ranking-ellipsis",src:"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png",alt:""}),d.a.createElement("button",{className:"share",onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143"))),this.state.shareRank&&d.a.createElement("div",{className:"shareMbc"},d.a.createElement("div",{className:"content"},d.a.createElement("div",{className:"title-box"},d.a.createElement("span",{className:"lable"},"\u8d5a\u94b1\u6392\u884c\u699c"),d.a.createElement("span",{className:"tips"},"\u53ea\u5c55\u793a\u524d9\u540d\u7528\u6237")),d.a.createElement("ul",null,this.state.list&&this.state.list.length>0&&this.state.list.map(function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("img",{src:e.head_imgurl,alt:""}),d.a.createElement("span",{className:"course-title"},e.user_name),d.a.createElement("span",{className:"course-price"},e.amount,"\u5143"))})),d.a.createElement("div",{className:"shareBtn"},d.a.createElement("button",{onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143")),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))))}}]),t}(p.Component);t.a=Object(b.d)(Object(y.b)(function(e){return{user:e.user}},null),f.g)(_)},629:function(e,t,a){"use strict";a(49),a(630)},630:function(e,t,a){},631:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(a(12)),s=u(a(15)),c=u(a(13)),r=u(a(16)),i=a(643),o=u(i),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(0));function u(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(){return(0,n.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,r.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){return l.createElement(o.default,this.props)}}]),t}(l.Component);t.default=m,m.Panel=i.Panel,m.defaultProps={prefixCls:"am-accordion"},e.exports=t.default},641:function(e,t,a){},643:function(e,t,a){"use strict";a.r(t);var n=a(0),s=a.n(n),c=a(2),r=a.n(c),i=a(18),o=a.n(i),l=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}}();function u(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,n["Component"]),l(t,[{key:"shouldComponentUpdate",value:function(e){return this.props.forceRender||this.props.isActive||e.isActive}},{key:"render",value:function(){var e;if(this._isActived=this.props.forceRender||this._isActived||this.props.isActive,!this._isActived)return null;var t=this.props,a=t.prefixCls,n=t.isActive,c=t.children,r=t.destroyInactivePanel,i=t.forceRender,l=t.role,m=o()((u(e={},a+"-content",!0),u(e,a+"-content-active",n),u(e,a+"-content-inactive",!n),e)),p=i||n||!r?s.a.createElement("div",{className:a+"-content-box"},c):null;return s.a.createElement("div",{className:m,role:l},p)}}]),t}();m.propTypes={prefixCls:r.a.string,isActive:r.a.bool,children:r.a.any,destroyInactivePanel:r.a.bool,forceRender:r.a.bool,role:r.a.string};var p=m,d=a(85),h=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}}();function y(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function f(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}var b=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,c=Array(s),r=0;r<s;r++)c[r]=arguments[r];return a=n=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),n.handleItemClick=function(){n.props.onItemClick&&n.props.onItemClick()},n.handleKeyPress=function(e){"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||n.handleItemClick()},f(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,n["Component"]),h(t,[{key:"render",value:function(){var e,t=this.props,a=t.className,n=t.id,c=t.style,r=t.prefixCls,i=t.header,l=t.headerClass,u=t.children,m=t.isActive,h=t.showArrow,f=t.destroyInactivePanel,b=t.disabled,_=t.accordion,v=t.forceRender,g=o()(r+"-header",y({},l,l)),j=o()((y(e={},r+"-item",!0),y(e,r+"-item-active",m),y(e,r+"-item-disabled",b),e),a);return s.a.createElement("div",{className:j,style:c,id:n},s.a.createElement("div",{className:g,onClick:this.handleItemClick,role:_?"tab":"button",tabIndex:b?-1:0,"aria-expanded":""+m,onKeyPress:this.handleKeyPress},h&&s.a.createElement("i",{className:"arrow"}),i),s.a.createElement(d.a,{showProp:"isActive",exclusive:!0,component:"",animation:this.props.openAnimation},s.a.createElement(p,{prefixCls:r,isActive:m,destroyInactivePanel:f,forceRender:v,role:_?"tabpanel":null},u)))}}]),t}();b.propTypes={className:r.a.oneOfType([r.a.string,r.a.object]),id:r.a.string,children:r.a.any,openAnimation:r.a.object,prefixCls:r.a.string,header:r.a.oneOfType([r.a.string,r.a.number,r.a.node]),headerClass:r.a.string,showArrow:r.a.bool,isActive:r.a.bool,onItemClick:r.a.func,style:r.a.object,destroyInactivePanel:r.a.bool,disabled:r.a.bool,accordion:r.a.bool,forceRender:r.a.bool},b.defaultProps={showArrow:!0,isActive:!1,destroyInactivePanel:!1,onItemClick:function(){},headerClass:"",forceRender:!1};var _=b,v=a(121);function g(e,t,a,n){var s=void 0;return Object(v.a)(e,a,{start:function(){t?(s=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){e.style.height=(t?s:0)+"px"},end:function(){e.style.height="",n()}})}var j=function(e){return{enter:function(t,a){return g(t,!0,e+"-anim",a)},leave:function(t,a){return g(t,!1,e+"-anim",a)}}},E=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}}();function N(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function O(e){var t=e;return Array.isArray(t)||(t=t?[t]:[]),t}var k=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=a.props,s=n.activeKey,c=n.defaultActiveKey;return"activeKey"in a.props&&(c=s),a.state={openAnimation:a.props.openAnimation||j(a.props.prefixCls),activeKey:O(c)},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,n["Component"]),E(t,[{key:"componentWillReceiveProps",value:function(e){"activeKey"in e&&this.setState({activeKey:O(e.activeKey)}),"openAnimation"in e&&this.setState({openAnimation:e.openAnimation})}},{key:"onClickItem",value:function(e){var t=this.state.activeKey;if(this.props.accordion)t=t[0]===e?[]:[e];else{var a=(t=[].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}(t))).indexOf(e);a>-1?t.splice(a,1):t.push(e)}this.setActiveKey(t)}},{key:"getItems",value:function(){var e=this,t=this.state.activeKey,a=this.props,c=a.prefixCls,r=a.accordion,i=a.destroyInactivePanel,o=[];return n.Children.forEach(this.props.children,function(a,n){if(a){var l=a.key||String(n),u=a.props,m=u.header,p=u.headerClass,d=u.disabled,h=!1;h=r?t[0]===l:t.indexOf(l)>-1;var y={key:l,header:m,headerClass:p,isActive:h,prefixCls:c,destroyInactivePanel:i,openAnimation:e.state.openAnimation,accordion:r,children:a.props.children,onItemClick:d?null:function(){return e.onClickItem(l)}};o.push(s.a.cloneElement(a,y))}}),o}},{key:"setActiveKey",value:function(e){"activeKey"in this.props||this.setState({activeKey:e}),this.props.onChange(this.props.accordion?e[0]:e)}},{key:"render",value:function(){var e,t=this.props,a=t.prefixCls,n=t.className,c=t.style,r=t.accordion,i=o()((N(e={},a,!0),N(e,n,!!n),e));return s.a.createElement("div",{className:i,style:c,role:r?"tablist":null},this.getItems())}}]),t}();k.propTypes={children:r.a.any,prefixCls:r.a.string,activeKey:r.a.oneOfType([r.a.string,r.a.arrayOf(r.a.string)]),defaultActiveKey:r.a.oneOfType([r.a.string,r.a.arrayOf(r.a.string)]),openAnimation:r.a.object,onChange:r.a.func,accordion:r.a.bool,className:r.a.string,style:r.a.object,destroyInactivePanel:r.a.bool},k.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},k.Panel=_;var C=k;a.d(t,"Panel",function(){return w});t.default=C;var w=C.Panel}}]);
//# sourceMappingURL=48.83cf4630.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/ml/pythomDes/Description/index.js","components/ml/pythomDes/Study/index.js","components/ml/pythomDes/Team/index.js","components/ml/pythomDes/Experience/index.js","components/ml/pythomDes/Progream/index.js","components/ml/pythomDes/Selection/index.js","components/ml/poup/index.js","components/ml/pythomDes/InAction/index.js","components/ml/pythomDes/index.js","components/ml/pythonStudy/index.js","components/ml/index.js","components/detail/shareRank/index.js","../node_modules/antd-mobile/lib/accordion/style/css.js","../node_modules/antd-mobile/lib/accordion/index.js","../node_modules/rc-collapse/es/PanelContent.js","../node_modules/rc-collapse/es/Panel.js","../node_modules/rc-collapse/es/openAnimationFactory.js","../node_modules/rc-collapse/es/Collapse.js","../node_modules/rc-collapse/es/index.js"],"names":["Description","state","list","icon","text","this","react_default","a","createElement","className","src","alt","map","item","index","key","Component","Study","Change","data","cn","str","toString","ci","Number","cs","Math","floor","cv","length","replace","_this2","props","syllabus","name","lessons","number","info","allSyllabusShow","onClick","hide","show","Team","_this","Object","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","teacherList","avatar","des","Experience","_this$props","isOnline","tryLearn","Fragment","Progream","q","concat","Selection","screenshots","id","i","Poup","type","closePop","InAction","projects","image","title","detail","showAll","initialShowCount","_this$state","PythonDes","connect","user","signUp","hasError","toLogin","toDetail","toLearn","backwardVersion","http","post","API","course_id","getParam","then","res","_res$data","code","msg","toast_default","SendMessageToApp","setState","toApp","onlyoneUse","setTimeout","clearTimeout","get","errno","history","push","simple","allSyllabus","practice","allPractice","allPracticeShow","hideSome","slice","getStatus","_res$data2","payMoney","course_info","price1","courseInfo","isPay","nextProps","nextState","nextContext","isAppUpdate","is_dist","shareRank","style","fontSize","common","Description_Description","Study_Study","ml_pythomDes_Selection","ml_pythomDes_InAction","Team_Team","Experience_Experience","display","width","height","Progream_Progream","poup_Poup","PythonStudy","fetchCourseDetail","learning","onChange","console","log","toPythonHome","isUnlock","uid","arrow","contact_type","course_qq","schedule","day","left","accordion_default","defaultActiveKey","syllabusItem","header","stage","Panel","lessonsItem","shut","complete","opacity","is_unlock","img_url","data-status","project","is_must","ML","setCurrentUser","startFetchUser","loginInfo","result","userInfoList","appLogin","expires","addDays","Date","cookie","set","token","path","domain","plat","uname","avatar_file","fetchCourseInfo","transformUser","payload","username","isFetching","home","version","browser","isAndroidApp","isIOSApp","is_pay","document","window","ml_pythomDes","ml_pythonStudy","ShareRank","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_4__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__","getRankList","rankingslice","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_3___default","getCode","share","courseId","dist_first","dist_first_level_ti","dist_code","openRanking","colse","_this$props$courseInf","react__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","head_imgurl","amount","align","bind","user_name","compose","withRouter","__webpack_require__","defineProperty","exports","value","_classCallCheck3","_interopRequireDefault","_createClass3","_possibleConstructorReturn3","_inherits3","_rcCollapse","_rcCollapse2","React","obj","__esModule","newObj","prototype","hasOwnProperty","_interopRequireWildcard","default","Accordion","_React$Component","__proto__","apply","arguments","defaultProps","prefixCls","module","_createClass","defineProperties","target","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","_defineProperty","PanelContent_PanelContent","_Component","PanelContent","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","subClass","superClass","create","constructor","setPrototypeOf","_inherits","react","forceRender","isActive","_classnames","_isActived","_props","children","destroyInactivePanel","role","contentCls","classnames_default","child","propTypes","prop_types_default","string","bool","any","es_PanelContent","Panel_createClass","Panel_defineProperty","Panel_possibleConstructorReturn","Panel_CollapsePanel","CollapsePanel","_ref","_temp","Panel_classCallCheck","_len","args","Array","_key","handleItemClick","onItemClick","handleKeyPress","e","keyCode","which","Panel_inherits","_classNames2","headerClass","showArrow","disabled","accordion","headerCls","itemCls","tabIndex","aria-expanded","onKeyPress","Animate","showProp","exclusive","component","animation","openAnimation","oneOfType","object","node","func","animate","transitionName","done","es","start","offsetHeight","active","end","openAnimationFactory","enter","leave","Collapse_createClass","Collapse_defineProperty","toArray","activeKey","currentActiveKey","isArray","Collapse_Collapse","Collapse","Collapse_classCallCheck","Collapse_possibleConstructorReturn","Collapse_inherits","arr","arr2","from","_toConsumableArray","indexOf","splice","setActiveKey","newChildren","forEach","String","_child$props","onClickItem","cloneElement","_classNames","_props2","collapseClassName","getItems","arrayOf","es_Collapse","d","__webpack_exports__","es_Panel"],"mappings":"kaAGqBA,8NAEnBC,MAAQ,CACNC,KAAM,CACJ,CACEC,KAAM,4EACNC,KAAM,iHAER,CACED,KAAM,4EACNC,KAAM,sHAER,CACED,KAAM,4EACNC,KAAM,oIAER,CACED,KAAM,4EACNC,KAAM,kIAER,CACED,KAAM,4EACNC,KAAM,0LAKH,IACAF,EAAQG,KAAKJ,MAAbC,KACP,OACEI,EAAAC,EAAAC,cAAA,OAAKC,UAAW,eACdH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,OAAQC,IAAI,qFAAqFC,IAAI,KACrHL,EAAAC,EAAAC,cAAA,OAAKC,UAAW,QAASC,IAAI,sFAAsFC,IAAI,KACvHL,EAAAC,EAAAC,cAAA,KAAGC,UAAW,SAAd,qCACAH,EAAAC,EAAAC,cAAA,OAAKE,IAAK,gFACVJ,EAAAC,EAAAC,cAAA,MAAIC,UAAW,YAEXP,EAAKU,IAAI,SAACC,EAAKC,GACb,OAAOR,EAAAC,EAAAC,cAAA,MAAIO,IAAKD,GACdR,EAAAC,EAAAC,cAAA,OAAKE,IAAKG,EAAKV,KAAMQ,IAAI,KACzBL,EAAAC,EAAAC,cAAA,YAAOK,EAAKT,kBAxCaY,cCApBC,sNAEnBC,OAAS,SAACC,GACR,IAAIC,EAAK,CAAC,SAAK,SAAK,SAAK,SAAK,SAAK,SAAK,SAAK,SAAK,SAAK,UAEnDC,EAAMF,EAAKG,WACXC,EAAKC,OAAOH,GAAO,GACnBI,EAAKC,KAAKC,MAAMH,OAAOH,GAAO,IAC9BO,EAAK,GAWT,OARQA,EAFJP,EAAIQ,OAAS,EACN,GAAJJ,EACMF,GAAM,EAAIH,EAAG,GAAKA,EAAGG,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C,EAAA/R,EAASwU,OAC1BjM,SAAYwJ,EAAA/R,EAAS0U,KACrBf,UAAa5B,EAAA/R,EAASiS,KACtB/R,UAAa6R,EAAA/R,EAASgS,OACtB1K,MAASyK,EAAA/R,EAASwU,OAClB/C,qBAAwBM,EAAA/R,EAASiS,MAEjC2D,EAAQvG,aAAA,CACRC,UAAA,cACA/G,SAAA,aACAoL,WAAA,EACAlC,sBAAA,GAEAmE,EAAQpM,MAASA,EACF,IAAA2N,EAAA,ECzPftJ,EAAAuJ,EAAAC,EAAA,0BAAAC,IACeD,EAAA,cACJC,EAAQH,EAAQ3N","file":"mrstatic/js/48.83cf4630.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Description extends Component {\n\n state = {\n list: [\n {\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_1.png',\n text: '0门槛交互式授课,学习像聊天一样有趣;'\n },\n {\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_2.png',\n text: '原理部分结合图片和例子,内容讲解详细;'\n },\n {\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_3.png',\n text: '代码逐行讲解,在线编程,QQ群答疑,学会为止;'\n },\n {\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_4.png',\n text: '精编课程习题,结合面试场景,夯实理论基础;'\n },\n {\n icon: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/des_icon_5.png',\n text: '精选项目干货,结合所学,手把手指导。'\n },\n ]\n }\n\n render() {\n const {list} = this.state\n return (\n <div className={'description'}>\n <img className={'left'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png\" alt=\"\"/>\n <img className={'right'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png\" alt=\"\"/>\n <p className={'title'}>课 / 程 / 特 / 色</p>\n <img src={'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/ml-introduce.png'}/>\n <ul className={'des-list'}>\n {\n list.map((item,index) => {\n return <li key={index}>\n <img src={item.icon} alt=\"\"/>\n <span>{item.text}</span>\n </li>\n })\n }\n </ul>\n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Study extends Component {\n\n Change = (data) => {\n let cn = [\"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", '十'];\n let newStr = ''\n let str = data.toString()\n let ci = Number(str) % 10\n let cs = Math.floor(Number(str) / 10)\n let cv = ''\n if (str.length > 1) {\n if(cs==1){\n cv = ci >= 1 ? cn[9] + cn[ci - 1] : cn[9]\n } else {\n cv = ci > 1 ? cn[cs - 1] + cn[9] + cn[ci - 1] : cn[cs - 1] + cn[9]\n }\n } else {\n cv = cn[ci - 1]\n }\n newStr = str.replace(str, cv)\n return newStr;\n }\n\n render() {\n return (\n <div className={'study__container'}>\n <img className={'learn_left'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png\" alt=\"\"/>\n <img className={'learn_bottom'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png\" alt=\"\"/>\n <p className={'title'}>课 / 程 / 安 / 排</p>\n {/*<p className={'sub__title'}>2020年4月20日开班</p>*/}\n <div className={'table__container'}>\n <div className={'table__head'}>\n <div className={'head_title order_number'}>序号</div>\n <div className={'head_title chapter'}>章节</div>\n <div className={'head_title points'}>知识点</div>\n </div>\n <div className={'table__body'}>\n {\n this.props.syllabus.map((item, index)=>{\n return (\n <div className={'item__container'} key={index}>\n <div className={'item__title'}>{ \n '第' + this.Change(index + 1) + '阶段 ' +item.name}</div>\n {\n item.lessons.map((item, index)=>{\n return (\n <div className={'item__content'} key={index}>\n <div className={'content order_number number_center'}>{item.number}</div>\n <div className={'content chapter'}>{item.name}</div>\n <div className={'content points'}>{item.info.name}</div>\n </div>\n )\n })\n }\n </div>\n )\n })\n }\n </div>\n <div className={'table__bottom'}>\n {\n this.props.allSyllabusShow ? (\n <div onClick={() => this.props.hide(1)}>\n <p>收起</p>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png\" alt=\"\"/>\n </div>\n ) : (\n <div onClick={() => this.props.show(1)}>\n <p>展开更多</p>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png\" alt=\"\"/>\n </div>\n )\n }\n </div>\n </div>\n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Team extends Component {\n constructor(props) {\n super(props);\n this.state = {\n teacherList: [\n {\n avatar: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png',\n name: '陈博士',\n des: '七月在线AI Lab负责人兼科学家。历任浪潮集团数据科学家,国家电网人工智能行业应用方向团队负责人。参与过一国家863项目,且曾主持一山东省自主创新及成果转化专项,发明专利十余项,专业论文十余篇。'\n },\n {\n avatar: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png',\n name: '孙老师',\n des: '10多年开发经验,先后任职国内知名互联网企业,从事人工智能方向的实施,擅长全栈开发,将机器学习/深度学习结合到实际生产运营中。'\n },\n {\n avatar: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/teacher_3.png',\n name: '魏老师',\n des: '通信工程专业毕业,在校期间对计算机视觉和机器人技术有较多的研究,熟悉 Pyhton 和 C++ 编程,现负责七月在线 AI Lab 推荐系统方向的技术研究。'\n },\n {\n avatar: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png',\n name: '珊酱',\n des: '班主任的工作是一项非常辛苦和琐碎的工作,不付出艰辛的劳动和辛苦的汗水是不会有收获的。历经数万名学员的一对一服务,始终坚持给学员做到最好的服务和最严格的要求,学员的点滴进步和成长就是我最大的期望!'\n }\n ]\n }\n }\n render() {\n const {teacherList} = this.state;\n return (\n <div className={'team_container'}>\n <img className={'team_top'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png\" alt=\"\"/>\n <img className={'team_bottom'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png\" alt=\"\"/>\n <p className={'title'}>教/学/团/队</p>\n <p className={'sub_title'}>讲师+助教+班主任全程陪伴,哪里不会问哪里</p>\n <ul>\n {\n teacherList.map((item,index)=>{\n return (\n <li key={index} className={'item_li'}>\n <img className={'item_image'} src={item.avatar} alt=\"\"/>\n <div className={'item_info'}>\n <span className={'name'}>{item.name}</span>\n <p className={'des'}>{item.des}</p>\n </div>\n </li>\n )\n })\n }\n </ul>\n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Experience extends Component {\n render() {\n const { isOnline, tryLearn } = this.props;\n return (\n <div className={'experience_container'}>\n <p className={'title'}>试 / 学 / 体 / 验</p>\n\n {\n isOnline\n ? (\n <>\n <div className={'experience'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png\" alt=\"\"/>\n <div>\n <p>限时福利免费试学</p>\n <p>开始颠覆你想象的学习</p>\n </div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png\" alt=\"\"/>\n </div>\n <div className={'btn'} onClick={tryLearn}>立即体验</div>\n </>\n )\n : (\n <>\n <div className={'experience'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png\" alt=\"\"/>\n <div>\n <p>上架后可免费试学</p>\n <p>体验颠覆你想象的学习</p>\n </div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png\" alt=\"\"/>\n </div>\n <div className={'btn btn--online'}>即将上架敬请期待</div>\n </>\n )\n }\n \n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Progream extends Component {\n constructor(props) {\n super(props);\n this.state = {\n list: [\n {\n q: '课程学习周期是多久?',\n a: '每天学习1小时,课程采用通关制解锁的方式,根据自己的时间和学习速度灵活调整。'\n },{\n q: '我没有机器学习基础可以学习吗?',\n a: '我们的课程是面向零基础的小伙伴设计的,内容通俗易懂,由浅入深,层层递进,尽可能帮助大家理解并且掌握所学知识,没有任何基础是可以学习的。'\n },{\n q: '学习过程中遇到了困难怎么办?',\n a: '我们为学员配备了专门的助教,有问题随时可以咨询助教老师。'\n },{\n q: '项目实战的形式是什么样的?',\n a: '项目实战会以考试的形式发给你,每一步都有详细的指导说明;提交试卷后可以下载完整的参考代码进行巩固复习。'\n }\n ]\n }\n }\n render() {\n const {list} = this.state;\n return (\n <div className={'pro_container'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png\" alt=\"\"/>\n <p>常 / 见 / 问 / 题</p>\n <ul>\n {\n list.map((item, index)=>{\n return (<li key={index} className={'q_item'}>\n <div className={'q'}> <p>{`Q:${item.q}`}</p> <span></span></div>\n <div className={'a__container'}>\n <div>A:</div>\n <p>{item.a}</p>\n </div>\n </li>)\n })\n }\n </ul>\n </div>\n )\n }\n}\n","import React, { Component } from 'react';\nimport './index.scss'\n\nclass Selection extends Component {\n state = {\n screenshots: ['https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_1.png', 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_2.png', 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_3.png']\n }\n\n render() {\n return (\n <div id={'selection'}>\n <h2>精 / 选 / 习 / 题</h2>\n <ul>\n {\n this.state.screenshots.map((item, i) => {\n return <li key={i}>\n <img src={item} alt=\"\"/>\n </li>\n })\n }\n </ul>\n </div>\n );\n }\n}\n\nexport default Selection;","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Poup extends Component {\n render() {\n return (\n <div className={'mask_container'}>\n <div className={'content'}>\n <p className={'title'}>温馨提示</p>\n {\n this.props.type === 1 ? (\n <>\n <p className={'tip'}>当前环境暂不支持该课程模式,您可前往七月在线PC端体验课程。</p>\n </>\n ) : (\n <>\n <p className={'tip'}>当前环境暂不支持该课程模式,您可前往七月在线PC端学习课程。</p>\n </>\n )\n }\n <img onClick={this.props.closePop} className={'close_btn'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/bottom_close.png\" alt=\"\"/>\n </div>\n </div>\n )\n }\n}\n","import React, { Component } from 'react';\nimport './index.scss'\n\nclass InAction extends Component {\n state = {\n projects: [\n {\n image: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_1.png',\n title: ' 基于KNN的电影推荐系统',\n detail: '基于Surprise库使用movielens数据集构建电影推荐系统。在此之前,你还将学习K近邻算法、协同过滤与推荐系统的本质。'\n },\n {\n image: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_2.png',\n title: ' 使用线性回归预测股票走势',\n detail: '基于Sklearn中的线性回归实现Google股票走势预测。在此之前,你还将学习线性回归算法的相关细节与对应的代码实战。'\n },\n {\n image: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_3.png',\n title: ' 基于LR的广告点击率预估',\n detail: 'LR曾是各大互联网公司在CTR预估上使用的主流模型。它有着可解释性强、易于并行化、便于在线学习等不可替代的优势。'\n },\n {\n image: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_4.png',\n title: '基于朴素贝叶斯的垃圾邮件过滤',\n detail: '文本分类是NLP领域较为常见的任务,本项目使用朴素贝叶斯对垃圾邮件和正常邮件进行分类,涉及分词和正则表达式的内容。'\n },\n {\n image: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_5.png',\n title: ' 基于决策树的用户流失分析预测',\n detail: '用户流失分析对于提升用户活跃度有重要的意义,本项目基于Sklearn的决策树算法实现流失用户预测,并对决策树进行可视化。'\n },\n {\n image: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_6.png',\n title: ' 利用随机森林评估特征重要性',\n detail: '分析特征重要性对于机器学习建模有重要的意义,本项目基于Sklearn中的随机森林算法评估UCI葡萄酒数据的特征重要性。'\n },\n {\n image: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_7.png',\n title: ' 基于K-means实现图像分割',\n detail: '基于Sklearn中的Kmeans算法实现图像分割,将一幅图像分解成互不相交区域的集合,本质上是一种像素聚类的过程。'\n },\n ],\n showAll: false,\n initialShowCount: 7\n }\n\n render() {\n const {showAll, initialShowCount} = this.state\n\n return (\n <div id={'in-action'}>\n <h2>项 / 目 / 实 / 战</h2>\n <ul>\n {\n this.state.projects.map((item, i) => {\n if (i >= initialShowCount && !showAll) {\n return null\n }\n return <li key={i}>\n <div className={'project-image'}>\n <img src={item.image} alt=\"\"/>\n </div>\n <div className={'des'}>\n <div className=\"title\">\n <span>{i + 1}</span>\n <span>{item.title}</span>\n </div>\n <p className={'detail'}>{item.detail}</p>\n </div>\n </li>\n })\n }\n {/*<li>\n {\n !showAll\n ? <button onClick={() => {\n this.setState({\n showAll: true\n })\n }}>\n 展开更多\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png\" alt=\"\"/>\n </button>\n : <button onClick={() => {\n this.setState({\n showAll: false\n })\n }}>\n 收起\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png\" alt=\"\"/>\n </button>\n }\n </li>*/}\n </ul>\n </div>\n );\n }\n}\n\nexport default InAction;","import React, { Component } from 'react'\nimport './index.scss'\nimport Description from './Description/index.js'\nimport Study from './Study/index.js'\nimport Team from './Team/index.js'\nimport Experience from './Experience/index.js'\nimport Progream from './Progream/index.js'\nimport Selection from './Selection'\nimport Mask from './../poup/index.js'\nimport InAction from \"./InAction\"\nimport ShareRank from \"@components/detail/shareRank\"\nimport { http, getParam, SendMessageToApp, } from '@/utils'\nimport { connect } from 'react-redux'\nimport { Toast } from \"antd-mobile\"\nimport {CallApp} from \"@common/index\"\n\n@connect(state => ({\n user: state.user\n}))\nclass PythonDes extends Component {\n constructor(props) {\n super(props)\n this.state = {\n syllabus: [], // 阶梯学习\n allSyllabus: [], // 阶梯学习\n allSyllabusShow: false,\n allPractice: [], // 课后实操\n toApp: false,\n payMoney: 0,\n isOnline: true, //课程是否上架\n courseInfo: {}\n }\n }\n\n // 立即报名\n signUp = () => {\n // 已登录\n if (!this.props.user.hasError) {\n this.toDetail()\n } else {// 未登录\n this.toLogin()\n }\n }\n\n // 立即体验、免费试学\n tryLearn = () => {\n // 已登录\n if (!this.props.user.hasError) {\n this.toLearn()\n } else {// 未登录\n this.toLogin()\n }\n }\n\n toLearn = () => {\n const {backwardVersion} = this.props;\n http.post(`${API['home']}/m/it/user/trialCourse`, {course_id: getParam('id')}).then((res) => {\n const {code, msg} = res.data\n if (code == 200) {\n if (!getParam('version')) { // H5\n this.setState({\n toApp: true\n })\n } else { // APP\n if (backwardVersion) {\n Toast.info('当前版本不支持该课程模式,请升级到最新版本或前往PC端体验', 2)\n } else {\n SendMessageToApp(\"toLearn\", getParam('id'))\n }\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n closePop = () => {\n this.setState({\n toApp: false\n })\n }\n\n toDetail = () => {\n const {backwardVersion} = this.props;\n const id = getParam('id')\n if (!getParam('version')) { // H5\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${id}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${id}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n } else { // APP\n if (backwardVersion) {\n Toast.info('当前版本不支持该课程模式,请升级到最新版本或前往PC端购买', 2);\n let onlyoneUse = setTimeout(() => {\n clearTimeout(onlyoneUse);\n onlyoneUse = null;\n SendMessageToApp('toPay', id)\n }, 2000);\n } else {\n SendMessageToApp('toPay', id)\n }\n }\n }\n\n toLogin = () => {\n if (!getParam('version')) { // H5\n this.props.history.push('/passport')\n } else { // APP\n SendMessageToApp(\"toLogin\")\n }\n }\n\n showAll = (key) => {\n if (key === 1) {\n this.setState({\n syllabus: this.state.allSyllabus,\n allSyllabusShow: true,\n })\n }\n if (key === 2) {\n this.setState({\n practice: this.state.allPractice,\n allPracticeShow: true,\n })\n }\n }\n hideSome = (key) => {\n if (key === 1) {\n this.setState({\n syllabus: this.state.allSyllabus.slice(0, 2),\n allSyllabusShow: false,\n })\n }\n if (key === 2) {\n this.setState({\n practice: this.state.allPractice.slice(0, 2),\n allPracticeShow: false,\n })\n }\n }\n\n getStatus = () => {\n http.get(`${API['home']}/web/it_detail?course_id=${getParam('id')}`).then(res => {\n const {code, data, msg} = res.data\n if (code == 200) {\n this.setState({\n syllabus: data.syllabus.slice(0, 2),\n allSyllabus: data.syllabus,\n allPractice: data.practice,\n payMoney: data.course_info.price1,\n courseInfo: data.course_info\n })\n } else {\n Toast.info(msg)\n }\n })\n }\n\n componentDidMount() {\n this.getStatus()\n\n const {backwardVersion, isPay} = this.props;\n if (backwardVersion && isPay === 1) {\n Toast.info('当前版本不支持该课程模式,请升级到最新版本或前往PC端学习', 2);\n }\n }\n\n\n shouldComponentUpdate(nextProps, nextState, nextContext) {\n if (this.props.isAppUpdate !== nextProps.isAppUpdate) {\n this.getStatus()\n return false\n }\n return true\n }\n\n render() {\n const {\n syllabus,\n allSyllabusShow,\n toApp,\n payMoney,\n isOnline,\n courseInfo\n } = this.state\n return (\n <div className={'python__des'}>\n <div className={'des__start'}></div>\n {\n !!courseInfo.is_dist && <ShareRank courseInfo={courseInfo}/>\n }\n <div className={'course__introduce'}></div>\n {\n isOnline\n ? (\n <div className={'bottom__btn_group'}>\n <div className={'course__price'}>\n <div className={'money'}>{payMoney}<span style={{fontSize: '18px'}}>元</span></div>\n <div className={'discount'}>\n 限时特惠\n <div className={'triangle'}></div>\n </div>\n </div>\n\n <div className={'btn__group'}>\n <div className={'try__study'} onClick={this.tryLearn}>免费试学</div>\n <div className={'sign__now'} onClick={this.signUp}>立即报名</div>\n </div>\n </div>\n )\n : (\n <div className=\"bottom__btn_group\">\n <p className=\"online__label\">Python人工智能</p>\n <button className=\"online__button\">即将上架 敬请期待</button>\n </div>\n )\n }\n\n <CallApp className='toapp'/>\n\n\n {/* 课程介绍 */}\n <Description/>\n\n <Study syllabus={syllabus} allSyllabusShow={allSyllabusShow} show={this.showAll}\n hide={this.hideSome}></Study>\n\n {/*精选习题*/}\n <Selection/>\n\n {/*项目实战*/}\n <InAction/>\n\n <Team/>\n\n {/* 试学体验 */}\n <Experience tryLearn={this.tryLearn} isOnline={isOnline}/>\n <img\n style={{\n display: 'block',\n width: '100%',\n height: '8px'\n }}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/di.png\"\n alt=\"\"\n />\n\n {/* 常见问题 */}\n <Progream/>\n {\n toApp && (<Mask type={1} closePop={this.closePop}/>)\n }\n </div>\n )\n }\n}\n\nfunction DefineItem(props) {\n const {item, item: {desInfo}} = props\n return (\n <div className={'number_one'}>\n <img className={'trophy'} src={item.titleUrl}></img>\n <p className={'item__title'}>{item.title}</p>\n <p className={'item__subtitle'} style={{width: item.subWidth}}>{item.subTitle}</p>\n <img style={{width: desInfo.width, height: desInfo.height}} src={item.bottomUrl}></img>\n </div>\n )\n}\n\nexport default PythonDes\n","import React, { Component } from 'react';\nimport { Accordion, Toast } from 'antd-mobile';\nimport { HeaderBar, CallApp} from '@/common';\nimport { http, getParam } from '@/utils';\nimport './index.scss';\nimport { connect } from \"react-redux\";\nimport Mask from './../poup/index.js'\nimport ShareRank from \"@components/detail/shareRank\"\n\nclass PythonStudy extends Component {\n constructor(props) {\n super(props);\n this.state = {\n toApp: false,\n courseInfo: '',\n syllabus: '',\n learning: ''\n };\n }\n\n componentDidMount() {\n this.fetchCourseDetail();\n }\n\n fetchCourseDetail = () => {\n http.get(`${API['home']}/web/it_detail?course_id=${getParam('id')}&is_pay=1`).then(res => {\n const {data, code, msg} = res.data;\n if (code === 200) {\n this.setState({\n courseInfo: data.course_info,\n syllabus: data.syllabus,\n learning: data.learning\n })\n } else {\n Toast.info(msg, 2)\n }\n });\n }\n\n Change = (data) => {\n let cn = [\"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", '十'];\n let newStr = ''\n let str = data.toString()\n let ci = Number(str) % 10\n let cs = Math.floor(Number(str) / 10)\n let cv = ''\n if (str.length > 1) {\n if (cs == 1) {\n cv = ci >= 1 ? cn[9] + cn[ci - 1] : cn[9]\n } else {\n cv = ci > 1 ? cn[cs - 1] + cn[9] + cn[ci - 1] : cn[cs - 1] + cn[9]\n }\n } else {\n cv = cn[ci - 1]\n }\n newStr = str.replace(str, cv)\n return newStr;\n }\n\n onChange = (key) => {\n console.log(key);\n }\n\n toPythonHome = (isUnlock) => {\n if (isUnlock == 1) {\n this.setState({\n toApp: true\n })\n }\n }\n\n toLearn = () => {\n this.setState({\n toApp: true\n })\n }\n closePop = () => {\n this.setState({\n toApp: false,\n })\n }\n\n render() {\n const {user} = this.props;\n const uid = user && user.data && user.data.uid\n const {courseInfo, syllabus, learning, toApp} = this.state;\n return (\n <div className=\"python-study\">\n <HeaderBar title='机器学习小课' arrow={true}/>\n <div className=\"python-study__header\">\n <div className=\"python-study__course\">\n <h2 className=\"python-study__course-name\">机器学习小课</h2>\n <p className=\"python-study__course-contact\">\n <span>{courseInfo.contact_type == 1 ? '上课请加QQ学习群' : '添加助教微信入群'}:{courseInfo.course_qq}</span>\n <span>并备注您的学号:{uid}</span>\n </p>\n </div>\n {\n learning.schedule > 0 &&\n <div className=\"python-study__progress\">\n <h2 className=\"python-study__progress-title\">\n 学习进度\n {\n !!learning.day && <span>(已连续学习<span>{learning.day}</span>天)</span>\n }\n </h2>\n <div className=\"python-study__progress-bar\">\n <i style={{width: learning.schedule + '%'}}/>\n <span className=\"python-study__progress-tip\"\n style={{left: learning.schedule + '%'}}>{learning.schedule + '%'}</span>\n </div>\n </div>\n }\n\n <CallApp className='toapp'/>\n\n </div>\n {\n !!courseInfo.is_dist && <div className={'dist-wrapper'}>\n <ShareRank courseInfo={courseInfo}/>\n </div>\n }\n <Accordion\n defaultActiveKey=\"0\"\n className=\"python-study__stage\"\n onChange={this.onChange}\n >\n {\n syllabus && syllabus.length > 0 && syllabus.map((syllabusItem, index) => {\n let header = `第${this.Change(syllabusItem.stage)}阶段:${syllabusItem.name}`\n return (\n <Accordion.Panel header={header} className=\"pad\" key={index}>\n {\n syllabusItem.lessons && syllabusItem.lessons.length > 0 && syllabusItem.lessons.map((lessonsItem, index) => {\n return (\n <div key={index}>\n <h2 className=\"python-study__pass\">\n 第{lessonsItem.shut}关 {lessonsItem.name}\n {\n lessonsItem.complete == 1 &&\n <i className=\"python-study__pass-tag\">闯关完成</i>\n }\n </h2>\n\n <div className=\"python-study__subject\"\n style={{opacity: lessonsItem.info.is_unlock == 0 ? '.6' : '1'}}\n onClick={() => {\n this.toPythonHome(lessonsItem.info.is_unlock)\n }}\n key={index}>\n <img className=\"python-study__subject-icon\"\n src={lessonsItem.info.img_url} alt=\"\"/>\n {\n lessonsItem.info.is_unlock == 1 && lessonsItem.info.complete == 1 &&\n <i className=\"python-study__subject-status\"\n data-status=\"complete\"/>\n }\n {\n lessonsItem.info.is_unlock == 0 &&\n <i className=\"python-study__subject-status\"\n data-status=\"lock\"/>\n }\n <div className=\"python-study__subject-content\">\n <h2 className=\"python-study__subject-title text-overflow-1\">{lessonsItem.info.name}</h2>\n </div>\n </div>\n\n {\n lessonsItem.project && <div className=\"python-study__subject\"\n style={{opacity: lessonsItem.project.is_unlock == 0 ? '.6' : '1'}}\n onClick={() => {\n this.toPythonHome(lessonsItem.project.is_unlock)\n }}\n >\n <img className=\"python-study__subject-icon\"\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project-icon.png\" alt=\"\"/>\n {\n lessonsItem.project.is_unlock == 1 && lessonsItem.project.complete == 1 &&\n <i className=\"python-study__subject-status\"\n data-status=\"complete\"/>\n }\n {\n lessonsItem.project.is_unlock == 1 && lessonsItem.project.complete == 0 &&\n <i className=\"python-study__subject-status\"\n data-status=\"lock\"/>\n }\n <div className=\"python-study__subject-content\">\n <h2\n className=\"python-study__subject-title text-overflow-1\">{lessonsItem.project.name}</h2>\n {\n lessonsItem.project.is_must == 1 &&\n <span\n className=\"python-study__subject-tag\">必做练习</span>\n }\n </div>\n </div>\n }\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n {\n learning.schedule == 0 &&\n <span onClick={this.toLearn} className=\"python-study__button\">开始学习</span>\n }\n {\n learning.schedule != 0 && learning.schedule != 100 &&\n <span onClick={this.toLearn} className=\"python-study__button\">继续学习</span>\n }\n {\n learning.schedule == 100 &&\n <button className=\"python-study__button python-study__over\">已学完全部课时</button>\n }\n\n {\n toApp && <Mask closePop={this.closePop} type={2}/>\n }\n </div>\n )\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(PythonStudy);","import React, {Component} from 'react'\nimport {http, getParam, browser, SendMessageToApp} from '@/utils'\nimport PythonDes from './pythomDes'\nimport PythonStudy from './pythonStudy'\nimport {connect} from \"react-redux\"\nimport {addDays} from \"date-fns\"\nimport cookie from \"js-cookie\"\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\n\n\n@connect(state => ({\n user: state.user\n }),\n {setCurrentUser, startFetchUser}\n)\nclass ML extends Component {\n constructor(props) {\n super(props)\n this.state = {\n isPay: '',\n userInfoList: [],\n isAppUpdate: false,\n backwardVersion: false, // 默认是新版本\n }\n }\n\n componentDidMount() {\n document.title = '机器学习小课 [精讲7大经典算法,在线编程,无需安装环境,会 python 即可学习] - 七月在线'\n const _this = this\n this.fetchCourseInfo()\n // 获取App登录信息\n window['loginInfo'] = result => {\n _this.loginInfo(result)\n }\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n }, () => {\n if (this.state.userInfoList.length) {\n this.props.startFetchUser()\n this.appLogin()\n }\n })\n\n }\n\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n cookie.set(\"token\", item.token, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: '.julyedu.com'})\n })\n\n if (cookie.get(\"token\") && cookie.get(\"uid\")) {\n this.setState({\n isAppUpdate: true\n })\n this.fetchCourseInfo();\n }\n\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList));\n }\n\n transformUser = res => {\n let payload\n\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n\n return payload\n }\n\n\n fetchCourseInfo = () => {\n const id = getParam('id')\n http.get(`${API.home}/m/course/detail/${id}`).then((res) => {\n const {data, code} = res.data\n if (code === 200) {\n let version = getParam('version')\n if(version) {\n version = version.replace(/\\./g, '').slice(0, 3)\n if(browser.isAndroidApp && version < 453) { // 安卓的低版本\n this.setState({\n backwardVersion: true,\n isPay: 0,\n })\n }else if(browser.isIOSApp && version < 380) { // ISO的低版本\n this.setState({\n backwardVersion: true,\n isPay: 0,\n })\n }else{ // 安卓/IOS 的高版本\n if(data.course_info.is_pay === 1) { // 在APP内未登录-去登陆-登录后还显示此页;如果是已购买的用户 就需要跳转到 APP已购买的原生页面\n SendMessageToApp('toSyllabusChapter', id); // 跳转到APP的已购买详情页 id 是课程ID\n return;\n }\n this.setState({\n backwardVersion: false,\n isPay: data.course_info.is_pay\n })\n }\n } else {\n this.setState({\n backwardVersion: false,\n isPay: data.course_info.is_pay\n })\n }\n }\n })\n }\n\n render() {\n const {isPay, isAppUpdate, backwardVersion} = this.state;\n // 旧版本 无论购买未购买 都跳转到 未购买的详情页; 如果是已购买就提示更新APP\n return (\n <div>\n {\n isPay === 0 && (\n <PythonDes \n backwardVersion={backwardVersion}\n history={this.props.history} \n isAppUpdate={isAppUpdate}\n isPay={isPay}\n />\n )\n }\n {\n (isPay === 1 && !getParam('version')) && <PythonStudy isAppUpdate={isAppUpdate}/>\n }\n </div>\n )\n }\n}\n\nexport default ML\n","import React, {Component} from 'react'\nimport './index.scss'\nimport {getParam, http} from \"@/utils\"\nimport {Toast, Flex} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {withRouter} from 'react-router-dom'\nimport {compose} from \"redux\"\n\nclass ShareRank extends Component {\n constructor(props) {\n super(props)\n this.state = {\n list: [], // 分销排行榜\n rankingslice: [], // 分销排行榜前两名\n code: '', // 分销code\n shareRank: false\n }\n }\n\n componentDidMount() {\n this.getRankList()\n this.getCode()\n }\n\n // 获取排行榜\n getRankList = () => {\n http.get(`${API.home}/dist/rankList/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n list: res.data.data,\n rankingslice: res.data.data.slice(0, 2)\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取分销码\n getCode = () => {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n if (!uid) return\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API.home}/dist/createCode`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n code: res.data.data.code\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 点击分销跳转到海报页\n share = (info) => {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n if (!uid) {\n this.props.history.push('/passport/login')\n } else {\n const courseId = getParam('id')\n const dist_first = info.dist_first_level_ti\n const dist_code = this.state.code\n this.props.history.push(`/shareposter?courseId=${courseId}&dist_first=${dist_first}&uid=${uid}&dist_code=${dist_code}`)\n }\n }\n\n\n // 打开分销排行榜弹窗\n openRanking = () => {\n this.setState({\n shareRank: true\n })\n }\n\n // 关闭弹窗\n colse = () => {\n this.setState({\n shareRank: false\n })\n }\n\n render() {\n const { courseInfo: info = '' } = this.props;\n // let info = ''\n // if (this.props.courseInfo && this.props.courseInfo.courseInfo && this.props.courseInfo.courseInfo.course_info) {\n // info = this.props.courseInfo.courseInfo.course_info\n // }\n return (\n <div className='share-ranking'>\n <Flex className='share-container' justify='between'>\n <Flex className='share-list'>\n <span className=\"title\">排行榜:</span>\n <div className='ranking-box' onClick={this.openRanking}>\n {\n this.state.rankingslice && this.state.rankingslice.length > 0 && this.state.rankingslice.map((item, index) => {\n return (\n <span key={index} className=\"ranking-mess\">\n <img src={item.head_imgurl} alt=\"\"/>\n <i>{item.amount}元</i>\n </span>\n )\n })\n }\n\n\n </div>\n </Flex>\n <Flex className='share-money' justify='between' align='center'>\n <img onClick={this.openRanking} className=\"ranking-ellipsis\"\n src=\"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png\" alt=\"\"/>\n <button className=\"share\" onClick={this.share.bind(this, info)}>分享赚{info.dist_first_level_ti}元\n </button>\n </Flex>\n </Flex>\n\n\n {\n this.state.shareRank &&\n <div className=\"shareMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n <span className=\"lable\">赚钱排行榜</span>\n <span className=\"tips\">只展示前9名用户</span>\n </div>\n <ul>\n {\n this.state.list && this.state.list.length > 0 && this.state.list.map((item, index) => {\n return (\n <li key={index}>\n <img src={item.head_imgurl} alt=\"\"/>\n <span className='course-title'>{item.user_name}</span>\n <span className='course-price'>{item.amount}元</span>\n </li>\n )\n })\n }\n </ul>\n <div className='shareBtn'>\n <button onClick={this.share.bind(this, info)}>分享赚{info.dist_first_level_ti}元</button>\n </div>\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n\n </div>\n }\n </div>\n );\n }\n}\n\nexport default compose(\n connect(\n state => ({\n // courseInfo: state,\n user: state.user\n }),\n null\n ),\n withRouter\n)(ShareRank)\n","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _rcCollapse = require('rc-collapse');\n\nvar _rcCollapse2 = _interopRequireDefault(_rcCollapse);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar Accordion = function (_React$Component) {\n (0, _inherits3['default'])(Accordion, _React$Component);\n\n function Accordion() {\n (0, _classCallCheck3['default'])(this, Accordion);\n return (0, _possibleConstructorReturn3['default'])(this, (Accordion.__proto__ || Object.getPrototypeOf(Accordion)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Accordion, [{\n key: 'render',\n value: function render() {\n return React.createElement(_rcCollapse2['default'], this.props);\n }\n }]);\n return Accordion;\n}(React.Component);\n\nexports['default'] = Accordion;\nAccordion.Panel = _rcCollapse.Panel;\nAccordion.defaultProps = {\n prefixCls: 'am-accordion'\n};\nmodule.exports = exports['default'];","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\n\nvar PanelContent = function (_Component) {\n _inherits(PanelContent, _Component);\n\n function PanelContent() {\n _classCallCheck(this, PanelContent);\n\n return _possibleConstructorReturn(this, (PanelContent.__proto__ || Object.getPrototypeOf(PanelContent)).apply(this, arguments));\n }\n\n _createClass(PanelContent, [{\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate(nextProps) {\n return this.props.forceRender || this.props.isActive || nextProps.isActive;\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames;\n\n this._isActived = this.props.forceRender || this._isActived || this.props.isActive;\n\n if (!this._isActived) {\n return null;\n }\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n isActive = _props.isActive,\n children = _props.children,\n destroyInactivePanel = _props.destroyInactivePanel,\n forceRender = _props.forceRender,\n role = _props.role;\n var contentCls = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls + '-content', true), _defineProperty(_classnames, prefixCls + '-content-active', isActive), _defineProperty(_classnames, prefixCls + '-content-inactive', !isActive), _classnames));\n var child = !forceRender && !isActive && destroyInactivePanel ? null : React.createElement('div', {\n className: prefixCls + '-content-box'\n }, children);\n return React.createElement('div', {\n className: contentCls,\n role: role\n }, child);\n }\n }]);\n\n return PanelContent;\n}(Component);\n\nPanelContent.propTypes = {\n prefixCls: PropTypes.string,\n isActive: PropTypes.bool,\n children: PropTypes.any,\n destroyInactivePanel: PropTypes.bool,\n forceRender: PropTypes.bool,\n role: PropTypes.string\n};\nexport default PanelContent;","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport PanelContent from './PanelContent';\nimport Animate from 'rc-animate';\n\nvar CollapsePanel = function (_Component) {\n _inherits(CollapsePanel, _Component);\n\n function CollapsePanel() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, CollapsePanel);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = CollapsePanel.__proto__ || Object.getPrototypeOf(CollapsePanel)).call.apply(_ref, [this].concat(args))), _this), _this.handleItemClick = function () {\n if (_this.props.onItemClick) {\n _this.props.onItemClick();\n }\n }, _this.handleKeyPress = function (e) {\n if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {\n _this.handleItemClick();\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(CollapsePanel, [{\n key: 'render',\n value: function render() {\n var _classNames2;\n\n var _props = this.props,\n className = _props.className,\n id = _props.id,\n style = _props.style,\n prefixCls = _props.prefixCls,\n header = _props.header,\n headerClass = _props.headerClass,\n children = _props.children,\n isActive = _props.isActive,\n showArrow = _props.showArrow,\n destroyInactivePanel = _props.destroyInactivePanel,\n disabled = _props.disabled,\n accordion = _props.accordion,\n forceRender = _props.forceRender;\n var headerCls = classNames(prefixCls + '-header', _defineProperty({}, headerClass, headerClass));\n var itemCls = classNames((_classNames2 = {}, _defineProperty(_classNames2, prefixCls + '-item', true), _defineProperty(_classNames2, prefixCls + '-item-active', isActive), _defineProperty(_classNames2, prefixCls + '-item-disabled', disabled), _classNames2), className);\n return React.createElement('div', {\n className: itemCls,\n style: style,\n id: id\n }, React.createElement('div', {\n className: headerCls,\n onClick: this.handleItemClick,\n role: accordion ? 'tab' : 'button',\n tabIndex: disabled ? -1 : 0,\n 'aria-expanded': '' + isActive,\n onKeyPress: this.handleKeyPress\n }, showArrow && React.createElement('i', {\n className: 'arrow'\n }), header), React.createElement(Animate, {\n showProp: 'isActive',\n exclusive: true,\n component: '',\n animation: this.props.openAnimation\n }, React.createElement(PanelContent, {\n prefixCls: prefixCls,\n isActive: isActive,\n destroyInactivePanel: destroyInactivePanel,\n forceRender: forceRender,\n role: accordion ? 'tabpanel' : null\n }, children)));\n }\n }]);\n\n return CollapsePanel;\n}(Component);\n\nCollapsePanel.propTypes = {\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),\n id: PropTypes.string,\n children: PropTypes.any,\n openAnimation: PropTypes.object,\n prefixCls: PropTypes.string,\n header: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),\n headerClass: PropTypes.string,\n showArrow: PropTypes.bool,\n isActive: PropTypes.bool,\n onItemClick: PropTypes.func,\n style: PropTypes.object,\n destroyInactivePanel: PropTypes.bool,\n disabled: PropTypes.bool,\n accordion: PropTypes.bool,\n forceRender: PropTypes.bool\n};\nCollapsePanel.defaultProps = {\n showArrow: true,\n isActive: false,\n destroyInactivePanel: false,\n onItemClick: function onItemClick() {},\n headerClass: '',\n forceRender: false\n};\nexport default CollapsePanel;","import cssAnimation from 'css-animation';\n\nfunction animate(node, show, transitionName, done) {\n var height = void 0;\n return cssAnimation(node, transitionName, {\n start: function start() {\n if (!show) {\n node.style.height = node.offsetHeight + 'px';\n } else {\n height = node.offsetHeight;\n node.style.height = 0;\n }\n },\n active: function active() {\n node.style.height = (show ? height : 0) + 'px';\n },\n end: function end() {\n node.style.height = '';\n done();\n }\n });\n}\n\nfunction animation(prefixCls) {\n return {\n enter: function enter(node, done) {\n return animate(node, true, prefixCls + '-anim', done);\n },\n leave: function leave(node, done) {\n return animate(node, false, prefixCls + '-anim', done);\n }\n };\n}\n\nexport default animation;","var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _toConsumableArray(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nimport React, { Component, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport CollapsePanel from './Panel';\nimport openAnimationFactory from './openAnimationFactory';\nimport classNames from 'classnames';\n\nfunction toArray(activeKey) {\n var currentActiveKey = activeKey;\n\n if (!Array.isArray(currentActiveKey)) {\n currentActiveKey = currentActiveKey ? [currentActiveKey] : [];\n }\n\n return currentActiveKey;\n}\n\nvar Collapse = function (_Component) {\n _inherits(Collapse, _Component);\n\n function Collapse(props) {\n _classCallCheck(this, Collapse);\n\n var _this = _possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));\n\n var _this$props = _this.props,\n activeKey = _this$props.activeKey,\n defaultActiveKey = _this$props.defaultActiveKey;\n var currentActiveKey = defaultActiveKey;\n\n if ('activeKey' in _this.props) {\n currentActiveKey = activeKey;\n }\n\n _this.state = {\n openAnimation: _this.props.openAnimation || openAnimationFactory(_this.props.prefixCls),\n activeKey: toArray(currentActiveKey)\n };\n return _this;\n }\n\n _createClass(Collapse, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('activeKey' in nextProps) {\n this.setState({\n activeKey: toArray(nextProps.activeKey)\n });\n }\n\n if ('openAnimation' in nextProps) {\n this.setState({\n openAnimation: nextProps.openAnimation\n });\n }\n }\n }, {\n key: 'onClickItem',\n value: function onClickItem(key) {\n var activeKey = this.state.activeKey;\n\n if (this.props.accordion) {\n activeKey = activeKey[0] === key ? [] : [key];\n } else {\n activeKey = [].concat(_toConsumableArray(activeKey));\n var index = activeKey.indexOf(key);\n var isActive = index > -1;\n\n if (isActive) {\n // remove active state\n activeKey.splice(index, 1);\n } else {\n activeKey.push(key);\n }\n }\n\n this.setActiveKey(activeKey);\n }\n }, {\n key: 'getItems',\n value: function getItems() {\n var _this2 = this;\n\n var activeKey = this.state.activeKey;\n var _props = this.props,\n prefixCls = _props.prefixCls,\n accordion = _props.accordion,\n destroyInactivePanel = _props.destroyInactivePanel;\n var newChildren = [];\n Children.forEach(this.props.children, function (child, index) {\n if (!child) return; // If there is no key provide, use the panel order as default key\n\n var key = child.key || String(index);\n var _child$props = child.props,\n header = _child$props.header,\n headerClass = _child$props.headerClass,\n disabled = _child$props.disabled;\n var isActive = false;\n\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n\n var props = {\n key: key,\n header: header,\n headerClass: headerClass,\n isActive: isActive,\n prefixCls: prefixCls,\n destroyInactivePanel: destroyInactivePanel,\n openAnimation: _this2.state.openAnimation,\n accordion: accordion,\n children: child.props.children,\n onItemClick: disabled ? null : function () {\n return _this2.onClickItem(key);\n }\n };\n newChildren.push(React.cloneElement(child, props));\n });\n return newChildren;\n }\n }, {\n key: 'setActiveKey',\n value: function setActiveKey(activeKey) {\n if (!('activeKey' in this.props)) {\n this.setState({\n activeKey: activeKey\n });\n }\n\n this.props.onChange(this.props.accordion ? activeKey[0] : activeKey);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _props2 = this.props,\n prefixCls = _props2.prefixCls,\n className = _props2.className,\n style = _props2.style,\n accordion = _props2.accordion;\n var collapseClassName = classNames((_classNames = {}, _defineProperty(_classNames, prefixCls, true), _defineProperty(_classNames, className, !!className), _classNames));\n return React.createElement('div', {\n className: collapseClassName,\n style: style,\n role: accordion ? 'tablist' : null\n }, this.getItems());\n }\n }]);\n\n return Collapse;\n}(Component);\n\nCollapse.propTypes = {\n children: PropTypes.any,\n prefixCls: PropTypes.string,\n activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n defaultActiveKey: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n openAnimation: PropTypes.object,\n onChange: PropTypes.func,\n accordion: PropTypes.bool,\n className: PropTypes.string,\n style: PropTypes.object,\n destroyInactivePanel: PropTypes.bool\n};\nCollapse.defaultProps = {\n prefixCls: 'rc-collapse',\n onChange: function onChange() {},\n accordion: false,\n destroyInactivePanel: false\n};\nCollapse.Panel = CollapsePanel;\nexport default Collapse;","import Collapse from './Collapse';\nexport default Collapse;\nexport var Panel = Collapse.Panel;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{1229:function(e,t,a){},1299:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),c=a.n(n),r=a(77),l=a(4),i=a(7),s=a(5),o=a(8),m=a(9),u=(a(37),a(11)),d=a.n(u),p=a(0),E=a.n(p),f=a(3),v=(a(1229),a(25)),g=a(606),h=a(160),b=a(21),y=a(14);function N(e){d.a.info(e,2,null,!1)}var _=function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(s.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).state={tab:{},courses:[],navItemStyle:{},tabActiveIndex:0},a.getData=function(){Promise.all([f.d.get("".concat(API.home,"/sys/category")),f.d.get("".concat(API.home,"/sys/course"))]).then(function(e){var t=Object(r.a)(e,2),n=t[0],c=t[1],l=n.data,i=l.data,s=l.code,o=l.msg,m=c.data,u=m.data,d=m.code,p=m.msg;200==s?a.setState({tab:i}):N(o),200===d?a.setState({courses:u}):N(p)})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.changeTab=function(e,t){a.state.tabActiveIndex!==t&&a.setState({tabActiveIndex:t})},a.getCourse=function(e,t){var n=a.props,c=n.user,r=n.history;c.hasError?r.push("/passport"):f.d.post("".concat(API.home,"/sys/limitFree/receive"),{course_id:e}).then(function(e){var n=e.data,c=n.code,r=n.msg;if(200===c)var l=Object(v.h)({className:"get-course-popup",closable:!1,clickMaskClose:!1,title:E.a.createElement("div",null,E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/check.png",alt:""}),E.a.createElement("div",null,"\u8bfe\u7a0b\u6709\u6548\u671f7\u5929\uff0c\u5feb\u53bb\u5b66\u4e60\u5427~")),content:E.a.createElement("div",{className:"btns"},E.a.createElement("button",{onClick:function(){l.close(),a.getData()}},"\u77e5\u9053\u4e86"),E.a.createElement("button",{onClick:function(){a.toPlay(t),l.close()}},"\u7acb\u5373\u5b66\u4e60"))});else N(r)})},a.toPlay=function(e){a.props.history.push("/play/video?id=".concat(e))},a.formatTime=function(e){return{d:Math.floor(e/60/60/24).toString().padStart(2,"0"),h:Math.floor(e/60/60%24).toString().padStart(2,"0"),m:Math.floor(e/60%60).toString().padStart(2,"0")}},a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="\u52a9\u529b\u6625\u62db\uff0c\u597d\u8bfe\u9650\u514d--\u4e03\u6708\u5728\u7ebf",this.getData()}},{key:"render",value:function(){var e=this,t=this.state,a=t.tab,n=t.courses,r=t.navItemStyle,l=t.tabActiveIndex;return E.a.createElement("div",{className:"limit-free"},E.a.createElement(v.e,{arrow:!0,title:"\u9650\u65f6\u514d\u8d39"}),E.a.createElement("div",{className:"banner"},E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/banner.png",alt:""})),E.a.createElement("nav",null,E.a.createElement("ul",{ref:function(t){return e.nav=t}},a&&!!a.length&&a.map(function(t,a){return E.a.createElement("li",{key:a,className:a===l?"active":"",style:r,onClick:function(t){return e.changeTab(t,a)}},E.a.createElement("a",{href:"#category".concat(t.id),target:"_self"},t.category_name))})),E.a.createElement("div",{className:"next-cover"})),E.a.createElement(c.a,null),E.a.createElement("div",{className:"course-list"},E.a.createElement("ul",null,a&&!!a.length&&a.map(function(t){return E.a.createElement("li",{key:t.id,className:"category"},E.a.createElement("h2",{id:"category".concat(t.id)},E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/category-icon.png",alt:""}),E.a.createElement("span",null,t.category_name)),E.a.createElement("ul",{className:"courses"},n&&n.length&&n.map(function(a,n){if(a.category_id!=t.id)return null;var c,r;switch(a.course_status){case 0:c=E.a.createElement("div",{className:"learner"},E.a.createElement("i",{className:"iconfont iconRectangleCopy4"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\u9650\u65f6\u514d\u8d39"),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement("button",{onClick:function(t){t.stopPropagation(),e.getCourse(a.course_id,a.v_course_id)}},"\u514d\u8d39\u9886\u53d6"));break;case 1:var l=e.formatTime(a.course_expire),i=l.d,s=l.h,o=l.m;c=E.a.createElement("div",{className:"remain-time"},E.a.createElement("i",{className:"iconfont iconiconfront-21"}),E.a.createElement("span",null,i,"\u5929",s,"\u65f6",o,"\u5206\u540e\u8fc7\u671f")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"purchased"},"\u5df2\u9886\u53d6"),E.a.createElement(k,{id:a.course_id}));break;case 2:c=E.a.createElement("div",{className:"remain-time"},E.a.createElement("i",{className:"iconfont iconiconfront-21"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\xa5",a.price1),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement(y.b,{to:"/detail?id=".concat(a.course_id)},"\u7acb\u5373\u8d2d\u4e70"));break;case 3:c=E.a.createElement("div",{className:"learner"},E.a.createElement("i",{className:"iconfont iconRectangleCopy4"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"purchased"},"\u5df2\u8d2d\u4e70"),E.a.createElement(k,{id:a.course_id}))}var m=E.a.createElement("div",{className:"info"},E.a.createElement("div",{className:"title"},a.course_title),c,r);return E.a.createElement(g.a,{img:a.image_name,handleClick:e.handleClick,id:a.course_id,info:m,key:n})})))}))),E.a.createElement("div",{className:"no-more"},"-\u6ca1\u6709\u66f4\u591a\u4e86-"))}}]),t}(p.Component);function k(e){var t=e.id;return E.a.createElement(y.b,{to:"/play/video?id=".concat(t)},"\u7acb\u5373\u5b66\u4e60")}t.default=Object(b.b)(function(e){return{user:e.user}},null)(Object(h.a)(_))},606:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(607);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},607:function(e,t,a){}}]);
//# sourceMappingURL=56.d999618a.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{1229:function(e,t,a){},1299:function(e,t,a){"use strict";a.r(t);a(155);var n=a(36),c=a.n(n),r=a(77),l=a(4),i=a(7),s=a(5),o=a(8),m=a(9),u=(a(37),a(11)),d=a.n(u),p=a(0),E=a.n(p),f=a(3),v=(a(1229),a(25)),g=a(606),h=a(160),b=a(21),y=a(14);function N(e){d.a.info(e,2,null,!1)}var _=function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(s.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).state={tab:{},courses:[],navItemStyle:{},tabActiveIndex:0},a.getData=function(){Promise.all([f.d.get("".concat(API.home,"/sys/category")),f.d.get("".concat(API.home,"/sys/course"))]).then(function(e){var t=Object(r.a)(e,2),n=t[0],c=t[1],l=n.data,i=l.data,s=l.code,o=l.msg,m=c.data,u=m.data,d=m.code,p=m.msg;200==s?a.setState({tab:i}):N(o),200===d?a.setState({courses:u}):N(p)})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.changeTab=function(e,t){a.state.tabActiveIndex!==t&&a.setState({tabActiveIndex:t})},a.getCourse=function(e,t){var n=a.props,c=n.user,r=n.history;c.hasError?r.push("/passport"):f.d.post("".concat(API.home,"/sys/limitFree/receive"),{course_id:e}).then(function(e){var n=e.data,c=n.code,r=n.msg;if(200===c)var l=Object(v.h)({className:"get-course-popup",closable:!1,clickMaskClose:!1,title:E.a.createElement("div",null,E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/check.png",alt:""}),E.a.createElement("div",null,"\u8bfe\u7a0b\u6709\u6548\u671f7\u5929\uff0c\u5feb\u53bb\u5b66\u4e60\u5427~")),content:E.a.createElement("div",{className:"btns"},E.a.createElement("button",{onClick:function(){l.close(),a.getData()}},"\u77e5\u9053\u4e86"),E.a.createElement("button",{onClick:function(){a.toPlay(t),l.close()}},"\u7acb\u5373\u5b66\u4e60"))});else N(r)})},a.toPlay=function(e){a.props.history.push("/play/video?id=".concat(e))},a.formatTime=function(e){return{d:Math.floor(e/60/60/24).toString().padStart(2,"0"),h:Math.floor(e/60/60%24).toString().padStart(2,"0"),m:Math.floor(e/60%60).toString().padStart(2,"0")}},a}return Object(m.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){document.title="\u52a9\u529b\u6625\u62db\uff0c\u597d\u8bfe\u9650\u514d--\u4e03\u6708\u5728\u7ebf",this.getData()}},{key:"render",value:function(){var e=this,t=this.state,a=t.tab,n=t.courses,r=t.navItemStyle,l=t.tabActiveIndex;return E.a.createElement("div",{className:"limit-free"},E.a.createElement(v.e,{arrow:!0,title:"\u9650\u65f6\u514d\u8d39"}),E.a.createElement("div",{className:"banner"},E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/banner.png",alt:""})),E.a.createElement("nav",null,E.a.createElement("ul",{ref:function(t){return e.nav=t}},a&&!!a.length&&a.map(function(t,a){return E.a.createElement("li",{key:a,className:a===l?"active":"",style:r,onClick:function(t){return e.changeTab(t,a)}},E.a.createElement("a",{href:"#category".concat(t.id),target:"_self"},t.category_name))})),E.a.createElement("div",{className:"next-cover"})),E.a.createElement(c.a,null),E.a.createElement("div",{className:"course-list"},E.a.createElement("ul",null,a&&!!a.length&&a.map(function(t){return E.a.createElement("li",{key:t.id,className:"category"},E.a.createElement("h2",{id:"category".concat(t.id)},E.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/category-icon.png",alt:""}),E.a.createElement("span",null,t.category_name)),E.a.createElement("ul",{className:"courses"},n&&n.length&&n.map(function(a,n){if(a.category_id!=t.id)return null;var c,r;switch(a.course_status){case 0:c=E.a.createElement("div",{className:"learner"},E.a.createElement("i",{className:"iconfont iconRectangleCopy4"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\u9650\u65f6\u514d\u8d39"),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement("button",{onClick:function(t){t.stopPropagation(),e.getCourse(a.course_id,a.v_course_id)}},"\u514d\u8d39\u9886\u53d6"));break;case 1:var l=e.formatTime(a.course_expire),i=l.d,s=l.h,o=l.m;c=E.a.createElement("div",{className:"remain-time"},E.a.createElement("i",{className:"iconfont iconiconfront-21"}),E.a.createElement("span",null,i,"\u5929",s,"\u65f6",o,"\u5206\u540e\u8fc7\u671f")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"purchased"},"\u5df2\u9886\u53d6"),E.a.createElement(k,{id:a.course_id}));break;case 2:c=E.a.createElement("div",{className:"remain-time"},E.a.createElement("i",{className:"iconfont iconiconfront-21"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"red"},"\xa5",a.price1),E.a.createElement("span",{className:"origin-price"},"\xa5",a.price0),E.a.createElement(y.b,{to:"/detail?id=".concat(a.course_id)},"\u7acb\u5373\u8d2d\u4e70"));break;case 3:c=E.a.createElement("div",{className:"learner"},E.a.createElement("i",{className:"iconfont iconRectangleCopy4"}),E.a.createElement("span",null,a.play_times,"\u4eba\u5b66\u4e60")),r=E.a.createElement("div",{className:"bottom"},E.a.createElement("span",{className:"purchased"},"\u5df2\u8d2d\u4e70"),E.a.createElement(k,{id:a.course_id}))}var m=E.a.createElement("div",{className:"info"},E.a.createElement("div",{className:"title"},a.course_title),c,r);return E.a.createElement(g.a,{img:a.image_name,handleClick:e.handleClick,id:a.course_id,info:m,key:n})})))}))),E.a.createElement("div",{className:"no-more"},"-\u6ca1\u6709\u66f4\u591a\u4e86-"))}}]),t}(p.Component);function k(e){var t=e.id;return E.a.createElement(y.b,{to:"/play/video?id=".concat(t)},"\u7acb\u5373\u5b66\u4e60")}t.default=Object(b.b)(function(e){return{user:e.user}},null)(Object(h.a)(_))},606:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(607);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},607:function(e,t,a){}}]);
//# sourceMappingURL=56.25719836.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/limit-free/index.js","common/v-list-base/index.js"],"names":["showToast","msg","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_9___default","a","info","LimitFree","state","tab","courses","navItemStyle","tabActiveIndex","getData","Promise","all","http","get","concat","API","home","then","res","_res","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__","_tab$data","data","tabData","tabCode","code","tabMsg","_courses$data","coursesData","coursesCode","coursesMsg","_this","setState","handleClick","id","props","history","push","changeTab","e","index","getCourse","courseId","vCourseId","_this$props","user","hasError","post","course_id","_res$data","instance","Popup","className","closable","clickMaskClose","title","react__WEBPACK_IMPORTED_MODULE_10___default","createElement","src","alt","content","onClick","close","toPlay","formatTime","seconds","d","Math","floor","toString","padStart","h","m","document","this","_this2","_this$state","_common_index__WEBPACK_IMPORTED_MODULE_13__","arrow","ref","el","nav","length","map","item","key","style","href","target","category_name","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","category","category_id","des","bottom","course_status","play_times","price0","stopPropagation","v_course_id","_this2$formatTime","course_expire","StudyButton","price1","react_router_dom__WEBPACK_IMPORTED_MODULE_17__","to","course_title","_common_v_list_base__WEBPACK_IMPORTED_MODULE_14__","img","image_name","Component","_ref","connect","WithFullSize","VList","react__WEBPACK_IMPORTED_MODULE_0___default","bind","status"],"mappings":"qSAYA,SAASA,EAAUC,GACjBC,EAAAC,EAAMC,KAAKH,EAAK,EAAG,MAAM,OAGrBI,6MAGJC,MAAQ,CACNC,IAAK,GACLC,QAAS,GACTC,aAAc,GACdC,eAAgB,KAQlBC,QAAU,WACRC,QAAQC,IAAI,CAACC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,kBAAsCJ,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,kBAChDC,KAAK,SAAAC,GAAO,IAAAC,EAAAC,OAAAC,EAAA,EAAAD,CACYF,EADZ,GACJb,EADIc,EAAA,GACCb,EADDa,EAAA,GAAAG,EAEyCjB,EAAIkB,KAA3CC,EAFFF,EAEJC,KAAqBE,EAFjBH,EAEWI,KAAoBC,EAF/BL,EAE0BvB,IAF1B6B,EAGqDtB,EAAQiB,KAA3DM,EAHFD,EAGJL,KAAyBO,EAHrBF,EAGeF,KAAwBK,EAHvCH,EAGkC7B,IAC9B,KAAX0B,EACFO,EAAKC,SAAS,CACZ5B,IAAKmB,IAGP1B,EAAU6B,GAEQ,MAAhBG,EACFE,EAAKC,SAAS,CACZ3B,QAASuB,IAGX/B,EAAUiC,QAMlBG,YAAc,SAAAC,GACZH,EAAKI,MAAMC,QAAQC,KAAnB,cAAAxB,OAAsCqB,OAGxCI,UAAY,SAACC,EAAGC,GACWT,EAAK5B,MAAvBI,iBACgBiC,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ACX,OACIgF,EAAAnH,EAAAyD,cAAA,MAAIL,UAAU,mBAAmBS,QAAS1B,EAAMF,YAAYmF,YAAWjF,EAAMD,GAAIC,EAAMiD,OACnF+B,EAAAnH,EAAAyD,cAAA,OAAKL,UAAU,WACX+D,EAAAnH,EAAAyD,cAAA,OAAKL,UAAU,SACVjB,EAAMkF,OACPF,EAAAnH,EAAAyD,cAAA,OAAKC,IAAKvB,EAAMyE,IAAKjD,IAAI,MAE5BxB,EAAMlC,MAEVkC,EAAM/B","file":"mrstatic/js/56.d999618a.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { http } from \"@/utils\"\nimport './index.scss'\nimport { HeaderBar } from \"@common/index\"\nimport { WhiteSpace, Toast } from \"antd-mobile\";\nimport VList from '@/common/v-list-base'\nimport { Popup } from \"@common/index\"\nimport WithFullSize from \"@/HOCs/WithFullSize\"\nimport { connect } from \"react-redux\";\nimport { Link } from \"react-router-dom\";\n\n\nfunction showToast(msg) {\n Toast.info(msg, 2, null, false)\n}\n\nclass LimitFree extends Component {\n\n nav\n state = {\n tab: {},\n courses: [],\n navItemStyle: {},\n tabActiveIndex: 0\n }\n\n componentDidMount() {\n document.title = '助力春招,好课限免--七月在线'\n this.getData()\n }\n\n getData = () => {\n Promise.all([http.get(`${API.home}/sys/category`), http.get(`${API.home}/sys/course`)])\n .then(res => {\n const [tab, courses] = res\n const {data: tabData, code: tabCode, msg: tabMsg} = tab.data\n const {data: coursesData, code: coursesCode, msg: coursesMsg} = courses.data\n if (tabCode == 200) {\n this.setState({\n tab: tabData\n })\n } else {\n showToast(tabMsg)\n }\n if (coursesCode === 200) {\n this.setState({\n courses: coursesData\n })\n } else {\n showToast(coursesMsg)\n }\n })\n }\n\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n changeTab = (e, index) => {\n const {tabActiveIndex} = this.state\n if (tabActiveIndex !== index) {\n this.setState({\n tabActiveIndex: index\n }\n )\n }\n }\n\n getCourse = (courseId, vCourseId) => {\n const {user, history} = this.props\n if (user.hasError) {\n history.push('/passport')\n return\n }\n http.post(`${API.home}/sys/limitFree/receive`, {\n course_id: courseId\n })\n .then(res => {\n const {code, msg} = res.data\n if (code === 200) {\n\n const instance = Popup({\n className: 'get-course-popup',\n closable: false,\n clickMaskClose: false,\n title: <div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/check.png\" alt=\"\"/>\n <div>课程有效期7天,快去学习吧~</div>\n </div>,\n content: <div className={'btns'}>\n <button onClick={() => {\n instance.close()\n this.getData()\n }}>知道了\n </button>\n <button onClick={() => {\n this.toPlay(vCourseId)\n instance.close()\n }}>立即学习\n </button>\n </div>\n })\n\n } else {\n showToast(msg)\n }\n })\n\n }\n\n toPlay = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n\n formatTime = seconds => ({\n d: Math.floor(seconds / 60 / 60 / 24).toString().padStart(2, '0'),\n h: Math.floor(seconds / 60 / 60 % 24).toString().padStart(2, '0'),\n m: Math.floor(seconds / 60 % 60).toString().padStart(2, '0')\n })\n\n render() {\n const {tab, courses, navItemStyle, tabActiveIndex} = this.state\n return (\n <div className='limit-free'>\n <HeaderBar arrow={true} title={'限时免费'}></HeaderBar>\n <div className=\"banner\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/banner.png\" alt=\"\"/>\n </div>\n <nav>\n {/*<div className=\"prev-cover\"></div>*/}\n <ul ref={el => this.nav = el}>\n {\n tab && !!tab.length && tab.map((item, index) => {\n return (\n <li key={index} className={index === tabActiveIndex ? 'active' : ''} style={navItemStyle}\n onClick={e => this.changeTab(e, index)}>\n <a href={`#category${item.id}`} target={'_self'}>{item.category_name}</a>\n </li>\n )\n })\n }\n </ul>\n <div className=\"next-cover\"></div>\n </nav>\n <WhiteSpace/>\n <div className=\"course-list\">\n <ul>\n {\n tab && !!tab.length && tab.map(category => {\n return (\n <li key={category.id} className={'category'}>\n <h2 id={`category${category.id}`}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/category-icon.png\"\n alt=\"\"/>\n <span>{category.category_name}</span>\n </h2>\n <ul className={'courses'}>\n {\n courses && courses.length && courses.map((item, index) => {\n if (item.category_id != category.id) {\n return null\n }\n /*\n * course_status:\n * 0未领取 1已领取未过期 2 已领取已过期 3 正常已购买\n * */\n let des, bottom\n switch (item.course_status) {\n case 0:\n des = <div className={'learner'}>\n <i className='iconfont iconRectangleCopy4'/>\n <span>{item.play_times}人学习</span>\n </div>\n bottom = <div className={'bottom'}>\n <span className={'red'}>限时免费</span>\n <span className={'origin-price'}>¥{item.price0}</span>\n <button onClick={e => {\n e.stopPropagation()\n this.getCourse(item.course_id, item.v_course_id)\n }}>免费领取\n </button>\n </div>\n break\n case 1:\n const {d, h, m} = this.formatTime(item.course_expire)\n des = <div className={'remain-time'}>\n <i className={'iconfont iconiconfront-21'}/>\n <span>{d}天{h}时{m}分后过期</span>\n </div>\n bottom = <div className={'bottom'}>\n <span className={'purchased'}>已领取</span>\n <StudyButton id={item.course_id}/>\n </div>\n break\n case 2:\n des = <div className={'remain-time'}>\n <i className={'iconfont iconiconfront-21'}/>\n <span>{item.play_times}人学习</span>\n </div>\n bottom = <div className={'bottom'}>\n <span className={'red'}>¥{item.price1}</span>\n <span className={'origin-price'}>¥{item.price0}</span>\n <Link to={`/detail?id=${item.course_id}`}>立即购买</Link>\n </div>\n break\n case 3:\n des = <div className={'learner'}>\n <i className='iconfont iconRectangleCopy4'/>\n <span>{item.play_times}人学习</span>\n </div>\n bottom = <div className=\"bottom\">\n <span className={'purchased'}>已购买</span>\n <StudyButton id={item.course_id}/>\n </div>\n }\n\n const info = (\n <div className='info'>\n <div className='title'>{item.course_title}</div>\n {des}\n {bottom}\n </div>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n id={item.course_id}\n info={info}\n key={index}\n />\n )\n })\n }\n </ul>\n </li>\n\n )\n })\n }\n </ul>\n </div>\n <div className=\"no-more\">\n -没有更多了-\n </div>\n </div>\n );\n }\n}\n\nfunction StudyButton({id}) {\n return <Link to={`/play/video?id=${id}`}>立即学习</Link>\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)\n(WithFullSize(LimitFree))","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id, props.item)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/limit-free/index.js","common/v-list-base/index.js"],"names":["showToast","msg","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_9___default","a","info","LimitFree","state","tab","courses","navItemStyle","tabActiveIndex","getData","Promise","all","http","get","concat","API","home","then","res","_res","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__","_tab$data","data","tabData","tabCode","code","tabMsg","_courses$data","coursesData","coursesCode","coursesMsg","_this","setState","handleClick","id","props","history","push","changeTab","e","index","getCourse","courseId","vCourseId","_this$props","user","hasError","post","course_id","_res$data","instance","Popup","className","closable","clickMaskClose","title","react__WEBPACK_IMPORTED_MODULE_10___default","createElement","src","alt","content","onClick","close","toPlay","formatTime","seconds","d","Math","floor","toString","padStart","h","m","document","this","_this2","_this$state","_common_index__WEBPACK_IMPORTED_MODULE_13__","arrow","ref","el","nav","length","map","item","key","style","href","target","category_name","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","category","category_id","des","bottom","course_status","play_times","price0","stopPropagation","v_course_id","_this2$formatTime","course_expire","StudyButton","price1","react_router_dom__WEBPACK_IMPORTED_MODULE_17__","to","course_title","_common_v_list_base__WEBPACK_IMPORTED_MODULE_14__","img","image_name","Component","_ref","connect","WithFullSize","V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js/56.25719836.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { http } from \"@/utils\"\nimport './index.scss'\nimport { HeaderBar } from \"@common/index\"\nimport { WhiteSpace, Toast } from \"antd-mobile\";\nimport VList from '@/common/v-list-base'\nimport { Popup } from \"@common/index\"\nimport WithFullSize from \"@/HOCs/WithFullSize\"\nimport { connect } from \"react-redux\";\nimport { Link } from \"react-router-dom\";\n\n\nfunction showToast(msg) {\n Toast.info(msg, 2, null, false)\n}\n\nclass LimitFree extends Component {\n\n nav\n state = {\n tab: {},\n courses: [],\n navItemStyle: {},\n tabActiveIndex: 0\n }\n\n componentDidMount() {\n document.title = '助力春招,好课限免--七月在线'\n this.getData()\n }\n\n getData = () => {\n Promise.all([http.get(`${API.home}/sys/category`), http.get(`${API.home}/sys/course`)])\n .then(res => {\n const [tab, courses] = res\n const {data: tabData, code: tabCode, msg: tabMsg} = tab.data\n const {data: coursesData, code: coursesCode, msg: coursesMsg} = courses.data\n if (tabCode == 200) {\n this.setState({\n tab: tabData\n })\n } else {\n showToast(tabMsg)\n }\n if (coursesCode === 200) {\n this.setState({\n courses: coursesData\n })\n } else {\n showToast(coursesMsg)\n }\n })\n }\n\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n changeTab = (e, index) => {\n const {tabActiveIndex} = this.state\n if (tabActiveIndex !== index) {\n this.setState({\n tabActiveIndex: index\n }\n )\n }\n }\n\n getCourse = (courseId, vCourseId) => {\n const {user, history} = this.props\n if (user.hasError) {\n history.push('/passport')\n return\n }\n http.post(`${API.home}/sys/limitFree/receive`, {\n course_id: courseId\n })\n .then(res => {\n const {code, msg} = res.data\n if (code === 200) {\n\n const instance = Popup({\n className: 'get-course-popup',\n closable: false,\n clickMaskClose: false,\n title: <div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/check.png\" alt=\"\"/>\n <div>课程有效期7天,快去学习吧~</div>\n </div>,\n content: <div className={'btns'}>\n <button onClick={() => {\n instance.close()\n this.getData()\n }}>知道了\n </button>\n <button onClick={() => {\n this.toPlay(vCourseId)\n instance.close()\n }}>立即学习\n </button>\n </div>\n })\n\n } else {\n showToast(msg)\n }\n })\n\n }\n\n toPlay = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n\n formatTime = seconds => ({\n d: Math.floor(seconds / 60 / 60 / 24).toString().padStart(2, '0'),\n h: Math.floor(seconds / 60 / 60 % 24).toString().padStart(2, '0'),\n m: Math.floor(seconds / 60 % 60).toString().padStart(2, '0')\n })\n\n render() {\n const {tab, courses, navItemStyle, tabActiveIndex} = this.state\n return (\n <div className='limit-free'>\n <HeaderBar arrow={true} title={'限时免费'}></HeaderBar>\n <div className=\"banner\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/banner.png\" alt=\"\"/>\n </div>\n <nav>\n {/*<div className=\"prev-cover\"></div>*/}\n <ul ref={el => this.nav = el}>\n {\n tab && !!tab.length && tab.map((item, index) => {\n return (\n <li key={index} className={index === tabActiveIndex ? 'active' : ''} style={navItemStyle}\n onClick={e => this.changeTab(e, index)}>\n <a href={`#category${item.id}`} target={'_self'}>{item.category_name}</a>\n </li>\n )\n })\n }\n </ul>\n <div className=\"next-cover\"></div>\n </nav>\n <WhiteSpace/>\n <div className=\"course-list\">\n <ul>\n {\n tab && !!tab.length && tab.map(category => {\n return (\n <li key={category.id} className={'category'}>\n <h2 id={`category${category.id}`}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/category-icon.png\"\n alt=\"\"/>\n <span>{category.category_name}</span>\n </h2>\n <ul className={'courses'}>\n {\n courses && courses.length && courses.map((item, index) => {\n if (item.category_id != category.id) {\n return null\n }\n /*\n * course_status:\n * 0未领取 1已领取未过期 2 已领取已过期 3 正常已购买\n * */\n let des, bottom\n switch (item.course_status) {\n case 0:\n des = <div className={'learner'}>\n <i className='iconfont iconRectangleCopy4'/>\n <span>{item.play_times}人学习</span>\n </div>\n bottom = <div className={'bottom'}>\n <span className={'red'}>限时免费</span>\n <span className={'origin-price'}>¥{item.price0}</span>\n <button onClick={e => {\n e.stopPropagation()\n this.getCourse(item.course_id, item.v_course_id)\n }}>免费领取\n </button>\n </div>\n break\n case 1:\n const {d, h, m} = this.formatTime(item.course_expire)\n des = <div className={'remain-time'}>\n <i className={'iconfont iconiconfront-21'}/>\n <span>{d}天{h}时{m}分后过期</span>\n </div>\n bottom = <div className={'bottom'}>\n <span className={'purchased'}>已领取</span>\n <StudyButton id={item.course_id}/>\n </div>\n break\n case 2:\n des = <div className={'remain-time'}>\n <i className={'iconfont iconiconfront-21'}/>\n <span>{item.play_times}人学习</span>\n </div>\n bottom = <div className={'bottom'}>\n <span className={'red'}>¥{item.price1}</span>\n <span className={'origin-price'}>¥{item.price0}</span>\n <Link to={`/detail?id=${item.course_id}`}>立即购买</Link>\n </div>\n break\n case 3:\n des = <div className={'learner'}>\n <i className='iconfont iconRectangleCopy4'/>\n <span>{item.play_times}人学习</span>\n </div>\n bottom = <div className=\"bottom\">\n <span className={'purchased'}>已购买</span>\n <StudyButton id={item.course_id}/>\n </div>\n }\n\n const info = (\n <div className='info'>\n <div className='title'>{item.course_title}</div>\n {des}\n {bottom}\n </div>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n id={item.course_id}\n info={info}\n key={index}\n />\n )\n })\n }\n </ul>\n </li>\n\n )\n })\n }\n </ul>\n </div>\n <div className=\"no-more\">\n -没有更多了-\n </div>\n </div>\n );\n }\n}\n\nfunction StudyButton({id}) {\n return <Link to={`/play/video?id=${id}`}>立即学习</Link>\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)\n(WithFullSize(LimitFree))","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id, props.item)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1281:function(e,t,n){"use strict";n.r(t);var a=n(4),i=n(7),s=n(5),c=n(8),o=n(9),r=n(0),u=n.n(r),l=n(21),p=n(3),b=n(36),d=n.n(b),m=(n(733),function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(s.a)(this,Object(c.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport",{from:n.props.location.pathname}):n.props.history.push("/blessingPreheat")},n.state={butText:"\u7acb\u5373\u9886\u53d6"},n}return Object(o.a)(t,e),Object(i.a)(t,[{key:"componentWillMount",value:function(){d.a.set("blessing_invite_uid",Object(p.c)("shareuid"),{domain:".julyedu.com",expires:30}),d.a.set("blessing_invite_code",Object(p.c)("inviteCode"),{domain:".julyedu.com",expires:30}),d.a.get("uid")&&this.setState(function(){return{butText:"\u5df2\u9886\u53d6\uff0c\u53bb\u4f7f\u7528"}})}},{key:"render",value:function(){var e=this.state.butText;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"content__con"},u.a.createElement("div",{className:"button__get",onClick:this.getGift},e)))}}]),t}(r.Component));t.default=Object(l.b)(function(e){return{user:e.user}},null)(m)},733:function(e,t,n){}}]);
//# sourceMappingURL=Activity.dc19ea48.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1281:function(e,t,n){"use strict";n.r(t);var a=n(4),i=n(7),s=n(5),c=n(8),o=n(9),r=n(0),u=n.n(r),l=n(21),p=n(3),b=n(35),d=n.n(b),m=(n(733),function(e){function t(e){var n;return Object(a.a)(this,t),(n=Object(s.a)(this,Object(c.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport",{from:n.props.location.pathname}):n.props.history.push("/blessingPreheat")},n.state={butText:"\u7acb\u5373\u9886\u53d6"},n}return Object(o.a)(t,e),Object(i.a)(t,[{key:"componentWillMount",value:function(){d.a.set("blessing_invite_uid",Object(p.c)("shareuid"),{domain:".julyedu.com",expires:30}),d.a.set("blessing_invite_code",Object(p.c)("inviteCode"),{domain:".julyedu.com",expires:30}),d.a.get("uid")&&this.setState(function(){return{butText:"\u5df2\u9886\u53d6\uff0c\u53bb\u4f7f\u7528"}})}},{key:"render",value:function(){var e=this.state.butText;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"content__con"},u.a.createElement("div",{className:"button__get",onClick:this.getGift},e)))}}]),t}(r.Component));t.default=Object(l.b)(function(e){return{user:e.user}},null)(m)},733:function(e,t,n){}}]);
//# sourceMappingURL=Activity.ce04657e.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/1111/index.js"],"names":["Activity","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","getGift","user","hasError","history","push","from","location","pathname","state","butText","jsCookie","set","getParam","domain","expires","cookie","get","setState","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","onClick","Component","connect"],"mappings":"yLAQMA,sBACJ,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,KAgBRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,YAAa,CAACC,KAAMZ,EAAKD,MAAMc,SAASC,WAEhEd,EAAKD,MAAMW,QAAQC,KAAK,qBAnB1BX,EAAKe,MAAQ,CACXC,QAAW,4BAHIhB,oFAQjBiB,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,KAC5FC,IAAOC,IAAI,QACZpB,KAAKqB,SAAS,iBAAK,CACjBR,QAAS,iFAaN,IACAA,EAAWb,KAAKY,MAAhBC,QACP,OACES,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACfH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cAAcC,QAAS1B,KAAKI,SAAUS,YAhCxCc,cAuCRC,sBACb,SAAAhB,GAAK,MAAK,CAACP,KAAMO,EAAMP,OACvB,KAFauB,CAGbjC","file":"mrstatic/js/Activity.dc19ea48.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport cookie from 'js-cookie'\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 this.state = {\n 'butText': '立即领取'\n }\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 if(cookie.get('uid')) {\n this.setState(()=>({\n butText: '已领取,去使用'\n }));\n }\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport', {from: this.props.location.pathname});\n } else {\n this.props.history.push('/blessingPreheat');\n }\n }\n\n render() {\n const {butText} = this.state;\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}>{butText}</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
{"version":3,"sources":["components/activity/1111/index.js"],"names":["Activity","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","getGift","user","hasError","history","push","from","location","pathname","state","butText","jsCookie","set","getParam","domain","expires","cookie","get","setState","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","onClick","Component","connect"],"mappings":"yLAQMA,sBACJ,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,KAgBRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,YAAa,CAACC,KAAMZ,EAAKD,MAAMc,SAASC,WAEhEd,EAAKD,MAAMW,QAAQC,KAAK,qBAnB1BX,EAAKe,MAAQ,CACXC,QAAW,4BAHIhB,oFAQjBiB,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,KAC5FC,IAAOC,IAAI,QACZpB,KAAKqB,SAAS,iBAAK,CACjBR,QAAS,iFAaN,IACAA,EAAWb,KAAKY,MAAhBC,QACP,OACES,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACfH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACbH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cAAcC,QAAS1B,KAAKI,SAAUS,YAhCxCc,cAuCRC,sBACb,SAAAhB,GAAK,MAAK,CAACP,KAAMO,EAAMP,OACvB,KAFauB,CAGbjC","file":"mrstatic/js/Activity.ce04657e.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport cookie from 'js-cookie'\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 this.state = {\n 'butText': '立即领取'\n }\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 if(cookie.get('uid')) {\n this.setState(()=>({\n butText: '已领取,去使用'\n }));\n }\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport', {from: this.props.location.pathname});\n } else {\n this.props.history.push('/blessingPreheat');\n }\n }\n\n render() {\n const {butText} = this.state;\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}>{butText}</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([[9],{1153:function(e,t,a){},1272:function(e,t,a){"use strict";a.r(t);a(155);var n,i=a(35),c=a.n(i),s=(a(158),a(92)),o=a.n(s),l=a(20),r=(a(37),a(11)),u=a.n(r),f=a(4),d=a(7),m=a(5),p=a(8),h=a(9),v=a(74),b=a(0),g=a.n(b),y=a(25),E=(a(1153),a(728)),C=a(3),w=a(63),_=a(21),N=a(166);function k(e){e.preventDefault()}var O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(f.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).getTabs=function(){C.d.get("".concat(API.home,"/m/course/classify/").concat(0)).then(function(e){var t=Object(v.a)(Object(v.a)(a));if(200===e.data.code){if(e.data.data.common.length>0){var n=[{basics:[]},{advanced:[]}],i=[];["basics","advanced"].forEach(function(t,a){n[t]=e.data.data.common[a],e.data.data.common[a].list.forEach(function(e,t){i.push({title:e.c_name,id:e.c_id})})}),t.setState({arr:n,allClass:i})}}else u.a.info(e.data.msg,2)}).catch(function(e){console.log(e)})},a.getList=function(){var e=Object(v.a)(Object(v.a)(a));e.setState(function(e,t){return{isLoading:!0}}),C.d.get("".concat(API.home,"/m/course/list/").concat(Object(C.c)("id"))).then(function(t){200===t.data.code&&e.setState({data:t.data.data,isLoading:!1})})},a.ontabclick=function(e){a.props.history.push("/courselist?id=".concat(e.id,"&name=").concat(e.title)),a.getList(),a.setState({activeTab:decodeURIComponent(Object(C.c)("name"))})},a.pulldown=function(){a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block"}},function(){a.state.ispull?document.addEventListener("touchmove",k,{passive:!1}):document.removeEventListener("touchmove",k)})},a.labelclick=function(e){a.props.history.push("/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name)),a.getList(),a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block",activeTab:decodeURIComponent(Object(C.c)("name"))}})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.toClassify=function(){a.props.history.replace("/classify")},a.state={ispull:!1,display:"none",arr:[{basics:[]},{advanced:[]}],allClass:[],data:[],activeTab:decodeURIComponent(Object(C.c)("name")),isLoading:!0,top:44},a}return Object(h.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.getTabs(),this.getList();var e=document.querySelector(".search-nav");this.setState({top:e.offsetHeight})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("touchmove",k)}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid),i=g.a.createElement("i",{className:"iconfont iconiconfront-69 pull-down"}),s=g.a.createElement("i",{className:"iconfont iconiconfront-71 pull-down"}),r=this.state.allClass.findIndex(function(t){return t.title===e.state.activeTab});return g.a.createElement("div",{className:"class-child"},g.a.createElement(E.a,{isLogin:n,toHref:this.toClassify}),g.a.createElement(w.a,{isLoading:this.state.isLoading},g.a.createElement("div",{className:"class-content"},g.a.createElement("div",{onClick:this.pulldown.bind(this)},this.state.ispull?s:i),g.a.createElement(N.StickyContainer,null,g.a.createElement(o.a,{tabs:this.state.allClass,animated:!1,page:r,onChange:function(t){return e.ontabclick(t)},renderTabBar:function(t){return g.a.createElement(N.Sticky,null,function(a){var n=a.style;return g.a.createElement("div",{style:Object(l.a)({},n,{top:"".concat(e.state.top,"px"),zIndex:1})},g.a.createElement(o.a.DefaultTabBar,t))})}},g.a.createElement("div",{className:"tabs"},g.a.createElement("ul",null,this.state.data&&this.state.data.length>0&&this.state.data.map(function(t,a){var n=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},t.desc),g.a.createElement("div",{className:"des"},t.is_restricted?g.a.createElement(B,{course:t}):t.is_buy?g.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70"):g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",t.price1),g.a.createElement("span",{className:"old"},"\xa5",t.price0)))),i=!t.is_buy&&g.a.createElement("div",null,0===t.bargain_num&&0!==t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u51cf",t.groupon_num,"\u5143"),0!==t.bargain_num&&0===t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_num,"\u5143"),t.is_aist&&g.a.createElement("span",{className:"return_cash"}));return g.a.createElement(y.j,{key:a,status:i,img:t.image_name,id:t.course_id,info:n,toDetail:e.toCourseDetail})}))))),g.a.createElement(c.a,null)),g.a.createElement("div",{className:"mbc-box",style:{display:this.state.display}},this.state.arr.basics&&g.a.createElement("div",{className:"tabcontent"},g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.basics.list,title:this.state.arr.basics.name,labelclick:this.labelclick}),g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.advanced.list,title:this.state.arr.advanced.name,labelclick:this.labelclick})))))}}]),t}(b.Component))||n;function R(e){return g.a.createElement("div",{className:"class-course"},g.a.createElement("p",{className:"course-items-title"},e.title),g.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(t,a){return g.a.createElement("span",{className:e.activeTab===t.c_name?"active-label":"item-label",key:a,onClick:function(a){return e.labelclick(t)}},t.c_name)})))}function j(e){var t=e.course;switch(t.limit_free_status){case 0:return g.a.createElement("div",{className:"limit-free"},g.a.createElement("span",null,"\u9650\u65f6\u514d\u8d39"),g.a.createElement("span",null,"\xa5",t.price0));case 1:return g.a.createElement("div",null,"\u5df2\u9886\u53d6");case 2:return g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",t.price1),g.a.createElement("span",{className:"old"},"\xa5",t.price0))}}function B(e){var t=e.course;return t.is_buy?1===t.limit_free_status?g.a.createElement("div",{className:"isbuy"},"\u5df2\u9886\u53d6"):g.a.createElement("div",{className:"isbuy"},"\u5df2\u8d2d\u4e70"):g.a.createElement(j,{course:t})}t.default=O},594:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},599:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(6),c=(n=i)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var i={};if(t&&t.antLocale&&t.antLocale[a])i=t.antLocale[a];else{var s=n();i=s.default||s}var o=(0,c.default)({},i);e.locale&&(o=(0,c.default)({},o,e.locale),e.locale.lang&&(o.lang=(0,c.default)({},i.lang,e.locale.lang)));return o},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},619:function(e,t,a){"use strict";a(49),a(620)},620:function(e,t,a){},621:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(6)),i=b(a(34)),c=b(a(12)),s=b(a(15)),o=b(a(13)),l=b(a(16)),r=b(a(18)),u=v(a(0)),f=v(a(2)),d=b(a(157)),m=b(a(594)),p=a(599),h=a(622);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,c.default)(this,t);var a=(0,o.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,c=this.props,s=c.prefixCls,o=c.showCancelButton,l=c.disabled,f=c.placeholder,h=c.className,v=c.style,b=c.maxLength,g=(0,p.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(623)}).cancelText,y=this.state,E=y.value,C=y.focus,w=(0,r.default)(s,h,(0,i.default)({},s+"-start",!!(C||E&&E.length>0))),_=(0,r.default)(s+"-clear",(0,i.default)({},s+"-clear-show",!!(C&&E&&E.length>0))),N=(0,r.default)(s+"-cancel",(e={},(0,i.default)(e,s+"-cancel-show",!!(o||C||E&&E.length>0)),(0,i.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:w,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!E?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:E,disabled:l,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:b},(0,m.default)(this.props))),u.createElement(d.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:_}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||g))}}]),t}(u.Component);t.default=g,g.defaultProps=h.defaultProps,g.contextTypes={antLocale:f.object},e.exports=t.default},622:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},623:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},728:function(e,t,a){"use strict";a(619);var n=a(621),i=a.n(n),c=a(4),s=a(7),o=a(5),l=a(8),r=a(9),u=a(0),f=a.n(u),d=(a(729),function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(o.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(i.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},729:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.27f68cf5.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1153:function(e,t,a){},1272:function(e,t,a){"use strict";a.r(t);a(155);var n,i=a(36),c=a.n(i),s=(a(158),a(92)),o=a.n(s),l=a(20),r=(a(37),a(11)),u=a.n(r),f=a(4),d=a(7),m=a(5),p=a(8),h=a(9),v=a(74),b=a(0),g=a.n(b),y=a(25),E=(a(1153),a(728)),C=a(3),w=a(63),_=a(21),N=a(166);function k(e){e.preventDefault()}var O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(f.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).getTabs=function(){C.d.get("".concat(API.home,"/m/course/classify/").concat(0)).then(function(e){var t=Object(v.a)(Object(v.a)(a));if(200===e.data.code){if(e.data.data.common.length>0){var n=[{basics:[]},{advanced:[]}],i=[];["basics","advanced"].forEach(function(t,a){n[t]=e.data.data.common[a],e.data.data.common[a].list.forEach(function(e,t){i.push({title:e.c_name,id:e.c_id})})}),t.setState({arr:n,allClass:i})}}else u.a.info(e.data.msg,2)}).catch(function(e){console.log(e)})},a.getList=function(){var e=Object(v.a)(Object(v.a)(a));e.setState(function(e,t){return{isLoading:!0}}),C.d.get("".concat(API.home,"/m/course/list/").concat(Object(C.c)("id"))).then(function(t){200===t.data.code&&e.setState({data:t.data.data,isLoading:!1})})},a.ontabclick=function(e){a.props.history.push("/courselist?id=".concat(e.id,"&name=").concat(e.title)),a.getList(),a.setState({activeTab:decodeURIComponent(Object(C.c)("name"))})},a.pulldown=function(){a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block"}},function(){a.state.ispull?document.addEventListener("touchmove",k,{passive:!1}):document.removeEventListener("touchmove",k)})},a.labelclick=function(e){a.props.history.push("/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name)),a.getList(),a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block",activeTab:decodeURIComponent(Object(C.c)("name"))}})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.toClassify=function(){a.props.history.replace("/classify")},a.state={ispull:!1,display:"none",arr:[{basics:[]},{advanced:[]}],allClass:[],data:[],activeTab:decodeURIComponent(Object(C.c)("name")),isLoading:!0,top:44},a}return Object(h.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.getTabs(),this.getList();var e=document.querySelector(".search-nav");this.setState({top:e.offsetHeight})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("touchmove",k)}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid),i=g.a.createElement("i",{className:"iconfont iconiconfront-69 pull-down"}),s=g.a.createElement("i",{className:"iconfont iconiconfront-71 pull-down"}),r=this.state.allClass.findIndex(function(t){return t.title===e.state.activeTab});return g.a.createElement("div",{className:"class-child"},g.a.createElement(E.a,{isLogin:n,toHref:this.toClassify}),g.a.createElement(w.a,{isLoading:this.state.isLoading},g.a.createElement("div",{className:"class-content"},g.a.createElement("div",{onClick:this.pulldown.bind(this)},this.state.ispull?s:i),g.a.createElement(N.StickyContainer,null,g.a.createElement(o.a,{tabs:this.state.allClass,animated:!1,page:r,onChange:function(t){return e.ontabclick(t)},renderTabBar:function(t){return g.a.createElement(N.Sticky,null,function(a){var n=a.style;return g.a.createElement("div",{style:Object(l.a)({},n,{top:"".concat(e.state.top,"px"),zIndex:1})},g.a.createElement(o.a.DefaultTabBar,t))})}},g.a.createElement("div",{className:"tabs"},g.a.createElement("ul",null,this.state.data&&this.state.data.length>0&&this.state.data.map(function(t,a){var n=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},t.desc),g.a.createElement("div",{className:"des"},t.is_restricted?g.a.createElement(B,{course:t}):t.is_buy?g.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70"):g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",t.price1),g.a.createElement("span",{className:"old"},"\xa5",t.price0)))),i=!t.is_buy&&g.a.createElement("div",null,0===t.bargain_num&&0!==t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u51cf",t.groupon_num,"\u5143"),0!==t.bargain_num&&0===t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_num,"\u5143"),t.is_aist&&g.a.createElement("span",{className:"return_cash"}));return g.a.createElement(y.j,{key:a,status:i,img:t.image_name,id:t.course_id,info:n,toDetail:e.toCourseDetail})}))))),g.a.createElement(c.a,null)),g.a.createElement("div",{className:"mbc-box",style:{display:this.state.display}},this.state.arr.basics&&g.a.createElement("div",{className:"tabcontent"},g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.basics.list,title:this.state.arr.basics.name,labelclick:this.labelclick}),g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.advanced.list,title:this.state.arr.advanced.name,labelclick:this.labelclick})))))}}]),t}(b.Component))||n;function R(e){return g.a.createElement("div",{className:"class-course"},g.a.createElement("p",{className:"course-items-title"},e.title),g.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(t,a){return g.a.createElement("span",{className:e.activeTab===t.c_name?"active-label":"item-label",key:a,onClick:function(a){return e.labelclick(t)}},t.c_name)})))}function j(e){var t=e.course;switch(t.limit_free_status){case 0:return g.a.createElement("div",{className:"limit-free"},g.a.createElement("span",null,"\u9650\u65f6\u514d\u8d39"),g.a.createElement("span",null,"\xa5",t.price0));case 1:return g.a.createElement("div",null,"\u5df2\u9886\u53d6");case 2:return g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",t.price1),g.a.createElement("span",{className:"old"},"\xa5",t.price0))}}function B(e){var t=e.course;return t.is_buy?1===t.limit_free_status?g.a.createElement("div",{className:"isbuy"},"\u5df2\u9886\u53d6"):g.a.createElement("div",{className:"isbuy"},"\u5df2\u8d2d\u4e70"):g.a.createElement(j,{course:t})}t.default=O},594:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},599:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(6),c=(n=i)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var i={};if(t&&t.antLocale&&t.antLocale[a])i=t.antLocale[a];else{var s=n();i=s.default||s}var o=(0,c.default)({},i);e.locale&&(o=(0,c.default)({},o,e.locale),e.locale.lang&&(o.lang=(0,c.default)({},i.lang,e.locale.lang)));return o},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},619:function(e,t,a){"use strict";a(49),a(620)},620:function(e,t,a){},621:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(6)),i=b(a(34)),c=b(a(12)),s=b(a(15)),o=b(a(13)),l=b(a(16)),r=b(a(18)),u=v(a(0)),f=v(a(2)),d=b(a(157)),m=b(a(594)),p=a(599),h=a(622);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,c.default)(this,t);var a=(0,o.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,c=this.props,s=c.prefixCls,o=c.showCancelButton,l=c.disabled,f=c.placeholder,h=c.className,v=c.style,b=c.maxLength,g=(0,p.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(623)}).cancelText,y=this.state,E=y.value,C=y.focus,w=(0,r.default)(s,h,(0,i.default)({},s+"-start",!!(C||E&&E.length>0))),_=(0,r.default)(s+"-clear",(0,i.default)({},s+"-clear-show",!!(C&&E&&E.length>0))),N=(0,r.default)(s+"-cancel",(e={},(0,i.default)(e,s+"-cancel-show",!!(o||C||E&&E.length>0)),(0,i.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:w,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!E?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:E,disabled:l,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:b},(0,m.default)(this.props))),u.createElement(d.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:_}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||g))}}]),t}(u.Component);t.default=g,g.defaultProps=h.defaultProps,g.contextTypes={antLocale:f.object},e.exports=t.default},622:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},623:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},728:function(e,t,a){"use strict";a(619);var n=a(621),i=a.n(n),c=a(4),s=a(7),o=a(5),l=a(8),r=a(9),u=a(0),f=a.n(u),d=(a(729),function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(o.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(i.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},729:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.5557a131.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/classify/courselist.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["stopScroll","e","preventDefault","Classify","connect","_ref","user","props","_this2","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_12__","data","code","common","length","arr2","basics","advanced","arr3","forEach","item","index","list","push","title","c_name","id","c_id","setState","arr","allClass","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","msg","catch","err","console","log","getList","state","isLoading","getParam","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","document","addEventListener","passive","removeEventListener","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","replace","top","el","querySelector","offsetHeight","_this3","_this$props$user","isLogin","uid","bottom","react__WEBPACK_IMPORTED_MODULE_13___default","createElement","className","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_16__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_18__","onClick","bind","react_sticky__WEBPACK_IMPORTED_MODULE_20__","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_3___default","tabs","animated","onChange","renderTabBar","_ref2","style","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_4__","zIndex","DefaultTabBar","map","Info","course_id","course_title","desc","is_restricted","LimitFree","course","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_14__","key","img","image_name","toDetail","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","ClassCourse","name","Component","LimitFreeStatus","_ref3","limit_free_status","_ref4","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"wUAWA,SAASA,EAAWC,GAClBA,EAAEC,qBAMEC,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CACpBC,KADOD,EAAEC,sBAIT,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACjBK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KA8BRQ,QAAU,WAERC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,uBAAAF,OADW,IAERG,KAAK,SAACC,GACL,IAAMC,EAAKd,OAAAe,EAAA,EAAAf,QAAAe,EAAA,EAAAf,CAAAD,IACX,GAAsB,MAAlBc,EAAIG,KAAKC,MACX,GAAIJ,EAAIG,KAAKA,KAAKE,OAAOC,OAAS,EAAG,CACnC,IACIC,EAAO,CAAC,CAACC,OAAQ,IAAK,CAACC,SAAU,KACjCC,EAAO,GAFD,CAAC,SAAU,YAGjBC,QAAQ,SAAUC,EAAMC,GAC1BN,EAAKK,GAAQZ,EAAIG,KAAKA,KAAKE,OAAOQ,GAClCb,EAAIG,KAAKA,KAAKE,OAAOQ,GAAOC,KAAKH,QAAQ,SAAUC,EAAMC,GACvDH,EAAKK,KAAK,CAACC,MAASJ,EAAKK,OAAQC,GAAMN,EAAKO,WAGhDlB,EAAM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K,KAAKoP,SAASjK,KAAKnF,MAC5BgN,kBAAkB,IAEtBiC,EAAA9M,EAAAwC,cAAA,KACIC,UAAW,+CACXM,QAASlF,KAAK4O,kBAzCdvH,cAkDTsH","file":"mrstatic/js/CourseList.27f68cf5.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { VList } from '../../common'\nimport { Tabs, WhiteSpace, Toast } from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport { http, getParam } from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport { connect } from 'react-redux';\nimport { StickyContainer, Sticky } from \"react-sticky\";\n\n\nfunction stopScroll(e) {\n e.preventDefault()\n}\n\n@connect(({user}) => ({\n user\n}))\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n ispull: false,\n display: 'none',\n arr: [{basics: []}, {advanced: []}],\n allClass: [],\n data: [],\n activeTab: decodeURIComponent(getParam('name')),\n isLoading: true,\n top: 44\n }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\n\n const el = document.querySelector('.search-nav');\n this.setState({\n top: el.offsetHeight\n });\n }\n\n componentWillUnmount() {\n document.removeEventListener('touchmove', stopScroll)\n }\n\n\n // 获取tabs接口\n getTabs = () => {\n let data = 0\n http.get(`${API.home}/m/course/classify/${data}`)\n .then((res) => {\n const _this = this\n if (res.data.code === 200) {\n if (res.data.data.common.length > 0) {\n let arr = ['basics', 'advanced']\n let arr2 = [{basics: []}, {advanced: []}]\n let arr3 = []\n arr.forEach(function (item, index) {\n arr2[item] = res.data.data.common[index]\n res.data.data.common[index].list.forEach(function (item, index) {\n arr3.push({'title': item.c_name, 'id': item.c_id})\n })\n })\n _this.setState({\n arr: arr2,\n allClass: arr3\n })\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n .catch(err => {\n console.log(err)\n })\n }\n\n // 获取课程接口\n getList = () => {\n const _this = this\n _this.setState((state, props) => ({\n isLoading: true\n }));\n http.get(`${API.home}/m/course/list/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n data: res.data.data,\n isLoading: false\n })\n }\n })\n }\n\n\n // 点击横向滚动tab查询\n ontabclick = (tab) => {\n this.props.history.push(`/courselist?id=${tab.id}&name=${tab.title}`)\n this.getList()\n this.setState({\n activeTab: decodeURIComponent(getParam('name'))\n });\n }\n\n // 上下展示\n pulldown = () => {\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block'\n }), () => {\n this.state.ispull ? document.addEventListener('touchmove', stopScroll, {\n passive: false\n }) : document.removeEventListener('touchmove', stopScroll)\n });\n }\n\n // 弹窗里面tab点击查询\n labelclick = (item) => {\n this.props.history.push(`/courselist?id=${item.c_id}&name=${item.c_name}`)\n this.getList()\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block',\n activeTab: decodeURIComponent(getParam('name'))\n }))\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n toClassify = () => {\n this.props.history.replace('/classify');\n }\n\n render() {\n const {user = {}} = this.props;\n let isLogin = user.data && user.data.uid ? true : false;\n const bottom = (\n <i className={'iconfont iconiconfront-69 pull-down'}></i>\n )\n const top = (\n <i className={'iconfont iconiconfront-71 pull-down'}></i>\n )\n\n let page = this.state.allClass.findIndex((item) => item.title === this.state.activeTab)\n return (\n <div className='class-child'>\n <HeaderSearch\n isLogin={isLogin}\n toHref={this.toClassify}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n {/* <WhiteSpace/> */}\n <div onClick={this.pulldown.bind(this)}>\n {this.state.ispull ? top : bottom}\n </div>\n <StickyContainer>\n {/* <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => <div className={'custom-render-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n > */}\n <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => {\n return (\n <Sticky>\n {({style}) => {\n return (\n <div style={{...style, top: `${this.state.top}px`, zIndex: 1}}>\n <Tabs.DefaultTabBar {...props} />\n </div>\n )\n }}\n </Sticky>\n )\n }}\n >\n <div className='tabs'>\n <ul>\n {this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {item.course_title}\n </p>\n <p className='contact text-overflow-2'>{item.desc}</p>\n <div className='des'>\n {\n item.is_restricted ?\n <LimitFree course={item}/>\n : item.is_buy\n ? <span className=\"isbuy\">已购买</span>\n : <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {item.bargain_num === 0 && item.groupon_num !== 0 &&\n <p className='course-status'>拼团减{item.groupon_num}元</p>\n }\n {item.bargain_num !== 0 && item.groupon_num === 0 &&\n <p className='course-status'>砍价减{item.bargain_num}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n status={status}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n </div>\n </Tabs>\n\n </StickyContainer>\n <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nfunction LimitFreeStatus({course}) {\n /*\n * limit-free-status: 0-未领取 1-已领取 2-已过期\n *\n * */\n switch (course.limit_free_status) {\n case 0:\n return <div className=\"limit-free\">\n <span>限时免费</span>\n <span>¥{course.price0}</span>\n </div>\n case 1:\n return <div>已领取</div>\n case 2:\n return <p className=\"course-price\">\n <span className=\"new\">¥{course.price1}</span>\n <span className=\"old\">¥{course.price0}</span>\n </p>\n }\n}\n\nfunction LimitFree({course}) {\n if (course.is_buy) {\n if (course.limit_free_status === 1) {\n return <div className={'isbuy'}>已领取</div>\n } else {\n return <div className={'isbuy'}>已购买</div>\n }\n } else {\n return <LimitFreeStatus course={course}/>\n }\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/courselist.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["stopScroll","e","preventDefault","Classify","connect","_ref","user","props","_this2","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_12__","data","code","common","length","arr2","basics","advanced","arr3","forEach","item","index","list","push","title","c_name","id","c_id","setState","arr","allClass","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","msg","catch","err","console","log","getList","state","isLoading","getParam","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","document","addEventListener","passive","removeEventListener","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","replace","top","el","querySelector","offsetHeight","_this3","_this$props$user","isLogin","uid","bottom","react__WEBPACK_IMPORTED_MODULE_13___default","createElement","className","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_16__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_18__","onClick","bind","react_sticky__WEBPACK_IMPORTED_MODULE_20__","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_3___default","tabs","animated","onChange","renderTabBar","_ref2","style","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_4__","zIndex","DefaultTabBar","map","Info","course_id","course_title","desc","is_restricted","LimitFree","course","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_14__","key","img","image_name","toDetail","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","ClassCourse","name","Component","LimitFreeStatus","_ref3","limit_free_status","_ref4","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"wUAWA,SAASA,EAAWC,GAClBA,EAAEC,qBAMEC,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CACpBC,KADOD,EAAEC,sBAIT,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACjBK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KA8BRQ,QAAU,WAERC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,uBAAAF,OADW,IAERG,KAAK,SAACC,GACL,IAAMC,EAAKd,OAAAe,EAAA,EAAAf,QAAAe,EAAA,EAAAf,CAAAD,IACX,GAAsB,MAAlBc,EAAIG,KAAKC,MACX,GAAIJ,EAAIG,KAAKA,KAAKE,OAAOC,OAAS,EAAG,CACnC,IACIC,EAAO,CAAC,CAACC,OAAQ,IAAK,CAACC,SAAU,KACjCC,EAAO,GAFD,CAAC,SA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IC,UAAW,mCACXM,QAASlF,KAAKkP,OAAO/J,KAAKnF,QAI9BA,KAAKJ,MAAMoF,QACXiK,EAAA9M,EAAAwC,cAAA,KACIC,UAAW,mCACXM,QAASlF,KAAKJ,MAAMoF,SAG5BiK,EAAA9M,EAAAwC,cAAAwK,EAAAhN,EAAA,CACIwL,YAAY,2BACZE,WAAY,IACZ/C,QAAS9K,KAAKoP,SAASjK,KAAKnF,MAC5BgN,kBAAkB,IAEtBiC,EAAA9M,EAAAwC,cAAA,KACIC,UAAW,+CACXM,QAASlF,KAAK4O,kBAzCdvH,cAkDTsH","file":"mrstatic/js/CourseList.5557a131.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { VList } from '../../common'\nimport { Tabs, WhiteSpace, Toast } from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport { http, getParam } from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport { connect } from 'react-redux';\nimport { StickyContainer, Sticky } from \"react-sticky\";\n\n\nfunction stopScroll(e) {\n e.preventDefault()\n}\n\n@connect(({user}) => ({\n user\n}))\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n ispull: false,\n display: 'none',\n arr: [{basics: []}, {advanced: []}],\n allClass: [],\n data: [],\n activeTab: decodeURIComponent(getParam('name')),\n isLoading: true,\n top: 44\n }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\n\n const el = document.querySelector('.search-nav');\n this.setState({\n top: el.offsetHeight\n });\n }\n\n componentWillUnmount() {\n document.removeEventListener('touchmove', stopScroll)\n }\n\n\n // 获取tabs接口\n getTabs = () => {\n let data = 0\n http.get(`${API.home}/m/course/classify/${data}`)\n .then((res) => {\n const _this = this\n if (res.data.code === 200) {\n if (res.data.data.common.length > 0) {\n let arr = ['basics', 'advanced']\n let arr2 = [{basics: []}, {advanced: []}]\n let arr3 = []\n arr.forEach(function (item, index) {\n arr2[item] = res.data.data.common[index]\n res.data.data.common[index].list.forEach(function (item, index) {\n arr3.push({'title': item.c_name, 'id': item.c_id})\n })\n })\n _this.setState({\n arr: arr2,\n allClass: arr3\n })\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n .catch(err => {\n console.log(err)\n })\n }\n\n // 获取课程接口\n getList = () => {\n const _this = this\n _this.setState((state, props) => ({\n isLoading: true\n }));\n http.get(`${API.home}/m/course/list/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n data: res.data.data,\n isLoading: false\n })\n }\n })\n }\n\n\n // 点击横向滚动tab查询\n ontabclick = (tab) => {\n this.props.history.push(`/courselist?id=${tab.id}&name=${tab.title}`)\n this.getList()\n this.setState({\n activeTab: decodeURIComponent(getParam('name'))\n });\n }\n\n // 上下展示\n pulldown = () => {\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block'\n }), () => {\n this.state.ispull ? document.addEventListener('touchmove', stopScroll, {\n passive: false\n }) : document.removeEventListener('touchmove', stopScroll)\n });\n }\n\n // 弹窗里面tab点击查询\n labelclick = (item) => {\n this.props.history.push(`/courselist?id=${item.c_id}&name=${item.c_name}`)\n this.getList()\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block',\n activeTab: decodeURIComponent(getParam('name'))\n }))\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n toClassify = () => {\n this.props.history.replace('/classify');\n }\n\n render() {\n const {user = {}} = this.props;\n let isLogin = user.data && user.data.uid ? true : false;\n const bottom = (\n <i className={'iconfont iconiconfront-69 pull-down'}></i>\n )\n const top = (\n <i className={'iconfont iconiconfront-71 pull-down'}></i>\n )\n\n let page = this.state.allClass.findIndex((item) => item.title === this.state.activeTab)\n return (\n <div className='class-child'>\n <HeaderSearch\n isLogin={isLogin}\n toHref={this.toClassify}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n {/* <WhiteSpace/> */}\n <div onClick={this.pulldown.bind(this)}>\n {this.state.ispull ? top : bottom}\n </div>\n <StickyContainer>\n {/* <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => <div className={'custom-render-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n > */}\n <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => {\n return (\n <Sticky>\n {({style}) => {\n return (\n <div style={{...style, top: `${this.state.top}px`, zIndex: 1}}>\n <Tabs.DefaultTabBar {...props} />\n </div>\n )\n }}\n </Sticky>\n )\n }}\n >\n <div className='tabs'>\n <ul>\n {this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {item.course_title}\n </p>\n <p className='contact text-overflow-2'>{item.desc}</p>\n <div className='des'>\n {\n item.is_restricted ?\n <LimitFree course={item}/>\n : item.is_buy\n ? <span className=\"isbuy\">已购买</span>\n : <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {item.bargain_num === 0 && item.groupon_num !== 0 &&\n <p className='course-status'>拼团减{item.groupon_num}元</p>\n }\n {item.bargain_num !== 0 && item.groupon_num === 0 &&\n <p className='course-status'>砍价减{item.bargain_num}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n status={status}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n </div>\n </Tabs>\n\n </StickyContainer>\n <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nfunction LimitFreeStatus({course}) {\n /*\n * limit-free-status: 0-未领取 1-已领取 2-已过期\n *\n * */\n switch (course.limit_free_status) {\n case 0:\n return <div className=\"limit-free\">\n <span>限时免费</span>\n <span>¥{course.price0}</span>\n </div>\n case 1:\n return <div>已领取</div>\n case 2:\n return <p className=\"course-price\">\n <span className=\"new\">¥{course.price1}</span>\n <span className=\"old\">¥{course.price0}</span>\n </p>\n }\n}\n\nfunction LimitFree({course}) {\n if (course.is_buy) {\n if (course.limit_free_status === 1) {\n return <div className={'isbuy'}>已领取</div>\n } else {\n return <div className={'isbuy'}>已购买</div>\n }\n } else {\n return <LimitFreeStatus course={course}/>\n }\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1268:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(91);var n=t(27),c=t.n(n),l=(t(155),t(35)),s=t.n(l),i=(t(156),t(76)),r=t.n(i),m=t(4),o=t(7),d=t(5),p=t(8),E=t(9),u=t(0),N=t.n(u),v=(t(892),t(108)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},892:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.2b492d24.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1268:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(91);var n=t(27),c=t.n(n),l=(t(155),t(36)),s=t.n(l),i=(t(156),t(76)),r=t.n(i),m=t(4),o=t(7),d=t(5),p=t(8),E=t(9),u=t(0),N=t.n(u),v=(t(892),t(108)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},892:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.bcec53f1.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/scholarship/DrawDocument/DrawDocument.js"],"names":["DrawDocument","props","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","react__WEBPACK_IMPORTED_MODULE_11___default","a","createElement","className","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","onClick","history","goBack","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","size","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","align","style","height","_common_CallApp__WEBPACK_IMPORTED_MODULE_13__","text","Component"],"mappings":"6RAKqBA,cACjB,SAAAA,EAAYC,GAAQ,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAJ,GAAAE,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAF,GAAAO,KAAAH,KACVH,0E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pace, WingBlank } from 'antd-mobile';\nimport './DrawDocument.scss';\nimport OpenApp from '@/common/CallApp';\n\nexport default class DrawDocument extends Component {\n constructor(props) {\n super(props);\n }\n render() {\n return (\n <div className={'drawDocument'}>\n <div>\n <WingBlank className={'navbar'}>\n <i className={'iconfont iconiconfront-68 back'} onClick={this.props.history.goBack}></i>\n <div className={\"common-ft-15\"}>规则说明</div>\n </WingBlank>\n </div>\n\n <div className={'content'}>\n <WingBlank>\n <div className={'directions-div'}>分销规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>点击『分享赚钱』生成您的专属海报,把专属海报分享到微信、微博、QQ、知乎、贴吧等,他人通过您的海报购买后您可获得相应的佣金奖励。</p>\n <WhiteSpace size='lg'></WhiteSpace>\n <WhiteSpace size='lg'></WhiteSpace>\n <div className={'directions-div'}>提现规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>1. 已开始的直播课程,用户购买后佣金会实时转入您的账号余额;</p>\n <p className={'directions-p'}>2. 尚未开课的直播课程,用户购买后归属您的佣金户暂时存放在『待确认金额』中,直到该课程正式开课。如果用户没有退款,对应的订单金额会自动转入您的账号余额,否则该佣金会自动收回;</p>\n <p className={'directions-p'}>3. 余额中的金额可随时提现。</p>\n </WingBlank>\n </div>\n\n <div className={'bottom'}>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <p className={'tip'}>收支明细及待确认金额请前往App查看</p>\n {/* <div className={'app'}>在APP打开</div> */}\n <OpenApp className='app' text='在APP打开'/>\n </Flex>\n </WingBlank>\n </div>\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/scholarship/DrawDocument/DrawDocument.js"],"names":["DrawDocument","props","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","react__WEBPACK_IMPORTED_MODULE_11___default","a","createElement","className","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","onClick","history","goBack","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","size","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","align","style","height","_common_CallApp__WEBPACK_IMPORTED_MODULE_13__","text","Component"],"mappings":"6RAKqBA,cACjB,SAAAA,EAAYC,GAAQ,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAJ,GAAAE,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAF,GAAAO,KAAAH,KACVH,0EAGN,OACIO,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBACZH,EAAAC,EAAAC,cAAA,WACIF,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,CAAWE,UAAW,UAClBH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,iCAAkCE,QAAST,KAAKH,MAAMa,QAAQC,SAC5EP,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBAAhB,8BAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,WACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,0XACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,+KACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,qgBACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,iFAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,UACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAAQ,EAAAT,EAAA,CAAMU,QAAQ,UAAUC,MAAM,SAASC,MAAO,CAACC,OAAQ,SACnDd,EAAAC,EAAAC,cAAA,KAAGC,UAAW,OAAd,iGAEAH,EAAAC,EAAAC,cAACa,EAAA,EAAD,CAASZ,UAAU,MAAMa,KAAK,qCAlChBC","file":"mrstatic/js/DrawDocument.bcec53f1.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WhiteSpace, WingBlank } from 'antd-mobile';\nimport './DrawDocument.scss';\nimport OpenApp from '@/common/CallApp';\n\nexport default class DrawDocument extends Component {\n constructor(props) {\n super(props);\n }\n render() {\n return (\n <div className={'drawDocument'}>\n <div>\n <WingBlank className={'navbar'}>\n <i className={'iconfont iconiconfront-68 back'} onClick={this.props.history.goBack}></i>\n <div className={\"common-ft-15\"}>规则说明</div>\n </WingBlank>\n </div>\n\n <div className={'content'}>\n <WingBlank>\n <div className={'directions-div'}>分销规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>点击『分享赚钱』生成您的专属海报,把专属海报分享到微信、微博、QQ、知乎、贴吧等,他人通过您的海报购买后您可获得相应的佣金奖励。</p>\n <WhiteSpace size='lg'></WhiteSpace>\n <WhiteSpace size='lg'></WhiteSpace>\n <div className={'directions-div'}>提现规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>1. 已开始的直播课程,用户购买后佣金会实时转入您的账号余额;</p>\n <p className={'directions-p'}>2. 尚未开课的直播课程,用户购买后归属您的佣金户暂时存放在『待确认金额』中,直到该课程正式开课。如果用户没有退款,对应的订单金额会自动转入您的账号余额,否则该佣金会自动收回;</p>\n <p className={'directions-p'}>3. 余额中的金额可随时提现。</p>\n </WingBlank>\n </div>\n\n <div className={'bottom'}>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <p className={'tip'}>收支明细及待确认金额请前往App查看</p>\n {/* <div className={'app'}>在APP打开</div> */}\n <OpenApp className='app' text='在APP打开'/>\n </Flex>\n </WingBlank>\n </div>\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1160:function(e,t,a){},1282:function(e,t,a){"use strict";a.r(t);a(37);var n=a(11),i=a.n(n),c=a(4),s=a(7),l=a(5),o=a(8),r=a(9),m=a(0),u=a.n(m),d=a(21),p=(a(733),a(3)),g=a(36),h=a.n(g),v=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(o.a)(t).call(this,e))).distinguishVersion=function(){if(1==Object(p.c)("plat_form")){var e=Number(Object(p.c)("version"));a.setState({isshowAppTip:e<3.704})}if(2==Object(p.c)("plat_form")){var t=Object(p.c)("version").replace(/\./g,"").slice(0,3);a.setState({isshowAppTip:Number(t)<451})}},a.getUserList=function(){p.d.get("".concat(API.home,"/sys/user/invite/list")).then(function(e){var t=e.data,n=t.code,c=t.data,s=t.msg;200===n?a.setState({userList:c}):i.a.info(s,2)})},a.getHotValue=function(){p.d.get("".concat(API.home,"/sys/user/hot/value")).then(function(e){var t=e.data,n=t.code,c=t.data,s=t.msg;200===n?a.setState({hot_schedule:c.hot_schedule,hotValue:c.hot_value}):i.a.info(s,2)})},a.getInviteCode=function(){p.d.get("".concat(API.home,"/sys/user/invite/link")).then(function(e){var t=e.data,n=t.code,c=t.data,s=t.msg;if(200===n){var l=c.blessing_invite_code;Object(p.f)()&&Object(p.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:encodeURI(location.origin+"/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(l)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState(function(){return{inviteCode:l}})}else 4030===n||4040===n?history.push("/passport"):i.a.info(s,2)})},a.inviteFriends=function(){var e=a.props,t=e.user,n=e.history,c=a.state,s=c.inviteCode,l=c.isshowAppTip;if(Object(p.c)("version"))if(t.hasError)Object(p.a)("toLogin");else if(l)i.a.info("\u8bf7\u524d\u5f80h5/pc\u7aef\u4f7f\u7528\u8be5\u529f\u80fd",2);else{var o={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:API.m+"/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"};Object(p.a)("toShare",o)}else t.hasError?n.push("/passport"):Object(p.f)()?(n.push("/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s)),Object(p.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:encodeURI(location.origin+"/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState({showTip:!0,isWeiXin:!0})):(n.push("/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s)),a.setState({showTip:!0}))},a.closeMark=function(){a.setState({showTip:!1})},a.state={isWeiXin:!1,showTip:!1,hotValue:0,hot_schedule:"",userList:[],inviteCode:"",isshowAppTip:!1},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){var e=h.a.get("uid"),t=Object(p.c)("shareuid");e===t||Object(p.c)("new")&&this.props.history.push("/activity?shareuid=".concat(t,"&inviteCode=").concat(Object(p.c)("inviteCode"))),this.distinguishVersion()}},{key:"componentDidMount",value:function(){this.props.user.hasError||(this.getUserList(),this.getHotValue(),this.getInviteCode())}},{key:"componentWillReceiveProps",value:function(e){console.log("componentWillReceiveProps"),e.user.hasError||(this.getUserList(),this.getHotValue(),this.getInviteCode())}},{key:"render",value:function(){var e=this.state,t=e.userList,a=e.showTip,n=e.hotValue,i=e.hot_schedule,c=e.isWeiXin;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"invite__content"},u.a.createElement("div",{className:"content__one"},u.a.createElement("p",null,"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c\uff0c\u6bcf\u589e\u52a01\u4eba\u53ef"),u.a.createElement("div",{className:"img__con"})),u.a.createElement("div",{className:"content__two"},"\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff01"),u.a.createElement("div",{className:"box__out"},u.a.createElement("div",{className:"box__middle"},u.a.createElement("div",{className:"box__inner"},u.a.createElement("p",null,"\u5f53\u524d\u4e2d\u5956\u6982\u7387\u503c:"),u.a.createElement("p",{className:"hot__value"},n),u.a.createElement("div",{className:"hot__progress"},u.a.createElement("div",{className:"progress__bar"},u.a.createElement("div",{className:"progress__point",style:{width:i}})))))),u.a.createElement("div",{className:"but__con"},u.a.createElement("div",{className:"button__content",onClick:this.inviteFriends},"\u7acb\u5373\u9080\u8bf7")),t.length>0?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"list__title"},u.a.createElement("span",null,"\u9080\u8bf7\u597d\u53cb\u5217\u8868")),u.a.createElement("p",{className:"show__new"},"(\u4ec5\u663e\u793a\u65b0\u7528\u6237)")):null,t.length>0?u.a.createElement("div",{className:"list__con"},1===t.length&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info item__con-only",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.head_image}),u.a.createElement("div",{className:"user_name"},e.user_name)))}),t.length>1&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.head_image}),u.a.createElement("div",{className:"user_name"},e.user_name)))})):null),a&&u.a.createElement("div",{className:"share__mark",onClick:this.closeMark},u.a.createElement("div",{className:"share__tip"},"\u7acb\u5373\u5206\u4eab\u7ed9\u597d\u53cb\u589e\u52a0\u4e2d\u5956\u6982\u7387"),c?u.a.createElement("div",{className:"share__row"}):null))}}]),t}(m.Component);t.default=Object(d.b)(function(e){return{user:e.user}},null)(v)},1283:function(e,t,a){"use strict";a.r(t);a(37);var n,i=a(11),c=a.n(i),s=a(4),l=a(7),o=a(5),r=a(8),m=a(9),u=a(74),d=a(0),p=a.n(d),g=(a(1160),a(3)),h=a(45),v=a(21),b=a(36),E=a.n(b),f=a(26),y=a(52),j=Object(v.b)(function(e){return{user:e.user}},{setCurrentUser:f.g,startFetchUser:f.h})(n=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={userInfoList:[],isSetmeal:[],isshowPrice:!1,notice_content:"",countdown:"",cutindex:0,lowPrice:"",tobuyID:"",list1:[{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png",src:"/getDetail?id=196"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c9a6779b75.png",src:"/getDetail?id=181"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/be4b7de643.jpg",src:"/getDetail?id=146"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/2ec904c98b.png",src:"/getDetail?id=158"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/6996ee5c57.png",src:"/getDetail?id=180"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/more2.png",src:""}],list2:[{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/3665c01210.png",src:"/getDetail?id=136"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c7b0eeff40.png",src:"/getDetail?id=123"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/bfaddc5039.png ",src:"/getDetail?id=140"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/ab8bb774c3.png",src:"/getDetail?id=133"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/efa0cad9a5.jpg",src:"/getDetail?id=146"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/more1.png",src:""}],teaList:[{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/chen.png",name:"\u9648\u535a\u58eb"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/seven.png",name:"Seven"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/zhu.png",name:"\u891a\u535a\u58eb"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/yang.png",name:"\u6768\u8001\u5e08"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/guan.png",name:"\u7ba1\u535a\u58eb"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/li.png",name:"\u674e\u5f18\u6768"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/sun.png",name:"\u5b59\u8001\u5e08"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/shi.png",name:"\u53f2\u8001\u5e08"}],tip:["365*24\u5c0f\u65f6\u4e0d\u95f4\u65ad\u4f7f\u7528","\u8d85\u9ad8\u6027\u80fdGPU\u786c\u4ef6\u73af\u5883","\u9884\u88c5\u4e3b\u6d41DL\u6846\u67b6\u548c\u6570\u636e\u96c6","\u53ef\u81ea\u7531\u4e0a\u4f20\u79c1\u4eba\u6570\u636e\u96c6"]},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(y.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){E.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),E.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),E.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),E.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),E.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),E.a.get("token")&&E.a.get("uid")&&(a.fetchNotice(),a.fetchVipBag()),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.fetchVipBag=function(){var e=Object(u.a)(Object(u.a)(a));g.d.get("".concat(API.home,"/sys/vip_bag")).then(function(t){var a=t.data,n=a.code,i=a.data,s=a.msg;if(200===n){e.setState({isSetmeal:i});var l=Math.min.apply(Math,e.state.isSetmeal.map(function(e){return e.price1}));e.setState({lowPrice:l}),e.setState({cutindex:e.state.isSetmeal.findIndex(function(e){return e.price1==l})}),e.setState({tobuyID:e.state.isSetmeal[e.state.cutindex].course_id})}else c.a.info(s,2,null,!1)})},a.fetchNotice=function(){var e=Object(u.a)(Object(u.a)(a));g.d.get("".concat(API.home,"/sys/notice")).then(function(t){var a=t.data,n=a.code,i=a.data,s=a.msg;if(200===n){e.setState({notice_content:i.notice_content,date:i.date});var l=1e3*i.date,o=0,r=0,m=0,u=0;setInterval(function(){l-=1e3,o="".concat(parseInt(l/864e5)),r="".concat(parseInt((l-864e5*o)/36e5)).padStart(2,0),m="".concat(parseInt((l-864e5*o-36e5*r)/6e4)).padStart(2,0),u="".concat(parseInt((l-864e5*o-36e5*r-6e4*m)/1e3)).padStart(2,0),e.setState({countdown:"\u5269\u4f59".concat(o,"\u5929").concat(r,"\u65f6").concat(m,"\u5206").concat(u,"\u79d2")})},1e3)}else c.a.info(s,2,null,!1)})},a.showPrice=function(){!a.props.user.hasError?a.setState({isshowPrice:!0}):a.toLogin()},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport")},a.close=function(){a.setState({isshowPrice:!1})},a.tochecked=function(e,t){a.setState({cutindex:t,tobuyID:e.course_id})},a.tobuy=function(){var e=a.state,t=e.isSetmeal,n=e.cutindex,i=e.tobuyID,s=""===i?t[n].course_id:i;Object(g.c)("version")?Object(g.a)("toPay",s):g.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(s,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(s),{simple:1}):c.a.info(e.data.msg,2,null,!1)})},a}return Object(m.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchNotice(),this.fetchVipBag(),window.loginInfo=function(t){e.loginInfo(t)},document.title="VIP\u4f1a\u5458\u9650\u65f6\u7279\u60e0\uff0c\u5168\u5e73\u53f0\u5728\u7ebf\u8bfe\u7a0b\u514d\u8d39\u5b66\uff0cGPU\u4e91\u5b9e\u9a8c\u5e73\u53f0\u514d\u8d39\u7528\uff01\u2014\u2014\u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this,t=this.state,a=t.notice_content,n=t.date,i=t.countdown,c=t.list1,s=t.list2,l=t.tip,o=t.teaList,r=t.isSetmeal,m=t.cutindex,u=t.isshowPrice,d=t.lowPrice;return p.a.createElement("div",{className:"new-vip"},p.a.createElement("div",{className:"banner"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/vip-banner.png",alt:""})),(a||n)&&p.a.createElement("div",{className:"notice"},a&&p.a.createElement("div",{className:"tip"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/linlin_icon.png",alt:""}),p.a.createElement("span",null,a)),n&&p.a.createElement("div",{className:"time"},i)),p.a.createElement("div",{className:"privilege-box"},p.a.createElement("div",{className:"privilege-name"},"VIP\u5c0a\u4eab\u4e94\u5927\u670d\u52a1"),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u4e00",title:"\u76f4\u64ad\u8bfe\u7a0b\u62a2\u5148\u5b66"}),p.a.createElement(N,{data:c})),p.a.createElement(w,{position:"left"}),p.a.createElement(w,{position:"right"}),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u4e8c",title:"\u7545\u5b66\u5168\u5e73\u53f0\u89c6\u9891\u8bfe\u7a0b"}),p.a.createElement(N,{data:s})),p.a.createElement(w,{position:"left"}),p.a.createElement(w,{position:"right"}),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u4e09",title:"GPU&CPU\u53cc\u4e91\u5e73\u53f0\u514d\u8d39\u7528"}),p.a.createElement("div",{className:"privilege-list-row"},p.a.createElement("div",{className:"privilege-list-gpu"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu1_bj%402x.png",alt:""}),p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu2_bj%402x.png",alt:""})),p.a.createElement("div",{className:"privilege-list-tip"},l.map(function(e,t){return p.a.createElement("div",{className:"privilege-tip-item",key:t},p.a.createElement("span",null,t+1),e)})))),p.a.createElement(w,{position:"left"}),p.a.createElement(w,{position:"right"}),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u56db",title:"\u8bb2\u5e08/\u52a9\u6559\u56e2\u961f24\u5c0f\u65f6\u7b54\u7591"}),p.a.createElement("p",{className:"privilege-teacher"},"\u591a\u8fbe100\u4eba\u7684AI\u5e08\u8d44\u56e2\u961f\u63d0\u4f9b\u54a8\u8be2\u3001\u7b54\u7591\u670d\u52a1\uff0c\u52a9\u529b\u6da8\u85aa"),p.a.createElement(I,{data:o})),p.a.createElement(w,{position:"left"}),p.a.createElement(w,{position:"right"}),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u4e94",title:"\u5728\u7ebf\u4f5c\u4e1a\u53ca\u6d4b\u8bc4\u5e73\u53f0"}),p.a.createElement("div",{className:"privilege-test"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce1_bj%402x.png",alt:""}),p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce2_bj%402x.png",alt:""})))),p.a.createElement("div",{className:"tobuy",onClick:function(){return e.showPrice()}},d,"\u5143 \u7acb\u5373\u62a5\u540d"),u&&p.a.createElement("div",null,p.a.createElement("div",{className:"checkout-mbc",onClick:function(){return e.close()}}),p.a.createElement("div",{className:"checkout-box"},p.a.createElement("div",{className:"title"},p.a.createElement("span",null,"\u9009\u62e9\u5957\u9910"),p.a.createElement("span",{className:"close",onClick:function(){return e.close()}},"\u2715")),r.map(function(t,a){return p.a.createElement("div",{className:"checkout-list ".concat(m===a?"list-checked":"list-check"),key:a,onClick:function(){return e.tochecked(t,a)}},p.a.createElement("div",{className:"type"},t.bag_name),p.a.createElement("div",{className:"center"},"\u9996\u8d2d\u7279\u60e0"===t.discounts_reason&&p.a.createElement("div",{className:"discounts-reason"},t.discounts_reason),"\u9996\u8d2d\u7279\u60e0"!==t.discounts_reason&&p.a.createElement("div",{className:"discounts-reason discounts-reason2"},t.discounts_reason),p.a.createElement("div",{className:"price"},"\xa5",p.a.createElement("span",{className:"new-price"},t.price1),p.a.createElement("s",{className:"old-price"},"\xa5",t.price0))),p.a.createElement("div",{className:"check-box"},p.a.createElement("span",{className:"".concat(m===a?"checked":"check")})))}),p.a.createElement("button",{className:"check-tobuy",onClick:function(){return e.tobuy()}},"\u7acb\u5373\u8d2d\u4e70"))))}}]),t}(d.Component))||n;function _(e){return p.a.createElement("div",{className:"privilege-title"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/viplog.png",alt:""}),p.a.createElement("span",null,"\u670d\u52a1",e.num)," ",e.title)}function N(e){return p.a.createElement("div",{className:"privilege-list"},e.data.map(function(e,t){return p.a.createElement("div",{key:t},""===e.src&&p.a.createElement("a",{className:"course-box"},p.a.createElement("img",{src:e.img,alt:""})),""!==e.src&&p.a.createElement("a",{className:"course-box",href:e.src},p.a.createElement("img",{src:e.img,alt:""})))}))}function I(e){return p.a.createElement("div",{className:"teacher-list"},e.data.map(function(e,t){return p.a.createElement("div",{className:"teacher-item",key:t},p.a.createElement("img",{src:e.img,alt:""}),p.a.createElement("span",null,e.name))}))}function w(e){return p.a.createElement("div",{className:"connect ".concat(e.position)},p.a.createElement("span",{className:"top"}),p.a.createElement("span",{className:"con"}),p.a.createElement("span",{className:"bottom"}))}t.default=Object(h.g)(j)},733:function(e,t,a){}}]);
//# sourceMappingURL=Invite.8aa16057.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1160:function(e,t,a){},1282:function(e,t,a){"use strict";a.r(t);a(37);var n=a(11),i=a.n(n),c=a(4),s=a(7),l=a(5),o=a(8),r=a(9),m=a(0),u=a.n(m),d=a(21),p=(a(733),a(3)),g=a(35),h=a.n(g),v=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(l.a)(this,Object(o.a)(t).call(this,e))).distinguishVersion=function(){if(1==Object(p.c)("plat_form")){var e=Number(Object(p.c)("version"));a.setState({isshowAppTip:e<3.704})}if(2==Object(p.c)("plat_form")){var t=Object(p.c)("version").replace(/\./g,"").slice(0,3);a.setState({isshowAppTip:Number(t)<451})}},a.getUserList=function(){p.d.get("".concat(API.home,"/sys/user/invite/list")).then(function(e){var t=e.data,n=t.code,c=t.data,s=t.msg;200===n?a.setState({userList:c}):i.a.info(s,2)})},a.getHotValue=function(){p.d.get("".concat(API.home,"/sys/user/hot/value")).then(function(e){var t=e.data,n=t.code,c=t.data,s=t.msg;200===n?a.setState({hot_schedule:c.hot_schedule,hotValue:c.hot_value}):i.a.info(s,2)})},a.getInviteCode=function(){p.d.get("".concat(API.home,"/sys/user/invite/link")).then(function(e){var t=e.data,n=t.code,c=t.data,s=t.msg;if(200===n){var l=c.blessing_invite_code;Object(p.f)()&&Object(p.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:encodeURI(location.origin+"/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(l)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState(function(){return{inviteCode:l}})}else 4030===n||4040===n?history.push("/passport"):i.a.info(s,2)})},a.inviteFriends=function(){var e=a.props,t=e.user,n=e.history,c=a.state,s=c.inviteCode,l=c.isshowAppTip;if(Object(p.c)("version"))if(t.hasError)Object(p.a)("toLogin");else if(l)i.a.info("\u8bf7\u524d\u5f80h5/pc\u7aef\u4f7f\u7528\u8be5\u529f\u80fd",2);else{var o={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:API.m+"/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"};Object(p.a)("toShare",o)}else t.hasError?n.push("/passport"):Object(p.f)()?(n.push("/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s)),Object(p.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:encodeURI(location.origin+"/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState({showTip:!0,isWeiXin:!0})):(n.push("/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s)),a.setState({showTip:!0}))},a.closeMark=function(){a.setState({showTip:!1})},a.state={isWeiXin:!1,showTip:!1,hotValue:0,hot_schedule:"",userList:[],inviteCode:"",isshowAppTip:!1},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){var e=h.a.get("uid"),t=Object(p.c)("shareuid");e===t||Object(p.c)("new")&&this.props.history.push("/activity?shareuid=".concat(t,"&inviteCode=").concat(Object(p.c)("inviteCode"))),this.distinguishVersion()}},{key:"componentDidMount",value:function(){this.props.user.hasError||(this.getUserList(),this.getHotValue(),this.getInviteCode())}},{key:"componentWillReceiveProps",value:function(e){console.log("componentWillReceiveProps"),e.user.hasError||(this.getUserList(),this.getHotValue(),this.getInviteCode())}},{key:"render",value:function(){var e=this.state,t=e.userList,a=e.showTip,n=e.hotValue,i=e.hot_schedule,c=e.isWeiXin;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"invite__content"},u.a.createElement("div",{className:"content__one"},u.a.createElement("p",null,"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c\uff0c\u6bcf\u589e\u52a01\u4eba\u53ef"),u.a.createElement("div",{className:"img__con"})),u.a.createElement("div",{className:"content__two"},"\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff01"),u.a.createElement("div",{className:"box__out"},u.a.createElement("div",{className:"box__middle"},u.a.createElement("div",{className:"box__inner"},u.a.createElement("p",null,"\u5f53\u524d\u4e2d\u5956\u6982\u7387\u503c:"),u.a.createElement("p",{className:"hot__value"},n),u.a.createElement("div",{className:"hot__progress"},u.a.createElement("div",{className:"progress__bar"},u.a.createElement("div",{className:"progress__point",style:{width:i}})))))),u.a.createElement("div",{className:"but__con"},u.a.createElement("div",{className:"button__content",onClick:this.inviteFriends},"\u7acb\u5373\u9080\u8bf7")),t.length>0?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"list__title"},u.a.createElement("span",null,"\u9080\u8bf7\u597d\u53cb\u5217\u8868")),u.a.createElement("p",{className:"show__new"},"(\u4ec5\u663e\u793a\u65b0\u7528\u6237)")):null,t.length>0?u.a.createElement("div",{className:"list__con"},1===t.length&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info item__con-only",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.head_image}),u.a.createElement("div",{className:"user_name"},e.user_name)))}),t.length>1&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.head_image}),u.a.createElement("div",{className:"user_name"},e.user_name)))})):null),a&&u.a.createElement("div",{className:"share__mark",onClick:this.closeMark},u.a.createElement("div",{className:"share__tip"},"\u7acb\u5373\u5206\u4eab\u7ed9\u597d\u53cb\u589e\u52a0\u4e2d\u5956\u6982\u7387"),c?u.a.createElement("div",{className:"share__row"}):null))}}]),t}(m.Component);t.default=Object(d.b)(function(e){return{user:e.user}},null)(v)},1283:function(e,t,a){"use strict";a.r(t);a(37);var n,i=a(11),c=a.n(i),s=a(4),l=a(7),o=a(5),r=a(8),m=a(9),u=a(74),d=a(0),p=a.n(d),g=(a(1160),a(3)),h=a(45),v=a(21),b=a(35),E=a.n(b),f=a(26),y=a(52),j=Object(v.b)(function(e){return{user:e.user}},{setCurrentUser:f.g,startFetchUser:f.h})(n=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={userInfoList:[],isSetmeal:[],isshowPrice:!1,notice_content:"",countdown:"",cutindex:0,lowPrice:"",tobuyID:"",list1:[{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png",src:"/getDetail?id=196"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c9a6779b75.png",src:"/getDetail?id=181"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/be4b7de643.jpg",src:"/getDetail?id=146"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/2ec904c98b.png",src:"/getDetail?id=158"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/6996ee5c57.png",src:"/getDetail?id=180"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/more2.png",src:""}],list2:[{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/3665c01210.png",src:"/getDetail?id=136"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c7b0eeff40.png",src:"/getDetail?id=123"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/bfaddc5039.png ",src:"/getDetail?id=140"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/ab8bb774c3.png",src:"/getDetail?id=133"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/efa0cad9a5.jpg",src:"/getDetail?id=146"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/more1.png",src:""}],teaList:[{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/chen.png",name:"\u9648\u535a\u58eb"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/seven.png",name:"Seven"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/zhu.png",name:"\u891a\u535a\u58eb"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/yang.png",name:"\u6768\u8001\u5e08"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/guan.png",name:"\u7ba1\u535a\u58eb"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/li.png",name:"\u674e\u5f18\u6768"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/sun.png",name:"\u5b59\u8001\u5e08"},{img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/shi.png",name:"\u53f2\u8001\u5e08"}],tip:["365*24\u5c0f\u65f6\u4e0d\u95f4\u65ad\u4f7f\u7528","\u8d85\u9ad8\u6027\u80fdGPU\u786c\u4ef6\u73af\u5883","\u9884\u88c5\u4e3b\u6d41DL\u6846\u67b6\u548c\u6570\u636e\u96c6","\u53ef\u81ea\u7531\u4e0a\u4f20\u79c1\u4eba\u6570\u636e\u96c6"]},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(y.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){E.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),E.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),E.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),E.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),E.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),E.a.get("token")&&E.a.get("uid")&&(a.fetchNotice(),a.fetchVipBag()),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.fetchVipBag=function(){var e=Object(u.a)(Object(u.a)(a));g.d.get("".concat(API.home,"/sys/vip_bag")).then(function(t){var a=t.data,n=a.code,i=a.data,s=a.msg;if(200===n){e.setState({isSetmeal:i});var l=Math.min.apply(Math,e.state.isSetmeal.map(function(e){return e.price1}));e.setState({lowPrice:l}),e.setState({cutindex:e.state.isSetmeal.findIndex(function(e){return e.price1==l})}),e.setState({tobuyID:e.state.isSetmeal[e.state.cutindex].course_id})}else c.a.info(s,2,null,!1)})},a.fetchNotice=function(){var e=Object(u.a)(Object(u.a)(a));g.d.get("".concat(API.home,"/sys/notice")).then(function(t){var a=t.data,n=a.code,i=a.data,s=a.msg;if(200===n){e.setState({notice_content:i.notice_content,date:i.date});var l=1e3*i.date,o=0,r=0,m=0,u=0;setInterval(function(){l-=1e3,o="".concat(parseInt(l/864e5)),r="".concat(parseInt((l-864e5*o)/36e5)).padStart(2,0),m="".concat(parseInt((l-864e5*o-36e5*r)/6e4)).padStart(2,0),u="".concat(parseInt((l-864e5*o-36e5*r-6e4*m)/1e3)).padStart(2,0),e.setState({countdown:"\u5269\u4f59".concat(o,"\u5929").concat(r,"\u65f6").concat(m,"\u5206").concat(u,"\u79d2")})},1e3)}else c.a.info(s,2,null,!1)})},a.showPrice=function(){!a.props.user.hasError?a.setState({isshowPrice:!0}):a.toLogin()},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport")},a.close=function(){a.setState({isshowPrice:!1})},a.tochecked=function(e,t){a.setState({cutindex:t,tobuyID:e.course_id})},a.tobuy=function(){var e=a.state,t=e.isSetmeal,n=e.cutindex,i=e.tobuyID,s=""===i?t[n].course_id:i;Object(g.c)("version")?Object(g.a)("toPay",s):g.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(s,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(s),{simple:1}):c.a.info(e.data.msg,2,null,!1)})},a}return Object(m.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchNotice(),this.fetchVipBag(),window.loginInfo=function(t){e.loginInfo(t)},document.title="VIP\u4f1a\u5458\u9650\u65f6\u7279\u60e0\uff0c\u5168\u5e73\u53f0\u5728\u7ebf\u8bfe\u7a0b\u514d\u8d39\u5b66\uff0cGPU\u4e91\u5b9e\u9a8c\u5e73\u53f0\u514d\u8d39\u7528\uff01\u2014\u2014\u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this,t=this.state,a=t.notice_content,n=t.date,i=t.countdown,c=t.list1,s=t.list2,l=t.tip,o=t.teaList,r=t.isSetmeal,m=t.cutindex,u=t.isshowPrice,d=t.lowPrice;return p.a.createElement("div",{className:"new-vip"},p.a.createElement("div",{className:"banner"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/vip-banner.png",alt:""})),(a||n)&&p.a.createElement("div",{className:"notice"},a&&p.a.createElement("div",{className:"tip"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/linlin_icon.png",alt:""}),p.a.createElement("span",null,a)),n&&p.a.createElement("div",{className:"time"},i)),p.a.createElement("div",{className:"privilege-box"},p.a.createElement("div",{className:"privilege-name"},"VIP\u5c0a\u4eab\u4e94\u5927\u670d\u52a1"),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u4e00",title:"\u76f4\u64ad\u8bfe\u7a0b\u62a2\u5148\u5b66"}),p.a.createElement(N,{data:c})),p.a.createElement(w,{position:"left"}),p.a.createElement(w,{position:"right"}),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u4e8c",title:"\u7545\u5b66\u5168\u5e73\u53f0\u89c6\u9891\u8bfe\u7a0b"}),p.a.createElement(N,{data:s})),p.a.createElement(w,{position:"left"}),p.a.createElement(w,{position:"right"}),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u4e09",title:"GPU&CPU\u53cc\u4e91\u5e73\u53f0\u514d\u8d39\u7528"}),p.a.createElement("div",{className:"privilege-list-row"},p.a.createElement("div",{className:"privilege-list-gpu"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu1_bj%402x.png",alt:""}),p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu2_bj%402x.png",alt:""})),p.a.createElement("div",{className:"privilege-list-tip"},l.map(function(e,t){return p.a.createElement("div",{className:"privilege-tip-item",key:t},p.a.createElement("span",null,t+1),e)})))),p.a.createElement(w,{position:"left"}),p.a.createElement(w,{position:"right"}),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u56db",title:"\u8bb2\u5e08/\u52a9\u6559\u56e2\u961f24\u5c0f\u65f6\u7b54\u7591"}),p.a.createElement("p",{className:"privilege-teacher"},"\u591a\u8fbe100\u4eba\u7684AI\u5e08\u8d44\u56e2\u961f\u63d0\u4f9b\u54a8\u8be2\u3001\u7b54\u7591\u670d\u52a1\uff0c\u52a9\u529b\u6da8\u85aa"),p.a.createElement(I,{data:o})),p.a.createElement(w,{position:"left"}),p.a.createElement(w,{position:"right"}),p.a.createElement("div",{className:"privilege-content"},p.a.createElement(_,{num:"\u4e94",title:"\u5728\u7ebf\u4f5c\u4e1a\u53ca\u6d4b\u8bc4\u5e73\u53f0"}),p.a.createElement("div",{className:"privilege-test"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce1_bj%402x.png",alt:""}),p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce2_bj%402x.png",alt:""})))),p.a.createElement("div",{className:"tobuy",onClick:function(){return e.showPrice()}},d,"\u5143 \u7acb\u5373\u62a5\u540d"),u&&p.a.createElement("div",null,p.a.createElement("div",{className:"checkout-mbc",onClick:function(){return e.close()}}),p.a.createElement("div",{className:"checkout-box"},p.a.createElement("div",{className:"title"},p.a.createElement("span",null,"\u9009\u62e9\u5957\u9910"),p.a.createElement("span",{className:"close",onClick:function(){return e.close()}},"\u2715")),r.map(function(t,a){return p.a.createElement("div",{className:"checkout-list ".concat(m===a?"list-checked":"list-check"),key:a,onClick:function(){return e.tochecked(t,a)}},p.a.createElement("div",{className:"type"},t.bag_name),p.a.createElement("div",{className:"center"},"\u9996\u8d2d\u7279\u60e0"===t.discounts_reason&&p.a.createElement("div",{className:"discounts-reason"},t.discounts_reason),"\u9996\u8d2d\u7279\u60e0"!==t.discounts_reason&&p.a.createElement("div",{className:"discounts-reason discounts-reason2"},t.discounts_reason),p.a.createElement("div",{className:"price"},"\xa5",p.a.createElement("span",{className:"new-price"},t.price1),p.a.createElement("s",{className:"old-price"},"\xa5",t.price0))),p.a.createElement("div",{className:"check-box"},p.a.createElement("span",{className:"".concat(m===a?"checked":"check")})))}),p.a.createElement("button",{className:"check-tobuy",onClick:function(){return e.tobuy()}},"\u7acb\u5373\u8d2d\u4e70"))))}}]),t}(d.Component))||n;function _(e){return p.a.createElement("div",{className:"privilege-title"},p.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/viplog.png",alt:""}),p.a.createElement("span",null,"\u670d\u52a1",e.num)," ",e.title)}function N(e){return p.a.createElement("div",{className:"privilege-list"},e.data.map(function(e,t){return p.a.createElement("div",{key:t},""===e.src&&p.a.createElement("a",{className:"course-box"},p.a.createElement("img",{src:e.img,alt:""})),""!==e.src&&p.a.createElement("a",{className:"course-box",href:e.src},p.a.createElement("img",{src:e.img,alt:""})))}))}function I(e){return p.a.createElement("div",{className:"teacher-list"},e.data.map(function(e,t){return p.a.createElement("div",{className:"teacher-item",key:t},p.a.createElement("img",{src:e.img,alt:""}),p.a.createElement("span",null,e.name))}))}function w(e){return p.a.createElement("div",{className:"connect ".concat(e.position)},p.a.createElement("span",{className:"top"}),p.a.createElement("span",{className:"con"}),p.a.createElement("span",{className:"bottom"}))}t.default=Object(h.g)(j)},733:function(e,t,a){}}]);
//# sourceMappingURL=Invite.2df843ed.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/1111/invite.js","components/vip/index.js"],"names":["Invite","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","distinguishVersion","getParam","version","Number","setState","isshowAppTip","replace","slice","getUserList","http","get","concat","API","home","then","res","_res$data","data","code","msg","userList","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","getHotValue","_res$data2","hot_schedule","hotValue","hot_value","getInviteCode","_res$data3","inviteCode","blessing_invite_code","is_weixin","wxShare","title","desc","link","encodeURI","location","origin","jsCookie","imgUrl","history","push","inviteFriends","_this$props","user","_this$state","state","hasError","SendMessageToApp","m","showTip","isWeiXin","closeMark","uid","shareuid","nextProps","console","log","_this$state2","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","style","width","onClick","length","Fragment","map","item","index","key","src","head_image","user_name","Component","connect","NewVip","setCurrentUser","startFetchUser","userInfoList","isSetmeal","isshowPrice","notice_content","countdown","cutindex","lowPrice","tobuyID","list1","img","list2","teaList","name","tip","loginInfo","result","_this2","appLogin","expires","addDays","Date","cookie","set","token","path","domain","plat","uname","avatar_file","fetchNotice","fetchVipBag","transformUser","payload","username","avatar","isFetching","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","Math","min","apply","price1","findIndex","course_id","date","day","hours","minutes","seconds","setInterval","parseInt","padStart","showPrice","toLogin","close","tochecked","tobuy","_this2$state","id","errno","simple","_this3","window","document","_this4","react__WEBPACK_IMPORTED_MODULE_8___default","alt","PrivilegeTitle","num","PrivilegeCourse","Connect","position","TeacherList","bag_name","discounts_reason","price0","href","withRouter"],"mappings":"iPAQMA,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,KAyBRQ,mBAAqB,WAGnB,GAA4B,GAAzBC,YAAS,aAAkB,CAC5B,IAAIC,EAAUC,OAAOF,YAAS,YAC9BR,EAAKW,SAAS,CACZC,aAAcH,EAAU,QAG5B,GAA4B,GAAzBD,YAAS,aAAkB,CAC5B,IAAIC,EAAUD,YAAS,WAAWK,QAAQ,MAAO,IAAIC,MAAM,EAAG,GAC9Dd,EAAKW,SAAS,CACZC,aAAcF,OAAOD,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oB,IAAKwD,IAAI,MAIf,KAAb5E,EAAKG,KACLwE,EAAA5H,EAAAyC,cAAA,KAAGC,UAAW,aAAc6F,KAAMtF,EAAKG,KACnCwE,EAAA5H,EAAAyC,cAAA,OAAKW,IAAKH,EAAKoB,IAAKwD,IAAI,UAY5D,SAASM,EAAYjK,GACjB,OACI0J,EAAA5H,EAAAyC,cAAA,OAAKC,UAAU,gBAEPxE,EAAMyB,KAAKqD,IAAI,SAACC,EAAMC,GAClB,OACI0E,EAAA5H,EAAAyC,cAAA,OAAKC,UAAU,eAAeS,IAAKD,GAC/B0E,EAAA5H,EAAAyC,cAAA,OAAKW,IAAKH,EAAKoB,IAAKwD,IAAI,KACxBD,EAAA5H,EAAAyC,cAAA,YAAOQ,EAAKuB,UASxC,SAASyD,EAAQ/J,GACb,OACI0J,EAAA5H,EAAAyC,cAAA,OAAKC,UAAS,WAAArD,OAAanB,EAAMgK,WAC7BN,EAAA5H,EAAAyC,cAAA,QAAMC,UAAU,QAChBkF,EAAA5H,EAAAyC,cAAA,QAAMC,UAAU,QAChBkF,EAAA5H,EAAAyC,cAAA,QAAMC,UAAU,YAMb8F,sBAAW/E","file":"mrstatic/js/Invite.8aa16057.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport {connect} from \"react-redux\"\nimport './index.scss';\nimport { http, getParam, is_weixin, wxShare, getC, SendMessageToApp } from '@/utils';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\n\nclass Invite extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isWeiXin: false,\n showTip: false,\n hotValue: 0,\n hot_schedule: '',\n userList: [],\n inviteCode: '',\n isshowAppTip:false\n }\n }\n\n componentWillMount() {\n let uid = jsCookie.get('uid');\n let shareuid = getParam('shareuid');\n if(uid === shareuid) {\n } else {\n if(getParam('new')) {\n this.props.history.push(`/activity?shareuid=${shareuid}&inviteCode=${getParam('inviteCode')}`);\n }\n }\n this.distinguishVersion()\n }\n\n\n distinguishVersion = () => {\n // plat_form 1ios 2android\n // version 1->3.704 2->4.5.1.20191105\n if(getParam('plat_form') == 1){\n let version = Number(getParam('version'))\n this.setState({\n isshowAppTip: version < 3.704 ? true : false\n });\n }\n if(getParam('plat_form') == 2){\n let version = getParam('version').replace(/\\./g, '').slice(0, 3)\n this.setState({\n isshowAppTip: Number(version) < 451 ? true:false\n });\n }\n }\n\n\n componentDidMount() {\n if(!this.props.user.hasError) {\n this.getUserList();\n this.getHotValue();\n this.getInviteCode();\n }\n }\n\n componentWillReceiveProps(nextProps) {\n console.log('componentWillReceiveProps');\n if(!nextProps.user.hasError) {\n this.getUserList();\n this.getHotValue();\n this.getInviteCode();\n }\n }\n\n getUserList = () => {\n http.get(`${API.home}/sys/user/invite/list`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n this.setState({\n userList: data\n });\n } else {\n Toast.info(msg, 2);\n }\n });\n }\n\n getHotValue = () => {\n http.get(`${API.home}/sys/user/hot/value`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n this.setState({\n hot_schedule: data.hot_schedule,\n hotValue: data.hot_value\n });\n } else {\n Toast.info(msg, 2);\n }\n });\n }\n\n getInviteCode = () => {\n http.get(`${API.home}/sys/user/invite/link`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n let inviteCode = data.blessing_invite_code;\n if(is_weixin()) {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.origin + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n });\n }\n this.setState(()=>({\n inviteCode: inviteCode\n }))\n }else if(code === 4030 || code === 4040) {\n history.push('/passport');\n }else{\n Toast.info(msg, 2);\n }\n });\n }\n\n inviteFriends = () => {\n const { user, history } = this.props;\n const {inviteCode,isshowAppTip} = this.state;\n // 未登录先去登录\n if (getParam('version')) {\n if(user.hasError) {\n SendMessageToApp(\"toLogin\");\n }else {\n if(isshowAppTip){\n Toast.info('请前往h5/pc端使用该功能', 2);\n } else {\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: API.m + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"toShare\", data)\n }\n }\n }else {\n if(user.hasError) {\n history.push('/passport');\n }else {\n if(is_weixin()) {\n history.push(`/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`);\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.origin + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n });\n this.setState({\n showTip: true,\n isWeiXin: true,\n });\n }else{\n history.push(`/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`);\n this.setState({\n showTip: true,\n });\n }\n }\n }\n }\n\n closeMark = () => {\n this.setState({\n showTip: false,\n });\n }\n\n render() {\n let {userList, showTip, hotValue, hot_schedule, isWeiXin} = this.state;\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className=\"invite__content\">\n <div className=\"content__one\">\n <p>邀请好友注册,每增加1人可</p>\n <div className=\"img__con\"></div>\n </div>\n\n <div className=\"content__two\">\n 福气值越高,中奖概率越大!\n </div>\n\n <div className=\"box__out\">\n <div className=\"box__middle\">\n <div className=\"box__inner\">\n <p>当前中奖概率值:</p>\n <p className=\"hot__value\">{hotValue}</p>\n <div className=\"hot__progress\">\n <div className=\"progress__bar\">\n <div className=\"progress__point\" style={{'width': hot_schedule}}></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div className=\"but__con\">\n <div className=\"button__content\" onClick={this.inviteFriends}>\n 立即邀请\n </div>\n </div>\n\n {\n userList.length > 0 ? (\n <>\n <div className=\"list__title\">\n <span>邀请好友列表</span>\n </div>\n\n <p className=\"show__new\">(仅显示新用户)</p>\n </>\n ) : (null)\n }\n\n {\n userList.length > 0 ? (\n <div className=\"list__con\">\n {\n userList.length === 1 && userList.map((item, index) => {\n return (\n <div className=\"user__item-info item__con-only\" key={index}>\n <div className=\"item__con\">\n <img className=\"user_avatar\" src={item.head_image} />\n <div className=\"user_name\">{item.user_name}</div>\n </div>\n </div>\n )\n })\n }\n\n {\n userList.length > 1 && userList.map((item, index) => {\n return (\n <div className=\"user__item-info\" key={index}>\n <div className=\"item__con\">\n <img className=\"user_avatar\" src={item.head_image} />\n <div className=\"user_name\">{item.user_name}</div>\n </div>\n </div>\n )\n })\n }\n </div>\n ) : (\n null\n )\n }\n </div>\n {\n showTip && (\n <div className=\"share__mark\" onClick={this.closeMark}>\n <div className=\"share__tip\">\n 立即分享给好友增加中奖概率\n </div>\n {\n isWeiXin ? (\n <div className=\"share__row\"></div>\n ) : (\n null\n )\n }\n </div>\n )\n }\n </div>\n )\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Invite);\n","import React, {Component} from 'react'\nimport './index.scss'\nimport {http, SendMessageToApp, getParam} from '@/utils'\nimport {withRouter} from \"react-router-dom\"\nimport {connect} from 'react-redux'\nimport {Toast} from 'antd-mobile'\nimport cookie from \"js-cookie\"\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\nimport {addDays} from \"date-fns\"\n\n\n@connect(state => ({\n user: state.user\n }),\n {setCurrentUser, startFetchUser}\n)\n\nclass NewVip extends Component {\n state = {\n userInfoList: [],\n isSetmeal: [],\n isshowPrice: false,\n notice_content: '', // 提示\n countdown: '', // 倒计时\n cutindex: 0,\n lowPrice: '',\n tobuyID: '',\n list1: [\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png',\n src: '/getDetail?id=196'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c9a6779b75.png',\n src: '/getDetail?id=181'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/be4b7de643.jpg',\n src: '/getDetail?id=146'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/2ec904c98b.png',\n src: '/getDetail?id=158'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/6996ee5c57.png',\n src: '/getDetail?id=180'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/more2.png',\n src: ''\n }\n ], // 特权1\n list2: [\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/3665c01210.png',\n src: '/getDetail?id=136'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c7b0eeff40.png',\n src: '/getDetail?id=123'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/bfaddc5039.png ',\n src: '/getDetail?id=140'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/ab8bb774c3.png',\n src: '/getDetail?id=133'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/efa0cad9a5.jpg',\n src: '/getDetail?id=146'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/more1.png',\n src: ''\n }\n ], // 特权2\n teaList: [\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/chen.png',\n name: '陈博士'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/seven.png',\n name: 'Seven'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/zhu.png',\n name: '褚博士'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/yang.png',\n name: '杨老师'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/guan.png',\n name: '管博士'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/li.png',\n name: '李弘杨'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/sun.png',\n name: '孙老师'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/shi.png',\n name: '史老师'\n }\n ], // 讲师\n tip: ['365*24小时不间断使用', '超高性能GPU硬件环境', '预装主流DL框架和数据集', '可自由上传私人数据集'],\n }\n\n componentDidMount() {\n this.fetchNotice()\n this.fetchVipBag()\n\n // 获取App登录信息\n window['loginInfo'] = result => {\n this.loginInfo(result)\n }\n document.title = 'VIP会员限时特惠,全平台在线课程免费学,GPU云实验平台免费用!——七月在线';\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n }, () => {\n if (this.state.userInfoList.length) {\n this.props.startFetchUser()\n this.appLogin()\n }\n })\n }\n\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n cookie.set(\"token\", item.token, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: '.julyedu.com'})\n })\n\n if (cookie.get(\"token\") && cookie.get(\"uid\")) {\n this.fetchNotice()\n this.fetchVipBag()\n }\n\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList))\n }\n transformUser = res => {\n let payload\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n return payload\n }\n\n\n fetchVipBag = () => {\n const _this = this\n http.get(`${API.home}/sys/vip_bag`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n _this.setState({\n isSetmeal: data\n })\n\n let lowPrice = Math.min.apply(Math, _this.state.isSetmeal.map((item) => {\n return item.price1\n }))\n _this.setState({\n lowPrice: lowPrice\n })\n\n _this.setState({\n cutindex: _this.state.isSetmeal.findIndex(item => item.price1 == lowPrice)\n })\n _this.setState({\n tobuyID: _this.state.isSetmeal[_this.state.cutindex].course_id\n })\n } else {\n Toast.info(msg, 2, null, false)\n\n }\n })\n }\n\n fetchNotice = () => {\n const _this = this\n http.get(`${API.home}/sys/notice`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n _this.setState({\n notice_content: data.notice_content,\n date: data.date\n })\n\n let date = data.date * 1000,\n day = 0,\n hours = 0,\n minutes = 0,\n seconds = 0\n setInterval(function () {\n date -= 1000\n day = `${parseInt(date / (60 * 60 * 24 * 1000))}`\n hours = `${parseInt((date - day * 86400000) / (60 * 60 * 1000))}`.padStart(2, 0)\n minutes = `${parseInt((date - day * 86400000 - hours * 3600000) / 60000)}`.padStart(2, 0)\n seconds = `${parseInt((date - day * 86400000 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0)\n _this.setState({\n countdown: `剩余${day}天${hours}时${minutes}分${seconds}秒`\n })\n }, 1000)\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n\n // 立即购买显示弹窗\n showPrice = () => {\n const isLogin = !this.props.user.hasError\n if (!isLogin) {\n this.toLogin()\n } else {\n this.setState({\n isshowPrice: true\n })\n }\n }\n\n toLogin = () => {\n if (!getParam('version')) {\n this.props.history.push('/passport')\n } else {\n SendMessageToApp(\"toLogin\")\n }\n }\n\n // 关闭弹窗\n close = () => {\n this.setState({\n isshowPrice: false\n })\n }\n\n // 选择\n tochecked = (item, index) => {\n this.setState({\n cutindex: index,\n tobuyID: item.course_id\n })\n }\n\n // 弹窗中的去购买\n tobuy = () => {\n const {isSetmeal, cutindex, tobuyID} = this.state\n let id = tobuyID === '' ? isSetmeal[cutindex].course_id : tobuyID\n if (!getParam('version')) {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${id}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${id}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2, null, false)\n }\n })\n } else {\n SendMessageToApp(\"toPay\", id)\n }\n }\n\n render() {\n const {notice_content, date, countdown, list1, list2, tip, teaList, isSetmeal, cutindex, isshowPrice, lowPrice} = this.state\n return (\n <div className='new-vip'>\n {/*banner*/}\n <div className=\"banner\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/vip-banner.png\" alt=\"\"/></div>\n\n {/*vip倒计时*/}\n {\n (notice_content || date) &&\n <div className=\"notice\">\n {\n notice_content &&\n <div className=\"tip\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/linlin_icon.png\"\n alt=\"\"/>\n <span>{notice_content}</span>\n </div>\n }\n {\n date &&\n <div className=\"time\">{countdown}</div>\n }\n </div>\n }\n\n {/*VIP尊享五大服务*/}\n <div className=\"privilege-box\">\n <div className=\"privilege-name\">VIP尊享五大服务</div>\n\n {/*特权1*/}\n <div className=\"privilege-content\">\n <PrivilegeTitle num=\"一\" title=\"直播课程抢先学\"/>\n <PrivilegeCourse data={list1}/>\n </div>\n\n <Connect position={'left'}/>\n <Connect position={'right'}/>\n\n {/*特权2*/}\n <div className='privilege-content'>\n <PrivilegeTitle num=\"二\" title=\"畅学全平台视频课程\"/>\n <PrivilegeCourse data={list2}/>\n </div>\n\n <Connect position={'left'}/>\n <Connect position={'right'}/>\n\n {/*特权3*/}\n <div className='privilege-content'>\n <PrivilegeTitle num=\"三\" title=\"GPU&CPU双云平台免费用\"/>\n\n <div className=\"privilege-list-row\">\n <div className=\"privilege-list-gpu\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu1_bj%402x.png\"\n alt=\"\"/>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu2_bj%402x.png\"\n alt=\"\"/>\n </div>\n\n <div className=\"privilege-list-tip\">\n {\n tip.map((item, index) => {\n return (\n <div className='privilege-tip-item' key={index}>\n <span>{index + 1}</span>\n {item}\n </div>\n )\n })\n }\n </div>\n </div>\n </div>\n\n <Connect position={'left'}/>\n <Connect position={'right'}/>\n\n {/*特权4*/}\n <div className='privilege-content'>\n <PrivilegeTitle num=\"四\" title=\"讲师/助教团队24小时答疑\"/>\n\n\n <p className={'privilege-teacher'}>多达100人的AI师资团队提供咨询、答疑服务,助力涨薪</p>\n\n\n <TeacherList data={teaList}/>\n </div>\n\n <Connect position={'left'}/>\n <Connect position={'right'}/>\n\n {/*特权5*/}\n <div className='privilege-content'>\n <PrivilegeTitle num=\"五\" title=\"在线作业及测评平台\"/>\n\n <div className='privilege-test'>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce1_bj%402x.png\"\n alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce2_bj%402x.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n <div className=\"tobuy\" onClick={() => this.showPrice()}>\n {lowPrice}元 立即报名\n </div>\n\n\n {\n isshowPrice &&\n <div>\n <div className=\"checkout-mbc\" onClick={() => this.close()}></div>\n <div className=\"checkout-box\">\n <div className=\"title\">\n <span>选择套餐</span>\n <span className={'close'} onClick={() => this.close()}>&#10005;</span>\n </div>\n {\n isSetmeal.map((item, index) => {\n return (\n <div\n className={`checkout-list ${cutindex === index ? \"list-checked\" : 'list-check'}`}\n key={index}\n onClick={() => this.tochecked(item, index)}\n >\n <div className=\"type\">{item.bag_name}</div>\n <div className='center'>\n {\n item.discounts_reason === '首购特惠' &&\n <div className=\"discounts-reason\">{item.discounts_reason}</div>\n\n }\n {\n item.discounts_reason !== '首购特惠' &&\n <div className=\"discounts-reason discounts-reason2\">{item.discounts_reason}</div>\n }\n <div className=\"price\">\n ¥\n <span className={'new-price'}>{item.price1}</span>\n <s className={'old-price'}>¥{item.price0}</s>\n </div>\n </div>\n <div className=\"check-box\">\n <span className={`${cutindex === index ? \"checked\" : 'check'}`}></span>\n </div>\n </div>\n )\n })\n }\n\n <button className='check-tobuy' onClick={() => this.tobuy()}>立即购买</button>\n </div>\n </div>\n }\n\n\n </div>\n )\n }\n}\n\nfunction PrivilegeTitle(props) {\n return (\n <div className=\"privilege-title\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/viplog.png\" alt=\"\"/>\n <span>服务{props.num}</span> {props.title}\n </div>\n )\n}\n\nfunction PrivilegeCourse(props) {\n return (\n <div className=\"privilege-list\">\n {\n props.data.map((item, index) => {\n return (\n <div key={index}>\n {\n item.src === '' &&\n <a className={'course-box'}>\n <img src={item.img} alt=\"\"/>\n </a>\n }\n {\n item.src !== '' &&\n <a className={'course-box'} href={item.src}>\n <img src={item.img} alt=\"\"/>\n </a>\n }\n </div>\n )\n })\n }\n\n </div>\n )\n}\n\nfunction TeacherList(props) {\n return (\n <div className=\"teacher-list\">\n {\n props.data.map((item, index) => {\n return (\n <div className=\"teacher-item\" key={index}>\n <img src={item.img} alt=\"\"/>\n <span>{item.name}</span>\n </div>\n )\n })\n }\n </div>\n )\n}\n\nfunction Connect(props) {\n return (\n <div className={`connect ${props.position}`}>\n <span className='top'></span>\n <span className='con'></span>\n <span className='bottom'></span>\n </div>\n )\n}\n\n\nexport default withRouter(NewVip)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/activity/1111/invite.js","components/vip/index.js"],"names":["Invite","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","distinguishVersion","getParam","version","Number","setState","isshowAppTip","replace","slice","getUserList","http","get","concat","API","home","then","res","_res$data","data","code","msg","userList","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","getHotValue","_res$data2","hot_schedule","hotValue","hot_value","getInviteCode","_res$data3","inviteCode","blessing_invite_code","is_weixin","wxShare","title","desc","link","encodeURI","location","origin","jsCookie","imgUrl","history","push","inviteFriends","_this$props","user","_this$state","state","hasError","SendMessageToApp","m","showTip","isWeiXin","closeMark","uid","shareuid","nextProps","console","log","_this$state2","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","style","width","onClick","length","Fragment","map","item","index","key","src","head_image","user_name","Component","connect","NewVip","setCurrentUser","startFetchUser","userInfoList","isSetmeal","isshowPrice","notice_content","countdown","cutindex","lowPrice","tobuyID","list1","img","list2","teaList","name","tip","loginInfo","result","_this2","appLogin","expires","addDays","Date","cookie","set","token","path","domain","plat","uname","avatar_file","fetchNotice","fetchVipBag","transformUser","payload","username","avatar","isFetching","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","Math","min","apply","price1","findIndex","course_id","date","day","hours","minutes","seconds","setInterval","parseInt","padStart","showPrice","toLogin","close","tochecked","tobuy","_this2$state","id","errno","simple","_this3","window","document","_this4","react__WEBPACK_IMPORTED_MODULE_8___default","alt","PrivilegeTitle","num","PrivilegeCourse","Connect","position","TeacherList","bag_name","discounts_reason","price0","href","withRouter"],"mappings":"iPAQMA,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,KAyBRQ,mBAAqB,WAGnB,GAA4B,GAAzBC,YAAS,aAAkB,CAC5B,IAAIC,EAAUC,OAAOF,YAAS,YAC9BR,EAAKW,SAAS,CACZC,aAAcH,EAAU,QAG5B,GAA4B,GAAzBD,YAAS,aAAkB,CAC5B,IAAIC,EAAUD,YAAS,WAAWK,QAAQ,MAAO,IAAIC,MAAM,EAAG,GAC9Dd,EAAKW,SAAS,CACZC,aAAcF,OAAOD,GAAW,QAtCnBT,EA6DnBe,YAAc,WACZC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAAAC,GAAO,IAAAC,EAC/BD,EAAIE,KAAvBC,EADkDF,EAClDE,KAAMD,EAD4CD,EAC5CC,KAAME,EADsCH,EACtCG,IACL,MAATD,EACDzB,EAAKW,SAAS,CACZgB,SAAUH,IAGZI,EAAAC,EAAMC,KAAKJ,EAAK,MArEH1B,EA0EnB+B,YAAc,WACZf,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAAAC,GAAO,IAAAU,EAC7BV,EAAIE,KAAvBC,EADgDO,EAChDP,KAAMD,EAD0CQ,EAC1CR,KAAME,EADoCM,EACpCN,IACL,MAATD,EACDz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Q/J,GACb,OACI0J,EAAA5H,EAAAyC,cAAA,OAAKC,UAAS,WAAArD,OAAanB,EAAMgK,WAC7BN,EAAA5H,EAAAyC,cAAA,QAAMC,UAAU,QAChBkF,EAAA5H,EAAAyC,cAAA,QAAMC,UAAU,QAChBkF,EAAA5H,EAAAyC,cAAA,QAAMC,UAAU,YAMb8F,sBAAW/E","file":"mrstatic/js/Invite.2df843ed.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport {connect} from \"react-redux\"\nimport './index.scss';\nimport { http, getParam, is_weixin, wxShare, getC, SendMessageToApp } from '@/utils';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\n\nclass Invite extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isWeiXin: false,\n showTip: false,\n hotValue: 0,\n hot_schedule: '',\n userList: [],\n inviteCode: '',\n isshowAppTip:false\n }\n }\n\n componentWillMount() {\n let uid = jsCookie.get('uid');\n let shareuid = getParam('shareuid');\n if(uid === shareuid) {\n } else {\n if(getParam('new')) {\n this.props.history.push(`/activity?shareuid=${shareuid}&inviteCode=${getParam('inviteCode')}`);\n }\n }\n this.distinguishVersion()\n }\n\n\n distinguishVersion = () => {\n // plat_form 1ios 2android\n // version 1->3.704 2->4.5.1.20191105\n if(getParam('plat_form') == 1){\n let version = Number(getParam('version'))\n this.setState({\n isshowAppTip: version < 3.704 ? true : false\n });\n }\n if(getParam('plat_form') == 2){\n let version = getParam('version').replace(/\\./g, '').slice(0, 3)\n this.setState({\n isshowAppTip: Number(version) < 451 ? true:false\n });\n }\n }\n\n\n componentDidMount() {\n if(!this.props.user.hasError) {\n this.getUserList();\n this.getHotValue();\n this.getInviteCode();\n }\n }\n\n componentWillReceiveProps(nextProps) {\n console.log('componentWillReceiveProps');\n if(!nextProps.user.hasError) {\n this.getUserList();\n this.getHotValue();\n this.getInviteCode();\n }\n }\n\n getUserList = () => {\n http.get(`${API.home}/sys/user/invite/list`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n this.setState({\n userList: data\n });\n } else {\n Toast.info(msg, 2);\n }\n });\n }\n\n getHotValue = () => {\n http.get(`${API.home}/sys/user/hot/value`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n this.setState({\n hot_schedule: data.hot_schedule,\n hotValue: data.hot_value\n });\n } else {\n Toast.info(msg, 2);\n }\n });\n }\n\n getInviteCode = () => {\n http.get(`${API.home}/sys/user/invite/link`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n let inviteCode = data.blessing_invite_code;\n if(is_weixin()) {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.origin + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n });\n }\n this.setState(()=>({\n inviteCode: inviteCode\n }))\n }else if(code === 4030 || code === 4040) {\n history.push('/passport');\n }else{\n Toast.info(msg, 2);\n }\n });\n }\n\n inviteFriends = () => {\n const { user, history } = this.props;\n const {inviteCode,isshowAppTip} = this.state;\n // 未登录先去登录\n if (getParam('version')) {\n if(user.hasError) {\n SendMessageToApp(\"toLogin\");\n }else {\n if(isshowAppTip){\n Toast.info('请前往h5/pc端使用该功能', 2);\n } else {\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: API.m + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"toShare\", data)\n }\n }\n }else {\n if(user.hasError) {\n history.push('/passport');\n }else {\n if(is_weixin()) {\n history.push(`/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`);\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.origin + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n });\n this.setState({\n showTip: true,\n isWeiXin: true,\n });\n }else{\n history.push(`/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`);\n this.setState({\n showTip: true,\n });\n }\n }\n }\n }\n\n closeMark = () => {\n this.setState({\n showTip: false,\n });\n }\n\n render() {\n let {userList, showTip, hotValue, hot_schedule, isWeiXin} = this.state;\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className=\"invite__content\">\n <div className=\"content__one\">\n <p>邀请好友注册,每增加1人可</p>\n <div className=\"img__con\"></div>\n </div>\n\n <div className=\"content__two\">\n 福气值越高,中奖概率越大!\n </div>\n\n <div className=\"box__out\">\n <div className=\"box__middle\">\n <div className=\"box__inner\">\n <p>当前中奖概率值:</p>\n <p className=\"hot__value\">{hotValue}</p>\n <div className=\"hot__progress\">\n <div className=\"progress__bar\">\n <div className=\"progress__point\" style={{'width': hot_schedule}}></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div className=\"but__con\">\n <div className=\"button__content\" onClick={this.inviteFriends}>\n 立即邀请\n </div>\n </div>\n\n {\n userList.length > 0 ? (\n <>\n <div className=\"list__title\">\n <span>邀请好友列表</span>\n </div>\n\n <p className=\"show__new\">(仅显示新用户)</p>\n </>\n ) : (null)\n }\n\n {\n userList.length > 0 ? (\n <div className=\"list__con\">\n {\n userList.length === 1 && userList.map((item, index) => {\n return (\n <div className=\"user__item-info item__con-only\" key={index}>\n <div className=\"item__con\">\n <img className=\"user_avatar\" src={item.head_image} />\n <div className=\"user_name\">{item.user_name}</div>\n </div>\n </div>\n )\n })\n }\n\n {\n userList.length > 1 && userList.map((item, index) => {\n return (\n <div className=\"user__item-info\" key={index}>\n <div className=\"item__con\">\n <img className=\"user_avatar\" src={item.head_image} />\n <div className=\"user_name\">{item.user_name}</div>\n </div>\n </div>\n )\n })\n }\n </div>\n ) : (\n null\n )\n }\n </div>\n {\n showTip && (\n <div className=\"share__mark\" onClick={this.closeMark}>\n <div className=\"share__tip\">\n 立即分享给好友增加中奖概率\n </div>\n {\n isWeiXin ? (\n <div className=\"share__row\"></div>\n ) : (\n null\n )\n }\n </div>\n )\n }\n </div>\n )\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Invite);\n","import React, {Component} from 'react'\nimport './index.scss'\nimport {http, SendMessageToApp, getParam} from '@/utils'\nimport {withRouter} from \"react-router-dom\"\nimport {connect} from 'react-redux'\nimport {Toast} from 'antd-mobile'\nimport cookie from \"js-cookie\"\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\nimport {addDays} from \"date-fns\"\n\n\n@connect(state => ({\n user: state.user\n }),\n {setCurrentUser, startFetchUser}\n)\n\nclass NewVip extends Component {\n state = {\n userInfoList: [],\n isSetmeal: [],\n isshowPrice: false,\n notice_content: '', // 提示\n countdown: '', // 倒计时\n cutindex: 0,\n lowPrice: '',\n tobuyID: '',\n list1: [\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/1b56e21e68.png',\n src: '/getDetail?id=196'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c9a6779b75.png',\n src: '/getDetail?id=181'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/be4b7de643.jpg',\n src: '/getDetail?id=146'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/2ec904c98b.png',\n src: '/getDetail?id=158'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/6996ee5c57.png',\n src: '/getDetail?id=180'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/more2.png',\n src: ''\n }\n ], // 特权1\n list2: [\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/3665c01210.png',\n src: '/getDetail?id=136'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c7b0eeff40.png',\n src: '/getDetail?id=123'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/bfaddc5039.png ',\n src: '/getDetail?id=140'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/ab8bb774c3.png',\n src: '/getDetail?id=133'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/efa0cad9a5.jpg',\n src: '/getDetail?id=146'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/more1.png',\n src: ''\n }\n ], // 特权2\n teaList: [\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/chen.png',\n name: '陈博士'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/seven.png',\n name: 'Seven'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/zhu.png',\n name: '褚博士'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/yang.png',\n name: '杨老师'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/guan.png',\n name: '管博士'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/li.png',\n name: '李弘杨'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/sun.png',\n name: '孙老师'\n },\n {\n img: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/shi.png',\n name: '史老师'\n }\n ], // 讲师\n tip: ['365*24小时不间断使用', '超高性能GPU硬件环境', '预装主流DL框架和数据集', '可自由上传私人数据集'],\n }\n\n componentDidMount() {\n this.fetchNotice()\n this.fetchVipBag()\n\n // 获取App登录信息\n window['loginInfo'] = result => {\n this.loginInfo(result)\n }\n document.title = 'VIP会员限时特惠,全平台在线课程免费学,GPU云实验平台免费用!——七月在线';\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n }, () => {\n if (this.state.userInfoList.length) {\n this.props.startFetchUser()\n this.appLogin()\n }\n })\n }\n\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n cookie.set(\"token\", item.token, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: '.julyedu.com'})\n })\n\n if (cookie.get(\"token\") && cookie.get(\"uid\")) {\n this.fetchNotice()\n this.fetchVipBag()\n }\n\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList))\n }\n transformUser = res => {\n let payload\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n return payload\n }\n\n\n fetchVipBag = () => {\n const _this = this\n http.get(`${API.home}/sys/vip_bag`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n _this.setState({\n isSetmeal: data\n })\n\n let lowPrice = Math.min.apply(Math, _this.state.isSetmeal.map((item) => {\n return item.price1\n }))\n _this.setState({\n lowPrice: lowPrice\n })\n\n _this.setState({\n cutindex: _this.state.isSetmeal.findIndex(item => item.price1 == lowPrice)\n })\n _this.setState({\n tobuyID: _this.state.isSetmeal[_this.state.cutindex].course_id\n })\n } else {\n Toast.info(msg, 2, null, false)\n\n }\n })\n }\n\n fetchNotice = () => {\n const _this = this\n http.get(`${API.home}/sys/notice`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n _this.setState({\n notice_content: data.notice_content,\n date: data.date\n })\n\n let date = data.date * 1000,\n day = 0,\n hours = 0,\n minutes = 0,\n seconds = 0\n setInterval(function () {\n date -= 1000\n day = `${parseInt(date / (60 * 60 * 24 * 1000))}`\n hours = `${parseInt((date - day * 86400000) / (60 * 60 * 1000))}`.padStart(2, 0)\n minutes = `${parseInt((date - day * 86400000 - hours * 3600000) / 60000)}`.padStart(2, 0)\n seconds = `${parseInt((date - day * 86400000 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0)\n _this.setState({\n countdown: `剩余${day}天${hours}时${minutes}分${seconds}秒`\n })\n }, 1000)\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n\n // 立即购买显示弹窗\n showPrice = () => {\n const isLogin = !this.props.user.hasError\n if (!isLogin) {\n this.toLogin()\n } else {\n this.setState({\n isshowPrice: true\n })\n }\n }\n\n toLogin = () => {\n if (!getParam('version')) {\n this.props.history.push('/passport')\n } else {\n SendMessageToApp(\"toLogin\")\n }\n }\n\n // 关闭弹窗\n close = () => {\n this.setState({\n isshowPrice: false\n })\n }\n\n // 选择\n tochecked = (item, index) => {\n this.setState({\n cutindex: index,\n tobuyID: item.course_id\n })\n }\n\n // 弹窗中的去购买\n tobuy = () => {\n const {isSetmeal, cutindex, tobuyID} = this.state\n let id = tobuyID === '' ? isSetmeal[cutindex].course_id : tobuyID\n if (!getParam('version')) {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${id}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${id}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2, null, false)\n }\n })\n } else {\n SendMessageToApp(\"toPay\", id)\n }\n }\n\n render() {\n const {notice_content, date, countdown, list1, list2, tip, teaList, isSetmeal, cutindex, isshowPrice, lowPrice} = this.state\n return (\n <div className='new-vip'>\n {/*banner*/}\n <div className=\"banner\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/vip-banner.png\" alt=\"\"/></div>\n\n {/*vip倒计时*/}\n {\n (notice_content || date) &&\n <div className=\"notice\">\n {\n notice_content &&\n <div className=\"tip\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/linlin_icon.png\"\n alt=\"\"/>\n <span>{notice_content}</span>\n </div>\n }\n {\n date &&\n <div className=\"time\">{countdown}</div>\n }\n </div>\n }\n\n {/*VIP尊享五大服务*/}\n <div className=\"privilege-box\">\n <div className=\"privilege-name\">VIP尊享五大服务</div>\n\n {/*特权1*/}\n <div className=\"privilege-content\">\n <PrivilegeTitle num=\"一\" title=\"直播课程抢先学\"/>\n <PrivilegeCourse data={list1}/>\n </div>\n\n <Connect position={'left'}/>\n <Connect position={'right'}/>\n\n {/*特权2*/}\n <div className='privilege-content'>\n <PrivilegeTitle num=\"二\" title=\"畅学全平台视频课程\"/>\n <PrivilegeCourse data={list2}/>\n </div>\n\n <Connect position={'left'}/>\n <Connect position={'right'}/>\n\n {/*特权3*/}\n <div className='privilege-content'>\n <PrivilegeTitle num=\"三\" title=\"GPU&CPU双云平台免费用\"/>\n\n <div className=\"privilege-list-row\">\n <div className=\"privilege-list-gpu\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu1_bj%402x.png\"\n alt=\"\"/>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu2_bj%402x.png\"\n alt=\"\"/>\n </div>\n\n <div className=\"privilege-list-tip\">\n {\n tip.map((item, index) => {\n return (\n <div className='privilege-tip-item' key={index}>\n <span>{index + 1}</span>\n {item}\n </div>\n )\n })\n }\n </div>\n </div>\n </div>\n\n <Connect position={'left'}/>\n <Connect position={'right'}/>\n\n {/*特权4*/}\n <div className='privilege-content'>\n <PrivilegeTitle num=\"四\" title=\"讲师/助教团队24小时答疑\"/>\n\n\n <p className={'privilege-teacher'}>多达100人的AI师资团队提供咨询、答疑服务,助力涨薪</p>\n\n\n <TeacherList data={teaList}/>\n </div>\n\n <Connect position={'left'}/>\n <Connect position={'right'}/>\n\n {/*特权5*/}\n <div className='privilege-content'>\n <PrivilegeTitle num=\"五\" title=\"在线作业及测评平台\"/>\n\n <div className='privilege-test'>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce1_bj%402x.png\"\n alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce2_bj%402x.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n <div className=\"tobuy\" onClick={() => this.showPrice()}>\n {lowPrice}元 立即报名\n </div>\n\n\n {\n isshowPrice &&\n <div>\n <div className=\"checkout-mbc\" onClick={() => this.close()}></div>\n <div className=\"checkout-box\">\n <div className=\"title\">\n <span>选择套餐</span>\n <span className={'close'} onClick={() => this.close()}>&#10005;</span>\n </div>\n {\n isSetmeal.map((item, index) => {\n return (\n <div\n className={`checkout-list ${cutindex === index ? \"list-checked\" : 'list-check'}`}\n key={index}\n onClick={() => this.tochecked(item, index)}\n >\n <div className=\"type\">{item.bag_name}</div>\n <div className='center'>\n {\n item.discounts_reason === '首购特惠' &&\n <div className=\"discounts-reason\">{item.discounts_reason}</div>\n\n }\n {\n item.discounts_reason !== '首购特惠' &&\n <div className=\"discounts-reason discounts-reason2\">{item.discounts_reason}</div>\n }\n <div className=\"price\">\n ¥\n <span className={'new-price'}>{item.price1}</span>\n <s className={'old-price'}>¥{item.price0}</s>\n </div>\n </div>\n <div className=\"check-box\">\n <span className={`${cutindex === index ? \"checked\" : 'check'}`}></span>\n </div>\n </div>\n )\n })\n }\n\n <button className='check-tobuy' onClick={() => this.tobuy()}>立即购买</button>\n </div>\n </div>\n }\n\n\n </div>\n )\n }\n}\n\nfunction PrivilegeTitle(props) {\n return (\n <div className=\"privilege-title\"><img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/viplog.png\" alt=\"\"/>\n <span>服务{props.num}</span> {props.title}\n </div>\n )\n}\n\nfunction PrivilegeCourse(props) {\n return (\n <div className=\"privilege-list\">\n {\n props.data.map((item, index) => {\n return (\n <div key={index}>\n {\n item.src === '' &&\n <a className={'course-box'}>\n <img src={item.img} alt=\"\"/>\n </a>\n }\n {\n item.src !== '' &&\n <a className={'course-box'} href={item.src}>\n <img src={item.img} alt=\"\"/>\n </a>\n }\n </div>\n )\n })\n }\n\n </div>\n )\n}\n\nfunction TeacherList(props) {\n return (\n <div className=\"teacher-list\">\n {\n props.data.map((item, index) => {\n return (\n <div className=\"teacher-item\" key={index}>\n <img src={item.img} alt=\"\"/>\n <span>{item.name}</span>\n </div>\n )\n })\n }\n </div>\n )\n}\n\nfunction Connect(props) {\n return (\n <div className={`connect ${props.position}`}>\n <span className='top'></span>\n <span className='con'></span>\n <span className='bottom'></span>\n </div>\n )\n}\n\n\nexport default withRouter(NewVip)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1267:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(156);var n=t(76),i=t.n(n),c=(t(91),t(27)),o=t.n(c),r=(t(155),t(35)),s=t.n(r),l=(t(37),t(11)),d=t.n(l),p=t(4),u=t(7),m=t(5),y=t(8),f=t(9),g=t(74),h=(t(645),t(646)),b=t.n(h),v=(t(119),t(47)),w=t.n(v),E=t(0),S=t.n(E),x=t(3),_=t(25),j=t(14),k=(t(891),w.a.Item.Brief,b.a.RadioItem),I=[];I=x.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var P=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.c)("status"),a=Object(x.c)("type"),n=Object(x.c)("oid"),i=t.props.history;if(e||a)if(0===parseInt(e,10))if(2===parseInt(a,10))i.push("/togroup?id=".concat(n));else if(4===parseInt(a,10)){c&&window.localStorage.setItem("payCourse",c);var c=window.localStorage.getItem("payCourse");c&&i.push("/detail?id=".concat(c),{oid:n})}else i.push("/purchased");else d.a.info("\u652f\u4ed8\u5f02\u5e38",2)},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":x.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(g.a)(Object(g.a)(t)),a=Object(x.c)("code");if(a){if(void 0===Object(x.c)("oid"))return;x.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(g.a)(Object(g.a)(t));e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(g.a)(Object(g.a)(t));e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);x.d.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(f.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay();var a={};a=this.props.location.state&&this.props.location.state.group?{order_id:this.state.orderId,type:2}:{order_id:this.state.orderId},x.d.post("".concat(API["base-api"],"/m/order/detail"),a).then(function(a){if(200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg,2)}),(1===Object(x.c)("is_class")||Object(x.c)("weixinpay"))&&this.payCallback(),Object(x.f)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,l=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(s.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(s.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(j.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.j,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(s.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(s.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},I.map(function(a){return S.a.createElement(k,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(l,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(k,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},891:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.608c293d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1267:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(156);var n=t(76),i=t.n(n),c=(t(91),t(27)),o=t.n(c),r=(t(155),t(36)),s=t.n(r),l=(t(37),t(11)),d=t.n(l),p=t(4),u=t(7),m=t(5),y=t(8),f=t(9),g=t(74),h=(t(645),t(646)),b=t.n(h),v=(t(119),t(47)),w=t.n(v),E=t(0),S=t.n(E),x=t(3),_=t(25),j=t(14),k=(t(891),w.a.Item.Brief,b.a.RadioItem),I=[];I=x.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var P=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.c)("status"),a=Object(x.c)("type"),n=Object(x.c)("oid"),i=t.props.history;if(e||a)if(0===parseInt(e,10))if(2===parseInt(a,10))i.push("/togroup?id=".concat(n));else if(4===parseInt(a,10)){c&&window.localStorage.setItem("payCourse",c);var c=window.localStorage.getItem("payCourse");c&&i.push("/detail?id=".concat(c),{oid:n})}else i.push("/purchased");else d.a.info("\u652f\u4ed8\u5f02\u5e38",2)},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":x.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(g.a)(Object(g.a)(t)),a=Object(x.c)("code");if(a){if(void 0===Object(x.c)("oid"))return;x.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(g.a)(Object(g.a)(t));e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(g.a)(Object(g.a)(t));e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);x.d.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(f.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay();var a={};a=this.props.location.state&&this.props.location.state.group?{order_id:this.state.orderId,type:2}:{order_id:this.state.orderId},x.d.post("".concat(API["base-api"],"/m/order/detail"),a).then(function(a){if(200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg,2)}),(1===Object(x.c)("is_class")||Object(x.c)("weixinpay"))&&this.payCallback(),Object(x.f)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,l=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(s.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(s.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(j.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.j,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(s.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(s.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},I.map(function(a){return S.a.createElement(k,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(l,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(k,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},891:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.3406a411.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/payOrder/PayOrder.js"],"names":["RadioItem","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_17___default","a","Item","Brief","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_15___default","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__","call","redirectAfterPay","status","getParam","type","oid","history","parseInt","push","concat","courseId","window","localStorage","setItem","getItem","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","info","onChange","setState","payType","checkPeriod","huabei","checkStaging","item","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","console","log","pay","_this2$state","state","orderId","alipayPay","weixinPay","is_weixin","location","href","encodeURIComponent","toLowerCase","http","get","API","then","res","data","errno","url","msg","isweixinPay","_this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_13__","weixin_code","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","Number","course_type","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","huabeiPay","_this2$state2","pay_amount","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","group","order_id","post","_res$data$data","course","map","obj","moneyRate","rate","periodic","toFixed","serviceFee","parseFloat","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_18___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_20__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","align","style","height","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_21__","to","course_id","course_title","simpledescription","price1","price0","handleClick","key","img","image_name","id","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","onClick","Component"],"mappings":"wXAWMA,UAFOC,EAAAC,EAAKC,KACCC,MACDC,EAAAH,EAAMF,WAEpBM,EAAW,GAEXA,EADAC,IAAQC,SACG,CACP,CAACC,MAAO,EAAGC,MAAO,2BAAQC,KAAM,oBAGzB,CACP,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,mBAChC,CAACF,MAAO,EAAGC,MAAO,qBAAOC,KAAM,mBAMlBC,cACjB,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,KAoBVQ,iBAAmB,WAEf,IAAMC,EAASC,YAAS,UAClBC,EAAOD,YAAS,QAChBE,EAAMF,YAAS,OACdG,EAAWZ,EAAKD,MAAhBa,QACP,GAAIJ,GAAUE,EACV,GAA6B,IAAzBG,SAASL,EAAQ,IAEjB,GAA2B,IAAvBK,SAASH,EAAM,IACfE,EAAQE,KAAR,eAAAC,OAA4BJ,SAC1B,GAA0B,IAAvBE,SAASH,EAAM,IAAW,CACnCM,GAAYC,OAAOC,aAAaC,QAAQ,YAAaH,GACjD,IAAMA,EAAWC,OAAOC,aAAaE,QAAQ,aAC7CJ,GAAYJ,EAAQE,KAAR,cAAAC,OAA2BC,GAAW,CAACL,aAEnDC,EAAQE,KAAK,mBAGjBO,EAAAjC,EAAMkC,KAAK,2BAAQ,IAxCZtB,EA6CnB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,cAAA,OAAKC,UAAU,aACXF,EAAAjI,EAAAkI,cAAA,KAAGC,UAAU,eAAb,kCACCxB,EAAUY,IAAI,SAAAuC,GAAC,OACZ7B,EAAAjI,EAAAkI,cAACpI,EAAD,CACI2J,IAAKK,EAAEvJ,MACPyJ,QAAStH,IAAgBoH,EAAEvJ,MAC3B4B,SAAU,kBAAM4F,EAAKvF,aAAasH,KAHtC,GAAAnI,OAIQmI,EAAElH,WAJV,gBAAAjB,OAI2BmI,EAAEhH,MAJ7B,UAKImF,EAAAjI,EAAAkI,cAAAnI,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwBmI,EAAEjC,WAA1B,mCAAAlG,OAA6CmI,EAAErC,iBAK/D,aA3Zc+C","file":"mrstatic/js/PayOrder.608c293d.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast } from 'antd-mobile';\nimport { http, getParam, is_weixin, browser } from '@/utils';\nimport { OrderItem, HeaderBar } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport './PayOrder.scss';\nimport { VList } from '@/common';\n\n\nconst Item = List.Item;\nconst Brief = Item.Brief;\nconst RadioItem = Radio.RadioItem;\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ];\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n // { value: 2, label: '花呗分期', icon: 'iconhuabei' },\n ];\n}\n\n\nexport default class PayOrder extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n }\n }\n\n // 支付成功后,判断并重定向\n redirectAfterPay = () => {\n // status:0成功,1失败\n const status = getParam('status');\n const type = getParam('type');\n const oid = getParam('oid');\n const {history} = this.props;\n if (status || type) {\n if (parseInt(status, 10) === 0) {\n // type订单类型 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n if (parseInt(type, 10) === 2) {\n history.push(`/togroup?id=${oid}`);\n }else if(parseInt(type, 10) === 4) {\n courseId && window.localStorage.setItem('payCourse', courseId);\n const courseId = window.localStorage.getItem('payCourse')\n courseId && history.push(`/detail?id=${courseId}`,{oid});\n } else {\n history.push('/purchased');\n }\n } else {\n Toast.info('支付异常', 2);\n }\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n });\n if (value === 2) {\n this.setState({\n huabei: true,\n });\n }\n };\n checkStaging = (item) => {\n // console.log(item);\n this.setState({\n huabei: false,\n stageNumber: item.value,\n singleMoney: item.everyTotal,\n periodNumber: item.stage,\n checkPeriod: true,\n });\n }\n print = (...e) => {\n console.log(e);\n };\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state;\n if (payType === 0) {\n this.alipayPay(orderId);\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n // else { // 花呗分期暂时不做\n // this.huabeiPay(orderId)\n // }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // if(window.location.href.indexOf('aa=bb') === -1){\n // localStorage.setItem('a', '第一次');\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n // if(window.location.href.indexOf('aa=bb') > 0) {\n // localStorage.setItem('a', '多次');\n // let newHref = window.location.href.slice(0, window.location.href.indexOf('aa=bb')-1);\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(newHref + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n // console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n // console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/payOrder/PayOrder.js"],"names":["RadioItem","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_17___default","a","Item","Brief","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_15___default","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__","call","redirectAfterPay","status","getParam","type","oid","history","parseInt","push","concat","courseId","window","localStorage","setItem","getItem","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","info","onChange","setState","payType","checkPeriod","huabei","checkStaging","item","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","console","log","pay","_this2$state","state","orderId","alipayPay","weixinPay","is_weixin","location","href","encodeURIComponent","toLowerCase","http","get","API","then","res","data","errno","url","msg","isweixinPay","_this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_13__","weixin_code","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","Number","course_type","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","huabeiPay","_this2$state2","pay_amount","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","group","order_id","post","_res$data$data","course","map","obj","moneyRate","rate","periodic","toFixed","serviceFee","parseFloat","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_18___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_20__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","align","style","height","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_21__","to","course_id","course_title","simpledescription","price1","price0","handleClick","key","img","image_name","id","renderHeader","i","thumb","checked","direction","width","marginTop","padding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,EAAElH,WAJV,gBAAAjB,OAI2BmI,EAAEhH,MAJ7B,UAKImF,EAAAjI,EAAAkI,cAAAnI,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwBmI,EAAEjC,WAA1B,mCAAAlG,OAA6CmI,EAAErC,iBAK/D,aA3Zc+C","file":"mrstatic/js/PayOrder.3406a411.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast } from 'antd-mobile';\nimport { http, getParam, is_weixin, browser } from '@/utils';\nimport { OrderItem, HeaderBar } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport './PayOrder.scss';\nimport { VList } from '@/common';\n\n\nconst Item = List.Item;\nconst Brief = Item.Brief;\nconst RadioItem = Radio.RadioItem;\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ];\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n // { value: 2, label: '花呗分期', icon: 'iconhuabei' },\n ];\n}\n\n\nexport default class PayOrder extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n }\n }\n\n // 支付成功后,判断并重定向\n redirectAfterPay = () => {\n // status:0成功,1失败\n const status = getParam('status');\n const type = getParam('type');\n const oid = getParam('oid');\n const {history} = this.props;\n if (status || type) {\n if (parseInt(status, 10) === 0) {\n // type订单类型 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n if (parseInt(type, 10) === 2) {\n history.push(`/togroup?id=${oid}`);\n }else if(parseInt(type, 10) === 4) {\n courseId && window.localStorage.setItem('payCourse', courseId);\n const courseId = window.localStorage.getItem('payCourse')\n courseId && history.push(`/detail?id=${courseId}`,{oid});\n } else {\n history.push('/purchased');\n }\n } else {\n Toast.info('支付异常', 2);\n }\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n });\n if (value === 2) {\n this.setState({\n huabei: true,\n });\n }\n };\n checkStaging = (item) => {\n // console.log(item);\n this.setState({\n huabei: false,\n stageNumber: item.value,\n singleMoney: item.everyTotal,\n periodNumber: item.stage,\n checkPeriod: true,\n });\n }\n print = (...e) => {\n console.log(e);\n };\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state;\n if (payType === 0) {\n this.alipayPay(orderId);\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n // else { // 花呗分期暂时不做\n // this.huabeiPay(orderId)\n // }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // if(window.location.href.indexOf('aa=bb') === -1){\n // localStorage.setItem('a', '第一次');\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n // if(window.location.href.indexOf('aa=bb') > 0) {\n // localStorage.setItem('a', '多次');\n // let newHref = window.location.href.slice(0, window.location.href.indexOf('aa=bb')-1);\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(newHref + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n // console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n // console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1142:function(e,t,a){},1269:function(e,t,a){"use strict";a.r(t);a(158);var n,o=a(92),i=a.n(o),s=(a(155),a(35)),r=a.n(s),c=(a(37),a(11)),l=a.n(c),u=a(4),f=a(7),d=a(5),h=a(8),p=a(9),m=a(0),v=a.n(m),g=a(25),b=(a(1142),a(728)),C=a(3),y=a(63),w=a(21),E=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(d.a)(this,Object(h.a)(t).call(this,e))).specialSale=function(){C.d.get("".concat(API.home,"/m/home/weekDiscounts")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.bargain=function(){C.d.get("".concat(API.home,"/m/home/bargainZone")).then(function(e){200===e.data.code?a.setState({dataList:"{}"==JSON.stringify(e.data.data)?[]:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.group=function(){C.d.get("".concat(API.home,"/m/home/grouponList")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.ontabclick=function(e,t){switch(a.setState({courseStatus:t,isLoading:!0}),t){case 0:a.specialSale();break;case 1:a.bargain();break;default:a.group()}},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={dataList:[],courseStatus:0,isLoading:!0},a}return Object(p.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.specialSale()}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid);return v.a.createElement("div",{className:"preferential"},v.a.createElement(b.a,{isLogin:n}),v.a.createElement(y.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"class-content"},v.a.createElement(r.a,null),v.a.createElement(i.a,{tabs:[{title:"\u9650\u65f6\u7279\u60e0"},{title:"\u780d\u4ef7\u4e13\u533a"},{title:"\u4e00\u952e\u62fc\u56e2"}],animated:!1,onChange:function(t,a){return e.ontabclick(t,a)},swipeable:!1,page:this.state.courseStatus,renderTabBar:function(e){return v.a.createElement("div",{className:"custom-tab-bar"},v.a.createElement(i.a.DefaultTabBar,e))}}),v.a.createElement("div",{className:"tabs"},this.state.dataList.length>0?v.a.createElement("ul",null,this.state.dataList.map(function(t,a){var n=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},t.course_desc),v.a.createElement("div",{className:"des"},!t.is_buy&&v.a.createElement("p",{className:"course-price"},0===e.state.courseStatus&&v.a.createElement("span",{className:"price"},"\u7279\u60e0\u4ef7\uff1a"),v.a.createElement("span",{className:"new"},"\xa5",t.price1),v.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&v.a.createElement("a",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),o=!t.is_buy&&v.a.createElement("div",null,1===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_price,"\u5143"),2===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u4ef7",t.price,"\u5143"),t.is_aist&&v.a.createElement("span",{className:"return_cash"}));return v.a.createElement(g.j,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})})):v.a.createElement("div",{className:"notdata"},"\u780d\u4ef7\u7684\u8bfe\u7a0b\u5df2\u88ab\u8bbe\u7f6e\u4e3a\u53cc\u5341\u4e00\u6d3b\u52a8\u8bfe\u7a0b\uff0c\u53c2\u52a0\u53cc\u5341\u4e00\u6d3b\u52a8\u8d2d\u4e70\u8bfe\u7a0b\u4f18\u60e0\u66f4\u591a\u54e6\uff01")),v.a.createElement(r.a,null))))}}]),t}(m.Component))||n;t.default=E},594:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},599:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(6),i=(n=o)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var o={};if(t&&t.antLocale&&t.antLocale[a])o=t.antLocale[a];else{var s=n();o=s.default||s}var r=(0,i.default)({},o);e.locale&&(r=(0,i.default)({},r,e.locale),e.locale.lang&&(r.lang=(0,i.default)({},o.lang,e.locale.lang)));return r},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},619:function(e,t,a){"use strict";a(49),a(620)},620:function(e,t,a){},621:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(6)),o=g(a(34)),i=g(a(12)),s=g(a(15)),r=g(a(13)),c=g(a(16)),l=g(a(18)),u=v(a(0)),f=v(a(2)),d=g(a(157)),h=g(a(594)),p=a(599),m=a(622);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,i.default)(this,t);var a=(0,r.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,i=this.props,s=i.prefixCls,r=i.showCancelButton,c=i.disabled,f=i.placeholder,m=i.className,v=i.style,g=i.maxLength,b=(0,p.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(623)}).cancelText,C=this.state,y=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||y&&y.length>0))),N=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&y&&y.length>0))),S=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(r||w||y&&y.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:y,disabled:c,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,h.default)(this.props))),u.createElement(d.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:N}))),u.createElement("div",{className:S,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||b))}}]),t}(u.Component);t.default=b,b.defaultProps=m.defaultProps,b.contextTypes={antLocale:f.object},e.exports=t.default},622:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},623:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},728:function(e,t,a){"use strict";a(619);var n=a(621),o=a.n(n),i=a(4),s=a(7),r=a(5),c=a(8),l=a(9),u=a(0),f=a.n(u),d=(a(729),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(o.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},729:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.3abfd449.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1142:function(e,t,a){},1269:function(e,t,a){"use strict";a.r(t);a(158);var n,o=a(92),i=a.n(o),s=(a(155),a(36)),r=a.n(s),c=(a(37),a(11)),l=a.n(c),u=a(4),f=a(7),d=a(5),h=a(8),p=a(9),m=a(0),v=a.n(m),g=a(25),b=(a(1142),a(728)),C=a(3),y=a(63),w=a(21),E=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(d.a)(this,Object(h.a)(t).call(this,e))).specialSale=function(){C.d.get("".concat(API.home,"/m/home/weekDiscounts")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.bargain=function(){C.d.get("".concat(API.home,"/m/home/bargainZone")).then(function(e){200===e.data.code?a.setState({dataList:"{}"==JSON.stringify(e.data.data)?[]:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.group=function(){C.d.get("".concat(API.home,"/m/home/grouponList")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.ontabclick=function(e,t){switch(a.setState({courseStatus:t,isLoading:!0}),t){case 0:a.specialSale();break;case 1:a.bargain();break;default:a.group()}},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={dataList:[],courseStatus:0,isLoading:!0},a}return Object(p.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.specialSale()}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid);return v.a.createElement("div",{className:"preferential"},v.a.createElement(b.a,{isLogin:n}),v.a.createElement(y.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"class-content"},v.a.createElement(r.a,null),v.a.createElement(i.a,{tabs:[{title:"\u9650\u65f6\u7279\u60e0"},{title:"\u780d\u4ef7\u4e13\u533a"},{title:"\u4e00\u952e\u62fc\u56e2"}],animated:!1,onChange:function(t,a){return e.ontabclick(t,a)},swipeable:!1,page:this.state.courseStatus,renderTabBar:function(e){return v.a.createElement("div",{className:"custom-tab-bar"},v.a.createElement(i.a.DefaultTabBar,e))}}),v.a.createElement("div",{className:"tabs"},this.state.dataList.length>0?v.a.createElement("ul",null,this.state.dataList.map(function(t,a){var n=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},t.course_desc),v.a.createElement("div",{className:"des"},!t.is_buy&&v.a.createElement("p",{className:"course-price"},0===e.state.courseStatus&&v.a.createElement("span",{className:"price"},"\u7279\u60e0\u4ef7\uff1a"),v.a.createElement("span",{className:"new"},"\xa5",t.price1),v.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&v.a.createElement("a",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),o=!t.is_buy&&v.a.createElement("div",null,1===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_price,"\u5143"),2===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u4ef7",t.price,"\u5143"),t.is_aist&&v.a.createElement("span",{className:"return_cash"}));return v.a.createElement(g.j,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})})):v.a.createElement("div",{className:"notdata"},"\u780d\u4ef7\u7684\u8bfe\u7a0b\u5df2\u88ab\u8bbe\u7f6e\u4e3a\u53cc\u5341\u4e00\u6d3b\u52a8\u8bfe\u7a0b\uff0c\u53c2\u52a0\u53cc\u5341\u4e00\u6d3b\u52a8\u8d2d\u4e70\u8bfe\u7a0b\u4f18\u60e0\u66f4\u591a\u54e6\uff01")),v.a.createElement(r.a,null))))}}]),t}(m.Component))||n;t.default=E},594:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},599:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(6),i=(n=o)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var o={};if(t&&t.antLocale&&t.antLocale[a])o=t.antLocale[a];else{var s=n();o=s.default||s}var r=(0,i.default)({},o);e.locale&&(r=(0,i.default)({},r,e.locale),e.locale.lang&&(r.lang=(0,i.default)({},o.lang,e.locale.lang)));return r},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},619:function(e,t,a){"use strict";a(49),a(620)},620:function(e,t,a){},621:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(6)),o=g(a(34)),i=g(a(12)),s=g(a(15)),r=g(a(13)),c=g(a(16)),l=g(a(18)),u=v(a(0)),f=v(a(2)),d=g(a(157)),h=g(a(594)),p=a(599),m=a(622);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,i.default)(this,t);var a=(0,r.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,i=this.props,s=i.prefixCls,r=i.showCancelButton,c=i.disabled,f=i.placeholder,m=i.className,v=i.style,g=i.maxLength,b=(0,p.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(623)}).cancelText,C=this.state,y=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||y&&y.length>0))),N=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&y&&y.length>0))),S=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(r||w||y&&y.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:y,disabled:c,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,h.default)(this.props))),u.createElement(d.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:N}))),u.createElement("div",{className:S,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||b))}}]),t}(u.Component);t.default=b,b.defaultProps=m.defaultProps,b.contextTypes={antLocale:f.object},e.exports=t.default},622:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},623:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},728:function(e,t,a){"use strict";a(619);var n=a(621),o=a.n(n),i=a(4),s=a(7),r=a(5),c=a(8),l=a(9),u=a(0),f=a.n(u),d=(a(729),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(o.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},729:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.d93f1005.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/preferential/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Preferential","connect","_ref","user","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","JSON","stringify","group","ontabclick","tab","index","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","_this$props$user","isLogin","uid","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","className","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_14__","_common_Loading__WEBPACK_IMPORTED_MODULE_16__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","title","animated","onChange","swipeable","page","renderTabBar","DefaultTabBar","length","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","replace","href","react__WEBPACK_IMPORTED_MODULE_7___default","toHref","return","bind","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"gTAYMA,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAaVQ,YAAc,WACVC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAACC,GACzB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAAUJ,EAAIC,KAAKA,KACnBI,WAAW,IAGfC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MAtBlBvB,EA4BnBwB,QAAU,WACNhB,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAACC,GACvB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAA2C,MAAjCO,KAAKC,UAAUZ,EAAIC,KAAKA,MAAgB,GAAGD,EAAIC,KAAKA,KAC9DI,WAAW,IAGfC,EAAAC,EAAMC,KAAKR,EAAIC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AO4D,SAASE,KAAO,2CAIvB9D,OAAO4D,SAASE,KAAO,qCAUvB,OACIC,EAAAvL,EAAAuB,cAAA,OAAKC,UAAU,gBACX+J,EAAAvL,EAAAuB,cAAA,OAAKC,UAAU,eAEN1C,KAAKJ,MAAM8M,QACZD,EAAAvL,EAAAuB,cAAA,KACIC,UAAW,mCACXiB,QAAS3D,KAAK2M,OAAOC,KAAK5M,QAI9BA,KAAKJ,MAAM8M,QACXD,EAAAvL,EAAAuB,cAAA,KACIC,UAAW,mCACXiB,QAAS3D,KAAKJ,MAAM8M,SAG5BD,EAAAvL,EAAAuB,cAAAoK,EAAA3L,EAAA,CACI+J,YAAY,2BACZE,WAAY,IACZjD,QAASlI,KAAK8M,SAASF,KAAK5M,MAC5BsK,kBAAkB,IAEtBmC,EAAAvL,EAAAuB,cAAA,KACIC,UAAW,+CACXiB,QAAS3D,KAAKmM,kBAzCdxH,cAkDTuH","file":"mrstatic/js/Preferential.3abfd449.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace, Toast} from 'antd-mobile'\nimport './index.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http} from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect(({user}) => ({\n user\n}))\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: JSON.stringify(res.data.data) == '{}' ? []:res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 一键拼团\n group = () => {\n http.get(`${API.home}/m/home/grouponList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.setState({\n courseStatus: index,\n isLoading: true,\n })\n switch (index) {\n case 0:\n this.specialSale()\n break\n case 1:\n this.bargain()\n break\n default:\n this.group()\n }\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const tabs = [\n {title: '限时特惠'},\n {title: '砍价专区'},\n {title: '一键拼团'}\n ]\n const {user = {}} = this.props;\n let isLogin = user.data && user.data.uid ? true : false;\n return (\n <div className='preferential'>\n <HeaderSearch isLogin={isLogin}/>\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n\n <Tabs\n tabs={tabs}\n animated={false}\n onChange={(tab, index) => this.ontabclick(tab, index)}\n swipeable={false}\n page={this.state.courseStatus}\n renderTabBar={props => <div className={'custom-tab-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n >\n </Tabs>\n <div className='tabs'>\n {\n this.state.dataList.length>0?\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>:<div className={'notdata'}>砍价的课程已被设置为双十一活动课程,参加双十一活动购买课程优惠更多哦!</div>\n }\n\n </div>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/preferential/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Preferential","connect","_ref","user","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","JSON","stringify","group","ontabclick","tab","index","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","_this$props$user","isLogin","uid","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","className","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_14__","_common_Loading__WEBPACK_IMPORTED_MODULE_16__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","title","animated","onChange","swipeable","page","renderTabBar","DefaultTabBar","length","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","replace","href","react__WEBPACK_IMPORTED_MODULE_7___default","toHref","return","bind","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"gTAYMA,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CACl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ACXiB,QAAS3D,KAAKmM,kBAzCdxH,cAkDTuH","file":"mrstatic/js/Preferential.d93f1005.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace, Toast} from 'antd-mobile'\nimport './index.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http} from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect(({user}) => ({\n user\n}))\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: JSON.stringify(res.data.data) == '{}' ? []:res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 一键拼团\n group = () => {\n http.get(`${API.home}/m/home/grouponList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.setState({\n courseStatus: index,\n isLoading: true,\n })\n switch (index) {\n case 0:\n this.specialSale()\n break\n case 1:\n this.bargain()\n break\n default:\n this.group()\n }\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const tabs = [\n {title: '限时特惠'},\n {title: '砍价专区'},\n {title: '一键拼团'}\n ]\n const {user = {}} = this.props;\n let isLogin = user.data && user.data.uid ? true : false;\n return (\n <div className='preferential'>\n <HeaderSearch isLogin={isLogin}/>\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n\n <Tabs\n tabs={tabs}\n animated={false}\n onChange={(tab, index) => this.ontabclick(tab, index)}\n swipeable={false}\n page={this.state.courseStatus}\n renderTabBar={props => <div className={'custom-tab-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n >\n </Tabs>\n <div className='tabs'>\n {\n this.state.dataList.length>0?\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>:<div className={'notdata'}>砍价的课程已被设置为双十一活动课程,参加双十一活动购买课程优惠更多哦!</div>\n }\n\n </div>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1161:function(e,t,a){},1284:function(e,t,a){"use strict";a.r(t);var n=a(4),r=a(7),i=a(5),l=a(8),c=a(9),s=a(0),o=a.n(s),u=(a(1161),a(160)),m=a(3),d=(a(150),a(14)),p=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=new URLSearchParams(this.props.location.search);m.d.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(t.get("id"),"/").concat(t.get("vId"))).then(function(t){if(200==t.data.errno){var a=t.data.data;e.setState({course:{title:a.course_title,des:a.course_desc,img:a.image_name,id:a.course_id},user:{avatar:a.avatar,name:a.username,time:a.create_time},progress:{days:a.learn_day_num,action:a.action_power}}),Object(m.i)({title:a.share_title,desc:a.share_desc,imgUrl:a.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,t=e.user,a=e.course,n=e.progress;return o.a.createElement("div",{className:"aist-share"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"user"},o.a.createElement("img",{src:t.avatar,alt:"\u5934\u50cf"}),o.a.createElement("span",{className:"username"},t.name),o.a.createElement("span",{className:"time"},t.time)),o.a.createElement(d.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},o.a.createElement("div",{className:"course"},o.a.createElement("div",{className:"course-cover"},o.a.createElement("img",{src:a.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),o.a.createElement("div",{className:"course-info"},o.a.createElement("div",{className:"title"},a.title),o.a.createElement("div",{className:"des"},a.des)))),o.a.createElement("ul",{className:"progress"},o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.days),"\u5929")),o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.action),"%"))),o.a.createElement("div",{className:"recommend-app"},o.a.createElement("div",{className:"text"},o.a.createElement("div",{className:"bold"},o.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),o.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),o.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),o.a.createElement("div",{className:"qrcode"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),t}(s.PureComponent);t.default=Object(u.a)(p)},1291:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),r=a.n(n),i=(a(730),a(732)),l=a.n(i),c=(a(37),a(11)),s=a.n(c),o=a(4),u=a(7),m=a(5),d=a(8),p=a(9),f=a(0),y=a.n(f),h=a(3),v=a(26),g=a(36),E=a.n(g),b=a(52),j=a(24),O=a(21),C=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(m.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(r)))).state={userInfoList:[]},a.getData=function(){s.a.info("\u83b7\u53d6\u798f\u6c14\u503c",2)},a.loginInfo=function(e){a.setState({userInfoList:e}),0!==a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())},a.appLogin=function(){var e=Object(b.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){s.a.info(t.version,3),E.a.set("token",t.token,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("plat",t.plat,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uid",t.uid,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uname",t.uname,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:"julyedu.com"})}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.testShare=function(){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:encodeURI(location.href),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.toLogin=function(){Object(h.a)("toLogin")},a.earnestMoney=function(e){Object(h.a)("earnestMoney",e)},a.toCourse=function(e,t){var a={courseId:e,type:t};Object(h.a)("toCourse",a)},a.toQQ=function(){Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true")},a.toLiveRoom=function(e){Object(h.a)("toLiveRoom",e)},a.QQshare=function(){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"})},a.WXshare=function(){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"})},a.toShare=function(){Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a}return Object(p.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getData(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this;return y.a.createElement("div",null,y.a.createElement(l.a,{type:"primary",onClick:function(){return e.testShare()}},"\u6d4b\u8bd5\u5206\u4eab"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u767b\u5f55"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLogin()}},"\u8df3App\u767b\u5f55"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u53bb\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u79ef\u798f\u6c14"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,1)}},"\u6d4f\u89c8\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.QQshare()}},"\u5206\u4eab\uff08QQ\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.WXshare()}},"\u5206\u4eab\uff08\u5fae\u4fe1\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toShare()}},"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5b9a\u91d1\u76f8\u5173"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.earnestMoney(165)}},"\u7acb\u5373\u4ed8\u5b9a\u91d1"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u53bb\u5b66\u4e60\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u7cbe\u54c1\u7279\u60e0"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toQQ()}},"\u7acb\u62a2\u8d85\u4f4e\u56e2\u8d2d\u4ef7(\u8df3\u4eba\u5de5\u54a8\u8be2)"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u5f00\u59cb\u4f7f\u7528\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u4e00\u5206\u94b1\u5f00\u56e2\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5927\u5496\u76f4\u64ad"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLiveRoom(100)}},"\u6b63\u5728\u76f4\u64ad"),y.a.createElement(r.a,null))}}]),t}(f.Component);t.default=Object(j.d)(Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:v.g,startFetchUser:v.h}))(C)},730:function(e,t,a){"use strict";a(49),a(262),a(731)},731:function(e,t,a){},732:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(a(6)),r=p(a(34)),i=p(a(12)),l=p(a(15)),c=p(a(13)),s=p(a(16)),o=p(a(18)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(0)),m=p(a(157)),d=p(a(263));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(a[n[r]]=e[n[r]])}return a},y=/^[\u4e00-\u9fa5]{2}$/,h=y.test.bind(y);function v(e){return"string"===typeof e}function g(e){return v(e.type)&&h(e.props.children)?u.cloneElement(e,{},e.props.children.split("").join(" ")):v(e)?(h(e)&&(e=e.split("").join(" ")),u.createElement("span",null,e)):e}var E=function(e){function t(){return(0,i.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e,t=this.props,a=t.children,i=t.className,l=t.prefixCls,c=t.type,s=t.size,p=t.inline,y=t.disabled,h=t.icon,v=t.loading,E=t.activeStyle,b=t.activeClassName,j=t.onClick,O=f(t,["children","className","prefixCls","type","size","inline","disabled","icon","loading","activeStyle","activeClassName","onClick"]),C=v?"loading":h,_=(0,o.default)(l,i,(e={},(0,r.default)(e,l+"-primary","primary"===c),(0,r.default)(e,l+"-ghost","ghost"===c),(0,r.default)(e,l+"-warning","warning"===c),(0,r.default)(e,l+"-small","small"===s),(0,r.default)(e,l+"-inline",p),(0,r.default)(e,l+"-disabled",y),(0,r.default)(e,l+"-loading",v),(0,r.default)(e,l+"-icon",!!C),e)),k=u.Children.map(a,g),N=void 0;if("string"===typeof C)N=u.createElement(d.default,{"aria-hidden":"true",type:C,size:"small"===s?"xxs":"md",className:l+"-icon"});else if(C){var w=C.props&&C.props.className,x=(0,o.default)("am-icon",l+"-icon","small"===s?"am-icon-xxs":"am-icon-md");N=u.cloneElement(C,{className:w?w+" "+x:x})}return u.createElement(m.default,{activeClassName:b||(E?l+"-active":void 0),disabled:y,activeStyle:E},u.createElement("a",(0,n.default)({role:"button",className:_},O,{onClick:y?void 0:j,"aria-disabled":y}),N,k))}}]),t}(u.Component);E.defaultProps={prefixCls:"am-button",size:"large",inline:!1,disabled:!1,loading:!1,activeStyle:{}},t.default=E,e.exports=t.default}}]);
//# sourceMappingURL=aist-share.81d5ede7.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1161:function(e,t,a){},1284:function(e,t,a){"use strict";a.r(t);var n=a(4),r=a(7),i=a(5),l=a(8),c=a(9),s=a(0),o=a.n(s),u=(a(1161),a(160)),m=a(3),d=(a(150),a(14)),p=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=new URLSearchParams(this.props.location.search);m.d.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(t.get("id"),"/").concat(t.get("vId"))).then(function(t){if(200==t.data.errno){var a=t.data.data;e.setState({course:{title:a.course_title,des:a.course_desc,img:a.image_name,id:a.course_id},user:{avatar:a.avatar,name:a.username,time:a.create_time},progress:{days:a.learn_day_num,action:a.action_power}}),Object(m.i)({title:a.share_title,desc:a.share_desc,imgUrl:a.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,t=e.user,a=e.course,n=e.progress;return o.a.createElement("div",{className:"aist-share"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"user"},o.a.createElement("img",{src:t.avatar,alt:"\u5934\u50cf"}),o.a.createElement("span",{className:"username"},t.name),o.a.createElement("span",{className:"time"},t.time)),o.a.createElement(d.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},o.a.createElement("div",{className:"course"},o.a.createElement("div",{className:"course-cover"},o.a.createElement("img",{src:a.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),o.a.createElement("div",{className:"course-info"},o.a.createElement("div",{className:"title"},a.title),o.a.createElement("div",{className:"des"},a.des)))),o.a.createElement("ul",{className:"progress"},o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.days),"\u5929")),o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.action),"%"))),o.a.createElement("div",{className:"recommend-app"},o.a.createElement("div",{className:"text"},o.a.createElement("div",{className:"bold"},o.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),o.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),o.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),o.a.createElement("div",{className:"qrcode"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),t}(s.PureComponent);t.default=Object(u.a)(p)},1291:function(e,t,a){"use strict";a.r(t);a(155);var n=a(36),r=a.n(n),i=(a(730),a(732)),l=a.n(i),c=(a(37),a(11)),s=a.n(c),o=a(4),u=a(7),m=a(5),d=a(8),p=a(9),f=a(0),y=a.n(f),h=a(3),v=a(26),g=a(35),E=a.n(g),b=a(52),j=a(24),O=a(21),C=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(m.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(r)))).state={userInfoList:[]},a.getData=function(){s.a.info("\u83b7\u53d6\u798f\u6c14\u503c",2)},a.loginInfo=function(e){a.setState({userInfoList:e}),0!==a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())},a.appLogin=function(){var e=Object(b.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){s.a.info(t.version,3),E.a.set("token",t.token,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("plat",t.plat,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uid",t.uid,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uname",t.uname,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:"julyedu.com"})}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.testShare=function(){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:encodeURI(location.href),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.toLogin=function(){Object(h.a)("toLogin")},a.earnestMoney=function(e){Object(h.a)("earnestMoney",e)},a.toCourse=function(e,t){var a={courseId:e,type:t};Object(h.a)("toCourse",a)},a.toQQ=function(){Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true")},a.toLiveRoom=function(e){Object(h.a)("toLiveRoom",e)},a.QQshare=function(){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"})},a.WXshare=function(){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"})},a.toShare=function(){Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a}return Object(p.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getData(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this;return y.a.createElement("div",null,y.a.createElement(l.a,{type:"primary",onClick:function(){return e.testShare()}},"\u6d4b\u8bd5\u5206\u4eab"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u767b\u5f55"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLogin()}},"\u8df3App\u767b\u5f55"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u53bb\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u79ef\u798f\u6c14"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,1)}},"\u6d4f\u89c8\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.QQshare()}},"\u5206\u4eab\uff08QQ\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.WXshare()}},"\u5206\u4eab\uff08\u5fae\u4fe1\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toShare()}},"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5b9a\u91d1\u76f8\u5173"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.earnestMoney(165)}},"\u7acb\u5373\u4ed8\u5b9a\u91d1"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u53bb\u5b66\u4e60\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u7cbe\u54c1\u7279\u60e0"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toQQ()}},"\u7acb\u62a2\u8d85\u4f4e\u56e2\u8d2d\u4ef7(\u8df3\u4eba\u5de5\u54a8\u8be2)"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u5f00\u59cb\u4f7f\u7528\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u4e00\u5206\u94b1\u5f00\u56e2\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5927\u5496\u76f4\u64ad"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLiveRoom(100)}},"\u6b63\u5728\u76f4\u64ad"),y.a.createElement(r.a,null))}}]),t}(f.Component);t.default=Object(j.d)(Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:v.g,startFetchUser:v.h}))(C)},730:function(e,t,a){"use strict";a(49),a(262),a(731)},731:function(e,t,a){},732:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(a(6)),r=p(a(34)),i=p(a(12)),l=p(a(15)),c=p(a(13)),s=p(a(16)),o=p(a(18)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(0)),m=p(a(157)),d=p(a(263));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(a[n[r]]=e[n[r]])}return a},y=/^[\u4e00-\u9fa5]{2}$/,h=y.test.bind(y);function v(e){return"string"===typeof e}function g(e){return v(e.type)&&h(e.props.children)?u.cloneElement(e,{},e.props.children.split("").join(" ")):v(e)?(h(e)&&(e=e.split("").join(" ")),u.createElement("span",null,e)):e}var E=function(e){function t(){return(0,i.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e,t=this.props,a=t.children,i=t.className,l=t.prefixCls,c=t.type,s=t.size,p=t.inline,y=t.disabled,h=t.icon,v=t.loading,E=t.activeStyle,b=t.activeClassName,j=t.onClick,O=f(t,["children","className","prefixCls","type","size","inline","disabled","icon","loading","activeStyle","activeClassName","onClick"]),C=v?"loading":h,_=(0,o.default)(l,i,(e={},(0,r.default)(e,l+"-primary","primary"===c),(0,r.default)(e,l+"-ghost","ghost"===c),(0,r.default)(e,l+"-warning","warning"===c),(0,r.default)(e,l+"-small","small"===s),(0,r.default)(e,l+"-inline",p),(0,r.default)(e,l+"-disabled",y),(0,r.default)(e,l+"-loading",v),(0,r.default)(e,l+"-icon",!!C),e)),k=u.Children.map(a,g),N=void 0;if("string"===typeof C)N=u.createElement(d.default,{"aria-hidden":"true",type:C,size:"small"===s?"xxs":"md",className:l+"-icon"});else if(C){var w=C.props&&C.props.className,x=(0,o.default)("am-icon",l+"-icon","small"===s?"am-icon-xxs":"am-icon-md");N=u.cloneElement(C,{className:w?w+" "+x:x})}return u.createElement(m.default,{activeClassName:b||(E?l+"-active":void 0),disabled:y,activeStyle:E},u.createElement("a",(0,n.default)({role:"button",className:_},O,{onClick:y?void 0:j,"aria-disabled":y}),N,k))}}]),t}(u.Component);E.defaultProps={prefixCls:"am-button",size:"large",inline:!1,disabled:!1,loading:!1,activeStyle:{}},t.default=E,e.exports=t.default}}]);
//# sourceMappingURL=aist-share.de8a0e2a.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/index.js","components/blessingPreheat/toAppDemo.js","../node_modules/antd-mobile/lib/button/style/css.js","../node_modules/antd-mobile/lib/button/index.js"],"names":["AistShare","state","course","title","des","img","id","progress","days","action","showShareCover","user","avatar","name","time","_this2","this","search","URLSearchParams","props","location","http","get","concat","API","then","res","data","errno","setState","course_title","course_desc","image_name","course_id","username","create_time","learn_day_num","action_power","wxShare","share_title","desc","share_desc","imgUrl","link","href","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","pathname","PureComponent","withFullSize","ToAppDemo","userInfoList","getData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","info","loginInfo","result","_this","length","startFetchUser","appLogin","expires","addDays","Date","map","item","index","version","cookie","set","token","path","domain","plat","uid","uname","avatar_file","setCurrentUser","transformUser","payload","hasError","isFetching","testShare","encodeURI","toLogin","SendMessageToApp","earnestMoney","courseId","toCourse","type","toQQ","toLiveRoom","QQshare","WXshare","toShare","window","_this3","react__WEBPACK_IMPORTED_MODULE_11___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_3___default","onClick","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","Component","compose","connect","__webpack_require__","Object","defineProperty","exports","value","_extends3","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames3","React","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","_interopRequireWildcard","_rmcFeedback2","_icon2","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","i","rxTwoCNChar","isTwoCNChar","test","bind","isString","str","insertSpace","child","children","cloneElement","split","join","Button","_React$Component","__proto__","getPrototypeOf","apply","arguments","_classnames","_a","prefixCls","size","inline","disabled","icon","loading","activeStyle","activeClassName","restProps","iconType","wrapCls","kids","Children","iconEl","aria-hidden","rawCls","cls","undefined","role","aria-disabled","defaultProps","module"],"mappings":"4NAOMA,6MACFC,MAAQ,CACJC,OAAQ,CACJC,MAAO,GACPC,IAAK,GACLC,IAAK,GACLC,GAAI,IAERC,SAAU,CACNC,KAAM,EACNC,OAAQ,GAEZC,gBAAgB,EAChBC,KAAM,CACFC,OAAQ,GACRC,KAAM,GACNC,KAAM,wFAIM,IAAAC,EAAAC,KACVC,EAAS,IAAIC,gBAAgBF,KAAKG,MAAMC,SAASH,QACvDI,IAAKC,IAAL,GAAAC,OAAYC,IAA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,IAAA,EAAAhD,EAAA,SAAA4C,EAAAE,EAAA,YAAAG,IAAA,EAAAjD,EAAA,SAAA4C,EAAAE,EAAA,WAAAK,IAAA,EAAAnD,EAAA,SAAA4C,EAAAE,EAAA,UAAAS,GAAAX,IACxFa,EAAAnD,EAAAoD,SAAAzG,IAAAiF,EAAAF,GACA2B,OAAA,EAEA,qBAAAJ,EACAI,EAAArD,EAAA5E,cAAAsF,EAAA,SACA4C,cAAA,OACAlF,KAAA6E,EACAR,KAAA,UAAAA,EAAA,WACApH,UAAAmH,EAAA,eAEO,GAAAS,EAAA,CACP,IAAAM,EAAAN,EAAA1J,OAAA0J,EAAA1J,MAAA8B,UACAmI,GAAA,EAAAzD,EAAA,mBAAAyC,EAAA,kBAAAC,EAAA,4BACAY,EAAArD,EAAA6B,aAAAoB,EAAA,CACA5H,UAAAkI,IAAA,IAAAC,MAKA,OAAAxD,EAAA5E,cAAAqF,EAAA,QACA,CACAsC,oBAAAD,EAAAN,EAAA,eAAAiB,GACAd,WACAG,eACO9C,EAAA5E,cAAA,OAAAoE,EAAA,UACPkE,KAAA,SACArI,UAAA6H,GACOF,EAAA,CACPlE,QAAA6D,OAAAc,EAAA3E,EACA6E,gBAAAhB,IACOU,EAAAF,QAGPnB,EA/DA,CAgEChC,EAAAhB,WAEDgD,EAAA4B,aAAA,CACApB,UAAA,YACAC,KAAA,QACAC,QAAA,EACAC,UAAA,EACAE,SAAA,EACAC,YAAA,IAEAxD,EAAA,QAAA0C,EACA6B,EAAAvE,UAAA","file":"mrstatic/js/aist-share.81d5ede7.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport './aist-share.scss'\nimport withFullSize from '@/HOCs/WithFullSize'\nimport { http, wxShare } from \"@/utils\";\nimport { getWXObject } from \"@/utils/wechat/base\";\nimport {Link} from \"react-router-dom\";\n\nclass AistShare extends PureComponent {\n state = {\n course: {\n title: '',\n des: '',\n img: '',\n id: ''\n },\n progress: {\n days: 0,\n action: 0\n },\n showShareCover: true,\n user: {\n avatar: '',\n name: '',\n time: ''\n }\n }\n\n componentDidMount() {\n const search = new URLSearchParams(this.props.location.search);\n http.get(`${API['base-api']}/m/aist/share_ground_data/${search.get('id')}/${search.get('vId')}`)\n .then(res => {\n if (res.data.errno == 200) {\n const data = res.data.data;\n this.setState({\n course: {\n title: data.course_title,\n des: data.course_desc,\n img: data.image_name,\n id: data.course_id\n },\n user: {\n avatar: data.avatar,\n name: data.username,\n time: data.create_time\n },\n progress: {\n days: data.learn_day_num,\n action: data.action_power\n }\n })\n wxShare({\n title: data.share_title,\n desc: data.share_desc,\n imgUrl: data.image_name,\n link: location.href\n })\n }\n\n })\n }\n\n\n render() {\n const {user, course, progress} = this.state\n return (\n <div className='aist-share'>\n <div className=\"content\">\n <div className=\"user\">\n <img src={user.avatar} alt=\"头像\"/>\n <span className=\"username\">{user.name}</span>\n <span className=\"time\">{user.time}</span>\n </div>\n <Link to={{pathname: '/detail', search: `?id=${this.state.course.id}`}}>\n <div className=\"course\">\n <div className=\"course-cover\">\n <img src={course.img} alt=\"课程封面\"/>\n </div>\n <div className=\"course-info\">\n <div className=\"title\">{course.title}</div>\n <div className=\"des\">{course.des}</div>\n </div>\n </div>\n </Link>\n <ul className=\"progress\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.days}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.action}</span>%</div>\n </li>\n </ul>\n <div className=\"recommend-app\">\n <div className=\"text\">\n <div className=\"bold\">\n <div>立即下载【七月在线】</div>\n <div>众多好课免费学</div>\n </div>\n <div className=\"light\">\n 长按识别右侧二维码\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png\"\n alt=\"\"/>\n </div>\n </div>\n <div className=\"qrcode\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default withFullSize(AistShare);","import React, {Component} from 'react'\nimport {SendMessageToApp,wxShare} from '@/utils'\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\nimport {Button, Toast, WhiteSpace} from 'antd-mobile'\nimport cookie from 'js-cookie'\nimport {addDays} from \"date-fns\"\nimport {compose} from \"redux\";\nimport {connect} from \"react-redux\";\n\n\nclass ToAppDemo extends Component {\n\n state = {\n userInfoList: [],\n }\n\n componentDidMount() {\n this.getData()\n // 获取App登录信息\n window['loginInfo'] = result => {\n this.loginInfo(result)\n }\n }\n\n getData = () => {\n Toast.info('获取福气值', 2)\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n })\n if (this.state.userInfoList.length !== 0) {\n this.props.startFetchUser()\n this.appLogin()\n }\n }\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n Toast.info(item.version, 3)\n cookie.set(\"token\", item.token, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: 'julyedu.com'});\n });\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList))\n }\n\n transformUser = res => {\n let payload\n\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n\n return payload\n }\n testShare = () => {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.href),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n })\n }\n\n\n // 跳转App登录\n toLogin = () => {\n SendMessageToApp(\"toLogin\");\n }\n\n // 立即付定金\n earnestMoney = (courseId) => {\n SendMessageToApp(\"earnestMoney\", courseId);\n }\n\n // 去课程详情页\n toCourse = (courseId, type) => {\n let data = {\n courseId: courseId,\n type: type // 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2\n }\n SendMessageToApp(\"toCourse\", data);\n }\n // 人工咨询\n toQQ = () => {\n SendMessageToApp(\"toQQ\", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')\n }\n // 直播间\n toLiveRoom = (toLiveRoom) => {\n SendMessageToApp(\"toLiveRoom\", toLiveRoom)\n }\n // QQ分享\n QQshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"QQshare\", data)\n }\n // 微信分享\n WXshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"WXshare\", data)\n }\n\n // 邀请好友注册\n toShare = () => {\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"toShare\", data)\n }\n\n render() {\n return (\n <div>\n <Button type={'primary'} onClick={() => this.testShare()}>测试分享</Button><WhiteSpace/>\n <p>登录</p>\n <Button type={'primary'} onClick={() => this.toLogin()}>跳App登录</Button><WhiteSpace/>\n <p>去课程详情页</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>课程详情页</Button><WhiteSpace/>\n <p>积福气</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 1)}>浏览课程详情页</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.QQshare()}>分享(QQ)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.WXshare()}>分享(微信)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toShare()}>邀请好友注册</Button><WhiteSpace/>\n <p>定金相关</p>\n <Button type={'primary'} onClick={() => this.earnestMoney(165)}>立即付定金</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>去学习(跳课程详情页)</Button><WhiteSpace/>\n <p>精品特惠</p>\n <Button type={'primary'} onClick={() => this.toQQ()}>立抢超低团购价(跳人工咨询)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>开始使用(跳课程详情页)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>一分钱开团(跳课程详情页)</Button><WhiteSpace/>\n <p>大咖直播</p>\n <Button type={'primary'} onClick={() => this.toLiveRoom(100)}>正在直播</Button><WhiteSpace/>\n </div>\n )\n }\n}\n\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {setCurrentUser, startFetchUser}\n )\n)(ToAppDemo)","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../icon/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _icon = require('../icon');\n\nvar _icon2 = _interopRequireDefault(_icon);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar rxTwoCNChar = /^[\\u4e00-\\u9fa5]{2}$/;\nvar isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\n\nfunction isString(str) {\n return typeof str === 'string';\n} // Insert one space between two chinese characters automatically.\n\n\nfunction insertSpace(child) {\n if (isString(child.type) && isTwoCNChar(child.props.children)) {\n return React.cloneElement(child, {}, child.props.children.split('').join(' '));\n }\n\n if (isString(child)) {\n if (isTwoCNChar(child)) {\n child = child.split('').join(' ');\n }\n\n return React.createElement('span', null, child);\n }\n\n return child;\n}\n\nvar Button = function (_React$Component) {\n (0, _inherits3['default'])(Button, _React$Component);\n\n function Button() {\n (0, _classCallCheck3['default'])(this, Button);\n return (0, _possibleConstructorReturn3['default'])(this, (Button.__proto__ || Object.getPrototypeOf(Button)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Button, [{\n key: 'render',\n value: function render() {\n var _classnames;\n\n var _a = this.props,\n children = _a.children,\n className = _a.className,\n prefixCls = _a.prefixCls,\n type = _a.type,\n size = _a.size,\n inline = _a.inline,\n disabled = _a.disabled,\n icon = _a.icon,\n loading = _a.loading,\n activeStyle = _a.activeStyle,\n activeClassName = _a.activeClassName,\n onClick = _a.onClick,\n restProps = __rest(_a, [\"children\", \"className\", \"prefixCls\", \"type\", \"size\", \"inline\", \"disabled\", \"icon\", \"loading\", \"activeStyle\", \"activeClassName\", \"onClick\"]);\n\n var iconType = loading ? 'loading' : icon;\n var wrapCls = (0, _classnames3['default'])(prefixCls, className, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-primary', type === 'primary'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-ghost', type === 'ghost'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-warning', type === 'warning'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-small', size === 'small'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-inline', inline), (0, _defineProperty3['default'])(_classnames, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_classnames, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classnames, prefixCls + '-icon', !!iconType), _classnames));\n var kids = React.Children.map(children, insertSpace);\n var iconEl = void 0;\n\n if (typeof iconType === 'string') {\n iconEl = React.createElement(_icon2['default'], {\n 'aria-hidden': 'true',\n type: iconType,\n size: size === 'small' ? 'xxs' : 'md',\n className: prefixCls + '-icon'\n });\n } else if (iconType) {\n var rawCls = iconType.props && iconType.props.className;\n var cls = (0, _classnames3['default'])('am-icon', prefixCls + '-icon', size === 'small' ? 'am-icon-xxs' : 'am-icon-md');\n iconEl = React.cloneElement(iconType, {\n className: rawCls ? rawCls + ' ' + cls : cls\n });\n } // use div, button native is buggy @yiminghe\n\n\n return React.createElement(_rmcFeedback2['default'] // tslint:disable-next-line:jsx-no-multiline-js\n , {\n activeClassName: activeClassName || (activeStyle ? prefixCls + '-active' : undefined),\n disabled: disabled,\n activeStyle: activeStyle\n }, React.createElement('a', (0, _extends3['default'])({\n role: 'button',\n className: wrapCls\n }, restProps, {\n onClick: disabled ? undefined : onClick,\n 'aria-disabled': disabled\n }), iconEl, kids));\n }\n }]);\n return Button;\n}(React.Component);\n\nButton.defaultProps = {\n prefixCls: 'am-button',\n size: 'large',\n inline: false,\n disabled: false,\n loading: false,\n activeStyle: {}\n};\nexports['default'] = Button;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/index.js","components/blessingPreheat/toAppDemo.js","../node_modules/antd-mobile/lib/button/style/css.js","../node_modules/antd-mobile/lib/button/index.js"],"names":["AistShare","state","course","title","des","img","id","progress","days","action","showShareCover","user","avatar","name","time","_this2","this","search","URLSearchParams","props","location","http","get","concat","API","then","res","data","errno","setState","course_title","course_desc","image_name","course_id","username","create_time","learn_day_num","action_power","wxShare","share_title","desc","share_desc","imgUrl","link","href","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","pathname","PureComponent","withFullSize","ToAppDemo","userInfoList","getData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","info","loginInfo","result","_this","length","startFetchUser","appLogin","expires","addDays","Date","map","item","index","version","cookie","set","token","path","domain","plat","uid","uname","avatar_file","setCurrentUser","transformUser","payload","hasError","isFetching","testShare","encodeURI","toLogin","SendMessageToApp","earnestMoney","courseId","toCourse","type","toQQ","toLiveRoom","QQshare","WXshare","toShare","window","_this3","react__WEBPACK_IMPORTED_MODULE_11___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_3___default","onClick","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","Component","compose","connect","__webpack_require__","Object","defineProperty","exports","value","_extends3","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames3","React","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","_interopRequireWildcard","_rmcFeedback2","_icon2","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","i","rxTwoCNChar","isTwoCNChar","test","bind","isString","str","insertSpace","child","children","cloneElement","split","join","Button","_React$Component","__proto__","getPrototypeOf","apply","arguments","_classnames","_a","prefixCls","size","inline","disabled","icon","loading","activeStyle","activeClassName","restProps","iconType","wrapCls","kids","Children","iconEl","aria-hidden","rawCls","cls","undefined","role","aria-disabled","defaultProps","module"],"mappings":"4NAOMA,6MACFC,MAAQ,CACJC,OAAQ,CACJC,MAAO,GACPC,IAAK,GACLC,IAAK,GACLC,GAAI,IAERC,SAAU,CACNC,KAAM,EACNC,OAAQ,GAEZC,gBAAgB,EAChBC,KAAM,CACFC,OAAQ,GACRC,KAAM,GACNC,KAAM,wFAIM,IAAAC,EAAAC,KACVC,EAAS,IAAIC,gBAAgBF,KAAKG,MAAMC,SAASH,QACvDI,IAAKC,IAAL,GAAAC,OAAYC,IAAI,YAAhB,8BAAAD,OAAwDN,EAAOK,IAAI,MAAnE,KAAAC,OAA4EN,EAAOK,IAAI,SAClFG,KAAK,SAAAC,GACF,GAAsB,KAAlBA,EAAIC,KAAKC,MAAc,CACvB,IAAMD,EAAOD,EAAIC,KAAKA,K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AAAoD,SAAAzG,IAAAiF,EAAAF,GACA2B,OAAA,EAEA,qBAAAJ,EACAI,EAAArD,EAAA5E,cAAAsF,EAAA,SACA4C,cAAA,OACAlF,KAAA6E,EACAR,KAAA,UAAAA,EAAA,WACApH,UAAAmH,EAAA,eAEO,GAAAS,EAAA,CACP,IAAAM,EAAAN,EAAA1J,OAAA0J,EAAA1J,MAAA8B,UACAmI,GAAA,EAAAzD,EAAA,mBAAAyC,EAAA,kBAAAC,EAAA,4BACAY,EAAArD,EAAA6B,aAAAoB,EAAA,CACA5H,UAAAkI,IAAA,IAAAC,MAKA,OAAAxD,EAAA5E,cAAAqF,EAAA,QACA,CACAsC,oBAAAD,EAAAN,EAAA,eAAAiB,GACAd,WACAG,eACO9C,EAAA5E,cAAA,OAAAoE,EAAA,UACPkE,KAAA,SACArI,UAAA6H,GACOF,EAAA,CACPlE,QAAA6D,OAAAc,EAAA3E,EACA6E,gBAAAhB,IACOU,EAAAF,QAGPnB,EA/DA,CAgEChC,EAAAhB,WAEDgD,EAAA4B,aAAA,CACApB,UAAA,YACAC,KAAA,QACAC,QAAA,EACAC,UAAA,EACAE,SAAA,EACAC,YAAA,IAEAxD,EAAA,QAAA0C,EACA6B,EAAAvE,UAAA","file":"mrstatic/js/aist-share.de8a0e2a.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport './aist-share.scss'\nimport withFullSize from '@/HOCs/WithFullSize'\nimport { http, wxShare } from \"@/utils\";\nimport { getWXObject } from \"@/utils/wechat/base\";\nimport {Link} from \"react-router-dom\";\n\nclass AistShare extends PureComponent {\n state = {\n course: {\n title: '',\n des: '',\n img: '',\n id: ''\n },\n progress: {\n days: 0,\n action: 0\n },\n showShareCover: true,\n user: {\n avatar: '',\n name: '',\n time: ''\n }\n }\n\n componentDidMount() {\n const search = new URLSearchParams(this.props.location.search);\n http.get(`${API['base-api']}/m/aist/share_ground_data/${search.get('id')}/${search.get('vId')}`)\n .then(res => {\n if (res.data.errno == 200) {\n const data = res.data.data;\n this.setState({\n course: {\n title: data.course_title,\n des: data.course_desc,\n img: data.image_name,\n id: data.course_id\n },\n user: {\n avatar: data.avatar,\n name: data.username,\n time: data.create_time\n },\n progress: {\n days: data.learn_day_num,\n action: data.action_power\n }\n })\n wxShare({\n title: data.share_title,\n desc: data.share_desc,\n imgUrl: data.image_name,\n link: location.href\n })\n }\n\n })\n }\n\n\n render() {\n const {user, course, progress} = this.state\n return (\n <div className='aist-share'>\n <div className=\"content\">\n <div className=\"user\">\n <img src={user.avatar} alt=\"头像\"/>\n <span className=\"username\">{user.name}</span>\n <span className=\"time\">{user.time}</span>\n </div>\n <Link to={{pathname: '/detail', search: `?id=${this.state.course.id}`}}>\n <div className=\"course\">\n <div className=\"course-cover\">\n <img src={course.img} alt=\"课程封面\"/>\n </div>\n <div className=\"course-info\">\n <div className=\"title\">{course.title}</div>\n <div className=\"des\">{course.des}</div>\n </div>\n </div>\n </Link>\n <ul className=\"progress\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.days}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.action}</span>%</div>\n </li>\n </ul>\n <div className=\"recommend-app\">\n <div className=\"text\">\n <div className=\"bold\">\n <div>立即下载【七月在线】</div>\n <div>众多好课免费学</div>\n </div>\n <div className=\"light\">\n 长按识别右侧二维码\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png\"\n alt=\"\"/>\n </div>\n </div>\n <div className=\"qrcode\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default withFullSize(AistShare);","import React, {Component} from 'react'\nimport {SendMessageToApp,wxShare} from '@/utils'\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\nimport {Button, Toast, WhiteSpace} from 'antd-mobile'\nimport cookie from 'js-cookie'\nimport {addDays} from \"date-fns\"\nimport {compose} from \"redux\";\nimport {connect} from \"react-redux\";\n\n\nclass ToAppDemo extends Component {\n\n state = {\n userInfoList: [],\n }\n\n componentDidMount() {\n this.getData()\n // 获取App登录信息\n window['loginInfo'] = result => {\n this.loginInfo(result)\n }\n }\n\n getData = () => {\n Toast.info('获取福气值', 2)\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n })\n if (this.state.userInfoList.length !== 0) {\n this.props.startFetchUser()\n this.appLogin()\n }\n }\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n Toast.info(item.version, 3)\n cookie.set(\"token\", item.token, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: 'julyedu.com'});\n });\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList))\n }\n\n transformUser = res => {\n let payload\n\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n\n return payload\n }\n testShare = () => {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.href),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n })\n }\n\n\n // 跳转App登录\n toLogin = () => {\n SendMessageToApp(\"toLogin\");\n }\n\n // 立即付定金\n earnestMoney = (courseId) => {\n SendMessageToApp(\"earnestMoney\", courseId);\n }\n\n // 去课程详情页\n toCourse = (courseId, type) => {\n let data = {\n courseId: courseId,\n type: type // 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2\n }\n SendMessageToApp(\"toCourse\", data);\n }\n // 人工咨询\n toQQ = () => {\n SendMessageToApp(\"toQQ\", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')\n }\n // 直播间\n toLiveRoom = (toLiveRoom) => {\n SendMessageToApp(\"toLiveRoom\", toLiveRoom)\n }\n // QQ分享\n QQshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"QQshare\", data)\n }\n // 微信分享\n WXshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"WXshare\", data)\n }\n\n // 邀请好友注册\n toShare = () => {\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"toShare\", data)\n }\n\n render() {\n return (\n <div>\n <Button type={'primary'} onClick={() => this.testShare()}>测试分享</Button><WhiteSpace/>\n <p>登录</p>\n <Button type={'primary'} onClick={() => this.toLogin()}>跳App登录</Button><WhiteSpace/>\n <p>去课程详情页</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>课程详情页</Button><WhiteSpace/>\n <p>积福气</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 1)}>浏览课程详情页</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.QQshare()}>分享(QQ)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.WXshare()}>分享(微信)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toShare()}>邀请好友注册</Button><WhiteSpace/>\n <p>定金相关</p>\n <Button type={'primary'} onClick={() => this.earnestMoney(165)}>立即付定金</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>去学习(跳课程详情页)</Button><WhiteSpace/>\n <p>精品特惠</p>\n <Button type={'primary'} onClick={() => this.toQQ()}>立抢超低团购价(跳人工咨询)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>开始使用(跳课程详情页)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>一分钱开团(跳课程详情页)</Button><WhiteSpace/>\n <p>大咖直播</p>\n <Button type={'primary'} onClick={() => this.toLiveRoom(100)}>正在直播</Button><WhiteSpace/>\n </div>\n )\n }\n}\n\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {setCurrentUser, startFetchUser}\n )\n)(ToAppDemo)","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../icon/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _icon = require('../icon');\n\nvar _icon2 = _interopRequireDefault(_icon);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar rxTwoCNChar = /^[\\u4e00-\\u9fa5]{2}$/;\nvar isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\n\nfunction isString(str) {\n return typeof str === 'string';\n} // Insert one space between two chinese characters automatically.\n\n\nfunction insertSpace(child) {\n if (isString(child.type) && isTwoCNChar(child.props.children)) {\n return React.cloneElement(child, {}, child.props.children.split('').join(' '));\n }\n\n if (isString(child)) {\n if (isTwoCNChar(child)) {\n child = child.split('').join(' ');\n }\n\n return React.createElement('span', null, child);\n }\n\n return child;\n}\n\nvar Button = function (_React$Component) {\n (0, _inherits3['default'])(Button, _React$Component);\n\n function Button() {\n (0, _classCallCheck3['default'])(this, Button);\n return (0, _possibleConstructorReturn3['default'])(this, (Button.__proto__ || Object.getPrototypeOf(Button)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Button, [{\n key: 'render',\n value: function render() {\n var _classnames;\n\n var _a = this.props,\n children = _a.children,\n className = _a.className,\n prefixCls = _a.prefixCls,\n type = _a.type,\n size = _a.size,\n inline = _a.inline,\n disabled = _a.disabled,\n icon = _a.icon,\n loading = _a.loading,\n activeStyle = _a.activeStyle,\n activeClassName = _a.activeClassName,\n onClick = _a.onClick,\n restProps = __rest(_a, [\"children\", \"className\", \"prefixCls\", \"type\", \"size\", \"inline\", \"disabled\", \"icon\", \"loading\", \"activeStyle\", \"activeClassName\", \"onClick\"]);\n\n var iconType = loading ? 'loading' : icon;\n var wrapCls = (0, _classnames3['default'])(prefixCls, className, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-primary', type === 'primary'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-ghost', type === 'ghost'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-warning', type === 'warning'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-small', size === 'small'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-inline', inline), (0, _defineProperty3['default'])(_classnames, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_classnames, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classnames, prefixCls + '-icon', !!iconType), _classnames));\n var kids = React.Children.map(children, insertSpace);\n var iconEl = void 0;\n\n if (typeof iconType === 'string') {\n iconEl = React.createElement(_icon2['default'], {\n 'aria-hidden': 'true',\n type: iconType,\n size: size === 'small' ? 'xxs' : 'md',\n className: prefixCls + '-icon'\n });\n } else if (iconType) {\n var rawCls = iconType.props && iconType.props.className;\n var cls = (0, _classnames3['default'])('am-icon', prefixCls + '-icon', size === 'small' ? 'am-icon-xxs' : 'am-icon-md');\n iconEl = React.cloneElement(iconType, {\n className: rawCls ? rawCls + ' ' + cls : cls\n });\n } // use div, button native is buggy @yiminghe\n\n\n return React.createElement(_rmcFeedback2['default'] // tslint:disable-next-line:jsx-no-multiline-js\n , {\n activeClassName: activeClassName || (activeStyle ? prefixCls + '-active' : undefined),\n disabled: disabled,\n activeStyle: activeStyle\n }, React.createElement('a', (0, _extends3['default'])({\n role: 'button',\n className: wrapCls\n }, restProps, {\n onClick: disabled ? undefined : onClick,\n 'aria-disabled': disabled\n }), iconEl, kids));\n }\n }]);\n return Button;\n}(React.Component);\n\nButton.defaultProps = {\n prefixCls: 'am-button',\n size: 'large',\n inline: false,\n disabled: false,\n loading: false,\n activeStyle: {}\n};\nexports['default'] = Button;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1178:function(e,a,t){},1286:function(e,a,t){"use strict";t.r(a);t(37);var n,s=t(11),r=t.n(s),c=t(20),i=t(4),l=t(7),d=t(5),m=t(8),o=t(9),u=t(0),p=t.n(u),_=(t(1178),t(628)),h=t(3),f=t(734),v=t(25),E=t(21),b=(t(36),Object(E.b)(function(e){return{uid:e.user.data.uid||""}})(n=function(e){function a(e){var t;return Object(i.a)(this,a),(t=Object(d.a)(this,Object(m.a)(a).call(this,e))).popupInstance=null,t.showAddress=function(e){var a=t.props,n=a.history,s=a.uid,r=t.state.name;e&&!s?n.push("/passport"):e&&!t.popupInstance?t.popupInstance=Object(v.h)({title:"\u606d\u559c\u60a8",content:p.a.createElement(f.a,{tip:"\u586b\u5199\u60a8\u7684\u8054\u7cfb\u65b9\u5f0f",prize:r,handleToHide:function(){return t.showAddress(!1)}})}):(t.popupInstance.close(),t.popupInstance=null)},t.state={date:"",next_date:"",name:"",is_winning:"",is_virtual:1,prize_data:[],address:!1},t}return Object(o.a)(a,e),Object(l.a)(a,[{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){var a=e.props,t=a.history;a.uid?h.d.get("".concat(API.home,"/sys/lottery_result?id=").concat(Object(h.c)("id"))).then(function(a){var t=a.data,n=t.code,s=t.msg,i=t.data;200===n?e.setState(Object(c.a)({},i.info,{prize_data:i.prize_data.slice(0,6)})):r.a.info(s)}):t.push("/passport")},300)}},{key:"render",value:function(){var e=this,a=this.state,t=a.date,n=a.next_date,s=a.name,r=a.is_winning,c=a.is_virtual,i=a.prize_data;a.address;return p.a.createElement("div",{className:"blessing_get_prize"},p.a.createElement("div",{className:"is__get_prize"},p.a.createElement("div",{className:"get_piriz__info"},p.a.createElement("div",{className:"result"},t,"\u4e2d\u5956\u7ed3\u679c"),0===r&&p.a.createElement("div",{className:"no_prize"},"\u5f88\u9057\u61be\uff0c\u4f60\u672a\u4e2d\u5956\uff5e"),1===r&&0===c&&p.a.createElement("div",{className:"real__prize"},p.a.createElement("div",null,"\u606d\u559c\u4f60\uff0c\u5df2\u62bd\u4e2d",s,"\u5956\u54c1"),p.a.createElement("span",{onClick:function(){return e.showAddress(!0)},className:"address"},"\u586b\u5199\u6536\u8d27\u5730\u5740")),1===r&&1===c&&p.a.createElement("div",{className:"virtual "},p.a.createElement("div",null,"\u606d\u559c\u4f60\u62bd\u4e2d",s,"\uff0c"),p.a.createElement("div",null,"\u5956\u54c1\u5df2\u5b58\u653e\u5230\u4f60\u7684\u8d26\u6237")))),i&&i.length>0&&p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:"current_stage"},n),p.a.createElement(_.a,{text:"\u62bd\u5956\u5df2\u5f00\u542f",styles:{margin:"16px 0 18px"}}),p.a.createElement("div",{className:"prize_list_container"},i.length>0&&i.map(function(e,a){return p.a.createElement("div",{className:"prize__item",key:a},p.a.createElement("img",{className:"prize__image",src:e.img}),p.a.createElement("div",{className:"name__num"},p.a.createElement("span",null,e.name),p.a.createElement("span",null,"\uff08","*".concat(e.num),"\uff09")))})),p.a.createElement("a",{href:"/blessingPreheat",className:"join__button"},"\u7acb\u5373\u53c2\u4e0e\u62bd\u5956"),p.a.createElement("div",{className:"prize__tip"},p.a.createElement("div",{className:"line"}),p.a.createElement("span",null,"\u4e2d\u5956\u5c0ftips"),p.a.createElement("div",{className:"line"})),p.a.createElement("div",{className:"blessing__des"},"\u79ef\u6512\u7684\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\u54e6"),p.a.createElement("a",{className:"to__preheat",href:"/invite"},"\u79ef\u6512\u66f4\u591a\u798f\u6c14\u503c")),(!i||0===i.length)&&p.a.createElement("div",{className:"active_over_container"},p.a.createElement("p",null,"AI\u5145\u7535\u8282\u8fd4\u573a\u5df2\u5f00\u542f"),p.a.createElement("p",null,"\u72c2\u6b22\u4e0d\u80fd\u505c~"),p.a.createElement("a",{href:"/blessingPreheat",className:"to_active"},"\u7acb\u5373\u67e5\u770b")))}}]),a}(u.Component))||n);a.default=b},628:function(e,a,t){"use strict";var n=t(4),s=t(7),r=t(5),c=t(8),i=t(9),l=t(0),d=t.n(l),m=t(18),o=t.n(m),u=(t(736),function(e){function a(){return Object(n.a)(this,a),Object(r.a)(this,Object(c.a)(a).apply(this,arguments))}return Object(i.a)(a,e),Object(s.a)(a,[{key:"render",value:function(){var e=this.props,a=e.text,t=e.size,n=e.styles,s=e.id,r=t?"list-header--".concat(t):"";return d.a.createElement("div",{id:s,className:o()("list-header",r),style:n},d.a.createElement("i",{className:"list-header__decorate","data-position":"left"}),a?d.a.createElement("h2",{className:"list-header__content"},a):this.props.children,d.a.createElement("i",{className:"list-header__decorate","data-position":"right"}))}}]),a}(l.Component));a.a=u},734:function(e,a,t){"use strict";var n=t(20),s=(t(37),t(11)),r=t.n(s),c=t(4),i=t(7),l=t(5),d=t(8),m=t(9),o=t(0),u=t.n(o),p=(t(40),t(3)),_=t(17),h=(t(735),function(e){function a(e){var t;return Object(c.a)(this,a),(t=Object(l.a)(this,Object(d.a)(a).call(this,e))).fetchUserAddress=function(){var e=t.state.addressInfo;p.d.get("".concat(API.home,"/sys/user_address_info")).then(function(a){var n=a.data,s=n.code,r=n.data;n.msg;200===s&&t.setState({addressInfo:Object.assign({},e,{name:r.name,phone:r.phone,address:r.address}),isLoading:!0})})},t.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.props.handleToHide;p.d.post("".concat(API.home,"/sys/collect_info"),e).then(function(e){var t=e.data,n=t.code,s=t.msg;200===n?a():r.a.info(s,2,null,!1)})},t.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},t}return Object(m.a)(a,e),Object(i.a)(a,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isLoading,s=a.addressInfo,r=this.props,c=r.tip,i=r.prize;return u.a.createElement(u.a.Fragment,null,t&&u.a.createElement(_.d,{initialValues:Object(n.a)({},s),validate:function(e){var a=e.name,t=e.phone,n=e.address,s={};return a||(s.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(t)||(s.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(s.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),s},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return u.a.createElement(_.c,{className:"address-form"},i?u.a.createElement("p",{className:"address__prize"},"\u60a8\u62bd\u4e2d\u4e86",i,u.a.createElement("span",{style:{color:"#FF4000"}},"\u5b9e\u7269\u5956\u54c1")):null,c?u.a.createElement("p",{className:"address-form__desc"},c):u.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),u.a.createElement(_.b,{name:"name",render:function(e){var t=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),a.name&&u.a.createElement("p",{className:"address-form__tip"},a.name))}}),u.a.createElement(_.b,{name:"phone",render:function(e){var t=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),a.phone&&u.a.createElement("p",{className:"address-form__tip"},a.phone))}}),u.a.createElement(_.b,{name:"address",render:function(e){var t=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),a.address&&u.a.createElement("p",{className:"address-form__tip"},a.address))}}),u.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(o.Component));a.a=h},735:function(e,a,t){},736:function(e,a,t){}}]);
//# sourceMappingURL=blessing-getPrize.e7b78512.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1178:function(e,a,t){},1286:function(e,a,t){"use strict";t.r(a);t(37);var n,s=t(11),r=t.n(s),c=t(20),i=t(4),l=t(7),d=t(5),m=t(8),o=t(9),u=t(0),p=t.n(u),_=(t(1178),t(628)),h=t(3),f=t(734),v=t(25),E=t(21),b=(t(35),Object(E.b)(function(e){return{uid:e.user.data.uid||""}})(n=function(e){function a(e){var t;return Object(i.a)(this,a),(t=Object(d.a)(this,Object(m.a)(a).call(this,e))).popupInstance=null,t.showAddress=function(e){var a=t.props,n=a.history,s=a.uid,r=t.state.name;e&&!s?n.push("/passport"):e&&!t.popupInstance?t.popupInstance=Object(v.h)({title:"\u606d\u559c\u60a8",content:p.a.createElement(f.a,{tip:"\u586b\u5199\u60a8\u7684\u8054\u7cfb\u65b9\u5f0f",prize:r,handleToHide:function(){return t.showAddress(!1)}})}):(t.popupInstance.close(),t.popupInstance=null)},t.state={date:"",next_date:"",name:"",is_winning:"",is_virtual:1,prize_data:[],address:!1},t}return Object(o.a)(a,e),Object(l.a)(a,[{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){var a=e.props,t=a.history;a.uid?h.d.get("".concat(API.home,"/sys/lottery_result?id=").concat(Object(h.c)("id"))).then(function(a){var t=a.data,n=t.code,s=t.msg,i=t.data;200===n?e.setState(Object(c.a)({},i.info,{prize_data:i.prize_data.slice(0,6)})):r.a.info(s)}):t.push("/passport")},300)}},{key:"render",value:function(){var e=this,a=this.state,t=a.date,n=a.next_date,s=a.name,r=a.is_winning,c=a.is_virtual,i=a.prize_data;a.address;return p.a.createElement("div",{className:"blessing_get_prize"},p.a.createElement("div",{className:"is__get_prize"},p.a.createElement("div",{className:"get_piriz__info"},p.a.createElement("div",{className:"result"},t,"\u4e2d\u5956\u7ed3\u679c"),0===r&&p.a.createElement("div",{className:"no_prize"},"\u5f88\u9057\u61be\uff0c\u4f60\u672a\u4e2d\u5956\uff5e"),1===r&&0===c&&p.a.createElement("div",{className:"real__prize"},p.a.createElement("div",null,"\u606d\u559c\u4f60\uff0c\u5df2\u62bd\u4e2d",s,"\u5956\u54c1"),p.a.createElement("span",{onClick:function(){return e.showAddress(!0)},className:"address"},"\u586b\u5199\u6536\u8d27\u5730\u5740")),1===r&&1===c&&p.a.createElement("div",{className:"virtual "},p.a.createElement("div",null,"\u606d\u559c\u4f60\u62bd\u4e2d",s,"\uff0c"),p.a.createElement("div",null,"\u5956\u54c1\u5df2\u5b58\u653e\u5230\u4f60\u7684\u8d26\u6237")))),i&&i.length>0&&p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:"current_stage"},n),p.a.createElement(_.a,{text:"\u62bd\u5956\u5df2\u5f00\u542f",styles:{margin:"16px 0 18px"}}),p.a.createElement("div",{className:"prize_list_container"},i.length>0&&i.map(function(e,a){return p.a.createElement("div",{className:"prize__item",key:a},p.a.createElement("img",{className:"prize__image",src:e.img}),p.a.createElement("div",{className:"name__num"},p.a.createElement("span",null,e.name),p.a.createElement("span",null,"\uff08","*".concat(e.num),"\uff09")))})),p.a.createElement("a",{href:"/blessingPreheat",className:"join__button"},"\u7acb\u5373\u53c2\u4e0e\u62bd\u5956"),p.a.createElement("div",{className:"prize__tip"},p.a.createElement("div",{className:"line"}),p.a.createElement("span",null,"\u4e2d\u5956\u5c0ftips"),p.a.createElement("div",{className:"line"})),p.a.createElement("div",{className:"blessing__des"},"\u79ef\u6512\u7684\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\u54e6"),p.a.createElement("a",{className:"to__preheat",href:"/invite"},"\u79ef\u6512\u66f4\u591a\u798f\u6c14\u503c")),(!i||0===i.length)&&p.a.createElement("div",{className:"active_over_container"},p.a.createElement("p",null,"AI\u5145\u7535\u8282\u8fd4\u573a\u5df2\u5f00\u542f"),p.a.createElement("p",null,"\u72c2\u6b22\u4e0d\u80fd\u505c~"),p.a.createElement("a",{href:"/blessingPreheat",className:"to_active"},"\u7acb\u5373\u67e5\u770b")))}}]),a}(u.Component))||n);a.default=b},628:function(e,a,t){"use strict";var n=t(4),s=t(7),r=t(5),c=t(8),i=t(9),l=t(0),d=t.n(l),m=t(18),o=t.n(m),u=(t(736),function(e){function a(){return Object(n.a)(this,a),Object(r.a)(this,Object(c.a)(a).apply(this,arguments))}return Object(i.a)(a,e),Object(s.a)(a,[{key:"render",value:function(){var e=this.props,a=e.text,t=e.size,n=e.styles,s=e.id,r=t?"list-header--".concat(t):"";return d.a.createElement("div",{id:s,className:o()("list-header",r),style:n},d.a.createElement("i",{className:"list-header__decorate","data-position":"left"}),a?d.a.createElement("h2",{className:"list-header__content"},a):this.props.children,d.a.createElement("i",{className:"list-header__decorate","data-position":"right"}))}}]),a}(l.Component));a.a=u},734:function(e,a,t){"use strict";var n=t(20),s=(t(37),t(11)),r=t.n(s),c=t(4),i=t(7),l=t(5),d=t(8),m=t(9),o=t(0),u=t.n(o),p=(t(40),t(3)),_=t(17),h=(t(735),function(e){function a(e){var t;return Object(c.a)(this,a),(t=Object(l.a)(this,Object(d.a)(a).call(this,e))).fetchUserAddress=function(){var e=t.state.addressInfo;p.d.get("".concat(API.home,"/sys/user_address_info")).then(function(a){var n=a.data,s=n.code,r=n.data;n.msg;200===s&&t.setState({addressInfo:Object.assign({},e,{name:r.name,phone:r.phone,address:r.address}),isLoading:!0})})},t.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.props.handleToHide;p.d.post("".concat(API.home,"/sys/collect_info"),e).then(function(e){var t=e.data,n=t.code,s=t.msg;200===n?a():r.a.info(s,2,null,!1)})},t.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},t}return Object(m.a)(a,e),Object(i.a)(a,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isLoading,s=a.addressInfo,r=this.props,c=r.tip,i=r.prize;return u.a.createElement(u.a.Fragment,null,t&&u.a.createElement(_.d,{initialValues:Object(n.a)({},s),validate:function(e){var a=e.name,t=e.phone,n=e.address,s={};return a||(s.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(t)||(s.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(s.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),s},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return u.a.createElement(_.c,{className:"address-form"},i?u.a.createElement("p",{className:"address__prize"},"\u60a8\u62bd\u4e2d\u4e86",i,u.a.createElement("span",{style:{color:"#FF4000"}},"\u5b9e\u7269\u5956\u54c1")):null,c?u.a.createElement("p",{className:"address-form__desc"},c):u.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),u.a.createElement(_.b,{name:"name",render:function(e){var t=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),a.name&&u.a.createElement("p",{className:"address-form__tip"},a.name))}}),u.a.createElement(_.b,{name:"phone",render:function(e){var t=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),a.phone&&u.a.createElement("p",{className:"address-form__tip"},a.phone))}}),u.a.createElement(_.b,{name:"address",render:function(e){var t=e.field;return u.a.createElement("div",{className:"address-form__item"},u.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),a.address&&u.a.createElement("p",{className:"address-form__tip"},a.address))}}),u.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(o.Component));a.a=h},735:function(e,a,t){},736:function(e,a,t){}}]);
//# sourceMappingURL=blessing-getPrize.3520a0c4.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/blessingGetPrize/index.js","components/blessingPreheat/listHeader/index.js","components/blessingPreheat/addressPopup/index.js"],"names":["BlessingGetPrize","connect","_ref","uid","user","data","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","call","popupInstance","showAddress","bool","_this$props","history","name","state","push","Popup","title","content","react__WEBPACK_IMPORTED_MODULE_8___default","a","createElement","_blessingPreheat_addressPopup_index__WEBPACK_IMPORTED_MODULE_12__","tip","prize","handleToHide","close","date","next_date","is_winning","is_virtual","prize_data","address","setTimeout","_this$props2","http","get","concat","API","home","getParam","then","res","_res$data","code","msg","setState","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","info","slice","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","_this2","_this$state","className","onClick","length","Fragment","_blessingPreheat_listHeader_index__WEBPACK_IMPORTED_MODULE_10__","text","styles","margin","map","item","index","key","src","img","num","href","Component","ListHeader","size","id","cls","react__WEBPACK_IMPORTED_MODULE_5___default","classnames","style","data-position","children","AddressPopup","fetchUserAddress","addressInfo","assign","phone","isLoading","handleToSubmit","params","arguments","undefined","post","_res$data2","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","formik__WEBPACK_IMPORTED_MODULE_11__","initialValues","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","validate","errors","test","validateOnBlur","validateOnChange","onSubmit","values","render","_ref2","color","_ref3","field","type","placeholder","_ref4","_ref5","data-status"],"mappings":"qQAcMA,SALLC,YAAQ,SAAAC,GAAA,MACP,CACEC,IAFKD,EAAEE,KAEGC,KAAKF,KAAO,oBAKxB,SAAAH,EAAYM,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAV,IACjBO,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAR,GAAAa,KAAAH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AAAC,EAAAC,cAAA,KAAGgC,UAAU,qBAAqB2C,EAAOb,WAKjDhE,EAAAC,EAAAC,cAACuE,EAAA,EAAD,CACE/E,KAAK,UACLyF,OAAQ,SAAAQ,GAAA,IAAGJ,EAAHI,EAAGJ,MAAH,OACNvF,EAAAC,EAAAC,cAAA,OAAKgC,UAAU,sBACblC,EAAAC,EAAAC,cAAA,QAAAnB,OAAAgF,OAAA,GACMwB,EADN,CAEErD,UAAU,oBACVsD,KAAK,OACLC,YAAY,8BAGZZ,EAAOhE,SACPb,EAAAC,EAAAC,cAAA,KAAGgC,UAAU,qBAAqB2C,EAAOhE,aAKjDb,EAAAC,EAAAC,cAAA,UACEgC,UAAU,uBACV0D,cAAY,KACZJ,KAAK,UAHP,4BA3IWtC,cAyJZU","file":"mrstatic/js/blessing-getPrize.e7b78512.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './index.scss';\nimport ListHeader from './../blessingPreheat/listHeader/index'\nimport { http, getParam } from '@/utils';\nimport { Toast } from 'antd-mobile';\nimport AddressPopup from './../blessingPreheat/addressPopup/index'\nimport { Popup } from '@/common'\nimport { connect } from 'react-redux'\nimport jsCookie from 'js-cookie'\n@connect(({user}) => (\n {\n uid: user.data.uid || ''\n }\n))\nclass BlessingGetPrize extends Component {\n popupInstance = null\n constructor(props) {\n super(props);\n this.state = {\n date: '',\n next_date: '',\n name: '',\n is_winning: \"\", //是否中奖\n is_virtual: 1, // 实物奖品 虚拟奖品\n prize_data: [],\n address: false,\n }\n }\n\n componentDidMount () {\n const _this = this;\n setTimeout(function(){\n const {history, uid} = _this.props;\n if(!uid) {\n history.push('/passport');\n }else{\n http.get(`${API.home}/sys/lottery_result?id=${getParam('id')}`).then(res => {\n const {code, msg, data} = res.data;\n if(code === 200) {\n _this.setState({\n ...data.info,\n prize_data: data.prize_data.slice(0, 6),\n })\n } else {\n Toast.info(msg);\n }\n });\n }\n }, 300);\n }\n\n showAddress = (bool) => {\n const {history, uid} = this.props;\n const {name} = this.state;\n if (bool && !uid) {\n history.push('/passport')\n } else {\n if (bool && !this.popupInstance) {\n this.popupInstance = Popup({\n title: '恭喜您',\n content: <AddressPopup tip='填写您的联系方式' prize={name} handleToHide={() => this.showAddress(false)}/>\n })\n } else {\n this.popupInstance.close()\n this.popupInstance = null\n }\n }\n }\n\n render() {\n const {date, next_date, name, is_winning, is_virtual, prize_data, address} = this.state;\n return (\n <div className=\"blessing_get_prize\">\n <div className='is__get_prize'>\n <div className=\"get_piriz__info\">\n <div className='result'>{date}中奖结果</div>\n {\n is_winning === 0 && (\n <div className='no_prize'>很遗憾,你未中奖~</div>\n )\n }\n {\n is_winning === 1 && is_virtual === 0 && (\n <div className='real__prize'>\n <div>恭喜你,已抽中{name}奖品</div>\n <span onClick={()=> this.showAddress(true)} className='address'>填写收货地址</span>\n </div>\n )\n }\n {\n is_winning === 1 && is_virtual === 1 && (\n <div className='virtual '>\n <div>恭喜你抽中{name},</div>\n <div>奖品已存放到你的账户</div>\n </div>\n )\n }\n </div>\n </div>\n \n { \n prize_data && prize_data.length > 0 && <>\n <div className='current_stage'>\n {next_date}\n </div>\n <ListHeader text=\"抽奖已开启\" styles={{margin: '16px 0 18px'}}/>\n\n <div className='prize_list_container'>\n {\n prize_data.length > 0 && prize_data.map((item, index) => {\n return (<div className='prize__item' key={index}>\n <img className='prize__image' src={item.img}></img>\n <div className='name__num'>\n <span>{item.name}</span>\n <span>({`*${item.num}`})</span>\n </div>\n </div>)\n })\n }\n </div>\n \n <a href='/blessingPreheat' className='join__button'>\n 立即参与抽奖\n </a>\n \n <div className='prize__tip'>\n <div className='line'></div>\n <span>中奖小tips</span>\n <div className='line'></div>\n </div>\n <div className='blessing__des'>积攒的福气值越高,中奖概率越大哦</div>\n <a className='to__preheat' href='/invite'>积攒更多福气值</a>\n </>\n }\n {\n (!prize_data || prize_data.length === 0) && (\n <div className=\"active_over_container\">\n <p>AI充电节返场已开启</p>\n <p>狂欢不能停~</p>\n <a href='/blessingPreheat' className='to_active'>立即查看</a>\n </div>\n )\n }\n </div>\n )\n }\n}\nexport default BlessingGetPrize","import React, { Component } from 'react';\nimport classnames from 'classnames';\nimport './index.scss';\n\nclass ListHeader extends Component {\n render() {\n const { text, size, styles, id } = this.props;\n const cls = size? `list-header--${size}` : '';\n return (\n <div id={id} className={classnames(\"list-header\", cls)} style={styles}>\n <i className=\"list-header__decorate\" data-position=\"left\"></i>\n {\n text\n ? <h2 className=\"list-header__content\">{text}</h2>\n : this.props.children\n }\n <i className=\"list-header__decorate\" data-position=\"right\"></i>\n </div>\n )\n }\n}\n\nexport default ListHeader;\n","import React, { Component } from 'react';\nimport { isEmpty } from 'lodash';\nimport { http } from '@/utils';\nimport { Formik, Form, Field } from 'formik';\nimport { Toast } from \"antd-mobile\";\nimport './index.scss';\n\nclass AddressPopup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n isLoading: false,\n addressInfo: {\n name: '',\n phone: '',\n address: '',\n },\n }\n }\n\n componentDidMount() {\n this.fetchUserAddress();\n }\n\n // 获取收货信息\n fetchUserAddress = () => {\n const { addressInfo } = this.state;\n http.get(`${API.home}/sys/user_address_info`).then(res => {\n const {code, data, msg} = res.data;\n if (code === 200) {\n this.setState({\n addressInfo: Object.assign({}, addressInfo, {\n name: data.name,\n phone: data.phone,\n address: data.address,\n }),\n isLoading: true,\n });\n }\n });\n }\n\n handleToSubmit = (params = {}) => {\n const { handleToHide } = this.props;\n http.post(`${API.home}/sys/collect_info`, params).then(res => {\n const {code, msg} = res.data;\n if (code === 200) {\n handleToHide();\n } else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { isLoading, addressInfo } = this.state;\n const {tip, prize} = this.props;\n return (\n <>\n {\n isLoading &&\n <Formik\n initialValues={{ \n ...addressInfo\n }}\n validate={({name, phone, address}) => {\n const errors = {};\n\n if (!name) {\n errors.name = '请输入收件人';\n }\n if(!/^1[3-9]\\d{9}$/.test(phone)) {\n errors.phone = '请填写正确格式的手机号';\n }\n if (!address) {\n errors.address = '请输入收货地址';\n }\n\n return errors;\n }}\n validateOnBlur={false}\n validateOnChange={false}\n onSubmit={(values) => {\n this.handleToSubmit(values);\n }}\n render={({errors}) => (\n <Form className=\"address-form\">\n {\n prize ? (\n <p className='address__prize'>您抽中了{prize}<span style={{'color': '#FF4000'}}>实物奖品</span></p>\n ) : (null)\n }\n {\n tip ? (<p className=\"address-form__desc\">{tip}</p>) : (<p className=\"address-form__desc\">请及时填写收货信息,获得实物奖品后将第一时间为您邮寄</p>) \n }\n <Field \n name=\"name\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收件人\"\n />\n {\n errors.name &&\n <p className=\"address-form__tip\">{errors.name}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"phone\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"联系方式\"\n />\n {\n errors.phone &&\n <p className=\"address-form__tip\">{errors.phone}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"address\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收货地址\"\n />\n {\n errors.address &&\n <p className=\"address-form__tip\">{errors.address}</p>\n }\n </div>\n )}\n />\n <button \n className=\"address-form__submit\" \n data-status=\"do\"\n type=\"submit\"\n >提交</button>\n </Form>\n )}\n />\n }\n </>\n );\n }\n}\n\nexport default AddressPopup;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/blessingGetPrize/index.js","components/blessingPreheat/listHeader/index.js","components/blessingPreheat/addressPopup/index.js"],"names":["BlessingGetPrize","connect","_ref","uid","user","data","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","call","popupInstance","showAddress","bool","_this$props","history","name","state","push","Popup","title","content","react__WEBPACK_IMPORTED_MODULE_8___default","a","createElement","_blessingPreheat_addressPopup_index__WEBPACK_IMPORTED_MODULE_12__","tip","prize","handleToHide","close","date","next_date","is_winning","is_virtual","prize_data","address","setTimeout","_this$props2","http","get","concat","API","home","getParam","then","res","_res$data","code","msg","setState","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","info","slice","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","_this2","_this$state","className","onClick","length","Fragment","_blessingPreheat_listHeader_index__WEBPACK_IMPORTED_MODULE_10__","text","styles","margin","map","item","index","key","src","img","num","href","Component","ListHeader","size","id","cls","react__WEBPACK_IMPORTED_MODULE_5___default","classnames","style","data-position","children","AddressPopup","fetchUserAddress","addressInfo","assign","phone","isLoading","handleToSubmit","params","arguments","undefined","post","_res$data2","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","formik__WEBPACK_IMPORTED_MODULE_11__","initialValues","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","validate","errors","test","validateOnBlur","validateOnChange","onSubmit","values","render","_ref2","color","_ref3","field","type","placeholder","_ref4","_ref5","data-status"],"mappings":"qQAcMA,SALLC,YAAQ,SAAAC,GAAA,MACP,CACEC,IAFKD,EAAEE,KAEGC,KAAKF,KAAO,oBAKxB,SAAAH,EAAYM,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAV,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OAAAgF,OAAA,GACMwB,EADN,CAEErD,UAAU,oBACVsD,KAAK,OACLC,YAAY,8BAGZZ,EAAOb,OACPhE,EAAAC,EAAAC,cAAA,KAAGgC,UAAU,qBAAqB2C,EAAOb,WAKjDhE,EAAAC,EAAAC,cAACuE,EAAA,EAAD,CACE/E,KAAK,UACLyF,OAAQ,SAAAQ,GAAA,IAAGJ,EAAHI,EAAGJ,MAAH,OACNvF,EAAAC,EAAAC,cAAA,OAAKgC,UAAU,sBACblC,EAAAC,EAAAC,cAAA,QAAAnB,OAAAgF,OAAA,GACMwB,EADN,CAEErD,UAAU,oBACVsD,KAAK,OACLC,YAAY,8BAGZZ,EAAOhE,SACPb,EAAAC,EAAAC,cAAA,KAAGgC,UAAU,qBAAqB2C,EAAOhE,aAKjDb,EAAAC,EAAAC,cAAA,UACEgC,UAAU,uBACV0D,cAAY,KACZJ,KAAK,UAHP,4BA3IWtC,cAyJZU","file":"mrstatic/js/blessing-getPrize.3520a0c4.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './index.scss';\nimport ListHeader from './../blessingPreheat/listHeader/index'\nimport { http, getParam } from '@/utils';\nimport { Toast } from 'antd-mobile';\nimport AddressPopup from './../blessingPreheat/addressPopup/index'\nimport { Popup } from '@/common'\nimport { connect } from 'react-redux'\nimport jsCookie from 'js-cookie'\n@connect(({user}) => (\n {\n uid: user.data.uid || ''\n }\n))\nclass BlessingGetPrize extends Component {\n popupInstance = null\n constructor(props) {\n super(props);\n this.state = {\n date: '',\n next_date: '',\n name: '',\n is_winning: \"\", //是否中奖\n is_virtual: 1, // 实物奖品 虚拟奖品\n prize_data: [],\n address: false,\n }\n }\n\n componentDidMount () {\n const _this = this;\n setTimeout(function(){\n const {history, uid} = _this.props;\n if(!uid) {\n history.push('/passport');\n }else{\n http.get(`${API.home}/sys/lottery_result?id=${getParam('id')}`).then(res => {\n const {code, msg, data} = res.data;\n if(code === 200) {\n _this.setState({\n ...data.info,\n prize_data: data.prize_data.slice(0, 6),\n })\n } else {\n Toast.info(msg);\n }\n });\n }\n }, 300);\n }\n\n showAddress = (bool) => {\n const {history, uid} = this.props;\n const {name} = this.state;\n if (bool && !uid) {\n history.push('/passport')\n } else {\n if (bool && !this.popupInstance) {\n this.popupInstance = Popup({\n title: '恭喜您',\n content: <AddressPopup tip='填写您的联系方式' prize={name} handleToHide={() => this.showAddress(false)}/>\n })\n } else {\n this.popupInstance.close()\n this.popupInstance = null\n }\n }\n }\n\n render() {\n const {date, next_date, name, is_winning, is_virtual, prize_data, address} = this.state;\n return (\n <div className=\"blessing_get_prize\">\n <div className='is__get_prize'>\n <div className=\"get_piriz__info\">\n <div className='result'>{date}中奖结果</div>\n {\n is_winning === 0 && (\n <div className='no_prize'>很遗憾,你未中奖~</div>\n )\n }\n {\n is_winning === 1 && is_virtual === 0 && (\n <div className='real__prize'>\n <div>恭喜你,已抽中{name}奖品</div>\n <span onClick={()=> this.showAddress(true)} className='address'>填写收货地址</span>\n </div>\n )\n }\n {\n is_winning === 1 && is_virtual === 1 && (\n <div className='virtual '>\n <div>恭喜你抽中{name},</div>\n <div>奖品已存放到你的账户</div>\n </div>\n )\n }\n </div>\n </div>\n \n { \n prize_data && prize_data.length > 0 && <>\n <div className='current_stage'>\n {next_date}\n </div>\n <ListHeader text=\"抽奖已开启\" styles={{margin: '16px 0 18px'}}/>\n\n <div className='prize_list_container'>\n {\n prize_data.length > 0 && prize_data.map((item, index) => {\n return (<div className='prize__item' key={index}>\n <img className='prize__image' src={item.img}></img>\n <div className='name__num'>\n <span>{item.name}</span>\n <span>({`*${item.num}`})</span>\n </div>\n </div>)\n })\n }\n </div>\n \n <a href='/blessingPreheat' className='join__button'>\n 立即参与抽奖\n </a>\n \n <div className='prize__tip'>\n <div className='line'></div>\n <span>中奖小tips</span>\n <div className='line'></div>\n </div>\n <div className='blessing__des'>积攒的福气值越高,中奖概率越大哦</div>\n <a className='to__preheat' href='/invite'>积攒更多福气值</a>\n </>\n }\n {\n (!prize_data || prize_data.length === 0) && (\n <div className=\"active_over_container\">\n <p>AI充电节返场已开启</p>\n <p>狂欢不能停~</p>\n <a href='/blessingPreheat' className='to_active'>立即查看</a>\n </div>\n )\n }\n </div>\n )\n }\n}\nexport default BlessingGetPrize","import React, { Component } from 'react';\nimport classnames from 'classnames';\nimport './index.scss';\n\nclass ListHeader extends Component {\n render() {\n const { text, size, styles, id } = this.props;\n const cls = size? `list-header--${size}` : '';\n return (\n <div id={id} className={classnames(\"list-header\", cls)} style={styles}>\n <i className=\"list-header__decorate\" data-position=\"left\"></i>\n {\n text\n ? <h2 className=\"list-header__content\">{text}</h2>\n : this.props.children\n }\n <i className=\"list-header__decorate\" data-position=\"right\"></i>\n </div>\n )\n }\n}\n\nexport default ListHeader;\n","import React, { Component } from 'react';\nimport { isEmpty } from 'lodash';\nimport { http } from '@/utils';\nimport { Formik, Form, Field } from 'formik';\nimport { Toast } from \"antd-mobile\";\nimport './index.scss';\n\nclass AddressPopup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n isLoading: false,\n addressInfo: {\n name: '',\n phone: '',\n address: '',\n },\n }\n }\n\n componentDidMount() {\n this.fetchUserAddress();\n }\n\n // 获取收货信息\n fetchUserAddress = () => {\n const { addressInfo } = this.state;\n http.get(`${API.home}/sys/user_address_info`).then(res => {\n const {code, data, msg} = res.data;\n if (code === 200) {\n this.setState({\n addressInfo: Object.assign({}, addressInfo, {\n name: data.name,\n phone: data.phone,\n address: data.address,\n }),\n isLoading: true,\n });\n }\n });\n }\n\n handleToSubmit = (params = {}) => {\n const { handleToHide } = this.props;\n http.post(`${API.home}/sys/collect_info`, params).then(res => {\n const {code, msg} = res.data;\n if (code === 200) {\n handleToHide();\n } else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { isLoading, addressInfo } = this.state;\n const {tip, prize} = this.props;\n return (\n <>\n {\n isLoading &&\n <Formik\n initialValues={{ \n ...addressInfo\n }}\n validate={({name, phone, address}) => {\n const errors = {};\n\n if (!name) {\n errors.name = '请输入收件人';\n }\n if(!/^1[3-9]\\d{9}$/.test(phone)) {\n errors.phone = '请填写正确格式的手机号';\n }\n if (!address) {\n errors.address = '请输入收货地址';\n }\n\n return errors;\n }}\n validateOnBlur={false}\n validateOnChange={false}\n onSubmit={(values) => {\n this.handleToSubmit(values);\n }}\n render={({errors}) => (\n <Form className=\"address-form\">\n {\n prize ? (\n <p className='address__prize'>您抽中了{prize}<span style={{'color': '#FF4000'}}>实物奖品</span></p>\n ) : (null)\n }\n {\n tip ? (<p className=\"address-form__desc\">{tip}</p>) : (<p className=\"address-form__desc\">请及时填写收货信息,获得实物奖品后将第一时间为您邮寄</p>) \n }\n <Field \n name=\"name\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收件人\"\n />\n {\n errors.name &&\n <p className=\"address-form__tip\">{errors.name}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"phone\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"联系方式\"\n />\n {\n errors.phone &&\n <p className=\"address-form__tip\">{errors.phone}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"address\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收货地址\"\n />\n {\n errors.address &&\n <p className=\"address-form__tip\">{errors.address}</p>\n }\n </div>\n )}\n />\n <button \n className=\"address-form__submit\" \n data-status=\"do\"\n type=\"submit\"\n >提交</button>\n </Form>\n )}\n />\n }\n </>\n );\n }\n}\n\nexport default AddressPopup;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{1181:function(e,a,t){},1182:function(e,a,t){},1289:function(e,a,t){"use strict";t.r(a);t(648);var n=t(649),c=t.n(n),r=(t(119),t(47)),i=t.n(r),o=(t(156),t(76)),l=t.n(o),s=(t(91),t(27)),u=t.n(s),d=(t(155),t(35)),p=t.n(d),m=(t(37),t(11)),f=t.n(m),y=t(4),h=t(7),g=t(5),b=t(8),v=t(9),E=t(74),_=(t(645),t(646)),w=t.n(_),O=t(0),x=t.n(O),P=t(3),S=t(25),j=t(14),C=(t(1181),t(64)),k=t(18),N=t.n(k),I=w.a.RadioItem,B=[];B=P.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var R=function(e){function a(e){var t;return Object(y.a)(this,a),(t=Object(g.a)(this,Object(b.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;t.state.agree&&(0===a?t.alipayPay(n):1===a&&t.weixinPay(n))},t.weixinPay=function(e){Object(P.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").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(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():f.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(E.a)(Object(E.a)(t)),a=Object(P.c)("code");if(a){if(void 0===Object(P.c)("oid"))return;P.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(P.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(P.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else f.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(E.a)(Object(E.a)(t));e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(P.c)("oid"))})},1e3)},t.onBridgeReady1=function(e){var a=Object(E.a)(Object(E.a)(t));e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){P.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):f.a.info(e.data.msg,2)})},t.changeAgreement=function(){t.setState(function(e){return{agree:!e.agree}})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(P.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[],agree:!1},t}return Object(v.a)(a,e),Object(h.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(P.c)("weixinpay")&&this.payCallback(),P.b.isWeixin&&this.isweixinPay(Object(P.c)("oid")),P.d.post("".concat(API["base-api"],"/m/deposit/detail"),{order_id:this.state.orderId}).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:[t.data.course_info],salePrice:t.data.course_info.sale_price}):f.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.salePrice,r=a.payType,o=a.checkPeriod,s=a.singleMoney,d=a.periodNumber,m=a.categoryList,f=a.agree;return x.a.createElement("div",{className:"pay-order"},x.a.createElement(S.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),x.a.createElement(p.a,{size:"sm"}),x.a.createElement("div",{className:"order-number"},x.a.createElement(l.a,null,x.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},x.a.createElement("span",null,"\u8ba2\u5355\u53f7"),x.a.createElement("span",{className:"number"},t)))),x.a.createElement(p.a,{size:"md"}),m.map(function(e,a){var t=x.a.createElement("div",{className:"order-info"},x.a.createElement("p",{className:"order-title text-overflow-one"},x.a.createElement(j.b,{to:"/detail?id=".concat(e.course_id)},e.course_title)),x.a.createElement("p",{className:"order-content text-overflow-2"},e.simpledescription),x.a.createElement("p",{className:"order-des"},x.a.createElement("span",{className:"order-newprice"},"\xa5",e.sale_price),x.a.createElement("span",{className:"price-des"},"\uff08\u9884\u4ed8\u5b9a\u91d1\uff09")));return x.a.createElement(S.j,{key:a,img:e.image_name,id:e.course_id,info:t})}),x.a.createElement(p.a,{size:"md"}),x.a.createElement("div",{className:"order-number"},x.a.createElement(l.a,null,x.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},x.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),x.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),x.a.createElement(p.a,{size:"md"}),x.a.createElement(i.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},B.map(function(a){return x.a.createElement(I,{thumb:x.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(r===a.value?"checked":"")}),key:a.value,checked:r===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?x.a.createElement(u.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},x.a.createElement(u.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},x.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),o?x.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(s,"\u5143 \xd7 ").concat(d,"\u671f")):null),x.a.createElement(u.a,{justify:"start"},x.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),x.a.createElement(u.a,null,x.a.createElement(u.a.Item,{className:"agreement"},x.a.createElement(c.a.AgreeItem,{onChange:this.changeAgreement},"\u6211\u5df2\u540c\u610f\u5b9a\u91d1\u4e0d\u9000"))),x.a.createElement("div",{className:N()(["pay-button",!f&&"invalid"]),onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"))}}]),a}(O.Component);a.default=Object(C.a)(R)},1290:function(e,a,t){"use strict";t.r(a);t(156);var n=t(76),c=t.n(n),r=(t(155),t(35)),i=t.n(r),o=t(120),l=(t(37),t(11)),s=t.n(l),u=t(4),d=t(7),p=t(5),m=t(8),f=t(9),y=t(74),h=(t(119),t(47)),g=t.n(h),b=(t(648),t(649)),v=t.n(b),E=(t(91),t(27)),_=t.n(E),w=(t(645),t(646)),O=t.n(w),x=t(0),P=t.n(x),S=t(3),j=t(25),C=t(606),k=(t(1182),t(64)),N=t(14),I=(t(162),O.a.RadioItem),B=_.a.Item;function R(e){var a=e.courses,t=e.toggleSelectedCourse;return P.a.createElement(_.a,{wrap:"wrap"},a.length&&a.map(function(e){var a=e.image_name,n=e.course_id,c=e.coupon_desc,r=e.coupon_num,i=P.a.createElement("div",{className:"info"},P.a.createElement("div",{className:"title"},e.course_title),P.a.createElement("div",{className:"des"},P.a.createElement("div",{className:"deposit-discount"},"\u5b9a\u91d1\u6298\u6263\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.deduction_amount)),0!=e.coupon_amount&&P.a.createElement("div",{className:"coupon-amount"},"\u4f7f\u7528\u4f18\u60e0\u5238\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.coupon_amount))),P.a.createElement("div",{className:"prices"},P.a.createElement("span",{className:"sale-price price"},"\xa5",e.sale_price),P.a.createElement("span",{className:"former-price"},"\xa5",e.price1)));return P.a.createElement(P.a.Fragment,{key:e.course_id},P.a.createElement(B,{className:"order-item"},P.a.createElement(_.a,{className:"select-bar",justify:"between"},P.a.createElement(B,null,P.a.createElement(v.a,{defaultChecked:!0,onChange:function(){t(e)}})),P.a.createElement(B,{className:"final-payment-hint"},"\u5f85\u4ed8\u5c3e\u6b3e")),P.a.createElement(C.a,{img:a,handleClick:function(){},info:i})),P.a.createElement("div",{className:"order-prefer"},P.a.createElement(g.a,{key:n},P.a.createElement(g.a.Item,{arrow:"horizontal",onClick:function(){}},P.a.createElement(N.b,{to:{pathname:"/coupons",search:"?id=".concat(n),state:{from:"/order"}}},P.a.createElement(_.a,{justify:"between"},P.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),P.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},c||(0===r?"\u65e0":"".concat(r,"\u5f20\u53ef\u7528")))))))))}))}var T=[];T=S.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var z=function(e){function a(e){var t;return Object(u.a)(this,a),(t=Object(p.a)(this,Object(m.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.order_id;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.submit=function(){t.createOrder().then(function(e){200==e.data.errno?t.setState({order_id:e.data.data.order_id},function(){1===e.data.data.pay_jump?t.props.history.push("/purchased"):t.pay()}):s.a.info(e.data.msg)})},t.createOrder=function(){var e=t.state,a=e.selectedCourses,n=e.salePrice,c=e.useBalance,r=(e.user_account,e.appliedMoneyOffRule);return S.d.post("".concat(API["base-api"],"/m/deposit/final/create"),{course_ids:a.map(function(e){return e.course_id}),cut_amount:r.cut_amount||0,pay_amount:n,is_deduction:c?1:0,deduction_amount:c?t.getBalanceOffset():0,plat_form:5,source:Object(S.c)("source")})},t.weixinPay=function(e){Object(S.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":S.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():s.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(y.a)(Object(y.a)(t)),a=Object(S.c)("code");if(a){if(void 0===Object(S.c)("oid"))return;S.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(S.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(S.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else s.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(y.a)(Object(y.a)(t));e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(S.c)("oid"))})},1e3)},t.alipayPay=function(e){S.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):s.a.info(e.data.msg,2)})},t.showInfo=function(){t.setState(function(e){return{info:!e.info}})},t.toggleSelectedCourse=function(e){t.setState(function(a){var n=a.selectedCourses,c=a.selectedCourses.findIndex(function(a){return a.course_id==e.course_id});-1==c?n.push(e):n.splice(c,1);var r=t.getTotalPrice(n);return{selectedCourses:n,salePrice:r,offset:t.getBalanceOffset(r)}})},t.getTotalPrice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.courses,n=void 0===a?t.state.selectedCourses:a,c=e.useBalance,r=void 0===c?t.state.useBalance:c,i=e.moneyOffRules,o=void 0===i?t.state.moneyOffRules:i,l=t.getOriginTotalPrice({courses:n});return l=t.moneyOff(l,o),r&&(l-=parseFloat(t.state.user_account)),l<0?0:l.toFixed(2)},t.moneyOff=function(e){for(var a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.moneyOffRules).sort(function(e,a){return a.full_amount-e.full_amount}),n=parseFloat(e),c=0;c<a.length;c++){var r=a[c];if(n>=r.full_amount)return t.setState({appliedMoneyOffRule:r}),n-parseFloat(r.cut_amount)}return n},t.useBalance=function(){t.setState(function(e){var a=!e.useBalance,n=t.getTotalPrice({useBalance:a});return{useBalance:a,salePrice:n,offset:t.getBalanceOffset(n)}})},t.getOriginTotalPrice=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).courses;return(void 0===e?t.state.selectedCourses:e).reduce(function(e,a){return e+parseFloat(a.sale_price)},0)},t.getBalanceOffset=function(){var e=t.getOriginTotalPrice(),a=t.moneyOff(e),n=parseFloat(t.state.user_account)-parseFloat(a);return n=n>=0?a:t.state.user_account},t.state={pay_amount:0,payType:1,stageNumber:0,orderId:Object(S.c)("oid"),categoryList:[],selectedCourses:[],salePrice:"",user_account:"",useBalance:!1,info:!1,order_id:"",moneyOffRules:[],finalEndTime:"",offset:0,appliedMoneyOffRule:{}},t}return Object(f.a)(a,e),Object(d.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(S.c)("weixinpay")&&this.payCallback(),S.b.isWeixin&&this.isweixinPay(Object(S.c)("oid")),S.d.get("".concat(API["base-api"],"/m/deposit/final/preorder")).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:Object(o.a)(t.data.courses),salePrice:e.getTotalPrice({courses:Object(o.a)(t.data.courses),moneyOffRules:t.data.full_rule}),selectedCourses:Object(o.a)(t.data.courses),user_account:t.data.user_account,moneyOffRules:t.data.full_rule,finalEndTime:t.data.final_end_time}):s.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=(a.orderId,a.salePrice),n=a.payType,r=a.categoryList,o=a.user_account,l=a.useBalance,s=a.info,u=a.finalEndTime,d=a.offset,p=a.appliedMoneyOffRule;return P.a.createElement("div",{className:"deposit-pay-order"},P.a.createElement(j.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),P.a.createElement(i.a,{size:"sm"}),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-list"},P.a.createElement(R,{courses:r,toggleSelectedCourse:this.toggleSelectedCourse})),P.a.createElement("div",{className:"order-balance"},P.a.createElement(g.a,null,P.a.createElement(B,{className:"order-prefer-text"},P.a.createElement(_.a,{justify:"between"},P.a.createElement(_.a,{align:"center"},P.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),P.a.createElement("span",{className:"order-balanceprice"},"(\u4f59\u989d:",P.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),P.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),P.a.createElement(_.a,null,l?P.a.createElement(P.a.Fragment,null,P.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(d)),P.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:this.useBalance})):P.a.createElement("i",{className:"circle-icon",onClick:this.useBalance})))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-number"},P.a.createElement(c.a,null,P.a.createElement(_.a,{justify:"between",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),P.a.createElement("span",{className:"money"},"\uffe5".concat(t))))),P.a.createElement(i.a,null),p.full_amount&&P.a.createElement("div",{className:"money-off"},P.a.createElement(c.a,null,P.a.createElement(_.a,{justify:"end",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u6ee1",p.full_amount,"\u51cf",p.cut_amount,"\uff1a"),P.a.createElement("span",{className:"money"},"-\uffe5".concat(p.cut_amount))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement(g.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},T.map(function(a){return P.a.createElement(I,{thumb:P.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(n===a.value?"checked":"")}),key:a.value,checked:n===a.value,onChange:function(){return e.onChange(a.value)}},a.label)})),P.a.createElement("div",{className:"pay-tip"},"".concat(u,"\u7ed3\u675f\u652f\u4ed8\u5c3e\u6b3e")),P.a.createElement("div",{className:"pay-button",onClick:this.submit},"\u786e\u8ba4\u652f\u4ed8"),s?P.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},P.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},P.a.createElement(_.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},P.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),P.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),P.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),a}(x.Component);a.default=Object(k.a)(z)},606:function(e,a,t){"use strict";var n=t(0),c=t.n(n);t(607);a.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},607:function(e,a,t){},634:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=d(t(6)),c=d(t(12)),r=d(t(15)),i=d(t(13)),o=d(t(16)),l=d(t(18)),s=d(t(668)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(n=Object.getOwnPropertySymbols(e);c<n.length;c++)a.indexOf(n[c])<0&&(t[n[c]]=e[n[c]])}return t},m=function(e){function a(){return(0,c.default)(this,a),(0,i.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,o.default)(a,e),(0,r.default)(a,[{key:"render",value:function(){var e=this.props,a=e.className,t=e.style,c=p(e,["className","style"]),r=c.prefixCls,i=c.children,o=(0,l.default)(r+"-wrapper",a);"class"in c&&delete c.class;var d=u.createElement("label",{className:o,style:t},u.createElement(s.default,(0,n.default)({},c,{type:"radio"})),i);return this.props.wrapLabel?d:u.createElement(s.default,(0,n.default)({},this.props,{type:"radio"}))}}]),a}(u.Component);a.default=m,m.defaultProps={prefixCls:"am-radio",wrapLabel:!0},e.exports=a.default},645:function(e,a,t){"use strict";t(49),t(119),t(679)},646:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=r(t(634)),c=r(t(686));function r(e){return e&&e.__esModule?e:{default:e}}n.default.RadioItem=c.default,a.default=n.default,e.exports=a.default},679:function(e,a,t){},686:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=m(t(6)),c=m(t(34)),r=m(t(12)),i=m(t(15)),o=m(t(13)),l=m(t(16)),s=m(t(18)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0)),d=m(t(47)),p=m(t(634));function m(e){return e&&e.__esModule?e:{default:e}}var f=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(n=Object.getOwnPropertySymbols(e);c<n.length;c++)a.indexOf(n[c])<0&&(t[n[c]]=e[n[c]])}return t},y=d.default.Item;function h(){}var g=function(e){function a(){return(0,r.default)(this,a),(0,o.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,l.default)(a,e),(0,i.default)(a,[{key:"render",value:function(){var e=this,a=this.props,t=a.listPrefixCls,r=(a.onChange,a.disabled),i=a.radioProps,o=a.onClick,l=f(a,["listPrefixCls","onChange","disabled","radioProps","onClick"]),d=l.prefixCls,m=l.className,g=l.children,b=(0,s.default)(d+"-item",m,(0,c.default)({},d+"-item-disabled",!0===r));r||(l.onClick=o||h);var v={};return["name","defaultChecked","checked","onChange","disabled"].forEach(function(a){a in e.props&&(v[a]=e.props[a])}),u.createElement(y,(0,n.default)({},l,{prefixCls:t,className:b,extra:u.createElement(p.default,(0,n.default)({},i,v))}),g)}}]),a}(u.Component);a.default=g,g.defaultProps={prefixCls:"am-radio",listPrefixCls:"am-list",radioProps:{}},e.exports=a.default}}]);
//# sourceMappingURL=deposit-pay-order.ba2d9956.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{1181:function(e,a,t){},1182:function(e,a,t){},1289:function(e,a,t){"use strict";t.r(a);t(648);var n=t(649),c=t.n(n),r=(t(119),t(47)),i=t.n(r),o=(t(156),t(76)),l=t.n(o),s=(t(91),t(27)),u=t.n(s),d=(t(155),t(36)),p=t.n(d),m=(t(37),t(11)),f=t.n(m),y=t(4),h=t(7),g=t(5),b=t(8),v=t(9),E=t(74),_=(t(645),t(646)),w=t.n(_),O=t(0),x=t.n(O),P=t(3),S=t(25),j=t(14),C=(t(1181),t(64)),k=t(18),N=t.n(k),I=w.a.RadioItem,B=[];B=P.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var R=function(e){function a(e){var t;return Object(y.a)(this,a),(t=Object(g.a)(this,Object(b.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;t.state.agree&&(0===a?t.alipayPay(n):1===a&&t.weixinPay(n))},t.weixinPay=function(e){Object(P.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").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(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():f.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(E.a)(Object(E.a)(t)),a=Object(P.c)("code");if(a){if(void 0===Object(P.c)("oid"))return;P.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(P.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(P.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else f.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(E.a)(Object(E.a)(t));e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(P.c)("oid"))})},1e3)},t.onBridgeReady1=function(e){var a=Object(E.a)(Object(E.a)(t));e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){P.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):f.a.info(e.data.msg,2)})},t.changeAgreement=function(){t.setState(function(e){return{agree:!e.agree}})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(P.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[],agree:!1},t}return Object(v.a)(a,e),Object(h.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(P.c)("weixinpay")&&this.payCallback(),P.b.isWeixin&&this.isweixinPay(Object(P.c)("oid")),P.d.post("".concat(API["base-api"],"/m/deposit/detail"),{order_id:this.state.orderId}).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:[t.data.course_info],salePrice:t.data.course_info.sale_price}):f.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.salePrice,r=a.payType,o=a.checkPeriod,s=a.singleMoney,d=a.periodNumber,m=a.categoryList,f=a.agree;return x.a.createElement("div",{className:"pay-order"},x.a.createElement(S.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),x.a.createElement(p.a,{size:"sm"}),x.a.createElement("div",{className:"order-number"},x.a.createElement(l.a,null,x.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},x.a.createElement("span",null,"\u8ba2\u5355\u53f7"),x.a.createElement("span",{className:"number"},t)))),x.a.createElement(p.a,{size:"md"}),m.map(function(e,a){var t=x.a.createElement("div",{className:"order-info"},x.a.createElement("p",{className:"order-title text-overflow-one"},x.a.createElement(j.b,{to:"/detail?id=".concat(e.course_id)},e.course_title)),x.a.createElement("p",{className:"order-content text-overflow-2"},e.simpledescription),x.a.createElement("p",{className:"order-des"},x.a.createElement("span",{className:"order-newprice"},"\xa5",e.sale_price),x.a.createElement("span",{className:"price-des"},"\uff08\u9884\u4ed8\u5b9a\u91d1\uff09")));return x.a.createElement(S.j,{key:a,img:e.image_name,id:e.course_id,info:t})}),x.a.createElement(p.a,{size:"md"}),x.a.createElement("div",{className:"order-number"},x.a.createElement(l.a,null,x.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},x.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),x.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),x.a.createElement(p.a,{size:"md"}),x.a.createElement(i.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},B.map(function(a){return x.a.createElement(I,{thumb:x.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(r===a.value?"checked":"")}),key:a.value,checked:r===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?x.a.createElement(u.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},x.a.createElement(u.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},x.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),o?x.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(s,"\u5143 \xd7 ").concat(d,"\u671f")):null),x.a.createElement(u.a,{justify:"start"},x.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),x.a.createElement(u.a,null,x.a.createElement(u.a.Item,{className:"agreement"},x.a.createElement(c.a.AgreeItem,{onChange:this.changeAgreement},"\u6211\u5df2\u540c\u610f\u5b9a\u91d1\u4e0d\u9000"))),x.a.createElement("div",{className:N()(["pay-button",!f&&"invalid"]),onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"))}}]),a}(O.Component);a.default=Object(C.a)(R)},1290:function(e,a,t){"use strict";t.r(a);t(156);var n=t(76),c=t.n(n),r=(t(155),t(36)),i=t.n(r),o=t(120),l=(t(37),t(11)),s=t.n(l),u=t(4),d=t(7),p=t(5),m=t(8),f=t(9),y=t(74),h=(t(119),t(47)),g=t.n(h),b=(t(648),t(649)),v=t.n(b),E=(t(91),t(27)),_=t.n(E),w=(t(645),t(646)),O=t.n(w),x=t(0),P=t.n(x),S=t(3),j=t(25),C=t(606),k=(t(1182),t(64)),N=t(14),I=(t(162),O.a.RadioItem),B=_.a.Item;function R(e){var a=e.courses,t=e.toggleSelectedCourse;return P.a.createElement(_.a,{wrap:"wrap"},a.length&&a.map(function(e){var a=e.image_name,n=e.course_id,c=e.coupon_desc,r=e.coupon_num,i=P.a.createElement("div",{className:"info"},P.a.createElement("div",{className:"title"},e.course_title),P.a.createElement("div",{className:"des"},P.a.createElement("div",{className:"deposit-discount"},"\u5b9a\u91d1\u6298\u6263\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.deduction_amount)),0!=e.coupon_amount&&P.a.createElement("div",{className:"coupon-amount"},"\u4f7f\u7528\u4f18\u60e0\u5238\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.coupon_amount))),P.a.createElement("div",{className:"prices"},P.a.createElement("span",{className:"sale-price price"},"\xa5",e.sale_price),P.a.createElement("span",{className:"former-price"},"\xa5",e.price1)));return P.a.createElement(P.a.Fragment,{key:e.course_id},P.a.createElement(B,{className:"order-item"},P.a.createElement(_.a,{className:"select-bar",justify:"between"},P.a.createElement(B,null,P.a.createElement(v.a,{defaultChecked:!0,onChange:function(){t(e)}})),P.a.createElement(B,{className:"final-payment-hint"},"\u5f85\u4ed8\u5c3e\u6b3e")),P.a.createElement(C.a,{img:a,handleClick:function(){},info:i})),P.a.createElement("div",{className:"order-prefer"},P.a.createElement(g.a,{key:n},P.a.createElement(g.a.Item,{arrow:"horizontal",onClick:function(){}},P.a.createElement(N.b,{to:{pathname:"/coupons",search:"?id=".concat(n),state:{from:"/order"}}},P.a.createElement(_.a,{justify:"between"},P.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),P.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},c||(0===r?"\u65e0":"".concat(r,"\u5f20\u53ef\u7528")))))))))}))}var T=[];T=S.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var z=function(e){function a(e){var t;return Object(u.a)(this,a),(t=Object(p.a)(this,Object(m.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.order_id;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.submit=function(){t.createOrder().then(function(e){200==e.data.errno?t.setState({order_id:e.data.data.order_id},function(){1===e.data.data.pay_jump?t.props.history.push("/purchased"):t.pay()}):s.a.info(e.data.msg)})},t.createOrder=function(){var e=t.state,a=e.selectedCourses,n=e.salePrice,c=e.useBalance,r=(e.user_account,e.appliedMoneyOffRule);return S.d.post("".concat(API["base-api"],"/m/deposit/final/create"),{course_ids:a.map(function(e){return e.course_id}),cut_amount:r.cut_amount||0,pay_amount:n,is_deduction:c?1:0,deduction_amount:c?t.getBalanceOffset():0,plat_form:5,source:Object(S.c)("source")})},t.weixinPay=function(e){Object(S.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":S.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():s.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(y.a)(Object(y.a)(t)),a=Object(S.c)("code");if(a){if(void 0===Object(S.c)("oid"))return;S.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(S.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(S.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else s.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(y.a)(Object(y.a)(t));e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(S.c)("oid"))})},1e3)},t.alipayPay=function(e){S.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):s.a.info(e.data.msg,2)})},t.showInfo=function(){t.setState(function(e){return{info:!e.info}})},t.toggleSelectedCourse=function(e){t.setState(function(a){var n=a.selectedCourses,c=a.selectedCourses.findIndex(function(a){return a.course_id==e.course_id});-1==c?n.push(e):n.splice(c,1);var r=t.getTotalPrice(n);return{selectedCourses:n,salePrice:r,offset:t.getBalanceOffset(r)}})},t.getTotalPrice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.courses,n=void 0===a?t.state.selectedCourses:a,c=e.useBalance,r=void 0===c?t.state.useBalance:c,i=e.moneyOffRules,o=void 0===i?t.state.moneyOffRules:i,l=t.getOriginTotalPrice({courses:n});return l=t.moneyOff(l,o),r&&(l-=parseFloat(t.state.user_account)),l<0?0:l.toFixed(2)},t.moneyOff=function(e){for(var a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.moneyOffRules).sort(function(e,a){return a.full_amount-e.full_amount}),n=parseFloat(e),c=0;c<a.length;c++){var r=a[c];if(n>=r.full_amount)return t.setState({appliedMoneyOffRule:r}),n-parseFloat(r.cut_amount)}return n},t.useBalance=function(){t.setState(function(e){var a=!e.useBalance,n=t.getTotalPrice({useBalance:a});return{useBalance:a,salePrice:n,offset:t.getBalanceOffset(n)}})},t.getOriginTotalPrice=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).courses;return(void 0===e?t.state.selectedCourses:e).reduce(function(e,a){return e+parseFloat(a.sale_price)},0)},t.getBalanceOffset=function(){var e=t.getOriginTotalPrice(),a=t.moneyOff(e),n=parseFloat(t.state.user_account)-parseFloat(a);return n=n>=0?a:t.state.user_account},t.state={pay_amount:0,payType:1,stageNumber:0,orderId:Object(S.c)("oid"),categoryList:[],selectedCourses:[],salePrice:"",user_account:"",useBalance:!1,info:!1,order_id:"",moneyOffRules:[],finalEndTime:"",offset:0,appliedMoneyOffRule:{}},t}return Object(f.a)(a,e),Object(d.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(S.c)("weixinpay")&&this.payCallback(),S.b.isWeixin&&this.isweixinPay(Object(S.c)("oid")),S.d.get("".concat(API["base-api"],"/m/deposit/final/preorder")).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:Object(o.a)(t.data.courses),salePrice:e.getTotalPrice({courses:Object(o.a)(t.data.courses),moneyOffRules:t.data.full_rule}),selectedCourses:Object(o.a)(t.data.courses),user_account:t.data.user_account,moneyOffRules:t.data.full_rule,finalEndTime:t.data.final_end_time}):s.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=(a.orderId,a.salePrice),n=a.payType,r=a.categoryList,o=a.user_account,l=a.useBalance,s=a.info,u=a.finalEndTime,d=a.offset,p=a.appliedMoneyOffRule;return P.a.createElement("div",{className:"deposit-pay-order"},P.a.createElement(j.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),P.a.createElement(i.a,{size:"sm"}),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-list"},P.a.createElement(R,{courses:r,toggleSelectedCourse:this.toggleSelectedCourse})),P.a.createElement("div",{className:"order-balance"},P.a.createElement(g.a,null,P.a.createElement(B,{className:"order-prefer-text"},P.a.createElement(_.a,{justify:"between"},P.a.createElement(_.a,{align:"center"},P.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),P.a.createElement("span",{className:"order-balanceprice"},"(\u4f59\u989d:",P.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),P.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),P.a.createElement(_.a,null,l?P.a.createElement(P.a.Fragment,null,P.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(d)),P.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:this.useBalance})):P.a.createElement("i",{className:"circle-icon",onClick:this.useBalance})))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-number"},P.a.createElement(c.a,null,P.a.createElement(_.a,{justify:"between",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),P.a.createElement("span",{className:"money"},"\uffe5".concat(t))))),P.a.createElement(i.a,null),p.full_amount&&P.a.createElement("div",{className:"money-off"},P.a.createElement(c.a,null,P.a.createElement(_.a,{justify:"end",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u6ee1",p.full_amount,"\u51cf",p.cut_amount,"\uff1a"),P.a.createElement("span",{className:"money"},"-\uffe5".concat(p.cut_amount))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement(g.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},T.map(function(a){return P.a.createElement(I,{thumb:P.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(n===a.value?"checked":"")}),key:a.value,checked:n===a.value,onChange:function(){return e.onChange(a.value)}},a.label)})),P.a.createElement("div",{className:"pay-tip"},"".concat(u,"\u7ed3\u675f\u652f\u4ed8\u5c3e\u6b3e")),P.a.createElement("div",{className:"pay-button",onClick:this.submit},"\u786e\u8ba4\u652f\u4ed8"),s?P.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},P.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},P.a.createElement(_.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},P.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),P.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),P.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),a}(x.Component);a.default=Object(k.a)(z)},606:function(e,a,t){"use strict";var n=t(0),c=t.n(n);t(607);a.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},607:function(e,a,t){},634:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=d(t(6)),c=d(t(12)),r=d(t(15)),i=d(t(13)),o=d(t(16)),l=d(t(18)),s=d(t(668)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(n=Object.getOwnPropertySymbols(e);c<n.length;c++)a.indexOf(n[c])<0&&(t[n[c]]=e[n[c]])}return t},m=function(e){function a(){return(0,c.default)(this,a),(0,i.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,o.default)(a,e),(0,r.default)(a,[{key:"render",value:function(){var e=this.props,a=e.className,t=e.style,c=p(e,["className","style"]),r=c.prefixCls,i=c.children,o=(0,l.default)(r+"-wrapper",a);"class"in c&&delete c.class;var d=u.createElement("label",{className:o,style:t},u.createElement(s.default,(0,n.default)({},c,{type:"radio"})),i);return this.props.wrapLabel?d:u.createElement(s.default,(0,n.default)({},this.props,{type:"radio"}))}}]),a}(u.Component);a.default=m,m.defaultProps={prefixCls:"am-radio",wrapLabel:!0},e.exports=a.default},645:function(e,a,t){"use strict";t(49),t(119),t(679)},646:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=r(t(634)),c=r(t(686));function r(e){return e&&e.__esModule?e:{default:e}}n.default.RadioItem=c.default,a.default=n.default,e.exports=a.default},679:function(e,a,t){},686:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=m(t(6)),c=m(t(34)),r=m(t(12)),i=m(t(15)),o=m(t(13)),l=m(t(16)),s=m(t(18)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0)),d=m(t(47)),p=m(t(634));function m(e){return e&&e.__esModule?e:{default:e}}var f=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(n=Object.getOwnPropertySymbols(e);c<n.length;c++)a.indexOf(n[c])<0&&(t[n[c]]=e[n[c]])}return t},y=d.default.Item;function h(){}var g=function(e){function a(){return(0,r.default)(this,a),(0,o.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,l.default)(a,e),(0,i.default)(a,[{key:"render",value:function(){var e=this,a=this.props,t=a.listPrefixCls,r=(a.onChange,a.disabled),i=a.radioProps,o=a.onClick,l=f(a,["listPrefixCls","onChange","disabled","radioProps","onClick"]),d=l.prefixCls,m=l.className,g=l.children,b=(0,s.default)(d+"-item",m,(0,c.default)({},d+"-item-disabled",!0===r));r||(l.onClick=o||h);var v={};return["name","defaultChecked","checked","onChange","disabled"].forEach(function(a){a in e.props&&(v[a]=e.props[a])}),u.createElement(y,(0,n.default)({},l,{prefixCls:t,className:b,extra:u.createElement(p.default,(0,n.default)({},i,v))}),g)}}]),a}(u.Component);a.default=g,g.defaultProps={prefixCls:"am-radio",listPrefixCls:"am-list",radioProps:{}},e.exports=a.default}}]);
//# sourceMappingURL=deposit-pay-order.021258b8.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{1183:function(e,t,a){},1186:function(e,t,a){},1246:function(e,t,a){},1247:function(e,t,a){},1318:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),c=a.n(n),i=(a(37),a(11)),s=a.n(i),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),d=a(74),p=a(0),h=a.n(p),g=(a(1183),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(25),v=a(21),y=a(737),E=a(738),f=(a(1186),a(3)),w=a(579),j=a.n(w),S=a(806),_=a(94),N=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin"),isLoading:a.props.user.isFetching},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.activity_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content","\u8fd9\u91cc\u662f\u81ea\u5b9a\u4e49\u5206\u4eab\u7684\u63cf\u8ff0");var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content","\u8fd9\u91cc\u662f\u6807\u9898");var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),f.b.isWeixin?Object(f.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||f.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(f.c)("version")?window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e,"&version=").concat(Object(f.c)("version"))):window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(d.a)(Object(d.a)(a)),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(f.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(f.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(f.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(f.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),f.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(d.a)(Object(d.a)(a)),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;f.b.isAndroidApp||f.b.isIOSApp?Object(f.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return f.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=").concat(Object(f.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/year/yearindex?version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/year/yearindex")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="AI\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u7206\u6b3e\u597d\u8bfe\uff0c300\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u9001\uff0cAI\u8fdb\u9636\u5b9d\u5178\u6765\u5c31\u9001\uff01-\u4e03\u6708\u5728\u7ebf";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading;return h.a.createElement("div",{id:"landing"},!(u&&f.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u6d3b\u52a8\u4f1a\u573a\uff0c\u4eab\u66f4\u591a\u798f\u5229\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&f.b.isWeixin?"standby":"")}),u&&f.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&f.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&f.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{size:"xl"}),h.a.createElement(S.a,{getSum:function(){}})),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(_.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(N)},1319:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),c=a.n(n),i=(a(37),a(11)),s=a.n(i),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),d=a(74),p=a(0),h=a.n(p),g=(a(1246),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(25),v=a(21),y=a(737),E=a(738),f=(a(1247),a(3)),w=a(579),j=a.n(w),S=a(94),_=a(233),N=a(235),O=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin"),isLoading:a.props.user.isFetching,modules:[]},a.getIndexData=function(){f.d.get("".concat(API.home,"/m/home")).then(function(e){if(200===e.data.code){var t=(e.data||{}).data,n=Array.isArray(t.modules)?t.modules:[];a.setState({modules:n})}else s.a.info(e.data.msg,2)})},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.treasure_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),f.b.isWeixin?Object(f.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||f.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else 520!==c&&s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(f.c)("version")?window.location.assign("https://m.julyedu.com/box/yearTreasure?id=".concat(e,"&version=").concat(Object(f.c)("version"))):window.location.assign("https://m.julyedu.com/box/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(d.a)(Object(d.a)(a)),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(f.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(f.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(f.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(f.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),f.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(d.a)(Object(d.a)(a)),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;f.b.isAndroidApp||f.b.isIOSApp?Object(f.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return f.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=").concat(Object(f.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/?version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),this.getIndexData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="AI\u5c31\u4e1a\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u62ffVIP\u5e74\u4f1a\u5458\uff0c200\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u5305\u90ae\u9001\uff01- \u4e03\u6708\u5728\u7ebf";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading,b=e.modules;return h.a.createElement("div",{id:"landing"},!(u&&f.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51\uff0c\u5b66\u4eba\u5de5\u667a\u80fd\u7cbe\u54c1\u8bfe\u7a0b\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&f.b.isWeixin?"standby":"")}),u&&f.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&f.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&f.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement("div",{className:"course-module"},h.a.createElement(_.a,{modules:b}),h.a.createElement(N.a,null)),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(S.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(O)}}]);
//# sourceMappingURL=newyear-2019-landing.b21e70e7.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{1183:function(e,t,a){},1186:function(e,t,a){},1246:function(e,t,a){},1247:function(e,t,a){},1318:function(e,t,a){"use strict";a.r(t);a(155);var n=a(36),c=a.n(n),i=(a(37),a(11)),s=a.n(i),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),d=a(74),p=a(0),h=a.n(p),g=(a(1183),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(25),v=a(21),y=a(737),E=a(738),f=(a(1186),a(3)),w=a(579),j=a.n(w),S=a(806),_=a(94),N=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin"),isLoading:a.props.user.isFetching},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.activity_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content","\u8fd9\u91cc\u662f\u81ea\u5b9a\u4e49\u5206\u4eab\u7684\u63cf\u8ff0");var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content","\u8fd9\u91cc\u662f\u6807\u9898");var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),f.b.isWeixin?Object(f.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||f.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(f.c)("version")?window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e,"&version=").concat(Object(f.c)("version"))):window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(d.a)(Object(d.a)(a)),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(f.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(f.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(f.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(f.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),f.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(d.a)(Object(d.a)(a)),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;f.b.isAndroidApp||f.b.isIOSApp?Object(f.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return f.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=").concat(Object(f.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/year/yearindex?version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/year/yearindex")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="AI\u5145\u7535\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u7206\u6b3e\u597d\u8bfe\uff0c300\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u9001\uff0cAI\u8fdb\u9636\u5b9d\u5178\u6765\u5c31\u9001\uff01-\u4e03\u6708\u5728\u7ebf";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading;return h.a.createElement("div",{id:"landing"},!(u&&f.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u6d3b\u52a8\u4f1a\u573a\uff0c\u4eab\u66f4\u591a\u798f\u5229\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&f.b.isWeixin?"standby":"")}),u&&f.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&f.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&f.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{size:"xl"}),h.a.createElement(S.a,{getSum:function(){}})),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(_.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(N)},1319:function(e,t,a){"use strict";a.r(t);a(155);var n=a(36),c=a.n(n),i=(a(37),a(11)),s=a.n(i),r=a(4),o=a(7),l=a(5),u=a(8),m=a(9),d=a(74),p=a(0),h=a.n(p),g=(a(1246),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(25),v=a(21),y=a(737),E=a(738),f=(a(1247),a(3)),w=a(579),j=a.n(w),S=a(94),_=a(233),N=a(235),O=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(f.c)("origin"),treasure_code:Object(f.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(f.c)("origin"),isLoading:a.props.user.isFetching,modules:[]},a.getIndexData=function(){f.d.get("".concat(API.home,"/m/home")).then(function(e){if(200===e.data.code){var t=(e.data||{}).data,n=Array.isArray(t.modules)?t.modules:[];a.setState({modules:n})}else s.a.info(e.data.msg,2)})},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.treasure_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(f.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),f.b.isWeixin?Object(f.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||f.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else 520!==c&&s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;f.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(f.c)("version")?window.location.assign("https://m.julyedu.com/box/yearTreasure?id=".concat(e,"&version=").concat(Object(f.c)("version"))):window.location.assign("https://m.julyedu.com/box/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(d.a)(Object(d.a)(a)),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(f.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(f.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return f.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(d.a)(Object(d.a)(a)),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(f.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(f.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;f.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),f.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(d.a)(Object(d.a)(a)),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;f.b.isAndroidApp||f.b.isIOSApp?Object(f.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(f.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(f.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return f.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(f.c)("treasure_code"),"&origin=").concat(Object(f.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(f.c)("version")?window.location.assign("https://m.julyedu.com/?version="+Object(f.c)("version")):window.location.assign("https://m.julyedu.com/")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),this.getIndexData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="AI\u5c31\u4e1a\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u62ffVIP\u5e74\u4f1a\u5458\uff0c200\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u5305\u90ae\u9001\uff01- \u4e03\u6708\u5728\u7ebf";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading,b=e.modules;return h.a.createElement("div",{id:"landing"},!(u&&f.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51\uff0c\u5b66\u4eba\u5de5\u667a\u80fd\u7cbe\u54c1\u8bfe\u7a0b\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&f.b.isWeixin?"standby":"")}),u&&f.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&f.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&f.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&f.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement("div",{className:"course-module"},h.a.createElement(_.a,{modules:b}),h.a.createElement(N.a,null)),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(S.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(O)}}]);
//# sourceMappingURL=newyear-2019-landing.5a799102.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1202:function(e,t,a){},1203:function(e,t,a){},1204:function(e,t,a){},1205:function(e,t,a){},1206:function(e,t,a){},1207:function(e,t,a){},1208:function(e,t,a){},1209:function(e,t,a){},1305:function(e,t,a){"use strict";a.r(t);var n=a(4),s=a(7),c=a(5),l=a(8),i=a(9),r=a(0),o=a.n(r),m=a(3),u=(a(37),a(11)),p=a.n(u),h=(a(1202),a(1203),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"description"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left.png",alt:""}),o.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right.png",alt:""}),o.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u4ecb / \u7ecd"),o.a.createElement("p",{className:"sub__title"},"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66+\u8bfe\u540e\u5b9e\u64cd\uff0c17\u8282\u8bfe\u5168\u9762\u638c\u63e1Python\u57fa\u7840\u8bed\u6cd5"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/diannao.png"}),this.props.list.map(function(e,t){return o.a.createElement(d,{item:e,key:t})}))}}]),t}(r.Component));function d(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"des__container"},o.a.createElement("img",{src:a,alt:""}),o.a.createElement("div",null,o.a.createElement("p",{className:"item__title"},n),o.a.createElement("p",{className:"item__sub"},s)))}a(1204);var y=function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"worry__container"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/worry_left.png",alt:""}),o.a.createElement("p",{className:"title"},"\u4f60 / \u7684 / \u62c5 / \u5fe7"),o.a.createElement("p",{className:"sub__title"},"\u5168\u65b0\u7684\u8bfe\u7a0b\u5f62\u5f0f\uff0c\u8f7b\u677e\u3001\u6709\u8da3\u7684\u8bfe\u7a0b\u5185\u5bb9\uff0c\u89e3\u9664\u4f60\u6240\u6709\u7684\u62c5\u5fe7"),this.props.list.map(function(e,t){return o.a.createElement(_,{item:e,key:t})}))}}]),t}(r.Component);function _(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"item__container"},o.a.createElement("div",{className:"head"}),o.a.createElement("img",{src:a,alt:""}),o.a.createElement("p",{className:"title"},n),o.a.createElement("p",{className:"des"},s))}a(1205);var b,g=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"study__container"},o.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),o.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u9636 / \u68af / \u5b66 / \u4e60"),o.a.createElement("p",{className:"sub__title"},"17\u8282\u8bfe\u5802\u6559\u5b66\uff0c\u5e26\u4f60\u638c\u63e1Python\u6280\u672f\u5165\u95e8\u77e5\u8bc6"),o.a.createElement("div",{className:"step__container"},o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/wanzheng.png",alt:""}),o.a.createElement("p",null,"\u5b8c\u6574\u7684Python\u57fa\u7840\u77e5\u8bc6\u4f53\u7cfb"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/siwei.png",alt:""}),o.a.createElement("p",null,"\u7075\u6d3b\u7684\u7f16\u7a0b\u601d\u7ef4\u548c\u5b9e\u64cd\u6280\u5de7"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shicao.png",alt:""}),o.a.createElement("p",null,"\u4e30\u5bcc\u6709\u8da3\u7684\u5b9e\u64cd\u8bad\u7ec3"))),o.a.createElement("div",{className:"table__container"},o.a.createElement("div",{className:"table__head"},o.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),o.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),o.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),o.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return o.a.createElement("div",{className:"item__container",key:a},o.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return o.a.createElement("div",{className:"item__content",key:t},o.a.createElement("div",{className:"content order_number number_center"},e.number),o.a.createElement("div",{className:"content chapter"},e.name),o.a.createElement("div",{className:"content points"},e.info.name))}))})),o.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?o.a.createElement("div",{onClick:function(){return e.props.hide(1)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(1)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component),E=(a(1206),function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"test_container"},o.a.createElement("p",{className:"title"},"\u8bfe / \u540e / \u5b9e / \u64cd"),o.a.createElement("p",{className:"sub_title"},"\u6db5\u76d6\u5b8c\u6574\u77e5\u8bc6\u4f53\u7cfb\uff0c\u8ba9\u4f60\u638c\u63e1\u5b9e\u7528\u9ad8\u6548\u7684\u7f16\u7a0b\u6280\u5de7"),o.a.createElement("div",{className:"table_container"},o.a.createElement("div",{className:"table_head"},o.a.createElement("span",null,"\u5e8f\u53f7"),o.a.createElement("span",null,"\u5b9e\u64cd\u9879\u76ee")),o.a.createElement("div",{className:"table_body"},this.props.practice.map(function(t,a){return o.a.createElement("div",{className:"stage-item",key:a},o.a.createElement("div",{className:"stage"},"\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5 ").concat(t.name)),t.questions.map(function(e,t){return o.a.createElement("div",{key:t,className:"line"},o.a.createElement("span",null,e.number),o.a.createElement("div",{className:"test_name"},o.a.createElement("img",{src:e.icon,alt:""}),o.a.createElement("p",null,e.name)))}))})),o.a.createElement("div",{className:"table_bottom"},this.props.allPracticeShow?o.a.createElement("div",{onClick:function(){return e.props.hide(2)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(2)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component)),j=(a(1207),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={teacherList:[{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png",name:"\u9648\u535a\u58eb",des:"\u4e03\u6708\u5728\u7ebfAI Lab\u8d1f\u8d23\u4eba\u517c\u79d1\u5b66\u5bb6\u3002\u5386\u4efb\u6d6a\u6f6e\u96c6\u56e2\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u56fd\u5bb6\u7535\u7f51\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u5e94\u7528\u65b9\u5411\u56e2\u961f\u8d1f\u8d23\u4eba\u3002\u53c2\u4e0e\u8fc7\u4e00\u56fd\u5bb6863\u9879\u76ee\uff0c\u4e14\u66fe\u4e3b\u6301\u4e00\u5c71\u4e1c\u7701\u81ea\u4e3b\u521b\u65b0\u53ca\u6210\u679c\u8f6c\u5316\u4e13\u9879\uff0c\u53d1\u660e\u4e13\u5229\u5341\u4f59\u9879\uff0c\u4e13\u4e1a\u8bba\u6587\u5341\u4f59\u7bc7\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png",name:"\u5b59\u8001\u5e08",des:"10\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u5148\u540e\u4efb\u804c\u56fd\u5185\u77e5\u540d\u4e92\u8054\u7f51\u4f01\u4e1a\uff0c\u4ece\u4e8b\u4eba\u5de5\u667a\u80fd\u65b9\u5411\u7684\u5b9e\u65bd\uff0c\u64c5\u957f\u5168\u6808\u5f00\u53d1\uff0c\u5c06\u673a\u5668\u5b66\u4e60/\u6df1\u5ea6\u5b66\u4e60\u7ed3\u5408\u5230\u5b9e\u9645\u751f\u4ea7\u8fd0\u8425\u4e2d\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher3.png",name:"\u53f2\u8001\u5e08",des:"\u8ba1\u7b97\u673a\u4e13\u4e1a\u6bd5\u4e1a\uff0c\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u719f\u6089 Python\uff0c\u719f\u6089 linux \u73af\u5883\u4e0b\u7cfb\u7edf\u7f16\u7a0b\uff0c\u5177\u6709\u591a\u5e74\u7684 Web \u540e\u7aef\u5f00\u53d1\u7ecf\u9a8c\uff0c\u6388\u8bfe\u601d\u8def\u6e05\u6670\u660e\u4e86\uff0c\u901a\u4fd7\u6613\u61c2\uff0c\u5e7d\u9ed8\u98ce\u8da3\u7684\u8bb2\u8bfe\u65b9\u5f0f\u5c06\u67af\u71e5\u7684\u77e5\u8bc6\u4ee5\u901a\u4fd7\u7684\u65b9\u5f0f\u5c55\u73b0\uff0c\u6df1\u53d7\u5b66\u751f\u597d\u8bc4\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png",name:"\u73ca\u9171",des:"\u73ed\u4e3b\u4efb\u7684\u5de5\u4f5c\u662f\u4e00\u9879\u975e\u5e38\u8f9b\u82e6\u548c\u7410\u788e\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ed8\u51fa\u8270\u8f9b\u7684\u52b3\u52a8\u548c\u8f9b\u82e6\u7684\u6c57\u6c34\u662f\u4e0d\u4f1a\u6709\u6536\u83b7\u7684\u3002\u5386\u7ecf\u6570\u4e07\u540d\u5b66\u5458\u7684\u4e00\u5bf9\u4e00\u670d\u52a1\uff0c\u59cb\u7ec8\u575a\u6301\u7ed9\u5b66\u5458\u505a\u5230\u6700\u597d\u7684\u670d\u52a1\u548c\u6700\u4e25\u683c\u7684\u8981\u6c42\uff0c\u5b66\u5458\u7684\u70b9\u6ef4\u8fdb\u6b65\u548c\u6210\u957f\u5c31\u662f\u6211\u6700\u5927\u7684\u671f\u671b\uff01"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return o.a.createElement("div",{className:"team_container"},o.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),o.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),o.a.createElement("p",{className:"sub_title"},"\u8bb2\u5e08+\u52a9\u6559+\u73ed\u4e3b\u4efb\u5168\u7a0b\u966a\u4f34\uff0c\u54ea\u91cc\u4e0d\u4f1a\u95ee\u54ea\u91cc"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"item_li"},o.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),o.a.createElement("div",{className:"item_info"},o.a.createElement("span",{className:"name"},e.name),o.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(r.Component)),f=(a(1208),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return o.a.createElement("div",{className:"experience_container"},o.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u9650\u65f6\u798f\u5229\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u5f00\u59cb\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn",onClick:a},"\u7acb\u5373\u4f53\u9a8c")):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(r.Component)),v=(a(1209),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={list:[{q:"\u8bfe\u7a0b\u5b66\u4e60\u5468\u671f\u662f\u591a\u4e45\uff1f",a:"\u6bcf\u5929\u5b66\u4e601\u5c0f\u65f6\uff0c\u8bfe\u7a0b\u91c7\u7528\u901a\u5173\u5236\u89e3\u9501\u7684\u65b9\u5f0f\uff0c\u6839\u636e\u81ea\u5df1\u7684\u65f6\u95f4\u548c\u5b66\u4e60\u901f\u5ea6\u7075\u6d3b\u8c03\u6574\u3002"},{q:"\u6211\u6ca1\u6709Python\u57fa\u7840\u53ef\u4ee5\u5b66\u4e60\u5417\uff1f",a:"\u6211\u4eec\u7684\u8bfe\u7a0b\u662f\u9762\u5411\u96f6\u57fa\u7840\u7684\u5c0f\u4f19\u4f34\u8bbe\u8ba1\u7684\uff0c\u8bfe\u7a0b\u901a\u8fc7\u6545\u4e8b\u53d9\u8ff0\u7684\u65b9\u5f0f\u7531\u6d45\u5165\u6df1\uff0c\u5c42\u5c42\u9012\u8fdb\uff0c\u5c3d\u53ef\u80fd\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u6240\u5b66\u77e5\u8bc6\uff0c\u6ca1\u6709\u4efb\u4f55\u57fa\u7840\u662f\u53ef\u4ee5\u5b66\u4e60\u7684\u3002"},{q:"\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u56f0\u96be\u600e\u4e48\u529e\uff1f",a:"\u6211\u4eec\u4e3a\u5b66\u5458\u914d\u5907\u4e86\u4e13\u95e8\u7684\u52a9\u6559\uff0c\u6709\u95ee\u9898\u968f\u65f6\u53ef\u4ee5\u54a8\u8be2\u52a9\u6559\u8001\u5e08\u3002"},{q:"\u9700\u8981\u81ea\u5df1\u5b89\u88c5\u4ee3\u7801\u8fd0\u884c\u73af\u5883\u5417\uff1f",a:"\u5728\u5e73\u53f0\u4e0a\u5b66\u4e60\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u73af\u5883\uff0c\u8be5\u8bfe\u7a0b\u5305\u542b\u7684\u77e5\u8bc6\u70b9\u5b9e\u64cd\u4ee5\u53ca\u8bfe\u540e\u5b9e\u64cd\u90fd\u53ef\u4ee5\u5728\u5e73\u53f0\u4e0a\u5b8c\u6210\u3002"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.list;return o.a.createElement("div",{className:"pro_container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),o.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"q_item"},o.a.createElement("div",{className:"q"}," ",o.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",o.a.createElement("span",null)),o.a.createElement("div",{className:"a__container"},o.a.createElement("div",null,"A\uff1a"),o.a.createElement("p",null,e.a)))})))}}]),t}(r.Component)),N=a(807),O=a(21),w=a(618);function k(e){var t=e.item,a=e.item.desInfo;return o.a.createElement("div",{className:"number_one"},o.a.createElement("img",{className:"trophy",src:t.titleUrl}),o.a.createElement("p",{className:"item__title"},t.title),o.a.createElement("p",{className:"item__subtitle",style:{width:t.subWidth}},t.subTitle),o.a.createElement("img",{style:{width:a.width,height:a.height},src:t.bottomUrl}))}var S,P=Object(O.b)(function(e){return{user:e.user}})(b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).signUp=function(){a.props.user.hasError?a.toLogin():a.toDetail()},a.tryLearn=function(){a.props.user.hasError?a.toLogin():a.toLearn()},a.toLearn=function(){var e=a.props.backwardVersion;m.d.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(m.c)("id")}).then(function(t){var n=t.data,s=n.code,c=n.msg;200==s?Object(m.c)("version")?e?p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u4f53\u9a8c",2):Object(m.a)("toLearn",Object(m.c)("id")):a.setState({toApp:!0}):p.a.info(c,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props.backwardVersion,t=Object(m.c)("id");if(Object(m.c)("version"))if(e){p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u8d2d\u4e70",2);var n=setTimeout(function(){clearTimeout(n),n=null,Object(m.a)("toPay",t)},2e3)}else Object(m.a)("toPay",t);else m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t),{simple:1}):p.a.info(e.data.msg,2)})},a.toLogin=function(){Object(m.c)("version")?Object(m.a)("toLogin"):a.props.history.push("/passport")},a.showAll=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus,allSyllabusShow:!0}),2===e&&a.setState({practice:a.state.allPractice,allPracticeShow:!0})},a.hideSome=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus.slice(0,2),allSyllabusShow:!1}),2===e&&a.setState({practice:a.state.allPractice.slice(0,2),allPracticeShow:!1})},a.getStatus=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"))).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200==n?a.setState({syllabus:s.syllabus.slice(0,2),allSyllabus:s.syllabus,practice:s.practice.slice(0,2),allPractice:s.practice,payMoney:s.course_info.price1,courseInfo:s.course_info}):p.a.info(c)})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,practice:[],allPractice:[],allPracticeShow:!1,toApp:!1,defineList:[{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/trophy.png",title:"\u6392\u540d\u7b2c1\u7684\u7f16\u7a0b\u8bed\u8a00",subTitle:"2018\u4e16\u754c\u7f16\u7a0b\u8bed\u8a00\u6392\u884c\u699c\u4e2d\uff0cPython\u6392\u540d\u7b2c1",subWidth:"180px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/program_lan.png",desInfo:{width:"240px",height:"170px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kaifa.png",title:"\u5f00\u53d1\u5feb\u901f\u3001\u7b80\u5355\u6613\u638c\u63e1",subTitle:"\u4e25\u8c28\u7684\u4ee3\u7801\u7f16\u5199\u683c\u5f0f\uff0c\u8bed\u6cd5\u683c\u5f0f\u7b80\u5355\u6613\u7406\u89e3\u5b8c\u6210\u4e00\u4e2a\u76f8\u540c\u7684\u4efb\u52a1",subWidth:"260px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kuaisu.png",desInfo:{width:"212px",height:"106px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/lingyu.png",title:"\u9002\u7528\u9886\u57df\u5e7f",subTitle:"Python\u5de5\u7a0b\u5e08\u53ef\u4ece\u4e8b\u591a\u9886\u57df\u7f16\u7a0b\u5de5\u4f5c\uff0c\u4eba\u624d\u5e74\u9700\u6c42\u589e\u957f6\u500d",subWidth:"230px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiandan.png",desInfo:{width:"234px",height:"106px"}}],desList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png",title:"\u5168\u65b0\u8bfe\u7a0b\u5f62\u5f0f",subTitle:"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66\uff0c\u8f7b\u677e\u3001\u751f\u52a8\u3001\u4e0d\u65e0\u804a"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png",title:"\u5728\u7ebf\u7f16\u7a0b\u73af\u5883",subTitle:"\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u7f16\u7a0b\u8f6f\u4ef6"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png",title:"17\u5929\u96f6\u57fa\u7840\u5165\u95e8",subTitle:"\u964d\u4f4e\u5b66\u4e60\u95e8\u69db\uff0c17\u5929\u5165\u95e8\u4eba\u5de5\u667a\u80fd"}],worryList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiechu.png",title:"\u521d\u6b21\u63a5\u89e6\uff0c\u62c5\u5fc3\u5b66\u4e0d\u4f1a",subTitle:"\u672c\u8bfe\u7a0b\u4e13\u95e8\u4e3a\u96f6\u57fa\u7840\u7684\u4f60\u6253\u9020\uff0c\u5168\u7bc7\u901a\u8fc7\u6700\u767d\u8bdd\u6c9f\u901a\u4ea4\u6d41\u7684\u65b9\u5f0f\u8fdb\u884c\u8bb2\u89e3\uff0c\u65e0\u8bba\u4f60\u6709\u65e0\u7f16\u7a0b\u7ecf\u9a8c\u90fd\u53ef\u4ee5\u8f7b\u677e\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xuexi.png",title:"\u60f3\u5b66\u4e60\uff0c\u6ca1\u6709\u575a\u6301\u4e0b\u6765",subTitle:"\u4ee5\u6545\u4e8b\u6027\u7684\u65b9\u5f0f\u7f16\u5199\u5b66\u4e60\u5185\u5bb9\uff0c \u628a\u751f\u786c\u7684\u77e5\u8bc6\u70b9\u6709\u8da3\u5316\u3002\u7cbe\u7f8e\u7684\u56fe\u7247+\u5e7d\u9ed8\u7684\u6587\u5b57+\u4ee3\u7801\u7f16\u5199\u8ba9\u4f60\u8d8a\u5b66\u8d8a\u60f3\u5b66\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhishidian.png",title:"\u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u4e0d\u77e5\u5982\u4f55\u8fd0\u7528",subTitle:"\u6bcf\u8282\u8bfe\u7684\u77e5\u8bc6\u70b9\u90fd\u8bbe\u6709\u4ee3\u7801\u7f16\u5199\u90e8\u5206\uff0c\u6bcf\u8282\u8bfe\u8bfe\u540e\u90fd\u6709\u8bfe\u540e\u5b9e\u64cd\u3002\u6709\u591a\u6b21\u4ee3\u7801\u7f16\u5199\u7ec3\u4e60\u7684\u673a\u4f1a\uff0c\u52a9\u4f60\u771f\u6b63\u5b66\u4ee5\u81f4\u7528\u3002"}],payMoney:0,isOnline:!0,courseInfo:{}},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u5b66\u4e60",2)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getStatus(),!1)}},{key:"render",value:function(){var e=this.state,t=e.defineList,a=e.desList,n=e.worryList,s=e.syllabus,c=e.practice,l=e.allSyllabusShow,i=e.allPracticeShow,r=e.toApp,m=e.payMoney,u=e.isOnline,p=e.courseInfo;return console.log(p),o.a.createElement("div",{className:"python__des"},o.a.createElement("div",{className:"des__start"}),!!p.is_dist&&o.a.createElement(w.a,{courseInfo:p}),o.a.createElement("div",{className:"python__define"},o.a.createElement("img",{className:"left__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png"}),o.a.createElement("img",{className:"right__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png"}),o.a.createElement("p",{className:"define__title"},"\u4ec0 / \u4e48 / \u662f / Python"),t.map(function(e,t){return o.a.createElement(k,{item:e,key:t})})),o.a.createElement("div",{className:"course__introduce"}),u?o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("div",{className:"course__price"},o.a.createElement("div",{className:"money"},m,o.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),o.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",o.a.createElement("div",{className:"triangle"}))),o.a.createElement("div",{className:"btn__group"},o.a.createElement("div",{className:"try__study",onClick:this.tryLearn},"\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("div",{className:"sign__now",onClick:this.signUp},"\u7acb\u5373\u62a5\u540d"))):o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),o.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),o.a.createElement(h,{list:a}),o.a.createElement(y,{list:n}),o.a.createElement(g,{syllabus:s,allSyllabusShow:l,show:this.showAll,hide:this.hideSome}),o.a.createElement(E,{practice:c,allPracticeShow:i,show:this.showAll,hide:this.hideSome}),o.a.createElement(j,null),o.a.createElement(f,{tryLearn:this.tryLearn,isOnline:u}),o.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/changjian.png",alt:""}),o.a.createElement(v,null),r&&o.a.createElement(N.a,{type:1,closePop:this.closePop}))}}]),t}(r.Component))||b,C=a(1211),L=a(52),x=a(36),A=a.n(x),I=a(26),U=Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:I.g,startFetchUser:I.h})(S=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.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(L.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){A.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),A.a.get("token")&&A.a.get("uid")&&(a.setState({isAppUpdate:!0}),a.fetchCourseInfo()),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.fetchCourseInfo=function(){var e=Object(m.c)("id");m.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(t){var n=t.data,s=n.data;if(200===n.code){var c=Object(m.c)("version");if(c)if(c=c.replace(/\./g,"").slice(0,3),m.b.isAndroidApp&&c<453)a.setState({backwardVersion:!0,isPay:0});else if(m.b.isIOSApp&&c<380)a.setState({backwardVersion:!0,isPay:0});else{if(1===s.course_info.is_pay)return void Object(m.a)("toSyllabusChapter",e);a.setState({backwardVersion:!1,isPay:s.course_info.is_pay})}else a.setState({backwardVersion:!1,isPay:s.course_info.is_pay})}})},a.state={isPay:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){document.title="Python\u4eba\u5de5\u667a\u80fd [P1\u7ea7\uff0c\u9a70\u63f4\u6b66\u6c49 \u672c\u56fe\u6587\u5c0f\u8bfe\u6ce8\u518c\u5373\u9001] - \u4e03\u6708\u5728\u7ebf";var e=this;this.fetchCourseInfo(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.isAppUpdate,n=e.backwardVersion;return o.a.createElement("div",null,0===t&&o.a.createElement(P,{backwardVersion:n,history:this.props.history,isAppUpdate:a,isPay:t}),1===t&&!Object(m.c)("version")&&o.a.createElement(C.default,{isAppUpdate:a}))}}]),t}(r.Component))||S;t.default=U}}]);
//# sourceMappingURL=python-class.6cf6e65b.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1202:function(e,t,a){},1203:function(e,t,a){},1204:function(e,t,a){},1205:function(e,t,a){},1206:function(e,t,a){},1207:function(e,t,a){},1208:function(e,t,a){},1209:function(e,t,a){},1305:function(e,t,a){"use strict";a.r(t);var n=a(4),s=a(7),c=a(5),l=a(8),i=a(9),r=a(0),o=a.n(r),m=a(3),u=(a(37),a(11)),p=a.n(u),h=(a(1202),a(1203),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"description"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left.png",alt:""}),o.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right.png",alt:""}),o.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u4ecb / \u7ecd"),o.a.createElement("p",{className:"sub__title"},"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66+\u8bfe\u540e\u5b9e\u64cd\uff0c17\u8282\u8bfe\u5168\u9762\u638c\u63e1Python\u57fa\u7840\u8bed\u6cd5"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/diannao.png"}),this.props.list.map(function(e,t){return o.a.createElement(d,{item:e,key:t})}))}}]),t}(r.Component));function d(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"des__container"},o.a.createElement("img",{src:a,alt:""}),o.a.createElement("div",null,o.a.createElement("p",{className:"item__title"},n),o.a.createElement("p",{className:"item__sub"},s)))}a(1204);var y=function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"worry__container"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/worry_left.png",alt:""}),o.a.createElement("p",{className:"title"},"\u4f60 / \u7684 / \u62c5 / \u5fe7"),o.a.createElement("p",{className:"sub__title"},"\u5168\u65b0\u7684\u8bfe\u7a0b\u5f62\u5f0f\uff0c\u8f7b\u677e\u3001\u6709\u8da3\u7684\u8bfe\u7a0b\u5185\u5bb9\uff0c\u89e3\u9664\u4f60\u6240\u6709\u7684\u62c5\u5fe7"),this.props.list.map(function(e,t){return o.a.createElement(_,{item:e,key:t})}))}}]),t}(r.Component);function _(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"item__container"},o.a.createElement("div",{className:"head"}),o.a.createElement("img",{src:a,alt:""}),o.a.createElement("p",{className:"title"},n),o.a.createElement("p",{className:"des"},s))}a(1205);var b,g=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"study__container"},o.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),o.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u9636 / \u68af / \u5b66 / \u4e60"),o.a.createElement("p",{className:"sub__title"},"17\u8282\u8bfe\u5802\u6559\u5b66\uff0c\u5e26\u4f60\u638c\u63e1Python\u6280\u672f\u5165\u95e8\u77e5\u8bc6"),o.a.createElement("div",{className:"step__container"},o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/wanzheng.png",alt:""}),o.a.createElement("p",null,"\u5b8c\u6574\u7684Python\u57fa\u7840\u77e5\u8bc6\u4f53\u7cfb"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/siwei.png",alt:""}),o.a.createElement("p",null,"\u7075\u6d3b\u7684\u7f16\u7a0b\u601d\u7ef4\u548c\u5b9e\u64cd\u6280\u5de7"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shicao.png",alt:""}),o.a.createElement("p",null,"\u4e30\u5bcc\u6709\u8da3\u7684\u5b9e\u64cd\u8bad\u7ec3"))),o.a.createElement("div",{className:"table__container"},o.a.createElement("div",{className:"table__head"},o.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),o.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),o.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),o.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return o.a.createElement("div",{className:"item__container",key:a},o.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return o.a.createElement("div",{className:"item__content",key:t},o.a.createElement("div",{className:"content order_number number_center"},e.number),o.a.createElement("div",{className:"content chapter"},e.name),o.a.createElement("div",{className:"content points"},e.info.name))}))})),o.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?o.a.createElement("div",{onClick:function(){return e.props.hide(1)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(1)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component),E=(a(1206),function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"test_container"},o.a.createElement("p",{className:"title"},"\u8bfe / \u540e / \u5b9e / \u64cd"),o.a.createElement("p",{className:"sub_title"},"\u6db5\u76d6\u5b8c\u6574\u77e5\u8bc6\u4f53\u7cfb\uff0c\u8ba9\u4f60\u638c\u63e1\u5b9e\u7528\u9ad8\u6548\u7684\u7f16\u7a0b\u6280\u5de7"),o.a.createElement("div",{className:"table_container"},o.a.createElement("div",{className:"table_head"},o.a.createElement("span",null,"\u5e8f\u53f7"),o.a.createElement("span",null,"\u5b9e\u64cd\u9879\u76ee")),o.a.createElement("div",{className:"table_body"},this.props.practice.map(function(t,a){return o.a.createElement("div",{className:"stage-item",key:a},o.a.createElement("div",{className:"stage"},"\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5 ").concat(t.name)),t.questions.map(function(e,t){return o.a.createElement("div",{key:t,className:"line"},o.a.createElement("span",null,e.number),o.a.createElement("div",{className:"test_name"},o.a.createElement("img",{src:e.icon,alt:""}),o.a.createElement("p",null,e.name)))}))})),o.a.createElement("div",{className:"table_bottom"},this.props.allPracticeShow?o.a.createElement("div",{onClick:function(){return e.props.hide(2)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(2)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component)),j=(a(1207),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={teacherList:[{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png",name:"\u9648\u535a\u58eb",des:"\u4e03\u6708\u5728\u7ebfAI Lab\u8d1f\u8d23\u4eba\u517c\u79d1\u5b66\u5bb6\u3002\u5386\u4efb\u6d6a\u6f6e\u96c6\u56e2\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u56fd\u5bb6\u7535\u7f51\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u5e94\u7528\u65b9\u5411\u56e2\u961f\u8d1f\u8d23\u4eba\u3002\u53c2\u4e0e\u8fc7\u4e00\u56fd\u5bb6863\u9879\u76ee\uff0c\u4e14\u66fe\u4e3b\u6301\u4e00\u5c71\u4e1c\u7701\u81ea\u4e3b\u521b\u65b0\u53ca\u6210\u679c\u8f6c\u5316\u4e13\u9879\uff0c\u53d1\u660e\u4e13\u5229\u5341\u4f59\u9879\uff0c\u4e13\u4e1a\u8bba\u6587\u5341\u4f59\u7bc7\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png",name:"\u5b59\u8001\u5e08",des:"10\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u5148\u540e\u4efb\u804c\u56fd\u5185\u77e5\u540d\u4e92\u8054\u7f51\u4f01\u4e1a\uff0c\u4ece\u4e8b\u4eba\u5de5\u667a\u80fd\u65b9\u5411\u7684\u5b9e\u65bd\uff0c\u64c5\u957f\u5168\u6808\u5f00\u53d1\uff0c\u5c06\u673a\u5668\u5b66\u4e60/\u6df1\u5ea6\u5b66\u4e60\u7ed3\u5408\u5230\u5b9e\u9645\u751f\u4ea7\u8fd0\u8425\u4e2d\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher3.png",name:"\u53f2\u8001\u5e08",des:"\u8ba1\u7b97\u673a\u4e13\u4e1a\u6bd5\u4e1a\uff0c\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u719f\u6089 Python\uff0c\u719f\u6089 linux \u73af\u5883\u4e0b\u7cfb\u7edf\u7f16\u7a0b\uff0c\u5177\u6709\u591a\u5e74\u7684 Web \u540e\u7aef\u5f00\u53d1\u7ecf\u9a8c\uff0c\u6388\u8bfe\u601d\u8def\u6e05\u6670\u660e\u4e86\uff0c\u901a\u4fd7\u6613\u61c2\uff0c\u5e7d\u9ed8\u98ce\u8da3\u7684\u8bb2\u8bfe\u65b9\u5f0f\u5c06\u67af\u71e5\u7684\u77e5\u8bc6\u4ee5\u901a\u4fd7\u7684\u65b9\u5f0f\u5c55\u73b0\uff0c\u6df1\u53d7\u5b66\u751f\u597d\u8bc4\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png",name:"\u73ca\u9171",des:"\u73ed\u4e3b\u4efb\u7684\u5de5\u4f5c\u662f\u4e00\u9879\u975e\u5e38\u8f9b\u82e6\u548c\u7410\u788e\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ed8\u51fa\u8270\u8f9b\u7684\u52b3\u52a8\u548c\u8f9b\u82e6\u7684\u6c57\u6c34\u662f\u4e0d\u4f1a\u6709\u6536\u83b7\u7684\u3002\u5386\u7ecf\u6570\u4e07\u540d\u5b66\u5458\u7684\u4e00\u5bf9\u4e00\u670d\u52a1\uff0c\u59cb\u7ec8\u575a\u6301\u7ed9\u5b66\u5458\u505a\u5230\u6700\u597d\u7684\u670d\u52a1\u548c\u6700\u4e25\u683c\u7684\u8981\u6c42\uff0c\u5b66\u5458\u7684\u70b9\u6ef4\u8fdb\u6b65\u548c\u6210\u957f\u5c31\u662f\u6211\u6700\u5927\u7684\u671f\u671b\uff01"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return o.a.createElement("div",{className:"team_container"},o.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),o.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),o.a.createElement("p",{className:"sub_title"},"\u8bb2\u5e08+\u52a9\u6559+\u73ed\u4e3b\u4efb\u5168\u7a0b\u966a\u4f34\uff0c\u54ea\u91cc\u4e0d\u4f1a\u95ee\u54ea\u91cc"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"item_li"},o.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),o.a.createElement("div",{className:"item_info"},o.a.createElement("span",{className:"name"},e.name),o.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(r.Component)),f=(a(1208),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return o.a.createElement("div",{className:"experience_container"},o.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u9650\u65f6\u798f\u5229\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u5f00\u59cb\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn",onClick:a},"\u7acb\u5373\u4f53\u9a8c")):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(r.Component)),v=(a(1209),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={list:[{q:"\u8bfe\u7a0b\u5b66\u4e60\u5468\u671f\u662f\u591a\u4e45\uff1f",a:"\u6bcf\u5929\u5b66\u4e601\u5c0f\u65f6\uff0c\u8bfe\u7a0b\u91c7\u7528\u901a\u5173\u5236\u89e3\u9501\u7684\u65b9\u5f0f\uff0c\u6839\u636e\u81ea\u5df1\u7684\u65f6\u95f4\u548c\u5b66\u4e60\u901f\u5ea6\u7075\u6d3b\u8c03\u6574\u3002"},{q:"\u6211\u6ca1\u6709Python\u57fa\u7840\u53ef\u4ee5\u5b66\u4e60\u5417\uff1f",a:"\u6211\u4eec\u7684\u8bfe\u7a0b\u662f\u9762\u5411\u96f6\u57fa\u7840\u7684\u5c0f\u4f19\u4f34\u8bbe\u8ba1\u7684\uff0c\u8bfe\u7a0b\u901a\u8fc7\u6545\u4e8b\u53d9\u8ff0\u7684\u65b9\u5f0f\u7531\u6d45\u5165\u6df1\uff0c\u5c42\u5c42\u9012\u8fdb\uff0c\u5c3d\u53ef\u80fd\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u6240\u5b66\u77e5\u8bc6\uff0c\u6ca1\u6709\u4efb\u4f55\u57fa\u7840\u662f\u53ef\u4ee5\u5b66\u4e60\u7684\u3002"},{q:"\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u56f0\u96be\u600e\u4e48\u529e\uff1f",a:"\u6211\u4eec\u4e3a\u5b66\u5458\u914d\u5907\u4e86\u4e13\u95e8\u7684\u52a9\u6559\uff0c\u6709\u95ee\u9898\u968f\u65f6\u53ef\u4ee5\u54a8\u8be2\u52a9\u6559\u8001\u5e08\u3002"},{q:"\u9700\u8981\u81ea\u5df1\u5b89\u88c5\u4ee3\u7801\u8fd0\u884c\u73af\u5883\u5417\uff1f",a:"\u5728\u5e73\u53f0\u4e0a\u5b66\u4e60\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u73af\u5883\uff0c\u8be5\u8bfe\u7a0b\u5305\u542b\u7684\u77e5\u8bc6\u70b9\u5b9e\u64cd\u4ee5\u53ca\u8bfe\u540e\u5b9e\u64cd\u90fd\u53ef\u4ee5\u5728\u5e73\u53f0\u4e0a\u5b8c\u6210\u3002"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.list;return o.a.createElement("div",{className:"pro_container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),o.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"q_item"},o.a.createElement("div",{className:"q"}," ",o.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",o.a.createElement("span",null)),o.a.createElement("div",{className:"a__container"},o.a.createElement("div",null,"A\uff1a"),o.a.createElement("p",null,e.a)))})))}}]),t}(r.Component)),N=a(807),O=a(21),w=a(618);function k(e){var t=e.item,a=e.item.desInfo;return o.a.createElement("div",{className:"number_one"},o.a.createElement("img",{className:"trophy",src:t.titleUrl}),o.a.createElement("p",{className:"item__title"},t.title),o.a.createElement("p",{className:"item__subtitle",style:{width:t.subWidth}},t.subTitle),o.a.createElement("img",{style:{width:a.width,height:a.height},src:t.bottomUrl}))}var S,P=Object(O.b)(function(e){return{user:e.user}})(b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).signUp=function(){a.props.user.hasError?a.toLogin():a.toDetail()},a.tryLearn=function(){a.props.user.hasError?a.toLogin():a.toLearn()},a.toLearn=function(){var e=a.props.backwardVersion;m.d.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(m.c)("id")}).then(function(t){var n=t.data,s=n.code,c=n.msg;200==s?Object(m.c)("version")?e?p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u4f53\u9a8c",2):Object(m.a)("toLearn",Object(m.c)("id")):a.setState({toApp:!0}):p.a.info(c,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props.backwardVersion,t=Object(m.c)("id");if(Object(m.c)("version"))if(e){p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u8d2d\u4e70",2);var n=setTimeout(function(){clearTimeout(n),n=null,Object(m.a)("toPay",t)},2e3)}else Object(m.a)("toPay",t);else m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t),{simple:1}):p.a.info(e.data.msg,2)})},a.toLogin=function(){Object(m.c)("version")?Object(m.a)("toLogin"):a.props.history.push("/passport")},a.showAll=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus,allSyllabusShow:!0}),2===e&&a.setState({practice:a.state.allPractice,allPracticeShow:!0})},a.hideSome=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus.slice(0,2),allSyllabusShow:!1}),2===e&&a.setState({practice:a.state.allPractice.slice(0,2),allPracticeShow:!1})},a.getStatus=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"))).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200==n?a.setState({syllabus:s.syllabus.slice(0,2),allSyllabus:s.syllabus,practice:s.practice.slice(0,2),allPractice:s.practice,payMoney:s.course_info.price1,courseInfo:s.course_info}):p.a.info(c)})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,practice:[],allPractice:[],allPracticeShow:!1,toApp:!1,defineList:[{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/trophy.png",title:"\u6392\u540d\u7b2c1\u7684\u7f16\u7a0b\u8bed\u8a00",subTitle:"2018\u4e16\u754c\u7f16\u7a0b\u8bed\u8a00\u6392\u884c\u699c\u4e2d\uff0cPython\u6392\u540d\u7b2c1",subWidth:"180px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/program_lan.png",desInfo:{width:"240px",height:"170px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kaifa.png",title:"\u5f00\u53d1\u5feb\u901f\u3001\u7b80\u5355\u6613\u638c\u63e1",subTitle:"\u4e25\u8c28\u7684\u4ee3\u7801\u7f16\u5199\u683c\u5f0f\uff0c\u8bed\u6cd5\u683c\u5f0f\u7b80\u5355\u6613\u7406\u89e3\u5b8c\u6210\u4e00\u4e2a\u76f8\u540c\u7684\u4efb\u52a1",subWidth:"260px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kuaisu.png",desInfo:{width:"212px",height:"106px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/lingyu.png",title:"\u9002\u7528\u9886\u57df\u5e7f",subTitle:"Python\u5de5\u7a0b\u5e08\u53ef\u4ece\u4e8b\u591a\u9886\u57df\u7f16\u7a0b\u5de5\u4f5c\uff0c\u4eba\u624d\u5e74\u9700\u6c42\u589e\u957f6\u500d",subWidth:"230px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiandan.png",desInfo:{width:"234px",height:"106px"}}],desList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png",title:"\u5168\u65b0\u8bfe\u7a0b\u5f62\u5f0f",subTitle:"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66\uff0c\u8f7b\u677e\u3001\u751f\u52a8\u3001\u4e0d\u65e0\u804a"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png",title:"\u5728\u7ebf\u7f16\u7a0b\u73af\u5883",subTitle:"\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u7f16\u7a0b\u8f6f\u4ef6"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png",title:"17\u5929\u96f6\u57fa\u7840\u5165\u95e8",subTitle:"\u964d\u4f4e\u5b66\u4e60\u95e8\u69db\uff0c17\u5929\u5165\u95e8\u4eba\u5de5\u667a\u80fd"}],worryList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiechu.png",title:"\u521d\u6b21\u63a5\u89e6\uff0c\u62c5\u5fc3\u5b66\u4e0d\u4f1a",subTitle:"\u672c\u8bfe\u7a0b\u4e13\u95e8\u4e3a\u96f6\u57fa\u7840\u7684\u4f60\u6253\u9020\uff0c\u5168\u7bc7\u901a\u8fc7\u6700\u767d\u8bdd\u6c9f\u901a\u4ea4\u6d41\u7684\u65b9\u5f0f\u8fdb\u884c\u8bb2\u89e3\uff0c\u65e0\u8bba\u4f60\u6709\u65e0\u7f16\u7a0b\u7ecf\u9a8c\u90fd\u53ef\u4ee5\u8f7b\u677e\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xuexi.png",title:"\u60f3\u5b66\u4e60\uff0c\u6ca1\u6709\u575a\u6301\u4e0b\u6765",subTitle:"\u4ee5\u6545\u4e8b\u6027\u7684\u65b9\u5f0f\u7f16\u5199\u5b66\u4e60\u5185\u5bb9\uff0c \u628a\u751f\u786c\u7684\u77e5\u8bc6\u70b9\u6709\u8da3\u5316\u3002\u7cbe\u7f8e\u7684\u56fe\u7247+\u5e7d\u9ed8\u7684\u6587\u5b57+\u4ee3\u7801\u7f16\u5199\u8ba9\u4f60\u8d8a\u5b66\u8d8a\u60f3\u5b66\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhishidian.png",title:"\u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u4e0d\u77e5\u5982\u4f55\u8fd0\u7528",subTitle:"\u6bcf\u8282\u8bfe\u7684\u77e5\u8bc6\u70b9\u90fd\u8bbe\u6709\u4ee3\u7801\u7f16\u5199\u90e8\u5206\uff0c\u6bcf\u8282\u8bfe\u8bfe\u540e\u90fd\u6709\u8bfe\u540e\u5b9e\u64cd\u3002\u6709\u591a\u6b21\u4ee3\u7801\u7f16\u5199\u7ec3\u4e60\u7684\u673a\u4f1a\uff0c\u52a9\u4f60\u771f\u6b63\u5b66\u4ee5\u81f4\u7528\u3002"}],payMoney:0,isOnline:!0,courseInfo:{}},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u5b66\u4e60",2)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getStatus(),!1)}},{key:"render",value:function(){var e=this.state,t=e.defineList,a=e.desList,n=e.worryList,s=e.syllabus,c=e.practice,l=e.allSyllabusShow,i=e.allPracticeShow,r=e.toApp,m=e.payMoney,u=e.isOnline,p=e.courseInfo;return console.log(p),o.a.createElement("div",{className:"python__des"},o.a.createElement("div",{className:"des__start"}),!!p.is_dist&&o.a.createElement(w.a,{courseInfo:p}),o.a.createElement("div",{className:"python__define"},o.a.createElement("img",{className:"left__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png"}),o.a.createElement("img",{className:"right__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png"}),o.a.createElement("p",{className:"define__title"},"\u4ec0 / \u4e48 / \u662f / Python"),t.map(function(e,t){return o.a.createElement(k,{item:e,key:t})})),o.a.createElement("div",{className:"course__introduce"}),u?o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("div",{className:"course__price"},o.a.createElement("div",{className:"money"},m,o.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),o.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",o.a.createElement("div",{className:"triangle"}))),o.a.createElement("div",{className:"btn__group"},o.a.createElement("div",{className:"try__study",onClick:this.tryLearn},"\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("div",{className:"sign__now",onClick:this.signUp},"\u7acb\u5373\u62a5\u540d"))):o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),o.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),o.a.createElement(h,{list:a}),o.a.createElement(y,{list:n}),o.a.createElement(g,{syllabus:s,allSyllabusShow:l,show:this.showAll,hide:this.hideSome}),o.a.createElement(E,{practice:c,allPracticeShow:i,show:this.showAll,hide:this.hideSome}),o.a.createElement(j,null),o.a.createElement(f,{tryLearn:this.tryLearn,isOnline:u}),o.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/changjian.png",alt:""}),o.a.createElement(v,null),r&&o.a.createElement(N.a,{type:1,closePop:this.closePop}))}}]),t}(r.Component))||b,C=a(1211),L=a(52),x=a(35),A=a.n(x),I=a(26),U=Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:I.g,startFetchUser:I.h})(S=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.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(L.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){A.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),A.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),A.a.get("token")&&A.a.get("uid")&&(a.setState({isAppUpdate:!0}),a.fetchCourseInfo()),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.fetchCourseInfo=function(){var e=Object(m.c)("id");m.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(t){var n=t.data,s=n.data;if(200===n.code){var c=Object(m.c)("version");if(c)if(c=c.replace(/\./g,"").slice(0,3),m.b.isAndroidApp&&c<453)a.setState({backwardVersion:!0,isPay:0});else if(m.b.isIOSApp&&c<380)a.setState({backwardVersion:!0,isPay:0});else{if(1===s.course_info.is_pay)return void Object(m.a)("toSyllabusChapter",e);a.setState({backwardVersion:!1,isPay:s.course_info.is_pay})}else a.setState({backwardVersion:!1,isPay:s.course_info.is_pay})}})},a.state={isPay:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){document.title="Python\u4eba\u5de5\u667a\u80fd [P1\u7ea7\uff0c\u9a70\u63f4\u6b66\u6c49 \u672c\u56fe\u6587\u5c0f\u8bfe\u6ce8\u518c\u5373\u9001] - \u4e03\u6708\u5728\u7ebf";var e=this;this.fetchCourseInfo(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.isAppUpdate,n=e.backwardVersion;return o.a.createElement("div",null,0===t&&o.a.createElement(P,{backwardVersion:n,history:this.props.history,isAppUpdate:a,isPay:t}),1===t&&!Object(m.c)("version")&&o.a.createElement(C.default,{isAppUpdate:a}))}}]),t}(r.Component))||S;t.default=U}}]);
//# sourceMappingURL=python-class.bfdfc4dc.chunk.js.map
\ No newline at end of file
!function(e){function r(r){for(var a,n,d=r[0],i=r[1],s=r[2],f=0,b=[];f<d.length;f++)n=d[f],c[n]&&b.push(c[n][0]),c[n]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(u&&u(r);b.length;)b.shift()();return o.push.apply(o,s||[]),t()}function t(){for(var e,r=0;r<o.length;r++){for(var t=o[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==c[i]&&(a=!1)}a&&(o.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={36:0},c={36:0},o=[];function d(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{1:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,14:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,30:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,47:1,48:1,49:1,50:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,60:1,61:1,62:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"bff22cf8",2:"31d6cfe0",3:"5ed15c7e",4:"0dc24c6e",5:"a74b39fb",6:"31cef199",7:"f2f19957",8:"16a64650",9:"47812ac6",10:"2e7d81ca",11:"f2cc3163",12:"361dc1a3",13:"31d6cfe0",14:"35f475a1",15:"31d6cfe0",16:"e5315535",17:"18d20d0c",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"ca49c1cb",22:"951fd27d",23:"715eb28a",24:"b92d0394",25:"c10ecc19",26:"6f3a01ca",27:"219bad3d",28:"581c1e79",30:"3c41b358",31:"b0d930fa",32:"c8863d51",33:"55e46fc9",34:"f583a040",35:"087d6571",37:"38c3e634",38:"f09a5959",39:"e406d228",40:"08df3d15",41:"49988cae",42:"742fb589",43:"012a9beb",44:"d836ed34",46:"31d6cfe0",47:"50547718",48:"bd48401c",49:"2471f477",50:"0bb224f2",51:"ecbb6f9a",52:"9f46e45e",53:"ee45d0b0",54:"025e3921",55:"ab7f5e40",56:"4c85e85c",57:"470b9744",58:"10a4034d",59:"697fa90d",60:"eb90513f",61:"5fba4ed0",62:"e51ea0fc"}[e]+".chunk.css",c=d.p+a,o=document.getElementsByTagName("link"),i=0;i<o.length;i++){var s=(u=o[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(s===a||s===c))return r()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){var u;if((s=(u=f[i]).getAttribute("data-href"))===a||s===c)return r()}var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.onload=r,b.onerror=function(r){var a=r&&r.target&&r.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.request=a,delete n[e],b.parentNode.removeChild(b),t(o)},b.href=c,document.getElementsByTagName("head")[0].appendChild(b)}).then(function(){n[e]=0}));var t=c[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=c[e]=[r,a]});r.push(t[2]=a);var o,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/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[e]||e)+"."+{0:"bc874a24",1:"cb268bcf",2:"0417c21c",3:"4a2be69d",4:"22a0562b",5:"dc19ea48",6:"8814b7db",7:"1316928e",8:"282356fe",9:"27f68cf5",10:"2b492d24",11:"b8ab0d85",12:"8aa16057",13:"93346dbf",14:"336cedef",15:"9523d283",16:"608c293d",17:"3abfd449",18:"6b2e53db",19:"5eeef10c",20:"bbca129b",21:"81d5ede7",22:"e7b78512",23:"5b1b8785",24:"57beb548",25:"f14154ef",26:"ffeee7d1",27:"ba2d9956",28:"845d0afd",30:"58381c0c",31:"b21e70e7",32:"b1d3c38c",33:"6a939100",34:"4dd2d566",35:"6cf6e65b",37:"d392edb8",38:"268a2ca3",39:"404b2f61",40:"a2bbffec",41:"53f8f9e0",42:"583175e7",43:"3670c265",44:"340c63ed",46:"44f38ed3",47:"4ef49615",48:"83cf4630",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"c69a440a",53:"c2ea86c0",54:"d8bf61b4",55:"2165edcc",56:"d999618a",57:"67a640cc",58:"86365e8c",59:"24412a5e",60:"612e025e",61:"528d1560",62:"7af7cc5d"}[e]+".chunk.js"}(e),o=function(r){i.onerror=i.onload=null,clearTimeout(s);var t=c[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,o=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");o.type=a,o.request=n,t[1](o)}c[e]=void 0}};var s=setTimeout(function(){o({type:"timeout",target:i})},12e4);i.onerror=i.onload=o,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||[],s=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var u=s;t()}([]);
//# sourceMappingURL=runtime~main.1e33a4b1.js.map
\ No newline at end of file
!function(e){function r(r){for(var a,n,d=r[0],i=r[1],s=r[2],f=0,b=[];f<d.length;f++)n=d[f],c[n]&&b.push(c[n][0]),c[n]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(u&&u(r);b.length;)b.shift()();return o.push.apply(o,s||[]),t()}function t(){for(var e,r=0;r<o.length;r++){for(var t=o[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==c[i]&&(a=!1)}a&&(o.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={36:0},c={36:0},o=[];function d(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{1:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,14:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,30:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,47:1,48:1,49:1,50:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,60:1,61:1,62:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"bff22cf8",2:"31d6cfe0",3:"5ed15c7e",4:"0dc24c6e",5:"a74b39fb",6:"31cef199",7:"f2f19957",8:"16a64650",9:"47812ac6",10:"2e7d81ca",11:"f2cc3163",12:"361dc1a3",13:"31d6cfe0",14:"35f475a1",15:"31d6cfe0",16:"e5315535",17:"18d20d0c",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"ca49c1cb",22:"951fd27d",23:"715eb28a",24:"b92d0394",25:"c10ecc19",26:"6f3a01ca",27:"219bad3d",28:"581c1e79",30:"3c41b358",31:"b0d930fa",32:"c8863d51",33:"55e46fc9",34:"f583a040",35:"087d6571",37:"38c3e634",38:"f09a5959",39:"e406d228",40:"08df3d15",41:"49988cae",42:"742fb589",43:"012a9beb",44:"d836ed34",46:"31d6cfe0",47:"50547718",48:"bd48401c",49:"2471f477",50:"0bb224f2",51:"ecbb6f9a",52:"9f46e45e",53:"ee45d0b0",54:"025e3921",55:"ab7f5e40",56:"4c85e85c",57:"470b9744",58:"10a4034d",59:"697fa90d",60:"eb90513f",61:"5fba4ed0",62:"e51ea0fc"}[e]+".chunk.css",c=d.p+a,o=document.getElementsByTagName("link"),i=0;i<o.length;i++){var s=(u=o[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(s===a||s===c))return r()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){var u;if((s=(u=f[i]).getAttribute("data-href"))===a||s===c)return r()}var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.onload=r,b.onerror=function(r){var a=r&&r.target&&r.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.request=a,delete n[e],b.parentNode.removeChild(b),t(o)},b.href=c,document.getElementsByTagName("head")[0].appendChild(b)}).then(function(){n[e]=0}));var t=c[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=c[e]=[r,a]});r.push(t[2]=a);var o,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/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"aist-share",22:"blessing-getPrize",23:"blessing-preheat",24:"blessing-rank",25:"coupons",26:"deposit-order",27:"deposit-pay-order",28:"detail",30:"myorders",31:"newyear-2019-landing",32:"newyear-yearIndex",33:"prize-winner-list",34:"purchased",35:"python-class",37:"search",38:"shareposter",39:"study",40:"system-notices",41:"togroup",42:"treasure-box-home",43:"treasure-box-mybox",44:"video"}[e]||e)+"."+{0:"bc874a24",1:"cb268bcf",2:"0417c21c",3:"4a2be69d",4:"026d6db3",5:"ce04657e",6:"8814b7db",7:"1316928e",8:"282356fe",9:"5557a131",10:"bcec53f1",11:"b8ab0d85",12:"2df843ed",13:"93346dbf",14:"336cedef",15:"9523d283",16:"3406a411",17:"d93f1005",18:"6b2e53db",19:"5eeef10c",20:"bbca129b",21:"de8a0e2a",22:"3520a0c4",23:"62d874e7",24:"57beb548",25:"f14154ef",26:"ffeee7d1",27:"021258b8",28:"858a4eac",30:"58381c0c",31:"5a799102",32:"25ec9dae",33:"6a939100",34:"4dd2d566",35:"bfdfc4dc",37:"d392edb8",38:"268a2ca3",39:"404b2f61",40:"a2bbffec",41:"aed3e309",42:"83c24468",43:"3670c265",44:"c109b6c2",46:"44f38ed3",47:"4ef49615",48:"3cae0429",49:"0dfc3020",50:"41881c23",51:"38a8cd5c",52:"c69a440a",53:"c2ea86c0",54:"d8bf61b4",55:"2165edcc",56:"25719836",57:"67a640cc",58:"86365e8c",59:"24412a5e",60:"612e025e",61:"528d1560",62:"7af7cc5d"}[e]+".chunk.js"}(e),o=function(r){i.onerror=i.onload=null,clearTimeout(s);var t=c[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,o=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");o.type=a,o.request=n,t[1](o)}c[e]=void 0}};var s=setTimeout(function(){o({type:"timeout",target:i})},12e4);i.onerror=i.onload=o,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||[],s=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var u=s;t()}([]);
//# sourceMappingURL=runtime~main.c4e71bdf.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","36","exports","module","l","e","promises","1","3","4","5","6","7","8","9","10","11","12","14","16","17","18","19","20","21","22","23","24","25","26","27","28","30","31","32","33","34","35","37","38","39","40","41","42","43","44","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","Promise","resolve","reject","href","13","15","0","2","46","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,EAAA,GAGAC,EAAA,CACAC,GAAA,GAMAtB,EAAA,CACAsB,GAAA,GAGAb,EAAA,GAQA,SAAAS,EAAA1B,GAGA,GAAA4B,EAAA5B,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,EAAAjI,EAAAiI,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAArJ,OAAAsJ,OAAA,MAGA,GAFAtI,EAAA8H,EAAAO,GACArJ,OAAA2I,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAjI,EAAAuH,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIArI,EAAAyI,EAAA,SAAAnI,GACA,IAAAmH,EAAAnH,KAAA8H,WACA,WAA2B,OAAA9H,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAuH,EAAAE,EAAA,IAAAA,GACAA,GAIAzH,EAAA0H,EAAA,SAAAgB,EAAAC,GAAsD,OAAA3J,OAAAC,UAAAC,eAAAC,KAAAuJ,EAAAC,IAGtD3I,EAAA2E,EAAA,IAGA3E,EAAA4I,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAA/J,KAAAyJ,KAAAM,GACAA,EAAA/J,KAAAX,EACA0K,IAAAG,QACA,QAAAtK,EAAA,EAAgBA,EAAAmK,EAAAjK,OAAuBF,IAAAP,EAAA0K,EAAAnK,IACvC,IAAAU,EAAA2J,EAIAvJ","file":"mrstatic/js/runtime~main.1e33a4b1.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t36: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t36: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"5\":\"Activity\",\"6\":\"BargainMiddlePage\",\"7\":\"Classify\",\"8\":\"Country\",\"9\":\"CourseList\",\"10\":\"DrawDocument\",\"11\":\"Examination\",\"12\":\"Invite\",\"13\":\"MyEdit\",\"14\":\"Order\",\"15\":\"Orderinfo\",\"16\":\"PayOrder\",\"17\":\"Preferential\",\"18\":\"SearchResult\",\"19\":\"ShareCourse\",\"20\":\"ShopCart\",\"21\":\"aist-share\",\"22\":\"blessing-getPrize\",\"23\":\"blessing-preheat\",\"24\":\"blessing-rank\",\"25\":\"coupons\",\"26\":\"deposit-order\",\"27\":\"deposit-pay-order\",\"28\":\"detail\",\"30\":\"myorders\",\"31\":\"newyear-2019-landing\",\"32\":\"newyear-yearIndex\",\"33\":\"prize-winner-list\",\"34\":\"purchased\",\"35\":\"python-class\",\"37\":\"search\",\"38\":\"shareposter\",\"39\":\"study\",\"40\":\"system-notices\",\"41\":\"togroup\",\"42\":\"treasure-box-home\",\"43\":\"treasure-box-mybox\",\"44\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"bc874a24\",\"1\":\"cb268bcf\",\"2\":\"0417c21c\",\"3\":\"4a2be69d\",\"4\":\"22a0562b\",\"5\":\"dc19ea48\",\"6\":\"8814b7db\",\"7\":\"1316928e\",\"8\":\"282356fe\",\"9\":\"27f68cf5\",\"10\":\"2b492d24\",\"11\":\"b8ab0d85\",\"12\":\"8aa16057\",\"13\":\"93346dbf\",\"14\":\"336cedef\",\"15\":\"9523d283\",\"16\":\"608c293d\",\"17\":\"3abfd449\",\"18\":\"6b2e53db\",\"19\":\"5eeef10c\",\"20\":\"bbca129b\",\"21\":\"81d5ede7\",\"22\":\"e7b78512\",\"23\":\"5b1b8785\",\"24\":\"57beb548\",\"25\":\"f14154ef\",\"26\":\"ffeee7d1\",\"27\":\"ba2d9956\",\"28\":\"845d0afd\",\"30\":\"58381c0c\",\"31\":\"b21e70e7\",\"32\":\"b1d3c38c\",\"33\":\"6a939100\",\"34\":\"4dd2d566\",\"35\":\"6cf6e65b\",\"37\":\"d392edb8\",\"38\":\"268a2ca3\",\"39\":\"404b2f61\",\"40\":\"a2bbffec\",\"41\":\"53f8f9e0\",\"42\":\"583175e7\",\"43\":\"3670c265\",\"44\":\"340c63ed\",\"46\":\"44f38ed3\",\"47\":\"4ef49615\",\"48\":\"83cf4630\",\"49\":\"0dfc3020\",\"50\":\"41881c23\",\"51\":\"38a8cd5c\",\"52\":\"c69a440a\",\"53\":\"c2ea86c0\",\"54\":\"d8bf61b4\",\"55\":\"2165edcc\",\"56\":\"d999618a\",\"57\":\"67a640cc\",\"58\":\"86365e8c\",\"59\":\"24412a5e\",\"60\":\"612e025e\",\"61\":\"528d1560\",\"62\":\"7af7cc5d\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"14\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"28\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"42\":1,\"43\":1,\"44\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":1,\"52\":1,\"53\":1,\"54\":1,\"55\":1,\"56\":1,\"57\":1,\"58\":1,\"59\":1,\"60\":1,\"61\":1,\"62\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"5\":\"Activity\",\"6\":\"BargainMiddlePage\",\"7\":\"Classify\",\"8\":\"Country\",\"9\":\"CourseList\",\"10\":\"DrawDocument\",\"11\":\"Examination\",\"12\":\"Invite\",\"13\":\"MyEdit\",\"14\":\"Order\",\"15\":\"Orderinfo\",\"16\":\"PayOrder\",\"17\":\"Preferential\",\"18\":\"SearchResult\",\"19\":\"ShareCourse\",\"20\":\"ShopCart\",\"21\":\"aist-share\",\"22\":\"blessing-getPrize\",\"23\":\"blessing-preheat\",\"24\":\"blessing-rank\",\"25\":\"coupons\",\"26\":\"deposit-order\",\"27\":\"deposit-pay-order\",\"28\":\"detail\",\"30\":\"myorders\",\"31\":\"newyear-2019-landing\",\"32\":\"newyear-yearIndex\",\"33\":\"prize-winner-list\",\"34\":\"purchased\",\"35\":\"python-class\",\"37\":\"search\",\"38\":\"shareposter\",\"39\":\"study\",\"40\":\"system-notices\",\"41\":\"togroup\",\"42\":\"treasure-box-home\",\"43\":\"treasure-box-mybox\",\"44\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"bff22cf8\",\"2\":\"31d6cfe0\",\"3\":\"5ed15c7e\",\"4\":\"0dc24c6e\",\"5\":\"a74b39fb\",\"6\":\"31cef199\",\"7\":\"f2f19957\",\"8\":\"16a64650\",\"9\":\"47812ac6\",\"10\":\"2e7d81ca\",\"11\":\"f2cc3163\",\"12\":\"361dc1a3\",\"13\":\"31d6cfe0\",\"14\":\"35f475a1\",\"15\":\"31d6cfe0\",\"16\":\"e5315535\",\"17\":\"18d20d0c\",\"18\":\"bb7c3056\",\"19\":\"278ad3b1\",\"20\":\"3a4dbb7a\",\"21\":\"ca49c1cb\",\"22\":\"951fd27d\",\"23\":\"715eb28a\",\"24\":\"b92d0394\",\"25\":\"c10ecc19\",\"26\":\"6f3a01ca\",\"27\":\"219bad3d\",\"28\":\"581c1e79\",\"30\":\"3c41b358\",\"31\":\"b0d930fa\",\"32\":\"c8863d51\",\"33\":\"55e46fc9\",\"34\":\"f583a040\",\"35\":\"087d6571\",\"37\":\"38c3e634\",\"38\":\"f09a5959\",\"39\":\"e406d228\",\"40\":\"08df3d15\",\"41\":\"49988cae\",\"42\":\"742fb589\",\"43\":\"012a9beb\",\"44\":\"d836ed34\",\"46\":\"31d6cfe0\",\"47\":\"50547718\",\"48\":\"bd48401c\",\"49\":\"2471f477\",\"50\":\"0bb224f2\",\"51\":\"ecbb6f9a\",\"52\":\"9f46e45e\",\"53\":\"ee45d0b0\",\"54\":\"025e3921\",\"55\":\"ab7f5e40\",\"56\":\"4c85e85c\",\"57\":\"470b9744\",\"58\":\"10a4034d\",\"59\":\"697fa90d\",\"60\":\"eb90513f\",\"61\":\"5fba4ed0\",\"62\":\"e51ea0fc\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","36","exports","module","l","e","promises","1","3","4","5","6","7","8","9","10","11","12","14","16","17","18","19","20","21","22","23","24","25","26","27","28","30","31","32","33","34","35","37","38","39","40","41","42","43","44","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","Promise","resolve","reject","href","13","15","0","2","46","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,G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) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t36: 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t36: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"5\":\"Activity\",\"6\":\"BargainMiddlePage\",\"7\":\"Classify\",\"8\":\"Country\",\"9\":\"CourseList\",\"10\":\"DrawDocument\",\"11\":\"Examination\",\"12\":\"Invite\",\"13\":\"MyEdit\",\"14\":\"Order\",\"15\":\"Orderinfo\",\"16\":\"PayOrder\",\"17\":\"Preferential\",\"18\":\"SearchResult\",\"19\":\"ShareCourse\",\"20\":\"ShopCart\",\"21\":\"aist-share\",\"22\":\"blessing-getPrize\",\"23\":\"blessing-preheat\",\"24\":\"blessing-rank\",\"25\":\"coupons\",\"26\":\"deposit-order\",\"27\":\"deposit-pay-order\",\"28\":\"detail\",\"30\":\"myorders\",\"31\":\"newyear-2019-landing\",\"32\":\"newyear-yearIndex\",\"33\":\"prize-winner-list\",\"34\":\"purchased\",\"35\":\"python-class\",\"37\":\"search\",\"38\":\"shareposter\",\"39\":\"study\",\"40\":\"system-notices\",\"41\":\"togroup\",\"42\":\"treasure-box-home\",\"43\":\"treasure-box-mybox\",\"44\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"bc874a24\",\"1\":\"cb268bcf\",\"2\":\"0417c21c\",\"3\":\"4a2be69d\",\"4\":\"026d6db3\",\"5\":\"ce04657e\",\"6\":\"8814b7db\",\"7\":\"1316928e\",\"8\":\"282356fe\",\"9\":\"5557a131\",\"10\":\"bcec53f1\",\"11\":\"b8ab0d85\",\"12\":\"2df843ed\",\"13\":\"93346dbf\",\"14\":\"336cedef\",\"15\":\"9523d283\",\"16\":\"3406a411\",\"17\":\"d93f1005\",\"18\":\"6b2e53db\",\"19\":\"5eeef10c\",\"20\":\"bbca129b\",\"21\":\"de8a0e2a\",\"22\":\"3520a0c4\",\"23\":\"62d874e7\",\"24\":\"57beb548\",\"25\":\"f14154ef\",\"26\":\"ffeee7d1\",\"27\":\"021258b8\",\"28\":\"858a4eac\",\"30\":\"58381c0c\",\"31\":\"5a799102\",\"32\":\"25ec9dae\",\"33\":\"6a939100\",\"34\":\"4dd2d566\",\"35\":\"bfdfc4dc\",\"37\":\"d392edb8\",\"38\":\"268a2ca3\",\"39\":\"404b2f61\",\"40\":\"a2bbffec\",\"41\":\"aed3e309\",\"42\":\"83c24468\",\"43\":\"3670c265\",\"44\":\"c109b6c2\",\"46\":\"44f38ed3\",\"47\":\"4ef49615\",\"48\":\"3cae0429\",\"49\":\"0dfc3020\",\"50\":\"41881c23\",\"51\":\"38a8cd5c\",\"52\":\"c69a440a\",\"53\":\"c2ea86c0\",\"54\":\"d8bf61b4\",\"55\":\"2165edcc\",\"56\":\"25719836\",\"57\":\"67a640cc\",\"58\":\"86365e8c\",\"59\":\"24412a5e\",\"60\":\"612e025e\",\"61\":\"528d1560\",\"62\":\"7af7cc5d\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"14\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"28\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"42\":1,\"43\":1,\"44\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":1,\"52\":1,\"53\":1,\"54\":1,\"55\":1,\"56\":1,\"57\":1,\"58\":1,\"59\":1,\"60\":1,\"61\":1,\"62\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"5\":\"Activity\",\"6\":\"BargainMiddlePage\",\"7\":\"Classify\",\"8\":\"Country\",\"9\":\"CourseList\",\"10\":\"DrawDocument\",\"11\":\"Examination\",\"12\":\"Invite\",\"13\":\"MyEdit\",\"14\":\"Order\",\"15\":\"Orderinfo\",\"16\":\"PayOrder\",\"17\":\"Preferential\",\"18\":\"SearchResult\",\"19\":\"ShareCourse\",\"20\":\"ShopCart\",\"21\":\"aist-share\",\"22\":\"blessing-getPrize\",\"23\":\"blessing-preheat\",\"24\":\"blessing-rank\",\"25\":\"coupons\",\"26\":\"deposit-order\",\"27\":\"deposit-pay-order\",\"28\":\"detail\",\"30\":\"myorders\",\"31\":\"newyear-2019-landing\",\"32\":\"newyear-yearIndex\",\"33\":\"prize-winner-list\",\"34\":\"purchased\",\"35\":\"python-class\",\"37\":\"search\",\"38\":\"shareposter\",\"39\":\"study\",\"40\":\"system-notices\",\"41\":\"togroup\",\"42\":\"treasure-box-home\",\"43\":\"treasure-box-mybox\",\"44\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"bff22cf8\",\"2\":\"31d6cfe0\",\"3\":\"5ed15c7e\",\"4\":\"0dc24c6e\",\"5\":\"a74b39fb\",\"6\":\"31cef199\",\"7\":\"f2f19957\",\"8\":\"16a64650\",\"9\":\"47812ac6\",\"10\":\"2e7d81ca\",\"11\":\"f2cc3163\",\"12\":\"361dc1a3\",\"13\":\"31d6cfe0\",\"14\":\"35f475a1\",\"15\":\"31d6cfe0\",\"16\":\"e5315535\",\"17\":\"18d20d0c\",\"18\":\"bb7c3056\",\"19\":\"278ad3b1\",\"20\":\"3a4dbb7a\",\"21\":\"ca49c1cb\",\"22\":\"951fd27d\",\"23\":\"715eb28a\",\"24\":\"b92d0394\",\"25\":\"c10ecc19\",\"26\":\"6f3a01ca\",\"27\":\"219bad3d\",\"28\":\"581c1e79\",\"30\":\"3c41b358\",\"31\":\"b0d930fa\",\"32\":\"c8863d51\",\"33\":\"55e46fc9\",\"34\":\"f583a040\",\"35\":\"087d6571\",\"37\":\"38c3e634\",\"38\":\"f09a5959\",\"39\":\"e406d228\",\"40\":\"08df3d15\",\"41\":\"49988cae\",\"42\":\"742fb589\",\"43\":\"012a9beb\",\"44\":\"d836ed34\",\"46\":\"31d6cfe0\",\"47\":\"50547718\",\"48\":\"bd48401c\",\"49\":\"2471f477\",\"50\":\"0bb224f2\",\"51\":\"ecbb6f9a\",\"52\":\"9f46e45e\",\"53\":\"ee45d0b0\",\"54\":\"025e3921\",\"55\":\"ab7f5e40\",\"56\":\"4c85e85c\",\"57\":\"470b9744\",\"58\":\"10a4034d\",\"59\":\"697fa90d\",\"60\":\"eb90513f\",\"61\":\"5fba4ed0\",\"62\":\"e51ea0fc\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{1266:function(e,a,t){"use strict";t.r(a);t(156);var n,c=t(76),s=t.n(c),r=(t(91),t(27)),i=t.n(r),o=(t(155),t(35)),l=t.n(o),d=(t(259),t(93)),m=t.n(d),u=(t(37),t(11)),p=t.n(u),E=t(4),f=t(7),_=t(5),h=t(8),v=t(9),N=t(0),g=t.n(N),b=(t(890),t(25)),w=t(3),y=t(21),C=t(14),k=Object(y.b)(function(e){return{user:e.user}})(n=function(e){function a(e){var t;return Object(E.a)(this,a),(t=Object(_.a)(this,Object(h.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,c=e.data;if(w.b.isWeixin){var s=t.state.share;t.setState({share:!s}),Object(w.i)({title:"\u3010\u4ec5\u5269".concat(n,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(c.course_title,"\u300b"),desc:c.course_title,link:location.href+"&is_originator=1",imgUrl:c.image_name})}else p.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){return t.props.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.handleToGroup=function(){var e=t.state,a=e.isBuy,n=void 0!==a&&a,c=e.data,s=void 0===c?{}:c,r=t.props,i=r.user,o=r.history,l=r.location;if(i.hasError)if(w.b.isWeixin){var d=window.location.href;if(d.includes("code=")&&d.includes("state=STATE")){var m=d.lastIndexOf("code=");d=d.substr(0,m-1)}window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent(d),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"))}else o.push("/passport",{from:l});else n?t.setState({modal:!0}):o.push("/order?id=".concat(s.course_id),{group:1,pdd_order_id:t.state.pddOrderId})},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,number:0,isBuy:!1,modal:!1,pddOrderId:""},t}return Object(v.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;w.d.get("".concat(API["base-api"],"/pdd/info/").concat(Object(w.c)("id"))).then(function(a){if(0===a.data.errno){if(e.setState({data:a.data.data.course_info,pdd_price:a.data.data.pdd_price,groupon_member:a.data.data.groupon_member,is_success:a.data.data.is_success,person_num:a.data.data.person_num,course_list:a.data.data.course_list,number:a.data.data.number,pddOrderId:a.data.data.pdd_order_id,countdown:"",isBuy:a.data.data.is_buy}),0===a.data.data.is_success){var t=1e3*a.data.data.end_time,n=0,c=0,s=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),s="".concat(parseInt((t-36e5*n-6e4*c)/1e3)).padStart(2,0),e.setState({countdown:"".concat(n,":").concat(c,":").concat(s)})},1e3)}}else p.a.info(a.data.msg,2)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,c=t.course_title,s=t.simpledescription,r=t.price0,i=t.price1,o=(a.pdd_price,a.is_success),d=(a.person_num,a.groupon_member,a.course_list),u=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},c),g.a.createElement("p",{className:"contact text-overflow-2"},s),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",i),g.a.createElement("span",{className:"old"},"\xa5",r))));return g.a.createElement("div",{className:"to-group-box"},g.a.createElement(b.e,{title:"\u62fc\u56e2",cart:!1,toHref:"/"}),g.a.createElement(m.a,{transparent:!0,visible:this.state.modal,title:"\u63d0\u793a",footer:[{text:"\u786e\u5b9a",onPress:function(){e.setState({modal:!1}),e.props.history.push("/")}}]},g.a.createElement("p",null,"\u60a8\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u8be5\u8bfe\u7a0b\uff5e")),!o&&g.a.createElement(b.j,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),g.a.createElement(j,{data:this.state,invitedFriends:this.invitedFriends,handleToGroup:this.handleToGroup,userInfo:this.props.user}),g.a.createElement(l.a,null),g.a.createElement("div",{className:"group-course"},g.a.createElement("div",{className:"top-title"},g.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),g.a.createElement(C.b,{to:"/preferential",className:"more"},"\u66f4\u591a",g.a.createElement("i",{className:"iconfont iconiconfront-70"}))),d&&d.length>0&&d[0].course&&d[0].course.length>0&&d[0].course.slice(0,4).map(function(a){var t=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",a.price1),g.a.createElement("span",{className:"old"},"\xa5",a.price0))));return g.a.createElement(b.j,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n;function j(e){for(var a,t,n,c,r=e.data,o=r.pdd_price,l=r.data,d=r.groupon_member,m=r.is_success,u=r.person_num,p=r.share,E=r.number,f=r.countdown,_=e.userInfo,h=[],v=E;0!=v;)h.push(v),v--;if(c=g.a.createElement("div",{className:"group-user-list"},g.a.createElement(i.a,{justify:"center",className:"imgList"},d.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?g.a.createElement("div",{className:"leaderFlag"},g.a.createElement("span",null,"\u56e2\u957f")):null)}),h.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("div",{className:"imgname"},g.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),d&&d.length>0){var N=!1;!_.hasError&&d.map(function(e){e.uid!=_.data.uid||(N=!0)}),N?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):1==Object(w.c)("is_originator")?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("a",{href:"javascript:;",className:"group-btn",onClick:e.handleToGroup},"\u4e00\u952e\u53c2\u56e2")):(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%"))}return 1===m&&(a=g.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=g.a.createElement(C.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),g.a.createElement("div",{className:"gorup-content"},p?g.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},g.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),g.a.createElement("div",{className:"tipArrow"},g.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,g.a.createElement(s.a,null,c),g.a.createElement(s.a,null,t),n,!m&&g.a.createElement("div",{className:"group-dec"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),g.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(u,"\u4eba\u6210\u56e2"))))}a.default=k},890:function(e,a,t){}}]);
//# sourceMappingURL=togroup.53f8f9e0.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{1266:function(e,a,t){"use strict";t.r(a);t(156);var n,c=t(76),s=t.n(c),r=(t(91),t(27)),i=t.n(r),o=(t(155),t(36)),l=t.n(o),d=(t(259),t(93)),m=t.n(d),u=(t(37),t(11)),p=t.n(u),E=t(4),f=t(7),_=t(5),h=t(8),v=t(9),N=t(0),g=t.n(N),b=(t(890),t(25)),w=t(3),y=t(21),C=t(14),k=Object(y.b)(function(e){return{user:e.user}})(n=function(e){function a(e){var t;return Object(E.a)(this,a),(t=Object(_.a)(this,Object(h.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,c=e.data;if(w.b.isWeixin){var s=t.state.share;t.setState({share:!s}),Object(w.i)({title:"\u3010\u4ec5\u5269".concat(n,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(c.course_title,"\u300b"),desc:c.course_title,link:location.href+"&is_originator=1",imgUrl:c.image_name})}else p.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){return t.props.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.handleToGroup=function(){var e=t.state,a=e.isBuy,n=void 0!==a&&a,c=e.data,s=void 0===c?{}:c,r=t.props,i=r.user,o=r.history,l=r.location;if(i.hasError)if(w.b.isWeixin){var d=window.location.href;if(d.includes("code=")&&d.includes("state=STATE")){var m=d.lastIndexOf("code=");d=d.substr(0,m-1)}window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent(d),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"))}else o.push("/passport",{from:l});else n?t.setState({modal:!0}):o.push("/order?id=".concat(s.course_id),{group:1,pdd_order_id:t.state.pddOrderId})},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,number:0,isBuy:!1,modal:!1,pddOrderId:""},t}return Object(v.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;w.d.get("".concat(API["base-api"],"/pdd/info/").concat(Object(w.c)("id"))).then(function(a){if(0===a.data.errno){if(e.setState({data:a.data.data.course_info,pdd_price:a.data.data.pdd_price,groupon_member:a.data.data.groupon_member,is_success:a.data.data.is_success,person_num:a.data.data.person_num,course_list:a.data.data.course_list,number:a.data.data.number,pddOrderId:a.data.data.pdd_order_id,countdown:"",isBuy:a.data.data.is_buy}),0===a.data.data.is_success){var t=1e3*a.data.data.end_time,n=0,c=0,s=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),s="".concat(parseInt((t-36e5*n-6e4*c)/1e3)).padStart(2,0),e.setState({countdown:"".concat(n,":").concat(c,":").concat(s)})},1e3)}}else p.a.info(a.data.msg,2)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,c=t.course_title,s=t.simpledescription,r=t.price0,i=t.price1,o=(a.pdd_price,a.is_success),d=(a.person_num,a.groupon_member,a.course_list),u=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},c),g.a.createElement("p",{className:"contact text-overflow-2"},s),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",i),g.a.createElement("span",{className:"old"},"\xa5",r))));return g.a.createElement("div",{className:"to-group-box"},g.a.createElement(b.e,{title:"\u62fc\u56e2",cart:!1,toHref:"/"}),g.a.createElement(m.a,{transparent:!0,visible:this.state.modal,title:"\u63d0\u793a",footer:[{text:"\u786e\u5b9a",onPress:function(){e.setState({modal:!1}),e.props.history.push("/")}}]},g.a.createElement("p",null,"\u60a8\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u8be5\u8bfe\u7a0b\uff5e")),!o&&g.a.createElement(b.j,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),g.a.createElement(j,{data:this.state,invitedFriends:this.invitedFriends,handleToGroup:this.handleToGroup,userInfo:this.props.user}),g.a.createElement(l.a,null),g.a.createElement("div",{className:"group-course"},g.a.createElement("div",{className:"top-title"},g.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),g.a.createElement(C.b,{to:"/preferential",className:"more"},"\u66f4\u591a",g.a.createElement("i",{className:"iconfont iconiconfront-70"}))),d&&d.length>0&&d[0].course&&d[0].course.length>0&&d[0].course.slice(0,4).map(function(a){var t=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",a.price1),g.a.createElement("span",{className:"old"},"\xa5",a.price0))));return g.a.createElement(b.j,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n;function j(e){for(var a,t,n,c,r=e.data,o=r.pdd_price,l=r.data,d=r.groupon_member,m=r.is_success,u=r.person_num,p=r.share,E=r.number,f=r.countdown,_=e.userInfo,h=[],v=E;0!=v;)h.push(v),v--;if(c=g.a.createElement("div",{className:"group-user-list"},g.a.createElement(i.a,{justify:"center",className:"imgList"},d.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?g.a.createElement("div",{className:"leaderFlag"},g.a.createElement("span",null,"\u56e2\u957f")):null)}),h.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("div",{className:"imgname"},g.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),d&&d.length>0){var N=!1;!_.hasError&&d.map(function(e){e.uid!=_.data.uid||(N=!0)}),N?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):1==Object(w.c)("is_originator")?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("a",{href:"javascript:;",className:"group-btn",onClick:e.handleToGroup},"\u4e00\u952e\u53c2\u56e2")):(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%"))}return 1===m&&(a=g.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=g.a.createElement(C.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),g.a.createElement("div",{className:"gorup-content"},p?g.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},g.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),g.a.createElement("div",{className:"tipArrow"},g.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,g.a.createElement(s.a,null,c),g.a.createElement(s.a,null,t),n,!m&&g.a.createElement("div",{className:"group-dec"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),g.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(u,"\u4eba\u6210\u56e2"))))}a.default=k},890:function(e,a,t){}}]);
//# sourceMappingURL=togroup.aed3e309.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","state","user","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_10__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_12__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_13__","call","invitedFriends","_this$state","pdd_price","number","data","browser","isWeixin","share","setState","wxShare","title","concat","course_title","desc","link","location","href","imgUrl","image_name","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_9___default","a","info","toCourseDetail","id","history","push","handleToGroup","_this$state2","_this$state2$isBuy","isBuy","_this$state2$data","_this$props","hasError","redirectURI","window","includes","index","lastIndexOf","substr","assign","encodeURIComponent","from","modal","course_id","group","pdd_order_id","pddOrderId","groupon_member","person_num","is_success","_this2","http","get","API","getParam","then","res","errno","course_info","course_list","countdown","is_buy","date","end_time","hours","minutes","seconds","setInterval","parseInt","padStart","msg","_this3","_this$state3","_this$state3$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_15___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_17__","cart","toHref","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_7___default","transparent","visible","footer","text","onPress","img","toDetail","GorupContent","userInfo","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_20__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","flag","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kUAUMA,EADLC,YAAQ,SAAAC,GAAK,MAAK,CAACC,KAAMD,EAAMC,sBAE5B,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAeVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKH,MAAhCY,EADYD,EACZC,UAAWC,EADCF,EACDE,OAAQC,EADPH,EACOG,KAC1B,GAAIC,IAAQC,SAAU,CAClB,IAAIC,EAAQd,EAAKH,MAAMiB,MACvBd,EAAKe,SAAS,CACVD,OAAQA,IAEZE,YAAQ,CACJC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsCP,EAAKQ,aAA3C,UACLC,KAAMT,EAAKQ,aACXE,KAAMC,SAASC,KAAK,mBACpBC,OAAQb,EAAKc,kBAIjBC,EAAAC,EAAMC,KAAK,2EAAgB,IA/BhB5B,EAwEnB6B,eAAiB,SAACC,GAGd,OAFkB9B,EAAKD,MAAhBgC,QACCC,KAAR,cAAAd,OAA2BY,GAAM,CAACP,KAAM,eACjC,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KwE,OAAS1E,EAAzC,WACN0G,EAAM9B,EAAA1D,EAAA2D,cAAA,QAAMC,UAAU,YAAYC,QAASzF,EAAMQ,gBAA3C,wCAAmE4D,EAAnE,uBACNiD,EAAM/B,EAAA1D,EAAA2D,cAAA,KAAGC,UAAU,OAAb,iFASlB,OAJmB,IAAf/B,IACA0D,EAAM7B,EAAA1D,EAAA2D,cAAA,KAAGC,UAAU,WAAb,4BACN4B,EAAM9B,EAAA1D,EAAA2D,cAACiB,EAAA,EAAD,CAAMC,GAAE,cAAAtF,OAAgBP,EAAKuC,WAAaqC,UAAU,WAApD,uBAGNF,EAAA1D,EAAA2D,cAAA,OAAKC,UAAU,iBAEPzE,EACIuE,EAAA1D,EAAA2D,cAAA,OAAKC,UAAU,kBAAkBC,QAASzF,EAAMQ,gBAC5C8E,EAAA1D,EAAA2D,cAAA,OAAKC,UAAU,cAAf,eAAArE,OAEUR,EAFV,uFAIA2E,EAAA1D,EAAA2D,cAAA,OAAKC,UAAU,YACXF,EAAA1D,EAAA2D,cAAA,KAAGC,UAAU,0BAGrB,KAGP2B,EACD7B,EAAA1D,EAAA2D,cAAA4C,EAAAvG,EAAA,KACK0F,GAELhC,EAAA1D,EAAA2D,cAAA4C,EAAAvG,EAAA,KACKwF,GAEJC,GAEI5D,GACD6B,EAAA1D,EAAA2D,cAAA,OAAKC,UAAU,aACXF,EAAA1D,EAAA2D,cAAA,YACID,EAAA1D,EAAA2D,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAA1D,EAAA2D,cAAA,QAAMC,UAAU,UAAhB,eAAArE,OAA+BqC,EAA/B,yBAOL5D","file":"mrstatic/js/togroup.53f8f9e0.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\nimport { getParam, http, browser, wxShare } from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast, Modal } from 'antd-mobile'\n\n\n@connect(state => ({user: state.user}))\nclass ToGroup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: {},\n share: false,\n pdd_price: 0,\n groupon_member: [],\n person_num: 0, // 共多少人成团\n is_success: false, // 是否拼团成功\n number: 0, // 差几人成团\n isBuy: false,\n modal: false,\n pddOrderId:''\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if (browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n wxShare({\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title,\n link: location.href+'&is_originator=1',\n imgUrl: data.image_name,\n });\n\n } else {\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n http.get(`${API['base-api']}/pdd/info/${getParam('id')}`).then(res => {\n if (res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n this.setState({\n data: res.data.data.course_info,\n pdd_price: res.data.data.pdd_price,\n groupon_member: res.data.data.groupon_member,\n is_success: res.data.data.is_success,\n person_num: res.data.data.person_num,\n course_list: res.data.data.course_list,\n number: res.data.data.number,\n pddOrderId: res.data.data.pdd_order_id,\n countdown: '',\n isBuy: res.data.data.is_buy\n });\n\n if (res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0);\n this.setState({\n countdown: `${hours}:${minutes}:${seconds}`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n }\n\n handleToGroup = () => {\n const {isBuy = false, data = {}} = this.state;\n const {user, history, location} = this.props;\n if (user.hasError) {\n if (browser.isWeixin) {\n let redirectURI = window.location.href\n if (redirectURI.includes('code=') && redirectURI.includes('state=STATE')) {\n let index = redirectURI.lastIndexOf('code=');\n redirectURI = redirectURI.substr(0, index - 1);\n }\n window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(redirectURI)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)\n } else {\n history.push('/passport', {from: location})\n }\n return\n }\n\n\n if (!isBuy) {\n history.push(\n `/order?id=${data.course_id}`,\n {\n group: 1,\n pdd_order_id:this.state.pddOrderId\n }\n )\n } else {\n this.setState({\n modal: true\n })\n }\n }\n\n render() {\n const {data: {course_id, course_title, simpledescription, price0, price1}, pdd_price, is_success, person_num, groupon_member, course_list} = this.state;\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(course_id)}>\n {/* <Link to={`/detail?id=${course_id}`}> */}\n {course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{price1}</span>\n <span className=\"old\">¥{price0}</span>\n </p>\n </div>\n </div>\n )\n return (\n <div className='to-group-box'>\n <HeaderBar title='拼团' cart={false} toHref={'/'}></HeaderBar>\n <Modal\n transparent\n visible={this.state.modal}\n title=\"提示\"\n footer={[\n {\n text: '确定',\n onPress: () => {\n this.setState({\n modal: false\n });\n this.props.history.push('/');\n }\n }\n ]}\n >\n <p>您已经购买过该课程~</p>\n </Modal>\n {\n !is_success &&\n <VList\n img={this.state.data.image_name}\n id={this.state.data.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n }\n\n <GorupContent\n data={this.state}\n invitedFriends={this.invitedFriends}\n handleToGroup={this.handleToGroup}\n userInfo={this.props.user}\n />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i\n className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList\n img={item.image_name}\n key={item.uid}\n id={item.course_id}\n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const {pdd_price, data, groupon_member, is_success, person_num, share, number, countdown} = props.data;\n const {userInfo} = props\n let ary = [], num = number;\n while (num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt=''/>\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let flag = false;\n !userInfo.hasError && groupon_member.map(item => {\n if (item.uid == userInfo.data.uid) {\n flag = true\n return;\n }\n })\n if (flag) {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n if(getParam('is_originator') == 1){\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <a href=\"javascript:;\" className='group-btn' onClick={props.handleToGroup}>一键参团</a>\n } else {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n }\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","state","user","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_10__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_12__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_13__","call","invitedFriends","_this$state","pdd_price","number","data","browser","isWeixin","share","setState","wxShare","title","concat","course_title","desc","link","location","href","imgUrl","image_name","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_9___default","a","info","toCourseDetail","id","history","push","handleToGroup","_this$state2","_this$state2$isBuy","isBuy","_this$state2$data","_this$props","hasError","redirectURI","window","includes","index","lastIndexOf","substr","assign","encodeURIComponent","from","modal","course_id","group","pdd_order_id","pddOrderId","groupon_member","person_num","is_success","_this2","http","get","API","getParam","then","res","errno","course_info","course_list","countdown","is_buy","date","end_time","hours","minutes","seconds","setInterval","parseInt","padStart","msg","_this3","_this$state3","_this$state3$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_15___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_17__","cart","toHref","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_7___default","transparent","visible","footer","text","onPress","img","toDetail","GorupContent","userInfo","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_20__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","flag","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kUAUMA,EADLC,YAAQ,SAAAC,GAAK,MAAK,CAACC,KAAMD,EAAMC,sBAE5B,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAeVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKH,MAAhCY,EADYD,EACZC,UAAWC,EADCF,EACDE,OAAQC,EADPH,EACOG,KAC1B,GAAIC,IAAQC,SAAU,CAClB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,UAAU,aACXF,EAAA1D,EAAA2D,cAAA,YACID,EAAA1D,EAAA2D,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAA1D,EAAA2D,cAAA,QAAMC,UAAU,UAAhB,eAAArE,OAA+BqC,EAA/B,yBAOL5D","file":"mrstatic/js/togroup.aed3e309.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\nimport { getParam, http, browser, wxShare } from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast, Modal } from 'antd-mobile'\n\n\n@connect(state => ({user: state.user}))\nclass ToGroup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: {},\n share: false,\n pdd_price: 0,\n groupon_member: [],\n person_num: 0, // 共多少人成团\n is_success: false, // 是否拼团成功\n number: 0, // 差几人成团\n isBuy: false,\n modal: false,\n pddOrderId:''\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if (browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n wxShare({\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title,\n link: location.href+'&is_originator=1',\n imgUrl: data.image_name,\n });\n\n } else {\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n http.get(`${API['base-api']}/pdd/info/${getParam('id')}`).then(res => {\n if (res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n this.setState({\n data: res.data.data.course_info,\n pdd_price: res.data.data.pdd_price,\n groupon_member: res.data.data.groupon_member,\n is_success: res.data.data.is_success,\n person_num: res.data.data.person_num,\n course_list: res.data.data.course_list,\n number: res.data.data.number,\n pddOrderId: res.data.data.pdd_order_id,\n countdown: '',\n isBuy: res.data.data.is_buy\n });\n\n if (res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0);\n this.setState({\n countdown: `${hours}:${minutes}:${seconds}`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n }\n\n handleToGroup = () => {\n const {isBuy = false, data = {}} = this.state;\n const {user, history, location} = this.props;\n if (user.hasError) {\n if (browser.isWeixin) {\n let redirectURI = window.location.href\n if (redirectURI.includes('code=') && redirectURI.includes('state=STATE')) {\n let index = redirectURI.lastIndexOf('code=');\n redirectURI = redirectURI.substr(0, index - 1);\n }\n window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(redirectURI)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)\n } else {\n history.push('/passport', {from: location})\n }\n return\n }\n\n\n if (!isBuy) {\n history.push(\n `/order?id=${data.course_id}`,\n {\n group: 1,\n pdd_order_id:this.state.pddOrderId\n }\n )\n } else {\n this.setState({\n modal: true\n })\n }\n }\n\n render() {\n const {data: {course_id, course_title, simpledescription, price0, price1}, pdd_price, is_success, person_num, groupon_member, course_list} = this.state;\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(course_id)}>\n {/* <Link to={`/detail?id=${course_id}`}> */}\n {course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{price1}</span>\n <span className=\"old\">¥{price0}</span>\n </p>\n </div>\n </div>\n )\n return (\n <div className='to-group-box'>\n <HeaderBar title='拼团' cart={false} toHref={'/'}></HeaderBar>\n <Modal\n transparent\n visible={this.state.modal}\n title=\"提示\"\n footer={[\n {\n text: '确定',\n onPress: () => {\n this.setState({\n modal: false\n });\n this.props.history.push('/');\n }\n }\n ]}\n >\n <p>您已经购买过该课程~</p>\n </Modal>\n {\n !is_success &&\n <VList\n img={this.state.data.image_name}\n id={this.state.data.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n }\n\n <GorupContent\n data={this.state}\n invitedFriends={this.invitedFriends}\n handleToGroup={this.handleToGroup}\n userInfo={this.props.user}\n />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i\n className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList\n img={item.image_name}\n key={item.uid}\n id={item.course_id}\n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const {pdd_price, data, groupon_member, is_success, person_num, share, number, countdown} = props.data;\n const {userInfo} = props\n let ary = [], num = number;\n while (num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt=''/>\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let flag = false;\n !userInfo.hasError && groupon_member.map(item => {\n if (item.uid == userInfo.data.uid) {\n flag = true\n return;\n }\n })\n if (flag) {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n if(getParam('is_originator') == 1){\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <a href=\"javascript:;\" className='group-btn' onClick={props.handleToGroup}>一键参团</a>\n } else {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n }\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{1230:function(e,t,a){},1231:function(e,t,a){},1232:function(e,t,a){},1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1303:function(e,t,a){"use strict";a.r(t);a(37);var n,r,s,o=a(11),c=a.n(o),i=a(4),l=a(7),u=a(5),m=a(8),p=a(9),d=a(0),h=a.n(d),f=(a(1230),a(1231),a(45)),g=a(3),v=(a(1232),function(e){function t(e){return Object(i.a)(this,t),Object(u.a)(this,Object(m.a)(t).call(this,e))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this.props.id;return h.a.createElement("div",{className:"common_container",id:e},h.a.createElement("div",{className:"container_top"}),h.a.createElement("div",{className:"container_content"},this.props.title&&h.a.createElement("div",{className:"title_container"},h.a.createElement("i",null),h.a.createElement("p",null,this.props.title),h.a.createElement("i",null)),h.a.Children.map(this.props.children,function(e){return h.a.createElement(h.a.Fragment,null,e)})),h.a.createElement("div",{className:"container_bottom"}))}}]),t}(d.Component)),b=(a(1233),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).computedStyle=function(){return{top:"".concat(a.props.top,"px"),width:"".concat(a.props.width,"px")}},a.closePopup=function(){a.props.mark&&a.props.closePopup()},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"popup__container",onClick:this.closePopup},h.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},h.a.createElement("img",{className:"close__btn",onClick:this.props.closePopup,src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",alt:""}),h.a.Children.map(this.props.children,function(e){return h.a.createElement(h.a.Fragment,null,e)})))}}]),t}(d.Component)),_=a(21),y=a(25),j=a(579),E=a.n(j),O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getLiveInfo=function(){g.d.get("".concat(API.home,"/activity/get_live_info")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;200===n?a.setState({list:r}):c.a.info(s)})},a.subscribe=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():g.d.get("".concat(API["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data,n=t.errno,r=t.data,s=t.msg;200===n?E.a.toDataURL(r.url,function(e,t){a.setState({showMark:!0,subUrl:t,QRCodeUrl:r.url})}):c.a.info(s)})},a.tip=function(){c.a.info("\u4f60\u5df2\u9884\u7ea6\u8be5\u76f4\u64ad")},a.toLivingRoom=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.checkVideo=function(e){var t=a.props.user,n=t.hasError;t.data;if(n)a.toLogin();else{var r=e.split("/")[0];window.location.href="/play/video?id=".concat(r)}},a.closePopup=function(){a.setState({showMark:!1}),a.getLiveInfo()},a.saveImage=function(){var e=Object(g.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.QRCodeUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",2,null,!1):Object(g.a)("generateQRCode",t)},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.state={list:[],showMark:!1,subUrl:"",QRCodeUrl:""},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getLiveInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getLiveInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.showMark,r=t.subUrl;return h.a.createElement("div",{className:"live__container"},n&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:r,alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):null)),h.a.createElement(v,{title:"\u201c\u85aa\u201d\u5e74\u597d\u8bfe\u514d\u8d39\u5b66",id:"year-live"},h.a.createElement("ul",{className:"live__list"},a.length&&a.map(function(t,a){return h.a.createElement("li",{key:a,className:"live_room_item"},h.a.createElement("img",{className:"user__avatar",src:t.avatar,alt:""}),h.a.createElement("div",{className:"live__info"},h.a.createElement("div",{className:"theme"},h.a.createElement("span",null,"\u4e3b\u9898\uff1a"),h.a.createElement("p",null,t.title)),h.a.createElement("div",{className:"info__item"},h.a.createElement("span",null,"\u8bb2\u5e08\uff1a"),h.a.createElement("p",null,t.teacher)),""!=t.transcribe_url&&h.a.createElement("span",{onClick:function(){return e.checkVideo(t.transcribe_url)},className:"order__btn check__video"},"\u70b9\u51fb\u67e5\u770b")))}))))}}]),t}(d.Component))||n,k=(Object(f.g)(O),a(20)),w=a(74),N=(a(1234),a(627),a(52)),I=Object(_.b)(function(e){return{user:e.user}})(r=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getLength=function(){var e=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,n=a.code,r=a.data;200==n&&e.setState({sum:r.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;g.d.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var n=t.data,r=n.code,s=n.data;200===r&&a.setState({bigcourse:Object.assign({},e,{isMore:!1,course:s,courseList:s})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;g.d.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var n=t.data,r=n.errno,s=n.data;200===r&&a.setState({freecourse:Object.assign({},e,{isMore:s.course_info.length>4,course:s.course_info.length>4?s.course_info.filter(function(e,t){return t<4}):s.course_info,courseList:s.course_info})})})},a.fetchGroupCourse=function(){var e=a.state.groupcourse;g.d.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var n=t.data,r=n.code,s=n.data;200===r&&a.setState({groupcourse:Object.assign({},e,{isMore:s.length>4,course:s.length>4?s.filter(function(e,t){return t<4}):s,courseList:s})})})},a.fetchAICourse=function(e,t){g.d.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(n){var r=n.data,s=r.code,o=r.data;200===s&&a.getList(e,o,t)})},a.getList=function(e,t,n){var r=a.state,s=r.basic,o=r.advanced,c=r.higher,i=r.expand;"one"===e&&a.setState({basic:Object.assign({},s,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"two"===e&&a.setState({advanced:Object.assign({},o,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"three"===e&&a.setState({higher:Object.assign({},c,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})})},a.toQQque=function(){Object(g.c)("version")?Object(g.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="http://q.url.cn/s/Vbkup6m?_type=wpa"},a.toCourse=function(e){var t=a.props.history;Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.handleToMore=function(e){var t={};a.state[e].isMore?(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList,courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(k.a)({},t))):(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(k.a)({},t)))},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.freeStudy=function(){a.setState({tofreeStudy:!0})},a.closePopup=function(){a.setState({tofreeStudy:!1})},a.closePopupWish=function(){var e=Object(w.a)(Object(w.a)(a));e.setState({isshowFollow:!1}),setTimeout(function(){e.toJoinList(e.state.wish.id,e.state.wish.key)},200)},a.getQRcodeUrl=function(){var e=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data,n=t.errno,r=t.data,s=t.msg;0==n?(a.setState({qrUrl:r.url}),E.a.toDataURL(r.url,function(e,t){a.setState({followBarcode:t})})):c.a.info(s,2)})},a.addWishList=function(e,t){var n=Object(w.a)(Object(w.a)(a)),r=!a.props.user.hasError;n.setState({wish:{id:e,key:t}}),r?n.isFollow(e,t):n.toLogin()},a.isFollow=function(e,t){var n=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var r=a.data,s=r.code,o=r.data,i=r.msg;200===s?(n.setState({isshowFollow:!o.is_follow}),n.state.isshowFollow?n.getQRcodeUrl():n.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var n=Object(w.a)(Object(w.a)(a));g.d.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,r=a.code,s=a.msg;200==r?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),n.getLength(),"1"===t&&n.fetchAICourse("one",n.state.basic.addshowMore),"2"===t&&n.fetchAICourse("two",n.state.advanced.addshowMore),"3"===t&&n.fetchAICourse("three",n.state.higher.addshowMore),"4"===t&&n.fetchAICourse("four",n.state.expand.addshowMore),"group"===t&&n.fetchGroupCourse()):c.a.info(s,2)})},a.saveImage=function(){var e=Object(g.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.qrUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("generateQRCode",t)},a.saveImage2=function(){var e=Object(g.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){var o=r.info,i=r.removable_data;a.setState({removable:o.removable,currentId:o.removable>0?i[0].id:null})}else c.a.info(s)})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentId,n="";t&&(n="?id=".concat(t)),e?Object(g.c)("version")?a.props.history.push("/box/yearTreasure".concat(n,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/box/yearTreasure".concat(n)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?Object(g.c)("version")?a.props.history.push("/year/yearWish?version=".concat(Object(g.c)("version"))):a.props.history.push("/year/yearWish"):a.toLogin()},a.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.props.history;if(Object(g.c)("version")){var r={title:"\u3010\u4ec5\u5269".concat(t.number,"\u4e2a\u540d\u989d\u3011\u6211").concat(t.price,"\u5143\u62fc\u4e86\u300a").concat(t.course_title,"\u300b"),desc:t.course_title,link:"".concat(API.m,"/togroup?id=").concat(e,"&is_originator=1"),imgUrl:t.image_name};Object(g.a)("toShare",r)}else n.push("/togroup?id=".concat(e))},a.isCountDown=function(e,t){return e?t:""},a.formatTitleAndKey=function(e){var t=null;switch(e){case 1:t={title:"\u57fa\u7840",key:"basic"};break;case 2:t={title:"\u8fdb\u9636",key:"advanced"};break;case 3:t={title:"\u9ad8\u9636",key:"higher"};break;case 4:t={title:"\u6269\u5c55",key:"expand"};break;default:t=null}return t},a.formatCourseData=function(e){var t=a.state,n=t.basic,r=t.advanced,s=t.higher,o=t.expand,c=null;switch(e){case 1:c=n;break;case 2:c=r;break;case 3:c=s;break;case 4:c=o;break;default:c=null}return c},a.toCart=function(e){var t=a.props.history;g.d.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then(function(e){var n=e.data,r=n.code,s=n.msg;200===r||15001===r?Object(g.c)("version")?Object(g.a)("toShoppingCart"):t.push("/shopcart"):4030===r||4040===r?a.toLogin():c.a.info(s,2)})},a.toContinueBargain=function(e,t,n,r){var s=a.props.history;if(Object(g.c)("version")){var o={title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(t,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:"".concat(API.m,"/bargain-middle-page?id=").concat(e,"&bargaincode=").concat(n,"&is_originator=1"),imgUrl:r};Object(g.a)("toShare",o)}else s.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(n,"&is_originator=1"))},a.bargainToOrder=function(e){var t=a.props,n=t.history;t.user.hasError?a.toLogin():Object(g.c)("version")?Object(g.a)("toPay",e):g.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(t){var a=t.data,r=a.errno,s=a.msg;0===r?n.push("/order?id=[".concat(e,"]"),{bargain:1}):c.a.info(s,2)})},a.state={tofreeStudy:!1,basic:{course:[],courseList:[],isMore:!1,addshowMore:!1},advanced:{course:[],courseList:[],isMore:!1,addshowMore:!1},higher:{course:[],courseList:[],isMore:!1,addshowMore:!1},expand:{course:[],courseList:[],isMore:!1,addshowMore:!1},bigcourse:{course:[],courseList:[],isMore:!1},freecourse:{course:[],courseList:[],isMore:!1},groupcourse:{course:[],courseList:[],isMore:!1},isshowFollow:!1,wish:{id:"",key:""},followBarcode:"",qrUrl:"",sum:"",removable:"",currentId:""},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchGroupCourse(),this.fetchAICourse("one",!1),this.fetchAICourse("two",!1),this.fetchAICourse("three",!1),this.fetchAICourse("four",!1)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchGroupCourse(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"render",value:function(){var e=this.state,t=(e.bigcourse,e.freecourse,e.groupcourse,e.basic,e.advanced,e.higher,e.expand,e.removable),a=(e.sum,this.props);a.stage,a.treasureStage;return h.a.createElement("div",{className:"year-index-course"},t>0&&h.a.createElement("div",{className:"nav-right-wish nav-right"},h.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",h.a.createElement("i",{className:"nav-right__number"},t))))}}]),t}(d.Component))||r,C=Object(f.g)(I),L=(a(1235),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).fetchRankInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/ranking")).then(function(e){var t=e.data,n=t.code,r=t.data;200===n&&"{}"!==JSON.stringify(r)&&(r.length>5?a.setState({rank:r.filter(function(e,t){return t<5}),rankList:r,isMore:!0}):a.setState({rank:r,rankList:r,isMore:!1}))})},a.switchMoreRank=function(){var e=a.state,t=e.rankList;e.isMore?a.setState({rank:t,isMore:!1}):a.setState({rank:t.filter(function(e,t){return t<5}),isMore:!0})},a.handleToVip=function(e){var t=a.props.history;e&&(Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e)))},a.state={rank:[],rankList:[],isMore:!1},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.rank,n=t.isMore;return h.a.createElement(h.a.Fragment,null,0!==a.length&&h.a.createElement("div",{"data-skip":"rank"},h.a.createElement("div",{className:"rank-title"},h.a.createElement("i",{className:"rank-title__decorate"}),h.a.createElement("h2",{className:"rank-title__txt"},"\u5b9d\u7bb1\u8fbe\u4eba\u699c"),h.a.createElement("i",{className:"rank-title__decorate"})),h.a.createElement("p",{className:"rank-desc"},"\u5b9d\u7bb1\u6570\u91cf\u524d50\u540d\u53ef\u989d\u5916\u83b7\u5f97\u4e00\u4efd\u5956\u54c1\uff0c\u6570\u91cf\u76f8\u540c\u7684\u7528\u65f6\u77ed\u8005\u6392\u540d\u5728\u524d"),h.a.createElement("dl",{className:"rank-header"},h.a.createElement("dd",{className:"rank-column"},"\u6392\u540d"),h.a.createElement("dd",{className:"rank-column"},"\u7528\u6237"),h.a.createElement("dd",{className:"rank-column"},"\u5b9d\u7bb1\u6570\u91cf"),h.a.createElement("dd",{className:"rank-column"},"\u5956\u54c1")),h.a.createElement("div",{className:"rank-body"},a.map(function(t,a){return h.a.createElement("dl",{className:"rank-item",key:a},h.a.createElement("dd",{className:"rank-column"},a<=2?h.a.createElement("span",{className:"rank-column__number","data-num":a}):h.a.createElement("span",null,a+1)),h.a.createElement("dd",{className:"rank-column"},h.a.createElement("span",{className:"rank-column__name"},t.user_name)),h.a.createElement("dd",{className:"rank-column"},h.a.createElement("span",null,t.num)),h.a.createElement("dd",{className:"rank-column"},t.url?h.a.createElement("a",{className:"rank-column__txt",onClick:function(){return e.handleToVip(t.url)}},t.prize_name):h.a.createElement("span",{className:"rank-column__txt"},t.prize_name)))}),h.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},h.a.createElement("span",{className:"rank-more__txt"},n?"\u5c55\u5f00":"\u6536\u8d77"),h.a.createElement("i",{className:"rank-more__icon","data-more":n})))))}}]),t}(d.Component)),S=(a(1236),a(24)),M=a(36),x=a.n(M),A=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){var o=r.prize_info,i=r.is_my_team,l=r.info,u=r.member,m=r.removable_data,p=r.my_team;a.setState({prize_info:o,is_my_team:i,info:l,member:a.fillTeam(u,i),removable_data:m,my_team:p});var d=null;l.removable>0&&(d=m[0].id),a.props.getRemovable(l.removable,d)}else c.a.info(s)})},a.toYearTreasure=function(e){if(a.props.user.hasError)a.toLogin();else{var t="";if(e){var n=a.state,r=n.removable_data;if(n.info.removable>0){var s=r[0];t="?id=".concat(s.id)}}Object(g.c)("version")?a.props.history.push("/box/yearTreasure".concat(t,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/box/yearTreasure".concat(t))}},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.createTeam=function(){if(a.props.user.hasError)a.toLogin();else{sessionStorage.setItem("showShareTip","1");var e=a.state,t=e.is_my_team,n=e.my_team.treasure_code;t?Object(g.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+n+"&version="+Object(g.c)("version")):window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+n):g.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,a=t.code,n=t.data,r=t.msg;if(200===a){var s=n.treasure_code;Object(g.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+s+"&version="+Object(g.c)("version")):window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+s)}else c.a.info(r)})}},a.fillTeam=function(e,t){var n=e.length;if(a.props.user.hasError)for(var r=0;r<5-n;r++)e.push({head_img:"",user_name:"",nobody:!0});else if(0!==n||t)for(var s=0;s<5-n;s++)e.push({head_img:"",user_name:"",nobody:!0});else{e.push({head_img:x.a.get("avatar_file"),user_name:x.a.get("user_name")});for(var o=0;o<4;o++)e.push({head_img:"",user_name:"",nobody:!0})}return e},a.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,r=t.info,s=r.removable,o=r.total,c=t.member,i="",l=0;a.length>0&&(i=a[0].name,l=a[0].stage_no);var u="";return u=0===o?"\u6211\u7684\u5b9d\u7bb1":0===s?"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1/").concat(s,"\u4e2a\u672a\u5f00"),h.a.createElement("div",{className:"team_info__container"},h.a.createElement("div",{className:"team__member"},h.a.createElement("ul",{className:"member__list"},c&&c.length>0&&c.map(function(e,t){return h.a.createElement("li",{key:t,className:"member__item"},h.a.createElement("div",{className:"avatar__container"},e.nobody?h.a.createElement("img",{className:"head__image",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:""}):h.a.createElement("img",{className:"head__image",src:e.head_img,alt:""}),0===t?h.a.createElement("img",{className:"caption__flag",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png",alt:""}):null,h.a.createElement("div",{className:"shadow"})),h.a.createElement("div",{className:"member__join ".concat(e.nobody?"":"join")}))})),h.a.createElement("div",{className:"box__number"},h.a.createElement("img",{onClick:function(){return e.toYearTreasure(!0)},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("p",{onClick:function(){return e.toYearTreasure(!1)},className:"box__text"},u),h.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),s>0&&h.a.createElement("div",{className:"position__number"},s))),h.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&i&&h.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d").concat(i)))}}]),t}(d.Component),P=Object(S.d)(Object(_.b)(function(e){return{user:e.user}},null),f.g)(A),U=(a(1237),a(10)),z=Object(U.a)(function(){return a.e(40).then(a.bind(null,1259))}),T=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.state={prizes:[],notices:[],rule:[],unfoldList:!1},a.getPrizes=function(){g.d.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;200==n?a.setState({prizes:r.prize_data,notices:r.notices,rule:r.rule}):c.a.info(s,2,null,!1)})},a.showRules=function(){Object(y.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:h.a.createElement("div",{dangerouslySetInnerHTML:{__html:a.state.rule}}),closeIcon:a.closeIcon})},a.showMore=function(){a.setState(function(e){if(a.state.unfoldList)a.bg.style=a.innerBox.style=a.prizeBox.style="";else{var t=parseFloat(getComputedStyle(a.prizeBox,":before").getPropertyValue("height")),n=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),r=a.prizeList.scrollHeight,s=t+r-.12458*t-.595*n+n;a.prizeBox.style.height="".concat(s+27,"px"),a.innerBox.style.height="".concat(r,"px"),a.bg.style.height="".concat(r-n+.12458*t+27,"px")}return{unfoldList:!e.unfoldList}})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices,a=this.state.notices;return h.a.createElement(h.a.Fragment,null,t&&a&&a.length?h.a.createElement(z,{bullets:a}):null,h.a.createElement("div",{className:"prizes-box",ref:function(t){return e.prizeBox=t}},h.a.createElement("a",{href:"javascript:;",className:"rule-btn",onClick:this.showRules},"\u6d3b\u52a8\u89c4\u5219 > "),h.a.createElement("div",{className:"bg",ref:function(t){return e.bg=t}}),h.a.createElement("div",{className:"inner-box",ref:function(t){return e.innerBox=t}},h.a.createElement("ul",{className:"prize-list",ref:function(t){return e.prizeList=t}},this.state.prizes.map(function(e,t){return h.a.createElement("li",{key:t},e.img_name?h.a.createElement("i",{className:"prize-list__image",style:{backgroundImage:"url(".concat(e.img_name,")")}}):h.a.createElement("i",{className:"prize-list__image"}),0!=e.is_captain&&h.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&h.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u4e2a\u5fc5\u4e2d"),e.grant_max?h.a.createElement("div",{className:"bottom-bar"},h.a.createElement("div",{className:"progress-bar"},h.a.createElement("span",{className:"progress",style:{width:"".concat(e.surplus/e.grant_max*100,"%")}})),h.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):h.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))}),h.a.createElement("li",null,h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),h.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?h.a.createElement("div",null,"\u6536\u8d77",h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):h.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),t}(d.Component),D=a(120),R=a(159),B=(a(261),a(1238),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={bulletScreenData:[]},a.initializeBulletScreen=function(){var e=Object(w.a)(Object(w.a)(a)),t=Object(D.a)(Array(19).keys()),n=!1;a.swiper=new R.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var a=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),e.getBulletScreenData().then(function(r){n=!0,a.removeSlide(t),a.appendSlide(e.getSlides(r)),setTimeout(function(){a.autoplay.start(),n=!1})}))}}})},a.getSlides=function(e){return e.map(function(e){return'\n <li class="swiper-slide">\n <img class="avatar" src="'.concat(e.avatar_file,'" alt="">\n <span>').concat(e.user_name," ").concat(e.msg,"</span>\n </li>\n ")})},a.getBulletScreenData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g.d.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var n=t.data,r=n.data;if(200==n.code){if(!e)return r;a.setState({bulletScreenData:r},function(){a.initializeBulletScreen()})}})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getBulletScreenData(!0)}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy()}},{key:"render",value:function(){var e=this.state.bulletScreenData;return h.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},h.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map(function(e,t){return h.a.createElement("li",{className:"swiper-slide",key:t},h.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),h.a.createElement("span",null,e.user_name," ",e.msg))})))}}]),t}(d.Component)),F=function(e){function t(e){return Object(i.a)(this,t),Object(u.a)(this,Object(m.a)(t).call(this,e))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return h.a.createElement(v,{id:"year-treasure",title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},h.a.createElement("div",{style:{textAlign:"center",fontSize:"12px",color:"#FFDC1E",marginTop:"10px"}},"\u9080\u8bf7\u597d\u53cb\u7ec4\u961f\u4e00\u8d77\u5f00\u5b9d\u7bb1\uff0c\u6ee15\u4eba\u540e\u5c06\u968f\u673a\u83b7\u5f97\u4ee5\u4e0b\u5956\u54c1~"),h.a.createElement(T,{showSystemNotices:!0}),h.a.createElement(B,null),h.a.createElement(P,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),h.a.createElement(L,{history:this.props.history}))}}]),t}(d.Component),q=Object(f.g)(F),Q=a(18),H=a.n(Q),V=(a(1239),d.Component,a(26));a.d(t,"default",function(){return W});var W=Object(_.b)(function(e){return{user:e.user}},{setCurrentUser:V.g,startFetchUser:V.h})(s=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={removable:0,currentOpenId:0,treasure_stage:0,activity_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/box_banner.png"},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(N.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){x.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),x.a.get("token")&&x.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.closePopup=function(){a.setState({showMark:!1})},a.getRemovable=function(e,t){},a.getStage=function(){g.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){if(0===Number(r.treasure_stage))return void a.props.history.push("/");a.setState({activity_stage:r.activity_stage,treasure_stage:r.treasure_stage}),r.activity_stage,a.setState({banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/box_banner.png"})}else c.a.info(s,2)})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage(),document.title="AI\u5c31\u4e1a\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u62ffVIP\u5e74\u4f1a\u5458\uff0c200\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u5305\u90ae\u9001\uff01- \u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this.state,t=e.banner,a=e.activity_stage,n=e.treasure_stage;return h.a.createElement("div",{className:"year-index"},h.a.createElement("div",{className:"banner-treasure"},h.a.createElement("img",{src:t,alt:""}),h.a.createElement("div",{className:"banner-treasure__decorate"})),1===n&&h.a.createElement(q,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),h.a.createElement(C,{stage:a,treasureStage:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"))),this.state.showMark&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219"),h.a.createElement("p",{className:"sub__rule"},"1. \u6d3b\u52a8\u671f\u95f4\uff083\u670826\u65e5-3\u670831\u65e5\uff09\u53ef\u968f\u65f6\u53c2\u4e0e\u5f00\u5b9d\u7bb1\uff1b",h.a.createElement("br",null),"2. \u5f53\u524d\u961f\u4f0d\u6ee1\u5458\u540e\u53ef\u7ee7\u7eed\u521b\u5efa\u65b0\u961f\u4f0d\uff1b",h.a.createElement("br",null),"3. \u6bcf\u4eba\u6709\u4e00\u6b21\u673a\u4f1a\u52a0\u5165\u597d\u53cb\u7684\u961f\u4f0d\uff1b",h.a.createElement("br",null),"4. \u961f\u4f0d\u6ee1\u5458\u540e\u6240\u6709\u6210\u5458\u5747\u53ef\u968f\u673a\u83b7\u5f97\u5b9d\u7bb1\u5185\u5956\u54c1\uff0c\u961f\u957f\u5956\u52b1\u66f4\u4e30\u539a\u54e6~",h.a.createElement("br",null),"5. \u4ee3\u91d1\u5238\u3001\u8bfe\u7a0b\u7b49\u865a\u62df\u5956\u54c1\u5c06\u76f4\u63a5\u53d1\u653e\u81f3\u8d26\u6237\uff0c\u5b9e\u7269\u5956\u54c1\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4\uff1b",h.a.createElement("br",null),"6. \u73b0\u91d1\u53ef\u63d0\u73b0\uff1a\u6211\u7684 \u2192 \u8d5a\u5956\u5b66\u91d1 \u2192 \u63d0\u73b0\u3002"))),h.a.createElement("div",{className:"btm-rule"},"* \u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709 *"))}}]),t}(d.Component))||s},627:function(e,t,a){"use strict";var n=a(4),r=a(7),s=a(5),o=a(8),c=a(9),i=a(0),l=a.n(i),u=(a(642),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(s.a)(this,Object(o.a)(t).call(this,e))).startCountDown=function(e){if(e){var t=1e3*e,n=0,r=0,s=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),r="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),s="".concat(parseInt((t-36e5*n-6e4*r)/1e3)).padStart(2,0),a.setState({countdown:"".concat(n,"\u65f6").concat(r,"\u5206").concat(s,"\u79d2\u540e\u7ed3\u675f")})},1e3)}},a.state={countdown:""},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.time;this.startCountDown(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.time;this.props.time!=t&&this.startCountDown(t)}},{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id,r=this.state.countdown;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},r&&l.a.createElement("p",{className:"course__time"},r),l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(i.Component));t.a=u},642:function(e,t,a){}}]);
//# sourceMappingURL=treasure-box-home.583175e7.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{1230:function(e,t,a){},1231:function(e,t,a){},1232:function(e,t,a){},1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1303:function(e,t,a){"use strict";a.r(t);a(37);var n,r,s,o=a(11),c=a.n(o),i=a(4),l=a(7),u=a(5),m=a(8),p=a(9),d=a(0),h=a.n(d),f=(a(1230),a(1231),a(45)),g=a(3),v=(a(1232),function(e){function t(e){return Object(i.a)(this,t),Object(u.a)(this,Object(m.a)(t).call(this,e))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this.props.id;return h.a.createElement("div",{className:"common_container",id:e},h.a.createElement("div",{className:"container_top"}),h.a.createElement("div",{className:"container_content"},this.props.title&&h.a.createElement("div",{className:"title_container"},h.a.createElement("i",null),h.a.createElement("p",null,this.props.title),h.a.createElement("i",null)),h.a.Children.map(this.props.children,function(e){return h.a.createElement(h.a.Fragment,null,e)})),h.a.createElement("div",{className:"container_bottom"}))}}]),t}(d.Component)),b=(a(1233),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).computedStyle=function(){return{top:"".concat(a.props.top,"px"),width:"".concat(a.props.width,"px")}},a.closePopup=function(){a.props.mark&&a.props.closePopup()},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"popup__container",onClick:this.closePopup},h.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},h.a.createElement("img",{className:"close__btn",onClick:this.props.closePopup,src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",alt:""}),h.a.Children.map(this.props.children,function(e){return h.a.createElement(h.a.Fragment,null,e)})))}}]),t}(d.Component)),_=a(21),y=a(25),j=a(579),E=a.n(j),O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getLiveInfo=function(){g.d.get("".concat(API.home,"/activity/get_live_info")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;200===n?a.setState({list:r}):c.a.info(s)})},a.subscribe=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():g.d.get("".concat(API["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data,n=t.errno,r=t.data,s=t.msg;200===n?E.a.toDataURL(r.url,function(e,t){a.setState({showMark:!0,subUrl:t,QRCodeUrl:r.url})}):c.a.info(s)})},a.tip=function(){c.a.info("\u4f60\u5df2\u9884\u7ea6\u8be5\u76f4\u64ad")},a.toLivingRoom=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.checkVideo=function(e){var t=a.props.user,n=t.hasError;t.data;if(n)a.toLogin();else{var r=e.split("/")[0];window.location.href="/play/video?id=".concat(r)}},a.closePopup=function(){a.setState({showMark:!1}),a.getLiveInfo()},a.saveImage=function(){var e=Object(g.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.QRCodeUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",2,null,!1):Object(g.a)("generateQRCode",t)},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.state={list:[],showMark:!1,subUrl:"",QRCodeUrl:""},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getLiveInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getLiveInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.showMark,r=t.subUrl;return h.a.createElement("div",{className:"live__container"},n&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:r,alt:""}),g.b.isAndroidApp?h.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):null)),h.a.createElement(v,{title:"\u201c\u85aa\u201d\u5e74\u597d\u8bfe\u514d\u8d39\u5b66",id:"year-live"},h.a.createElement("ul",{className:"live__list"},a.length&&a.map(function(t,a){return h.a.createElement("li",{key:a,className:"live_room_item"},h.a.createElement("img",{className:"user__avatar",src:t.avatar,alt:""}),h.a.createElement("div",{className:"live__info"},h.a.createElement("div",{className:"theme"},h.a.createElement("span",null,"\u4e3b\u9898\uff1a"),h.a.createElement("p",null,t.title)),h.a.createElement("div",{className:"info__item"},h.a.createElement("span",null,"\u8bb2\u5e08\uff1a"),h.a.createElement("p",null,t.teacher)),""!=t.transcribe_url&&h.a.createElement("span",{onClick:function(){return e.checkVideo(t.transcribe_url)},className:"order__btn check__video"},"\u70b9\u51fb\u67e5\u770b")))}))))}}]),t}(d.Component))||n,k=(Object(f.g)(O),a(20)),w=a(74),N=(a(1234),a(627),a(52)),I=Object(_.b)(function(e){return{user:e.user}})(r=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getLength=function(){var e=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,n=a.code,r=a.data;200==n&&e.setState({sum:r.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;g.d.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var n=t.data,r=n.code,s=n.data;200===r&&a.setState({bigcourse:Object.assign({},e,{isMore:!1,course:s,courseList:s})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;g.d.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var n=t.data,r=n.errno,s=n.data;200===r&&a.setState({freecourse:Object.assign({},e,{isMore:s.course_info.length>4,course:s.course_info.length>4?s.course_info.filter(function(e,t){return t<4}):s.course_info,courseList:s.course_info})})})},a.fetchGroupCourse=function(){var e=a.state.groupcourse;g.d.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var n=t.data,r=n.code,s=n.data;200===r&&a.setState({groupcourse:Object.assign({},e,{isMore:s.length>4,course:s.length>4?s.filter(function(e,t){return t<4}):s,courseList:s})})})},a.fetchAICourse=function(e,t){g.d.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(n){var r=n.data,s=r.code,o=r.data;200===s&&a.getList(e,o,t)})},a.getList=function(e,t,n){var r=a.state,s=r.basic,o=r.advanced,c=r.higher,i=r.expand;"one"===e&&a.setState({basic:Object.assign({},s,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"two"===e&&a.setState({advanced:Object.assign({},o,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"three"===e&&a.setState({higher:Object.assign({},c,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})})},a.toQQque=function(){Object(g.c)("version")?Object(g.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="http://q.url.cn/s/Vbkup6m?_type=wpa"},a.toCourse=function(e){var t=a.props.history;Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.handleToMore=function(e){var t={};a.state[e].isMore?(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList,courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(k.a)({},t))):(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(k.a)({},t)))},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.freeStudy=function(){a.setState({tofreeStudy:!0})},a.closePopup=function(){a.setState({tofreeStudy:!1})},a.closePopupWish=function(){var e=Object(w.a)(Object(w.a)(a));e.setState({isshowFollow:!1}),setTimeout(function(){e.toJoinList(e.state.wish.id,e.state.wish.key)},200)},a.getQRcodeUrl=function(){var e=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data,n=t.errno,r=t.data,s=t.msg;0==n?(a.setState({qrUrl:r.url}),E.a.toDataURL(r.url,function(e,t){a.setState({followBarcode:t})})):c.a.info(s,2)})},a.addWishList=function(e,t){var n=Object(w.a)(Object(w.a)(a)),r=!a.props.user.hasError;n.setState({wish:{id:e,key:t}}),r?n.isFollow(e,t):n.toLogin()},a.isFollow=function(e,t){var n=Object(w.a)(Object(w.a)(a));g.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var r=a.data,s=r.code,o=r.data,i=r.msg;200===s?(n.setState({isshowFollow:!o.is_follow}),n.state.isshowFollow?n.getQRcodeUrl():n.toJoinList(e,t)):c.a.info(i,2)})},a.toJoinList=function(e,t){var n=Object(w.a)(Object(w.a)(a));g.d.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,r=a.code,s=a.msg;200==r?(c.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),n.getLength(),"1"===t&&n.fetchAICourse("one",n.state.basic.addshowMore),"2"===t&&n.fetchAICourse("two",n.state.advanced.addshowMore),"3"===t&&n.fetchAICourse("three",n.state.higher.addshowMore),"4"===t&&n.fetchAICourse("four",n.state.expand.addshowMore),"group"===t&&n.fetchGroupCourse()):c.a.info(s,2)})},a.saveImage=function(){var e=Object(g.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.qrUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("generateQRCode",t)},a.saveImage2=function(){var e=Object(g.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(g.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){var o=r.info,i=r.removable_data;a.setState({removable:o.removable,currentId:o.removable>0?i[0].id:null})}else c.a.info(s)})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentId,n="";t&&(n="?id=".concat(t)),e?Object(g.c)("version")?a.props.history.push("/box/yearTreasure".concat(n,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/box/yearTreasure".concat(n)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?Object(g.c)("version")?a.props.history.push("/year/yearWish?version=".concat(Object(g.c)("version"))):a.props.history.push("/year/yearWish"):a.toLogin()},a.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.props.history;if(Object(g.c)("version")){var r={title:"\u3010\u4ec5\u5269".concat(t.number,"\u4e2a\u540d\u989d\u3011\u6211").concat(t.price,"\u5143\u62fc\u4e86\u300a").concat(t.course_title,"\u300b"),desc:t.course_title,link:"".concat(API.m,"/togroup?id=").concat(e,"&is_originator=1"),imgUrl:t.image_name};Object(g.a)("toShare",r)}else n.push("/togroup?id=".concat(e))},a.isCountDown=function(e,t){return e?t:""},a.formatTitleAndKey=function(e){var t=null;switch(e){case 1:t={title:"\u57fa\u7840",key:"basic"};break;case 2:t={title:"\u8fdb\u9636",key:"advanced"};break;case 3:t={title:"\u9ad8\u9636",key:"higher"};break;case 4:t={title:"\u6269\u5c55",key:"expand"};break;default:t=null}return t},a.formatCourseData=function(e){var t=a.state,n=t.basic,r=t.advanced,s=t.higher,o=t.expand,c=null;switch(e){case 1:c=n;break;case 2:c=r;break;case 3:c=s;break;case 4:c=o;break;default:c=null}return c},a.toCart=function(e){var t=a.props.history;g.d.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then(function(e){var n=e.data,r=n.code,s=n.msg;200===r||15001===r?Object(g.c)("version")?Object(g.a)("toShoppingCart"):t.push("/shopcart"):4030===r||4040===r?a.toLogin():c.a.info(s,2)})},a.toContinueBargain=function(e,t,n,r){var s=a.props.history;if(Object(g.c)("version")){var o={title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(t,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:"".concat(API.m,"/bargain-middle-page?id=").concat(e,"&bargaincode=").concat(n,"&is_originator=1"),imgUrl:r};Object(g.a)("toShare",o)}else s.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(n,"&is_originator=1"))},a.bargainToOrder=function(e){var t=a.props,n=t.history;t.user.hasError?a.toLogin():Object(g.c)("version")?Object(g.a)("toPay",e):g.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(t){var a=t.data,r=a.errno,s=a.msg;0===r?n.push("/order?id=[".concat(e,"]"),{bargain:1}):c.a.info(s,2)})},a.state={tofreeStudy:!1,basic:{course:[],courseList:[],isMore:!1,addshowMore:!1},advanced:{course:[],courseList:[],isMore:!1,addshowMore:!1},higher:{course:[],courseList:[],isMore:!1,addshowMore:!1},expand:{course:[],courseList:[],isMore:!1,addshowMore:!1},bigcourse:{course:[],courseList:[],isMore:!1},freecourse:{course:[],courseList:[],isMore:!1},groupcourse:{course:[],courseList:[],isMore:!1},isshowFollow:!1,wish:{id:"",key:""},followBarcode:"",qrUrl:"",sum:"",removable:"",currentId:""},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchGroupCourse(),this.fetchAICourse("one",!1),this.fetchAICourse("two",!1),this.fetchAICourse("three",!1),this.fetchAICourse("four",!1)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchGroupCourse(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"render",value:function(){var e=this.state,t=(e.bigcourse,e.freecourse,e.groupcourse,e.basic,e.advanced,e.higher,e.expand,e.removable),a=(e.sum,this.props);a.stage,a.treasureStage;return h.a.createElement("div",{className:"year-index-course"},t>0&&h.a.createElement("div",{className:"nav-right-wish nav-right"},h.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",h.a.createElement("i",{className:"nav-right__number"},t))))}}]),t}(d.Component))||r,C=Object(f.g)(I),L=(a(1235),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).fetchRankInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/ranking")).then(function(e){var t=e.data,n=t.code,r=t.data;200===n&&"{}"!==JSON.stringify(r)&&(r.length>5?a.setState({rank:r.filter(function(e,t){return t<5}),rankList:r,isMore:!0}):a.setState({rank:r,rankList:r,isMore:!1}))})},a.switchMoreRank=function(){var e=a.state,t=e.rankList;e.isMore?a.setState({rank:t,isMore:!1}):a.setState({rank:t.filter(function(e,t){return t<5}),isMore:!0})},a.handleToVip=function(e){var t=a.props.history;e&&(Object(g.c)("version")?Object(g.a)("toCourse",e):t.push("/detail?id=".concat(e)))},a.state={rank:[],rankList:[],isMore:!1},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.rank,n=t.isMore;return h.a.createElement(h.a.Fragment,null,0!==a.length&&h.a.createElement("div",{"data-skip":"rank"},h.a.createElement("div",{className:"rank-title"},h.a.createElement("i",{className:"rank-title__decorate"}),h.a.createElement("h2",{className:"rank-title__txt"},"\u5b9d\u7bb1\u8fbe\u4eba\u699c"),h.a.createElement("i",{className:"rank-title__decorate"})),h.a.createElement("p",{className:"rank-desc"},"\u5b9d\u7bb1\u6570\u91cf\u524d50\u540d\u53ef\u989d\u5916\u83b7\u5f97\u4e00\u4efd\u5956\u54c1\uff0c\u6570\u91cf\u76f8\u540c\u7684\u7528\u65f6\u77ed\u8005\u6392\u540d\u5728\u524d"),h.a.createElement("dl",{className:"rank-header"},h.a.createElement("dd",{className:"rank-column"},"\u6392\u540d"),h.a.createElement("dd",{className:"rank-column"},"\u7528\u6237"),h.a.createElement("dd",{className:"rank-column"},"\u5b9d\u7bb1\u6570\u91cf"),h.a.createElement("dd",{className:"rank-column"},"\u5956\u54c1")),h.a.createElement("div",{className:"rank-body"},a.map(function(t,a){return h.a.createElement("dl",{className:"rank-item",key:a},h.a.createElement("dd",{className:"rank-column"},a<=2?h.a.createElement("span",{className:"rank-column__number","data-num":a}):h.a.createElement("span",null,a+1)),h.a.createElement("dd",{className:"rank-column"},h.a.createElement("span",{className:"rank-column__name"},t.user_name)),h.a.createElement("dd",{className:"rank-column"},h.a.createElement("span",null,t.num)),h.a.createElement("dd",{className:"rank-column"},t.url?h.a.createElement("a",{className:"rank-column__txt",onClick:function(){return e.handleToVip(t.url)}},t.prize_name):h.a.createElement("span",{className:"rank-column__txt"},t.prize_name)))}),h.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},h.a.createElement("span",{className:"rank-more__txt"},n?"\u5c55\u5f00":"\u6536\u8d77"),h.a.createElement("i",{className:"rank-more__icon","data-more":n})))))}}]),t}(d.Component)),S=(a(1236),a(24)),M=a(35),x=a.n(M),A=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){g.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){var o=r.prize_info,i=r.is_my_team,l=r.info,u=r.member,m=r.removable_data,p=r.my_team;a.setState({prize_info:o,is_my_team:i,info:l,member:a.fillTeam(u,i),removable_data:m,my_team:p});var d=null;l.removable>0&&(d=m[0].id),a.props.getRemovable(l.removable,d)}else c.a.info(s)})},a.toYearTreasure=function(e){if(a.props.user.hasError)a.toLogin();else{var t="";if(e){var n=a.state,r=n.removable_data;if(n.info.removable>0){var s=r[0];t="?id=".concat(s.id)}}Object(g.c)("version")?a.props.history.push("/box/yearTreasure".concat(t,"?version=").concat(Object(g.c)("version"))):a.props.history.push("/box/yearTreasure".concat(t))}},a.toLogin=function(){Object(g.c)("version")?Object(g.a)("toLogin"):a.props.history.push("/passport/login")},a.createTeam=function(){if(a.props.user.hasError)a.toLogin();else{sessionStorage.setItem("showShareTip","1");var e=a.state,t=e.is_my_team,n=e.my_team.treasure_code;t?Object(g.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+n+"&version="+Object(g.c)("version")):window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+n):g.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,a=t.code,n=t.data,r=t.msg;if(200===a){var s=n.treasure_code;Object(g.c)("version")?window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+s+"&version="+Object(g.c)("version")):window.location.assign("https://h5.julyedu.com/box/landing?origin=1&treasure_code="+s)}else c.a.info(r)})}},a.fillTeam=function(e,t){var n=e.length;if(a.props.user.hasError)for(var r=0;r<5-n;r++)e.push({head_img:"",user_name:"",nobody:!0});else if(0!==n||t)for(var s=0;s<5-n;s++)e.push({head_img:"",user_name:"",nobody:!0});else{e.push({head_img:x.a.get("avatar_file"),user_name:x.a.get("user_name")});for(var o=0;o<4;o++)e.push({head_img:"",user_name:"",nobody:!0})}return e},a.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,r=t.info,s=r.removable,o=r.total,c=t.member,i="",l=0;a.length>0&&(i=a[0].name,l=a[0].stage_no);var u="";return u=0===o?"\u6211\u7684\u5b9d\u7bb1":0===s?"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(o,"\u4e2a\u5b9d\u7bb1/").concat(s,"\u4e2a\u672a\u5f00"),h.a.createElement("div",{className:"team_info__container"},h.a.createElement("div",{className:"team__member"},h.a.createElement("ul",{className:"member__list"},c&&c.length>0&&c.map(function(e,t){return h.a.createElement("li",{key:t,className:"member__item"},h.a.createElement("div",{className:"avatar__container"},e.nobody?h.a.createElement("img",{className:"head__image",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:""}):h.a.createElement("img",{className:"head__image",src:e.head_img,alt:""}),0===t?h.a.createElement("img",{className:"caption__flag",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png",alt:""}):null,h.a.createElement("div",{className:"shadow"})),h.a.createElement("div",{className:"member__join ".concat(e.nobody?"":"join")}))})),h.a.createElement("div",{className:"box__number"},h.a.createElement("img",{onClick:function(){return e.toYearTreasure(!0)},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("p",{onClick:function(){return e.toYearTreasure(!1)},className:"box__text"},u),h.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),s>0&&h.a.createElement("div",{className:"position__number"},s))),h.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&i&&h.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d").concat(i)))}}]),t}(d.Component),P=Object(S.d)(Object(_.b)(function(e){return{user:e.user}},null),f.g)(A),U=(a(1237),a(10)),z=Object(U.a)(function(){return a.e(40).then(a.bind(null,1259))}),T=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.state={prizes:[],notices:[],rule:[],unfoldList:!1},a.getPrizes=function(){g.d.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;200==n?a.setState({prizes:r.prize_data,notices:r.notices,rule:r.rule}):c.a.info(s,2,null,!1)})},a.showRules=function(){Object(y.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:h.a.createElement("div",{dangerouslySetInnerHTML:{__html:a.state.rule}}),closeIcon:a.closeIcon})},a.showMore=function(){a.setState(function(e){if(a.state.unfoldList)a.bg.style=a.innerBox.style=a.prizeBox.style="";else{var t=parseFloat(getComputedStyle(a.prizeBox,":before").getPropertyValue("height")),n=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),r=a.prizeList.scrollHeight,s=t+r-.12458*t-.595*n+n;a.prizeBox.style.height="".concat(s+27,"px"),a.innerBox.style.height="".concat(r,"px"),a.bg.style.height="".concat(r-n+.12458*t+27,"px")}return{unfoldList:!e.unfoldList}})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices,a=this.state.notices;return h.a.createElement(h.a.Fragment,null,t&&a&&a.length?h.a.createElement(z,{bullets:a}):null,h.a.createElement("div",{className:"prizes-box",ref:function(t){return e.prizeBox=t}},h.a.createElement("a",{href:"javascript:;",className:"rule-btn",onClick:this.showRules},"\u6d3b\u52a8\u89c4\u5219 > "),h.a.createElement("div",{className:"bg",ref:function(t){return e.bg=t}}),h.a.createElement("div",{className:"inner-box",ref:function(t){return e.innerBox=t}},h.a.createElement("ul",{className:"prize-list",ref:function(t){return e.prizeList=t}},this.state.prizes.map(function(e,t){return h.a.createElement("li",{key:t},e.img_name?h.a.createElement("i",{className:"prize-list__image",style:{backgroundImage:"url(".concat(e.img_name,")")}}):h.a.createElement("i",{className:"prize-list__image"}),0!=e.is_captain&&h.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&h.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u4e2a\u5fc5\u4e2d"),e.grant_max?h.a.createElement("div",{className:"bottom-bar"},h.a.createElement("div",{className:"progress-bar"},h.a.createElement("span",{className:"progress",style:{width:"".concat(e.surplus/e.grant_max*100,"%")}})),h.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):h.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))}),h.a.createElement("li",null,h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),h.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?h.a.createElement("div",null,"\u6536\u8d77",h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):h.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),t}(d.Component),D=a(120),R=a(159),B=(a(261),a(1238),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={bulletScreenData:[]},a.initializeBulletScreen=function(){var e=Object(w.a)(Object(w.a)(a)),t=Object(D.a)(Array(19).keys()),n=!1;a.swiper=new R.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var a=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||n||(this.autoplay.stop(),e.getBulletScreenData().then(function(r){n=!0,a.removeSlide(t),a.appendSlide(e.getSlides(r)),setTimeout(function(){a.autoplay.start(),n=!1})}))}}})},a.getSlides=function(e){return e.map(function(e){return'\n <li class="swiper-slide">\n <img class="avatar" src="'.concat(e.avatar_file,'" alt="">\n <span>').concat(e.user_name," ").concat(e.msg,"</span>\n </li>\n ")})},a.getBulletScreenData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g.d.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var n=t.data,r=n.data;if(200==n.code){if(!e)return r;a.setState({bulletScreenData:r},function(){a.initializeBulletScreen()})}})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getBulletScreenData(!0)}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy()}},{key:"render",value:function(){var e=this.state.bulletScreenData;return h.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},h.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map(function(e,t){return h.a.createElement("li",{className:"swiper-slide",key:t},h.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),h.a.createElement("span",null,e.user_name," ",e.msg))})))}}]),t}(d.Component)),F=function(e){function t(e){return Object(i.a)(this,t),Object(u.a)(this,Object(m.a)(t).call(this,e))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return h.a.createElement(v,{id:"year-treasure",title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},h.a.createElement("div",{style:{textAlign:"center",fontSize:"12px",color:"#FFDC1E",marginTop:"10px"}},"\u9080\u8bf7\u597d\u53cb\u7ec4\u961f\u4e00\u8d77\u5f00\u5b9d\u7bb1\uff0c\u6ee15\u4eba\u540e\u5c06\u968f\u673a\u83b7\u5f97\u4ee5\u4e0b\u5956\u54c1~"),h.a.createElement(T,{showSystemNotices:!0}),h.a.createElement(B,null),h.a.createElement(P,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),h.a.createElement(L,{history:this.props.history}))}}]),t}(d.Component),q=Object(f.g)(F),Q=a(18),H=a.n(Q),V=(a(1239),d.Component,a(26));a.d(t,"default",function(){return W});var W=Object(_.b)(function(e){return{user:e.user}},{setCurrentUser:V.g,startFetchUser:V.h})(s=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(u.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(r)))).state={removable:0,currentOpenId:0,treasure_stage:0,activity_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/box_banner.png"},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(N.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){x.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),x.a.get("token")&&x.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.closePopup=function(){a.setState({showMark:!1})},a.getRemovable=function(e,t){},a.getStage=function(){g.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,r=t.data,s=t.msg;if(200===n){if(0===Number(r.treasure_stage))return void a.props.history.push("/");a.setState({activity_stage:r.activity_stage,treasure_stage:r.treasure_stage}),r.activity_stage,a.setState({banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/box_banner.png"})}else c.a.info(s,2)})},a}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage(),document.title="AI\u5c31\u4e1a\u5b63\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u62ffVIP\u5e74\u4f1a\u5458\uff0c200\u672c\u7a0b\u5e8f\u5458\u5fc5\u5907\u7eb8\u8d28\u4e66\u514d\u8d39\u5305\u90ae\u9001\uff01- \u4e03\u6708\u5728\u7ebf"}},{key:"render",value:function(){var e=this.state,t=e.banner,a=e.activity_stage,n=e.treasure_stage;return h.a.createElement("div",{className:"year-index"},h.a.createElement("div",{className:"banner-treasure"},h.a.createElement("img",{src:t,alt:""}),h.a.createElement("div",{className:"banner-treasure__decorate"})),1===n&&h.a.createElement(q,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),h.a.createElement(C,{stage:a,treasureStage:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),h.a.createElement("p",{className:"sub__tip"},"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),h.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"))),this.state.showMark&&h.a.createElement(b,{top:50,closePopup:this.closePopup,mark:!0},h.a.createElement("div",{className:"sub__code_container"},h.a.createElement("p",{className:"sub__title"},"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219"),h.a.createElement("p",{className:"sub__rule"},"1. \u6d3b\u52a8\u671f\u95f4\uff083\u670826\u65e5-3\u670831\u65e5\uff09\u53ef\u968f\u65f6\u53c2\u4e0e\u5f00\u5b9d\u7bb1\uff1b",h.a.createElement("br",null),"2. \u5f53\u524d\u961f\u4f0d\u6ee1\u5458\u540e\u53ef\u7ee7\u7eed\u521b\u5efa\u65b0\u961f\u4f0d\uff1b",h.a.createElement("br",null),"3. \u6bcf\u4eba\u6709\u4e00\u6b21\u673a\u4f1a\u52a0\u5165\u597d\u53cb\u7684\u961f\u4f0d\uff1b",h.a.createElement("br",null),"4. \u961f\u4f0d\u6ee1\u5458\u540e\u6240\u6709\u6210\u5458\u5747\u53ef\u968f\u673a\u83b7\u5f97\u5b9d\u7bb1\u5185\u5956\u54c1\uff0c\u961f\u957f\u5956\u52b1\u66f4\u4e30\u539a\u54e6~",h.a.createElement("br",null),"5. \u4ee3\u91d1\u5238\u3001\u8bfe\u7a0b\u7b49\u865a\u62df\u5956\u54c1\u5c06\u76f4\u63a5\u53d1\u653e\u81f3\u8d26\u6237\uff0c\u5b9e\u7269\u5956\u54c1\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4\uff1b",h.a.createElement("br",null),"6. \u73b0\u91d1\u53ef\u63d0\u73b0\uff1a\u6211\u7684 \u2192 \u8d5a\u5956\u5b66\u91d1 \u2192 \u63d0\u73b0\u3002"))),h.a.createElement("div",{className:"btm-rule"},"* \u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709 *"))}}]),t}(d.Component))||s},627:function(e,t,a){"use strict";var n=a(4),r=a(7),s=a(5),o=a(8),c=a(9),i=a(0),l=a.n(i),u=(a(642),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(s.a)(this,Object(o.a)(t).call(this,e))).startCountDown=function(e){if(e){var t=1e3*e,n=0,r=0,s=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),r="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),s="".concat(parseInt((t-36e5*n-6e4*r)/1e3)).padStart(2,0),a.setState({countdown:"".concat(n,"\u65f6").concat(r,"\u5206").concat(s,"\u79d2\u540e\u7ed3\u675f")})},1e3)}},a.state={countdown:""},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.time;this.startCountDown(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.time;this.props.time!=t&&this.startCountDown(t)}},{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id,r=this.state.countdown;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},r&&l.a.createElement("p",{className:"course__time"},r),l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(i.Component));t.a=u},642:function(e,t,a){}}]);
//# sourceMappingURL=treasure-box-home.83c24468.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{1310:function(e,t,a){"use strict";a.r(t);var n,i=a(120),c=a(20),o=(a(37),a(11)),s=a.n(o),r=a(4),d=a(7),l=a(5),u=a(8),p=a(9),m=a(74),h=(a(259),a(93)),v=a.n(h),f=a(0),y=a.n(f),g=a(165),b=(a(827),a(14)),E=a(45),_=a(3),S=a(21),w=(a(75),a(828),a(606)),N=function(e){var t=e.item;return y.a.createElement("div",{className:"bottom"},y.a.createElement("span",{className:"price"},"\xa5",t.price1),y.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},P=Object(S.b)()(n=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){_.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):s.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?y.a.createElement("div",{className:"recommendation"},y.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),y.a.createElement("ul",null,this.state.list.map(function(t){var a=y.a.createElement("div",{className:"info"},y.a.createElement("p",{className:"title text-overflow-1"},t.course_title),y.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),y.a.createElement(N,{item:t}));return y.a.createElement(w.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(f.PureComponent))||n,I=(a(829),a(18)),O=a.n(I),k=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){var e=this;return y.a.createElement("div",{className:"video-catalog"},y.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return y.a.createElement("li",{key:t.id,className:O()({active:e.props.activeIndex===a})},y.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},y.a.createElement("span",{className:"title"},t.name),y.a.createElement("span",{className:"duration"},t.duration),y.a.createElement("i",{className:O()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),e.props.isAist?t.video_auth?t.practice&&t.practice.qid?y.a.createElement(b.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},y.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,y.a.createElement("i",{className:O()("iconfont",t.practice.is_tested?"iconiconfront-3":"")}))):null:y.a.createElement("a",{href:"javascript:void(0)"},y.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,y.a.createElement("i",{className:O()("iconfont","iconiconfront-74")}))):t.practice_common.map(function(e,a){return t.video_auth?y.a.createElement(b.b,{to:{pathname:e.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(e.qid),state:{from:"/play/video".concat(window.location.search)}},key:a},y.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",e.title,y.a.createElement("i",{className:O()("iconfont",e.is_tested?"iconiconfront-3":"")}))):y.a.createElement("a",{href:"javascript:void(0)"},y.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",e.title,y.a.createElement("i",{className:O()("iconfont","iconiconfront-74")})))}))})))}}]),t}(f.Component),x=(a(629),a(631)),j=a.n(x),C=(a(830),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){var e=this.props.datum;return y.a.createElement("div",{className:"datum-catalog"},y.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),y.a.createElement(j.a,null,e&&e.length&&e.map(function(e,t){return y.a.createElement(j.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return y.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(f.Component));C.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var T=C,A=a(816),L=(a(866),a(25)),B=a(36),R=a.n(B),F=a(675),D=a(676),W=a(1261),M=A.a.getComponent("Component"),J=A.a.getComponent("Button"),V=function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(d.a)(t,[{key:"createEl",value:function(){return Object(W.a)(Object(u.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(M),z=function(e){function t(e,a){var n;return Object(r.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(p.a)(t,e),Object(d.a)(t,[{key:"createEl",value:function(){return Object(W.a)(Object(u.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(J);M.registerComponent("CustomPlayButton",z),V.prototype.options_={children:["CustomPlayButton"]},M.registerComponent("CustomPlayButtonCover",V);var q=v.a.alert;function H(e){return e.isShow&&y.a.createElement("div",{className:"progress-share-modal-wrapper"},y.a.createElement("div",{className:"progress-share-modal"},y.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),y.a.createElement("ul",{className:"progress-container"},y.a.createElement("li",null,y.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),y.a.createElement("div",{className:"number"},y.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),y.a.createElement("li",null,y.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),y.a.createElement("div",{className:"number"},y.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),y.a.createElement("div",{className:"share-container"},y.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),y.a.createElement("ul",null,y.a.createElement("li",{className:"share-icon"},y.a.createElement("a",{style:{display:"block"},href:e.data.url},y.a.createElement("div",{className:"icon"},y.a.createElement("i",{className:"iconfont iconweixinzhifu"})),y.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),y.a.createElement("li",{className:"share-icon"},y.a.createElement("a",{style:{display:"block"},href:e.data.url},y.a.createElement("div",{className:"icon"},y.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),y.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),y.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var U=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.isCurrentVideoFirstPlay=!0,a.RECENTLEARN="recent_learn",a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0,limitFreeNoPromptChecked:!1,showLimitFreePopup:!1,limitFreePopup:{},isShowNeverShowPopupOption:!1,limitFreePopupVideos:JSON.parse(localStorage.getItem("limit-free-popup-videos"))},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;_.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):s.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(m.a)(Object(m.a)(a));Object(_.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){_.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(_.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,_.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(_.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}):s.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(m.a)(Object(m.a)(a)),t=Object(_.c)("code");if(t){if(!Object(_.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),_.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(_.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?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){_.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(_.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,_.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(_.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}):s.a.info(t.data.data.msg,2)}))})},1e3)):q("\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 s.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),_.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}):s.a.info(e.data.data.msg,2)})},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer),a.timer=null}),a.ws.addEventListener("message",function(e){var t=JSON.parse(e.data);4040==t.code&&(a.reconnect=!1),0===t.code&&t.data&&t.data.position&&a.player.currentTime(t.data.position)})},a.sendMessage=function(e){var t=a.ws.readyState,n=Object(m.a)(Object(m.a)(a));if(1===t)a.ws&&a.ws.send(JSON.stringify(e));else if(3===t){a.ws.close(),a.ws=null;var i=setTimeout(function(){clearTimeout(i),i=null,n.ws=new WebSocket(PROCESS_URL)},500)}},a.getShareProgressInfo=function(){_.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId,c=e.course,o=void 0===c?{}:c;if(0!==Number(o.course_id)&&""!==o.course_id){var s=0;o.is_aist&&(s=2),a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,ctype:s})}},a.sendWatchTime=function(e,t){var n=a.state,i=n.videoList,c=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(e)){var d=0;r.is_aist&&(d=2),a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:i[c].id,course_id:a.state.courseId,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:5,position:parseInt(a.player.currentTime()),ctype:d})}},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=null,a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,!a.player.paused()&&a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(A.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("play",function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId;e.course;a.isCurrentVideoFirstPlay&&(a.isCurrentVideoFirstPlay=!1,a.ws.send(JSON.stringify({mtype:a.RECENTLEARN,uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,is_live:0}))),a.timer||a.setupTimer()}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0,a.countSchedule(),a.state.course.is_aist&&a.getShareProgressInfo(),clearInterval(a.timer),a.timer=null,a.state.limitFreePopup.is_free&&a.setState({showLimitFreePopup:!0})})},a.sendLastRecord=function(){_.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(a.isCurrentVideoFirstPlay=!0,a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.setupTimer(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";Object(_.c)("video_id")?(e="".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(_.c)("video_id")),_.d.post("".concat(API["base-api"],"/sys/get_class_audition"),{video_id:Object(_.c)("video_id")})):e="".concat(API.home,"/m/course/play/").concat(a.courseID),_.d.get(e).then(function(e){var t=e.data,n=t.data,i=void 0===n?{}:n;200===t.code?(a.setState(function(e){return{videoList:i.lessons,currentVideoSrc:i.lessons[e.activeIndex].play_url,course:i.course,courseId:i.course.course_id,vCourseId:i.course.v_course_id,title:i.course.course_title,isLoading:!1}},a.playSetup),i.course.course_id&&a.getLimitFreePopup(i.course.course_id)):s.a.info(i.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e,n=Object(m.a)(Object(m.a)(a));a.setupWS(),a.setupTimer();var i=setTimeout(function(){clearTimeout(i),i=null,n.countSchedule()},1e3),c=a.getLastVideoIndex(t.last_video_id);c=c>=0?c:0,a.setState({activeIndex:c},function(){a.lessonAvailable(c)?a.hasAuth(c)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():q("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.ready(function(){a.player.play()})},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;_.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a.getLimitFreePopup=function(e){_.d.post("".concat(API.home,"/sys/popup"),{course_id:e}).then(function(e){var t=e.data,n=t.code,i=t.msg,c=t.data;if(200===n){var o=a.state,r=o.courseId,d=o.limitFreePopupVideos;a.setState({limitFreePopup:c,isShowNeverShowPopupOption:!!d&&d.includes(r)})}else s.a.info(i,2,null,!1)})},a.checkNeverShowLimitFreePopup=function(){a.state.limitFreeNoPromptChecked&&_.d.post("".concat(API.home,"/sys/checklist"),{course_id:a.state.course.course_id}).then(function(e){var t=e.data,n=t.code,i=t.msg;200===n?a.setState({limitFreePopup:Object(c.a)({},a.state.limitFreePopup,{is_free:0})}):s.a.info(i,2,null,!1)})},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){if("https:"!==window.location.protocol)if(this.courseID=Object(_.c)("id"),this.courseID){this.setState({courseId:this.courseID});var e=this.props,t=(e.location,e.location.state),a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(_.c)("is_class")||Object(_.c)("weixinpay"))&&this.payCallback(),_.b.isWeixin&&this.isweixinPay(),this.token=R.a.get("token"),this.getVideoList(),this.getDatumCatalog()}else this.props.history.replace("/");else window.location.replace("http"+window.location.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.timer=null,this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;_.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):s.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,c=t.history,o=this.state,s=o.videoList,r=o.activeIndex,d=o.isAuth,l=o.salePrice,u=o.course,p=o.singleBox,m=o.singleType,h=o.showLimitFreePopup,v=o.limitFreePopup,f=o.isShowNeverShowPopupOption,_="";return n.state&&n.state.to&&"detail"===n.state.to&&(_="/detail?id=".concat(u.course_id)),y.a.createElement("div",{className:"play"},y.a.createElement(g.a,{title:this.state.title,arrow:!0,toHref:function(){_?c.push(_,{to:"classify"}):c.go(-1)}}),y.a.createElement(L.f,{isLoading:this.state.isLoading},y.a.createElement("div",{className:"video"},y.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t},"webkit-playsinline":"true",playsInline:!0,"x-webkit-airplay":"allow","x5-video-player-type":"h5"},y.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!d&&!!s[r].is_class&&y.a.createElement("div",{className:"purchase-box"},y.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),y.a.createElement("div",{className:"btns"},y.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",l," \u8d2d\u4e70\u8bfe\u7a0b"),y.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,s[r]),className:"purchase-episode"},"\xa5",s.length&&s[r].class_price," \u8d2d\u4e70\u5355\u96c6"))),!d&&!!u.is_aist&&y.a.createElement("div",{className:"is-aist-box"},y.a.createElement("i",{className:"iconfont iconiconfront-21"}),y.a.createElement("p",{className:"time"},s[r].aist_start_time),y.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),y.a.createElement("div",{className:"tab"},y.a.createElement("div",null,y.a.createElement(b.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),y.a.createElement("div",null,y.a.createElement(b.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),p&&y.a.createElement(F.a,{courseId:u.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:u.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==m&&y.a.createElement(D.a,{courseId:u.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:m,vcourseId:u.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),y.a.createElement(E.d,null,y.a.createElement(E.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),y.a.createElement(E.b,{path:"".concat(a.path,"/video"),render:function(t){return y.a.createElement(k,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:s,isAist:u.is_aist},t))}}),y.a.createElement(E.b,{path:"".concat(a.path,"/datum"),render:function(t){return y.a.createElement(T,Object.assign({},t,{datum:e.state.datum}))}})),y.a.createElement(E.b,{render:function(t){return e.state.vCourseId?y.a.createElement(P,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),y.a.createElement(H,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}),h&&y.a.createElement("div",{className:"limit-free-cover"},y.a.createElement("div",{className:"free-popup"},y.a.createElement("div",{className:"title"},y.a.createElement("span",null,v.pop_descbition)),y.a.createElement("div",{className:"des"},y.a.createElement("img",{className:"qrcode",src:v.wechat_img,alt:""}),y.a.createElement("span",null,"\u957f\u6309/\u626b\u7801\u8bc6\u522b"),y.a.createElement("span",null,"\u6dfb\u52a0\u65f6\u8bf7\u5907\u6ce8",y.a.createElement("span",null,u.course_id),"\u54e6"),y.a.createElement("div",{className:"no-prompt"},f&&y.a.createElement("label",{htmlFor:"no-prompt"},y.a.createElement("span",{className:"checkbox-label ".concat(this.state.limitFreeNoPromptChecked?"checked":"unchecked")},y.a.createElement("i",{className:"iconfont iconiconfront-73"})),y.a.createElement("input",{type:"checkbox",id:"no-prompt",onChange:function(t){e.setState({limitFreeNoPromptChecked:t.target.checked})}}),y.a.createElement("span",null,"\u672c\u8bfe\u7a0b\u4e0d\u518d\u63d0\u793a")))),y.a.createElement("i",{className:"close-btn iconfont iconiconfront-2",onClick:function(){e.setState({showLimitFreePopup:!1,isShowNeverShowPopupOption:!0});var t=e.state,a=t.courseId,n=t.limitFreePopupVideos;localStorage.setItem("limit-free-popup-videos",JSON.stringify(n?[].concat(Object(i.a)(n),[a]):[a])),e.checkNeverShowLimitFreePopup()}}))))}}]),t}(f.Component);t.default=Object(S.b)(function(e){return{user:e.user}},null)(U)},606:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(607);t.a=function(e){return i.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},i.a.createElement("div",{className:"content"},i.a.createElement("div",{className:"cover"},e.status,i.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},607:function(e,t,a){},633:function(e,t,a){},675:function(e,t,a){"use strict";a(37);var n=a(11),i=a.n(n),c=a(4),o=a(7),s=a(5),r=a(8),d=a(9),l=a(74),u=a(0),p=a.n(u),m=(a(633),a(3)),h=a(45),v=a(24),f=a(21),y=a(52),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):i.a.info(t.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(l.a)(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?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(l.a)(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}):i.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,i=Object(y.differenceInMinutes)(new Date(t),a)%60,c=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(v.d)(Object(f.b)(function(e){return{user:e.user}},null),h.g)(g)},676:function(e,t,a){"use strict";a(37);var n=a(11),i=a.n(n),c=a(4),o=a(7),s=a(5),r=a(8),d=a(9),l=a(0),u=a.n(l),p=(a(633),a(3)),m=a(45),h=a(24),v=a(21),f=a(52),y=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.c)("id");p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);p.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):i.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(f.differenceInSeconds)(new Date(t),a)%60,i=Object(f.differenceInMinutes)(new Date(t),a)%60,c=Object(f.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}var n=this.props.singleType,i=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(v.b)(function(e){return{user:e.user}},null),m.g)(y)},827:function(e,t,a){},828:function(e,t,a){},829:function(e,t,a){},830:function(e,t,a){},832:function(e,t){}}]);
//# sourceMappingURL=video.340c63ed.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{1310:function(e,t,a){"use strict";a.r(t);var n,i=a(120),c=a(20),o=(a(37),a(11)),s=a.n(o),r=a(4),d=a(7),l=a(5),u=a(8),p=a(9),m=a(74),h=(a(259),a(93)),v=a.n(h),f=a(0),y=a.n(f),g=a(165),b=(a(827),a(14)),E=a(45),_=a(3),S=a(21),w=(a(75),a(828),a(606)),N=function(e){var t=e.item;return y.a.createElement("div",{className:"bottom"},y.a.createElement("span",{className:"price"},"\xa5",t.price1),y.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},P=Object(S.b)()(n=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){_.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):s.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?y.a.createElement("div",{className:"recommendation"},y.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),y.a.createElement("ul",null,this.state.list.map(function(t){var a=y.a.createElement("div",{className:"info"},y.a.createElement("p",{className:"title text-overflow-1"},t.course_title),y.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),y.a.createElement(N,{item:t}));return y.a.createElement(w.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(f.PureComponent))||n,I=(a(829),a(18)),O=a.n(I),k=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){var e=this;return y.a.createElement("div",{className:"video-catalog"},y.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return y.a.createElement("li",{key:t.id,className:O()({active:e.props.activeIndex===a})},y.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},y.a.createElement("span",{className:"title"},t.name),y.a.createElement("span",{className:"duration"},t.duration),y.a.createElement("i",{className:O()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),e.props.isAist?t.video_auth?t.practice&&t.practice.qid?y.a.createElement(b.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},y.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,y.a.createElement("i",{className:O()("iconfont",t.practice.is_tested?"iconiconfront-3":"")}))):null:y.a.createElement("a",{href:"javascript:void(0)"},y.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,y.a.createElement("i",{className:O()("iconfont","iconiconfront-74")}))):t.practice_common.map(function(e,a){return t.video_auth?y.a.createElement(b.b,{to:{pathname:e.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(e.qid),state:{from:"/play/video".concat(window.location.search)}},key:a},y.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",e.title,y.a.createElement("i",{className:O()("iconfont",e.is_tested?"iconiconfront-3":"")}))):y.a.createElement("a",{href:"javascript:void(0)"},y.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",e.title,y.a.createElement("i",{className:O()("iconfont","iconiconfront-74")})))}))})))}}]),t}(f.Component),x=(a(629),a(631)),j=a.n(x),C=(a(830),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(d.a)(t,[{key:"render",value:function(){var e=this.props.datum;return y.a.createElement("div",{className:"datum-catalog"},y.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),y.a.createElement(j.a,null,e&&e.length&&e.map(function(e,t){return y.a.createElement(j.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return y.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(f.Component));C.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var T=C,A=a(816),L=(a(866),a(25)),B=a(35),R=a.n(B),F=a(675),D=a(676),W=a(1261),M=A.a.getComponent("Component"),J=A.a.getComponent("Button"),V=function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(d.a)(t,[{key:"createEl",value:function(){return Object(W.a)(Object(u.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(M),z=function(e){function t(e,a){var n;return Object(r.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(p.a)(t,e),Object(d.a)(t,[{key:"createEl",value:function(){return Object(W.a)(Object(u.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(J);M.registerComponent("CustomPlayButton",z),V.prototype.options_={children:["CustomPlayButton"]},M.registerComponent("CustomPlayButtonCover",V);var q=v.a.alert;function H(e){return e.isShow&&y.a.createElement("div",{className:"progress-share-modal-wrapper"},y.a.createElement("div",{className:"progress-share-modal"},y.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),y.a.createElement("ul",{className:"progress-container"},y.a.createElement("li",null,y.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),y.a.createElement("div",{className:"number"},y.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),y.a.createElement("li",null,y.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),y.a.createElement("div",{className:"number"},y.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),y.a.createElement("div",{className:"share-container"},y.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),y.a.createElement("ul",null,y.a.createElement("li",{className:"share-icon"},y.a.createElement("a",{style:{display:"block"},href:e.data.url},y.a.createElement("div",{className:"icon"},y.a.createElement("i",{className:"iconfont iconweixinzhifu"})),y.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),y.a.createElement("li",{className:"share-icon"},y.a.createElement("a",{style:{display:"block"},href:e.data.url},y.a.createElement("div",{className:"icon"},y.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),y.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),y.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var U=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.isCurrentVideoFirstPlay=!0,a.RECENTLEARN="recent_learn",a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0,limitFreeNoPromptChecked:!1,showLimitFreePopup:!1,limitFreePopup:{},isShowNeverShowPopupOption:!1,limitFreePopupVideos:JSON.parse(localStorage.getItem("limit-free-popup-videos"))},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;_.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):s.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(m.a)(Object(m.a)(a));Object(_.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){_.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(_.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,_.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(_.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}):s.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(m.a)(Object(m.a)(a)),t=Object(_.c)("code");if(t){if(!Object(_.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),_.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(_.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?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){_.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(_.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,_.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(_.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}):s.a.info(t.data.data.msg,2)}))})},1e3)):q("\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 s.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),_.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}):s.a.info(e.data.data.msg,2)})},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer),a.timer=null}),a.ws.addEventListener("message",function(e){var t=JSON.parse(e.data);4040==t.code&&(a.reconnect=!1),0===t.code&&t.data&&t.data.position&&a.player.currentTime(t.data.position)})},a.sendMessage=function(e){var t=a.ws.readyState,n=Object(m.a)(Object(m.a)(a));if(1===t)a.ws&&a.ws.send(JSON.stringify(e));else if(3===t){a.ws.close(),a.ws=null;var i=setTimeout(function(){clearTimeout(i),i=null,n.ws=new WebSocket(PROCESS_URL)},500)}},a.getShareProgressInfo=function(){_.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId,c=e.course,o=void 0===c?{}:c;if(0!==Number(o.course_id)&&""!==o.course_id){var s=0;o.is_aist&&(s=2),a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,ctype:s})}},a.sendWatchTime=function(e,t){var n=a.state,i=n.videoList,c=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(e)){var d=0;r.is_aist&&(d=2),a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:i[c].id,course_id:a.state.courseId,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:5,position:parseInt(a.player.currentTime()),ctype:d})}},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=null,a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,!a.player.paused()&&a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(A.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("play",function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId;e.course;a.isCurrentVideoFirstPlay&&(a.isCurrentVideoFirstPlay=!1,a.ws.send(JSON.stringify({mtype:a.RECENTLEARN,uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,is_live:0}))),a.timer||a.setupTimer()}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0,a.countSchedule(),a.state.course.is_aist&&a.getShareProgressInfo(),clearInterval(a.timer),a.timer=null,a.state.limitFreePopup.is_free&&a.setState({showLimitFreePopup:!0})})},a.sendLastRecord=function(){_.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(a.isCurrentVideoFirstPlay=!0,a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.setupTimer(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";Object(_.c)("video_id")?(e="".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(_.c)("video_id")),_.d.post("".concat(API["base-api"],"/sys/get_class_audition"),{video_id:Object(_.c)("video_id")})):e="".concat(API.home,"/m/course/play/").concat(a.courseID),_.d.get(e).then(function(e){var t=e.data,n=t.data,i=void 0===n?{}:n;200===t.code?(a.setState(function(e){return{videoList:i.lessons,currentVideoSrc:i.lessons[e.activeIndex].play_url,course:i.course,courseId:i.course.course_id,vCourseId:i.course.v_course_id,title:i.course.course_title,isLoading:!1}},a.playSetup),i.course.course_id&&a.getLimitFreePopup(i.course.course_id)):s.a.info(i.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e,n=Object(m.a)(Object(m.a)(a));a.setupWS(),a.setupTimer();var i=setTimeout(function(){clearTimeout(i),i=null,n.countSchedule()},1e3),c=a.getLastVideoIndex(t.last_video_id);c=c>=0?c:0,a.setState({activeIndex:c},function(){a.lessonAvailable(c)?a.hasAuth(c)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():q("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.ready(function(){a.player.play()})},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;_.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a.getLimitFreePopup=function(e){_.d.post("".concat(API.home,"/sys/popup"),{course_id:e}).then(function(e){var t=e.data,n=t.code,i=t.msg,c=t.data;if(200===n){var o=a.state,r=o.courseId,d=o.limitFreePopupVideos;a.setState({limitFreePopup:c,isShowNeverShowPopupOption:!!d&&d.includes(r)})}else s.a.info(i,2,null,!1)})},a.checkNeverShowLimitFreePopup=function(){a.state.limitFreeNoPromptChecked&&_.d.post("".concat(API.home,"/sys/checklist"),{course_id:a.state.course.course_id}).then(function(e){var t=e.data,n=t.code,i=t.msg;200===n?a.setState({limitFreePopup:Object(c.a)({},a.state.limitFreePopup,{is_free:0})}):s.a.info(i,2,null,!1)})},a}return Object(p.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){if("https:"!==window.location.protocol)if(this.courseID=Object(_.c)("id"),this.courseID){this.setState({courseId:this.courseID});var e=this.props,t=(e.location,e.location.state),a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(_.c)("is_class")||Object(_.c)("weixinpay"))&&this.payCallback(),_.b.isWeixin&&this.isweixinPay(),this.token=R.a.get("token"),this.getVideoList(),this.getDatumCatalog()}else this.props.history.replace("/");else window.location.replace("http"+window.location.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.timer=null,this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;_.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):s.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,c=t.history,o=this.state,s=o.videoList,r=o.activeIndex,d=o.isAuth,l=o.salePrice,u=o.course,p=o.singleBox,m=o.singleType,h=o.showLimitFreePopup,v=o.limitFreePopup,f=o.isShowNeverShowPopupOption,_="";return n.state&&n.state.to&&"detail"===n.state.to&&(_="/detail?id=".concat(u.course_id)),y.a.createElement("div",{className:"play"},y.a.createElement(g.a,{title:this.state.title,arrow:!0,toHref:function(){_?c.push(_,{to:"classify"}):c.go(-1)}}),y.a.createElement(L.f,{isLoading:this.state.isLoading},y.a.createElement("div",{className:"video"},y.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t},"webkit-playsinline":"true",playsInline:!0,"x-webkit-airplay":"allow","x5-video-player-type":"h5"},y.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!d&&!!s[r].is_class&&y.a.createElement("div",{className:"purchase-box"},y.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),y.a.createElement("div",{className:"btns"},y.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",l," \u8d2d\u4e70\u8bfe\u7a0b"),y.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,s[r]),className:"purchase-episode"},"\xa5",s.length&&s[r].class_price," \u8d2d\u4e70\u5355\u96c6"))),!d&&!!u.is_aist&&y.a.createElement("div",{className:"is-aist-box"},y.a.createElement("i",{className:"iconfont iconiconfront-21"}),y.a.createElement("p",{className:"time"},s[r].aist_start_time),y.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),y.a.createElement("div",{className:"tab"},y.a.createElement("div",null,y.a.createElement(b.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),y.a.createElement("div",null,y.a.createElement(b.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),p&&y.a.createElement(F.a,{courseId:u.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:u.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==m&&y.a.createElement(D.a,{courseId:u.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:m,vcourseId:u.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),y.a.createElement(E.d,null,y.a.createElement(E.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),y.a.createElement(E.b,{path:"".concat(a.path,"/video"),render:function(t){return y.a.createElement(k,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:s,isAist:u.is_aist},t))}}),y.a.createElement(E.b,{path:"".concat(a.path,"/datum"),render:function(t){return y.a.createElement(T,Object.assign({},t,{datum:e.state.datum}))}})),y.a.createElement(E.b,{render:function(t){return e.state.vCourseId?y.a.createElement(P,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),y.a.createElement(H,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}),h&&y.a.createElement("div",{className:"limit-free-cover"},y.a.createElement("div",{className:"free-popup"},y.a.createElement("div",{className:"title"},y.a.createElement("span",null,v.pop_descbition)),y.a.createElement("div",{className:"des"},y.a.createElement("img",{className:"qrcode",src:v.wechat_img,alt:""}),y.a.createElement("span",null,"\u957f\u6309/\u626b\u7801\u8bc6\u522b"),y.a.createElement("span",null,"\u6dfb\u52a0\u65f6\u8bf7\u5907\u6ce8",y.a.createElement("span",null,u.course_id),"\u54e6"),y.a.createElement("div",{className:"no-prompt"},f&&y.a.createElement("label",{htmlFor:"no-prompt"},y.a.createElement("span",{className:"checkbox-label ".concat(this.state.limitFreeNoPromptChecked?"checked":"unchecked")},y.a.createElement("i",{className:"iconfont iconiconfront-73"})),y.a.createElement("input",{type:"checkbox",id:"no-prompt",onChange:function(t){e.setState({limitFreeNoPromptChecked:t.target.checked})}}),y.a.createElement("span",null,"\u672c\u8bfe\u7a0b\u4e0d\u518d\u63d0\u793a")))),y.a.createElement("i",{className:"close-btn iconfont iconiconfront-2",onClick:function(){e.setState({showLimitFreePopup:!1,isShowNeverShowPopupOption:!0});var t=e.state,a=t.courseId,n=t.limitFreePopupVideos;localStorage.setItem("limit-free-popup-videos",JSON.stringify(n?[].concat(Object(i.a)(n),[a]):[a])),e.checkNeverShowLimitFreePopup()}}))))}}]),t}(f.Component);t.default=Object(S.b)(function(e){return{user:e.user}},null)(U)},606:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(607);t.a=function(e){return i.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},i.a.createElement("div",{className:"content"},i.a.createElement("div",{className:"cover"},e.status,i.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},607:function(e,t,a){},633:function(e,t,a){},675:function(e,t,a){"use strict";a(37);var n=a(11),i=a.n(n),c=a(4),o=a(7),s=a(5),r=a(8),d=a(9),l=a(74),u=a(0),p=a.n(u),m=(a(633),a(3)),h=a(45),v=a(24),f=a(21),y=a(52),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):i.a.info(t.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(l.a)(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?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(l.a)(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}):i.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,i=Object(y.differenceInMinutes)(new Date(t),a)%60,c=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(v.d)(Object(f.b)(function(e){return{user:e.user}},null),h.g)(g)},676:function(e,t,a){"use strict";a(37);var n=a(11),i=a.n(n),c=a(4),o=a(7),s=a(5),r=a(8),d=a(9),l=a(0),u=a.n(l),p=(a(633),a(3)),m=a(45),h=a(24),v=a(21),f=a(52),y=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.c)("id");p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);p.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):i.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(f.differenceInSeconds)(new Date(t),a)%60,i=Object(f.differenceInMinutes)(new Date(t),a)%60,c=Object(f.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}var n=this.props.singleType,i=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(v.b)(function(e){return{user:e.user}},null),m.g)(y)},827:function(e,t,a){},828:function(e,t,a){},829:function(e,t,a){},830:function(e,t,a){},832:function(e,t){}}]);
//# sourceMappingURL=video.c109b6c2.chunk.js.map
\ No newline at end of file
......@@ -24,20 +24,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/3.4a2be69d.chunk.js"
},
{
"revision": "abc1935e6d5d18b8807d",
"revision": "16f7b0279a12f3e957de",
"url": "/mrstatic/css/4.0dc24c6e.chunk.css"
},
{
"revision": "abc1935e6d5d18b8807d",
"url": "/mrstatic/js/4.22a0562b.chunk.js"
"revision": "16f7b0279a12f3e957de",
"url": "/mrstatic/js/4.026d6db3.chunk.js"
},
{
"revision": "1c6fc97d25a0db9a965b",
"revision": "821973b7378ddaaf90eb",
"url": "/mrstatic/css/Activity.a74b39fb.chunk.css"
},
{
"revision": "1c6fc97d25a0db9a965b",
"url": "/mrstatic/js/Activity.dc19ea48.chunk.js"
"revision": "821973b7378ddaaf90eb",
"url": "/mrstatic/js/Activity.ce04657e.chunk.js"
},
{
"revision": "e6134deb46e8c74490c0",
......@@ -64,20 +64,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Country.282356fe.chunk.js"
},
{
"revision": "adbdbbf72586a56f9522",
"revision": "702f1b420c60600fe8c2",
"url": "/mrstatic/css/CourseList.47812ac6.chunk.css"
},
{
"revision": "adbdbbf72586a56f9522",
"url": "/mrstatic/js/CourseList.27f68cf5.chunk.js"
"revision": "702f1b420c60600fe8c2",
"url": "/mrstatic/js/CourseList.5557a131.chunk.js"
},
{
"revision": "c9ac0a8b36a48bf48d5d",
"revision": "52ef7c575ff2da8ae4e8",
"url": "/mrstatic/css/DrawDocument.2e7d81ca.chunk.css"
},
{
"revision": "c9ac0a8b36a48bf48d5d",
"url": "/mrstatic/js/DrawDocument.2b492d24.chunk.js"
"revision": "52ef7c575ff2da8ae4e8",
"url": "/mrstatic/js/DrawDocument.bcec53f1.chunk.js"
},
{
"revision": "f36e737a0285dab53882",
......@@ -88,12 +88,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Examination.b8ab0d85.chunk.js"
},
{
"revision": "494fbd1d8a9410cdf36b",
"revision": "bd6041c96f1d044629ba",
"url": "/mrstatic/css/Invite.361dc1a3.chunk.css"
},
{
"revision": "494fbd1d8a9410cdf36b",
"url": "/mrstatic/js/Invite.8aa16057.chunk.js"
"revision": "bd6041c96f1d044629ba",
"url": "/mrstatic/js/Invite.2df843ed.chunk.js"
},
{
"revision": "16d594ac2b2d7f308b9f",
......@@ -112,20 +112,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Orderinfo.9523d283.chunk.js"
},
{
"revision": "c17fcec7d7b841d72b83",
"revision": "ae4cdb1d8fb7ee7a5b90",
"url": "/mrstatic/css/PayOrder.e5315535.chunk.css"
},
{
"revision": "c17fcec7d7b841d72b83",
"url": "/mrstatic/js/PayOrder.608c293d.chunk.js"
"revision": "ae4cdb1d8fb7ee7a5b90",
"url": "/mrstatic/js/PayOrder.3406a411.chunk.js"
},
{
"revision": "645c61179376b6af82c7",
"revision": "084b7de9261d315e2c9c",
"url": "/mrstatic/css/Preferential.18d20d0c.chunk.css"
},
{
"revision": "645c61179376b6af82c7",
"url": "/mrstatic/js/Preferential.3abfd449.chunk.js"
"revision": "084b7de9261d315e2c9c",
"url": "/mrstatic/js/Preferential.d93f1005.chunk.js"
},
{
"revision": "257565fa3d530c9345c9",
......@@ -152,28 +152,28 @@ self.__precacheManifest = [
"url": "/mrstatic/js/ShopCart.bbca129b.chunk.js"
},
{
"revision": "fa2a989dedc9f6847066",
"revision": "cdc03aa197d4483fb150",
"url": "/mrstatic/css/aist-share.ca49c1cb.chunk.css"
},
{
"revision": "fa2a989dedc9f6847066",
"url": "/mrstatic/js/aist-share.81d5ede7.chunk.js"
"revision": "cdc03aa197d4483fb150",
"url": "/mrstatic/js/aist-share.de8a0e2a.chunk.js"
},
{
"revision": "df59e3a54ec7d1667148",
"revision": "b03de98f32265e761210",
"url": "/mrstatic/css/blessing-getPrize.951fd27d.chunk.css"
},
{
"revision": "df59e3a54ec7d1667148",
"url": "/mrstatic/js/blessing-getPrize.e7b78512.chunk.js"
"revision": "b03de98f32265e761210",
"url": "/mrstatic/js/blessing-getPrize.3520a0c4.chunk.js"
},
{
"revision": "3d7d76dec2a7445ac478",
"revision": "ddde5c51dace7d7a8240",
"url": "/mrstatic/css/blessing-preheat.715eb28a.chunk.css"
},
{
"revision": "3d7d76dec2a7445ac478",
"url": "/mrstatic/js/blessing-preheat.5b1b8785.chunk.js"
"revision": "ddde5c51dace7d7a8240",
"url": "/mrstatic/js/blessing-preheat.62d874e7.chunk.js"
},
{
"revision": "227043b9e791be66816e",
......@@ -200,28 +200,28 @@ self.__precacheManifest = [
"url": "/mrstatic/js/deposit-order.ffeee7d1.chunk.js"
},
{
"revision": "6c55152050dc5401ab8c",
"revision": "315826b54f4b2c17829d",
"url": "/mrstatic/css/deposit-pay-order.219bad3d.chunk.css"
},
{
"revision": "6c55152050dc5401ab8c",
"url": "/mrstatic/js/deposit-pay-order.ba2d9956.chunk.js"
"revision": "315826b54f4b2c17829d",
"url": "/mrstatic/js/deposit-pay-order.021258b8.chunk.js"
},
{
"revision": "7582471a1bd62a8a375c",
"revision": "13575047131b21904fad",
"url": "/mrstatic/css/detail.581c1e79.chunk.css"
},
{
"revision": "7582471a1bd62a8a375c",
"url": "/mrstatic/js/detail.845d0afd.chunk.js"
"revision": "13575047131b21904fad",
"url": "/mrstatic/js/detail.858a4eac.chunk.js"
},
{
"revision": "598af3fd92cebd4f30fb",
"revision": "c004e7d0a89563a1b207",
"url": "/mrstatic/css/main.d853aa5c.chunk.css"
},
{
"revision": "598af3fd92cebd4f30fb",
"url": "/mrstatic/js/main.0b1ac758.chunk.js"
"revision": "c004e7d0a89563a1b207",
"url": "/mrstatic/js/main.830293b0.chunk.js"
},
{
"revision": "6de3b7af9b6aeef2635d",
......@@ -232,20 +232,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.58381c0c.chunk.js"
},
{
"revision": "ddc378e1b62b6780a8d9",
"revision": "b614313fefe495bc0441",
"url": "/mrstatic/css/newyear-2019-landing.b0d930fa.chunk.css"
},
{
"revision": "ddc378e1b62b6780a8d9",
"url": "/mrstatic/js/newyear-2019-landing.b21e70e7.chunk.js"
"revision": "b614313fefe495bc0441",
"url": "/mrstatic/js/newyear-2019-landing.5a799102.chunk.js"
},
{
"revision": "c25aba525293d0e166e3",
"revision": "cb2c1a39498aa9eef446",
"url": "/mrstatic/css/newyear-yearIndex.c8863d51.chunk.css"
},
{
"revision": "c25aba525293d0e166e3",
"url": "/mrstatic/js/newyear-yearIndex.b1d3c38c.chunk.js"
"revision": "cb2c1a39498aa9eef446",
"url": "/mrstatic/js/newyear-yearIndex.25ec9dae.chunk.js"
},
{
"revision": "f270a0f9d0e1d4ca31fd",
......@@ -264,16 +264,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/purchased.4dd2d566.chunk.js"
},
{
"revision": "713fc9dcd7dc48c6815e",
"revision": "06013a0b3b4e80b5abdf",
"url": "/mrstatic/css/python-class.087d6571.chunk.css"
},
{
"revision": "713fc9dcd7dc48c6815e",
"url": "/mrstatic/js/python-class.6cf6e65b.chunk.js"
"revision": "06013a0b3b4e80b5abdf",
"url": "/mrstatic/js/python-class.bfdfc4dc.chunk.js"
},
{
"revision": "1bd5d399cd1dae557992",
"url": "/mrstatic/js/runtime~main.1e33a4b1.js"
"revision": "90de4a96084a49278a95",
"url": "/mrstatic/js/runtime~main.c4e71bdf.js"
},
{
"revision": "dd49b1ba6ed4a1cb0cd4",
......@@ -308,20 +308,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/system-notices.a2bbffec.chunk.js"
},
{
"revision": "658a7d7ea3b8790cfd44",
"revision": "3a5cc862d2f07edeb787",
"url": "/mrstatic/css/togroup.49988cae.chunk.css"
},
{
"revision": "658a7d7ea3b8790cfd44",
"url": "/mrstatic/js/togroup.53f8f9e0.chunk.js"
"revision": "3a5cc862d2f07edeb787",
"url": "/mrstatic/js/togroup.aed3e309.chunk.js"
},
{
"revision": "4953c92a0033b04bd98d",
"revision": "cd71a1f78a63c4cd72a1",
"url": "/mrstatic/css/treasure-box-home.742fb589.chunk.css"
},
{
"revision": "4953c92a0033b04bd98d",
"url": "/mrstatic/js/treasure-box-home.583175e7.chunk.js"
"revision": "cd71a1f78a63c4cd72a1",
"url": "/mrstatic/js/treasure-box-home.83c24468.chunk.js"
},
{
"revision": "d2d8149cca7d46ebd8fa",
......@@ -332,20 +332,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/treasure-box-mybox.3670c265.chunk.js"
},
{
"revision": "2771501442dfbbc98664",
"revision": "cd748888fadd0ac5df24",
"url": "/mrstatic/css/video.d836ed34.chunk.css"
},
{
"revision": "2771501442dfbbc98664",
"url": "/mrstatic/js/video.340c63ed.chunk.js"
"revision": "cd748888fadd0ac5df24",
"url": "/mrstatic/js/video.c109b6c2.chunk.js"
},
{
"revision": "34a178dd2d9d9679a067",
"revision": "81f279f21e030b79bb9d",
"url": "/mrstatic/css/45.0c7eea28.chunk.css"
},
{
"revision": "34a178dd2d9d9679a067",
"url": "/mrstatic/js/45.dd43571c.chunk.js"
"revision": "81f279f21e030b79bb9d",
"url": "/mrstatic/js/45.9458e81a.chunk.js"
},
{
"revision": "429337699ba1f47680f8",
......@@ -360,12 +360,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/47.4ef49615.chunk.js"
},
{
"revision": "6999ff486218adf9ab74",
"revision": "a743c62443311a7f4cf5",
"url": "/mrstatic/css/48.bd48401c.chunk.css"
},
{
"revision": "6999ff486218adf9ab74",
"url": "/mrstatic/js/48.83cf4630.chunk.js"
"revision": "a743c62443311a7f4cf5",
"url": "/mrstatic/js/48.3cae0429.chunk.js"
},
{
"revision": "0cd0e92cd425132e72da",
......@@ -424,12 +424,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/55.2165edcc.chunk.js"
},
{
"revision": "999dbb4a2164184373eb",
"revision": "d5ecce54291ad9c4925e",
"url": "/mrstatic/css/56.4c85e85c.chunk.css"
},
{
"revision": "999dbb4a2164184373eb",
"url": "/mrstatic/js/56.d999618a.chunk.js"
"revision": "d5ecce54291ad9c4925e",
"url": "/mrstatic/js/56.25719836.chunk.js"
},
{
"revision": "8853b7da77c1bab42068",
......@@ -500,14 +500,14 @@ self.__precacheManifest = [
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "d76ebce726bdf3459fa14e96d84c5b9a",
"url": "/mrstatic/media/formal-banner.d76ebce7.png"
},
{
"revision": "9ab091267ae7c83bd30d0f5ad018a8c9",
"url": "/mrstatic/media/dalibao_bj.9ab09126.png"
},
{
"revision": "d76ebce726bdf3459fa14e96d84c5b9a",
"url": "/mrstatic/media/formal-banner.d76ebce7.png"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
......@@ -520,15 +520,15 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "bd4ce315af7ad9a6d7d8bf94db7d28cb",
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "0970250e9d6b102850d981d54fe1fd10",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.6a6259230fe2ee2691d96029c45ef248.js"
"/precache-manifest.2247f72941ae95de2eece57f665b1cb3.js"
);
workbox.clientsClaim();
......
......@@ -28,6 +28,7 @@ class App extends Component {
super(props)
this.state = {
isShowActivityEntry: 0,
isShowChannel: 0
}
}
......@@ -101,13 +102,17 @@ class App extends Component {
// 获取宝箱阶段
getStage = () => {
http.get(`${API.home}/activity/stage`).then(res => {
let ccode = cookie.get('ccode')
http.get(`${API.home}/activity/stage?ccode=${ccode}`).then(res => {
const {code, data, msg} = res.data
if (code === 200) {
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
this.setState({
isShowActivityEntry: data.treasure_stage
isShowActivityEntry: data.treasure_stage,
isShowChannel: data.is_show_site_window_by_channel
})
window.sessionStorage.setItem('isShowSiteWindowByChannel', data.is_show_site_window_by_channel)
} else {
Toast.info(msg, 2)
}
......@@ -288,12 +293,11 @@ class App extends Component {
}
}
render() {
return <>
<Routes/>
{
!!this.state.isShowActivityEntry &&
!!this.state.isShowActivityEntry && !!this.state.isShowChannel &&
<Link className={'year19-index'} to="/box/boxActive">
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/global-entry.png"
alt=""/>
......
......@@ -50,6 +50,7 @@ class Detail extends Component {
isRedPacket: true,
countDownTime: '20s',
isShowChannel: window.sessionStorage.getItem('isShowSiteWindowByChannel')
}
}
......@@ -78,7 +79,6 @@ class Detail extends Component {
if (getParam('ac') && Number(getParam('ac')) === 11) {
this.getBorwerCourse();
}
}
getBorwerCourse = () => {
......@@ -575,7 +575,11 @@ class Detail extends Component {
<ExpandActiveToast/>
<CallApp className='toapp' path={`/detail/id=${getParam('id')}`}/>
{
this.state.isShowChannel == 1 &&
<CallApp className='toapp' path={`/detail/id=${getParam('id')}`}/>
}
{/*弹幕*/}
<Barrage isShow={course_info.is_show}/>
......
......@@ -20,7 +20,7 @@ export default class Experience extends Component {
</div>
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png" alt=""/>
</div>
<div className={'btn'} onClick={tryLearn}>立即体验</div>
<div className={'btn'} onClick={() => {tryLearn(1)}}>立即体验</div>
</>
)
: (
......
......@@ -12,7 +12,7 @@ import ShareRank from "@components/detail/shareRank"
import { http, getParam, SendMessageToApp, } from '@/utils'
import { connect } from 'react-redux'
import { Toast } from "antd-mobile"
import {CallApp} from "@common/index"
import { CallApp } from "@common/index"
@connect(state => ({
user: state.user
......@@ -28,12 +28,14 @@ class PythonDes extends Component {
toApp: false,
payMoney: 0,
isOnline: true, //课程是否上架
courseInfo: {}
courseInfo: {},
isShowChannel: window.sessionStorage.getItem('isShowSiteWindowByChannel')
}
}
// 立即报名
signUp = () => {
this.statistics(3)
// 已登录
if (!this.props.user.hasError) {
this.toDetail()
......@@ -43,7 +45,8 @@ class PythonDes extends Component {
}
// 立即体验、免费试学
tryLearn = () => {
tryLearn = type => {
this.statistics(type)
// 已登录
if (!this.props.user.hasError) {
this.toLearn()
......@@ -168,6 +171,11 @@ class PythonDes extends Component {
}
}
// 统计
statistics = type => {
http.post(`${API.home}/web/it_click_num/${getParam('id')}`, {type})
}
shouldComponentUpdate(nextProps, nextState, nextContext) {
if (this.props.isAppUpdate !== nextProps.isAppUpdate) {
......@@ -206,7 +214,10 @@ class PythonDes extends Component {
</div>
<div className={'btn__group'}>
<div className={'try__study'} onClick={this.tryLearn}>免费试学</div>
<div className={'try__study'} onClick={() => {
this.tryLearn(2)
}}>免费试学
</div>
<div className={'sign__now'} onClick={this.signUp}>立即报名</div>
</div>
</div>
......@@ -219,9 +230,10 @@ class PythonDes extends Component {
)
}
<CallApp className='toapp'/>
{
this.state.isShowChannel == 1 &&
<CallApp className='toapp'/>
}
{/* 课程介绍 */}
<Description/>
......
......@@ -14,7 +14,9 @@ class PythonStudy extends Component {
toApp: false,
courseInfo: '',
syllabus: '',
learning: ''
learning: '',
isShowChannel: window.sessionStorage.getItem('isShowSiteWindowByChannel')
};
}
......@@ -112,7 +114,10 @@ class PythonStudy extends Component {
</div>
}
<CallApp className='toapp'/>
{
this.state.isShowChannel == 1 &&
<CallApp className='toapp'/>
}
</div>
{
......
......@@ -15,7 +15,8 @@ class PythonStudy extends Component {
toApp: false,
courseInfo: '',
syllabus: '',
learning: ''
learning: '',
isShowChannel: window.sessionStorage.getItem('isShowSiteWindowByChannel')
};
}
......@@ -115,7 +116,10 @@ class PythonStudy extends Component {
</div>
}
<CallApp className={'toapp'}/>
{
this.state.isShowChannel == 1 &&
<CallApp className='toapp'/>
}
<Accordion
defaultActiveKey="0"
......
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