Commit f47d2c70 by zhanghaozhe

微信登录无痕验证bug

parent 41c8e399
......@@ -13,8 +13,8 @@
"mrstatic/js/4.84fde4ee.chunk.js": "/mrstatic/js/4.84fde4ee.chunk.js",
"mrstatic/js/4.84fde4ee.chunk.js.map": "/mrstatic/js/4.84fde4ee.chunk.js.map",
"Activity.css": "/mrstatic/css/Activity.a74b39fb.chunk.css",
"Activity.js": "/mrstatic/js/Activity.a9d83c92.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.a9d83c92.chunk.js.map",
"Activity.js": "/mrstatic/js/Activity.d5e41e3a.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.d5e41e3a.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.31cef199.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.abcb5c5a.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.abcb5c5a.chunk.js.map",
......@@ -25,17 +25,17 @@
"Country.js": "/mrstatic/js/Country.a4e41d05.chunk.js",
"Country.js.map": "/mrstatic/js/Country.a4e41d05.chunk.js.map",
"CourseList.css": "/mrstatic/css/CourseList.47812ac6.chunk.css",
"CourseList.js": "/mrstatic/js/CourseList.4a5a0a60.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.4a5a0a60.chunk.js.map",
"CourseList.js": "/mrstatic/js/CourseList.75813873.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.75813873.chunk.js.map",
"DrawDocument.css": "/mrstatic/css/DrawDocument.2e7d81ca.chunk.css",
"DrawDocument.js": "/mrstatic/js/DrawDocument.6bc52458.chunk.js",
"DrawDocument.js.map": "/mrstatic/js/DrawDocument.6bc52458.chunk.js.map",
"DrawDocument.js": "/mrstatic/js/DrawDocument.ba60cb25.chunk.js",
"DrawDocument.js.map": "/mrstatic/js/DrawDocument.ba60cb25.chunk.js.map",
"Examination.css": "/mrstatic/css/Examination.f2cc3163.chunk.css",
"Examination.js": "/mrstatic/js/Examination.da13092a.chunk.js",
"Examination.js.map": "/mrstatic/js/Examination.da13092a.chunk.js.map",
"Invite.css": "/mrstatic/css/Invite.361dc1a3.chunk.css",
"Invite.js": "/mrstatic/js/Invite.de50cf8b.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.de50cf8b.chunk.js.map",
"Invite.js": "/mrstatic/js/Invite.cac786d5.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.cac786d5.chunk.js.map",
"MyEdit.js": "/mrstatic/js/MyEdit.85c82e97.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.85c82e97.chunk.js.map",
"Order.css": "/mrstatic/css/Order.35f475a1.chunk.css",
......@@ -44,11 +44,11 @@
"Orderinfo.js": "/mrstatic/js/Orderinfo.06268cfc.chunk.js",
"Orderinfo.js.map": "/mrstatic/js/Orderinfo.06268cfc.chunk.js.map",
"PayOrder.css": "/mrstatic/css/PayOrder.e5315535.chunk.css",
"PayOrder.js": "/mrstatic/js/PayOrder.42ec7e0e.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.42ec7e0e.chunk.js.map",
"PayOrder.js": "/mrstatic/js/PayOrder.df7aea6a.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.df7aea6a.chunk.js.map",
"Preferential.css": "/mrstatic/css/Preferential.35e260c6.chunk.css",
"Preferential.js": "/mrstatic/js/Preferential.4d215fe1.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.4d215fe1.chunk.js.map",
"Preferential.js": "/mrstatic/js/Preferential.8b181552.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.8b181552.chunk.js.map",
"SearchResult.css": "/mrstatic/css/SearchResult.bb7c3056.chunk.css",
"SearchResult.js": "/mrstatic/js/SearchResult.ba5fa343.chunk.js",
"SearchResult.js.map": "/mrstatic/js/SearchResult.ba5fa343.chunk.js.map",
......@@ -62,14 +62,14 @@
"ai-test.js": "/mrstatic/js/ai-test.4a932b9f.chunk.js",
"ai-test.js.map": "/mrstatic/js/ai-test.4a932b9f.chunk.js.map",
"aist-share.css": "/mrstatic/css/aist-share.ca49c1cb.chunk.css",
"aist-share.js": "/mrstatic/js/aist-share.3d7ecfef.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.3d7ecfef.chunk.js.map",
"aist-share.js": "/mrstatic/js/aist-share.4fe49651.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.4fe49651.chunk.js.map",
"blessing-getPrize.css": "/mrstatic/css/blessing-getPrize.951fd27d.chunk.css",
"blessing-getPrize.js": "/mrstatic/js/blessing-getPrize.93853aa6.chunk.js",
"blessing-getPrize.js.map": "/mrstatic/js/blessing-getPrize.93853aa6.chunk.js.map",
"blessing-getPrize.js": "/mrstatic/js/blessing-getPrize.8db2d56b.chunk.js",
"blessing-getPrize.js.map": "/mrstatic/js/blessing-getPrize.8db2d56b.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.715eb28a.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.633963fa.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.633963fa.chunk.js.map",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.ee95459e.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.ee95459e.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.b92d0394.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.03b39485.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.03b39485.chunk.js.map",
......@@ -80,20 +80,20 @@
"deposit-order.js": "/mrstatic/js/deposit-order.e4764441.chunk.js",
"deposit-order.js.map": "/mrstatic/js/deposit-order.e4764441.chunk.js.map",
"deposit-pay-order.css": "/mrstatic/css/deposit-pay-order.219bad3d.chunk.css",
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.d88f613e.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.d88f613e.chunk.js.map",
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.bb6475e1.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.bb6475e1.chunk.js.map",
"detail.css": "/mrstatic/css/detail.ec7d62e4.chunk.css",
"detail.js": "/mrstatic/js/detail.a5c39484.chunk.js",
"detail.js.map": "/mrstatic/js/detail.a5c39484.chunk.js.map",
"detail.js": "/mrstatic/js/detail.a09188c4.chunk.js",
"detail.js.map": "/mrstatic/js/detail.a09188c4.chunk.js.map",
"intelligent-recommend.css": "/mrstatic/css/intelligent-recommend.c7393ed3.chunk.css",
"intelligent-recommend.js": "/mrstatic/js/intelligent-recommend.e805061d.chunk.js",
"intelligent-recommend.js.map": "/mrstatic/js/intelligent-recommend.e805061d.chunk.js.map",
"main.css": "/mrstatic/css/main.84d7495b.chunk.css",
"main.js": "/mrstatic/js/main.697bf8e0.chunk.js",
"main.js.map": "/mrstatic/js/main.697bf8e0.chunk.js.map",
"main.js": "/mrstatic/js/main.ccf5960a.chunk.js",
"main.js.map": "/mrstatic/js/main.ccf5960a.chunk.js.map",
"ml.css": "/mrstatic/css/ml.4913a774.chunk.css",
"ml.js": "/mrstatic/js/ml.06a33ad0.chunk.js",
"ml.js.map": "/mrstatic/js/ml.06a33ad0.chunk.js.map",
"ml.js": "/mrstatic/js/ml.10b451dc.chunk.js",
"ml.js.map": "/mrstatic/js/ml.10b451dc.chunk.js.map",
"mlShare.css": "/mrstatic/css/mlShare.5fba4ed0.chunk.css",
"mlShare.js": "/mrstatic/js/mlShare.704f47e4.chunk.js",
"mlShare.js.map": "/mrstatic/js/mlShare.704f47e4.chunk.js.map",
......@@ -101,11 +101,11 @@
"myorders.js": "/mrstatic/js/myorders.645234e0.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.645234e0.chunk.js.map",
"newyear-2019-landing.css": "/mrstatic/css/newyear-2019-landing.b0d930fa.chunk.css",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.174e35af.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.174e35af.chunk.js.map",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.a8ea2bf2.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.a8ea2bf2.chunk.js.map",
"newyear-yearIndex.css": "/mrstatic/css/newyear-yearIndex.fe0d87a6.chunk.css",
"newyear-yearIndex.js": "/mrstatic/js/newyear-yearIndex.dacfda1a.chunk.js",
"newyear-yearIndex.js.map": "/mrstatic/js/newyear-yearIndex.dacfda1a.chunk.js.map",
"newyear-yearIndex.js": "/mrstatic/js/newyear-yearIndex.945276df.chunk.js",
"newyear-yearIndex.js.map": "/mrstatic/js/newyear-yearIndex.945276df.chunk.js.map",
"prize-winner-list.css": "/mrstatic/css/prize-winner-list.55e46fc9.chunk.css",
"prize-winner-list.js": "/mrstatic/js/prize-winner-list.031e8290.chunk.js",
"prize-winner-list.js.map": "/mrstatic/js/prize-winner-list.031e8290.chunk.js.map",
......@@ -113,10 +113,10 @@
"purchased.js": "/mrstatic/js/purchased.4ce9c6a7.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.4ce9c6a7.chunk.js.map",
"python-class.css": "/mrstatic/css/python-class.087d6571.chunk.css",
"python-class.js": "/mrstatic/js/python-class.033e3b57.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.033e3b57.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.2a13c7c0.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.2a13c7c0.js.map",
"python-class.js": "/mrstatic/js/python-class.e07e8394.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.e07e8394.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.05ee9335.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.05ee9335.js.map",
"search.css": "/mrstatic/css/search.38c3e634.chunk.css",
"search.js": "/mrstatic/js/search.fa22f542.chunk.js",
"search.js.map": "/mrstatic/js/search.fa22f542.chunk.js.map",
......@@ -130,20 +130,20 @@
"system-notices.js": "/mrstatic/js/system-notices.8cde4636.chunk.js",
"system-notices.js.map": "/mrstatic/js/system-notices.8cde4636.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.49988cae.chunk.css",
"togroup.js": "/mrstatic/js/togroup.984bc151.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.984bc151.chunk.js.map",
"togroup.js": "/mrstatic/js/togroup.e186bf90.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.e186bf90.chunk.js.map",
"treasure-box-home.css": "/mrstatic/css/treasure-box-home.7a60b4c8.chunk.css",
"treasure-box-home.js": "/mrstatic/js/treasure-box-home.16c3ab06.chunk.js",
"treasure-box-home.js.map": "/mrstatic/js/treasure-box-home.16c3ab06.chunk.js.map",
"treasure-box-home.js": "/mrstatic/js/treasure-box-home.870f175d.chunk.js",
"treasure-box-home.js.map": "/mrstatic/js/treasure-box-home.870f175d.chunk.js.map",
"treasure-box-mybox.css": "/mrstatic/css/treasure-box-mybox.b84e2e84.chunk.css",
"treasure-box-mybox.js": "/mrstatic/js/treasure-box-mybox.57c87953.chunk.js",
"treasure-box-mybox.js.map": "/mrstatic/js/treasure-box-mybox.57c87953.chunk.js.map",
"video.css": "/mrstatic/css/video.e2426591.chunk.css",
"video.js": "/mrstatic/js/video.59790d12.chunk.js",
"video.js.map": "/mrstatic/js/video.59790d12.chunk.js.map",
"video.js": "/mrstatic/js/video.ffc507bf.chunk.js",
"video.js.map": "/mrstatic/js/video.ffc507bf.chunk.js.map",
"mrstatic/css/49.0c7eea28.chunk.css": "/mrstatic/css/49.0c7eea28.chunk.css",
"mrstatic/js/49.04719143.chunk.js": "/mrstatic/js/49.04719143.chunk.js",
"mrstatic/js/49.04719143.chunk.js.map": "/mrstatic/js/49.04719143.chunk.js.map",
"mrstatic/js/49.4c3bfd6f.chunk.js": "/mrstatic/js/49.4c3bfd6f.chunk.js",
"mrstatic/js/49.4c3bfd6f.chunk.js.map": "/mrstatic/js/49.4c3bfd6f.chunk.js.map",
"mrstatic/js/50.70f44baa.chunk.js": "/mrstatic/js/50.70f44baa.chunk.js",
"mrstatic/js/50.70f44baa.chunk.js.map": "/mrstatic/js/50.70f44baa.chunk.js.map",
"mrstatic/css/51.50547718.chunk.css": "/mrstatic/css/51.50547718.chunk.css",
......@@ -179,8 +179,8 @@
"mrstatic/js/61.61da488a.chunk.js": "/mrstatic/js/61.61da488a.chunk.js",
"mrstatic/js/61.61da488a.chunk.js.map": "/mrstatic/js/61.61da488a.chunk.js.map",
"mrstatic/css/62.4c85e85c.chunk.css": "/mrstatic/css/62.4c85e85c.chunk.css",
"mrstatic/js/62.07bea51f.chunk.js": "/mrstatic/js/62.07bea51f.chunk.js",
"mrstatic/js/62.07bea51f.chunk.js.map": "/mrstatic/js/62.07bea51f.chunk.js.map",
"mrstatic/js/62.bf0c46be.chunk.js": "/mrstatic/js/62.bf0c46be.chunk.js",
"mrstatic/js/62.bf0c46be.chunk.js.map": "/mrstatic/js/62.bf0c46be.chunk.js.map",
"mrstatic/css/63.470b9744.chunk.css": "/mrstatic/css/63.470b9744.chunk.css",
"mrstatic/js/63.3ec36058.chunk.js": "/mrstatic/js/63.3ec36058.chunk.js",
"mrstatic/js/63.3ec36058.chunk.js.map": "/mrstatic/js/63.3ec36058.chunk.js.map",
......@@ -268,6 +268,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.64d5c055ca33046faad0c82c15e2bb25.js": "/precache-manifest.64d5c055ca33046faad0c82c15e2bb25.js",
"precache-manifest.1231271b44deb833db65ec32c6fea967.js": "/precache-manifest.1231271b44deb833db65ec32c6fea967.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/49.0c7eea28.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.84d7495b.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,a,t=e[0],n=e[1],c=e[2],o=0,d=[];o<t.length;o++)a=t[o],l[a]&&d.push(l[a][0]),l[a]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(p&&p(e);d.length;)d.shift()();return s.push.apply(s,c||[]),f()}function f(){for(var e,r=0;r<s.length;r++){for(var a=s[r],t=!0,n=1;n<a.length;n++){var c=a[n];0!==l[c]&&(t=!1)}t&&(s.splice(r--,1),e=b(b.s=a[0]))}return e}var a={},u={40:0},l={40:0},s=[];function b(e){if(a[e])return a[e].exports;var r=a[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,b),r.l=!0,r.exports}b.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{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,29:1,30:1,32:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,61:1,62:1,63:1,64:1,66:1,67:1,68:1,69:1}[s]&&e.push(u[s]=new Promise(function(e,t){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:"ai-test",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",30:"intelligent-recommend",32:"ml",33:"mlShare",34:"myorders",35:"newyear-2019-landing",36:"newyear-yearIndex",37:"prize-winner-list",38:"purchased",39:"python-class",41:"search",42:"shareposter",43:"study",44:"system-notices",45:"togroup",46:"treasure-box-home",47:"treasure-box-mybox",48:"video"}[s]||s)+"."+{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:"35e260c6",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"3595a614",22:"ca49c1cb",23:"951fd27d",24:"715eb28a",25:"b92d0394",26:"c10ecc19",27:"6f3a01ca",28:"219bad3d",29:"ec7d62e4",30:"c7393ed3",32:"4913a774",33:"5fba4ed0",34:"3c41b358",35:"b0d930fa",36:"fe0d87a6",37:"55e46fc9",38:"f583a040",39:"087d6571",41:"38c3e634",42:"f09a5959",43:"e406d228",44:"08df3d15",45:"49988cae",46:"7a60b4c8",47:"b84e2e84",48:"e2426591",50:"31d6cfe0",51:"50547718",52:"2471f477",53:"0bb224f2",54:"d7ce893c",55:"ecbb6f9a",56:"bc06dce4",57:"9f46e45e",58:"ee45d0b0",59:"4723f76a",60:"31d6cfe0",61:"ab7f5e40",62:"4c85e85c",63:"470b9744",64:"10a4034d",65:"31d6cfe0",66:"697fa90d",67:"eb90513f",68:"cbed2516",69:"e51ea0fc"}[s]+".chunk.css",n=b.p+r,a=document.getElementsByTagName("link"),c=0;c<a.length;c++){var o=(i=a[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 f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var r=e&&e.target&&e.target.src||n,a=new Error("Loading CSS chunk "+s+" failed.\n("+r+")");a.request=r,delete u[s],f.parentNode.removeChild(f),t(a)},f.href=n,document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){u[s]=0}));var a=l[s];if(0!==a)if(a)e.push(a[2]);else{var r=new Promise(function(e,r){a=l[s]=[e,r]});e.push(a[2]=r);var t,c=document.createElement("script");c.charset="utf-8",c.timeout=120,b.nc&&c.setAttribute("nonce",b.nc),c.src=b.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:"ai-test",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",30:"intelligent-recommend",32:"ml",33:"mlShare",34:"myorders",35:"newyear-2019-landing",36:"newyear-yearIndex",37:"prize-winner-list",38:"purchased",39:"python-class",41:"search",42:"shareposter",43:"study",44:"system-notices",45:"togroup",46:"treasure-box-home",47:"treasure-box-mybox",48:"video"}[s]||s)+"."+{0:"77d81bc4",1:"2f052ee5",2:"40a27a4a",3:"7e5f6494",4:"84fde4ee",5:"a9d83c92",6:"abcb5c5a",7:"0ffc5adc",8:"a4e41d05",9:"4a5a0a60",10:"6bc52458",11:"da13092a",12:"de50cf8b",13:"85c82e97",14:"56503c34",15:"06268cfc",16:"42ec7e0e",17:"4d215fe1",18:"ba5fa343",19:"6fbf7521",20:"7907b80c",21:"4a932b9f",22:"3d7ecfef",23:"93853aa6",24:"633963fa",25:"03b39485",26:"bb734715",27:"e4764441",28:"d88f613e",29:"a5c39484",30:"e805061d",32:"06a33ad0",33:"704f47e4",34:"645234e0",35:"174e35af",36:"dacfda1a",37:"031e8290",38:"4ce9c6a7",39:"033e3b57",41:"fa22f542",42:"6adcbb49",43:"a6b82389",44:"8cde4636",45:"984bc151",46:"16c3ab06",47:"57c87953",48:"59790d12",50:"70f44baa",51:"ae3eeb3f",52:"ca1a5455",53:"77ca15c6",54:"6fbef59c",55:"60e8551b",56:"d146b6a8",57:"017bda68",58:"84fcd764",59:"c7ff4233",60:"44da62f7",61:"61da488a",62:"07bea51f",63:"3ec36058",64:"0fcf7a58",65:"8ceda531",66:"1f39788b",67:"5cfc3314",68:"8c2577ba",69:"7171608a"}[s]+".chunk.js",t=function(e){c.onerror=c.onload=null,clearTimeout(o);var r=l[s];if(0!==r){if(r){var a=e&&("load"===e.type?"missing":e.type),t=e&&e.target&&e.target.src,n=new Error("Loading chunk "+s+" failed.\n("+a+": "+t+")");n.type=a,n.request=t,r[1](n)}l[s]=void 0}};var o=setTimeout(function(){t({type:"timeout",target:c})},12e4);c.onerror=c.onload=t,document.head.appendChild(c)}return Promise.all(e)},b.m=i,b.c=a,b.d=function(e,r,a){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:a})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var a=Object.create(null);if(b.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var t in r)b.d(a,t,function(e){return r[e]}.bind(null,t));return a},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],t=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=t;f()}([])</script><script src="/mrstatic/js/49.04719143.chunk.js"></script><script src="/mrstatic/js/main.697bf8e0.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/49.0c7eea28.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.84d7495b.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/api.js"></script><script>!function(f){function e(e){for(var r,t,a=e[0],n=e[1],c=e[2],o=0,d=[];o<a.length;o++)t=a[o],l[t]&&d.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(f[r]=n[r]);for(p&&p(e);d.length;)d.shift()();return s.push.apply(s,c||[]),i()}function i(){for(var e,r=0;r<s.length;r++){for(var t=s[r],a=!0,n=1;n<t.length;n++){var c=t[n];0!==l[c]&&(a=!1)}a&&(s.splice(r--,1),e=b(b.s=t[0]))}return e}var t={},u={40:0},l={40:0},s=[];function b(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,b),r.l=!0,r.exports}b.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{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,29:1,30:1,32:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,61:1,62:1,63:1,64:1,66:1,67:1,68:1,69:1}[s]&&e.push(u[s]=new Promise(function(e,a){for(var r="mrstatic/css/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"ai-test",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",30:"intelligent-recommend",32:"ml",33:"mlShare",34:"myorders",35:"newyear-2019-landing",36:"newyear-yearIndex",37:"prize-winner-list",38:"purchased",39:"python-class",41:"search",42:"shareposter",43:"study",44:"system-notices",45:"togroup",46:"treasure-box-home",47:"treasure-box-mybox",48:"video"}[s]||s)+"."+{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:"35e260c6",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"3595a614",22:"ca49c1cb",23:"951fd27d",24:"715eb28a",25:"b92d0394",26:"c10ecc19",27:"6f3a01ca",28:"219bad3d",29:"ec7d62e4",30:"c7393ed3",32:"4913a774",33:"5fba4ed0",34:"3c41b358",35:"b0d930fa",36:"fe0d87a6",37:"55e46fc9",38:"f583a040",39:"087d6571",41:"38c3e634",42:"f09a5959",43:"e406d228",44:"08df3d15",45:"49988cae",46:"7a60b4c8",47:"b84e2e84",48:"e2426591",50:"31d6cfe0",51:"50547718",52:"2471f477",53:"0bb224f2",54:"d7ce893c",55:"ecbb6f9a",56:"bc06dce4",57:"9f46e45e",58:"ee45d0b0",59:"4723f76a",60:"31d6cfe0",61:"ab7f5e40",62:"4c85e85c",63:"470b9744",64:"10a4034d",65:"31d6cfe0",66:"697fa90d",67:"eb90513f",68:"cbed2516",69:"e51ea0fc"}[s]+".chunk.css",n=b.p+r,t=document.getElementsByTagName("link"),c=0;c<t.length;c++){var o=(f=t[c]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(o===r||o===n))return e()}var d=document.getElementsByTagName("style");for(c=0;c<d.length;c++){var f;if((o=(f=d[c]).getAttribute("data-href"))===r||o===n)return e()}var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onload=e,i.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+s+" failed.\n("+r+")");t.request=r,delete u[s],i.parentNode.removeChild(i),a(t)},i.href=n,document.getElementsByTagName("head")[0].appendChild(i)}).then(function(){u[s]=0}));var t=l[s];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[s]=[e,r]});e.push(t[2]=r);var a,c=document.createElement("script");c.charset="utf-8",c.timeout=120,b.nc&&c.setAttribute("nonce",b.nc),c.src=b.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:"ai-test",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",30:"intelligent-recommend",32:"ml",33:"mlShare",34:"myorders",35:"newyear-2019-landing",36:"newyear-yearIndex",37:"prize-winner-list",38:"purchased",39:"python-class",41:"search",42:"shareposter",43:"study",44:"system-notices",45:"togroup",46:"treasure-box-home",47:"treasure-box-mybox",48:"video"}[s]||s)+"."+{0:"77d81bc4",1:"2f052ee5",2:"40a27a4a",3:"7e5f6494",4:"84fde4ee",5:"d5e41e3a",6:"abcb5c5a",7:"0ffc5adc",8:"a4e41d05",9:"75813873",10:"ba60cb25",11:"da13092a",12:"cac786d5",13:"85c82e97",14:"56503c34",15:"06268cfc",16:"df7aea6a",17:"8b181552",18:"ba5fa343",19:"6fbf7521",20:"7907b80c",21:"4a932b9f",22:"4fe49651",23:"8db2d56b",24:"ee95459e",25:"03b39485",26:"bb734715",27:"e4764441",28:"bb6475e1",29:"a09188c4",30:"e805061d",32:"10b451dc",33:"704f47e4",34:"645234e0",35:"a8ea2bf2",36:"945276df",37:"031e8290",38:"4ce9c6a7",39:"e07e8394",41:"fa22f542",42:"6adcbb49",43:"a6b82389",44:"8cde4636",45:"e186bf90",46:"870f175d",47:"57c87953",48:"ffc507bf",50:"70f44baa",51:"ae3eeb3f",52:"ca1a5455",53:"77ca15c6",54:"6fbef59c",55:"60e8551b",56:"d146b6a8",57:"017bda68",58:"84fcd764",59:"c7ff4233",60:"44da62f7",61:"61da488a",62:"bf0c46be",63:"3ec36058",64:"0fcf7a58",65:"8ceda531",66:"1f39788b",67:"5cfc3314",68:"8c2577ba",69:"7171608a"}[s]+".chunk.js",a=function(e){c.onerror=c.onload=null,clearTimeout(o);var r=l[s];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src,n=new Error("Loading chunk "+s+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}l[s]=void 0}};var o=setTimeout(function(){a({type:"timeout",target:c})},12e4);c.onerror=c.onload=a,document.head.appendChild(c)}return Promise.all(e)},b.m=f,b.c=t,b.d=function(e,r,t){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(b.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)b.d(t,a,function(e){return r[e]}.bind(null,a));return t},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=a;i()}([])</script><script src="/mrstatic/js/49.4c3bfd6f.chunk.js"></script><script src="/mrstatic/js/main.ccf5960a.chunk.js"></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{1087:function(e,t,a){},1194:function(e,t,a){"use strict";a.r(t);a(137);var n=a(36),c=a.n(n),r=a(76),l=a(3),i=a(5),s=a(4),o=a(6),m=a(7),u=(a(40),a(10)),d=a.n(u),p=a(0),E=a.n(p),f=a(2),v=(a(1087),a(24)),g=a(464),h=a(144),b=a(20),y=a(15);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.f.get("".concat(API.home,"/sys/category")),f.f.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.f.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)(_))},464:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(465);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)}},465:function(e,t,a){}}]);
//# sourceMappingURL=62.07bea51f.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{1087:function(e,t,a){},1194:function(e,t,a){"use strict";a.r(t);a(137);var n=a(35),c=a.n(n),r=a(76),l=a(3),i=a(5),s=a(4),o=a(6),m=a(7),u=(a(40),a(10)),d=a.n(u),p=a(0),E=a.n(p),f=a(2),v=(a(1087),a(24)),g=a(464),h=a(144),b=a(20),y=a(15);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.f.get("".concat(API.home,"/sys/category")),f.f.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.f.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)(_))},464:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(465);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)}},465:function(e,t,a){}}]);
//# sourceMappingURL=62.bf0c46be.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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KAAMA,EACNoF,IAAK7C,YAahCgB,EAAAxD,EAAAyD,cAAA,OAAKL,UAAU,WAAf,4CAlOgB0D,aA0OxB,SAASR,EAATS,GAA2B,IAAL7E,EAAK6E,EAAL7E,GACpB,OAAOsB,EAAAxD,EAAAyD,cAAC+C,EAAA,EAAD,CAAMC,GAAE,kBAAA5F,OAAoBqB,IAA5B,4BAGM8E,sBACb,SAAA7G,GAAK,MAAK,CAAC0C,KAAM1C,EAAM0C,OACvB,KAFamE,CAIdC,YAAa/G,iEChPCgH,IAfD,SAAC/E,GACX,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/62.07bea51f.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","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,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H,IAfD,SAAC/E,GACX,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/62.bf0c46be.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],{1176:function(e,t,n){"use strict";n.r(t);var a=n(3),i=n(5),s=n(4),c=n(6),o=n(7),r=n(0),u=n.n(r),l=n(20),p=n(2),b=n(35),d=n.n(b),m=(n(590),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)},590:function(e,t,n){}}]);
//# sourceMappingURL=Activity.a9d83c92.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1176:function(e,t,n){"use strict";n.r(t);var a=n(3),i=n(5),s=n(4),c=n(6),o=n(7),r=n(0),u=n.n(r),l=n(20),p=n(2),b=n(36),d=n.n(b),m=(n(590),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)},590:function(e,t,n){}}]);
//# sourceMappingURL=Activity.d5e41e3a.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.a9d83c92.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.d5e41e3a.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],{1011:function(e,t,a){},1167:function(e,t,a){"use strict";a.r(t);a(137);var n,i=a(36),c=a.n(i),s=(a(140),a(87)),o=a.n(s),l=a(14),r=(a(40),a(10)),u=a.n(r),f=a(3),d=a(5),m=a(4),p=a(6),h=a(7),v=a(51),b=a(0),g=a.n(b),y=a(24),E=(a(1011),a(585)),C=a(2),w=a(62),_=a(20),N=a(151);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.f.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.f.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(j,{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.k,{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 B(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 j(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(B,{course:t})}t.default=O},450: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},455:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(9),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}},480:function(e,t,a){"use strict";a(52),a(481)},481:function(e,t,a){},482:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(9)),i=b(a(34)),c=b(a(11)),s=b(a(13)),o=b(a(12)),l=b(a(16)),r=b(a(18)),u=v(a(0)),f=v(a(1)),d=b(a(139)),m=b(a(450)),p=a(455),h=a(483);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(484)}).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},483: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}},484:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},585:function(e,t,a){"use strict";a(480);var n=a(482),i=a.n(n),c=a(3),s=a(5),o=a(4),l=a(6),r=a(7),u=a(0),f=a.n(u),d=(a(586),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},586:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.4a5a0a60.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1011:function(e,t,a){},1167:function(e,t,a){"use strict";a.r(t);a(137);var n,i=a(35),c=a.n(i),s=(a(140),a(87)),o=a.n(s),l=a(14),r=(a(40),a(10)),u=a.n(r),f=a(3),d=a(5),m=a(4),p=a(6),h=a(7),v=a(51),b=a(0),g=a.n(b),y=a(24),E=(a(1011),a(585)),C=a(2),w=a(62),_=a(20),N=a(151);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.f.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.f.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(j,{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.k,{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 B(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 j(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(B,{course:t})}t.default=O},450: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},455:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(9),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}},480:function(e,t,a){"use strict";a(52),a(481)},481:function(e,t,a){},482:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(9)),i=b(a(34)),c=b(a(11)),s=b(a(13)),o=b(a(12)),l=b(a(16)),r=b(a(18)),u=v(a(0)),f=v(a(1)),d=b(a(139)),m=b(a(450)),p=a(455),h=a(483);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(484)}).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},483: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}},484:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},585:function(e,t,a){"use strict";a(480);var n=a(482),i=a.n(n),c=a(3),s=a(5),o=a(4),l=a(6),r=a(7),u=a(0),f=a.n(u),d=(a(586),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},586:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.75813873.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,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,OAAKC,UAAU,gBACXqK,EAAA9M,EAAAwC,cAAA,OAAKC,UAAU,eAEN5E,KAAKJ,MAAMoF,QACZiK,EAAA9M,EAAAwC,cAAA,KACIC,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.4a5a0a60.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,G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AN,UAAA,0HCJMgH,qNASFC,OAAS,WAAM,IAAAC,EACiBjO,EAAKhB,MAAzB2E,QACJuK,OAFO,IAAAD,KAEQ,YAAc,YACjCxD,OAAO0D,SAAS/K,QAAQ8K,8EAVxBzD,OAAO0D,SAASC,KAAO,2CAIvB3D,OAAO0D,SAASC,KAAO,qCAUvB,OACIC,EAAA9M,EAAAwC,cAAA,OAAKC,UAAU,gBACXqK,EAAA9M,EAAAwC,cAAA,OAAKC,UAAU,eAEN5E,KAAKJ,MAAMoF,QACZiK,EAAA9M,EAAAwC,cAAA,KACIC,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.75813873.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],{1163:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(85);var n=t(26),c=t.n(n),l=(t(137),t(36)),s=t.n(l),i=(t(138),t(73)),r=t.n(i),m=t(3),o=t(5),d=t(4),p=t(6),E=t(7),u=t(0),N=t.n(u),v=(t(749),t(99)),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)},749:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.6bc52458.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1163:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(85);var n=t(26),c=t.n(n),l=(t(137),t(35)),s=t.n(l),i=(t(138),t(73)),r=t.n(i),m=t(3),o=t(5),d=t(4),p=t(6),E=t(7),u=t(0),N=t.n(u),v=(t(749),t(99)),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)},749:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.ba60cb25.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":"4RAKqBA,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.6bc52458.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
{"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":"4RAKqBA,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.ba60cb25.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],{1018:function(e,t,a){},1177:function(e,t,a){"use strict";a.r(t);a(40);var n=a(10),i=a.n(n),c=a(3),s=a(5),l=a(4),o=a(6),r=a(7),m=a(0),u=a.n(m),p=a(20),d=(a(590),a(2)),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(d.c)("plat_form")){var e=Number(Object(d.c)("version"));a.setState({isshowAppTip:e<3.704})}if(2==Object(d.c)("plat_form")){var t=Object(d.c)("version").replace(/\./g,"").slice(0,3);a.setState({isshowAppTip:Number(t)<451})}},a.getUserList=function(){d.f.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(){d.f.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(){d.f.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(d.j)()&&Object(d.n)({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(d.c)("version"))if(t.hasError)Object(d.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(d.a)("toShare",o)}else t.hasError?n.push("/passport"):Object(d.j)()?(n.push("/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s)),Object(d.n)({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(d.c)("shareuid");e===t||Object(d.c)("new")&&this.props.history.push("/activity?shareuid=".concat(t,"&inviteCode=").concat(Object(d.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(p.b)(function(e){return{user:e.user}},null)(v)},1178:function(e,t,a){"use strict";a.r(t);a(40);var n,i=a(10),c=a.n(i),s=a(3),l=a(5),o=a(4),r=a(6),m=a(7),u=a(51),p=a(0),d=a.n(p),g=(a(1018),a(2)),h=a(47),v=a(20),b=a(35),f=a.n(b),E=a(23),j=a(420),y=Object(v.b)(function(e){return{user:e.user}},{setCurrentUser:E.i,startFetchUser:E.j})(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/39376e2038.png",src:"/getDetail?id=280"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/e61f810c30.png",src:"/getDetail?id=293"},{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/07dafc3480.png",src:"/getDetail?id=216"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/d9ca2ad5e8.png",src:"/getDetail?id=262"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/a7e5ab0af6.png",src:"/getDetail?id=232"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c9a6779b75.png",src:"/getDetail?id=181"},{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(j.a)(new Date,90);a.state.userInfoList.map(function(t,a){f.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),f.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),f.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),f.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),f.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),f.a.get("token")&&f.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.f.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.f.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.f.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,p=t.lowPrice;return d.a.createElement("div",{className:"new-vip"},d.a.createElement("div",{className:"banner"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/vip-banner.png",alt:""})),(a||n)&&d.a.createElement("div",{className:"notice"},a&&d.a.createElement("div",{className:"tip"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/linlin_icon.png",alt:""}),d.a.createElement("span",null,a)),n&&d.a.createElement("div",{className:"time"},i)),d.a.createElement("div",{className:"privilege-box"},d.a.createElement("div",{className:"privilege-name"},"VIP\u5c0a\u4eab\u4e94\u5927\u670d\u52a1"),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u4e00",title:"\u76f4\u64ad\u8bfe\u7a0b\u62a2\u5148\u5b66"}),d.a.createElement(N,{data:c})),d.a.createElement(w,{position:"left"}),d.a.createElement(w,{position:"right"}),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u4e8c",title:"\u7545\u5b66\u5168\u5e73\u53f0\u89c6\u9891\u8bfe\u7a0b"}),d.a.createElement(N,{data:s})),d.a.createElement(w,{position:"left"}),d.a.createElement(w,{position:"right"}),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u4e09",title:"GPU&CPU\u53cc\u4e91\u5e73\u53f0\u514d\u8d39\u7528"}),d.a.createElement("div",{className:"privilege-list-row"},d.a.createElement("div",{className:"privilege-list-gpu"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu1_bj%402x.png",alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu2_bj%402x.png",alt:""})),d.a.createElement("div",{className:"privilege-list-tip"},l.map(function(e,t){return d.a.createElement("div",{className:"privilege-tip-item",key:t},d.a.createElement("span",null,t+1),e)})))),d.a.createElement(w,{position:"left"}),d.a.createElement(w,{position:"right"}),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u56db",title:"\u8bb2\u5e08/\u52a9\u6559\u56e2\u961f24\u5c0f\u65f6\u7b54\u7591"}),d.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"),d.a.createElement(I,{data:o})),d.a.createElement(w,{position:"left"}),d.a.createElement(w,{position:"right"}),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u4e94",title:"\u5728\u7ebf\u4f5c\u4e1a\u53ca\u6d4b\u8bc4\u5e73\u53f0"}),d.a.createElement("div",{className:"privilege-test"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce1_bj%402x.png",alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce2_bj%402x.png",alt:""})))),d.a.createElement("div",{className:"tobuy",onClick:function(){return e.showPrice()}},p,"\u5143 \u7acb\u5373\u62a5\u540d"),u&&d.a.createElement("div",null,d.a.createElement("div",{className:"checkout-mbc",onClick:function(){return e.close()}}),d.a.createElement("div",{className:"checkout-box"},d.a.createElement("div",{className:"title"},d.a.createElement("span",null,"\u9009\u62e9\u5957\u9910"),d.a.createElement("span",{className:"close",onClick:function(){return e.close()}},"\u2715")),r.map(function(t,a){return d.a.createElement("div",{className:"checkout-list ".concat(m===a?"list-checked":"list-check"),key:a,onClick:function(){return e.tochecked(t,a)}},d.a.createElement("div",{className:"type"},t.bag_name),d.a.createElement("div",{className:"center"},"\u9996\u8d2d\u7279\u60e0"===t.discounts_reason&&d.a.createElement("div",{className:"discounts-reason"},t.discounts_reason),"\u9996\u8d2d\u7279\u60e0"!==t.discounts_reason&&d.a.createElement("div",{className:"discounts-reason discounts-reason2"},t.discounts_reason),d.a.createElement("div",{className:"price"},"\xa5",d.a.createElement("span",{className:"new-price"},t.price1),d.a.createElement("s",{className:"old-price"},"\xa5",t.price0))),d.a.createElement("div",{className:"check-box"},d.a.createElement("span",{className:"".concat(m===a?"checked":"check")})))}),d.a.createElement("button",{className:"check-tobuy",onClick:function(){return e.tobuy()}},"\u7acb\u5373\u8d2d\u4e70"))))}}]),t}(p.Component))||n;function _(e){return d.a.createElement("div",{className:"privilege-title"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/viplog.png",alt:""}),d.a.createElement("span",null,"\u670d\u52a1",e.num)," ",e.title)}function N(e){return d.a.createElement("div",{className:"privilege-list"},e.data.map(function(e,t){return d.a.createElement("div",{key:t},""===e.src&&d.a.createElement("a",{className:"course-box"},d.a.createElement("img",{src:e.img,alt:""})),""!==e.src&&d.a.createElement("a",{className:"course-box",href:e.src},d.a.createElement("img",{src:e.img,alt:""})))}))}function I(e){return d.a.createElement("div",{className:"teacher-list"},e.data.map(function(e,t){return d.a.createElement("div",{className:"teacher-item",key:t},d.a.createElement("img",{src:e.img,alt:""}),d.a.createElement("span",null,e.name))}))}function w(e){return d.a.createElement("div",{className:"connect ".concat(e.position)},d.a.createElement("span",{className:"top"}),d.a.createElement("span",{className:"con"}),d.a.createElement("span",{className:"bottom"}))}t.default=Object(h.g)(y)},590:function(e,t,a){}}]);
//# sourceMappingURL=Invite.de50cf8b.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1018:function(e,t,a){},1177:function(e,t,a){"use strict";a.r(t);a(40);var n=a(10),i=a.n(n),c=a(3),s=a(5),l=a(4),o=a(6),r=a(7),m=a(0),u=a.n(m),p=a(20),d=(a(590),a(2)),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(d.c)("plat_form")){var e=Number(Object(d.c)("version"));a.setState({isshowAppTip:e<3.704})}if(2==Object(d.c)("plat_form")){var t=Object(d.c)("version").replace(/\./g,"").slice(0,3);a.setState({isshowAppTip:Number(t)<451})}},a.getUserList=function(){d.f.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(){d.f.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(){d.f.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(d.j)()&&Object(d.n)({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(d.c)("version"))if(t.hasError)Object(d.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(d.a)("toShare",o)}else t.hasError?n.push("/passport"):Object(d.j)()?(n.push("/invite?shareuid=".concat(h.a.get("uid"),"&new=1&inviteCode=").concat(s)),Object(d.n)({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(d.c)("shareuid");e===t||Object(d.c)("new")&&this.props.history.push("/activity?shareuid=".concat(t,"&inviteCode=").concat(Object(d.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(p.b)(function(e){return{user:e.user}},null)(v)},1178:function(e,t,a){"use strict";a.r(t);a(40);var n,i=a(10),c=a.n(i),s=a(3),l=a(5),o=a(4),r=a(6),m=a(7),u=a(51),p=a(0),d=a.n(p),g=(a(1018),a(2)),h=a(47),v=a(20),b=a(36),f=a.n(b),E=a(23),j=a(420),y=Object(v.b)(function(e){return{user:e.user}},{setCurrentUser:E.i,startFetchUser:E.j})(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/39376e2038.png",src:"/getDetail?id=280"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/e61f810c30.png",src:"/getDetail?id=293"},{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/07dafc3480.png",src:"/getDetail?id=216"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/d9ca2ad5e8.png",src:"/getDetail?id=262"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/a7e5ab0af6.png",src:"/getDetail?id=232"},{img:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/c9a6779b75.png",src:"/getDetail?id=181"},{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(j.a)(new Date,90);a.state.userInfoList.map(function(t,a){f.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),f.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),f.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),f.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),f.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),f.a.get("token")&&f.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.f.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.f.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.f.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,p=t.lowPrice;return d.a.createElement("div",{className:"new-vip"},d.a.createElement("div",{className:"banner"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/vip-banner.png",alt:""})),(a||n)&&d.a.createElement("div",{className:"notice"},a&&d.a.createElement("div",{className:"tip"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/linlin_icon.png",alt:""}),d.a.createElement("span",null,a)),n&&d.a.createElement("div",{className:"time"},i)),d.a.createElement("div",{className:"privilege-box"},d.a.createElement("div",{className:"privilege-name"},"VIP\u5c0a\u4eab\u4e94\u5927\u670d\u52a1"),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u4e00",title:"\u76f4\u64ad\u8bfe\u7a0b\u62a2\u5148\u5b66"}),d.a.createElement(N,{data:c})),d.a.createElement(w,{position:"left"}),d.a.createElement(w,{position:"right"}),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u4e8c",title:"\u7545\u5b66\u5168\u5e73\u53f0\u89c6\u9891\u8bfe\u7a0b"}),d.a.createElement(N,{data:s})),d.a.createElement(w,{position:"left"}),d.a.createElement(w,{position:"right"}),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u4e09",title:"GPU&CPU\u53cc\u4e91\u5e73\u53f0\u514d\u8d39\u7528"}),d.a.createElement("div",{className:"privilege-list-row"},d.a.createElement("div",{className:"privilege-list-gpu"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu1_bj%402x.png",alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/gpu2_bj%402x.png",alt:""})),d.a.createElement("div",{className:"privilege-list-tip"},l.map(function(e,t){return d.a.createElement("div",{className:"privilege-tip-item",key:t},d.a.createElement("span",null,t+1),e)})))),d.a.createElement(w,{position:"left"}),d.a.createElement(w,{position:"right"}),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u56db",title:"\u8bb2\u5e08/\u52a9\u6559\u56e2\u961f24\u5c0f\u65f6\u7b54\u7591"}),d.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"),d.a.createElement(I,{data:o})),d.a.createElement(w,{position:"left"}),d.a.createElement(w,{position:"right"}),d.a.createElement("div",{className:"privilege-content"},d.a.createElement(_,{num:"\u4e94",title:"\u5728\u7ebf\u4f5c\u4e1a\u53ca\u6d4b\u8bc4\u5e73\u53f0"}),d.a.createElement("div",{className:"privilege-test"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce1_bj%402x.png",alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/ce2_bj%402x.png",alt:""})))),d.a.createElement("div",{className:"tobuy",onClick:function(){return e.showPrice()}},p,"\u5143 \u7acb\u5373\u62a5\u540d"),u&&d.a.createElement("div",null,d.a.createElement("div",{className:"checkout-mbc",onClick:function(){return e.close()}}),d.a.createElement("div",{className:"checkout-box"},d.a.createElement("div",{className:"title"},d.a.createElement("span",null,"\u9009\u62e9\u5957\u9910"),d.a.createElement("span",{className:"close",onClick:function(){return e.close()}},"\u2715")),r.map(function(t,a){return d.a.createElement("div",{className:"checkout-list ".concat(m===a?"list-checked":"list-check"),key:a,onClick:function(){return e.tochecked(t,a)}},d.a.createElement("div",{className:"type"},t.bag_name),d.a.createElement("div",{className:"center"},"\u9996\u8d2d\u7279\u60e0"===t.discounts_reason&&d.a.createElement("div",{className:"discounts-reason"},t.discounts_reason),"\u9996\u8d2d\u7279\u60e0"!==t.discounts_reason&&d.a.createElement("div",{className:"discounts-reason discounts-reason2"},t.discounts_reason),d.a.createElement("div",{className:"price"},"\xa5",d.a.createElement("span",{className:"new-price"},t.price1),d.a.createElement("s",{className:"old-price"},"\xa5",t.price0))),d.a.createElement("div",{className:"check-box"},d.a.createElement("span",{className:"".concat(m===a?"checked":"check")})))}),d.a.createElement("button",{className:"check-tobuy",onClick:function(){return e.tobuy()}},"\u7acb\u5373\u8d2d\u4e70"))))}}]),t}(p.Component))||n;function _(e){return d.a.createElement("div",{className:"privilege-title"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/19VIP/newvip/h5/viplog.png",alt:""}),d.a.createElement("span",null,"\u670d\u52a1",e.num)," ",e.title)}function N(e){return d.a.createElement("div",{className:"privilege-list"},e.data.map(function(e,t){return d.a.createElement("div",{key:t},""===e.src&&d.a.createElement("a",{className:"course-box"},d.a.createElement("img",{src:e.img,alt:""})),""!==e.src&&d.a.createElement("a",{className:"course-box",href:e.src},d.a.createElement("img",{src:e.img,alt:""})))}))}function I(e){return d.a.createElement("div",{className:"teacher-list"},e.data.map(function(e,t){return d.a.createElement("div",{className:"teacher-item",key:t},d.a.createElement("img",{src:e.img,alt:""}),d.a.createElement("span",null,e.name))}))}function w(e){return d.a.createElement("div",{className:"connect ".concat(e.position)},d.a.createElement("span",{className:"top"}),d.a.createElement("span",{className:"con"}),d.a.createElement("span",{className:"bottom"}))}t.default=Object(h.g)(y)},590:function(e,t,a){}}]);
//# sourceMappingURL=Invite.cac786d5.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,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,EACDzB,EAAKW,SAAS,CACZsB,aAAcT,EAAKS,aACnBC,SAAUV,EAAKW,YAGjBP,EAAAC,EAAMC,K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,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.de50cf8b.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/39376e2038.png',\n src: '/getDetail?id=280'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/e61f810c30.png',\n src: '/getDetail?id=293'\n },\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/07dafc3480.png',\n src: '/getDetail?id=216'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/d9ca2ad5e8.png',\n src: '/getDetail?id=262'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/a7e5ab0af6.png',\n src: '/getDetail?id=232'\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-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,O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cesContent":["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/39376e2038.png',\n src: '/getDetail?id=280'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/e61f810c30.png',\n src: '/getDetail?id=293'\n },\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/07dafc3480.png',\n src: '/getDetail?id=216'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/d9ca2ad5e8.png',\n src: '/getDetail?id=262'\n },\n {\n img: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/a7e5ab0af6.png',\n src: '/getDetail?id=232'\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-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],{1162:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(138);var n=t(73),i=t.n(n),c=(t(85),t(26)),o=t.n(c),r=(t(137),t(36)),s=t.n(r),l=(t(40),t(10)),d=t.n(l),p=t(3),u=t(5),m=t(4),y=t(6),f=t(7),g=t(51),h=(t(506),t(507)),b=t.n(h),v=(t(110),t(49)),w=t.n(v),E=t(0),S=t.n(E),x=t(2),j=t(24),_=t(15),k=(t(748),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.j)()?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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.j)()&&(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(j.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(_.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.k,{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)},748:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.42ec7e0e.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1162:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(138);var n=t(73),i=t.n(n),c=(t(85),t(26)),o=t.n(c),r=(t(137),t(35)),s=t.n(r),l=(t(40),t(10)),d=t.n(l),p=t(3),u=t(5),m=t(4),y=t(6),f=t(7),g=t(51),h=(t(506),t(507)),b=t.n(h),v=(t(110),t(49)),w=t.n(v),E=t(0),S=t.n(E),x=t(2),j=t(24),_=t(15),k=(t(748),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.j)()?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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.j)()&&(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(j.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(_.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.k,{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)},748:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.df7aea6a.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,EA6CnBuB,SAAW,SAAC5B,GACRK,EAAKwB,SAAS,CACVC,QAAS9B,EACT+B,aAAa,IAEH,IAAV/B,G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Y,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.42ec7e0e.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","paddingRight","color","fontSize","onClick","Component"],"mappings":"wXAWMA,UAFOC,EAAAC,EAAKC,KACCC,MACDC,EAAAH,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AnI,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwBmI,EAAEjC,WAA1B,mCAAAlG,OAA6CmI,EAAErC,iBAK/D,aA3Zc+C","file":"mrstatic/js/PayOrder.df7aea6a.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],{1000:function(e,t,a){},1164:function(e,t,a){"use strict";a.r(t);a(140);var n,o=a(87),i=a.n(o),s=(a(137),a(36)),r=a.n(s),c=(a(40),a(10)),l=a.n(c),u=a(3),f=a(5),d=a(4),h=a(6),p=a(7),m=a(0),v=a.n(m),g=a(24),b=(a(1e3),a(585)),C=a(2),y=a(62),w=a(20),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.f.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.f.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.f.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.k,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})})):v.a.createElement("div",{className:"notdata"},"\u7279\u60e0\u8bfe\u7a0b\u90fd\u53bb\u53c2\u52a0\u6d3b\u52a8\u4e86\uff0c\u53ef\u4ee5\u53bb\u6d3b\u52a8\u9875\u770b\u770b\u54e6~")),v.a.createElement(r.a,null))))}}]),t}(m.Component))||n;t.default=E},450: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},455:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(9),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}},480:function(e,t,a){"use strict";a(52),a(481)},481:function(e,t,a){},482:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(9)),o=g(a(34)),i=g(a(11)),s=g(a(13)),r=g(a(12)),c=g(a(16)),l=g(a(18)),u=v(a(0)),f=v(a(1)),d=g(a(139)),h=g(a(450)),p=a(455),m=a(483);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(484)}).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},483: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}},484:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},585:function(e,t,a){"use strict";a(480);var n=a(482),o=a.n(n),i=a(3),s=a(5),r=a(4),c=a(6),l=a(7),u=a(0),f=a.n(u),d=(a(586),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},586:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.4d215fe1.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1000:function(e,t,a){},1164:function(e,t,a){"use strict";a.r(t);a(140);var n,o=a(87),i=a.n(o),s=(a(137),a(35)),r=a.n(s),c=(a(40),a(10)),l=a.n(c),u=a(3),f=a(5),d=a(4),h=a(6),p=a(7),m=a(0),v=a.n(m),g=a(24),b=(a(1e3),a(585)),C=a(2),y=a(62),w=a(20),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.f.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.f.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.f.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.k,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})})):v.a.createElement("div",{className:"notdata"},"\u7279\u60e0\u8bfe\u7a0b\u90fd\u53bb\u53c2\u52a0\u6d3b\u52a8\u4e86\uff0c\u53ef\u4ee5\u53bb\u6d3b\u52a8\u9875\u770b\u770b\u54e6~")),v.a.createElement(r.a,null))))}}]),t}(m.Component))||n;t.default=E},450: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},455:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(9),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}},480:function(e,t,a){"use strict";a(52),a(481)},481:function(e,t,a){},482:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(9)),o=g(a(34)),i=g(a(11)),s=g(a(13)),r=g(a(12)),c=g(a(16)),l=g(a(18)),u=v(a(0)),f=v(a(1)),d=g(a(139)),h=g(a(450)),p=a(455),m=a(483);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(484)}).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},483: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}},484:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},585:function(e,t,a){"use strict";a(480);var n=a(482),o=a.n(n),i=a(3),s=a(5),r=a(4),c=a(6),l=a(7),u=a(0),f=a.n(u),d=(a(586),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},586:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.8b181552.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":"+SAYMA,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,KAaRQ,YAAc,WACZC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAACC,GAC3B,MAAlBA,EAAIC,KAAKC,KACXhB,EAAKiB,SAAS,CACZC,SAAUJ,EAAIC,KAAKA,KACnBI,WAAW,IAGbC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MAtBZvB,EA4BnBwB,QAAU,WACRhB,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAACC,GACzB,MAAlBA,EAAIC,KAAKC,KACXhB,EAAKiB,SAAS,CACZC,SAA2C,MAAjCO,KAAKC,UAAUZ,EAAIC,KAAKA,MAAgB,GAAKD,EAAIC,KAAKA,KAChEI,WAAW,IAGbC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MApCZvB,EAyCnB2B,MAAQ,WACNnB,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAACC,GACzB,MAAlBA,EAAIC,KAAKC,KACXhB,EAAKiB,SAAS,CACZC,SAAUJ,EAAIC,KAAKA,KACnBI,WAAW,IAGbC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,I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I9BA,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.4d215fe1.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":"+SAYMA,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,KAaRQ,YAAc,WACZC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAh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CC5WA,SAAAoH,KAJAnM,OAAA8E,eAAAC,EAAA,cACAC,OAAA,IAKAD,EAAAiH,aAAA,CACAhC,UAAA,YACAmB,YAAA,GACAtD,SAAAsE,EACA/I,SAAA+I,EACA/D,QAAA+D,EACA7D,OAAA6D,EACAlD,QAAAkD,EACA3B,kBAAA,EACAU,UAAA,qCCfAlL,OAAA8E,eAAAC,EAAA,cACAC,OAAA,IAEAD,EAAA,SACAsG,WAAA,gBAEAhG,EAAAN,UAAA,0HCJMqH,qNASFC,OAAS,WAAM,IAAAC,EACiBvM,EAAKD,MAAzB0C,QACJ+J,OAFO,IAAAD,KAEQ,YAAc,YACjC1D,OAAO4D,SAASC,QAAQF,8EAVxB3D,OAAO4D,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.8b181552.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([[22],{1019:function(e,t,a){},1179:function(e,t,a){"use strict";a.r(t);var n=a(3),r=a(5),i=a(4),l=a(6),c=a(7),s=a(0),o=a.n(s),u=(a(1019),a(144)),m=a(2),d=(a(132),a(15)),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.f.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.n)({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)},1186:function(e,t,a){"use strict";a.r(t);a(137);var n=a(36),r=a.n(n),i=(a(587),a(589)),l=a.n(i),c=(a(40),a(10)),s=a.n(c),o=a(3),u=a(5),m=a(4),d=a(6),p=a(7),f=a(0),y=a.n(f),h=a(2),v=a(23),g=a(35),E=a.n(g),b=a(420),j=a(25),O=a(20),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.a)(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.n)({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.i,startFetchUser:v.j}))(C)},587:function(e,t,a){"use strict";a(52),a(212),a(588)},588:function(e,t,a){},589:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(a(9)),r=p(a(34)),i=p(a(11)),l=p(a(13)),c=p(a(12)),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(139)),d=p(a(213));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.3d7ecfef.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1019:function(e,t,a){},1179:function(e,t,a){"use strict";a.r(t);var n=a(3),r=a(5),i=a(4),l=a(6),c=a(7),s=a(0),o=a.n(s),u=(a(1019),a(144)),m=a(2),d=(a(132),a(15)),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.f.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.n)({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)},1186:function(e,t,a){"use strict";a.r(t);a(137);var n=a(35),r=a.n(n),i=(a(587),a(589)),l=a.n(i),c=(a(40),a(10)),s=a.n(c),o=a(3),u=a(5),m=a(4),d=a(6),p=a(7),f=a(0),y=a.n(f),h=a(2),v=a(23),g=a(36),E=a.n(g),b=a(420),j=a(25),O=a(20),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.a)(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.n)({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.i,startFetchUser:v.j}))(C)},587:function(e,t,a){"use strict";a(52),a(212),a(588)},588:function(e,t,a){},589:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(a(9)),r=p(a(34)),i=p(a(11)),l=p(a(13)),c=p(a(12)),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(139)),d=p(a(213));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.4fe49651.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,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,KACtBZ,EAAKc,SAAS,CACV3B,OAAQ,CACJC,MAAOwB,EAAKG,aACZ1B,IAAKuB,EAAKI,YACV1B,IAAKsB,EAAKK,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AAA,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.3d7ecfef.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,KACtBZ,EAAKc,SAAS,CACV3B,OAAQ,CACJC,MAAOwB,EAAKG,aACZ1B,IAAKuB,EAAKI,YACV1B,IAAKsB,EAAKK,WACV1B,GAAIqB,EAAKM,WAEbtB,KAAM,CACFC,OAAQe,EAAKf,OACbC,KAAMc,EAAKO,SACXpB,KAAMa,EAAKQ,aAEf5B,SAAU,CACNC,KAAMmB,EAAKS,cACX3B,OAAQkB,EAAKU,gBAGrBC,YAA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C,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.4fe49651.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([[23],{1036:function(e,a,t){},1181:function(e,a,t){"use strict";t.r(a);t(40);var n,s=t(10),r=t.n(s),c=t(14),i=t(3),l=t(5),d=t(4),m=t(6),o=t(7),u=t(0),p=t.n(u),_=(t(1036),t(489)),f=t(2),h=t(591),v=t(24),E=t(20),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(h.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?f.f.get("".concat(API.home,"/sys/lottery_result?id=").concat(Object(f.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},489:function(e,a,t){"use strict";var n=t(3),s=t(5),r=t(4),c=t(6),i=t(7),l=t(0),d=t.n(l),m=t(18),o=t.n(m),u=(t(593),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},591:function(e,a,t){"use strict";var n=t(14),s=(t(40),t(10)),r=t.n(s),c=t(3),i=t(5),l=t(4),d=t(6),m=t(7),o=t(0),u=t.n(o),p=(t(37),t(2)),_=t(17),f=(t(592),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.f.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.f.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=f},592:function(e,a,t){},593:function(e,a,t){}}]);
//# sourceMappingURL=blessing-getPrize.93853aa6.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1036:function(e,a,t){},1181:function(e,a,t){"use strict";t.r(a);t(40);var n,s=t(10),r=t.n(s),c=t(14),i=t(3),l=t(5),d=t(4),m=t(6),o=t(7),u=t(0),p=t.n(u),_=(t(1036),t(489)),f=t(2),h=t(591),v=t(24),E=t(20),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(h.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?f.f.get("".concat(API.home,"/sys/lottery_result?id=").concat(Object(f.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},489:function(e,a,t){"use strict";var n=t(3),s=t(5),r=t(4),c=t(6),i=t(7),l=t(0),d=t.n(l),m=t(18),o=t.n(m),u=(t(593),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},591:function(e,a,t){"use strict";var n=t(14),s=(t(40),t(10)),r=t.n(s),c=t(3),i=t(5),l=t(4),d=t(6),m=t(7),o=t(0),u=t.n(o),p=(t(37),t(2)),_=t(17),f=(t(592),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.f.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.f.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=f},592:function(e,a,t){},593:function(e,a,t){}}]);
//# sourceMappingURL=blessing-getPrize.8db2d56b.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,KAAMJ,KAFRQ,cAAgB,KACGP,EAmCnBQ,YAAc,SAACC,GAAS,IAAAC,EACCV,EAAKD,MAArBY,EADeD,EACfC,QAASf,EADMc,EACNd,IACTgB,EAAQZ,EAAKa,MAAbD,KACHH,IAASb,EACXe,EAAQG,KAAK,aAETL,IAAST,EAAKO,cAChBP,EAAKO,cAAgBQ,YAAM,CACzBC,MAAO,qBACPC,QAASC,EAAAC,EAAAC,cAACC,EAAA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AAU,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.93853aa6.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,IACjBO,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAR,GAAAa,KAAAH,KAAMJ,KAFRQ,cAAgB,KACGP,EAmCnBQ,YAAc,SAACC,GAAS,IAAAC,EACCV,EAAKD,MAArBY,EADeD,EACfC,QAASf,EADMc,EACNd,IACTgB,EAAQZ,EAAKa,MAAbD,KACHH,IAASb,EACXe,EAAQG,KAAK,aAETL,IAA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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.8db2d56b.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([[28],{1039:function(e,a,t){},1040:function(e,a,t){},1184:function(e,a,t){"use strict";t.r(a);t(509);var n=t(510),c=t.n(n),r=(t(110),t(49)),i=t.n(r),o=(t(138),t(73)),l=t.n(o),s=(t(85),t(26)),u=t.n(s),d=(t(137),t(36)),p=t.n(d),f=(t(40),t(10)),m=t.n(f),y=t(3),h=t(5),g=t(4),b=t(6),v=t(7),E=t(51),_=(t(506),t(507)),w=t.n(_),O=t(0),x=t.n(O),P=t(2),S=t(24),j=t(15),C=(t(1039),t(61)),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.j)()?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.f.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():m.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.f.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?(m.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){P.f.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 m.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(E.a)(Object(E.a)(t));e.intervalPayStatus=setInterval(function(){P.f.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?(m.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){P.f.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):m.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.f.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}):m.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,f=a.categoryList,m=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"}),f.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.k,{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",!m&&"invalid"]),onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"))}}]),a}(O.Component);a.default=Object(C.a)(R)},1185:function(e,a,t){"use strict";t.r(a);t(138);var n=t(73),c=t.n(n),r=(t(137),t(36)),i=t.n(r),o=t(75),l=(t(40),t(10)),s=t.n(l),u=t(3),d=t(5),p=t(4),f=t(6),m=t(7),y=t(51),h=(t(110),t(49)),g=t.n(h),b=(t(509),t(510)),v=t.n(b),E=(t(85),t(26)),_=t.n(E),w=(t(506),t(507)),O=t.n(w),x=t(0),P=t.n(x),S=t(2),j=t(24),C=t(464),k=(t(1040),t(61)),N=t(15),I=(t(146),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(f.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.f.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.j)()?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.f.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.f.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.f.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.f.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.f.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(m.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.f.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)},464:function(e,a,t){"use strict";var n=t(0),c=t.n(n);t(465);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)}},465:function(e,a,t){},495:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=d(t(9)),c=d(t(11)),r=d(t(13)),i=d(t(12)),o=d(t(16)),l=d(t(18)),s=d(t(528)),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},f=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=f,f.defaultProps={prefixCls:"am-radio",wrapLabel:!0},e.exports=a.default},506:function(e,a,t){"use strict";t(52),t(110),t(539)},507:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=r(t(495)),c=r(t(546));function r(e){return e&&e.__esModule?e:{default:e}}n.default.RadioItem=c.default,a.default=n.default,e.exports=a.default},539:function(e,a,t){},546:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=f(t(9)),c=f(t(34)),r=f(t(11)),i=f(t(13)),o=f(t(12)),l=f(t(16)),s=f(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=f(t(49)),p=f(t(495));function f(e){return e&&e.__esModule?e:{default:e}}var m=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=m(a,["listPrefixCls","onChange","disabled","radioProps","onClick"]),d=l.prefixCls,f=l.className,g=l.children,b=(0,s.default)(d+"-item",f,(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.d88f613e.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{1039:function(e,a,t){},1040:function(e,a,t){},1184:function(e,a,t){"use strict";t.r(a);t(509);var n=t(510),c=t.n(n),r=(t(110),t(49)),i=t.n(r),o=(t(138),t(73)),l=t.n(o),s=(t(85),t(26)),u=t.n(s),d=(t(137),t(35)),p=t.n(d),f=(t(40),t(10)),m=t.n(f),y=t(3),h=t(5),g=t(4),b=t(6),v=t(7),E=t(51),_=(t(506),t(507)),w=t.n(_),O=t(0),x=t.n(O),P=t(2),S=t(24),j=t(15),C=(t(1039),t(61)),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.j)()?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.f.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():m.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.f.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?(m.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){P.f.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 m.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(E.a)(Object(E.a)(t));e.intervalPayStatus=setInterval(function(){P.f.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?(m.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){P.f.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):m.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.f.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}):m.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,f=a.categoryList,m=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"}),f.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.k,{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",!m&&"invalid"]),onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"))}}]),a}(O.Component);a.default=Object(C.a)(R)},1185:function(e,a,t){"use strict";t.r(a);t(138);var n=t(73),c=t.n(n),r=(t(137),t(35)),i=t.n(r),o=t(75),l=(t(40),t(10)),s=t.n(l),u=t(3),d=t(5),p=t(4),f=t(6),m=t(7),y=t(51),h=(t(110),t(49)),g=t.n(h),b=(t(509),t(510)),v=t.n(b),E=(t(85),t(26)),_=t.n(E),w=(t(506),t(507)),O=t.n(w),x=t(0),P=t.n(x),S=t(2),j=t(24),C=t(464),k=(t(1040),t(61)),N=t(15),I=(t(146),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(f.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.f.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.j)()?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.f.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.f.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.f.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.f.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.f.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(m.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.f.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)},464:function(e,a,t){"use strict";var n=t(0),c=t.n(n);t(465);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)}},465:function(e,a,t){},495:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=d(t(9)),c=d(t(11)),r=d(t(13)),i=d(t(12)),o=d(t(16)),l=d(t(18)),s=d(t(528)),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},f=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=f,f.defaultProps={prefixCls:"am-radio",wrapLabel:!0},e.exports=a.default},506:function(e,a,t){"use strict";t(52),t(110),t(539)},507:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=r(t(495)),c=r(t(546));function r(e){return e&&e.__esModule?e:{default:e}}n.default.RadioItem=c.default,a.default=n.default,e.exports=a.default},539:function(e,a,t){},546:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=f(t(9)),c=f(t(34)),r=f(t(11)),i=f(t(13)),o=f(t(12)),l=f(t(16)),s=f(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=f(t(49)),p=f(t(495));function f(e){return e&&e.__esModule?e:{default:e}}var m=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=m(a,["listPrefixCls","onChange","disabled","radioProps","onClick"]),d=l.prefixCls,f=l.className,g=l.children,b=(0,s.default)(d+"-item",f,(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.bb6475e1.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.
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1106:function(e,t,a){},1107:function(e,t,a){},1108:function(e,t,a){},1109:function(e,t,a){},1110:function(e,t,a){},1111:function(e,t,a){},1112:function(e,t,a){},1113:function(e,t,a){},1114:function(e,t,a){},1115:function(e,t,a){},1203:function(e,t,a){"use strict";a.r(t);a(40);var n,c=a(10),s=a.n(c),i=a(3),o=a(5),r=a(4),l=a(6),u=a(7),p=a(51),m=a(0),d=a.n(m),h=a(2),y=(a(1106),a(1107),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(l.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(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state.list;return d.a.createElement("div",{className:"description"},d.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png",alt:""}),d.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png",alt:""}),d.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u7279 / \u8272"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/ml-introduce.png"}),d.a.createElement("ul",{className:"des-list"},e.map(function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("img",{src:e.icon,alt:""}),d.a.createElement("span",null,e.text))})))}}]),t}(m.Component)),f=(a(1108),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(l.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,c=Math.floor(Number(a)/10),s="";return s=a.length>1?1==c?n>=1?t[9]+t[n-1]:t[9]:n>1?t[c-1]+t[9]+t[n-1]:t[c-1]+t[9]:t[n-1],a.replace(a,s)},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this;return d.a.createElement("div",{className:"study__container"},d.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),d.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),d.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u5b89 / \u6392"),d.a.createElement("div",{className:"table__container"},d.a.createElement("div",{className:"table__head"},d.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),d.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),d.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),d.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return d.a.createElement("div",{className:"item__container",key:a},d.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return d.a.createElement("div",{className:"item__content",key:t},d.a.createElement("div",{className:"content order_number number_center"},e.number),d.a.createElement("div",{className:"content chapter"},e.name),d.a.createElement("div",{className:"content points"},e.info.name))}))})),d.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?d.a.createElement("div",{onClick:function(){return e.props.hide(1)}},d.a.createElement("p",null,"\u6536\u8d77"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):d.a.createElement("div",{onClick:function(){return e.props.show(1)}},d.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(m.Component)),b=(a(1109),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.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/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(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return d.a.createElement("div",{className:"team_container"},d.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),d.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),d.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),d.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"),d.a.createElement("ul",null,e.map(function(e,t){return d.a.createElement("li",{key:t,className:"item_li"},d.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),d.a.createElement("div",{className:"item_info"},d.a.createElement("span",{className:"name"},e.name),d.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(m.Component)),_=(a(1110),function(e){function t(){return Object(i.a)(this,t),Object(r.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return d.a.createElement("div",{className:"experience_container"},d.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"experience"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),d.a.createElement("div",null,d.a.createElement("p",null,"\u7279\u4ef7\u8bd5\u5b669\u57579 \u4f53\u9a8c\u524d3\u4e2a\u8bfe\u65f6"),d.a.createElement("p",null,"\u5f00\u542f\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),d.a.createElement("div",{className:"btn",onClick:function(){a(1)}},"\u7acb\u5373\u4f53\u9a8c")):d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"experience"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),d.a.createElement("div",null,d.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),d.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),d.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(m.Component)),g=(a(1111),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.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\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(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state.list;return d.a.createElement("div",{className:"pro_container"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),d.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),d.a.createElement("ul",null,e.map(function(e,t){return d.a.createElement("li",{key:t,className:"q_item"},d.a.createElement("div",{className:"q"}," ",d.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",d.a.createElement("span",null)),d.a.createElement("div",{className:"a__container"},d.a.createElement("div",null,"A\uff1a"),d.a.createElement("p",null,e.a)))})))}}]),t}(m.Component)),v=(a(1112),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(l.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(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return d.a.createElement("div",{id:"selection"},d.a.createElement("h2",null,"\u7cbe / \u9009 / \u4e60 / \u9898"),d.a.createElement("ul",null,this.state.screenshots.map(function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("img",{src:e,alt:""}))})))}}]),t}(m.Component)),j=(a(1113),function(e){function t(){return Object(i.a)(this,t),Object(r.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return d.a.createElement("div",{className:"mask_container"},d.a.createElement("div",{className:"content"},d.a.createElement("p",{className:"title"},"\u6e29\u99a8\u63d0\u793a"),1===this.props.type?d.a.createElement(d.a.Fragment,null,d.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")):d.a.createElement(d.a.Fragment,null,d.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")),d.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}(m.Component)),E=(a(1114),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(l.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"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_8.png",title:"\u57fa\u4e8eSVM\u7684\u4eba\u8138\u8bc6\u522b",detail:"\u4eba\u8138\u8bc6\u522b\u662f\u8ba1\u7b97\u673a\u89c6\u89c9\u9886\u57df\u7684\u4e00\u9879\u91cd\u8981\u6280\u672f\uff0c\u672c\u9879\u76ee\u57fa\u4e8eSkeran\u4e2d\u7684SVM\u7b97\u6cd5\u5728Olivetti\u4eba\u8138\u6570\u636e\u96c6\u4e0a\u8fdb\u884c\u7b80\u5355\u7684\u4eba\u8138\u5206\u7c7b\u3002"}],showAll:!1,initialShowCount:8},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state,t=e.showAll,a=e.initialShowCount;return d.a.createElement("div",{id:"in-action"},d.a.createElement("h2",null,"\u9879 / \u76ee / \u5b9e / \u6218"),d.a.createElement("ul",null,this.state.projects.map(function(e,n){return n>=a&&!t?null:d.a.createElement("li",{key:n},d.a.createElement("div",{className:"project-image"},d.a.createElement("img",{src:e.image,alt:""})),d.a.createElement("div",{className:"des"},d.a.createElement("div",{className:"title"},d.a.createElement("span",null,n+1),d.a.createElement("span",null,e.title)),d.a.createElement("p",{className:"detail"},e.detail)))})))}}]),t}(m.Component)),O=a(476),w=a(20),C=a(24);var N,k=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).tryLearn=function(e){a.statistics(e),a.props.user.hasError?a.toLogin():a.creatOid(e)},a.creatOid=function(e){var t="";t="".concat(API["base-api"],3==e?"/sys/it_baoming/create":"/sys/trial_create"),h.f.post(t,{course_id:Object(h.c)("id")}).then(function(e){var t=e.data,n=t.errno,c=t.data,i=t.msg;200===n?(a.setState({orderId:c.oid}),a.weixinPay(c.oid)):s.a.info(i,2)})},a.weixinPay=function(e){if(h.b.isWeixin){var t=window.location.origin+location.pathname+"?id="+Object(h.c)("id");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(t+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"}else h.f.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():s.a.info(t.data.msg,2)})},a.toLearn=function(){var e=a.props.backwardVersion;h.f.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(h.c)("id")}).then(function(t){var n=t.data,c=n.code,i=n.msg;200==c?Object(h.c)("version")?e?s.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(h.a)("toLearn",Object(h.c)("id")):a.setState({toApp:!0}):s.a.info(i,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props.backwardVersion,t=Object(h.c)("id");if(Object(h.c)("version"))if(e){s.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(h.a)("toPay",t)},2e3)}else Object(h.a)("toPay",t);else h.f.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}):s.a.info(e.data.msg,2)})},a.toLogin=function(){Object(h.c)("version")?Object(h.a)("toLogin"):h.b.isWeixin?a.props.isWxloginFun(!0):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(){var e=a.props.buyTry;h.f.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(h.c)("id"),"&buy_try=").concat(e)).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;200==n?a.setState({syllabus:c.syllabus.slice(0,2),allSyllabus:c.syllabus,allPractice:c.practice,payMoney:c.course_info.price1,courseInfo:c.course_info}):s.a.info(i)})},a.statistics=function(e){h.f.post("".concat(API.home,"/web/it_click_num/").concat(Object(h.c)("id")),{type:e})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,allPractice:[],toApp:!1,payMoney:0,isOnline:!0,courseInfo:{},isShowChannel:window.sessionStorage.getItem("isShowSiteWindowByChannel"),orderId:""},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&s.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,c=t.toApp,s=t.payMoney,i=t.isOnline,o=t.courseInfo;return d.a.createElement("div",{className:"python__des"},d.a.createElement("div",{className:"des__start"}),!!o.is_dist&&d.a.createElement(O.a,{courseInfo:o}),d.a.createElement("div",{className:"course__introduce"}),i?d.a.createElement("div",{className:"bottom__btn_group"},d.a.createElement("div",{className:"course__price"},d.a.createElement("div",{className:"money"},s,d.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),d.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",d.a.createElement("div",{className:"triangle"}))),d.a.createElement("div",{className:"btn__group"},d.a.createElement("div",{className:"try__study",onClick:function(){e.tryLearn(3)}},"\u7acb\u5373\u62a5\u540d"),d.a.createElement("div",{className:"sign__now",onClick:function(){e.tryLearn(2)}},"9.9\u7279\u4ef7\u8bd5\u5b66"))):d.a.createElement("div",{className:"bottom__btn_group"},d.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),d.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),1==this.state.isShowChannel&&d.a.createElement(C.a,{className:"toapp"}),d.a.createElement(y,null),d.a.createElement(f,{syllabus:a,allSyllabusShow:n,show:this.showAll,hide:this.hideSome}),d.a.createElement(v,null),d.a.createElement(E,null),d.a.createElement(b,null),d.a.createElement(_,{tryLearn:this.tryLearn,isOnline:i}),d.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/di.png",alt:""}),d.a.createElement(g,null),c&&d.a.createElement(j,{type:1,closePop:this.closePop}))}}]),t}(m.Component))||n,P=(a(490),a(492)),S=a.n(P),A=(a(1115),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).fetchCourseDetail=function(){var e=a.props.buyTry;h.f.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(h.c)("id"),"&is_pay=1&buy_try=").concat(e)).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200===c?a.setState({courseInfo:n.course_info,syllabus:n.syllabus,learning:n.learning}):s.a.info(i,2)})},a.Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,c=Math.floor(Number(a)/10),s="";return s=a.length>1?1==c?n>=1?t[9]+t[n-1]:t[9]:n>1?t[c-1]+t[9]+t[n-1]:t[c-1]+t[9]:t[n-1],a.replace(a,s)},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.creatOid=function(){h.f.post("".concat(API["base-api"],"/sys/it_baoming/create"),{course_id:Object(h.c)("id")}).then(function(e){var t=e.data,n=t.errno,c=t.data,i=t.msg;200===n?(a.setState({orderId:c.oid}),a.weixinPay(c.oid)):s.a.info(i,2)})},a.weixinPay=function(e){if(h.b.isWeixin){var t=window.location.origin+location.pathname+"?id="+Object(h.c)("id");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(t+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"}else h.f.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():s.a.info(t.data.msg,2)})},a.state={toApp:!1,courseInfo:"",orderId:"",syllabus:"",learning:"",isShowChannel:window.sessionStorage.getItem("isShowSiteWindowByChannel")},a}return Object(u.a)(t,e),Object(o.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,c=n.courseInfo,s=n.syllabus,i=n.learning,o=n.toApp;return d.a.createElement("div",{className:"python-study"},d.a.createElement(C.e,{title:"\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe",arrow:!0}),d.a.createElement("div",{className:"python-study__header"},d.a.createElement("div",{className:"python-study__course"},d.a.createElement("h2",{className:"python-study__course-name"},"\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe"),0==c.buy_try&&d.a.createElement("p",{className:"python-study__course-contact"},d.a.createElement("span",null,1==c.contact_type?"\u4e0a\u8bfe\u8bf7\u52a0QQ\u5b66\u4e60\u7fa4":"\u6dfb\u52a0\u52a9\u6559\u5fae\u4fe1\u5165\u7fa4","\uff1a",c.course_qq),d.a.createElement("span",null,"\u5e76\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a))),i.schedule>0&&d.a.createElement("div",{className:"python-study__progress"},d.a.createElement("h2",{className:"python-study__progress-title"},"\u5b66\u4e60\u8fdb\u5ea6",!!i.day&&d.a.createElement("span",null,"\uff08\u5df2\u8fde\u7eed\u5b66\u4e60",d.a.createElement("span",null,i.day),"\u5929\uff09")),d.a.createElement("div",{className:"python-study__progress-bar"},d.a.createElement("i",{style:{width:i.schedule+"%"}}),d.a.createElement("span",{className:"python-study__progress-tip",style:{left:i.schedule+"%"}},i.schedule+"%"))),1==this.state.isShowChannel&&d.a.createElement(C.a,{className:"toapp"})),!!c.is_dist&&d.a.createElement("div",{className:"dist-wrapper"},d.a.createElement(O.a,{courseInfo:c})),d.a.createElement(S.a,{defaultActiveKey:"0",className:"python-study__stage",onChange:this.onChange},s&&s.length>0&&s.map(function(t,a){var n="\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5\uff1a").concat(t.name);return d.a.createElement(S.a.Panel,{header:n,className:"pad",key:a},t.lessons&&t.lessons.length>0&&t.lessons.map(function(t,a){return d.a.createElement("div",{key:a},d.a.createElement("h2",{className:"python-study__pass"},"\u7b2c",t.shut,"\u5173 ",t.name,1==t.complete&&d.a.createElement("i",{className:"python-study__pass-tag"},"\u95ef\u5173\u5b8c\u6210")),d.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},d.a.createElement("img",{className:"python-study__subject-icon",src:t.info.img_url,alt:""}),1==t.info.is_unlock&&1==t.info.complete&&d.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),0==t.info.is_unlock&&d.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),d.a.createElement("div",{className:"python-study__subject-content"},d.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.info.name))),t.project&&d.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.project.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.project.is_unlock)}},d.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&&d.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),1==t.project.is_unlock&&0==t.project.complete&&d.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),d.a.createElement("div",{className:"python-study__subject-content"},d.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.project.name),1==t.project.is_must&&d.a.createElement("span",{className:"python-study__subject-tag"},"\u5fc5\u505a\u7ec3\u4e60"))))}),0===a&&1==s[0].lessons[2].info.complete&&1==c.buy_try&&d.a.createElement("div",{className:"study-end"},"\u8bd5\u5b66\u7ed3\u675f\uff0c",d.a.createElement("span",null,c.price1,"\u5143"),"\u5b66\u4e60\u5168\u90e8\u8bfe\u65f6",d.a.createElement("a",{className:"tobuy",onClick:function(){e.creatOid()}},"\u7acb\u5373\u62a5\u540d")))})),0==i.schedule&&d.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u5f00\u59cb\u5b66\u4e60"),0!=i.schedule&&100!=i.schedule&&d.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u7ee7\u7eed\u5b66\u4e60"),100==i.schedule&&d.a.createElement("button",{className:"python-study__button python-study__over"},"\u5df2\u5b66\u5b8c\u5168\u90e8\u8bfe\u65f6"),o&&d.a.createElement(j,{closePop:this.closePop,type:2}))}}]),t}(m.Component)),x=Object(w.b)(function(e){return{user:e.user}},null)(A),I=a(420),L=a(35),R=a.n(L),T=a(23),K=Object(w.b)(function(e){return{user:e.user}},{setCurrentUser:T.i,startFetchUser:T.j})(N=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).isweixinPay=function(){var e=Object(p.a)(Object(p.a)(a)),t=Object(h.c)("code");if(t){if(void 0===Object(h.c)("oid"))return;h.f.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(h.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(){h.f.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(h.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,location.href="/ml?id="+Object(h.c)("id"))})},1e3))})},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()}})}},a.payCallback=function(){var e=Object(p.a)(Object(p.a)(a));e.intervalPayStatus=setInterval(function(){h.f.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(h.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,location.href="/ml?id="+Object(h.c)("id"))})},1e3)},a.isWxloginFun=function(e){a.setState({isWxlogin:e})},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(I.a)(new Date,90);a.state.userInfoList.map(function(t,a){R.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),R.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),R.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),R.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),R.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),R.a.get("token")&&R.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(h.c)("id");h.f.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(t){var n=t.data,c=n.data;if(200===n.code){var s=Object(h.c)("version");if(s)if(s=s.replace(/\./g,"").slice(0,3),h.b.isAndroidApp&&s<453)a.setState({backwardVersion:!0,isPay:0});else if(h.b.isIOSApp&&s<380)a.setState({backwardVersion:!0,isPay:0});else{if(1===c.course_info.is_pay)return void Object(h.a)("toSyllabusChapter",e);a.setState({backwardVersion:!1,isPay:c.course_info.is_pay})}else a.setState({backwardVersion:!1,isPay:c.course_info.is_pay,buyTry:c.course_info.buy_try})}})},a.state={isPay:"",buyTry:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1,isWxlogin:!1},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){document.title="\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe [\u7cbe\u8bb28\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)},h.b.isWeixin&&Object(h.c)("oid")&&this.isweixinPay(),Object(h.c)("weixinpay")&&this.payCallback()}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.buyTry,n=e.isAppUpdate,c=e.backwardVersion,s=e.isWxlogin;return d.a.createElement("div",null,0===t&&0===a&&d.a.createElement(k,{backwardVersion:c,isWxloginFun:this.isWxloginFun.bind(this),history:this.props.history,isAppUpdate:n,isPay:t,buyTry:a}),(1===t||1===a)&&!Object(h.c)("version")&&d.a.createElement(x,{isAppUpdate:n,buyTry:a}),s&&d.a.createElement(C.l,{history:this.props.history}))}}]),t}(m.Component))||N;t.default=K},476:function(e,t,a){"use strict";a(85);var n=a(26),c=a.n(n),s=(a(40),a(10)),i=a.n(s),o=a(3),r=a(5),l=a(4),u=a(6),p=a(7),m=a(0),d=a.n(m),h=(a(502),a(2)),y=a(20),f=a(47),b=a(25),_=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(l.a)(this,Object(u.a)(t).call(this,e))).getRankList=function(){h.f.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.f.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 c=Object(h.c)("id"),s=e.dist_first_level_ti,i=a.state.code;a.props.history.push("/shareposter?courseId=".concat(c,"&dist_first=").concat(s,"&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(p.a)(t,e),Object(r.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(c.a,{className:"share-container",justify:"between"},d.a.createElement(c.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(c.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}(m.Component);t.a=Object(b.d)(Object(y.b)(function(e){return{user:e.user}},null),f.g)(_)},490:function(e,t,a){"use strict";a(52),a(491)},491:function(e,t,a){},492:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(a(11)),c=u(a(13)),s=u(a(12)),i=u(a(16)),o=a(504),r=u(o),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 p=function(e){function t(){return(0,n.default)(this,t),(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,i.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){return l.createElement(r.default,this.props)}}]),t}(l.Component);t.default=p,p.Panel=o.Panel,p.defaultProps={prefixCls:"am-accordion"},e.exports=t.default},502:function(e,t,a){},504:function(e,t,a){"use strict";a.r(t);var n=a(0),c=a.n(n),s=a(1),i=a.n(s),o=a(18),r=a.n(o),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 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,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,s=t.children,i=t.destroyInactivePanel,o=t.forceRender,l=t.role,p=r()((u(e={},a+"-content",!0),u(e,a+"-content-active",n),u(e,a+"-content-inactive",!n),e)),m=o||n||!i?c.a.createElement("div",{className:a+"-content-box"},s):null;return c.a.createElement("div",{className:p,role:l},m)}}]),t}();p.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 m=p,d=a(79),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 c=arguments.length,s=Array(c),i=0;i<c;i++)s[i]=arguments[i];return a=n=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),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,s=t.style,i=t.prefixCls,o=t.header,l=t.headerClass,u=t.children,p=t.isActive,h=t.showArrow,f=t.destroyInactivePanel,b=t.disabled,_=t.accordion,g=t.forceRender,v=r()(i+"-header",y({},l,l)),j=r()((y(e={},i+"-item",!0),y(e,i+"-item-active",p),y(e,i+"-item-disabled",b),e),a);return c.a.createElement("div",{className:j,style:s,id:n},c.a.createElement("div",{className:v,onClick:this.handleItemClick,role:_?"tab":"button",tabIndex:b?-1:0,"aria-expanded":""+p,onKeyPress:this.handleKeyPress},h&&c.a.createElement("i",{className:"arrow"}),o),c.a.createElement(d.a,{showProp:"isActive",exclusive:!0,component:"",animation:this.props.openAnimation},c.a.createElement(m,{prefixCls:i,isActive:p,destroyInactivePanel:f,forceRender:g,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,g=a(111);function v(e,t,a,n){var c=void 0;return Object(g.a)(e,a,{start:function(){t?(c=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){e.style.height=(t?c:0)+"px"},end:function(){e.style.height="",n()}})}var j=function(e){return{enter:function(t,a){return v(t,!0,e+"-anim",a)},leave:function(t,a){return v(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 O(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function w(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 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,c=n.activeKey,s=n.defaultActiveKey;return"activeKey"in a.props&&(s=c),a.state={openAnimation:a.props.openAnimation||j(a.props.prefixCls),activeKey:w(s)},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:w(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,s=a.prefixCls,i=a.accordion,o=a.destroyInactivePanel,r=[];return n.Children.forEach(this.props.children,function(a,n){if(a){var l=a.key||String(n),u=a.props,p=u.header,m=u.headerClass,d=u.disabled,h=!1;h=i?t[0]===l:t.indexOf(l)>-1;var y={key:l,header:p,headerClass:m,isActive:h,prefixCls:s,destroyInactivePanel:o,openAnimation:e.state.openAnimation,accordion:i,children:a.props.children,onItemClick:d?null:function(){return e.onClickItem(l)}};r.push(c.a.cloneElement(a,y))}}),r}},{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,s=t.style,i=t.accordion,o=r()((O(e={},a,!0),O(e,n,!!n),e));return c.a.createElement("div",{className:o,style:s,role:i?"tablist":null},this.getItems())}}]),t}();C.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},C.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},C.Panel=_;var N=C;a.d(t,"Panel",function(){return k});t.default=N;var k=N.Panel}}]);
//# sourceMappingURL=ml.06a33ad0.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1106:function(e,t,a){},1107:function(e,t,a){},1108:function(e,t,a){},1109:function(e,t,a){},1110:function(e,t,a){},1111:function(e,t,a){},1112:function(e,t,a){},1113:function(e,t,a){},1114:function(e,t,a){},1115:function(e,t,a){},1203:function(e,t,a){"use strict";a.r(t);a(40);var n,c=a(10),s=a.n(c),i=a(3),o=a(5),r=a(4),l=a(6),u=a(7),p=a(51),m=a(0),d=a.n(m),h=a(2),y=(a(1106),a(1107),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(l.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(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state.list;return d.a.createElement("div",{className:"description"},d.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png",alt:""}),d.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png",alt:""}),d.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u7279 / \u8272"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/ml-introduce.png"}),d.a.createElement("ul",{className:"des-list"},e.map(function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("img",{src:e.icon,alt:""}),d.a.createElement("span",null,e.text))})))}}]),t}(m.Component)),f=(a(1108),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(l.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,c=Math.floor(Number(a)/10),s="";return s=a.length>1?1==c?n>=1?t[9]+t[n-1]:t[9]:n>1?t[c-1]+t[9]+t[n-1]:t[c-1]+t[9]:t[n-1],a.replace(a,s)},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this;return d.a.createElement("div",{className:"study__container"},d.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),d.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),d.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u5b89 / \u6392"),d.a.createElement("div",{className:"table__container"},d.a.createElement("div",{className:"table__head"},d.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),d.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),d.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),d.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return d.a.createElement("div",{className:"item__container",key:a},d.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return d.a.createElement("div",{className:"item__content",key:t},d.a.createElement("div",{className:"content order_number number_center"},e.number),d.a.createElement("div",{className:"content chapter"},e.name),d.a.createElement("div",{className:"content points"},e.info.name))}))})),d.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?d.a.createElement("div",{onClick:function(){return e.props.hide(1)}},d.a.createElement("p",null,"\u6536\u8d77"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):d.a.createElement("div",{onClick:function(){return e.props.show(1)}},d.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(m.Component)),b=(a(1109),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.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/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(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return d.a.createElement("div",{className:"team_container"},d.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),d.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),d.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),d.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"),d.a.createElement("ul",null,e.map(function(e,t){return d.a.createElement("li",{key:t,className:"item_li"},d.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),d.a.createElement("div",{className:"item_info"},d.a.createElement("span",{className:"name"},e.name),d.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(m.Component)),_=(a(1110),function(e){function t(){return Object(i.a)(this,t),Object(r.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return d.a.createElement("div",{className:"experience_container"},d.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"experience"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),d.a.createElement("div",null,d.a.createElement("p",null,"\u7279\u4ef7\u8bd5\u5b669\u57579 \u4f53\u9a8c\u524d3\u4e2a\u8bfe\u65f6"),d.a.createElement("p",null,"\u5f00\u542f\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),d.a.createElement("div",{className:"btn",onClick:function(){a(1)}},"\u7acb\u5373\u4f53\u9a8c")):d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"experience"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),d.a.createElement("div",null,d.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),d.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),d.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(m.Component)),g=(a(1111),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.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\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(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state.list;return d.a.createElement("div",{className:"pro_container"},d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),d.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),d.a.createElement("ul",null,e.map(function(e,t){return d.a.createElement("li",{key:t,className:"q_item"},d.a.createElement("div",{className:"q"}," ",d.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",d.a.createElement("span",null)),d.a.createElement("div",{className:"a__container"},d.a.createElement("div",null,"A\uff1a"),d.a.createElement("p",null,e.a)))})))}}]),t}(m.Component)),v=(a(1112),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(l.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(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return d.a.createElement("div",{id:"selection"},d.a.createElement("h2",null,"\u7cbe / \u9009 / \u4e60 / \u9898"),d.a.createElement("ul",null,this.state.screenshots.map(function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("img",{src:e,alt:""}))})))}}]),t}(m.Component)),j=(a(1113),function(e){function t(){return Object(i.a)(this,t),Object(r.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return d.a.createElement("div",{className:"mask_container"},d.a.createElement("div",{className:"content"},d.a.createElement("p",{className:"title"},"\u6e29\u99a8\u63d0\u793a"),1===this.props.type?d.a.createElement(d.a.Fragment,null,d.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")):d.a.createElement(d.a.Fragment,null,d.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")),d.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}(m.Component)),E=(a(1114),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(l.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"},{image:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/project_8.png",title:"\u57fa\u4e8eSVM\u7684\u4eba\u8138\u8bc6\u522b",detail:"\u4eba\u8138\u8bc6\u522b\u662f\u8ba1\u7b97\u673a\u89c6\u89c9\u9886\u57df\u7684\u4e00\u9879\u91cd\u8981\u6280\u672f\uff0c\u672c\u9879\u76ee\u57fa\u4e8eSkeran\u4e2d\u7684SVM\u7b97\u6cd5\u5728Olivetti\u4eba\u8138\u6570\u636e\u96c6\u4e0a\u8fdb\u884c\u7b80\u5355\u7684\u4eba\u8138\u5206\u7c7b\u3002"}],showAll:!1,initialShowCount:8},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state,t=e.showAll,a=e.initialShowCount;return d.a.createElement("div",{id:"in-action"},d.a.createElement("h2",null,"\u9879 / \u76ee / \u5b9e / \u6218"),d.a.createElement("ul",null,this.state.projects.map(function(e,n){return n>=a&&!t?null:d.a.createElement("li",{key:n},d.a.createElement("div",{className:"project-image"},d.a.createElement("img",{src:e.image,alt:""})),d.a.createElement("div",{className:"des"},d.a.createElement("div",{className:"title"},d.a.createElement("span",null,n+1),d.a.createElement("span",null,e.title)),d.a.createElement("p",{className:"detail"},e.detail)))})))}}]),t}(m.Component)),O=a(476),w=a(20),C=a(24);var N,k=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).tryLearn=function(e){a.statistics(e),a.props.user.hasError?a.toLogin():a.creatOid(e)},a.creatOid=function(e){var t="";t="".concat(API["base-api"],3==e?"/sys/it_baoming/create":"/sys/trial_create"),h.f.post(t,{course_id:Object(h.c)("id")}).then(function(e){var t=e.data,n=t.errno,c=t.data,i=t.msg;200===n?(a.setState({orderId:c.oid}),a.weixinPay(c.oid)):s.a.info(i,2)})},a.weixinPay=function(e){if(h.b.isWeixin){var t=window.location.origin+location.pathname+"?id="+Object(h.c)("id");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(t+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"}else h.f.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():s.a.info(t.data.msg,2)})},a.toLearn=function(){var e=a.props.backwardVersion;h.f.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(h.c)("id")}).then(function(t){var n=t.data,c=n.code,i=n.msg;200==c?Object(h.c)("version")?e?s.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(h.a)("toLearn",Object(h.c)("id")):a.setState({toApp:!0}):s.a.info(i,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props.backwardVersion,t=Object(h.c)("id");if(Object(h.c)("version"))if(e){s.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(h.a)("toPay",t)},2e3)}else Object(h.a)("toPay",t);else h.f.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}):s.a.info(e.data.msg,2)})},a.toLogin=function(){Object(h.c)("version")?Object(h.a)("toLogin"):h.b.isWeixin?a.props.isWxloginFun(!0):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(){var e=a.props.buyTry;h.f.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(h.c)("id"),"&buy_try=").concat(e)).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;200==n?a.setState({syllabus:c.syllabus.slice(0,2),allSyllabus:c.syllabus,allPractice:c.practice,payMoney:c.course_info.price1,courseInfo:c.course_info}):s.a.info(i)})},a.statistics=function(e){h.f.post("".concat(API.home,"/web/it_click_num/").concat(Object(h.c)("id")),{type:e})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,allPractice:[],toApp:!1,payMoney:0,isOnline:!0,courseInfo:{},isShowChannel:window.sessionStorage.getItem("isShowSiteWindowByChannel"),orderId:""},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&s.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,c=t.toApp,s=t.payMoney,i=t.isOnline,o=t.courseInfo;return d.a.createElement("div",{className:"python__des"},d.a.createElement("div",{className:"des__start"}),!!o.is_dist&&d.a.createElement(O.a,{courseInfo:o}),d.a.createElement("div",{className:"course__introduce"}),i?d.a.createElement("div",{className:"bottom__btn_group"},d.a.createElement("div",{className:"course__price"},d.a.createElement("div",{className:"money"},s,d.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),d.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",d.a.createElement("div",{className:"triangle"}))),d.a.createElement("div",{className:"btn__group"},d.a.createElement("div",{className:"try__study",onClick:function(){e.tryLearn(3)}},"\u7acb\u5373\u62a5\u540d"),d.a.createElement("div",{className:"sign__now",onClick:function(){e.tryLearn(2)}},"9.9\u7279\u4ef7\u8bd5\u5b66"))):d.a.createElement("div",{className:"bottom__btn_group"},d.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),d.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),1==this.state.isShowChannel&&d.a.createElement(C.a,{className:"toapp"}),d.a.createElement(y,null),d.a.createElement(f,{syllabus:a,allSyllabusShow:n,show:this.showAll,hide:this.hideSome}),d.a.createElement(v,null),d.a.createElement(E,null),d.a.createElement(b,null),d.a.createElement(_,{tryLearn:this.tryLearn,isOnline:i}),d.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/di.png",alt:""}),d.a.createElement(g,null),c&&d.a.createElement(j,{type:1,closePop:this.closePop}))}}]),t}(m.Component))||n,P=(a(490),a(492)),S=a.n(P),A=(a(1115),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).fetchCourseDetail=function(){var e=a.props.buyTry;h.f.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(h.c)("id"),"&is_pay=1&buy_try=").concat(e)).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200===c?a.setState({courseInfo:n.course_info,syllabus:n.syllabus,learning:n.learning}):s.a.info(i,2)})},a.Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,c=Math.floor(Number(a)/10),s="";return s=a.length>1?1==c?n>=1?t[9]+t[n-1]:t[9]:n>1?t[c-1]+t[9]+t[n-1]:t[c-1]+t[9]:t[n-1],a.replace(a,s)},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.creatOid=function(){h.f.post("".concat(API["base-api"],"/sys/it_baoming/create"),{course_id:Object(h.c)("id")}).then(function(e){var t=e.data,n=t.errno,c=t.data,i=t.msg;200===n?(a.setState({orderId:c.oid}),a.weixinPay(c.oid)):s.a.info(i,2)})},a.weixinPay=function(e){if(h.b.isWeixin){var t=window.location.origin+location.pathname+"?id="+Object(h.c)("id");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(t+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"}else h.f.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():s.a.info(t.data.msg,2)})},a.state={toApp:!1,courseInfo:"",orderId:"",syllabus:"",learning:"",isShowChannel:window.sessionStorage.getItem("isShowSiteWindowByChannel")},a}return Object(u.a)(t,e),Object(o.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,c=n.courseInfo,s=n.syllabus,i=n.learning,o=n.toApp;return d.a.createElement("div",{className:"python-study"},d.a.createElement(C.e,{title:"\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe",arrow:!0}),d.a.createElement("div",{className:"python-study__header"},d.a.createElement("div",{className:"python-study__course"},d.a.createElement("h2",{className:"python-study__course-name"},"\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe"),0==c.buy_try&&d.a.createElement("p",{className:"python-study__course-contact"},d.a.createElement("span",null,1==c.contact_type?"\u4e0a\u8bfe\u8bf7\u52a0QQ\u5b66\u4e60\u7fa4":"\u6dfb\u52a0\u52a9\u6559\u5fae\u4fe1\u5165\u7fa4","\uff1a",c.course_qq),d.a.createElement("span",null,"\u5e76\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a))),i.schedule>0&&d.a.createElement("div",{className:"python-study__progress"},d.a.createElement("h2",{className:"python-study__progress-title"},"\u5b66\u4e60\u8fdb\u5ea6",!!i.day&&d.a.createElement("span",null,"\uff08\u5df2\u8fde\u7eed\u5b66\u4e60",d.a.createElement("span",null,i.day),"\u5929\uff09")),d.a.createElement("div",{className:"python-study__progress-bar"},d.a.createElement("i",{style:{width:i.schedule+"%"}}),d.a.createElement("span",{className:"python-study__progress-tip",style:{left:i.schedule+"%"}},i.schedule+"%"))),1==this.state.isShowChannel&&d.a.createElement(C.a,{className:"toapp"})),!!c.is_dist&&d.a.createElement("div",{className:"dist-wrapper"},d.a.createElement(O.a,{courseInfo:c})),d.a.createElement(S.a,{defaultActiveKey:"0",className:"python-study__stage",onChange:this.onChange},s&&s.length>0&&s.map(function(t,a){var n="\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5\uff1a").concat(t.name);return d.a.createElement(S.a.Panel,{header:n,className:"pad",key:a},t.lessons&&t.lessons.length>0&&t.lessons.map(function(t,a){return d.a.createElement("div",{key:a},d.a.createElement("h2",{className:"python-study__pass"},"\u7b2c",t.shut,"\u5173 ",t.name,1==t.complete&&d.a.createElement("i",{className:"python-study__pass-tag"},"\u95ef\u5173\u5b8c\u6210")),d.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},d.a.createElement("img",{className:"python-study__subject-icon",src:t.info.img_url,alt:""}),1==t.info.is_unlock&&1==t.info.complete&&d.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),0==t.info.is_unlock&&d.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),d.a.createElement("div",{className:"python-study__subject-content"},d.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.info.name))),t.project&&d.a.createElement("div",{className:"python-study__subject",style:{opacity:0==t.project.is_unlock?".6":"1"},onClick:function(){e.toPythonHome(t.project.is_unlock)}},d.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&&d.a.createElement("i",{className:"python-study__subject-status","data-status":"complete"}),1==t.project.is_unlock&&0==t.project.complete&&d.a.createElement("i",{className:"python-study__subject-status","data-status":"lock"}),d.a.createElement("div",{className:"python-study__subject-content"},d.a.createElement("h2",{className:"python-study__subject-title text-overflow-1"},t.project.name),1==t.project.is_must&&d.a.createElement("span",{className:"python-study__subject-tag"},"\u5fc5\u505a\u7ec3\u4e60"))))}),0===a&&1==s[0].lessons[2].info.complete&&1==c.buy_try&&d.a.createElement("div",{className:"study-end"},"\u8bd5\u5b66\u7ed3\u675f\uff0c",d.a.createElement("span",null,c.price1,"\u5143"),"\u5b66\u4e60\u5168\u90e8\u8bfe\u65f6",d.a.createElement("a",{className:"tobuy",onClick:function(){e.creatOid()}},"\u7acb\u5373\u62a5\u540d")))})),0==i.schedule&&d.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u5f00\u59cb\u5b66\u4e60"),0!=i.schedule&&100!=i.schedule&&d.a.createElement("span",{onClick:this.toLearn,className:"python-study__button"},"\u7ee7\u7eed\u5b66\u4e60"),100==i.schedule&&d.a.createElement("button",{className:"python-study__button python-study__over"},"\u5df2\u5b66\u5b8c\u5168\u90e8\u8bfe\u65f6"),o&&d.a.createElement(j,{closePop:this.closePop,type:2}))}}]),t}(m.Component)),x=Object(w.b)(function(e){return{user:e.user}},null)(A),I=a(420),L=a(36),R=a.n(L),T=a(23),K=Object(w.b)(function(e){return{user:e.user}},{setCurrentUser:T.i,startFetchUser:T.j})(N=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).isweixinPay=function(){var e=Object(p.a)(Object(p.a)(a)),t=Object(h.c)("code");if(t){if(void 0===Object(h.c)("oid"))return;h.f.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(h.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(){h.f.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(h.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,location.href="/ml?id="+Object(h.c)("id"))})},1e3))})},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()}})}},a.payCallback=function(){var e=Object(p.a)(Object(p.a)(a));e.intervalPayStatus=setInterval(function(){h.f.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(h.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,location.href="/ml?id="+Object(h.c)("id"))})},1e3)},a.isWxloginFun=function(e){a.setState({isWxlogin:e})},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(I.a)(new Date,90);a.state.userInfoList.map(function(t,a){R.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),R.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),R.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),R.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),R.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),R.a.get("token")&&R.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(h.c)("id");h.f.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(t){var n=t.data,c=n.data;if(200===n.code){var s=Object(h.c)("version");if(s)if(s=s.replace(/\./g,"").slice(0,3),h.b.isAndroidApp&&s<453)a.setState({backwardVersion:!0,isPay:0});else if(h.b.isIOSApp&&s<380)a.setState({backwardVersion:!0,isPay:0});else{if(1===c.course_info.is_pay)return void Object(h.a)("toSyllabusChapter",e);a.setState({backwardVersion:!1,isPay:c.course_info.is_pay})}else a.setState({backwardVersion:!1,isPay:c.course_info.is_pay,buyTry:c.course_info.buy_try})}})},a.state={isPay:"",buyTry:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1,isWxlogin:!1},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){document.title="\u673a\u5668\u5b66\u4e60\u5c0f\u8bfe [\u7cbe\u8bb28\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)},h.b.isWeixin&&Object(h.c)("oid")&&this.isweixinPay(),Object(h.c)("weixinpay")&&this.payCallback()}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.buyTry,n=e.isAppUpdate,c=e.backwardVersion,s=e.isWxlogin;return d.a.createElement("div",null,0===t&&0===a&&d.a.createElement(k,{backwardVersion:c,isWxloginFun:this.isWxloginFun.bind(this),history:this.props.history,isAppUpdate:n,isPay:t,buyTry:a}),(1===t||1===a)&&!Object(h.c)("version")&&d.a.createElement(x,{isAppUpdate:n,buyTry:a}),s&&d.a.createElement(C.l,{history:this.props.history}))}}]),t}(m.Component))||N;t.default=K},476:function(e,t,a){"use strict";a(85);var n=a(26),c=a.n(n),s=(a(40),a(10)),i=a.n(s),o=a(3),r=a(5),l=a(4),u=a(6),p=a(7),m=a(0),d=a.n(m),h=(a(502),a(2)),y=a(20),f=a(47),b=a(25),_=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(l.a)(this,Object(u.a)(t).call(this,e))).getRankList=function(){h.f.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.f.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 c=Object(h.c)("id"),s=e.dist_first_level_ti,i=a.state.code;a.props.history.push("/shareposter?courseId=".concat(c,"&dist_first=").concat(s,"&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(p.a)(t,e),Object(r.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(c.a,{className:"share-container",justify:"between"},d.a.createElement(c.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(c.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}(m.Component);t.a=Object(b.d)(Object(y.b)(function(e){return{user:e.user}},null),f.g)(_)},490:function(e,t,a){"use strict";a(52),a(491)},491:function(e,t,a){},492:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(a(11)),c=u(a(13)),s=u(a(12)),i=u(a(16)),o=a(504),r=u(o),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 p=function(e){function t(){return(0,n.default)(this,t),(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,i.default)(t,e),(0,c.default)(t,[{key:"render",value:function(){return l.createElement(r.default,this.props)}}]),t}(l.Component);t.default=p,p.Panel=o.Panel,p.defaultProps={prefixCls:"am-accordion"},e.exports=t.default},502:function(e,t,a){},504:function(e,t,a){"use strict";a.r(t);var n=a(0),c=a.n(n),s=a(1),i=a.n(s),o=a(18),r=a.n(o),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 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,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,s=t.children,i=t.destroyInactivePanel,o=t.forceRender,l=t.role,p=r()((u(e={},a+"-content",!0),u(e,a+"-content-active",n),u(e,a+"-content-inactive",!n),e)),m=o||n||!i?c.a.createElement("div",{className:a+"-content-box"},s):null;return c.a.createElement("div",{className:p,role:l},m)}}]),t}();p.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 m=p,d=a(79),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 c=arguments.length,s=Array(c),i=0;i<c;i++)s[i]=arguments[i];return a=n=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),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,s=t.style,i=t.prefixCls,o=t.header,l=t.headerClass,u=t.children,p=t.isActive,h=t.showArrow,f=t.destroyInactivePanel,b=t.disabled,_=t.accordion,g=t.forceRender,v=r()(i+"-header",y({},l,l)),j=r()((y(e={},i+"-item",!0),y(e,i+"-item-active",p),y(e,i+"-item-disabled",b),e),a);return c.a.createElement("div",{className:j,style:s,id:n},c.a.createElement("div",{className:v,onClick:this.handleItemClick,role:_?"tab":"button",tabIndex:b?-1:0,"aria-expanded":""+p,onKeyPress:this.handleKeyPress},h&&c.a.createElement("i",{className:"arrow"}),o),c.a.createElement(d.a,{showProp:"isActive",exclusive:!0,component:"",animation:this.props.openAnimation},c.a.createElement(m,{prefixCls:i,isActive:p,destroyInactivePanel:f,forceRender:g,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,g=a(111);function v(e,t,a,n){var c=void 0;return Object(g.a)(e,a,{start:function(){t?(c=e.offsetHeight,e.style.height=0):e.style.height=e.offsetHeight+"px"},active:function(){e.style.height=(t?c:0)+"px"},end:function(){e.style.height="",n()}})}var j=function(e){return{enter:function(t,a){return v(t,!0,e+"-anim",a)},leave:function(t,a){return v(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 O(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function w(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 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,c=n.activeKey,s=n.defaultActiveKey;return"activeKey"in a.props&&(s=c),a.state={openAnimation:a.props.openAnimation||j(a.props.prefixCls),activeKey:w(s)},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:w(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,s=a.prefixCls,i=a.accordion,o=a.destroyInactivePanel,r=[];return n.Children.forEach(this.props.children,function(a,n){if(a){var l=a.key||String(n),u=a.props,p=u.header,m=u.headerClass,d=u.disabled,h=!1;h=i?t[0]===l:t.indexOf(l)>-1;var y={key:l,header:p,headerClass:m,isActive:h,prefixCls:s,destroyInactivePanel:o,openAnimation:e.state.openAnimation,accordion:i,children:a.props.children,onItemClick:d?null:function(){return e.onClickItem(l)}};r.push(c.a.cloneElement(a,y))}}),r}},{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,s=t.style,i=t.accordion,o=r()((O(e={},a,!0),O(e,n,!!n),e));return c.a.createElement("div",{className:o,style:s,role:i?"tablist":null},this.getItems())}}]),t}();C.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},C.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1},C.Panel=_;var N=C;a.d(t,"Panel",function(){return k});t.default=N;var k=N.Panel}}]);
//# sourceMappingURL=ml.10b451dc.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1041:function(e,t,a){},1044:function(e,t,a){},1104:function(e,t,a){},1105:function(e,t,a){},1220:function(e,t,a){"use strict";a.r(t);a(137);var n=a(36),c=a.n(n),i=(a(40),a(10)),s=a.n(i),r=a(3),o=a(5),l=a(4),u=a(6),m=a(7),d=a(51),p=a(0),h=a.n(p),g=(a(1041),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(24),v=a(20),y=a(594),E=a(595),f=(a(1044),a(2)),w=a(435),j=a.n(w),S=a(663),_=a(89),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.f.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.activity_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.f.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.n)({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.f.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.f.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.f.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.f.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)},1221:function(e,t,a){"use strict";a.r(t);a(137);var n=a(36),c=a.n(n),i=(a(40),a(10)),s=a.n(i),r=a(3),o=a(5),l=a(4),u=a(6),m=a(7),d=a(51),p=a(0),h=a.n(p),g=(a(1104),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(24),v=a(20),y=a(594),E=a(595),f=(a(1105),a(2)),w=a(435),j=a.n(w),S=a(89),_=a(184),N=a(185),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.f.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.f.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.f.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.n)({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.f.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.f.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.f.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.f.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="\u7cbd\u5b50\u8282\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u8bfe\u7a0b\uff0c\u73b0\u91d1\u7ea2\u5305\uff0c\u4eac\u4e1c\u8d2d\u7269\u5361\u9001\u4e0d\u505c\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.174e35af.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1041:function(e,t,a){},1044:function(e,t,a){},1104:function(e,t,a){},1105:function(e,t,a){},1220:function(e,t,a){"use strict";a.r(t);a(137);var n=a(35),c=a.n(n),i=(a(40),a(10)),s=a.n(i),r=a(3),o=a(5),l=a(4),u=a(6),m=a(7),d=a(51),p=a(0),h=a.n(p),g=(a(1041),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(24),v=a(20),y=a(594),E=a(595),f=(a(1044),a(2)),w=a(435),j=a.n(w),S=a(663),_=a(89),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.f.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.activity_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;f.f.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.n)({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.f.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.f.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.f.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.f.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)},1221:function(e,t,a){"use strict";a.r(t);a(137);var n=a(35),c=a.n(n),i=(a(40),a(10)),s=a.n(i),r=a(3),o=a(5),l=a(4),u=a(6),m=a(7),d=a(51),p=a(0),h=a.n(p),g=(a(1104),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(24),v=a(20),y=a(594),E=a(595),f=(a(1105),a(2)),w=a(435),j=a.n(w),S=a(89),_=a(184),N=a(185),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.f.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.f.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.f.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.n)({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.f.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.f.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.f.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.f.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="\u7cbd\u5b50\u8282\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u8bfe\u7a0b\uff0c\u73b0\u91d1\u7ea2\u5305\uff0c\u4eac\u4e1c\u8d2d\u7269\u5361\u9001\u4e0d\u505c\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.a8ea2bf2.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{1060:function(e,t,a){},1061:function(e,t,a){},1062:function(e,t,a){},1063:function(e,t,a){},1064:function(e,t,a){},1065:function(e,t,a){},1066:function(e,t,a){},1067:function(e,t,a){},1205:function(e,t,a){"use strict";a.r(t);var n=a(3),s=a(5),c=a(4),l=a(6),i=a(7),r=a(0),o=a.n(r),m=a(2),u=(a(40),a(10)),p=a.n(u),h=(a(1060),a(1061),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(1062);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(1063);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(1064),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)),f=(a(1065),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)),j=(a(1066),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(1067),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(664),O=a(20),w=a(476);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.f.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.f.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.f.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(f,null),o.a.createElement(j,{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(1069),L=a(420),x=a(35),A=a.n(x),I=a(23),U=Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:I.i,startFetchUser:I.j})(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.a)(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.f.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.033e3b57.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{1060:function(e,t,a){},1061:function(e,t,a){},1062:function(e,t,a){},1063:function(e,t,a){},1064:function(e,t,a){},1065:function(e,t,a){},1066:function(e,t,a){},1067:function(e,t,a){},1205:function(e,t,a){"use strict";a.r(t);var n=a(3),s=a(5),c=a(4),l=a(6),i=a(7),r=a(0),o=a.n(r),m=a(2),u=(a(40),a(10)),p=a.n(u),h=(a(1060),a(1061),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(1062);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(1063);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(1064),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)),f=(a(1065),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)),j=(a(1066),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(1067),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(664),O=a(20),w=a(476);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.f.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.f.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.f.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(f,null),o.a.createElement(j,{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(1069),L=a(420),x=a(36),A=a.n(x),I=a(23),U=Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:I.i,startFetchUser:I.j})(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.a)(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.f.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.e07e8394.chunk.js.map
\ No newline at end of file
!function(e){function r(r){for(var a,n,d=r[0],i=r[1],f=r[2],s=0,l=[];s<d.length;s++)n=d[s],c[n]&&l.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);l.length;)l.shift()();return o.push.apply(o,f||[]),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={40:0},c={40: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,29:1,30:1,32:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,61:1,62:1,63:1,64:1,66:1,67:1,68:1,69: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:"ai-test",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",30:"intelligent-recommend",32:"ml",33:"mlShare",34:"myorders",35:"newyear-2019-landing",36:"newyear-yearIndex",37:"prize-winner-list",38:"purchased",39:"python-class",41:"search",42:"shareposter",43:"study",44:"system-notices",45:"togroup",46:"treasure-box-home",47:"treasure-box-mybox",48:"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:"35e260c6",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"3595a614",22:"ca49c1cb",23:"951fd27d",24:"715eb28a",25:"b92d0394",26:"c10ecc19",27:"6f3a01ca",28:"219bad3d",29:"ec7d62e4",30:"c7393ed3",32:"4913a774",33:"5fba4ed0",34:"3c41b358",35:"b0d930fa",36:"fe0d87a6",37:"55e46fc9",38:"f583a040",39:"087d6571",41:"38c3e634",42:"f09a5959",43:"e406d228",44:"08df3d15",45:"49988cae",46:"7a60b4c8",47:"b84e2e84",48:"e2426591",50:"31d6cfe0",51:"50547718",52:"2471f477",53:"0bb224f2",54:"d7ce893c",55:"ecbb6f9a",56:"bc06dce4",57:"9f46e45e",58:"ee45d0b0",59:"4723f76a",60:"31d6cfe0",61:"ab7f5e40",62:"4c85e85c",63:"470b9744",64:"10a4034d",65:"31d6cfe0",66:"697fa90d",67:"eb90513f",68:"cbed2516",69:"e51ea0fc"}[e]+".chunk.css",c=d.p+a,o=document.getElementsByTagName("link"),i=0;i<o.length;i++){var f=(u=o[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(f===a||f===c))return r()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var u;if((f=(u=s[i]).getAttribute("data-href"))===a||f===c)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.request=a,delete n[e],l.parentNode.removeChild(l),t(o)},l.href=c,document.getElementsByTagName("head")[0].appendChild(l)}).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:"ai-test",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",30:"intelligent-recommend",32:"ml",33:"mlShare",34:"myorders",35:"newyear-2019-landing",36:"newyear-yearIndex",37:"prize-winner-list",38:"purchased",39:"python-class",41:"search",42:"shareposter",43:"study",44:"system-notices",45:"togroup",46:"treasure-box-home",47:"treasure-box-mybox",48:"video"}[e]||e)+"."+{0:"77d81bc4",1:"2f052ee5",2:"40a27a4a",3:"7e5f6494",4:"84fde4ee",5:"a9d83c92",6:"abcb5c5a",7:"0ffc5adc",8:"a4e41d05",9:"4a5a0a60",10:"6bc52458",11:"da13092a",12:"de50cf8b",13:"85c82e97",14:"56503c34",15:"06268cfc",16:"42ec7e0e",17:"4d215fe1",18:"ba5fa343",19:"6fbf7521",20:"7907b80c",21:"4a932b9f",22:"3d7ecfef",23:"93853aa6",24:"633963fa",25:"03b39485",26:"bb734715",27:"e4764441",28:"d88f613e",29:"a5c39484",30:"e805061d",32:"06a33ad0",33:"704f47e4",34:"645234e0",35:"174e35af",36:"dacfda1a",37:"031e8290",38:"4ce9c6a7",39:"033e3b57",41:"fa22f542",42:"6adcbb49",43:"a6b82389",44:"8cde4636",45:"984bc151",46:"16c3ab06",47:"57c87953",48:"59790d12",50:"70f44baa",51:"ae3eeb3f",52:"ca1a5455",53:"77ca15c6",54:"6fbef59c",55:"60e8551b",56:"d146b6a8",57:"017bda68",58:"84fcd764",59:"c7ff4233",60:"44da62f7",61:"61da488a",62:"07bea51f",63:"3ec36058",64:"0fcf7a58",65:"8ceda531",66:"1f39788b",67:"5cfc3314",68:"8c2577ba",69:"7171608a"}[e]+".chunk.js"}(e),o=function(r){i.onerror=i.onload=null,clearTimeout(f);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 f=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||[],f=i.push.bind(i);i.push=r,i=i.slice();for(var s=0;s<i.length;s++)r(i[s]);var u=f;t()}([]);
//# sourceMappingURL=runtime~main.2a13c7c0.js.map
\ No newline at end of file
!function(e){function r(r){for(var a,n,d=r[0],f=r[1],i=r[2],s=0,l=[];s<d.length;s++)n=d[s],c[n]&&l.push(c[n][0]),c[n]=0;for(a in f)Object.prototype.hasOwnProperty.call(f,a)&&(e[a]=f[a]);for(u&&u(r);l.length;)l.shift()();return o.push.apply(o,i||[]),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 f=t[n];0!==c[f]&&(a=!1)}a&&(o.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={40:0},c={40: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,29:1,30:1,32:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,61:1,62:1,63:1,64:1,66:1,67:1,68:1,69: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:"ai-test",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",30:"intelligent-recommend",32:"ml",33:"mlShare",34:"myorders",35:"newyear-2019-landing",36:"newyear-yearIndex",37:"prize-winner-list",38:"purchased",39:"python-class",41:"search",42:"shareposter",43:"study",44:"system-notices",45:"togroup",46:"treasure-box-home",47:"treasure-box-mybox",48:"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:"35e260c6",18:"bb7c3056",19:"278ad3b1",20:"3a4dbb7a",21:"3595a614",22:"ca49c1cb",23:"951fd27d",24:"715eb28a",25:"b92d0394",26:"c10ecc19",27:"6f3a01ca",28:"219bad3d",29:"ec7d62e4",30:"c7393ed3",32:"4913a774",33:"5fba4ed0",34:"3c41b358",35:"b0d930fa",36:"fe0d87a6",37:"55e46fc9",38:"f583a040",39:"087d6571",41:"38c3e634",42:"f09a5959",43:"e406d228",44:"08df3d15",45:"49988cae",46:"7a60b4c8",47:"b84e2e84",48:"e2426591",50:"31d6cfe0",51:"50547718",52:"2471f477",53:"0bb224f2",54:"d7ce893c",55:"ecbb6f9a",56:"bc06dce4",57:"9f46e45e",58:"ee45d0b0",59:"4723f76a",60:"31d6cfe0",61:"ab7f5e40",62:"4c85e85c",63:"470b9744",64:"10a4034d",65:"31d6cfe0",66:"697fa90d",67:"eb90513f",68:"cbed2516",69:"e51ea0fc"}[e]+".chunk.css",c=d.p+a,o=document.getElementsByTagName("link"),f=0;f<o.length;f++){var i=(u=o[f]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(i===a||i===c))return r()}var s=document.getElementsByTagName("style");for(f=0;f<s.length;f++){var u;if((i=(u=s[f]).getAttribute("data-href"))===a||i===c)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||c,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.request=a,delete n[e],l.parentNode.removeChild(l),t(o)},l.href=c,document.getElementsByTagName("head")[0].appendChild(l)}).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,f=document.createElement("script");f.charset="utf-8",f.timeout=120,d.nc&&f.setAttribute("nonce",d.nc),f.src=function(e){return d.p+"mrstatic/js/"+({5:"Activity",6:"BargainMiddlePage",7:"Classify",8:"Country",9:"CourseList",10:"DrawDocument",11:"Examination",12:"Invite",13:"MyEdit",14:"Order",15:"Orderinfo",16:"PayOrder",17:"Preferential",18:"SearchResult",19:"ShareCourse",20:"ShopCart",21:"ai-test",22:"aist-share",23:"blessing-getPrize",24:"blessing-preheat",25:"blessing-rank",26:"coupons",27:"deposit-order",28:"deposit-pay-order",29:"detail",30:"intelligent-recommend",32:"ml",33:"mlShare",34:"myorders",35:"newyear-2019-landing",36:"newyear-yearIndex",37:"prize-winner-list",38:"purchased",39:"python-class",41:"search",42:"shareposter",43:"study",44:"system-notices",45:"togroup",46:"treasure-box-home",47:"treasure-box-mybox",48:"video"}[e]||e)+"."+{0:"77d81bc4",1:"2f052ee5",2:"40a27a4a",3:"7e5f6494",4:"84fde4ee",5:"d5e41e3a",6:"abcb5c5a",7:"0ffc5adc",8:"a4e41d05",9:"75813873",10:"ba60cb25",11:"da13092a",12:"cac786d5",13:"85c82e97",14:"56503c34",15:"06268cfc",16:"df7aea6a",17:"8b181552",18:"ba5fa343",19:"6fbf7521",20:"7907b80c",21:"4a932b9f",22:"4fe49651",23:"8db2d56b",24:"ee95459e",25:"03b39485",26:"bb734715",27:"e4764441",28:"bb6475e1",29:"a09188c4",30:"e805061d",32:"10b451dc",33:"704f47e4",34:"645234e0",35:"a8ea2bf2",36:"945276df",37:"031e8290",38:"4ce9c6a7",39:"e07e8394",41:"fa22f542",42:"6adcbb49",43:"a6b82389",44:"8cde4636",45:"e186bf90",46:"870f175d",47:"57c87953",48:"ffc507bf",50:"70f44baa",51:"ae3eeb3f",52:"ca1a5455",53:"77ca15c6",54:"6fbef59c",55:"60e8551b",56:"d146b6a8",57:"017bda68",58:"84fcd764",59:"c7ff4233",60:"44da62f7",61:"61da488a",62:"bf0c46be",63:"3ec36058",64:"0fcf7a58",65:"8ceda531",66:"1f39788b",67:"5cfc3314",68:"8c2577ba",69:"7171608a"}[e]+".chunk.js"}(e),o=function(r){f.onerror=f.onload=null,clearTimeout(i);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 i=setTimeout(function(){o({type:"timeout",target:f})},12e4);f.onerror=f.onload=o,document.head.appendChild(f)}return Promise.all(r)},d.m=e,d.c=a,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)d.d(t,a,function(r){return e[r]}.bind(null,a));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var s=0;s<f.length;s++)r(f[s]);var u=i;t()}([]);
//# sourceMappingURL=runtime~main.05ee9335.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","40","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","29","30","32","33","34","35","36","37","38","39","41","42","43","44","45","46","47","48","51","52","53","54","55","56","57","58","59","61","62","63","64","66","67","68","69","Promise","resolve","reject","href","13","15","0","2","50","60","65","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,EA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ACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAA5J,OAAA6J,OAAA,MAGA,GAFA7I,EAAAqI,EAAAO,GACA5J,OAAAkJ,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAxI,EAAA8H,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIA5I,EAAAgJ,EAAA,SAAA1I,GACA,IAAA0H,EAAA1H,KAAAqI,WACA,WAA2B,OAAArI,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA8H,EAAAE,EAAA,IAAAA,GACAA,GAIAhI,EAAAiI,EAAA,SAAAgB,EAAAC,GAAsD,OAAAlK,OAAAC,UAAAC,eAAAC,KAAA8J,EAAAC,IAGtDlJ,EAAAkF,EAAA,IAGAlF,EAAAmJ,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAtK,KAAAgK,KAAAM,GACAA,EAAAtK,KAAAX,EACAiL,IAAAG,QACA,QAAA7K,EAAA,EAAgBA,EAAA0K,EAAAxK,OAAuBF,IAAAP,EAAAiL,EAAA1K,IACvC,IAAAU,EAAAkK,EAIA9J","file":"mrstatic/js/runtime~main.2a13c7c0.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\t40: 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\t40: 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\":\"ai-test\",\"22\":\"aist-share\",\"23\":\"blessing-getPrize\",\"24\":\"blessing-preheat\",\"25\":\"blessing-rank\",\"26\":\"coupons\",\"27\":\"deposit-order\",\"28\":\"deposit-pay-order\",\"29\":\"detail\",\"30\":\"intelligent-recommend\",\"32\":\"ml\",\"33\":\"mlShare\",\"34\":\"myorders\",\"35\":\"newyear-2019-landing\",\"36\":\"newyear-yearIndex\",\"37\":\"prize-winner-list\",\"38\":\"purchased\",\"39\":\"python-class\",\"41\":\"search\",\"42\":\"shareposter\",\"43\":\"study\",\"44\":\"system-notices\",\"45\":\"togroup\",\"46\":\"treasure-box-home\",\"47\":\"treasure-box-mybox\",\"48\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"77d81bc4\",\"1\":\"2f052ee5\",\"2\":\"40a27a4a\",\"3\":\"7e5f6494\",\"4\":\"84fde4ee\",\"5\":\"a9d83c92\",\"6\":\"abcb5c5a\",\"7\":\"0ffc5adc\",\"8\":\"a4e41d05\",\"9\":\"4a5a0a60\",\"10\":\"6bc52458\",\"11\":\"da13092a\",\"12\":\"de50cf8b\",\"13\":\"85c82e97\",\"14\":\"56503c34\",\"15\":\"06268cfc\",\"16\":\"42ec7e0e\",\"17\":\"4d215fe1\",\"18\":\"ba5fa343\",\"19\":\"6fbf7521\",\"20\":\"7907b80c\",\"21\":\"4a932b9f\",\"22\":\"3d7ecfef\",\"23\":\"93853aa6\",\"24\":\"633963fa\",\"25\":\"03b39485\",\"26\":\"bb734715\",\"27\":\"e4764441\",\"28\":\"d88f613e\",\"29\":\"a5c39484\",\"30\":\"e805061d\",\"32\":\"06a33ad0\",\"33\":\"704f47e4\",\"34\":\"645234e0\",\"35\":\"174e35af\",\"36\":\"dacfda1a\",\"37\":\"031e8290\",\"38\":\"4ce9c6a7\",\"39\":\"033e3b57\",\"41\":\"fa22f542\",\"42\":\"6adcbb49\",\"43\":\"a6b82389\",\"44\":\"8cde4636\",\"45\":\"984bc151\",\"46\":\"16c3ab06\",\"47\":\"57c87953\",\"48\":\"59790d12\",\"50\":\"70f44baa\",\"51\":\"ae3eeb3f\",\"52\":\"ca1a5455\",\"53\":\"77ca15c6\",\"54\":\"6fbef59c\",\"55\":\"60e8551b\",\"56\":\"d146b6a8\",\"57\":\"017bda68\",\"58\":\"84fcd764\",\"59\":\"c7ff4233\",\"60\":\"44da62f7\",\"61\":\"61da488a\",\"62\":\"07bea51f\",\"63\":\"3ec36058\",\"64\":\"0fcf7a58\",\"65\":\"8ceda531\",\"66\":\"1f39788b\",\"67\":\"5cfc3314\",\"68\":\"8c2577ba\",\"69\":\"7171608a\"}[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,\"29\":1,\"30\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"36\":1,\"37\":1,\"38\":1,\"39\":1,\"41\":1,\"42\":1,\"43\":1,\"44\":1,\"45\":1,\"46\":1,\"47\":1,\"48\":1,\"51\":1,\"52\":1,\"53\":1,\"54\":1,\"55\":1,\"56\":1,\"57\":1,\"58\":1,\"59\":1,\"61\":1,\"62\":1,\"63\":1,\"64\":1,\"66\":1,\"67\":1,\"68\":1,\"69\":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\":\"ai-test\",\"22\":\"aist-share\",\"23\":\"blessing-getPrize\",\"24\":\"blessing-preheat\",\"25\":\"blessing-rank\",\"26\":\"coupons\",\"27\":\"deposit-order\",\"28\":\"deposit-pay-order\",\"29\":\"detail\",\"30\":\"intelligent-recommend\",\"32\":\"ml\",\"33\":\"mlShare\",\"34\":\"myorders\",\"35\":\"newyear-2019-landing\",\"36\":\"newyear-yearIndex\",\"37\":\"prize-winner-list\",\"38\":\"purchased\",\"39\":\"python-class\",\"41\":\"search\",\"42\":\"shareposter\",\"43\":\"study\",\"44\":\"system-notices\",\"45\":\"togroup\",\"46\":\"treasure-box-home\",\"47\":\"treasure-box-mybox\",\"48\":\"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\":\"35e260c6\",\"18\":\"bb7c3056\",\"19\":\"278ad3b1\",\"20\":\"3a4dbb7a\",\"21\":\"3595a614\",\"22\":\"ca49c1cb\",\"23\":\"951fd27d\",\"24\":\"715eb28a\",\"25\":\"b92d0394\",\"26\":\"c10ecc19\",\"27\":\"6f3a01ca\",\"28\":\"219bad3d\",\"29\":\"ec7d62e4\",\"30\":\"c7393ed3\",\"32\":\"4913a774\",\"33\":\"5fba4ed0\",\"34\":\"3c41b358\",\"35\":\"b0d930fa\",\"36\":\"fe0d87a6\",\"37\":\"55e46fc9\",\"38\":\"f583a040\",\"39\":\"087d6571\",\"41\":\"38c3e634\",\"42\":\"f09a5959\",\"43\":\"e406d228\",\"44\":\"08df3d15\",\"45\":\"49988cae\",\"46\":\"7a60b4c8\",\"47\":\"b84e2e84\",\"48\":\"e2426591\",\"50\":\"31d6cfe0\",\"51\":\"50547718\",\"52\":\"2471f477\",\"53\":\"0bb224f2\",\"54\":\"d7ce893c\",\"55\":\"ecbb6f9a\",\"56\":\"bc06dce4\",\"57\":\"9f46e45e\",\"58\":\"ee45d0b0\",\"59\":\"4723f76a\",\"60\":\"31d6cfe0\",\"61\":\"ab7f5e40\",\"62\":\"4c85e85c\",\"63\":\"470b9744\",\"64\":\"10a4034d\",\"65\":\"31d6cfe0\",\"66\":\"697fa90d\",\"67\":\"eb90513f\",\"68\":\"cbed2516\",\"69\":\"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","40","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","29","30","32","33","34","35","36","37","38","39","41","42","43","44","45","46","47","48","51","52","53","54","55","56","57","58","59","61","62","63","64","66","67","68","69","Promise","resolve","reject","href","13","15","0","2","50","60","65","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,e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AM,KAAAN,EAAAxI,EAAA8H,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIA5I,EAAAgJ,EAAA,SAAA1I,GACA,IAAA0H,EAAA1H,KAAAqI,WACA,WAA2B,OAAArI,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA8H,EAAAE,EAAA,IAAAA,GACAA,GAIAhI,EAAAiI,EAAA,SAAAgB,EAAAC,GAAsD,OAAAlK,OAAAC,UAAAC,eAAAC,KAAA8J,EAAAC,IAGtDlJ,EAAAkF,EAAA,IAGAlF,EAAAmJ,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAtK,KAAAgK,KAAAM,GACAA,EAAAtK,KAAAX,EACAiL,IAAAG,QACA,QAAA7K,EAAA,EAAgBA,EAAA0K,EAAAxK,OAAuBF,IAAAP,EAAAiL,EAAA1K,IACvC,IAAAU,EAAAkK,EAIA9J","file":"mrstatic/js/runtime~main.05ee9335.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\t40: 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\t40: 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\":\"ai-test\",\"22\":\"aist-share\",\"23\":\"blessing-getPrize\",\"24\":\"blessing-preheat\",\"25\":\"blessing-rank\",\"26\":\"coupons\",\"27\":\"deposit-order\",\"28\":\"deposit-pay-order\",\"29\":\"detail\",\"30\":\"intelligent-recommend\",\"32\":\"ml\",\"33\":\"mlShare\",\"34\":\"myorders\",\"35\":\"newyear-2019-landing\",\"36\":\"newyear-yearIndex\",\"37\":\"prize-winner-list\",\"38\":\"purchased\",\"39\":\"python-class\",\"41\":\"search\",\"42\":\"shareposter\",\"43\":\"study\",\"44\":\"system-notices\",\"45\":\"togroup\",\"46\":\"treasure-box-home\",\"47\":\"treasure-box-mybox\",\"48\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"77d81bc4\",\"1\":\"2f052ee5\",\"2\":\"40a27a4a\",\"3\":\"7e5f6494\",\"4\":\"84fde4ee\",\"5\":\"d5e41e3a\",\"6\":\"abcb5c5a\",\"7\":\"0ffc5adc\",\"8\":\"a4e41d05\",\"9\":\"75813873\",\"10\":\"ba60cb25\",\"11\":\"da13092a\",\"12\":\"cac786d5\",\"13\":\"85c82e97\",\"14\":\"56503c34\",\"15\":\"06268cfc\",\"16\":\"df7aea6a\",\"17\":\"8b181552\",\"18\":\"ba5fa343\",\"19\":\"6fbf7521\",\"20\":\"7907b80c\",\"21\":\"4a932b9f\",\"22\":\"4fe49651\",\"23\":\"8db2d56b\",\"24\":\"ee95459e\",\"25\":\"03b39485\",\"26\":\"bb734715\",\"27\":\"e4764441\",\"28\":\"bb6475e1\",\"29\":\"a09188c4\",\"30\":\"e805061d\",\"32\":\"10b451dc\",\"33\":\"704f47e4\",\"34\":\"645234e0\",\"35\":\"a8ea2bf2\",\"36\":\"945276df\",\"37\":\"031e8290\",\"38\":\"4ce9c6a7\",\"39\":\"e07e8394\",\"41\":\"fa22f542\",\"42\":\"6adcbb49\",\"43\":\"a6b82389\",\"44\":\"8cde4636\",\"45\":\"e186bf90\",\"46\":\"870f175d\",\"47\":\"57c87953\",\"48\":\"ffc507bf\",\"50\":\"70f44baa\",\"51\":\"ae3eeb3f\",\"52\":\"ca1a5455\",\"53\":\"77ca15c6\",\"54\":\"6fbef59c\",\"55\":\"60e8551b\",\"56\":\"d146b6a8\",\"57\":\"017bda68\",\"58\":\"84fcd764\",\"59\":\"c7ff4233\",\"60\":\"44da62f7\",\"61\":\"61da488a\",\"62\":\"bf0c46be\",\"63\":\"3ec36058\",\"64\":\"0fcf7a58\",\"65\":\"8ceda531\",\"66\":\"1f39788b\",\"67\":\"5cfc3314\",\"68\":\"8c2577ba\",\"69\":\"7171608a\"}[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,\"29\":1,\"30\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"36\":1,\"37\":1,\"38\":1,\"39\":1,\"41\":1,\"42\":1,\"43\":1,\"44\":1,\"45\":1,\"46\":1,\"47\":1,\"48\":1,\"51\":1,\"52\":1,\"53\":1,\"54\":1,\"55\":1,\"56\":1,\"57\":1,\"58\":1,\"59\":1,\"61\":1,\"62\":1,\"63\":1,\"64\":1,\"66\":1,\"67\":1,\"68\":1,\"69\":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\":\"ai-test\",\"22\":\"aist-share\",\"23\":\"blessing-getPrize\",\"24\":\"blessing-preheat\",\"25\":\"blessing-rank\",\"26\":\"coupons\",\"27\":\"deposit-order\",\"28\":\"deposit-pay-order\",\"29\":\"detail\",\"30\":\"intelligent-recommend\",\"32\":\"ml\",\"33\":\"mlShare\",\"34\":\"myorders\",\"35\":\"newyear-2019-landing\",\"36\":\"newyear-yearIndex\",\"37\":\"prize-winner-list\",\"38\":\"purchased\",\"39\":\"python-class\",\"41\":\"search\",\"42\":\"shareposter\",\"43\":\"study\",\"44\":\"system-notices\",\"45\":\"togroup\",\"46\":\"treasure-box-home\",\"47\":\"treasure-box-mybox\",\"48\":\"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\":\"35e260c6\",\"18\":\"bb7c3056\",\"19\":\"278ad3b1\",\"20\":\"3a4dbb7a\",\"21\":\"3595a614\",\"22\":\"ca49c1cb\",\"23\":\"951fd27d\",\"24\":\"715eb28a\",\"25\":\"b92d0394\",\"26\":\"c10ecc19\",\"27\":\"6f3a01ca\",\"28\":\"219bad3d\",\"29\":\"ec7d62e4\",\"30\":\"c7393ed3\",\"32\":\"4913a774\",\"33\":\"5fba4ed0\",\"34\":\"3c41b358\",\"35\":\"b0d930fa\",\"36\":\"fe0d87a6\",\"37\":\"55e46fc9\",\"38\":\"f583a040\",\"39\":\"087d6571\",\"41\":\"38c3e634\",\"42\":\"f09a5959\",\"43\":\"e406d228\",\"44\":\"08df3d15\",\"45\":\"49988cae\",\"46\":\"7a60b4c8\",\"47\":\"b84e2e84\",\"48\":\"e2426591\",\"50\":\"31d6cfe0\",\"51\":\"50547718\",\"52\":\"2471f477\",\"53\":\"0bb224f2\",\"54\":\"d7ce893c\",\"55\":\"ecbb6f9a\",\"56\":\"bc06dce4\",\"57\":\"9f46e45e\",\"58\":\"ee45d0b0\",\"59\":\"4723f76a\",\"60\":\"31d6cfe0\",\"61\":\"ab7f5e40\",\"62\":\"4c85e85c\",\"63\":\"470b9744\",\"64\":\"10a4034d\",\"65\":\"31d6cfe0\",\"66\":\"697fa90d\",\"67\":\"eb90513f\",\"68\":\"cbed2516\",\"69\":\"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([[45],{1161:function(e,a,t){"use strict";t.r(a);t(138);var n,c=t(73),s=t.n(c),r=(t(85),t(26)),i=t.n(r),o=(t(137),t(36)),l=t.n(o),d=(t(209),t(88)),m=t.n(d),u=(t(40),t(10)),p=t.n(u),E=t(3),f=t(5),_=t(4),h=t(6),v=t(7),N=t(0),g=t.n(N),b=(t(747),t(24)),w=t(2),y=t(20),k=t(15),C=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.n)({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.f.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,r=0;setInterval(function(){t-=1e3,a.data.data.end_time>86400?(n="".concat(parseInt(t/864e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n*24)/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n*24-36e5*c)/6e4)).padStart(2,0),e.setState({countdown:"".concat(n,"\u5929").concat(c,"\u65f6").concat(s,"\u5206")})):(c="".concat(parseInt(t/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((t-36e5*c-6e4*s)/1e3)).padStart(2,0),e.setState({countdown:"".concat(c,":").concat(s,":").concat(r)}))},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.k,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),g.a.createElement(I,{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(k.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.k,{img:a.image_name,key:a.course_id,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n;function I(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(k.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=C},747:function(e,a,t){}}]);
//# sourceMappingURL=togroup.984bc151.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{1161:function(e,a,t){"use strict";t.r(a);t(138);var n,c=t(73),s=t.n(c),r=(t(85),t(26)),i=t.n(r),o=(t(137),t(35)),l=t.n(o),d=(t(209),t(88)),m=t.n(d),u=(t(40),t(10)),p=t.n(u),E=t(3),f=t(5),_=t(4),h=t(6),v=t(7),N=t(0),g=t.n(N),b=(t(747),t(24)),w=t(2),y=t(20),k=t(15),C=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.n)({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.f.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,r=0;setInterval(function(){t-=1e3,a.data.data.end_time>86400?(n="".concat(parseInt(t/864e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n*24)/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n*24-36e5*c)/6e4)).padStart(2,0),e.setState({countdown:"".concat(n,"\u5929").concat(c,"\u65f6").concat(s,"\u5206")})):(c="".concat(parseInt(t/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((t-36e5*c-6e4*s)/1e3)).padStart(2,0),e.setState({countdown:"".concat(c,":").concat(s,":").concat(r)}))},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.k,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),g.a.createElement(I,{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(k.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.k,{img:a.image_name,key:a.course_id,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n;function I(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(k.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=C},747:function(e,a,t){}}]);
//# sourceMappingURL=togroup.e186bf90.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","day","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","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","uid","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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AAA4D,cAAA,OAAKC,UAAU,kBAAkBC,QAAS1F,EAAMQ,gBAC5C+E,EAAA3D,EAAA4D,cAAA,OAAKC,UAAU,cAAf,eAAAtE,OAEUR,EAFV,uFAIA4E,EAAA3D,EAAA4D,cAAA,OAAKC,UAAU,YACXF,EAAA3D,EAAA4D,cAAA,KAAGC,UAAU,0BAGrB,KAGP0B,EACD5B,EAAA3D,EAAA4D,cAAA4C,EAAAxG,EAAA,KACK0F,GAEL/B,EAAA3D,EAAA4D,cAAA4C,EAAAxG,EAAA,KACKwF,GAEJC,GAEI5D,GACD8B,EAAA3D,EAAA4D,cAAA,OAAKC,UAAU,aACXF,EAAA3D,EAAA4D,cAAA,YACID,EAAA3D,EAAA4D,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAA3D,EAAA4D,cAAA,QAAMC,UAAU,UAAhB,eAAAtE,OAA+BqC,EAA/B,yBAOL5D","file":"mrstatic/js/togroup.984bc151.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 day = 0,\n hours = 0,\n minutes = 0,\n seconds = 0\n setInterval(() => {\n date -= 1000\n if (res.data.data.end_time > 86400) {\n day = `${parseInt(date / (3600000 * 24))}`.padStart(2, 0)\n hours = `${parseInt((date - day * 3600000 * 24) / 3600000)}`.padStart(2, 0)\n minutes = `${parseInt((date - day * 3600000 * 24 - hours * 3600000) / 60000)}`.padStart(2, 0)\n this.setState({\n countdown: `${day}天${hours}时${minutes}分`\n })\n } else {\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 }\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.course_id}\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\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","day","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","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","uid","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,KAAO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,cAAA,KAAGC,UAAU,0BAGrB,KAGP0B,EACD5B,EAAA3D,EAAA4D,cAAA4C,EAAAxG,EAAA,KACK0F,GAEL/B,EAAA3D,EAAA4D,cAAA4C,EAAAxG,EAAA,KACKwF,GAEJC,GAEI5D,GACD8B,EAAA3D,EAAA4D,cAAA,OAAKC,UAAU,aACXF,EAAA3D,EAAA4D,cAAA,YACID,EAAA3D,EAAA4D,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAA3D,EAAA4D,cAAA,QAAMC,UAAU,UAAhB,eAAAtE,OAA+BqC,EAA/B,yBAOL5D","file":"mrstatic/js/togroup.e186bf90.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 day = 0,\n hours = 0,\n minutes = 0,\n seconds = 0\n setInterval(() => {\n date -= 1000\n if (res.data.data.end_time > 86400) {\n day = `${parseInt(date / (3600000 * 24))}`.padStart(2, 0)\n hours = `${parseInt((date - day * 3600000 * 24) / 3600000)}`.padStart(2, 0)\n minutes = `${parseInt((date - day * 3600000 * 24 - hours * 3600000) / 60000)}`.padStart(2, 0)\n this.setState({\n countdown: `${day}天${hours}时${minutes}分`\n })\n } else {\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 }\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.course_id}\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\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([[46],{1088:function(e,t,a){},1089:function(e,t,a){},1090:function(e,t,a){},1091:function(e,t,a){},1092:function(e,t,a){},1093:function(e,t,a){},1094:function(e,t,a){},1095:function(e,t,a){},1096:function(e,t,a){},1097:function(e,t,a){},1202:function(e,t,a){"use strict";a.r(t);a(40);var n,r,s,o=a(10),c=a.n(o),i=a(3),l=a(5),u=a(4),m=a(6),p=a(7),d=a(0),h=a.n(d),f=(a(1088),a(1089),a(47)),g=a(2),v=(a(1090),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(1091),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(20),y=a(24),j=a(435),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.f.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.f.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(14)),w=a(51),N=(a(1092),a(488),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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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),I=Object(f.g)(N),C=(a(1093),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.f.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)),L=(a(1094),a(25)),S=a(35),M=a.n(S),x=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){g.f.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.f.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:M.a.get("avatar_file"),user_name:M.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),A=Object(L.d)(Object(_.b)(function(e){return{user:e.user}},null),f.g)(x),P=(a(1095),a(8)),U=Object(P.a)(function(){return a.e(44).then(a.bind(null,1153))}),z=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.f.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(U,{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),T=a(75),D=a(142),R=(a(211),a(1096),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(T.a)(Array(19).keys()),n=!1;a.swiper=new D.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.f.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)),B=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(z,{showSystemNotices:!0}),h.a.createElement(R,null),h.a.createElement(A,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),h.a.createElement(C,{history:this.props.history}))}}]),t}(d.Component),F=Object(f.g)(B),q=a(18),Q=a.n(q),H=(a(1097),d.Component,a(23)),W=a(420);a.d(t,"default",function(){return V});var V=Object(_.b)(function(e){return{user:e.user}},{setCurrentUser:H.i,startFetchUser:H.j})(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(W.a)(new Date,90);a.state.userInfoList.map(function(t,a){M.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),M.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),M.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),M.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),M.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),M.a.get("token")&&M.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.f.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="\u7cbd\u5b50\u8282\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u8bfe\u7a0b\uff0c\u73b0\u91d1\u7ea2\u5305\uff0c\u4eac\u4e1c\u8d2d\u7269\u5361\u9001\u4e0d\u505c\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:""})),1===n&&h.a.createElement(F,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),h.a.createElement(I,{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},488:function(e,t,a){"use strict";var n=a(3),r=a(5),s=a(4),o=a(6),c=a(7),i=a(0),l=a.n(i),u=(a(503),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},503:function(e,t,a){}}]);
//# sourceMappingURL=treasure-box-home.16c3ab06.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{1088:function(e,t,a){},1089:function(e,t,a){},1090:function(e,t,a){},1091:function(e,t,a){},1092:function(e,t,a){},1093:function(e,t,a){},1094:function(e,t,a){},1095:function(e,t,a){},1096:function(e,t,a){},1097:function(e,t,a){},1202:function(e,t,a){"use strict";a.r(t);a(40);var n,r,s,o=a(10),c=a.n(o),i=a(3),l=a(5),u=a(4),m=a(6),p=a(7),d=a(0),h=a.n(d),f=(a(1088),a(1089),a(47)),g=a(2),v=(a(1090),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(1091),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(20),y=a(24),j=a(435),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.f.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.f.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(14)),w=a(51),N=(a(1092),a(488),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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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.f.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),I=Object(f.g)(N),C=(a(1093),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.f.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)),L=(a(1094),a(25)),S=a(36),M=a.n(S),x=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){g.f.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.f.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:M.a.get("avatar_file"),user_name:M.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),A=Object(L.d)(Object(_.b)(function(e){return{user:e.user}},null),f.g)(x),P=(a(1095),a(8)),U=Object(P.a)(function(){return a.e(44).then(a.bind(null,1153))}),z=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.f.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(U,{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),T=a(75),D=a(142),R=(a(211),a(1096),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(T.a)(Array(19).keys()),n=!1;a.swiper=new D.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.f.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)),B=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(z,{showSystemNotices:!0}),h.a.createElement(R,null),h.a.createElement(A,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),h.a.createElement(C,{history:this.props.history}))}}]),t}(d.Component),F=Object(f.g)(B),q=a(18),Q=a.n(q),H=(a(1097),d.Component,a(23)),W=a(420);a.d(t,"default",function(){return V});var V=Object(_.b)(function(e){return{user:e.user}},{setCurrentUser:H.i,startFetchUser:H.j})(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(W.a)(new Date,90);a.state.userInfoList.map(function(t,a){M.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),M.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),M.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),M.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),M.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),M.a.get("token")&&M.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.f.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="\u7cbd\u5b50\u8282\uff0c\u5f00\u5b9d\u7bb1\u514d\u8d39\u5b66AI\u8bfe\u7a0b\uff0c\u73b0\u91d1\u7ea2\u5305\uff0c\u4eac\u4e1c\u8d2d\u7269\u5361\u9001\u4e0d\u505c\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:""})),1===n&&h.a.createElement(F,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),h.a.createElement(I,{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},488:function(e,t,a){"use strict";var n=a(3),r=a(5),s=a(4),o=a(6),c=a(7),i=a(0),l=a.n(i),u=(a(503),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},503:function(e,t,a){}}]);
//# sourceMappingURL=treasure-box-home.870f175d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{1210:function(e,t,a){"use strict";a.r(t);var n,i=a(75),c=a(14),o=(a(40),a(10)),s=a.n(o),r=a(3),l=a(5),d=a(4),u=a(6),p=a(7),m=a(51),h=(a(209),a(88)),f=a.n(h),v=a(0),y=a.n(v),g=a(150),b=(a(684),a(15)),E=a(47),_=a(2),S=a(20),w=(a(86),a(685),a(464)),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(d.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){_.f.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(l.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}(v.PureComponent))||n,I=(a(686),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(d.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(l.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}(v.Component),x=(a(490),a(492)),j=a.n(x),C=(a(687),function(e){function t(){return Object(r.a)(this,t),Object(d.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(l.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}(v.Component));C.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var T=C,A=a(673),L=(a(723),a(24)),B=a(35),R=a.n(B),F=a(535),D=a(536),W=a(1156),M=A.a.getComponent("Component"),J=A.a.getComponent("Button"),V=function(e){function t(){return Object(r.a)(this,t),Object(d.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(l.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(d.a)(this,Object(u.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(p.a)(t,e),Object(l.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=f.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(d.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;_.f.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(){_.f.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,_.f.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"))}),_.f.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(){_.f.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,_.f.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"))}),_.f.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(){_.f.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 l=0;r.is_aist&&(l=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:l})}},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(){_.f.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")),_.f.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),_.f.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;_.f.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){_.f.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,l=o.limitFreePopupVideos;a.setState({limitFreePopup:c,isShowNeverShowPopupOption:!!l&&l.includes(r)})}else s.a.info(i,2,null,!1)})},a.checkNeverShowLimitFreePopup=function(){a.state.limitFreeNoPromptChecked&&_.f.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(l.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;_.f.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,l=o.isAuth,d=o.salePrice,u=o.course,p=o.singleBox,m=o.singleType,h=o.showLimitFreePopup,f=o.limitFreePopup,v=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"})),!l&&!!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",d," \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"))),!l&&!!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,f.pop_descbition)),y.a.createElement("div",{className:"des"},y.a.createElement("img",{className:"qrcode",src:f.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"},v&&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}(v.Component);t.default=Object(S.b)(function(e){return{user:e.user}},null)(U)},464:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(465);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)}},465:function(e,t,a){},494:function(e,t,a){},535:function(e,t,a){"use strict";a(40);var n=a(10),i=a.n(n),c=a(3),o=a(5),s=a(4),r=a(6),l=a(7),d=a(51),u=a(0),p=a.n(u),m=(a(494),a(2)),h=a(47),f=a(25),v=a(20),y=a(419),g=a(418),b=a(417),E=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.f.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.f.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.f.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(Object(d.a)(a)),t=Object(m.c)("code");if(t){if(!Object(m.c)("oid"))return;m.f.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.f.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.f.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(Object(d.a)(a));Object(m.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;m.f.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.f.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.f.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.f.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.f.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.a)(new Date(t),a)%60,i=Object(g.a)(new Date(t),a)%60,c=Object(b.a)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(E)},536:function(e,t,a){"use strict";a(40);var n=a(10),i=a.n(n),c=a(3),o=a(5),s=a(4),r=a(6),l=a(7),d=a(0),u=a.n(d),p=(a(494),a(2)),m=a(47),h=a(25),f=a(20),v=a(419),y=a(418),g=a(417),b=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.f.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.f.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.f.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.f.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.f.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.f.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.f.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(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.a)(new Date(t),a)%60,i=Object(y.a)(new Date(t),a)%60,c=Object(g.a)(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}(d.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(b)},684:function(e,t,a){},685:function(e,t,a){},686:function(e,t,a){},687:function(e,t,a){},689:function(e,t){}}]);
//# sourceMappingURL=video.59790d12.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{1210:function(e,t,a){"use strict";a.r(t);var n,i=a(75),c=a(14),o=(a(40),a(10)),s=a.n(o),r=a(3),l=a(5),d=a(4),u=a(6),p=a(7),m=a(51),h=(a(209),a(88)),f=a.n(h),v=a(0),y=a.n(v),g=a(150),b=(a(684),a(15)),E=a(47),_=a(2),S=a(20),w=(a(86),a(685),a(464)),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(d.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){_.f.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(l.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}(v.PureComponent))||n,I=(a(686),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(d.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(l.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}(v.Component),x=(a(490),a(492)),j=a.n(x),C=(a(687),function(e){function t(){return Object(r.a)(this,t),Object(d.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(l.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}(v.Component));C.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var T=C,A=a(673),L=(a(723),a(24)),B=a(36),R=a.n(B),F=a(535),D=a(536),W=a(1156),M=A.a.getComponent("Component"),J=A.a.getComponent("Button"),V=function(e){function t(){return Object(r.a)(this,t),Object(d.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(l.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(d.a)(this,Object(u.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(p.a)(t,e),Object(l.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=f.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(d.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;_.f.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(){_.f.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,_.f.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"))}),_.f.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(){_.f.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,_.f.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"))}),_.f.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(){_.f.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 l=0;r.is_aist&&(l=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:l})}},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(){_.f.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")),_.f.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),_.f.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;_.f.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){_.f.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,l=o.limitFreePopupVideos;a.setState({limitFreePopup:c,isShowNeverShowPopupOption:!!l&&l.includes(r)})}else s.a.info(i,2,null,!1)})},a.checkNeverShowLimitFreePopup=function(){a.state.limitFreeNoPromptChecked&&_.f.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(l.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;_.f.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,l=o.isAuth,d=o.salePrice,u=o.course,p=o.singleBox,m=o.singleType,h=o.showLimitFreePopup,f=o.limitFreePopup,v=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"})),!l&&!!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",d," \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"))),!l&&!!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,f.pop_descbition)),y.a.createElement("div",{className:"des"},y.a.createElement("img",{className:"qrcode",src:f.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"},v&&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}(v.Component);t.default=Object(S.b)(function(e){return{user:e.user}},null)(U)},464:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(465);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)}},465:function(e,t,a){},494:function(e,t,a){},535:function(e,t,a){"use strict";a(40);var n=a(10),i=a.n(n),c=a(3),o=a(5),s=a(4),r=a(6),l=a(7),d=a(51),u=a(0),p=a.n(u),m=(a(494),a(2)),h=a(47),f=a(25),v=a(20),y=a(419),g=a(418),b=a(417),E=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.f.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.f.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.f.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(Object(d.a)(a)),t=Object(m.c)("code");if(t){if(!Object(m.c)("oid"))return;m.f.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.f.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.f.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(Object(d.a)(a));Object(m.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;m.f.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.f.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.f.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.f.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.f.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.a)(new Date(t),a)%60,i=Object(g.a)(new Date(t),a)%60,c=Object(b.a)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(E)},536:function(e,t,a){"use strict";a(40);var n=a(10),i=a.n(n),c=a(3),o=a(5),s=a(4),r=a(6),l=a(7),d=a(0),u=a.n(d),p=(a(494),a(2)),m=a(47),h=a(25),f=a(20),v=a(419),y=a(418),g=a(417),b=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.f.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.f.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.f.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.f.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.f.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.f.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.f.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(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.a)(new Date(t),a)%60,i=Object(y.a)(new Date(t),a)%60,c=Object(g.a)(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}(d.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(b)},684:function(e,t,a){},685:function(e,t,a){},686:function(e,t,a){},687:function(e,t,a){},689:function(e,t){}}]);
//# sourceMappingURL=video.ffc507bf.chunk.js.map
\ No newline at end of file
......@@ -32,12 +32,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/4.84fde4ee.chunk.js"
},
{
"revision": "e3b51b953359ca68e6d4",
"revision": "cda20fa1cb63dc2ee072",
"url": "/mrstatic/css/Activity.a74b39fb.chunk.css"
},
{
"revision": "e3b51b953359ca68e6d4",
"url": "/mrstatic/js/Activity.a9d83c92.chunk.js"
"revision": "cda20fa1cb63dc2ee072",
"url": "/mrstatic/js/Activity.d5e41e3a.chunk.js"
},
{
"revision": "ef1704096e6ad120529c",
......@@ -64,20 +64,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Country.a4e41d05.chunk.js"
},
{
"revision": "245afb7cb7156142e075",
"revision": "fc05cbdded012cc7d9f3",
"url": "/mrstatic/css/CourseList.47812ac6.chunk.css"
},
{
"revision": "245afb7cb7156142e075",
"url": "/mrstatic/js/CourseList.4a5a0a60.chunk.js"
"revision": "fc05cbdded012cc7d9f3",
"url": "/mrstatic/js/CourseList.75813873.chunk.js"
},
{
"revision": "779392f94d8b3d0dcab8",
"revision": "5bd47f32efa5057e1c93",
"url": "/mrstatic/css/DrawDocument.2e7d81ca.chunk.css"
},
{
"revision": "779392f94d8b3d0dcab8",
"url": "/mrstatic/js/DrawDocument.6bc52458.chunk.js"
"revision": "5bd47f32efa5057e1c93",
"url": "/mrstatic/js/DrawDocument.ba60cb25.chunk.js"
},
{
"revision": "f8807e2fc60abda7583d",
......@@ -88,12 +88,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Examination.da13092a.chunk.js"
},
{
"revision": "b4cdae74773670530c85",
"revision": "a7890cbf6a749ff8c99d",
"url": "/mrstatic/css/Invite.361dc1a3.chunk.css"
},
{
"revision": "b4cdae74773670530c85",
"url": "/mrstatic/js/Invite.de50cf8b.chunk.js"
"revision": "a7890cbf6a749ff8c99d",
"url": "/mrstatic/js/Invite.cac786d5.chunk.js"
},
{
"revision": "95cdfe078607f1d7b5bd",
......@@ -112,20 +112,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Orderinfo.06268cfc.chunk.js"
},
{
"revision": "b6c0575e4c3d8174b25b",
"revision": "eea9318e205049f0101e",
"url": "/mrstatic/css/PayOrder.e5315535.chunk.css"
},
{
"revision": "b6c0575e4c3d8174b25b",
"url": "/mrstatic/js/PayOrder.42ec7e0e.chunk.js"
"revision": "eea9318e205049f0101e",
"url": "/mrstatic/js/PayOrder.df7aea6a.chunk.js"
},
{
"revision": "f016e3e745ec218a7579",
"revision": "13fd213978bd471edec6",
"url": "/mrstatic/css/Preferential.35e260c6.chunk.css"
},
{
"revision": "f016e3e745ec218a7579",
"url": "/mrstatic/js/Preferential.4d215fe1.chunk.js"
"revision": "13fd213978bd471edec6",
"url": "/mrstatic/js/Preferential.8b181552.chunk.js"
},
{
"revision": "b354307d4c408a237c07",
......@@ -160,28 +160,28 @@ self.__precacheManifest = [
"url": "/mrstatic/js/ai-test.4a932b9f.chunk.js"
},
{
"revision": "2c686379612acc94cdb2",
"revision": "065c73906ab1336d4860",
"url": "/mrstatic/css/aist-share.ca49c1cb.chunk.css"
},
{
"revision": "2c686379612acc94cdb2",
"url": "/mrstatic/js/aist-share.3d7ecfef.chunk.js"
"revision": "065c73906ab1336d4860",
"url": "/mrstatic/js/aist-share.4fe49651.chunk.js"
},
{
"revision": "7d28df8f0aedebf5e052",
"revision": "435584167a66c2d53823",
"url": "/mrstatic/css/blessing-getPrize.951fd27d.chunk.css"
},
{
"revision": "7d28df8f0aedebf5e052",
"url": "/mrstatic/js/blessing-getPrize.93853aa6.chunk.js"
"revision": "435584167a66c2d53823",
"url": "/mrstatic/js/blessing-getPrize.8db2d56b.chunk.js"
},
{
"revision": "50f9b6a29a0d52b866c5",
"revision": "ea305eeb8d7cff344534",
"url": "/mrstatic/css/blessing-preheat.715eb28a.chunk.css"
},
{
"revision": "50f9b6a29a0d52b866c5",
"url": "/mrstatic/js/blessing-preheat.633963fa.chunk.js"
"revision": "ea305eeb8d7cff344534",
"url": "/mrstatic/js/blessing-preheat.ee95459e.chunk.js"
},
{
"revision": "b9e5c107e3127e681455",
......@@ -208,20 +208,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/deposit-order.e4764441.chunk.js"
},
{
"revision": "539e34683fd98c56933c",
"revision": "452078610f60b11e90bb",
"url": "/mrstatic/css/deposit-pay-order.219bad3d.chunk.css"
},
{
"revision": "539e34683fd98c56933c",
"url": "/mrstatic/js/deposit-pay-order.d88f613e.chunk.js"
"revision": "452078610f60b11e90bb",
"url": "/mrstatic/js/deposit-pay-order.bb6475e1.chunk.js"
},
{
"revision": "1091bfeb766b64becc0d",
"revision": "1a3289f20251e98957e4",
"url": "/mrstatic/css/detail.ec7d62e4.chunk.css"
},
{
"revision": "1091bfeb766b64becc0d",
"url": "/mrstatic/js/detail.a5c39484.chunk.js"
"revision": "1a3289f20251e98957e4",
"url": "/mrstatic/js/detail.a09188c4.chunk.js"
},
{
"revision": "d6ae9f625223884db278",
......@@ -232,20 +232,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/intelligent-recommend.e805061d.chunk.js"
},
{
"revision": "899730417ad0e187fb37",
"revision": "3b37141ccbd41c10fd25",
"url": "/mrstatic/css/main.84d7495b.chunk.css"
},
{
"revision": "899730417ad0e187fb37",
"url": "/mrstatic/js/main.697bf8e0.chunk.js"
"revision": "3b37141ccbd41c10fd25",
"url": "/mrstatic/js/main.ccf5960a.chunk.js"
},
{
"revision": "2afab518cf445e032c65",
"revision": "6b84ef372861831de80d",
"url": "/mrstatic/css/ml.4913a774.chunk.css"
},
{
"revision": "2afab518cf445e032c65",
"url": "/mrstatic/js/ml.06a33ad0.chunk.js"
"revision": "6b84ef372861831de80d",
"url": "/mrstatic/js/ml.10b451dc.chunk.js"
},
{
"revision": "987578d7c0b20ac37eba",
......@@ -264,20 +264,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.645234e0.chunk.js"
},
{
"revision": "8c5802b7630b42652d0b",
"revision": "0282738e0cef77be8188",
"url": "/mrstatic/css/newyear-2019-landing.b0d930fa.chunk.css"
},
{
"revision": "8c5802b7630b42652d0b",
"url": "/mrstatic/js/newyear-2019-landing.174e35af.chunk.js"
"revision": "0282738e0cef77be8188",
"url": "/mrstatic/js/newyear-2019-landing.a8ea2bf2.chunk.js"
},
{
"revision": "c14cf19f8b1800c9cf91",
"revision": "46a831c8b659ee9c50ad",
"url": "/mrstatic/css/newyear-yearIndex.fe0d87a6.chunk.css"
},
{
"revision": "c14cf19f8b1800c9cf91",
"url": "/mrstatic/js/newyear-yearIndex.dacfda1a.chunk.js"
"revision": "46a831c8b659ee9c50ad",
"url": "/mrstatic/js/newyear-yearIndex.945276df.chunk.js"
},
{
"revision": "1f5f1dfdace1223d309e",
......@@ -296,16 +296,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/purchased.4ce9c6a7.chunk.js"
},
{
"revision": "d58287a849cd82d204ed",
"revision": "a2d2bafb4e70a5f1bd23",
"url": "/mrstatic/css/python-class.087d6571.chunk.css"
},
{
"revision": "d58287a849cd82d204ed",
"url": "/mrstatic/js/python-class.033e3b57.chunk.js"
"revision": "a2d2bafb4e70a5f1bd23",
"url": "/mrstatic/js/python-class.e07e8394.chunk.js"
},
{
"revision": "832f43ddfcff6a03cdb9",
"url": "/mrstatic/js/runtime~main.2a13c7c0.js"
"revision": "3d7cca306458a55c12d3",
"url": "/mrstatic/js/runtime~main.05ee9335.js"
},
{
"revision": "51be90523dc723624031",
......@@ -340,20 +340,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/system-notices.8cde4636.chunk.js"
},
{
"revision": "25549e0ffba4c80b1b20",
"revision": "6b01c0bdbb0431ec94a8",
"url": "/mrstatic/css/togroup.49988cae.chunk.css"
},
{
"revision": "25549e0ffba4c80b1b20",
"url": "/mrstatic/js/togroup.984bc151.chunk.js"
"revision": "6b01c0bdbb0431ec94a8",
"url": "/mrstatic/js/togroup.e186bf90.chunk.js"
},
{
"revision": "354f079bc4429c8096bc",
"revision": "fb33d1bf63daf9fa4445",
"url": "/mrstatic/css/treasure-box-home.7a60b4c8.chunk.css"
},
{
"revision": "354f079bc4429c8096bc",
"url": "/mrstatic/js/treasure-box-home.16c3ab06.chunk.js"
"revision": "fb33d1bf63daf9fa4445",
"url": "/mrstatic/js/treasure-box-home.870f175d.chunk.js"
},
{
"revision": "d4f26a8fbb60129ead86",
......@@ -364,20 +364,20 @@ self.__precacheManifest = [
"url": "/mrstatic/js/treasure-box-mybox.57c87953.chunk.js"
},
{
"revision": "9392c8392c5d9ae883d3",
"revision": "dd18c681e1852db0a1ce",
"url": "/mrstatic/css/video.e2426591.chunk.css"
},
{
"revision": "9392c8392c5d9ae883d3",
"url": "/mrstatic/js/video.59790d12.chunk.js"
"revision": "dd18c681e1852db0a1ce",
"url": "/mrstatic/js/video.ffc507bf.chunk.js"
},
{
"revision": "39ba60bc76edd7ddf000",
"revision": "fd36683f38f74cc2563c",
"url": "/mrstatic/css/49.0c7eea28.chunk.css"
},
{
"revision": "39ba60bc76edd7ddf000",
"url": "/mrstatic/js/49.04719143.chunk.js"
"revision": "fd36683f38f74cc2563c",
"url": "/mrstatic/js/49.4c3bfd6f.chunk.js"
},
{
"revision": "09a1b3b522f13dee63d4",
......@@ -468,12 +468,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/61.61da488a.chunk.js"
},
{
"revision": "3bc6e47c39b0249f2cb9",
"revision": "a992ff6e4923ad7a318f",
"url": "/mrstatic/css/62.4c85e85c.chunk.css"
},
{
"revision": "3bc6e47c39b0249f2cb9",
"url": "/mrstatic/js/62.07bea51f.chunk.js"
"revision": "a992ff6e4923ad7a318f",
"url": "/mrstatic/js/62.bf0c46be.chunk.js"
},
{
"revision": "ba274c393e8dcf83a7d4",
......@@ -528,44 +528,36 @@ self.__precacheManifest = [
"url": "/mrstatic/js/69.7171608a.chunk.js"
},
{
"revision": "f2f4294d9a677f58f6f7c1a0ac84c448",
"url": "/mrstatic/media/iconfont.f2f4294d.woff"
},
{
"revision": "64fd0b167457064e12ff8a6afcd31720",
"url": "/mrstatic/media/iconfont.64fd0b16.eot"
},
{
"revision": "5bf7701b4b6358bd06d9c45c26a7d18f",
"url": "/mrstatic/media/iconfont.5bf7701b.svg"
"revision": "f2f4294d9a677f58f6f7c1a0ac84c448",
"url": "/mrstatic/media/iconfont.f2f4294d.woff"
},
{
"revision": "99b2454970e48c8bb00578cdca15b3d2",
"url": "/mrstatic/media/iconfont.99b24549.ttf"
},
{
"revision": "81a489ac63f2f2df5ab412e0782bd54c",
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
"revision": "5bf7701b4b6358bd06d9c45c26a7d18f",
"url": "/mrstatic/media/iconfont.5bf7701b.svg"
},
{
"revision": "9ab091267ae7c83bd30d0f5ad018a8c9",
"url": "/mrstatic/media/dalibao_bj.9ab09126.png"
"revision": "81a489ac63f2f2df5ab412e0782bd54c",
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "d76ebce726bdf3459fa14e96d84c5b9a",
"url": "/mrstatic/media/formal-banner.d76ebce7.png"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
{
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
"revision": "9ab091267ae7c83bd30d0f5ad018a8c9",
"url": "/mrstatic/media/dalibao_bj.9ab09126.png"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
{
"revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae",
......@@ -576,7 +568,15 @@ self.__precacheManifest = [
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "629fb85d21a0efbbc1c62f79b17a0504",
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "931a5e3903394d4462432b2bff6b79ae",
"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.64d5c055ca33046faad0c82c15e2bb25.js"
"/precache-manifest.1231271b44deb833db65ec32c6fea967.js"
);
workbox.clientsClaim();
......
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