Commit 0bfb832f by FE

Merge branch 'master' of gitlab.julyedu.com:baiguangyao/mr-julyedu

parents 3ae77f0b f6e72bf0
{
"BargainMiddlePage.css": "/static/css/BargainMiddlePage.5654b0f2.chunk.css",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.5d9a1888.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.5d9a1888.chunk.js.map",
"BargainMiddlePage.css": "/static/css/BargainMiddlePage.f15334d9.chunk.css",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.1d2df9b1.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.1d2df9b1.chunk.js.map",
"Classify.css": "/static/css/Classify.6f1b147b.chunk.css",
"Classify.js": "/static/js/Classify.63329319.chunk.js",
"Classify.js.map": "/static/js/Classify.63329319.chunk.js.map",
......@@ -12,15 +12,15 @@
"DrawDocument.js": "/static/js/DrawDocument.947fa78f.chunk.js",
"DrawDocument.js.map": "/static/js/DrawDocument.947fa78f.chunk.js.map",
"Examination.css": "/static/css/Examination.02475a25.chunk.css",
"Examination.js": "/static/js/Examination.7713915d.chunk.js",
"Examination.js.map": "/static/js/Examination.7713915d.chunk.js.map",
"Examination.js": "/static/js/Examination.ebfa34d0.chunk.js",
"Examination.js.map": "/static/js/Examination.ebfa34d0.chunk.js.map",
"MyEdit.js": "/static/js/MyEdit.98497c0f.chunk.js",
"MyEdit.js.map": "/static/js/MyEdit.98497c0f.chunk.js.map",
"Order.css": "/static/css/Order.5199031c.chunk.css",
"Order.js": "/static/js/Order.0b41ac28.chunk.js",
"Order.js.map": "/static/js/Order.0b41ac28.chunk.js.map",
"Orderinfo.js": "/static/js/Orderinfo.1d26f717.chunk.js",
"Orderinfo.js.map": "/static/js/Orderinfo.1d26f717.chunk.js.map",
"Order.js": "/static/js/Order.25a1b5a9.chunk.js",
"Order.js.map": "/static/js/Order.25a1b5a9.chunk.js.map",
"Orderinfo.js": "/static/js/Orderinfo.6b507931.chunk.js",
"Orderinfo.js.map": "/static/js/Orderinfo.6b507931.chunk.js.map",
"PayOrder.css": "/static/css/PayOrder.4a91788c.chunk.css",
"PayOrder.js": "/static/js/PayOrder.8f7c5463.chunk.js",
"PayOrder.js.map": "/static/js/PayOrder.8f7c5463.chunk.js.map",
......@@ -28,34 +28,34 @@
"Preferential.js": "/static/js/Preferential.061171dd.chunk.js",
"Preferential.js.map": "/static/js/Preferential.061171dd.chunk.js.map",
"SearchResult.css": "/static/css/SearchResult.d246922c.chunk.css",
"SearchResult.js": "/static/js/SearchResult.d3f64477.chunk.js",
"SearchResult.js.map": "/static/js/SearchResult.d3f64477.chunk.js.map",
"SearchResult.js": "/static/js/SearchResult.09d41b8d.chunk.js",
"SearchResult.js.map": "/static/js/SearchResult.09d41b8d.chunk.js.map",
"ShopCart.css": "/static/css/ShopCart.f39ca42e.chunk.css",
"ShopCart.js": "/static/js/ShopCart.535850f6.chunk.js",
"ShopCart.js.map": "/static/js/ShopCart.535850f6.chunk.js.map",
"ShopCart.js": "/static/js/ShopCart.a97f6c51.chunk.js",
"ShopCart.js.map": "/static/js/ShopCart.a97f6c51.chunk.js.map",
"aist-share.css": "/static/css/aist-share.01bc9663.chunk.css",
"aist-share.js": "/static/js/aist-share.062aaeb3.chunk.js",
"aist-share.js.map": "/static/js/aist-share.062aaeb3.chunk.js.map",
"coupons.css": "/static/css/coupons.c48c0144.chunk.css",
"coupons.js": "/static/js/coupons.32d91de9.chunk.js",
"coupons.js.map": "/static/js/coupons.32d91de9.chunk.js.map",
"coupons.js": "/static/js/coupons.70722e88.chunk.js",
"coupons.js.map": "/static/js/coupons.70722e88.chunk.js.map",
"detail.css": "/static/css/detail.1970e6cf.chunk.css",
"detail.js": "/static/js/detail.e7658232.chunk.js",
"detail.js.map": "/static/js/detail.e7658232.chunk.js.map",
"detail.js": "/static/js/detail.1b85edeb.chunk.js",
"detail.js.map": "/static/js/detail.1b85edeb.chunk.js.map",
"main.css": "/static/css/main.95f34d95.chunk.css",
"main.js": "/static/js/main.03d12cb9.chunk.js",
"main.js.map": "/static/js/main.03d12cb9.chunk.js.map",
"main.js": "/static/js/main.b454b49f.chunk.js",
"main.js.map": "/static/js/main.b454b49f.chunk.js.map",
"myorders.css": "/static/css/myorders.1dbd49e2.chunk.css",
"myorders.js": "/static/js/myorders.c38a691f.chunk.js",
"myorders.js.map": "/static/js/myorders.c38a691f.chunk.js.map",
"purchased.css": "/static/css/purchased.a14c858f.chunk.css",
"purchased.js": "/static/js/purchased.a499871a.chunk.js",
"purchased.js.map": "/static/js/purchased.a499871a.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.280838a5.js",
"runtime~main.js.map": "/static/js/runtime~main.280838a5.js.map",
"runtime~main.js": "/static/js/runtime~main.4fbb8ee2.js",
"runtime~main.js.map": "/static/js/runtime~main.4fbb8ee2.js.map",
"search.css": "/static/css/search.59d9773d.chunk.css",
"search.js": "/static/js/search.a10701e0.chunk.js",
"search.js.map": "/static/js/search.a10701e0.chunk.js.map",
"search.js": "/static/js/search.5e8dfb79.chunk.js",
"search.js.map": "/static/js/search.5e8dfb79.chunk.js.map",
"shareposter.css": "/static/css/shareposter.728e4385.chunk.css",
"shareposter.js": "/static/js/shareposter.6f0b8364.chunk.js",
"shareposter.js.map": "/static/js/shareposter.6f0b8364.chunk.js.map",
......@@ -63,19 +63,19 @@
"study.js": "/static/js/study.3d4d0ff0.chunk.js",
"study.js.map": "/static/js/study.3d4d0ff0.chunk.js.map",
"togroup.css": "/static/css/togroup.acc61e40.chunk.css",
"togroup.js": "/static/js/togroup.a76a3571.chunk.js",
"togroup.js.map": "/static/js/togroup.a76a3571.chunk.js.map",
"togroup.js": "/static/js/togroup.07524052.chunk.js",
"togroup.js.map": "/static/js/togroup.07524052.chunk.js.map",
"video.css": "/static/css/video.0984720e.chunk.css",
"video.js": "/static/js/video.95c64771.chunk.js",
"video.js.map": "/static/js/video.95c64771.chunk.js.map",
"static/css/24.62b6292a.chunk.css": "/static/css/24.62b6292a.chunk.css",
"static/js/24.86a86b36.chunk.js": "/static/js/24.86a86b36.chunk.js",
"static/js/24.86a86b36.chunk.js.map": "/static/js/24.86a86b36.chunk.js.map",
"video.js": "/static/js/video.d741a89f.chunk.js",
"video.js.map": "/static/js/video.d741a89f.chunk.js.map",
"static/css/24.354507f6.chunk.css": "/static/css/24.354507f6.chunk.css",
"static/js/24.89161bc2.chunk.js": "/static/js/24.89161bc2.chunk.js",
"static/js/24.89161bc2.chunk.js.map": "/static/js/24.89161bc2.chunk.js.map",
"static/js/25.403aae65.chunk.js": "/static/js/25.403aae65.chunk.js",
"static/js/25.403aae65.chunk.js.map": "/static/js/25.403aae65.chunk.js.map",
"static/css/26.b8256974.chunk.css": "/static/css/26.b8256974.chunk.css",
"static/js/26.f7b80738.chunk.js": "/static/js/26.f7b80738.chunk.js",
"static/js/26.f7b80738.chunk.js.map": "/static/js/26.f7b80738.chunk.js.map",
"static/js/26.08c4cdc9.chunk.js": "/static/js/26.08c4cdc9.chunk.js",
"static/js/26.08c4cdc9.chunk.js.map": "/static/js/26.08c4cdc9.chunk.js.map",
"static/js/27.33496196.chunk.js": "/static/js/27.33496196.chunk.js",
"static/js/27.33496196.chunk.js.map": "/static/js/27.33496196.chunk.js.map",
"static/css/28.415f421f.chunk.css": "/static/css/28.415f421f.chunk.css",
......@@ -91,15 +91,15 @@
"static/js/31.29632a76.chunk.js": "/static/js/31.29632a76.chunk.js",
"static/js/31.29632a76.chunk.js.map": "/static/js/31.29632a76.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.d239563289da0861567f067bf3c9bfba.js": "/precache-manifest.d239563289da0861567f067bf3c9bfba.js",
"precache-manifest.b6c2761d26f41dffac274afe17f4f57a.js": "/precache-manifest.b6c2761d26f41dffac274afe17f4f57a.js",
"service-worker.js": "/service-worker.js",
"static/css/24.62b6292a.chunk.css.map": "/static/css/24.62b6292a.chunk.css.map",
"static/css/24.354507f6.chunk.css.map": "/static/css/24.354507f6.chunk.css.map",
"static/css/26.b8256974.chunk.css.map": "/static/css/26.b8256974.chunk.css.map",
"static/css/28.415f421f.chunk.css.map": "/static/css/28.415f421f.chunk.css.map",
"static/css/29.fd1b61f1.chunk.css.map": "/static/css/29.fd1b61f1.chunk.css.map",
"static/css/30.44620a41.chunk.css.map": "/static/css/30.44620a41.chunk.css.map",
"static/css/31.ffbe0560.chunk.css.map": "/static/css/31.ffbe0560.chunk.css.map",
"static/css/BargainMiddlePage.5654b0f2.chunk.css.map": "/static/css/BargainMiddlePage.5654b0f2.chunk.css.map",
"static/css/BargainMiddlePage.f15334d9.chunk.css.map": "/static/css/BargainMiddlePage.f15334d9.chunk.css.map",
"static/css/Classify.6f1b147b.chunk.css.map": "/static/css/Classify.6f1b147b.chunk.css.map",
"static/css/CourseList.2444c6c2.chunk.css.map": "/static/css/CourseList.2444c6c2.chunk.css.map",
"static/css/DrawDocument.58508f31.chunk.css.map": "/static/css/DrawDocument.58508f31.chunk.css.map",
......
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/static/css/24.62b6292a.chunk.css" rel="stylesheet"><link href="/static/css/main.95f34d95.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,n=e[0],a=e[1],o=e[2],i=0,c=[];i<n.length;i++)t=n[i],l[t]&&c.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(f[r]=a[r]);for(h&&h(e);c.length;)c.shift()();return d.push.apply(d,o||[]),u()}function u(){for(var e,r=0;r<d.length;r++){for(var t=d[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(d.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},s={18:0},l={18:0},d=[];function p(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,p),r.l=!0,r.exports}p.e=function(d){var e=[];s[d]?e.push(s[d]):0!==s[d]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[d]&&e.push(s[d]=new Promise(function(e,n){for(var r="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[d]||d)+"."+{0:"5654b0f2",1:"6f1b147b",2:"2444c6c2",3:"58508f31",4:"02475a25",5:"31d6cfe0",6:"5199031c",7:"31d6cfe0",8:"4a91788c",9:"aced1689",10:"d246922c",11:"f39ca42e",12:"01bc9663",13:"c48c0144",14:"1970e6cf",16:"1dbd49e2",17:"a14c858f",19:"59d9773d",20:"728e4385",21:"8e1bd2b5",22:"acc61e40",23:"0984720e",25:"31d6cfe0",26:"b8256974",27:"31d6cfe0",28:"415f421f",29:"fd1b61f1",30:"44620a41",31:"ffbe0560"}[d]+".chunk.css",a=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var i=(f=t[o]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(i===r||i===a))return e()}var c=document.getElementsByTagName("style");for(o=0;o<c.length;o++){var f;if((i=(f=c[o]).getAttribute("data-href"))===r||i===a)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var r=e&&e.target&&e.target.src||a,t=new Error("Loading CSS chunk "+d+" failed.\n("+r+")");t.request=r,delete s[d],u.parentNode.removeChild(u),n(t)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){s[d]=0}));var t=l[d];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[d]=[e,r]});e.push(t[2]=r);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[d]||d)+"."+{0:"5d9a1888",1:"63329319",2:"f13847f4",3:"947fa78f",4:"7713915d",5:"98497c0f",6:"0b41ac28",7:"1d26f717",8:"8f7c5463",9:"061171dd",10:"d3f64477",11:"535850f6",12:"062aaeb3",13:"32d91de9",14:"e7658232",16:"c38a691f",17:"a499871a",19:"a10701e0",20:"6f0b8364",21:"3d4d0ff0",22:"a76a3571",23:"95c64771",25:"403aae65",26:"f7b80738",27:"33496196",28:"88036717",29:"42d40869",30:"b92758f1",31:"29632a76"}[d]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(i);var r=l[d];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+d+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[d]=void 0}};var i=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},p.m=f,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)p.d(t,n,function(e){return r[e]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var a=0;a<r.length;a++)e(r[a]);var h=n;u()}([])</script><script src="/static/js/24.86a86b36.chunk.js"></script><script src="/static/js/main.03d12cb9.chunk.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/static/css/24.354507f6.chunk.css" rel="stylesheet"><link href="/static/css/main.95f34d95.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,n=e[0],a=e[1],o=e[2],c=0,i=[];c<n.length;c++)t=n[c],l[t]&&i.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(f[r]=a[r]);for(h&&h(e);i.length;)i.shift()();return u.push.apply(u,o||[]),d()}function d(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(u.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},s={18:0},l={18:0},u=[];function p(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,p),r.l=!0,r.exports}p.e=function(u){var e=[];s[u]?e.push(s[u]):0!==s[u]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[u]&&e.push(s[u]=new Promise(function(e,n){for(var r="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[u]||u)+"."+{0:"f15334d9",1:"6f1b147b",2:"2444c6c2",3:"58508f31",4:"02475a25",5:"31d6cfe0",6:"5199031c",7:"31d6cfe0",8:"4a91788c",9:"aced1689",10:"d246922c",11:"f39ca42e",12:"01bc9663",13:"c48c0144",14:"1970e6cf",16:"1dbd49e2",17:"a14c858f",19:"59d9773d",20:"728e4385",21:"8e1bd2b5",22:"acc61e40",23:"0984720e",25:"31d6cfe0",26:"b8256974",27:"31d6cfe0",28:"415f421f",29:"fd1b61f1",30:"44620a41",31:"ffbe0560"}[u]+".chunk.css",a=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(f=t[o]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(c===r||c===a))return e()}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var f;if((c=(f=i[o]).getAttribute("data-href"))===r||c===a)return e()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=e,d.onerror=function(e){var r=e&&e.target&&e.target.src||a,t=new Error("Loading CSS chunk "+u+" failed.\n("+r+")");t.request=r,delete s[u],d.parentNode.removeChild(d),n(t)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)}).then(function(){s[u]=0}));var t=l[u];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[u]=[e,r]});e.push(t[2]=r);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[u]||u)+"."+{0:"1d2df9b1",1:"63329319",2:"f13847f4",3:"947fa78f",4:"ebfa34d0",5:"98497c0f",6:"25a1b5a9",7:"6b507931",8:"8f7c5463",9:"061171dd",10:"09d41b8d",11:"a97f6c51",12:"062aaeb3",13:"70722e88",14:"1b85edeb",16:"c38a691f",17:"a499871a",19:"5e8dfb79",20:"6f0b8364",21:"3d4d0ff0",22:"07524052",23:"d741a89f",25:"403aae65",26:"08c4cdc9",27:"33496196",28:"88036717",29:"42d40869",30:"b92758f1",31:"29632a76"}[u]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[u];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+u+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[u]=void 0}};var c=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},p.m=f,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)p.d(t,n,function(e){return r[e]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var a=0;a<r.length;a++)e(r[a]);var h=n;d()}([])</script><script src="/static/js/24.89161bc2.chunk.js"></script><script src="/static/js/main.b454b49f.chunk.js"></script></body></html>
\ No newline at end of file
......@@ -4,8 +4,8 @@ self.__precacheManifest = [
"url": "/static/js/purchased.a499871a.chunk.js"
},
{
"revision": "84d0b00913d03f35573c",
"url": "/static/css/BargainMiddlePage.5654b0f2.chunk.css"
"revision": "cf1f224bed3b5613a125",
"url": "/static/css/BargainMiddlePage.f15334d9.chunk.css"
},
{
"revision": "8ed48f8c643e0607c130",
......@@ -32,28 +32,28 @@ self.__precacheManifest = [
"url": "/static/js/DrawDocument.947fa78f.chunk.js"
},
{
"revision": "30c318d1da1d9abc7ba8",
"revision": "c3936165b876df233f1a",
"url": "/static/css/Examination.02475a25.chunk.css"
},
{
"revision": "30c318d1da1d9abc7ba8",
"url": "/static/js/Examination.7713915d.chunk.js"
"revision": "c3936165b876df233f1a",
"url": "/static/js/Examination.ebfa34d0.chunk.js"
},
{
"revision": "40460c5f4b9ff77d6ea8",
"url": "/static/js/MyEdit.98497c0f.chunk.js"
},
{
"revision": "c107ddc6959c00798d5b",
"revision": "aa2d804e5a7e177b19f8",
"url": "/static/css/Order.5199031c.chunk.css"
},
{
"revision": "c107ddc6959c00798d5b",
"url": "/static/js/Order.0b41ac28.chunk.js"
"revision": "aa2d804e5a7e177b19f8",
"url": "/static/js/Order.25a1b5a9.chunk.js"
},
{
"revision": "0dd078c3fbf39dae783d",
"url": "/static/js/Orderinfo.1d26f717.chunk.js"
"revision": "dc1b3394b3f766f90d77",
"url": "/static/js/Orderinfo.6b507931.chunk.js"
},
{
"revision": "930526b494ab1856ed52",
......@@ -72,20 +72,20 @@ self.__precacheManifest = [
"url": "/static/js/Preferential.061171dd.chunk.js"
},
{
"revision": "e22365a7fb23f396ca1b",
"revision": "98b6b0268f52ddce209e",
"url": "/static/css/SearchResult.d246922c.chunk.css"
},
{
"revision": "e22365a7fb23f396ca1b",
"url": "/static/js/SearchResult.d3f64477.chunk.js"
"revision": "98b6b0268f52ddce209e",
"url": "/static/js/SearchResult.09d41b8d.chunk.js"
},
{
"revision": "7246dd67665a94170e3d",
"revision": "b4c75fb19bc6754779fc",
"url": "/static/css/ShopCart.f39ca42e.chunk.css"
},
{
"revision": "7246dd67665a94170e3d",
"url": "/static/js/ShopCart.535850f6.chunk.js"
"revision": "b4c75fb19bc6754779fc",
"url": "/static/js/ShopCart.a97f6c51.chunk.js"
},
{
"revision": "a20563fc89034b94e000",
......@@ -96,28 +96,28 @@ self.__precacheManifest = [
"url": "/static/js/aist-share.062aaeb3.chunk.js"
},
{
"revision": "cf8afa2f3533f004b7d0",
"revision": "0e5d8939254c58566a05",
"url": "/static/css/coupons.c48c0144.chunk.css"
},
{
"revision": "cf8afa2f3533f004b7d0",
"url": "/static/js/coupons.32d91de9.chunk.js"
"revision": "0e5d8939254c58566a05",
"url": "/static/js/coupons.70722e88.chunk.js"
},
{
"revision": "e2798ae62bff3805b524",
"revision": "80011d26eabf1b50cb32",
"url": "/static/css/detail.1970e6cf.chunk.css"
},
{
"revision": "e2798ae62bff3805b524",
"url": "/static/js/detail.e7658232.chunk.js"
"revision": "80011d26eabf1b50cb32",
"url": "/static/js/detail.1b85edeb.chunk.js"
},
{
"revision": "d098e46d3a97eb5e191c",
"revision": "6637776104f87be1bdfc",
"url": "/static/css/main.95f34d95.chunk.css"
},
{
"revision": "d098e46d3a97eb5e191c",
"url": "/static/js/main.03d12cb9.chunk.js"
"revision": "6637776104f87be1bdfc",
"url": "/static/js/main.b454b49f.chunk.js"
},
{
"revision": "254ae316a5dbb7a0531c",
......@@ -132,20 +132,20 @@ self.__precacheManifest = [
"url": "/static/css/purchased.a14c858f.chunk.css"
},
{
"revision": "84d0b00913d03f35573c",
"url": "/static/js/BargainMiddlePage.5d9a1888.chunk.js"
"revision": "cf1f224bed3b5613a125",
"url": "/static/js/BargainMiddlePage.1d2df9b1.chunk.js"
},
{
"revision": "d493d176fac486f57c1c",
"url": "/static/js/runtime~main.280838a5.js"
"revision": "5d4276619b747286207b",
"url": "/static/js/runtime~main.4fbb8ee2.js"
},
{
"revision": "1f851421d43b507e18c7",
"revision": "f3551abeda11e1e25522",
"url": "/static/css/search.59d9773d.chunk.css"
},
{
"revision": "1f851421d43b507e18c7",
"url": "/static/js/search.a10701e0.chunk.js"
"revision": "f3551abeda11e1e25522",
"url": "/static/js/search.5e8dfb79.chunk.js"
},
{
"revision": "c595d30f9a79307c2722",
......@@ -164,28 +164,28 @@ self.__precacheManifest = [
"url": "/static/js/study.3d4d0ff0.chunk.js"
},
{
"revision": "2ffb9d003c3055f1d432",
"revision": "498e2f5bd8aa81955d91",
"url": "/static/css/togroup.acc61e40.chunk.css"
},
{
"revision": "2ffb9d003c3055f1d432",
"url": "/static/js/togroup.a76a3571.chunk.js"
"revision": "498e2f5bd8aa81955d91",
"url": "/static/js/togroup.07524052.chunk.js"
},
{
"revision": "8553d198eda7e14905f5",
"revision": "ed08e747fbdffcf5bb81",
"url": "/static/css/video.0984720e.chunk.css"
},
{
"revision": "8553d198eda7e14905f5",
"url": "/static/js/video.95c64771.chunk.js"
"revision": "ed08e747fbdffcf5bb81",
"url": "/static/js/video.d741a89f.chunk.js"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/static/media/progress-share-bg.80011994.png"
},
{
"revision": "180a22e9d692cab3c9ee",
"url": "/static/js/24.86a86b36.chunk.js"
"revision": "2c722a9b8d54faed9ba3",
"url": "/static/js/24.89161bc2.chunk.js"
},
{
"revision": "c36733f1a53eb4beb646",
......@@ -196,8 +196,8 @@ self.__precacheManifest = [
"url": "/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "7b817d00ddfc66ae158e",
"url": "/static/js/26.f7b80738.chunk.js"
"revision": "fb3ef5fadc81227cb0b8",
"url": "/static/js/26.08c4cdc9.chunk.js"
},
{
"revision": "2725cf82a2822752e44f",
......@@ -252,15 +252,15 @@ self.__precacheManifest = [
"url": "/static/css/28.415f421f.chunk.css"
},
{
"revision": "7b817d00ddfc66ae158e",
"revision": "fb3ef5fadc81227cb0b8",
"url": "/static/css/26.b8256974.chunk.css"
},
{
"revision": "180a22e9d692cab3c9ee",
"url": "/static/css/24.62b6292a.chunk.css"
"revision": "2c722a9b8d54faed9ba3",
"url": "/static/css/24.354507f6.chunk.css"
},
{
"revision": "69551d209c5785f55a505c204ebd2a90",
"revision": "ad2af9c120f637df813ca2013b46fbb1",
"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.d239563289da0861567f067bf3c9bfba.js"
"/precache-manifest.b6c2761d26f41dffac274afe17f4f57a.js"
);
workbox.clientsClaim();
......
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 10.666667vw}hr{box-sizing:initial;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:initial;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:initial}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-.533333vw}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}.am-fade-appear,.am-fade-enter{opacity:0}.am-fade-appear,.am-fade-enter,.am-fade-leave{-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-play-state:paused;animation-play-state:paused}.am-fade-appear.am-fade-appear-active,.am-fade-enter.am-fade-enter-active{-webkit-animation-name:amFadeIn;animation-name:amFadeIn;-webkit-animation-play-state:running;animation-play-state:running}.am-fade-leave.am-fade-leave-active{-webkit-animation-name:amFadeOut;animation-name:amFadeOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes amFadeIn{0%{opacity:0}to{opacity:1}}@keyframes amFadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes amFadeOut{0%{opacity:1}to{opacity:0}}@keyframes amFadeOut{0%{opacity:1}to{opacity:0}}.am-slide-up-appear,.am-slide-up-enter{-webkit-transform:translateY(100%);transform:translateY(100%)}.am-slide-up-appear,.am-slide-up-enter,.am-slide-up-leave{-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-up-appear.am-slide-up-appear-active,.am-slide-up-enter.am-slide-up-enter-active{-webkit-animation-name:amSlideUpIn;animation-name:amSlideUpIn;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-up-leave.am-slide-up-leave-active{-webkit-animation-name:amSlideUpOut;animation-name:amSlideUpOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes amSlideUpIn{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0);transform:translate(0)}}@keyframes amSlideUpIn{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translate(0);transform:translate(0)}}@-webkit-keyframes amSlideUpOut{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes amSlideUpOut{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}.am.am-zoom-enter,.am.am-zoom-leave{display:block}.am-zoom-appear,.am-zoom-enter{opacity:0;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-timing-function:cubic-bezier(.18,.89,.32,1.28);animation-timing-function:cubic-bezier(.18,.89,.32,1.28);-webkit-animation-play-state:paused;animation-play-state:paused}.am-zoom-leave{-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-timing-function:cubic-bezier(.6,-.3,.74,.05);animation-timing-function:cubic-bezier(.6,-.3,.74,.05);-webkit-animation-play-state:paused;animation-play-state:paused}.am-zoom-appear.am-zoom-appear-active,.am-zoom-enter.am-zoom-enter-active{-webkit-animation-name:amZoomIn;animation-name:amZoomIn;-webkit-animation-play-state:running;animation-play-state:running}.am-zoom-leave.am-zoom-leave-active{-webkit-animation-name:amZoomOut;animation-name:amZoomOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes amZoomIn{0%{opacity:0;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(1);transform:scale(1)}}@keyframes amZoomIn{0%{opacity:0;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(0);transform:scale(0)}to{opacity:1;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes amZoomOut{0%{opacity:1;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(0);transform:scale(0)}}@keyframes amZoomOut{0%{opacity:1;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scale(0);transform:scale(0)}}.am-slide-down-appear,.am-slide-down-enter{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.am-slide-down-appear,.am-slide-down-enter,.am-slide-down-leave{-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-timing-function:cubic-bezier(.55,0,.55,.2);-webkit-animation-play-state:paused;animation-play-state:paused}.am-slide-down-appear.am-slide-down-appear-active,.am-slide-down-enter.am-slide-down-enter-active{-webkit-animation-name:amSlideDownIn;animation-name:amSlideDownIn;-webkit-animation-play-state:running;animation-play-state:running}.am-slide-down-leave.am-slide-down-leave-active{-webkit-animation-name:amSlideDownOut;animation-name:amSlideDownOut;-webkit-animation-play-state:running;animation-play-state:running}@-webkit-keyframes amSlideDownIn{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translate(0);transform:translate(0)}}@keyframes amSlideDownIn{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translate(0);transform:translate(0)}}@-webkit-keyframes amSlideDownOut{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes amSlideDownOut{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}*,:after,:before{-webkit-tap-highlight-color:rgba(0,0,0,0)}body{background-color:#f5f5f9;font-size:3.733333vw}[contenteditable]{-webkit-user-select:auto!important}:focus,a{outline:none}a{background:transparent;text-decoration:none}.am-icon{fill:currentColor;background-size:cover;width:5.866667vw;height:5.866667vw}.am-icon-xxs{width:4vw;height:4vw}.am-icon-xs{width:4.8vw;height:4.8vw}.am-icon-sm{width:5.6vw;height:5.6vw}.am-icon-md{width:5.866667vw;height:5.866667vw}.am-icon-lg{width:9.6vw;height:9.6vw}.am-icon-loading{-webkit-animation:cirle-anim 1s linear infinite;animation:cirle-anim 1s linear infinite}@-webkit-keyframes cirle-anim{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes cirle-anim{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.am-toast{position:fixed;width:100%;z-index:1999;font-size:3.733333vw;text-align:center}.am-toast>span{max-width:50%}.am-toast.am-toast-mask{height:100%;display:flex;justify-content:center;align-items:center;left:0;top:0}.am-toast.am-toast-mask,.am-toast.am-toast-nomask{-webkit-transform:translateZ(1px);transform:translateZ(1px)}.am-toast.am-toast-nomask{position:fixed;max-width:50%;width:auto;left:50%;top:50%}.am-toast.am-toast-nomask .am-toast-notice{-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.am-toast-notice-content .am-toast-text{min-width:16vw;border-radius:.8vw;color:#fff;background-color:rgba(58,58,58,.9);line-height:1.5;padding:2.4vw 4vw}.am-toast-notice-content .am-toast-text.am-toast-text-icon{border-radius:1.333333vw;padding:4vw}.am-toast-notice-content .am-toast-text.am-toast-text-icon .am-toast-text-info{margin-top:1.6vw}.am-whitespace.am-whitespace-xs{height:.8vw}.am-whitespace.am-whitespace-sm{height:1.6vw}.am-whitespace.am-whitespace-md{height:2.4vw}.am-whitespace.am-whitespace-lg{height:4vw}.am-whitespace.am-whitespace-xl{height:5.6vw}.am-flexbox{text-align:left;overflow:hidden;display:flex;align-items:center}.am-flexbox.am-flexbox-dir-row{flex-direction:row}.am-flexbox.am-flexbox-dir-row-reverse{flex-direction:row-reverse}.am-flexbox.am-flexbox-dir-column{flex-direction:column}.am-flexbox.am-flexbox-dir-column .am-flexbox-item{margin-left:0}.am-flexbox.am-flexbox-dir-column-reverse{flex-direction:column-reverse}.am-flexbox.am-flexbox-dir-column-reverse .am-flexbox-item{margin-left:0}.am-flexbox.am-flexbox-nowrap{flex-wrap:nowrap}.am-flexbox.am-flexbox-wrap{flex-wrap:wrap}.am-flexbox.am-flexbox-wrap-reverse{flex-wrap:wrap-reverse}.am-flexbox.am-flexbox-justify-start{justify-content:flex-start}.am-flexbox.am-flexbox-justify-end{justify-content:flex-end}.am-flexbox.am-flexbox-justify-center{justify-content:center}.am-flexbox.am-flexbox-justify-between{justify-content:space-between}.am-flexbox.am-flexbox-justify-around{justify-content:space-around}.am-flexbox.am-flexbox-align-start{align-items:flex-start}.am-flexbox.am-flexbox-align-end{align-items:flex-end}.am-flexbox.am-flexbox-align-center{align-items:center}.am-flexbox.am-flexbox-align-stretch{align-items:stretch}.am-flexbox.am-flexbox-align-baseline{align-items:baseline}.am-flexbox.am-flexbox-align-content-start{align-content:flex-start}.am-flexbox.am-flexbox-align-content-end{align-content:flex-end}.am-flexbox.am-flexbox-align-content-center{align-content:center}.am-flexbox.am-flexbox-align-content-between{align-content:space-between}.am-flexbox.am-flexbox-align-content-around{align-content:space-around}.am-flexbox.am-flexbox-align-content-stretch{align-content:stretch}.am-flexbox .am-flexbox-item{box-sizing:border-box;flex:1 1;margin-left:2.133333vw;min-width:2.666667vw}.am-flexbox .am-flexbox-item:first-child{margin-left:0}.am-list-header{padding:4vw 4vw 2.4vw;font-size:3.733333vw;color:#888;width:100%;box-sizing:border-box}.am-list-footer{padding:2.4vw 4vw 4vw;font-size:3.733333vw;color:#888}.am-list-body{position:relative;background-color:#fff;border-top:1px solid #ddd;border-bottom:1px solid #ddd}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-list-body{border-top:none}html:not([data-scale]) .am-list-body:before{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:0;right:auto;bottom:auto;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-list-body:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-list-body{border-bottom:none}html:not([data-scale]) .am-list-body:after{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:auto;right:auto;bottom:0;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-list-body:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.am-list-body div:not(:last-child) .am-list-line{border-bottom:1px solid #ddd}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-list-body div:not(:last-child) .am-list-line{border-bottom:none}html:not([data-scale]) .am-list-body div:not(:last-child) .am-list-line:after{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:auto;right:auto;bottom:0;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-list-body div:not(:last-child) .am-list-line:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.am-list-item{position:relative;display:flex;padding-left:4vw;min-height:11.733333vw;background-color:#fff;vertical-align:middle;overflow:hidden;-webkit-transition:background-color .2s;transition:background-color .2s;align-items:center}.am-list-item .am-list-ripple{position:absolute;background:transparent;display:inline-block;overflow:hidden;will-change:box-shadow,transform;-webkit-transition:background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1),-webkit-box-shadow .2s cubic-bezier(.4,0,1,1);-webkit-transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:none;cursor:pointer;border-radius:100%;-webkit-transform:scale(0);transform:scale(0)}.am-list-item .am-list-ripple.am-list-ripple-animate{background-color:hsla(0,0%,62%,.2);-webkit-animation:ripple 1s linear;animation:ripple 1s linear}.am-list-item.am-list-item-top .am-list-line{align-items:flex-start}.am-list-item.am-list-item-top .am-list-line .am-list-arrow{margin-top:.533333vw}.am-list-item.am-list-item-middle .am-list-line{align-items:center}.am-list-item.am-list-item-bottom .am-list-line{align-items:flex-end}.am-list-item.am-list-item-error .am-list-line .am-list-extra,.am-list-item.am-list-item-error .am-list-line .am-list-extra .am-list-brief{color:#f50}.am-list-item.am-list-item-active{background-color:#ddd}.am-list-item.am-list-item-disabled .am-list-line .am-list-content,.am-list-item.am-list-item-disabled .am-list-line .am-list-extra{color:#bbb}.am-list-item img{width:5.866667vw;height:5.866667vw;vertical-align:middle}.am-list-item .am-list-thumb:first-child{margin-right:4vw}.am-list-item .am-list-thumb:last-child{margin-left:2.133333vw}.am-list-item .am-list-line{position:relative;display:flex;flex:1 1;align-self:stretch;padding-right:4vw;overflow:hidden}.am-list-item .am-list-line .am-list-content{flex:1 1;color:#000;font-size:4.533333vw;text-align:left}.am-list-item .am-list-line .am-list-content,.am-list-item .am-list-line .am-list-extra{line-height:1.5;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-top:1.866667vw;padding-bottom:1.866667vw}.am-list-item .am-list-line .am-list-extra{flex-basis:36%;color:#888;font-size:4.266667vw;text-align:right}.am-list-item .am-list-line .am-list-brief,.am-list-item .am-list-line .am-list-title{width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.am-list-item .am-list-line .am-list-brief{color:#888;font-size:4vw;line-height:1.5;margin-top:1.6vw}.am-list-item .am-list-line .am-list-arrow{display:block;width:4vw;height:4vw;margin-left:2.133333vw;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='26' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 0L0 2l11.5 11L0 24l2 2 14-13z' fill='%23C7C7CC' fill-rule='evenodd'/%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:50% 50%;visibility:hidden}.am-list-item .am-list-line .am-list-arrow-horizontal{visibility:visible}.am-list-item .am-list-line .am-list-arrow-vertical{visibility:visible;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.am-list-item .am-list-line .am-list-arrow-vertical-up{visibility:visible;-webkit-transform:rotate(270deg);transform:rotate(270deg)}.am-list-item .am-list-line-multiple{padding:3.333333vw 4vw 3.333333vw 0}.am-list-item .am-list-line-multiple .am-list-content,.am-list-item .am-list-line-multiple .am-list-extra{padding-top:0;padding-bottom:0}.am-list-item .am-list-line-wrap .am-list-content,.am-list-item .am-list-line-wrap .am-list-extra{white-space:normal}.am-list-item select{position:relative;display:block;width:100%;height:100%;padding:0;border:0;font-size:4.533333vw;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:initial}@-webkit-keyframes ripple{to{opacity:0;-webkit-transform:scale(2.5);transform:scale(2.5)}}@keyframes ripple{to{opacity:0;-webkit-transform:scale(2.5);transform:scale(2.5)}}.am-modal{position:relative}.am-modal:not(.am-modal-transparent):not(.am-modal-popup){width:100%;height:100%}.am-modal-mask{position:fixed;top:0;right:0;left:0;bottom:0;height:100%;z-index:999;background-color:rgba(0,0,0,.4)}.am-modal-mask-hidden{display:none}.am-modal-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;height:100%;z-index:999;-webkit-overflow-scrolling:touch;outline:0;display:flex;align-items:center;justify-content:center;-webkit-transform:translateZ(1px);transform:translateZ(1px)}.am-modal-wrap-popup{display:block}.am-modal-transparent{width:72vw}.am-modal-transparent .am-modal-content{border-radius:1.866667vw;padding-top:4vw}.am-modal-transparent .am-modal-content .am-modal-body{padding:0 4vw 4vw}.am-modal-popup{position:fixed;left:0;width:100%}.am-modal-popup-slide-down{top:0}.am-modal-popup-slide-up{bottom:0}.am-modal-popup .am-modal-content{padding-bottom:env(safe-area-inset-bottom)}.am-modal-title{margin:0;font-size:4.8vw;line-height:1;color:#000;text-align:center}.am-modal-header{padding:1.6vw 4vw 4vw}.am-modal-content{position:relative;background-color:#fff;border:0;background-clip:padding-box;text-align:center;height:100%;overflow:hidden}.am-modal-close{border:0;padding:0;background-color:initial;outline:none;position:absolute;right:4vw;z-index:999;height:5.6vw;width:5.6vw}.am-modal-close-x{display:inline-block;width:4vw;height:4vw;background-repeat:no-repeat;background-size:cover;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='30' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23888' fill-rule='evenodd'%3E%3Cpath d='M1.414 0l28.284 28.284-1.414 1.414L0 1.414z'/%3E%3Cpath d='M28.284 0L0 28.284l1.414 1.414L29.698 1.414z'/%3E%3C/g%3E%3C/svg%3E")}.am-modal-body{font-size:4vw;color:#888;height:100%;line-height:1.5;overflow:auto}.am-modal-button-group-h{position:relative;border-top:1px solid #ddd;display:flex}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-modal-button-group-h{border-top:none}html:not([data-scale]) .am-modal-button-group-h:before{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:0;right:auto;bottom:auto;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-modal-button-group-h:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.am-modal-button-group-h .am-modal-button{-webkit-touch-callout:none;flex:1 1;box-sizing:border-box;text-align:center;text-decoration:none;outline:none;color:#108ee9;font-size:4.8vw;height:13.333333vw;line-height:13.333333vw;display:block;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.am-modal-button-group-h .am-modal-button:first-child{color:#000}.am-modal-button-group-h .am-modal-button:last-child{position:relative;border-left:1px solid #ddd}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-modal-button-group-h .am-modal-button:last-child{border-left:none}html:not([data-scale]) .am-modal-button-group-h .am-modal-button:last-child:before{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:0;right:auto;bottom:auto;left:0;width:1PX;height:100%;-webkit-transform-origin:100% 50%;transform-origin:100% 50%;-webkit-transform:scaleX(.5);transform:scaleX(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-modal-button-group-h .am-modal-button:last-child:before{-webkit-transform:scaleX(.33);transform:scaleX(.33)}}.am-modal-button-group-v .am-modal-button{-webkit-touch-callout:none;position:relative;border-top:1px solid #ddd;box-sizing:border-box;text-align:center;text-decoration:none;outline:none;color:#108ee9;font-size:4.8vw;height:13.333333vw;line-height:13.333333vw;display:block;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-modal-button-group-v .am-modal-button{border-top:none}html:not([data-scale]) .am-modal-button-group-v .am-modal-button:before{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:0;right:auto;bottom:auto;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-modal-button-group-v .am-modal-button:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.am-modal-button-active{background-color:#ddd}.am-modal-input-container{margin-top:2.4vw;border:1px solid #ddd;border-radius:.8vw}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-modal-input-container{position:relative;border:none}html:not([data-scale]) .am-modal-input-container:before{content:"";position:absolute;left:0;top:0;width:200%;height:200%;border:1px solid #ddd;border-radius:6px;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scale(.5);transform:scale(.5);box-sizing:border-box;pointer-events:none}}.am-modal-input{height:9.6vw;line-height:1}.am-modal-input:nth-child(2){position:relative;border-top:1px solid #ddd}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-modal-input:nth-child(2){border-top:none}html:not([data-scale]) .am-modal-input:nth-child(2):before{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:0;right:auto;bottom:auto;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-modal-input:nth-child(2):before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.am-modal-input input{position:relative;border:0;width:98%;height:9.066667vw;top:1PX;box-sizing:border-box;margin:0}.am-modal-input input::-webkit-input-placeholder{font-size:3.733333vw;color:#ccc;padding-left:2.133333vw}.am-modal-input input::-moz-placeholder{font-size:3.733333vw;color:#ccc;padding-left:2.133333vw}.am-modal-input input::-ms-input-placeholder{font-size:3.733333vw;color:#ccc;padding-left:2.133333vw}.am-modal-input input::placeholder{font-size:3.733333vw;color:#ccc;padding-left:2.133333vw}.am-modal.am-modal-transparent.am-modal-android .am-modal-content{border-radius:0}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-header{padding:2.4vw 6.4vw 3.2vw}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-header .am-modal-title{text-align:left;font-size:5.6vw;color:#000}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-body{color:#000;text-align:left;padding:0 6.4vw 4vw}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-body .am-modal-input-container{border:0;border-bottom:1px solid #ddd}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-body .am-modal-input-container:before{display:none!important}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-body .am-modal-input-container{border-bottom:none}html:not([data-scale]) .am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-body .am-modal-input-container:after{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:auto;right:auto;bottom:0;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-body .am-modal-input-container:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-body .am-modal-input-container .am-modal-input:first-child{border-top:0}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-body .am-modal-input-container .am-modal-input:first-child:before{display:none!important}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer{padding-bottom:3.2vw}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-h{overflow:hidden;border-top:0;justify-content:flex-end;padding:0 3.2vw}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-h:before{display:none!important}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-h .am-modal-button{flex:initial;margin-left:.8vw;padding:0 4vw;height:12.8vw;box-sizing:border-box}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-h .am-modal-button:first-child{color:#777}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-h .am-modal-button:last-child{border-left:0}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-h .am-modal-button:last-child:before{display:none!important}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-v.am-modal-button-group-normal{display:flex;justify-content:flex-end;overflow:hidden;padding:0 3.2vw}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-v.am-modal-button-group-normal .am-modal-button{border-top:0;padding:0 4vw;margin-left:.8vw;height:12.8vw;box-sizing:border-box}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-v.am-modal-button-group-normal .am-modal-button:before{display:none!important}.am-modal.am-modal-transparent.am-modal-android .am-modal-content .am-modal-footer .am-modal-button-group-operation .am-modal-button{text-align:start;padding-left:4vw}.am-modal.am-modal-operation .am-modal-content{border-radius:1.866667vw;height:auto;padding-top:0}.am-modal.am-modal-operation .am-modal-content .am-modal-body{padding:0!important}.am-modal.am-modal-operation .am-modal-content .am-modal-button{color:#000;text-align:left;padding-left:4vw}.am-modal-alert-content,.am-modal-propmt-content{zoom:1;overflow:hidden}.am-tabs{display:flex;flex:1 1;position:relative;overflow:hidden;height:100%;width:100%}.am-tabs,.am-tabs *{box-sizing:border-box}.am-tabs-content-wrap{display:flex;flex:1 1;width:100%;height:100%;min-height:0}.am-tabs-content-wrap-animated{-webkit-transition:left .3s cubic-bezier(.35,0,.25,1),top .3s cubic-bezier(.35,0,.25,1),-webkit-transform .3s cubic-bezier(.35,0,.25,1);transition:left .3s cubic-bezier(.35,0,.25,1),top .3s cubic-bezier(.35,0,.25,1),-webkit-transform .3s cubic-bezier(.35,0,.25,1);transition:transform .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1),top .3s cubic-bezier(.35,0,.25,1);transition:transform .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1),top .3s cubic-bezier(.35,0,.25,1),-webkit-transform .3s cubic-bezier(.35,0,.25,1);will-change:transform,left,top}.am-tabs-pane-wrap{width:100%;flex-shrink:0;overflow-y:auto}.am-tabs-tab-bar-wrap{flex-shrink:0}.am-tabs-horizontal .am-tabs-pane-wrap-active{height:auto}.am-tabs-horizontal .am-tabs-pane-wrap-inactive{height:0;overflow:visible}.am-tabs-vertical .am-tabs-content-wrap{flex-direction:column}.am-tabs-vertical .am-tabs-pane-wrap,.am-tabs-vertical .am-tabs-tab-bar-wrap{height:100%}.am-tabs-vertical .am-tabs-pane-wrap-active{overflow:auto}.am-tabs-vertical .am-tabs-pane-wrap-inactive{overflow:hidden}.am-tabs-bottom,.am-tabs-top{flex-direction:column}.am-tabs-left,.am-tabs-right{flex-direction:row}.am-tabs-default-bar{position:relative;display:flex;flex-shrink:0;flex-direction:row;width:100%;height:100%;overflow:visible;z-index:1}.am-tabs-default-bar-tab{position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;font-size:4vw;height:11.6vw;line-height:11.6vw}.am-tabs-default-bar-tab .am-badge .am-badge-text{top:-3.466667vw;-webkit-transform:translateX(-1.333333vw);transform:translateX(-1.333333vw)}.am-tabs-default-bar-tab .am-badge .am-badge-dot{top:-1.6vw;-webkit-transform:translateX(0);transform:translateX(0)}.am-tabs-default-bar-tab-active{color:#108ee9}.am-tabs-default-bar-underline{position:absolute;border:1px solid #108ee9;-webkit-transform:translateZ(0);transform:translateZ(0)}.am-tabs-default-bar-animated .am-tabs-default-bar-content{-webkit-transition:-webkit-transform .3s cubic-bezier(.35,0,.25,1);transition:-webkit-transform .3s cubic-bezier(.35,0,.25,1);transition:transform .3s cubic-bezier(.35,0,.25,1);transition:transform .3s cubic-bezier(.35,0,.25,1),-webkit-transform .3s cubic-bezier(.35,0,.25,1);will-change:transform}.am-tabs-default-bar-animated .am-tabs-default-bar-underline{-webkit-transition:top .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1),color .3s cubic-bezier(.35,0,.25,1),width .3s cubic-bezier(.35,0,.25,1);transition:top .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1),color .3s cubic-bezier(.35,0,.25,1),width .3s cubic-bezier(.35,0,.25,1);will-change:top,left,width,color}.am-tabs-default-bar-bottom,.am-tabs-default-bar-top{flex-direction:row}.am-tabs-default-bar-bottom .am-tabs-default-bar-content,.am-tabs-default-bar-top .am-tabs-default-bar-content{display:flex;width:100%;flex-direction:row}.am-tabs-default-bar-bottom .am-tabs-default-bar-prevpage,.am-tabs-default-bar-top .am-tabs-default-bar-prevpage{pointer-events:none;position:absolute;top:0;display:block;width:15.733333vw;height:100%;content:" ";z-index:999;left:0;background:-webkit-gradient(linear,left top,right top,from(#fff),to(hsla(0,0%,100%,0)));background:-webkit-linear-gradient(left,#fff,hsla(0,0%,100%,0));background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.am-tabs-default-bar-bottom .am-tabs-default-bar-nextpage,.am-tabs-default-bar-top .am-tabs-default-bar-nextpage{pointer-events:none;position:absolute;top:0;display:block;width:15.733333vw;height:100%;content:" ";z-index:999;right:0;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),to(#fff));background:-webkit-linear-gradient(left,hsla(0,0%,100%,0),#fff);background:linear-gradient(90deg,hsla(0,0%,100%,0),#fff)}.am-tabs-default-bar-bottom .am-tabs-default-bar-tab,.am-tabs-default-bar-top .am-tabs-default-bar-tab{padding:2.133333vw 0}.am-tabs-default-bar-bottom .am-tabs-default-bar-underline,.am-tabs-default-bar-top .am-tabs-default-bar-underline{bottom:0}.am-tabs-default-bar-top .am-tabs-default-bar-tab{border-bottom:1px solid #ddd}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-tabs-default-bar-top .am-tabs-default-bar-tab{border-bottom:none}html:not([data-scale]) .am-tabs-default-bar-top .am-tabs-default-bar-tab:after{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:auto;right:auto;bottom:0;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-tabs-default-bar-top .am-tabs-default-bar-tab:after{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.am-tabs-default-bar-bottom .am-tabs-default-bar-tab{border-top:1px solid #ddd}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-tabs-default-bar-bottom .am-tabs-default-bar-tab{border-top:none}html:not([data-scale]) .am-tabs-default-bar-bottom .am-tabs-default-bar-tab:before{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:0;right:auto;bottom:auto;left:0;width:100%;height:1PX;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-tabs-default-bar-bottom .am-tabs-default-bar-tab:before{-webkit-transform:scaleY(.33);transform:scaleY(.33)}}.am-tabs-default-bar-left,.am-tabs-default-bar-right{flex-direction:column}.am-tabs-default-bar-left .am-tabs-default-bar-content,.am-tabs-default-bar-right .am-tabs-default-bar-content{display:flex;height:100%;flex-direction:column}.am-tabs-default-bar-left .am-tabs-default-bar-tab,.am-tabs-default-bar-right .am-tabs-default-bar-tab{padding:0 2.133333vw}.am-tabs-default-bar-left .am-tabs-default-bar-underline{right:0}.am-tabs-default-bar-left .am-tabs-default-bar-tab{border-right:1px solid #ddd}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-tabs-default-bar-left .am-tabs-default-bar-tab{border-right:none}html:not([data-scale]) .am-tabs-default-bar-left .am-tabs-default-bar-tab:after{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:0;right:0;bottom:auto;left:auto;width:1PX;height:100%;background:#ddd;-webkit-transform-origin:100% 50%;transform-origin:100% 50%;-webkit-transform:scaleX(.5);transform:scaleX(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-tabs-default-bar-left .am-tabs-default-bar-tab:after{-webkit-transform:scaleX(.33);transform:scaleX(.33)}}.am-tabs-default-bar-right .am-tabs-default-bar-underline{left:0}.am-tabs-default-bar-right .am-tabs-default-bar-tab{border-left:1px solid #ddd}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){html:not([data-scale]) .am-tabs-default-bar-right .am-tabs-default-bar-tab{border-left:none}html:not([data-scale]) .am-tabs-default-bar-right .am-tabs-default-bar-tab:before{content:"";position:absolute;background-color:#ddd;display:block;z-index:1;top:0;right:auto;bottom:auto;left:0;width:1PX;height:100%;-webkit-transform-origin:100% 50%;transform-origin:100% 50%;-webkit-transform:scaleX(.5);transform:scaleX(.5)}}@media (-webkit-min-device-pixel-ratio:2) and (-webkit-min-device-pixel-ratio:3),(min-resolution:2dppx) and (min-resolution:3dppx){html:not([data-scale]) .am-tabs-default-bar-right .am-tabs-default-bar-tab:before{-webkit-transform:scaleX(.33);transform:scaleX(.33)}}.am-wingblank{margin-left:2.133333vw;margin-right:2.133333vw}.am-wingblank.am-wingblank-sm{margin-left:1.333333vw;margin-right:1.333333vw}.am-wingblank.am-wingblank-md{margin-left:2.133333vw;margin-right:2.133333vw}.am-wingblank.am-wingblank-lg{margin-left:4vw;margin-right:4vw}.am-indexed-list-section-body.am-list-body,.am-indexed-list-section-body.am-list-body .am-list-item:last-child .am-list-line{border-bottom:0}.am-indexed-list-section-body.am-list-body .am-list-item:last-child .am-list-line:after,.am-indexed-list-section-body.am-list-body:after{display:none!important}.am-indexed-list-section-header.am-list-body,.am-indexed-list-section-header.am-list-body .am-list-item .am-list-line{border-bottom:0}.am-indexed-list-section-header.am-list-body .am-list-item .am-list-line:after,.am-indexed-list-section-header.am-list-body:after{display:none!important}.am-indexed-list-section-header .am-list-item{height:8vw;min-height:8vw;background-color:#f5f5f9}.am-indexed-list-section-header .am-list-item .am-list-line{height:8vw;min-height:8vw}.am-indexed-list-section-header .am-list-item .am-list-content{font-size:3.733333vw!important;color:#888!important}.am-indexed-list-quick-search-bar{position:fixed;top:0;right:0;z-index:0;text-align:center;color:#108ee9;font-size:4.266667vw;list-style:none;padding:0}.am-indexed-list-quick-search-bar li{padding:0 1.333333vw}.am-indexed-list-quick-search-bar-over{background-color:rgba(0,0,0,.4)}.am-indexed-list-qsindicator{position:absolute;left:50%;top:50%;margin:-4vw auto auto -8vw;width:16vw;height:8vw;background:transparent;opacity:.7;color:#0af;font-size:5.333333vw;border-radius:8vw;z-index:1999;text-align:center;line-height:8vw}.am-indexed-list-qsindicator-hide{display:none}
/*# sourceMappingURL=24.62b6292a.chunk.css.map */
\ No newline at end of file
/*# sourceMappingURL=24.354507f6.chunk.css.map */
\ No newline at end of file
.bargain-middle-page{background:#f4f4f4;padding-bottom:13.333333vw}.bargain-middle-page .indicator{color:#fe2f2f}.bargain-middle-page .price{color:#ff3131}.bargain-middle-page .discount-price{color:#ff3131;font-size:4.266667vw;margin-right:3.733333vw}.bargain-middle-page .original-price{color:#999;font-size:3.2vw;text-decoration:line-through}.bargain-middle-page>.top{width:100%;padding:2.666667vw;background:#fe2f2f;margin-bottom:4.8vw}.bargain-middle-page>.top .purchase-btn{position:absolute;right:0;bottom:.533333vw;height:5.866667vw;padding:.8vw 1.066667vw;color:#fff;font-size:3.2vw;border:none;border-radius:2.933333vw;background:#ff3131;-webkit-appearance:none}.bargain-middle-page>.top .bargain-area{width:94.666667vw;background:#fff;border-radius:.8vw;margin-bottom:2.666667vw;padding-bottom:5.333333vw}.bargain-middle-page>.top .bargain-area .bargain-tip{width:100%;height:12vw;line-height:12vw;padding-left:2.666667vw;border-bottom:1px solid #e7eaf1;color:#ff3131;font-size:3.733333vw}.bargain-middle-page>.top .bargain-area .des{display:flex;flex-flow:column;justify-content:space-between;width:100%}.bargain-middle-page>.top .bargain-area .v-list-item{padding:4vw 1.866667vw 2.666667vw 2.666667vw}.bargain-middle-page>.top .bargain-area .v-list-item .cover{margin-right:2.666667vw}.bargain-middle-page>.top .bargain-area .v-list-item .cover img{width:33.333333vw;height:24vw}.bargain-middle-page>.top .bargain-area .v-list-item .content{border-bottom:1px solid #e7eaf1}.bargain-middle-page>.top .bargain-area .course-title{font-size:3.733333vw}.bargain-middle-page>.top .bargain-area .price-bar{position:relative}.bargain-middle-page>.top .bargain-area .bargain-detail{display:flex;flex-flow:column;padding:0 2.666667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .top{display:flex;justify-content:space-between;margin-bottom:1.866667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .top>div:first-child{font-size:4.266667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .reduced-price{color:#ff3131}.bargain-middle-page>.top .bargain-area .bargain-detail .time{display:inline-block;width:5.333333vw;height:4.8vw;background:#666;border-radius:.533333vw;text-align:center;line-height:4.8vw;font-size:3.2vw;color:#fff}.bargain-middle-page>.top .bargain-area .bargain-detail .sec{margin-right:1.6vw}.bargain-middle-page>.top .bargain-area .bargain-detail .inactive{color:#999}.bargain-middle-page>.top .bargain-area .bargain-detail .middle{position:relative;width:89.333333vw;height:2.133333vw;background:#e7e7e7;border-radius:1.066667vw;overflow:hidden;margin-bottom:1.866667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .middle span{position:absolute;left:0;top:0;display:inline-block;height:100%;background:#fadd29}.bargain-middle-page>.top .bargain-area .bargain-detail .bottom{font-size:3.733333vw;margin-bottom:1.866667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .button{display:flex;justify-content:center;margin-top:2.666667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .artifact-btn{float:right;position:relative;top:-5.333333vw;width:16.266667vw;height:6.4vw;background:#ff4000;border-radius:3.2vw;font-size:3.2vw;border:none;color:#fff}.bargain-middle-page>.top .bargain-area .bargain-detail .active-btn{width:56vw;height:8vw;box-shadow:0 1px .8vw 0 rgba(255,64,0,.5);background:#fadd29;border-radius:4vw;border:none;color:#ff3131;-webkit-appearance:none;font-size:4.266667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .invalid-btn{width:56vw;height:8vw;background:#999;color:#fff;font-size:4.266667vw;box-shadow:none;border-radius:4vw;border:none}.bargain-middle-page .bargain-records{width:94.666667vw;height:62.933333vw;background:#fff9ec;border-radius:.8vw}.bargain-middle-page .bargain-records .title{height:11.733333vw;line-height:11.733333vw;font-size:4.266667vw;text-align:center;border-bottom:1px solid #ddd}.bargain-middle-page .bargain-records ul{padding:0 2.666667vw}.bargain-middle-page .bargain-records ul li{display:flex;align-items:center;justify-content:space-between;height:13.333333vw;border-bottom:1px solid #ddd}.bargain-middle-page .bargain-records ul li .left,.bargain-middle-page .bargain-records ul li .right{display:flex;align-items:center}.bargain-middle-page .bargain-records ul li .avatar{width:8vw;height:8vw;border-radius:50%;margin-right:2.933333vw}.bargain-middle-page .bargain-records ul li .nickname{margin-right:2.666667vw;font-size:3.733333vw;max-width:34.666667vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bargain-middle-page .bargain-records ul li .rank-tag{padding:.533333vw 1.333333vw;background:#fe2f2f;color:#fff;font-size:3.2vw;flex:0 0 auto;border-radius:.533333vw}.bargain-middle-page .bargain-records .more{color:#555;font-size:3.733333vw;text-align:center;line-height:10.666667vw}.bargain-middle-page .bargain-course-list{background:#fff;padding:4vw}.bargain-middle-page .bargain-course-list ul{display:flex;flex-wrap:wrap}.bargain-middle-page .bargain-course-list ul li:nth-child(odd){margin-right:4vw}.bargain-middle-page .bargain-course-list .title-wrapper{text-align:center}.bargain-middle-page .bargain-course-list .title-wrapper .title{font-size:4.266667vw;margin-bottom:2.666667vw}.bargain-middle-page .bargain-course-list .title-wrapper .subtitle{font-size:3.733333vw;color:#ff4000}.bargain-middle-page .bargain-course-list .course-title{margin-bottom:2.666667vw;min-height:10.133333vw}.bargain-middle-page .bargain-course-list .course-price{margin-bottom:2.666667vw}.bargain-middle-page .bargain-course-list .bargain{width:44vw;height:8vw;background:#077fd0;border-radius:.533333vw;border:none;color:#fff;-webkit-appearance:none;display:inline-block;text-align:center;line-height:8vw}.bargain-middle-page .bargain-course-list .btns{display:flex;justify-content:space-between}.bargain-middle-page .bargain-course-list .btns .bargain-btn{width:21.333333vw;height:8vw;background:#fadd29;text-align:center;line-height:7.466667vw;border:none;color:#ff4000;-webkit-appearance:none}.bargain-middle-page .bargain-course-list .btns .invalid{width:21.333333vw;height:8vw;background:#999;color:#fff;border:none;-webkit-appearance:none;border-radius:.533333vw}.bargain-middle-page .bargain-course-list .btns .purchase-btn{width:21.333333vw;height:8vw;background:#ff4000;color:#fff;border-radius:.533333vw;border:none;-webkit-appearance:none}.bargain-middle-page .preferential{display:inline-block;width:100%;height:12.266667vw;line-height:12.266667vw;font-size:4.266667vw;color:#555;text-align:center}.bargain-middle-page .kanjia-icon{width:5.333333vw;height:5.333333vw;margin-right:1.333333vw;vertical-align:middle}.bargain-first,.bargain-public-number,.bargain-second,.not-bargain{width:80vw;padding:5.333333vw 0;background-color:#fff;border-radius:.8vw;text-align:center;margin:53.333333vw auto 5.333333vw;position:relative}.bargain-first .ff4,.bargain-public-number .ff4,.bargain-second .ff4,.not-bargain .ff4{color:#ff4000}.bargain-first .status-title,.bargain-public-number .status-title,.bargain-second .status-title,.not-bargain .status-title{font-size:4.266667vw;height:4.266667vw;line-height:4.266667vw}.bargain-first .status-dec,.bargain-public-number .status-dec,.bargain-second .status-dec,.not-bargain .status-dec{font-size:3.2vw;color:#666;height:3.2vw;line-height:3.2vw}.bargain-first .bargain-href,.bargain-public-number .bargain-href,.bargain-second .bargain-href,.not-bargain .bargain-href{display:inline-block;width:69.333333vw;height:8vw;line-height:7.466667vw;background-color:#fadd29;color:#ff4000;font-size:4.266667vw;border:none;position:absolute;bottom:5.333333vw;left:5.333333vw}.bargain-first .top-img,.bargain-public-number .top-img,.bargain-second .top-img,.not-bargain .top-img{position:absolute;width:36vw;height:17.866667vw;top:-17.866667vw;margin-left:-17.866667vw}.bargain-public-number{height:49.333333vw}.bargain-public-number .avait{position:absolute;top:-5.333333vw;margin-left:-5.333333vw;width:10.666667vw;height:10.666667vw;border-radius:50%}.bargain-public-number .status-dec,.bargain-public-number .status-title{margin-top:2.666667vw}.bargain-public-number .public-number-img{width:22.933333vw;height:22.933333vw;margin-top:4vw}.bargain-first{height:38.666667vw}.bargain-first .status-dec{margin-top:4vw}.bargain-second{height:28vw}.not-bargain{height:54.666667vw;padding:4vw 5.333333vw 5.333333vw}.not-bargain .middle-img{width:13.6vw;height:13.6vw}.not-bargain .status-title{height:9.866667vw;line-height:5.333333vw;font-size:4vw;margin-top:2.666667vw}.not-bargain .status-dec{margin-top:4vw}.artifact-box,.use-artifact-box{padding:5.333333vw 0;background-color:#fff;border-radius:.8vw;text-align:center;margin:53.333333vw auto 5.333333vw;position:relative}.artifact-box .top-img,.use-artifact-box .top-img{position:absolute;width:36vw;height:17.866667vw;top:-17.866667vw;margin-left:-17.866667vw}.artifact-box .top-tip,.use-artifact-box .top-tip{font-size:4.266667vw;color:#333;height:4.266667vw;line-height:4.266667vw}.artifact-box .middle-tip,.use-artifact-box .middle-tip{font-size:3.733333vw;color:#333;height:3.733333vw;line-height:3.733333vw;margin-top:4vw}.artifact-box .btm-tip,.use-artifact-box .btm-tip{font-size:3.733333vw;color:#666;height:3.733333vw;line-height:3.733333vw;margin-top:2.666667vw}.artifact-box .use-artifact,.use-artifact-box .use-artifact{background-color:#fff;width:22.4vw;height:6.4vw;font-size:3.733333vw;border:1px solid #ff3131;border-radius:3.2vw;margin:5.333333vw auto 0;color:#ff3131}.artifact-box .tubuy,.use-artifact-box .tubuy{display:inline-block;margin-top:4.533333vw;width:21.6vw;height:6.4vw;background-color:#ff3131;border-radius:3.2vw;font-size:4.266667vw;color:#fff;border:none}.artifact-box .indicator,.use-artifact-box .indicator{color:#fe2f2f}.artifact-box{width:80vw;height:34.666667vw}.use-artifact-box{width:80vw;height:39.466667vw}.use-artifact-box .middle-tip{color:#666}.close-bargain-success{position:fixed;top:0;left:0;right:0;bottom:0}.bargain-success{width:77.333333vw;height:29.066667vw;padding:4vw;background:#fff;border-radius:1.333333vw;text-align:center;margin:26.666667vw auto 5.333333vw;position:relative}.bargain-success p:nth-of-type(2){font-size:3.733333vw;margin-top:2.666667vw}.bargain-success p:first-of-type{font-size:3.2vw;margin-top:2.666667vw}.bargain-success .indicator{color:#fe2f2f}.bargain-success .iconyindao{display:inline-block;width:16vw;height:11.733333vw;position:absolute;top:-16vw;right:0;color:#fff;font-size:10.666667vw}.bargain-success .moreMbc{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:2}.bargain-success .moreMbc .content{width:80vw;height:90.666667vw;background-color:#fff;border-radius:.8vw;margin:34.666667vw auto 5.333333vw;position:relative}.bargain-success .moreMbc .content .title-box{width:100%;height:12vw;text-align:center;color:#202426;font-size:4.266667vw;line-height:12vw}.bargain-success .moreMbc .content .more-bargain-list{width:100%;height:67.466667vw;overflow:auto;border-top:1px solid #e7eaf1;padding:0 4vw;background-color:#f5f5f5}.bargain-success .moreMbc .content .more-bargain-list .bargain-item{border-bottom:1px solid #e7eaf1;height:13.333333vw;display:flex;position:relative}.bargain-success .moreMbc .content .more-bargain-list .bargain-item .avatar{width:8vw;height:8vw;border-radius:50%;margin-top:2.666667vw;margin-right:2.666667vw}.bargain-success .moreMbc .content .more-bargain-list .bargain-item .name{font-size:3.733333vw;color:#333;max-width:34.666667vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:13.333333vw}.bargain-success .moreMbc .content .more-bargain-list .bargain-item .bargain-status{line-height:13.333333vw;color:#333;font-size:3.733333vw;position:absolute;right:0}.bargain-success .moreMbc .more-bargain-dec{width:100%;position:absolute;bottom:0;height:11.2vw;font-size:3.2vw;color:#ff4000;text-align:center;line-height:11.2vw}.bargain-success .moreMbc .close{color:#fff;font-size:5.866667vw;position:relative;left:50%;margin-left:-2.933333vw}.ranking-box .moreMbc{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:2}.ranking-box .moreMbc .content{width:80vw;height:90.666667vw;background-color:#fff;border-radius:.8vw;margin:34.666667vw auto 5.333333vw;position:relative}.ranking-box .moreMbc .content .title-box{width:100%;height:12vw;text-align:center;color:#202426;font-size:4.266667vw;line-height:12vw}.ranking-box .moreMbc .content .more-bargain-list{width:100%;height:67.466667vw;overflow:auto;border-top:1px solid #e7eaf1;padding:0 4vw;background-color:#f5f5f5}.ranking-box .moreMbc .content .more-bargain-list .bargain-item{border-bottom:1px solid #e7eaf1;height:13.333333vw;display:flex;position:relative}.ranking-box .moreMbc .content .more-bargain-list .bargain-item .avatar{width:8vw;height:8vw;border-radius:50%;margin-top:2.666667vw;margin-right:2.666667vw}.ranking-box .moreMbc .content .more-bargain-list .bargain-item .name{font-size:3.733333vw;color:#333;max-width:34.666667vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:13.333333vw}.ranking-box .moreMbc .content .more-bargain-list .bargain-item .bargain-status{line-height:13.333333vw;color:#333;font-size:3.733333vw;position:absolute;right:0}.ranking-box .moreMbc .more-bargain-dec{width:100%;position:absolute;bottom:0;height:11.2vw;font-size:3.2vw;color:#ff4000;text-align:center;line-height:11.2vw}.ranking-box .moreMbc .close{color:#fff;font-size:5.866667vw;position:relative;left:50%;margin-left:-2.933333vw}.ranking-box .kanjia-icon{width:5.333333vw;height:5.333333vw;margin-right:1.333333vw;vertical-align:middle}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);z-index:999}
/*# sourceMappingURL=BargainMiddlePage.5654b0f2.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/wangshuo/mr-julyedu/src/components/bargainMiddlePage/bargain-middle-page.scss","/Users/wangshuo/mr-julyedu/src/components/bargainMiddlePage/ranking/index.scss","/Users/wangshuo/mr-julyedu/src/components/detail/overlay/overlay.scss"],"names":[],"mappings":"AAmGA,qBACE,kBAAA,CACA,0BAAoB,CAFtB,gCAMI,aAxFkB,CAkFtB,4BAUI,aAtGc,CA4FlB,qCAcI,aAAA,CACA,oBAAA,CACA,uBAAkB,CAh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A,kBAAA,CACA,uBAAiB,CAzD7B,gFA6DY,uBAAA,CACA,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,OAAQ,CAjEpB,wCA0EM,UAAA,CACA,iBAAA,CACA,QAAA,CACA,aAAA,CACA,eAAA,CACA,aAAA,CACA,iBAAA,CACA,kBAAiB,CAjFvB,6BAsFM,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,QAAA,CACA,uBAAkB,CA1FxB,0BA+FI,gBAAA,CACA,iBAAA,CACA,uBAAA,CACA,qBAAsB,CClG1B,SACI,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,yBAAA,CACA,WAAY","file":"BargainMiddlePage.5654b0f2.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.bargain-middle-page {\n background: #f4f4f4;\n padding-bottom: 50px; }\n .bargain-middle-page .indicator {\n color: #FE2F2F; }\n .bargain-middle-page .price {\n color: #ff3131; }\n .bargain-middle-page .discount-price {\n color: #ff3131;\n font-size: 16px;\n margin-right: 14px; }\n .bargain-middle-page .original-price {\n color: #999;\n font-size: 12px;\n text-decoration: line-through; }\n .bargain-middle-page > .top {\n width: 100%;\n padding: 10px;\n background: #FE2F2F;\n margin-bottom: 18px; }\n .bargain-middle-page > .top .purchase-btn {\n position: absolute;\n right: 0;\n bottom: 2px;\n height: 22px;\n padding: 3px 4px;\n color: #fff;\n font-size: 12px;\n border: none;\n border-radius: 11px;\n background: #ff3131;\n -webkit-appearance: none; }\n .bargain-middle-page > .top .bargain-area {\n width: 355px;\n background: #fff;\n border-radius: 3px;\n margin-bottom: 10px;\n padding-bottom: 20px; }\n .bargain-middle-page > .top .bargain-area .bargain-tip {\n width: 100%;\n height: 45px;\n line-height: 45px;\n padding-left: 10px;\n border-bottom: 1px solid #e7eaf1;\n color: #ff3131;\n font-size: 14px; }\n .bargain-middle-page > .top .bargain-area .des {\n display: flex;\n flex-flow: column;\n justify-content: space-between;\n width: 100%; }\n .bargain-middle-page > .top .bargain-area .v-list-item {\n padding: 15px 7px 10px 10px; }\n .bargain-middle-page > .top .bargain-area .v-list-item .cover {\n margin-right: 10px; }\n .bargain-middle-page > .top .bargain-area .v-list-item .cover img {\n width: 125px;\n height: 90px; }\n .bargain-middle-page > .top .bargain-area .v-list-item .content {\n border-bottom: 1px solid #E7EAF1; }\n .bargain-middle-page > .top .bargain-area .course-title {\n font-size: 14px; }\n .bargain-middle-page > .top .bargain-area .price-bar {\n position: relative; }\n .bargain-middle-page > .top .bargain-area .bargain-detail {\n display: flex;\n flex-flow: column;\n padding: 0 10px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .top {\n display: flex;\n justify-content: space-between;\n margin-bottom: 7px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .top > div:nth-child(1) {\n font-size: 16px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .reduced-price {\n color: #ff3131; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .time {\n display: inline-block;\n width: 20px;\n height: 18px;\n background: #666;\n border-radius: 2px;\n text-align: center;\n line-height: 18px;\n font-size: 12px;\n color: #fff; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .sec {\n margin-right: 6px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .inactive {\n color: #999; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .middle {\n position: relative;\n width: 335px;\n height: 8px;\n background: #E7E7E7;\n border-radius: 4px;\n overflow: hidden;\n margin-bottom: 7px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .middle span {\n position: absolute;\n left: 0;\n top: 0;\n display: inline-block;\n height: 100%;\n background: #FADD29; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .bottom {\n font-size: 14px;\n margin-bottom: 7px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .button {\n display: flex;\n justify-content: center;\n margin-top: 10px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .artifact-btn {\n float: right;\n position: relative;\n top: -20px;\n width: 61px;\n height: 24px;\n background: #FF4000;\n border-radius: 12px;\n font-size: 12px;\n border: none;\n color: #fff; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .active-btn {\n width: 210px;\n height: 30px;\n box-shadow: 0px 1px 3px 0px rgba(255, 64, 0, 0.5);\n background: #FADD29;\n border-radius: 15px;\n border: none;\n color: #ff3131;\n -webkit-appearance: none;\n font-size: 16px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .invalid-btn {\n width: 210px;\n height: 30px;\n background: #999;\n color: #fff;\n font-size: 16px;\n box-shadow: none;\n border-radius: 15px;\n border: none; }\n .bargain-middle-page .bargain-records {\n width: 355px;\n height: 236px;\n background: #FFF9EC;\n border-radius: 3px; }\n .bargain-middle-page .bargain-records .title {\n height: 44px;\n line-height: 44px;\n font-size: 16px;\n border-bottom: #ddd;\n text-align: center;\n border-bottom: 1px solid #ddd; }\n .bargain-middle-page .bargain-records ul {\n padding: 0 10px; }\n .bargain-middle-page .bargain-records ul li {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 50px;\n border-bottom: 1px solid #ddd; }\n .bargain-middle-page .bargain-records ul li .left, .bargain-middle-page .bargain-records ul li .right {\n display: flex;\n align-items: center; }\n .bargain-middle-page .bargain-records ul li .avatar {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n margin-right: 11px; }\n .bargain-middle-page .bargain-records ul li .nickname {\n margin-right: 10px;\n font-size: 14px;\n max-width: 130px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n .bargain-middle-page .bargain-records ul li .rank-tag {\n padding: 2px 5px;\n background: #FE2F2F;\n color: #fff;\n font-size: 12px;\n flex: 0 0 auto;\n border-radius: 2px; }\n .bargain-middle-page .bargain-records .more {\n color: #555;\n font-size: 14px;\n text-align: center;\n line-height: 40px; }\n .bargain-middle-page .bargain-course-list {\n background: #fff;\n padding: 15px; }\n .bargain-middle-page .bargain-course-list ul {\n display: flex;\n flex-wrap: wrap; }\n .bargain-middle-page .bargain-course-list ul li:nth-child(odd) {\n margin-right: 15px; }\n .bargain-middle-page .bargain-course-list .title-wrapper {\n text-align: center; }\n .bargain-middle-page .bargain-course-list .title-wrapper .title {\n font-size: 16px;\n margin-bottom: 10px; }\n .bargain-middle-page .bargain-course-list .title-wrapper .subtitle {\n font-size: 14px;\n color: #FF4000; }\n .bargain-middle-page .bargain-course-list .course-title {\n margin-bottom: 10px;\n min-height: 38px; }\n .bargain-middle-page .bargain-course-list .course-price {\n margin-bottom: 10px; }\n .bargain-middle-page .bargain-course-list .bargain {\n width: 165px;\n height: 30px;\n background: #077FD0;\n border-radius: 2px;\n border: none;\n color: #fff;\n -webkit-appearance: none;\n display: inline-block;\n text-align: center;\n line-height: 30px; }\n .bargain-middle-page .bargain-course-list .btns {\n display: flex;\n justify-content: space-between; }\n .bargain-middle-page .bargain-course-list .btns .bargain-btn {\n width: 80px;\n height: 30px;\n background: #FADD29;\n text-align: center;\n line-height: 28px;\n border: none;\n color: #FF4000;\n -webkit-appearance: none; }\n .bargain-middle-page .bargain-course-list .btns .invalid {\n width: 80px;\n height: 30px;\n background: #999;\n color: #fff;\n border: none;\n -webkit-appearance: none;\n border-radius: 2px; }\n .bargain-middle-page .bargain-course-list .btns .purchase-btn {\n width: 80px;\n height: 30px;\n background: #FF4000;\n color: #fff;\n border-radius: 2px;\n border: none;\n -webkit-appearance: none; }\n .bargain-middle-page .preferential {\n display: inline-block;\n width: 100%;\n height: 46px;\n line-height: 46px;\n font-size: 16px;\n color: #555;\n text-align: center; }\n .bargain-middle-page .kanjia-icon {\n width: 20px;\n height: 20px;\n margin-right: 5px;\n vertical-align: middle; }\n\n.bargain-public-number, .bargain-first, .bargain-second, .not-bargain {\n width: 300px;\n padding: 20px 0;\n background-color: #fff;\n border-radius: 3px;\n text-align: center;\n margin: 200px auto 20px auto;\n position: relative; }\n .bargain-public-number .ff4, .bargain-first .ff4, .bargain-second .ff4, .not-bargain .ff4 {\n color: #FF4000; }\n .bargain-public-number .status-title, .bargain-first .status-title, .bargain-second .status-title, .not-bargain .status-title {\n font-size: 16px;\n height: 16px;\n line-height: 16px; }\n .bargain-public-number .status-dec, .bargain-first .status-dec, .bargain-second .status-dec, .not-bargain .status-dec {\n font-size: 12px;\n color: #666;\n height: 12px;\n line-height: 12px; }\n .bargain-public-number .bargain-href, .bargain-first .bargain-href, .bargain-second .bargain-href, .not-bargain .bargain-href {\n display: inline-block;\n width: 260px;\n height: 30px;\n line-height: 28px;\n background-color: #FADD29;\n color: #FF4000;\n font-size: 16px;\n border: none;\n position: absolute;\n bottom: 20px;\n left: 20px; }\n .bargain-public-number .top-img, .bargain-first .top-img, .bargain-second .top-img, .not-bargain .top-img {\n position: absolute;\n width: 135px;\n height: 67px;\n top: -67px;\n margin-left: -67px; }\n\n.bargain-public-number {\n height: 185px; }\n .bargain-public-number .avait {\n position: absolute;\n top: -20px;\n margin-left: -20px;\n width: 40px;\n height: 40px;\n border-radius: 50%; }\n .bargain-public-number .status-title {\n margin-top: 10px; }\n .bargain-public-number .status-dec {\n margin-top: 10px; }\n .bargain-public-number .public-number-img {\n width: 86px;\n height: 86px;\n margin-top: 15px; }\n\n.bargain-first {\n height: 145px; }\n .bargain-first .status-dec {\n margin-top: 15px; }\n\n.bargain-second {\n height: 105px; }\n\n.not-bargain {\n height: 205px;\n padding: 15px 20px 20px 20px; }\n .not-bargain .middle-img {\n width: 51px;\n height: 51px; }\n .not-bargain .status-title {\n height: 37px;\n line-height: 20px;\n font-size: 15px;\n margin-top: 10px; }\n .not-bargain .status-dec {\n margin-top: 15px; }\n\n.artifact-box, .use-artifact-box {\n padding: 20px 0;\n background-color: #fff;\n border-radius: 3px;\n text-align: center;\n margin: 200px auto 20px auto;\n position: relative; }\n .artifact-box .top-img, .use-artifact-box .top-img {\n position: absolute;\n width: 135px;\n height: 67px;\n top: -67px;\n margin-left: -67px; }\n .artifact-box .top-tip, .use-artifact-box .top-tip {\n font-size: 16px;\n color: #333;\n height: 16px;\n line-height: 16px; }\n .artifact-box .middle-tip, .use-artifact-box .middle-tip {\n font-size: 14px;\n color: #333;\n height: 14px;\n line-height: 14px;\n margin-top: 15px; }\n .artifact-box .btm-tip, .use-artifact-box .btm-tip {\n font-size: 14px;\n color: #666;\n height: 14px;\n line-height: 14px;\n margin-top: 10px; }\n .artifact-box .use-artifact, .use-artifact-box .use-artifact {\n background-color: #fff;\n width: 84px;\n height: 24px;\n font-size: 14px;\n border: 1px solid #ff3131;\n border-radius: 12px;\n margin: 20px auto 0 auto;\n color: #ff3131; }\n .artifact-box .tubuy, .use-artifact-box .tubuy {\n display: inline-block;\n margin-top: 17px;\n width: 81px;\n height: 24px;\n background-color: #ff3131;\n border-radius: 12px;\n font-size: 16px;\n color: #fff;\n border: none; }\n .artifact-box .indicator, .use-artifact-box .indicator {\n color: #FE2F2F; }\n\n.artifact-box {\n width: 300px;\n height: 130px; }\n\n.use-artifact-box {\n width: 300px;\n height: 148px; }\n .use-artifact-box .middle-tip {\n color: #666; }\n\n.close-bargain-success {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n\n.bargain-success {\n width: 290px;\n height: 109px;\n padding: 15px;\n background: #fff;\n border-radius: 5px;\n text-align: center;\n margin: 100px auto 20px auto;\n position: relative; }\n .bargain-success p:nth-of-type(2) {\n font-size: 14px;\n margin-top: 10px; }\n .bargain-success p:nth-of-type(1) {\n font-size: 12px;\n margin-top: 10px; }\n .bargain-success .indicator {\n color: #FE2F2F; }\n .bargain-success .iconyindao {\n display: inline-block;\n width: 60px;\n height: 44px;\n position: absolute;\n top: -60px;\n right: 0;\n color: #fff;\n font-size: 40px; }\n .bargain-success .moreMbc {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 2; }\n .bargain-success .moreMbc .content {\n width: 300px;\n height: 340px;\n background-color: #fff;\n border-radius: 3px;\n margin: 130px auto 20px auto;\n position: relative; }\n .bargain-success .moreMbc .content .title-box {\n width: 100%;\n height: 45px;\n text-align: center;\n color: #202426;\n font-size: 16px;\n line-height: 45px; }\n .bargain-success .moreMbc .content .more-bargain-list {\n width: 100%;\n height: 253px;\n overflow: auto;\n border-top: 1px solid #e7eaf1;\n padding: 0 15px;\n background-color: #f5f5f5; }\n .bargain-success .moreMbc .content .more-bargain-list .bargain-item {\n border-bottom: 1px solid #e7eaf1;\n height: 50px;\n display: flex;\n position: relative; }\n .bargain-success .moreMbc .content .more-bargain-list .bargain-item .avatar {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n margin-top: 10px;\n margin-right: 10px; }\n .bargain-success .moreMbc .content .more-bargain-list .bargain-item .name {\n font-size: 14px;\n color: #333;\n max-width: 130px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 50px; }\n .bargain-success .moreMbc .content .more-bargain-list .bargain-item .bargain-status {\n line-height: 50px;\n color: #333;\n font-size: 14px;\n position: absolute;\n right: 0; }\n .bargain-success .moreMbc .more-bargain-dec {\n width: 100%;\n position: absolute;\n bottom: 0;\n height: 42px;\n font-size: 12px;\n color: #FF4000;\n text-align: center;\n line-height: 42px; }\n .bargain-success .moreMbc .close {\n color: #fff;\n font-size: 22px;\n position: relative;\n left: 50%;\n margin-left: -11px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.ranking-box .moreMbc {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 2; }\n .ranking-box .moreMbc .content {\n width: 300px;\n height: 340px;\n background-color: #fff;\n border-radius: 3px;\n margin: 130px auto 20px auto;\n position: relative; }\n .ranking-box .moreMbc .content .title-box {\n width: 100%;\n height: 45px;\n text-align: center;\n color: #202426;\n font-size: 16px;\n line-height: 45px; }\n .ranking-box .moreMbc .content .more-bargain-list {\n width: 100%;\n height: 253px;\n overflow: auto;\n border-top: 1px solid #e7eaf1;\n padding: 0 15px;\n background-color: #f5f5f5; }\n .ranking-box .moreMbc .content .more-bargain-list .bargain-item {\n border-bottom: 1px solid #e7eaf1;\n height: 50px;\n display: flex;\n position: relative; }\n .ranking-box .moreMbc .content .more-bargain-list .bargain-item .avatar {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n margin-top: 10px;\n margin-right: 10px; }\n .ranking-box .moreMbc .content .more-bargain-list .bargain-item .name {\n font-size: 14px;\n color: #333;\n max-width: 130px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 50px; }\n .ranking-box .moreMbc .content .more-bargain-list .bargain-item .bargain-status {\n line-height: 50px;\n color: #333;\n font-size: 14px;\n position: absolute;\n right: 0; }\n .ranking-box .moreMbc .more-bargain-dec {\n width: 100%;\n position: absolute;\n bottom: 0;\n height: 42px;\n font-size: 12px;\n color: #FF4000;\n text-align: center;\n line-height: 42px; }\n .ranking-box .moreMbc .close {\n color: #fff;\n font-size: 22px;\n position: relative;\n left: 50%;\n margin-left: -11px; }\n\n.ranking-box .kanjia-icon {\n width: 20px;\n height: 20px;\n margin-right: 5px;\n vertical-align: middle; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 999; }\n"]}
\ No newline at end of file
.bargain-middle-page{background:#f4f4f4;padding-bottom:13.333333vw}.bargain-middle-page .indicator{color:#fe2f2f}.bargain-middle-page .price{color:#ff3131}.bargain-middle-page .discount-price{color:#ff3131;font-size:4.266667vw;margin-right:3.733333vw}.bargain-middle-page .original-price{color:#999;font-size:3.2vw;text-decoration:line-through}.bargain-middle-page>.top{width:100%;padding:2.666667vw;background:#fe2f2f;margin-bottom:4.8vw}.bargain-middle-page>.top .purchase-btn{position:absolute;right:0;bottom:.533333vw;height:5.866667vw;padding:.8vw 1.066667vw;color:#fff;font-size:3.2vw;border:none;border-radius:2.933333vw;background:#ff3131;-webkit-appearance:none}.bargain-middle-page>.top .bargain-area{width:94.666667vw;background:#fff;border-radius:.8vw;margin-bottom:2.666667vw;padding-bottom:5.333333vw}.bargain-middle-page>.top .bargain-area .bargain-tip{width:100%;height:12vw;line-height:12vw;padding-left:2.666667vw;border-bottom:1px solid #e7eaf1;color:#ff3131;font-size:3.733333vw}.bargain-middle-page>.top .bargain-area .des{display:flex;flex-flow:column;justify-content:space-between;width:100%}.bargain-middle-page>.top .bargain-area .v-list-item{padding:4vw 1.866667vw 2.666667vw 2.666667vw}.bargain-middle-page>.top .bargain-area .v-list-item .cover{margin-right:2.666667vw}.bargain-middle-page>.top .bargain-area .v-list-item .cover img{width:33.333333vw;height:24vw}.bargain-middle-page>.top .bargain-area .v-list-item .content{border-bottom:1px solid #e7eaf1}.bargain-middle-page>.top .bargain-area .course-title{font-size:3.733333vw}.bargain-middle-page>.top .bargain-area .price-bar{position:relative}.bargain-middle-page>.top .bargain-area .bargain-detail{display:flex;flex-flow:column;padding:0 2.666667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .top{display:flex;justify-content:space-between;margin-bottom:1.866667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .top>div:first-child{font-size:4.266667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .reduced-price{color:#ff3131}.bargain-middle-page>.top .bargain-area .bargain-detail .time{display:inline-block;width:5.333333vw;height:4.8vw;background:#666;border-radius:.533333vw;text-align:center;line-height:4.8vw;font-size:3.2vw;color:#fff}.bargain-middle-page>.top .bargain-area .bargain-detail .sec{margin-right:1.6vw}.bargain-middle-page>.top .bargain-area .bargain-detail .inactive{color:#999}.bargain-middle-page>.top .bargain-area .bargain-detail .middle{position:relative;width:89.333333vw;height:2.133333vw;background:#e7e7e7;border-radius:1.066667vw;overflow:hidden;margin-bottom:1.866667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .middle span{position:absolute;left:0;top:0;display:inline-block;height:100%;background:#fadd29}.bargain-middle-page>.top .bargain-area .bargain-detail .bottom{font-size:3.733333vw;margin-bottom:1.866667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .button{display:flex;justify-content:center;margin-top:2.666667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .artifact-btn{float:right;position:relative;top:-5.333333vw;width:16.266667vw;height:6.4vw;background:#ff4000;border-radius:3.2vw;font-size:3.2vw;border:none;color:#fff}.bargain-middle-page>.top .bargain-area .bargain-detail .active-btn{width:56vw;height:8vw;box-shadow:0 1px .8vw 0 rgba(255,64,0,.5);background:#fadd29;border-radius:4vw;border:none;color:#ff3131;-webkit-appearance:none;font-size:4.266667vw}.bargain-middle-page>.top .bargain-area .bargain-detail .invalid-btn{width:56vw;height:8vw;background:#999;color:#fff;font-size:4.266667vw;box-shadow:none;border-radius:4vw;border:none}.bargain-middle-page .bargain-records{width:94.666667vw;height:62.933333vw;background:#fff9ec;border-radius:.8vw}.bargain-middle-page .bargain-records .title{height:11.733333vw;line-height:11.733333vw;font-size:4.266667vw;text-align:center;border-bottom:1px solid #ddd}.bargain-middle-page .bargain-records ul{padding:0 2.666667vw}.bargain-middle-page .bargain-records ul li{display:flex;align-items:center;justify-content:space-between;height:13.333333vw;border-bottom:1px solid #ddd}.bargain-middle-page .bargain-records ul li .left,.bargain-middle-page .bargain-records ul li .right{display:flex;align-items:center}.bargain-middle-page .bargain-records ul li .avatar{width:8vw;height:8vw;border-radius:50%;margin-right:2.933333vw}.bargain-middle-page .bargain-records ul li .nickname{margin-right:2.666667vw;font-size:3.733333vw;max-width:34.666667vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bargain-middle-page .bargain-records ul li .rank-tag{padding:.533333vw 1.333333vw;background:#fe2f2f;color:#fff;font-size:3.2vw;flex:0 0 auto;border-radius:.533333vw}.bargain-middle-page .bargain-records .more{color:#555;font-size:3.733333vw;text-align:center;line-height:10.666667vw}.bargain-middle-page .bargain-course-list{background:#fff;padding:4vw}.bargain-middle-page .bargain-course-list ul{display:flex;flex-wrap:wrap}.bargain-middle-page .bargain-course-list ul li:nth-child(odd){margin-right:4vw}.bargain-middle-page .bargain-course-list .title-wrapper{text-align:center}.bargain-middle-page .bargain-course-list .title-wrapper .title{font-size:4.266667vw;margin-bottom:2.666667vw}.bargain-middle-page .bargain-course-list .title-wrapper .subtitle{font-size:3.733333vw;color:#ff4000}.bargain-middle-page .bargain-course-list .course-title{margin-bottom:2.666667vw;min-height:10.133333vw}.bargain-middle-page .bargain-course-list .course-price{margin-bottom:2.666667vw}.bargain-middle-page .bargain-course-list .bargain{width:44vw;height:8vw;background:#fadd29;border-radius:.533333vw;border:none;color:#ff4000;-webkit-appearance:none;display:inline-block;text-align:center;line-height:8vw}.bargain-middle-page .bargain-course-list .button--study{color:#fff;background:#077fd0}.bargain-middle-page .bargain-course-list .btns{display:flex;justify-content:space-between}.bargain-middle-page .bargain-course-list .btns .bargain-btn{width:21.333333vw;height:8vw;background:#fadd29;text-align:center;line-height:7.466667vw;border:none;color:#ff4000;-webkit-appearance:none}.bargain-middle-page .bargain-course-list .btns .invalid{width:21.333333vw;height:8vw;background:#999;color:#fff;border:none;-webkit-appearance:none;border-radius:.533333vw}.bargain-middle-page .bargain-course-list .btns .purchase-btn{width:21.333333vw;height:8vw;background:#ff4000;color:#fff;border-radius:.533333vw;border:none;-webkit-appearance:none}.bargain-middle-page .preferential{display:inline-block;width:100%;height:12.266667vw;line-height:12.266667vw;font-size:4.266667vw;color:#555;text-align:center}.bargain-middle-page .kanjia-icon{width:5.333333vw;height:5.333333vw;margin-right:1.333333vw;vertical-align:middle}.bargain-first,.bargain-public-number,.bargain-second,.not-bargain{width:80vw;padding:5.333333vw 0;background-color:#fff;border-radius:.8vw;text-align:center;margin:53.333333vw auto 5.333333vw;position:relative}.bargain-first .ff4,.bargain-public-number .ff4,.bargain-second .ff4,.not-bargain .ff4{color:#ff4000}.bargain-first .status-title,.bargain-public-number .status-title,.bargain-second .status-title,.not-bargain .status-title{font-size:4.266667vw;height:4.266667vw;line-height:4.266667vw}.bargain-first .status-dec,.bargain-public-number .status-dec,.bargain-second .status-dec,.not-bargain .status-dec{font-size:3.2vw;color:#666;height:3.2vw;line-height:3.2vw}.bargain-first .bargain-href,.bargain-public-number .bargain-href,.bargain-second .bargain-href,.not-bargain .bargain-href{display:inline-block;width:69.333333vw;height:8vw;line-height:7.466667vw;background-color:#fadd29;color:#ff4000;font-size:4.266667vw;border:none;position:absolute;bottom:5.333333vw;left:5.333333vw}.bargain-first .top-img,.bargain-public-number .top-img,.bargain-second .top-img,.not-bargain .top-img{position:absolute;width:36vw;height:17.866667vw;top:-17.866667vw;margin-left:-17.866667vw}.bargain-public-number{height:49.333333vw}.bargain-public-number .avait{position:absolute;top:-5.333333vw;margin-left:-5.333333vw;width:10.666667vw;height:10.666667vw;border-radius:50%}.bargain-public-number .status-dec,.bargain-public-number .status-title{margin-top:2.666667vw}.bargain-public-number .public-number-img{width:22.933333vw;height:22.933333vw;margin-top:4vw}.bargain-first{height:38.666667vw}.bargain-first .status-dec{margin-top:4vw}.bargain-second{height:28vw}.not-bargain{height:54.666667vw;padding:4vw 5.333333vw 5.333333vw}.not-bargain .middle-img{width:13.6vw;height:13.6vw}.not-bargain .status-title{height:9.866667vw;line-height:5.333333vw;font-size:4vw;margin-top:2.666667vw}.not-bargain .status-dec{margin-top:4vw}.artifact-box,.use-artifact-box{padding:5.333333vw 0;background-color:#fff;border-radius:.8vw;text-align:center;margin:53.333333vw auto 5.333333vw;position:relative}.artifact-box .top-img,.use-artifact-box .top-img{position:absolute;width:36vw;height:17.866667vw;top:-17.866667vw;margin-left:-17.866667vw}.artifact-box .top-tip,.use-artifact-box .top-tip{font-size:4.266667vw;color:#333;height:4.266667vw;line-height:4.266667vw}.artifact-box .middle-tip,.use-artifact-box .middle-tip{font-size:3.733333vw;color:#333;height:3.733333vw;line-height:3.733333vw;margin-top:4vw}.artifact-box .btm-tip,.use-artifact-box .btm-tip{font-size:3.733333vw;color:#666;height:3.733333vw;line-height:3.733333vw;margin-top:2.666667vw}.artifact-box .use-artifact,.use-artifact-box .use-artifact{background-color:#fff;width:22.4vw;height:6.4vw;font-size:3.733333vw;border:1px solid #ff3131;border-radius:3.2vw;margin:5.333333vw auto 0;color:#ff3131}.artifact-box .tubuy,.use-artifact-box .tubuy{display:inline-block;margin-top:4.533333vw;width:21.6vw;height:6.4vw;background-color:#ff3131;border-radius:3.2vw;font-size:4.266667vw;color:#fff;border:none}.artifact-box .indicator,.use-artifact-box .indicator{color:#fe2f2f}.artifact-box{width:80vw;height:34.666667vw}.use-artifact-box{width:80vw;height:39.466667vw}.use-artifact-box .middle-tip{color:#666}.close-bargain-success{position:fixed;top:0;left:0;right:0;bottom:0}.bargain-success{width:77.333333vw;height:29.066667vw;padding:4vw;background:#fff;border-radius:1.333333vw;text-align:center;margin:26.666667vw auto 5.333333vw;position:relative}.bargain-success p:nth-of-type(2){font-size:3.733333vw;margin-top:2.666667vw}.bargain-success p:first-of-type{font-size:3.2vw;margin-top:2.666667vw}.bargain-success .indicator{color:#fe2f2f}.bargain-success .iconyindao{display:inline-block;width:16vw;height:11.733333vw;position:absolute;top:-16vw;right:0;color:#fff;font-size:10.666667vw}.bargain-success .moreMbc{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:2}.bargain-success .moreMbc .content{width:80vw;height:90.666667vw;background-color:#fff;border-radius:.8vw;margin:34.666667vw auto 5.333333vw;position:relative}.bargain-success .moreMbc .content .title-box{width:100%;height:12vw;text-align:center;color:#202426;font-size:4.266667vw;line-height:12vw}.bargain-success .moreMbc .content .more-bargain-list{width:100%;height:67.466667vw;overflow:auto;border-top:1px solid #e7eaf1;padding:0 4vw;background-color:#f5f5f5}.bargain-success .moreMbc .content .more-bargain-list .bargain-item{border-bottom:1px solid #e7eaf1;height:13.333333vw;display:flex;position:relative}.bargain-success .moreMbc .content .more-bargain-list .bargain-item .avatar{width:8vw;height:8vw;border-radius:50%;margin-top:2.666667vw;margin-right:2.666667vw}.bargain-success .moreMbc .content .more-bargain-list .bargain-item .name{font-size:3.733333vw;color:#333;max-width:34.666667vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:13.333333vw}.bargain-success .moreMbc .content .more-bargain-list .bargain-item .bargain-status{line-height:13.333333vw;color:#333;font-size:3.733333vw;position:absolute;right:0}.bargain-success .moreMbc .more-bargain-dec{width:100%;position:absolute;bottom:0;height:11.2vw;font-size:3.2vw;color:#ff4000;text-align:center;line-height:11.2vw}.bargain-success .moreMbc .close{color:#fff;font-size:5.866667vw;position:relative;left:50%;margin-left:-2.933333vw}.ranking-box .moreMbc{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:2}.ranking-box .moreMbc .content{width:80vw;height:90.666667vw;background-color:#fff;border-radius:.8vw;margin:34.666667vw auto 5.333333vw;position:relative}.ranking-box .moreMbc .content .title-box{width:100%;height:12vw;text-align:center;color:#202426;font-size:4.266667vw;line-height:12vw}.ranking-box .moreMbc .content .more-bargain-list{width:100%;height:67.466667vw;overflow:auto;border-top:1px solid #e7eaf1;padding:0 4vw;background-color:#f5f5f5}.ranking-box .moreMbc .content .more-bargain-list .bargain-item{border-bottom:1px solid #e7eaf1;height:13.333333vw;display:flex;position:relative}.ranking-box .moreMbc .content .more-bargain-list .bargain-item .avatar{width:8vw;height:8vw;border-radius:50%;margin-top:2.666667vw;margin-right:2.666667vw}.ranking-box .moreMbc .content .more-bargain-list .bargain-item .name{font-size:3.733333vw;color:#333;max-width:34.666667vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:13.333333vw}.ranking-box .moreMbc .content .more-bargain-list .bargain-item .bargain-status{line-height:13.333333vw;color:#333;font-size:3.733333vw;position:absolute;right:0}.ranking-box .moreMbc .more-bargain-dec{width:100%;position:absolute;bottom:0;height:11.2vw;font-size:3.2vw;color:#ff4000;text-align:center;line-height:11.2vw}.ranking-box .moreMbc .close{color:#fff;font-size:5.866667vw;position:relative;left:50%;margin-left:-2.933333vw}.ranking-box .kanjia-icon{width:5.333333vw;height:5.333333vw;margin-right:1.333333vw;vertical-align:middle}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);z-index:999}
/*# sourceMappingURL=BargainMiddlePage.f15334d9.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/wangshuo/mr-julyedu/src/components/bargainMiddlePage/bargain-middle-page.scss","/Users/wangshuo/mr-julyedu/src/components/bargainMiddlePage/ranking/index.scss","/Users/wangshuo/mr-julyedu/src/components/detail/overlay/overlay.scss"],"names":[],"mappings":"AAmGA,qBACE,kBAAA,CACA,0BAAoB,CAFtB,gCAMI,aAxFkB,CAkFtB,4BAUI,aAtGc,CA4FlB,qCAcI,aAAA,CACA,oBAAA,CACA,uBAAkB,CAhBtB,qCAoBI,UAAA,CACA,eAAA,CACA,4BAA6B,CAtBjC,0BA2BI,UAAA,CACA,kBAAA,CACA,kBAAA,CACA,mBAAmB,CA9BvB,wCAiCM,iBAAA,CACA,OAAA,CACA,gBAAA,CACA,iBAAA,CACA,uBAAA,CACA,UAAA,CACA,eAAA,CACA,WAAA,CACA,wBAAA,CACA,kBAAA,CACA,uBAAwB,CA3C9B,wCAgDM,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,wBAAA,CACA,yBAAoB,CApD1B,qDAuDQ,UAAA,CACA,WAAA,CACA,gBAAA,CACA,uBAAA,CACA,+BAAA,CACA,aAAA,CACA,oBAAe,CA7DvB,6CAiEQ,YAAA,CACA,gBAAA,CACA,6BAAA,CACA,UAAW,CApEnB,qDAwEQ,4C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esContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.bargain-middle-page {\n background: #f4f4f4;\n padding-bottom: 50px; }\n .bargain-middle-page .indicator {\n color: #FE2F2F; }\n .bargain-middle-page .price {\n color: #ff3131; }\n .bargain-middle-page .discount-price {\n color: #ff3131;\n font-size: 16px;\n margin-right: 14px; }\n .bargain-middle-page .original-price {\n color: #999;\n font-size: 12px;\n text-decoration: line-through; }\n .bargain-middle-page > .top {\n width: 100%;\n padding: 10px;\n background: #FE2F2F;\n margin-bottom: 18px; }\n .bargain-middle-page > .top .purchase-btn {\n position: absolute;\n right: 0;\n bottom: 2px;\n height: 22px;\n padding: 3px 4px;\n color: #fff;\n font-size: 12px;\n border: none;\n border-radius: 11px;\n background: #ff3131;\n -webkit-appearance: none; }\n .bargain-middle-page > .top .bargain-area {\n width: 355px;\n background: #fff;\n border-radius: 3px;\n margin-bottom: 10px;\n padding-bottom: 20px; }\n .bargain-middle-page > .top .bargain-area .bargain-tip {\n width: 100%;\n height: 45px;\n line-height: 45px;\n padding-left: 10px;\n border-bottom: 1px solid #e7eaf1;\n color: #ff3131;\n font-size: 14px; }\n .bargain-middle-page > .top .bargain-area .des {\n display: flex;\n flex-flow: column;\n justify-content: space-between;\n width: 100%; }\n .bargain-middle-page > .top .bargain-area .v-list-item {\n padding: 15px 7px 10px 10px; }\n .bargain-middle-page > .top .bargain-area .v-list-item .cover {\n margin-right: 10px; }\n .bargain-middle-page > .top .bargain-area .v-list-item .cover img {\n width: 125px;\n height: 90px; }\n .bargain-middle-page > .top .bargain-area .v-list-item .content {\n border-bottom: 1px solid #E7EAF1; }\n .bargain-middle-page > .top .bargain-area .course-title {\n font-size: 14px; }\n .bargain-middle-page > .top .bargain-area .price-bar {\n position: relative; }\n .bargain-middle-page > .top .bargain-area .bargain-detail {\n display: flex;\n flex-flow: column;\n padding: 0 10px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .top {\n display: flex;\n justify-content: space-between;\n margin-bottom: 7px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .top > div:nth-child(1) {\n font-size: 16px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .reduced-price {\n color: #ff3131; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .time {\n display: inline-block;\n width: 20px;\n height: 18px;\n background: #666;\n border-radius: 2px;\n text-align: center;\n line-height: 18px;\n font-size: 12px;\n color: #fff; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .sec {\n margin-right: 6px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .inactive {\n color: #999; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .middle {\n position: relative;\n width: 335px;\n height: 8px;\n background: #E7E7E7;\n border-radius: 4px;\n overflow: hidden;\n margin-bottom: 7px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .middle span {\n position: absolute;\n left: 0;\n top: 0;\n display: inline-block;\n height: 100%;\n background: #FADD29; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .bottom {\n font-size: 14px;\n margin-bottom: 7px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .button {\n display: flex;\n justify-content: center;\n margin-top: 10px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .artifact-btn {\n float: right;\n position: relative;\n top: -20px;\n width: 61px;\n height: 24px;\n background: #FF4000;\n border-radius: 12px;\n font-size: 12px;\n border: none;\n color: #fff; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .active-btn {\n width: 210px;\n height: 30px;\n box-shadow: 0px 1px 3px 0px rgba(255, 64, 0, 0.5);\n background: #FADD29;\n border-radius: 15px;\n border: none;\n color: #ff3131;\n -webkit-appearance: none;\n font-size: 16px; }\n .bargain-middle-page > .top .bargain-area .bargain-detail .invalid-btn {\n width: 210px;\n height: 30px;\n background: #999;\n color: #fff;\n font-size: 16px;\n box-shadow: none;\n border-radius: 15px;\n border: none; }\n .bargain-middle-page .bargain-records {\n width: 355px;\n height: 236px;\n background: #FFF9EC;\n border-radius: 3px; }\n .bargain-middle-page .bargain-records .title {\n height: 44px;\n line-height: 44px;\n font-size: 16px;\n border-bottom: #ddd;\n text-align: center;\n border-bottom: 1px solid #ddd; }\n .bargain-middle-page .bargain-records ul {\n padding: 0 10px; }\n .bargain-middle-page .bargain-records ul li {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 50px;\n border-bottom: 1px solid #ddd; }\n .bargain-middle-page .bargain-records ul li .left, .bargain-middle-page .bargain-records ul li .right {\n display: flex;\n align-items: center; }\n .bargain-middle-page .bargain-records ul li .avatar {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n margin-right: 11px; }\n .bargain-middle-page .bargain-records ul li .nickname {\n margin-right: 10px;\n font-size: 14px;\n max-width: 130px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n .bargain-middle-page .bargain-records ul li .rank-tag {\n padding: 2px 5px;\n background: #FE2F2F;\n color: #fff;\n font-size: 12px;\n flex: 0 0 auto;\n border-radius: 2px; }\n .bargain-middle-page .bargain-records .more {\n color: #555;\n font-size: 14px;\n text-align: center;\n line-height: 40px; }\n .bargain-middle-page .bargain-course-list {\n background: #fff;\n padding: 15px; }\n .bargain-middle-page .bargain-course-list ul {\n display: flex;\n flex-wrap: wrap; }\n .bargain-middle-page .bargain-course-list ul li:nth-child(odd) {\n margin-right: 15px; }\n .bargain-middle-page .bargain-course-list .title-wrapper {\n text-align: center; }\n .bargain-middle-page .bargain-course-list .title-wrapper .title {\n font-size: 16px;\n margin-bottom: 10px; }\n .bargain-middle-page .bargain-course-list .title-wrapper .subtitle {\n font-size: 14px;\n color: #FF4000; }\n .bargain-middle-page .bargain-course-list .course-title {\n margin-bottom: 10px;\n min-height: 38px; }\n .bargain-middle-page .bargain-course-list .course-price {\n margin-bottom: 10px; }\n .bargain-middle-page .bargain-course-list .bargain {\n width: 165px;\n height: 30px;\n background: #FADD29;\n border-radius: 2px;\n border: none;\n color: #FF4000;\n -webkit-appearance: none;\n display: inline-block;\n text-align: center;\n line-height: 30px; }\n .bargain-middle-page .bargain-course-list .button--study {\n color: #fff;\n background: #077FD0; }\n .bargain-middle-page .bargain-course-list .btns {\n display: flex;\n justify-content: space-between; }\n .bargain-middle-page .bargain-course-list .btns .bargain-btn {\n width: 80px;\n height: 30px;\n background: #FADD29;\n text-align: center;\n line-height: 28px;\n border: none;\n color: #FF4000;\n -webkit-appearance: none; }\n .bargain-middle-page .bargain-course-list .btns .invalid {\n width: 80px;\n height: 30px;\n background: #999;\n color: #fff;\n border: none;\n -webkit-appearance: none;\n border-radius: 2px; }\n .bargain-middle-page .bargain-course-list .btns .purchase-btn {\n width: 80px;\n height: 30px;\n background: #FF4000;\n color: #fff;\n border-radius: 2px;\n border: none;\n -webkit-appearance: none; }\n .bargain-middle-page .preferential {\n display: inline-block;\n width: 100%;\n height: 46px;\n line-height: 46px;\n font-size: 16px;\n color: #555;\n text-align: center; }\n .bargain-middle-page .kanjia-icon {\n width: 20px;\n height: 20px;\n margin-right: 5px;\n vertical-align: middle; }\n\n.bargain-public-number, .bargain-first, .bargain-second, .not-bargain {\n width: 300px;\n padding: 20px 0;\n background-color: #fff;\n border-radius: 3px;\n text-align: center;\n margin: 200px auto 20px auto;\n position: relative; }\n .bargain-public-number .ff4, .bargain-first .ff4, .bargain-second .ff4, .not-bargain .ff4 {\n color: #FF4000; }\n .bargain-public-number .status-title, .bargain-first .status-title, .bargain-second .status-title, .not-bargain .status-title {\n font-size: 16px;\n height: 16px;\n line-height: 16px; }\n .bargain-public-number .status-dec, .bargain-first .status-dec, .bargain-second .status-dec, .not-bargain .status-dec {\n font-size: 12px;\n color: #666;\n height: 12px;\n line-height: 12px; }\n .bargain-public-number .bargain-href, .bargain-first .bargain-href, .bargain-second .bargain-href, .not-bargain .bargain-href {\n display: inline-block;\n width: 260px;\n height: 30px;\n line-height: 28px;\n background-color: #FADD29;\n color: #FF4000;\n font-size: 16px;\n border: none;\n position: absolute;\n bottom: 20px;\n left: 20px; }\n .bargain-public-number .top-img, .bargain-first .top-img, .bargain-second .top-img, .not-bargain .top-img {\n position: absolute;\n width: 135px;\n height: 67px;\n top: -67px;\n margin-left: -67px; }\n\n.bargain-public-number {\n height: 185px; }\n .bargain-public-number .avait {\n position: absolute;\n top: -20px;\n margin-left: -20px;\n width: 40px;\n height: 40px;\n border-radius: 50%; }\n .bargain-public-number .status-title {\n margin-top: 10px; }\n .bargain-public-number .status-dec {\n margin-top: 10px; }\n .bargain-public-number .public-number-img {\n width: 86px;\n height: 86px;\n margin-top: 15px; }\n\n.bargain-first {\n height: 145px; }\n .bargain-first .status-dec {\n margin-top: 15px; }\n\n.bargain-second {\n height: 105px; }\n\n.not-bargain {\n height: 205px;\n padding: 15px 20px 20px 20px; }\n .not-bargain .middle-img {\n width: 51px;\n height: 51px; }\n .not-bargain .status-title {\n height: 37px;\n line-height: 20px;\n font-size: 15px;\n margin-top: 10px; }\n .not-bargain .status-dec {\n margin-top: 15px; }\n\n.artifact-box, .use-artifact-box {\n padding: 20px 0;\n background-color: #fff;\n border-radius: 3px;\n text-align: center;\n margin: 200px auto 20px auto;\n position: relative; }\n .artifact-box .top-img, .use-artifact-box .top-img {\n position: absolute;\n width: 135px;\n height: 67px;\n top: -67px;\n margin-left: -67px; }\n .artifact-box .top-tip, .use-artifact-box .top-tip {\n font-size: 16px;\n color: #333;\n height: 16px;\n line-height: 16px; }\n .artifact-box .middle-tip, .use-artifact-box .middle-tip {\n font-size: 14px;\n color: #333;\n height: 14px;\n line-height: 14px;\n margin-top: 15px; }\n .artifact-box .btm-tip, .use-artifact-box .btm-tip {\n font-size: 14px;\n color: #666;\n height: 14px;\n line-height: 14px;\n margin-top: 10px; }\n .artifact-box .use-artifact, .use-artifact-box .use-artifact {\n background-color: #fff;\n width: 84px;\n height: 24px;\n font-size: 14px;\n border: 1px solid #ff3131;\n border-radius: 12px;\n margin: 20px auto 0 auto;\n color: #ff3131; }\n .artifact-box .tubuy, .use-artifact-box .tubuy {\n display: inline-block;\n margin-top: 17px;\n width: 81px;\n height: 24px;\n background-color: #ff3131;\n border-radius: 12px;\n font-size: 16px;\n color: #fff;\n border: none; }\n .artifact-box .indicator, .use-artifact-box .indicator {\n color: #FE2F2F; }\n\n.artifact-box {\n width: 300px;\n height: 130px; }\n\n.use-artifact-box {\n width: 300px;\n height: 148px; }\n .use-artifact-box .middle-tip {\n color: #666; }\n\n.close-bargain-success {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n\n.bargain-success {\n width: 290px;\n height: 109px;\n padding: 15px;\n background: #fff;\n border-radius: 5px;\n text-align: center;\n margin: 100px auto 20px auto;\n position: relative; }\n .bargain-success p:nth-of-type(2) {\n font-size: 14px;\n margin-top: 10px; }\n .bargain-success p:nth-of-type(1) {\n font-size: 12px;\n margin-top: 10px; }\n .bargain-success .indicator {\n color: #FE2F2F; }\n .bargain-success .iconyindao {\n display: inline-block;\n width: 60px;\n height: 44px;\n position: absolute;\n top: -60px;\n right: 0;\n color: #fff;\n font-size: 40px; }\n .bargain-success .moreMbc {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 2; }\n .bargain-success .moreMbc .content {\n width: 300px;\n height: 340px;\n background-color: #fff;\n border-radius: 3px;\n margin: 130px auto 20px auto;\n position: relative; }\n .bargain-success .moreMbc .content .title-box {\n width: 100%;\n height: 45px;\n text-align: center;\n color: #202426;\n font-size: 16px;\n line-height: 45px; }\n .bargain-success .moreMbc .content .more-bargain-list {\n width: 100%;\n height: 253px;\n overflow: auto;\n border-top: 1px solid #e7eaf1;\n padding: 0 15px;\n background-color: #f5f5f5; }\n .bargain-success .moreMbc .content .more-bargain-list .bargain-item {\n border-bottom: 1px solid #e7eaf1;\n height: 50px;\n display: flex;\n position: relative; }\n .bargain-success .moreMbc .content .more-bargain-list .bargain-item .avatar {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n margin-top: 10px;\n margin-right: 10px; }\n .bargain-success .moreMbc .content .more-bargain-list .bargain-item .name {\n font-size: 14px;\n color: #333;\n max-width: 130px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 50px; }\n .bargain-success .moreMbc .content .more-bargain-list .bargain-item .bargain-status {\n line-height: 50px;\n color: #333;\n font-size: 14px;\n position: absolute;\n right: 0; }\n .bargain-success .moreMbc .more-bargain-dec {\n width: 100%;\n position: absolute;\n bottom: 0;\n height: 42px;\n font-size: 12px;\n color: #FF4000;\n text-align: center;\n line-height: 42px; }\n .bargain-success .moreMbc .close {\n color: #fff;\n font-size: 22px;\n position: relative;\n left: 50%;\n margin-left: -11px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.ranking-box .moreMbc {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 2; }\n .ranking-box .moreMbc .content {\n width: 300px;\n height: 340px;\n background-color: #fff;\n border-radius: 3px;\n margin: 130px auto 20px auto;\n position: relative; }\n .ranking-box .moreMbc .content .title-box {\n width: 100%;\n height: 45px;\n text-align: center;\n color: #202426;\n font-size: 16px;\n line-height: 45px; }\n .ranking-box .moreMbc .content .more-bargain-list {\n width: 100%;\n height: 253px;\n overflow: auto;\n border-top: 1px solid #e7eaf1;\n padding: 0 15px;\n background-color: #f5f5f5; }\n .ranking-box .moreMbc .content .more-bargain-list .bargain-item {\n border-bottom: 1px solid #e7eaf1;\n height: 50px;\n display: flex;\n position: relative; }\n .ranking-box .moreMbc .content .more-bargain-list .bargain-item .avatar {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n margin-top: 10px;\n margin-right: 10px; }\n .ranking-box .moreMbc .content .more-bargain-list .bargain-item .name {\n font-size: 14px;\n color: #333;\n max-width: 130px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 50px; }\n .ranking-box .moreMbc .content .more-bargain-list .bargain-item .bargain-status {\n line-height: 50px;\n color: #333;\n font-size: 14px;\n position: absolute;\n right: 0; }\n .ranking-box .moreMbc .more-bargain-dec {\n width: 100%;\n position: absolute;\n bottom: 0;\n height: 42px;\n font-size: 12px;\n color: #FF4000;\n text-align: center;\n line-height: 42px; }\n .ranking-box .moreMbc .close {\n color: #fff;\n font-size: 22px;\n position: relative;\n left: 50%;\n margin-left: -11px; }\n\n.ranking-box .kanjia-icon {\n width: 20px;\n height: 20px;\n margin-right: 5px;\n vertical-align: middle; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 999; }\n"]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1164:function(t,a,e){"use strict";e.r(a);var s,i=e(22),n=(e(43),e(14)),r=e.n(n),c=e(7),l=e(8),o=e(10),m=e(9),u=e(11),d=e(0),h=e.n(d),g=(e(896),e(30)),p=e(4),b=e(18),E=e(51),v=e(670),f=e(157),j=e(630),N=e(20),y=(e(62),e(15)),S=e.n(y),A=Object(N.b)(function(t){return{user:t.user}})(s=function(t){function a(t){var s;return Object(c.a)(this,a),(s=Object(o.a)(this,Object(m.a)(a).call(this,t))).getBargainInfo=function(){p.c.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(p.b)("bargaincode"),"&is_originator=").concat(Object(p.b)("is_originator"))).then(function(t){200===t.data.code?s.setState({data:t.data.data,isOriginator:t.data.data.is_originator,originatorUid:t.data.data.originator_uid,course:t.data.data.course,limitPeople:t.data.data.course.limit_people,bargainData:t.data.data.bargain,width:100*(t.data.data.bargain.bargain_price/t.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(s.state.bargainData.expire_time){var t=1e3*s.state.bargainData.expire_time,a=Date.now();clearInterval(s.timer),s.timer=setInterval(function(){var e=new Date(t-=1e3),i=Object(f.differenceInSeconds)(e,a)%60,n=Object(f.differenceInMinutes)(e,a)%60,r=Object(f.differenceInHours)(e,a)%24,c=Object(f.differenceInDays)(e,a)%24;s.setState({hour:r,min:n,sec:i,day:c})},1e3)}}):r.a.info(t.data.msg,2)})},s.getBargainCourse=function(){p.c.get("".concat(API.home,"/m/bargain/courseList")).then(function(t){200===t.data.code?s.setState({courseList:t.data.data}):r.a.info(t.data.msg,2)})},s.getBargainRankList=function(t,a){var e={courseId:t,type:a};p.c.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(t){if(200===t.data.code){var a=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],e=t.data.data.out_list.map(function(t,e){return Object(i.a)({},t,{rank:a[e]})});s.setState({list:t.data.data.list,outList:e})}else r.a.info(t.data.msg,2)})},s.toCart=function(){var t={course_id:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/cart/add"),t).then(function(t){200===t.data.code||15001===t.data.code?s.props.history.push("/shopcart"):r.a.info(t.data.msg,2)})},s.toCartBottom=function(t){var a={course_id:t};p.c.post("".concat(API.home,"/m/cart/add"),a).then(function(t){200===t.data.code||15001===t.data.code?s.props.history.push("/shopcart"):r.a.info(t.data.msg,2)})},s.getMore=function(){s.setState({isShowMore:!0})},s.boxHide=function(t){s.setState({isShowMore:t})},s.toArtifact=function(){var t={courseId:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/bargain/receiveLimit"),t).then(function(t){200===t.data.code?s.setState({isShowOverlay:!0,status:5}):r.a.info(t.data.msg,2)})},s.useArtifact=function(){s.toKanjia(Object(p.b)("id"),2,0)},s.toKanjia=function(t,a,e){var i={course_id:t,type:a,parent_uid:e};p.c.post("".concat(API.home,"/m/bargain/toBargain"),i).then(function(t){200===t.data.code?(s.setState({amount:t.data.data.amount}),2===a&&s.setState({isShowOverlay:!0,status:6}),1===t.data.data.is_success?s.setState({isShowOverlay:!0,status:4}):2===t.data.data.is_success?3===a?s.setState({isShowOverlay:!0,status:2}):4===a&&s.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===t.data.data.is_success&&(3===a?s.setState({isShowOverlay:!0,status:2}):4===a&&s.setState({isShowOverlay:!0,status:3})),s.getBargainInfo()):r.a.info(t.data.msg,2)})},s.friendBargainFirst=function(){s.toKanjia(Object(p.b)("id"),3,s.state.originatorUid)},s.friendBargainSecond=function(){s.toKanjia(Object(p.b)("id"),4,s.state.originatorUid)},s.shareFriendBargain=function(){s.setState({isShowOverlay:!0,status:7,isshowYindao:!!p.a.isWeixin})},s.close=function(){s.setState({isShowOverlay:!1,status:""})},s.toCourseDetail=function(t){var a=s.props;a.dispatch;return a.history.push("/detail?id=".concat(t)),!1},s.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:e(629),course:{},courseList:[],data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0},s}return Object(u.a)(a,t),Object(l.a)(a,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(p.b)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"render",value:function(){var t,a,e,s=this;return 0===this.state.bargainData.is_artifact?t=h.a.createElement("div",null,"\u518d\u9080\u8bf7",h.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(t=h.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=h.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(t=h.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=h.a.createElement("button",{className:"artifact-btn",onClick:this.useArtifact},"\u7acb\u5373\u4f7f\u7528")),1!==this.state.isOriginator&&0===this.state.data.assist_status&&0===this.state.data.bargain_status?e=h.a.createElement("button",{className:"active-btn",onClick:this.friendBargainFirst},"\u5e2e\u597d\u53cb\u780d\u4e00\u5200"):1!==this.state.isOriginator&&1===this.state.data.assist_status?e=h.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):1!==this.state.isOriginator&&2===this.state.data.assist_status?e=h.a.createElement("button",{className:"invalid-btn"},"\u5df2\u5e2e\u597d\u53cb\u52a9\u529b"):1===this.state.data.bargain_status||2===this.state.data.bargain_status?e=h.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f"):1===this.state.isOriginator&&0===this.state.data.bargain_status&&(e=h.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")),h.a.createElement("div",{className:"bargain-middle-page"},h.a.createElement(g.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0}),h.a.createElement("div",{className:"top"},h.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&h.a.createElement("p",{className:"bargain-tip"},"\u4f60\u7684\u597d\u53cb\u53d1\u73b0\u4e00\u95e8\u7cbe\u54c1\u8bfe\u7a0b\uff0c\u5feb\u6765\u4e00\u8d77\u5e2e\u4ed6\u780d\u4ef7\uff1a"),h.a.createElement("ul",null,h.a.createElement(g.i,{img:this.state.course.course_img,info:h.a.createElement(C,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),h.a.createElement("div",{className:"bargain-detail"},h.a.createElement("div",{className:"top"},h.a.createElement("div",null,"\u5df2\u780d",h.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&h.a.createElement("div",null,h.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",h.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",h.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),h.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&h.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),h.a.createElement("div",{className:"middle"},h.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&h.a.createElement("div",null,t,a),1===this.state.isOriginator&&1===this.state.data.bargain_status&&h.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",h.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),h.a.createElement("span",{className:"unit"}," \u5929 "),h.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),h.a.createElement("span",{className:"unit"}," \u65f6 "),h.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),h.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),h.a.createElement("div",{className:"button"},e))),h.a.createElement("div",{className:"bargain-records"},h.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),h.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(t,a){return h.a.createElement("li",{key:a},h.a.createElement("div",{className:"left"},h.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),h.a.createElement("span",{className:"nickname"},t.user_name),h.a.createElement("span",{className:"rank-tag"},t.rank)),h.a.createElement("div",{className:"right"},h.a.createElement("img",{className:"kanjia-icon",src:s.state.kanjiaIcon,alt:""}),"\u780d\u6389",h.a.createElement("span",{className:"price"},t.amount)))})),h.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),h.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},h.a.createElement("div",{className:"title-wrapper"},h.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),h.a.createElement("div",{className:"subtitle"},"\u9080\u8bf7",this.state.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),h.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(t,a){return h.a.createElement(g.d,{className:"text-overflow-2",key:a,id:t.course_id,img:t.image_name,title:t.course_title,toDetail:s.toCourseDetail,bottom:h.a.createElement(B,{item:t,toCartBottom:s.toCartBottom.bind(s,t.course_id),toDetail:s.toCourseDetail})})}))),h.a.createElement(b.b,{to:"/classify",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),h.a.createElement(v.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&h.a.createElement(j.a,null,7===this.state.status&&h.a.createElement(T,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&h.a.createElement(k,{money:this.state.amount,avatar:this.props.user.data.avatar,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&h.a.createElement(U,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&h.a.createElement(w,{close:this.close,money:this.state.amount}),4===this.state.status&&h.a.createElement(D,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&h.a.createElement(O,{useArtifact:this.useArtifact}),6===this.state.status&&h.a.createElement(L,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&h.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),a}(d.Component))||s;function C(t){var a=t.data&&t.data.course;return h.a.createElement("div",{className:"des"},h.a.createElement("div",{className:"course-title text-overflow-2"},a.course_title),h.a.createElement("div",{className:"price-bar"},h.a.createElement("span",{className:"discount-price"},"\uffe5",a.course_price),1===t.isOriginator&&h.a.createElement("button",{className:"purchase-btn",onClick:t.toCart},"\xa5",a.pay_price,"\u53bb\u652f\u4ed8")))}function B(t){var a;return a=2===t.item.bargain_status?h.a.createElement("a",{href:"javascript:;",onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"):3===t.item.bargain_status?h.a.createElement(b.b,{to:"/play/video?id=".concat(t.item.v_course_id),className:S()("bargain","button--study")},"\u53bb\u5b66\u4e60"):h.a.createElement("div",{className:"btns"},1===t.item.bargain_status&&h.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===t.item.bargain_status&&h.a.createElement("a",{href:"javascript:;",onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain-btn"},"\u6211\u8981\u780d\u4ef7"),h.a.createElement("button",{onClick:t.toCartBottom,className:"purchase-btn"},"\xa5",t.item.pay_price,"\u53bb\u652f\u4ed8")),h.a.createElement("div",{className:"course-bottom"},h.a.createElement("div",{className:"course-price"},h.a.createElement("span",{className:"discount-price"},"\xa5",t.item.price1),h.a.createElement("span",{className:"original-price"},"\xa5",t.item.price0)),a)}function k(t){return h.a.createElement("div",{className:"bargain-public-number"},h.a.createElement("img",{className:"avait",src:t.avatar,alt:""}),t.firendBaigainPrice&&h.a.createElement("p",{className:"status-title ff4"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",t.money,"\u5143\uff01"),h.a.createElement("p",{className:"status-dec"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),h.a.createElement("img",{className:"public-number-img",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}))}function U(t){return h.a.createElement("div",{className:"bargain-first"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",h.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),h.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),h.a.createElement("button",{className:"bargain-href",onClick:t.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function w(t){return h.a.createElement("div",{className:"bargain-second"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",h.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),h.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function D(t){return h.a.createElement("div",{className:"not-bargain"},h.a.createElement("img",{className:"middle-img",src:e(897),alt:""}),h.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",h.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),h.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",t.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),h.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function O(t){return h.a.createElement("div",{className:"artifact-box"},h.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),h.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),h.a.createElement("button",{className:"use-artifact",onClick:t.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function L(t){return h.a.createElement("div",{className:"use-artifact-box"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",t.money,"\u5143\uff01"),h.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",h.a.createElement("span",{className:"indicator"},t.allMoney,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),h.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),h.a.createElement("button",{className:"tubuy",onClick:t.toCart},"\u53bb\u652f\u4ed8"))}function T(t){return h.a.createElement("div",null,h.a.createElement("div",{className:"close-bargain-success",onClick:t.close}),h.a.createElement("div",{className:"bargain-success"},t.isshowYindao&&h.a.createElement("i",{className:"iconfont iconyindao"}),h.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),h.a.createElement("p",null,"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",h.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}a.default=Object(E.g)(A)},629:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},630:function(t,a,e){"use strict";var s=e(7),i=e(8),n=e(10),r=e(9),c=e(11),l=e(0),o=e.n(l),m=e(21),u=e.n(m),d=(e(672),document.body||document.documentElement),h=["touchmove","mousewheel"],g=function(t){function a(t){var e;return Object(s.a)(this,a),(e=Object(n.a)(this,Object(r.a)(a).call(this,t))).preventScroll=function(t){t.preventDefault()},e.overlayBox=null,e}return Object(c.a)(a,t),Object(i.a)(a,[{key:"componentDidMount",value:function(){var t=this;h.forEach(function(a){t.overlayBox.addEventListener(a,t.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var t=this;h.forEach(function(a){t.overlayBox.removeEventListener(a,t.preventScroll)})}},{key:"render",value:function(){var t=this;return u.a.createPortal(o.a.createElement("div",{className:"overlay",ref:function(a){return t.overlayBox=a},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),a}(l.Component);a.a=g},670:function(t,a,e){"use strict";var s=e(7),i=e(8),n=e(10),r=e(9),c=e(11),l=e(0),o=e.n(l),m=(e(671),function(t){function a(t){var i;return Object(s.a)(this,a),(i=Object(n.a)(this,Object(r.a)(a).call(this,t))).closeMore=function(){i.props.boxHide(!1)},i.state={kanjiaIcon:e(629)},i}return Object(c.a)(a,t),Object(i.a)(a,[{key:"render",value:function(){return o.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&o.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),a}(l.Component));function u(t){return o.a.createElement("div",{className:"moreMbc"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),o.a.createElement("ul",{className:"more-bargain-list"},t.list&&t.list.length>0&&t.list.map(function(a,e){return o.a.createElement("li",{key:e,className:"bargain-item"},o.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),o.a.createElement("p",{className:"name"},a.user_name),o.a.createElement("p",{className:"bargain-status"},o.a.createElement("img",{className:"kanjia-icon",src:t.img,alt:""}),"\u780d\u6389",o.a.createElement("span",{className:"price"},a.amount)))})),o.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),o.a.createElement("i",{onClick:t.closeMore,className:"iconfont iconiconfront-2 close"}))}a.a=m},671:function(t,a,e){},672:function(t,a,e){},673:function(t,a,e){t.exports=e.p+"static/media/kanjia_cg_icon.81a489ac.png"},896:function(t,a,e){},897:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1j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9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=BargainMiddlePage.1d2df9b1.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/bargainMiddlePage/index.js","components/bargainMiddlePage/image/kanjia_icon.png","components/detail/overlay/index.js","components/bargainMiddlePage/ranking/index.js","components/bargainMiddlePage/image/kanjia_cg_icon.png","components/bargainMiddlePage/image/kanjia_no_iccon.png"],"names":["BargainMiddlePage","connect","state","user","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","call","getBargainInfo","http","get","concat","API","home","getParam","then","res","data","code","setState","isOriginator","is_originator","originatorUid","originator_uid","course","limitPeople","limit_people","bargainData","bargain","width","bargain_price","total_price","toFixed","expire_time","date","now","Date","clearInterval","timer","setInterval","_d","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","d","differenceInDays","hour","min","sec","day","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","a","info","msg","getBargainCourse","courseList","getBargainRankList","id","type","courseId","post","arr","newList","out_list","map","item","i","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","rank","list","outList","toCart","course_id","history","push","toCartBottom","getMore","isShowMore","boxHide","val","toArtifact","isShowOverlay","status","useArtifact","toKanjia","uid","parent_uid","amount","is_success","firendBaigainPrice","friendBargainFirst","friendBargainSecond","shareFriendBargain","isshowYindao","browser","isWeixin","close","toCourseDetail","_this$props","dispatch","kanjiaIcon","require","isLoaidng","thirdRow","btn","bargainBtn","_this2","is_artifact","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","invite_num","onClick","assist_status","bargain_status","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","img","course_img","CourseDes","String","padStart","style","length","index","key","src","avatar_file","alt","user_name","image_name","course_title","toDetail","bottom","CourseBottom","bind","react_router_dom__WEBPACK_IMPORTED_MODULE_12__","to","_ranking__WEBPACK_IMPORTED_MODULE_14__","icon","_detail_overlay__WEBPACK_IMPORTED_MODULE_16__","BargainSuccess","PublicNumber","money","avatar","BargainFirst","bargainSecond","BargainSecond","NotBargain","Artifact","UseArtifact","allMoney","Component","course_price","pay_price","Buttons","href","v_course_id","classnames","price1","price0","color","withRouter","module","exports","root","document","body","documentElement","events","Overlay","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","preventScroll","e","preventDefault","overlayBox","forEach","addEventListener","passive","_this3","removeEventListener","_this4","ReactDom","createPortal","react__WEBPACK_IMPORTED_MODULE_5___default","ref","el","top","window","scrollY","children","Ranking","closeMore","MoreList","__webpack_require__","p"],"mappings":"kSAkBMA,EAHLC,YAAQ,SAAAC,GAAK,MAAK,CACfC,KAAMD,EAAMC,sBAMZ,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,KAiCVQ,eAAiB,WAEbC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,gCAAAF,OAAmDG,YAAS,eAA5D,mBAAAH,OAA4FG,YAAS,mBAAoBC,KAAK,SAACC,GACrG,MAAlBA,EAAIC,KAAKC,KACTjB,EAAKkB,SACD,CACIF,KAAMD,EAAIC,KAAKA,KACfG,aAAcJ,EAAIC,KAAKA,KAAKI,cAC5BC,cAAeN,EAAIC,KAAKA,KAAKM,eAC7BC,OAAQR,EAAIC,KAAKA,KAAKO,OACtBC,YAAaT,EAAIC,KAAKA,KAAKO,OAAOE,aAClCC,YAAaX,EAAIC,KAAKA,KAAKW,QAC3BC,MAA8F,KAAtFb,EAAIC,KAAKA,KAAKW,QAAQE,cAAgBd,EAAIC,KAAKA,KAAKW,QAAQG,aAAaC,QAAQ,GAAW,KAExG,WACI,GAAI/B,EAAKH,MAAM6B,YAAYM,YAAa,CACpC,IAAIC,EAA4C,IAArCjC,EAAKH,MAAM6B,YAAYM,YAC9BE,EAAMC,KAAKD,MACfE,cAAcpC,EAAKqC,OACnBrC,EAAKqC,MAAQC,YAAY,WAErB,IAAIC,EAAK,IAAIJ,KADbF,GAAQ,KAEJO,EAAIC,8BAAoBF,EAAIL,GAAO,GACnCQ,EAAIC,8BAAoBJ,EAAIL,GAAO,GACnCU,EAAIC,4BAAkBN,EAAI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AzI,EAAA0D,cAAA,OAAKC,UAAU,aAAf,wCAGA8E,EAAAzI,EAAA0D,cAAA,MAAIC,UAAU,qBAENjH,EAAMwE,MAAQxE,EAAMwE,KAAKwD,OAAS,GAAKhI,EAAMwE,KAAKL,IAAI,SAACC,EAAM6D,GACzD,OACI8D,EAAAzI,EAAA0D,cAAA,MAAIkB,IAAKD,EAAOhB,UAAU,gBACtB8E,EAAAzI,EAAA0D,cAAA,OAAKC,UAAU,SAASkB,IAAK/D,EAAKgE,YAAaC,IAAI,KACnD0D,EAAAzI,EAAA0D,cAAA,KAAGC,UAAU,QAAQ7C,EAAKkE,WAC1ByD,EAAAzI,EAAA0D,cAAA,KAAGC,UAAU,kBACT8E,EAAAzI,EAAA0D,cAAA,OAAKC,UAAU,cAAckB,IAAKnI,EAAM0H,IAAKW,IAAI,KADrD,eAEM0D,EAAAzI,EAAA0D,cAAA,QAAMC,UAAW,SAAU7C,EAAKsB,aAO1DqG,EAAAzI,EAAA0D,cAAA,OAAKC,UAAU,oBAAf,eACOjH,EAAMyB,YADb,yFAIJsK,EAAAzI,EAAA0D,cAAA,KAAGG,QAASnH,EAAMuM,UAAWtF,UAAW,oCAKrCqF,uEC9Df9B,EAAAC,QAAiBgC,EAAAC,EAAuB,oFCAxClC,EAAAC,QAAA","file":"static/js/BargainMiddlePage.1d2df9b1.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './bargain-middle-page.scss'\nimport { HeaderBar, VList } from '@common'\nimport { Course } from '@common'\nimport { api, getParam, http, browser } from \"@/utils\"\nimport { Toast } from \"antd-mobile\"\nimport { Link, withRouter } from \"react-router-dom\"\nimport Ranking from './ranking'\nimport { differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays } from \"date-fns\"\nimport Overlay from '../detail/overlay'\nimport { compose } from \"redux\"\nimport { connect } from \"react-redux\";\nimport {getCourses} from './../detail/actions';\nimport classnames from 'classnames';\n\n@connect(state => ({\n user: state.user\n}))\nclass BargainMiddlePage extends Component {\n\n timer\n\n constructor(props) {\n super(props)\n this.state = {\n isShowOverlay: false,\n isOriginator: '',\n kanjiaIcon: require('./image/kanjia_icon.png'),\n course: {}, // 当前砍价课程\n courseList: [], // 所有砍价课程\n data: '',\n bargainData: '',\n limitPeople: 0,\n outList: [],\n list: [],\n width: '0',\n isShowMore: '',\n status: '',\n hour: '',\n min: '',\n sec: '',\n day: '',\n amount: '',\n firendBaigainPrice: true,\n isshowYindao: false,\n isLoaidng: true\n }\n }\n\n componentDidMount() {\n this.getBargainRankList(getParam('id'), 1)\n this.getBargainCourse()\n this.getBargainInfo()\n }\n\n // 获取砍价信息\n getBargainInfo = () => {\n\n http.get(`${API.home}/m/bargain/info?bargaincode=${getParam('bargaincode')}&is_originator=${getParam('is_originator')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState(\n {\n data: res.data.data,\n isOriginator: res.data.data.is_originator,\n originatorUid: res.data.data.originator_uid,\n course: res.data.data.course,\n limitPeople: res.data.data.course.limit_people,\n bargainData: res.data.data.bargain,\n width: (res.data.data.bargain.bargain_price / res.data.data.bargain.total_price).toFixed(2) * 100 + '%'\n },\n () => {\n if (this.state.bargainData.expire_time) {\n let date = this.state.bargainData.expire_time * 1000\n let now = Date.now()\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n date -= 1000\n let _d = new Date(date)\n let s = differenceInSeconds(_d, now) % 60,\n m = differenceInMinutes(_d, now) % 60,\n h = differenceInHours(_d, now) % 24,\n d = differenceInDays(_d, now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n day: d\n })\n\n }, 1000)\n }\n }\n )\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取砍价课程\n getBargainCourse = () => {\n http.get(`${API.home}/m/bargain/courseList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n courseList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取助理好友\n getBargainRankList = (id, type) => {\n let data = {\n courseId: id,\n type: type\n }\n http.post(`${API.home}/m/bargain/rankList`, data).then((res) => {\n if (res.data.code === 200) {\n let arr = ['刀神', '刀王', '刀霸']\n let newList = res.data.data.out_list.map((item, i) => {\n return {\n ...item,\n rank: arr[i]\n }\n })\n this.setState({\n list: res.data.data.list,\n outList: newList\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 加入购物车\n toCart = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API.home}/m/cart/add`, data).then((res) => {\n if (res.data.code === 200 || res.data.code === 15001) {\n this.props.history.push('/shopcart')\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 我要砍价列表的去支付\n toCartBottom=(id)=>{\n let data = {\n course_id: id\n }\n http.post(`${API.home}/m/cart/add`, data).then((res) => {\n if (res.data.code === 200 || res.data.code === 15001) {\n this.props.history.push('/shopcart')\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n // 查看更多\n getMore = () => {\n this.setState({\n isShowMore: true\n })\n }\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({isShowMore: val})\n }\n\n // 领取砍价神器\n toArtifact = () => {\n let data = {\n courseId: getParam('id')\n }\n http.post(`${API.home}/m/bargain/receiveLimit`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShowOverlay: true,\n status: 5,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 使用砍价神器\n useArtifact = () => {\n this.toKanjia(getParam('id'), 2, 0)\n }\n\n // 砍价接口\n toKanjia = (id, type, uid) => {\n let data = {\n course_id: id,\n type: type, // 1 用户自己砍价 2 使用砍价神器 3 好友助力砍价 4 好友第二次助力\n parent_uid: uid // 被助力人id 【自己本人操作传0】\n }\n http.post(`${API.home}/m/bargain/toBargain`, data).then((res) => {\n if (res.data.code === 200) {\n // is_success =0一切正常 =1 不能在砍了 =2关注公众号,可以再砍一刀!\n this.setState({\n amount: res.data.data.amount\n })\n if (type === 2) {\n this.setState({\n isShowOverlay: true,\n status: 6\n })\n }\n\n if (res.data.data.is_success === 1) {\n this.setState({\n isShowOverlay: true,\n status: 4\n })\n } else if (res.data.data.is_success === 2) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 1,\n firendBaigainPrice: false\n })\n }\n } else if (res.data.data.is_success === 0) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 3\n })\n }\n }\n\n this.getBargainInfo()\n\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n\n // 帮好友砍价第一刀\n friendBargainFirst = () => {\n this.toKanjia(getParam('id'), 3, this.state.originatorUid)\n }\n\n // 帮好友砍价第二刀\n friendBargainSecond = () => {\n this.toKanjia(getParam('id'), 4, this.state.originatorUid)\n }\n\n // 邀请好友砍价\n shareFriendBargain = () => {\n this.setState({\n isShowOverlay: true,\n status: 7,\n isshowYindao: browser.isWeixin ? true : false\n })\n }\n\n // 关闭弹窗\n close = () => {\n this.setState({\n isShowOverlay: false,\n status: '',\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n render() {\n let thirdRow, btn\n // is_artifact\t 0-再邀请多少人可以使用 1-可以使用未领取 2-已领取 3-已使用\n if (this.state.bargainData.is_artifact === 0) {\n thirdRow =\n <div>再邀请<span className={'indicator'}>{this.state.bargainData.invite_num}</span>位好友助力即可获得<span\n className={'indicator'}>【砍价神器】</span></div>\n } else if (this.state.bargainData.is_artifact === 1) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.toArtifact}>立即领取</button>\n } else if (this.state.bargainData.is_artifact === 2) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.useArtifact}>立即使用</button>\n }\n\n\n let bargainBtn\n if (this.state.isOriginator !== 1 && this.state.data.assist_status === 0 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainFirst}>帮好友砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 1) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainSecond}>再砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>已帮好友助力</button>\n } else if (this.state.data.bargain_status === 1 || this.state.data.bargain_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>砍价结束</button>\n } else if (this.state.isOriginator === 1 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.shareFriendBargain}>邀请好友砍价</button>\n }\n return (\n <div className={'bargain-middle-page'}>\n <HeaderBar title='砍价详情' arrow={true} cart={true}></HeaderBar>\n {/*<Loading isLoading={this.state.isLoaidng}>*/}\n <div className=\"top\">\n <div className=\"bargain-area\">\n {\n this.state.isOriginator !== 1 &&\n <p className='bargain-tip'>你的好友发现一门精品课程,快来一起帮他砍价:</p>\n }\n\n <ul>\n <VList\n img={this.state.course.course_img}\n info={\n <CourseDes\n isOriginator={this.state.isOriginator}\n data={this.state.data}\n toCart={this.toCart}/>\n }\n />\n </ul>\n <div className=\"bargain-detail\">\n <div className=\"top\">\n <div>\n 已砍<span className={'reduced-price'}>{this.state.bargainData.bargain_price}元</span>\n </div>\n {\n this.state.data.bargain_status === 0 &&\n <div>\n <span\n className={'time hour'}>{String(this.state.hour).padStart(2, 0)}</span> :&nbsp;\n <span\n className={'time min'}>{String(this.state.min).padStart(2, 0)}</span> :&nbsp;\n <span className={'time sec'}>{String(this.state.sec).padStart(2, 0)}</span>\n <span className={'inactive'}> 后砍价结束</span>\n </div>\n }\n {\n this.state.data.bargain_status === 1 && this.state.isOriginator === 1 &&\n <span className={'inactive'}>砍价结束</span>\n }\n\n </div>\n <div className=\"middle\">\n <span style={{width: this.state.width}}></span>\n </div>\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 0 &&\n <div>\n {thirdRow}\n {btn}\n </div>\n }\n\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 1 &&\n <div>\n 砍价金额将于\n <span className={'time hour'}>{String(this.state.day).padStart(2, 0)}</span><span\n className={'unit'}> 天 </span>\n <span className={'time min'}>{String(this.state.hour).padStart(2, 0)}</span><span\n className={'unit'}> 时 </span>\n <span className={'time sec'}>{String(this.state.min).padStart(2, 0)}</span><span\n className={'unit'}>分</span>\n 后清零,请尽快完成支付\n </div>\n }\n\n <div className={'button'}>\n {bargainBtn}\n </div>\n\n </div>\n </div>\n <div className=\"bargain-records\">\n <div className=\"title\">砍价记录</div>\n <ul>\n {\n this.state.outList && this.state.outList.length > 0 && this.state.outList.map((item, index) => {\n return (\n <li key={index}>\n <div className=\"left\">\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <span className={'nickname'}>{item.user_name}</span>\n <span className=\"rank-tag\">{item.rank}</span>\n </div>\n <div className=\"right\">\n <img className='kanjia-icon' src={this.state.kanjiaIcon} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </div>\n </li>\n )\n })\n\n }\n\n </ul>\n <div className=\"more\" onClick={this.getMore}>查看更多>></div>\n </div>\n </div>\n <div className=\"bargain-course-list\" id='bargainCourse'>\n <div className=\"title-wrapper\">\n <div className=\"title\">我要砍价</div>\n <div className=\"subtitle\">邀请{this.state.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</div>\n </div>\n <ul>\n {\n this.state.courseList && this.state.courseList.length > 0 && this.state.courseList.map((item, index) => {\n return <Course\n className={'text-overflow-2'}\n key={index}\n id={item.course_id}\n img={item.image_name}\n title={item.course_title}\n toDetail={this.toCourseDetail}\n bottom={\n <CourseBottom\n item={item}\n toCartBottom={this.toCartBottom.bind(this,item.course_id)}\n toDetail={this.toCourseDetail}\n />\n }\n />\n })\n }\n </ul>\n </div>\n <Link to={'/classify'} className={'preferential'}>查看更多精品课程 >></Link>\n\n\n {/*更多好友砍价*/}\n <Ranking list={this.state.list} icon={this.state.kanjiaIcon} limitPeople={this.state.limitPeople}\n isShowMore={this.state.isShowMore} boxHide={this.boxHide}></Ranking>\n\n\n {\n this.state.isShowOverlay &&\n <Overlay>\n\n {/*砍价成功去分享*/}\n {\n this.state.status === 7 &&\n <BargainSuccess isshowYindao={this.state.isshowYindao} limitPeople={this.state.limitPeople}\n close={this.close}/>\n }\n\n\n {/*引导关注公众号*/}\n {\n this.state.status === 1 &&\n <PublicNumber\n money={this.state.amount}\n avatar={this.props.user.data.avatar}\n firendBaigainPrice={this.state.firendBaigainPrice}/>\n }\n\n {/*好友成功砍第一刀*/}\n {\n this.state.status === 2 &&\n <BargainFirst\n bargainSecond={this.friendBargainSecond}\n money={this.state.amount}\n />\n }\n {/*好友成功砍第二刀*/}\n {\n this.state.status === 3 &&\n <BargainSecond close={this.close} money={this.state.amount}/>\n }\n {/*不能在砍了*/}\n {\n this.state.status === 4 &&\n <NotBargain close={this.close} limitPeople={this.state.limitPeople}/>\n }\n {/*领取砍价神器*/}\n {\n this.state.status === 5 &&\n <Artifact useArtifact={this.useArtifact}/>\n }\n {/*使用砍价神器*/}\n {\n this.state.status === 6 &&\n <UseArtifact toCart={this.toCart} money={this.state.amount}\n allMoney={this.state.bargainData.bargain_price}/>\n }\n\n {\n this.state.status !== 7 &&\n <i onClick={this.close} className={'iconfont iconiconfront-2 bargain-close'}></i>\n }\n </Overlay>\n\n }\n {/*</Loading>*/}\n\n </div>\n );\n }\n}\n\nfunction CourseDes(props) {\n const data = props.data && props.data.course\n return (\n <div className={'des'}>\n <div className=\"course-title text-overflow-2\">\n {data.course_title}\n </div>\n <div className=\"price-bar\">\n <span className={'discount-price'}>¥{data.course_price}</span>\n {\n props.isOriginator === 1 &&\n <button className={'purchase-btn'}\n onClick={props.toCart}>¥{data.pay_price}去支付\n </button>\n }\n </div>\n </div>\n )\n}\n\nfunction CourseBottom(props) {\n let Buttons\n if (props.item.bargain_status === 2) {\n // Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>\n Buttons = <a href=\"javascript:;\" onClick={() => props.toDetail(props.item.course_id)} className={'bargain bargian-study'}>我要砍价</a>\n } else if (props.item.bargain_status === 3) {\n Buttons = <Link to={`/play/video?id=${props.item.v_course_id}`} className={classnames('bargain', 'button--study')}>去学习</Link>\n } else {\n Buttons = (\n <div className=\"btns\">\n {/*<button className={classnames('bargain-btn', {invalid: props.item.bargain_status === 2})}>*/}\n {/*{props.item.bargain_status === 2 ? '砍价结束' : '继续砍价'}*/}\n {/*</button>*/}\n {\n props.item.bargain_status === 1 &&\n <button className='invalid'>砍价结束</button>\n }\n {\n props.item.bargain_status === 0 &&\n <a href=\"javascript:;\" onClick={() => props.toDetail(props.item.course_id)} className={'bargain-btn'}>我要砍价</a>\n\n }\n\n\n <button onClick={props.toCartBottom}\n className={'purchase-btn'}>¥{props.item.pay_price}去支付\n </button>\n </div>\n )\n }\n return (\n <div className=\"course-bottom\">\n <div className={'course-price'}>\n <span className={'discount-price'}>¥{props.item.price1}</span>\n <span className={'original-price'}>¥{props.item.price0}</span>\n </div>\n {Buttons}\n </div>\n )\n}\n\n\nfunction PublicNumber(props) {\n return (\n <div className='bargain-public-number'>\n\n <img className='avait' src={props.avatar} alt=\"\"/>\n\n {\n props.firendBaigainPrice &&\n <p className='status-title ff4'>谢谢你帮我砍了{props.money}元!</p>\n }\n <p className='status-dec'>关注公众号,可以再砍一刀哦~</p>\n <img className='public-number-img'\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n </div>\n )\n}\n\nfunction BargainFirst(props) {\n return (\n <div className='bargain-first'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>谢谢你帮我砍了<span className='ff4'>{props.money}元</span>!</p>\n <p className='status-dec'>你还可以帮我再砍一刀哦~</p>\n <button className='bargain-href' onClick={props.bargainSecond}>再砍一刀</button>\n </div>\n )\n}\n\nfunction BargainSecond(props) {\n return (\n <div className='bargain-second'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>厉害了,又帮好友砍掉<span className='ff4'>{props.money}元</span>!</p>\n <a className='bargain-href' href='#bargainCourse' onClick={props.close}>我也要砍价</a>\n </div>\n )\n}\n\nfunction NotBargain(props) {\n return (\n <div className='not-bargain'>\n <img className='middle-img' src={require('./image/kanjia_no_iccon.png')} alt=\"\"/>\n <p className='status-title'>你的好友用【砍价神器】把我砍蒙圈了<br/>不能再砍了哦~</p>\n <p className='status-dec'>邀请{props.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</p>\n <a className='bargain-href' href='#bargainCourse' onClick={props.close}>我也要砍价</a>\n </div>\n )\n}\n\nfunction Artifact(props) {\n return (\n <div className='artifact-box'>\n <p className='top-tip'>恭喜你获得【砍价神器】!</p>\n <p className='middle-tip'>\n 您可以使用\n <span className={'indicator'}>【砍价神器】</span>\n 再砍一刀\n </p>\n <button className='use-artifact' onClick={props.useArtifact}>立即使用</button>\n </div>\n )\n}\n\nfunction UseArtifact(props) {\n return (\n <div className='use-artifact-box'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='top-tip'>厉害了,又砍掉了{props.money}元!</p>\n <p className='middle-tip'>\n 你已经砍了\n <span className={'indicator'}>{props.allMoney}元</span>\n 没见过你这么能砍的人...\n </p>\n <p className='btm-tip'>\n 不能再砍了哦~\n </p>\n <button className='tubuy' onClick={props.toCart}>去支付</button>\n </div>\n )\n}\n\n\nfunction BargainSuccess(props) {\n return (\n <div>\n <div className='close-bargain-success' onClick={props.close}></div>\n\n <div className=\"bargain-success\">\n {\n props.isshowYindao &&\n <i className='iconfont iconyindao'></i>\n }\n <p>分享到微信群邀请更多好友帮忙砍价</p>\n <p>超过{props.limitPeople}位好友助力可获得<span className={'indicator'} style={{color: '#FF4000'}}>【砍价神器】</span>哦\n </p>\n </div>\n </div>\n )\n}\n\n\nexport default withRouter(BargainMiddlePage);\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII=\"","import React, { Component } from 'react';\nimport ReactDom from \"react-dom\";\n\nimport './overlay.scss'\n\nconst root = document.body || document.documentElement\n\nconst events = ['touchmove', 'mousewheel']\n\nclass Overlay extends Component {\n constructor(props) {\n super(props);\n this.overlayBox = null\n }\n\n preventScroll = e => {\n e.preventDefault()\n }\n\n componentDidMount() {\n events.forEach(item => {\n this.overlayBox.addEventListener(item, this.preventScroll, {\n passive: false\n })\n })\n }\n\n componentWillUnmount() {\n events.forEach(item => {\n this.overlayBox.removeEventListener(item, this.preventScroll)\n })\n }\n\n render() {\n return ReactDom.createPortal(\n (<div className={'overlay'}\n ref={el => this.overlayBox = el}\n style={{top: `${window.scrollY}px`}}\n >{this.props.children}</div>),\n root\n )\n }\n}\n\nexport default Overlay;","import React, {Component} from 'react'\nimport './index.scss'\n\nclass Ranking extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n kanjiaIcon: require('../image/kanjia_icon.png')\n }\n }\n\n // 关闭更多窗口\n closeMore = () => {\n this.props.boxHide(false);\n }\n\n render() {\n return (\n <div className={'ranking-box'}>\n {\n this.props.isShowMore &&\n <MoreList list={this.props.list} limitPeople={this.props.limitPeople} closeMore={this.closeMore}\n img={this.props.icon}/>\n }\n </div>\n );\n }\n}\n\nfunction MoreList(props) {\n return (\n <div className=\"moreMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n 好友助力详情\n </div>\n <ul className='more-bargain-list'>\n {\n props.list && props.list.length > 0 && props.list.map((item, index) => {\n return (\n <li key={index} className='bargain-item'>\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <p className='name'>{item.user_name}</p>\n <p className='bargain-status'>\n <img className='kanjia-icon' src={props.img} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </p>\n </li>\n )\n })\n }\n </ul>\n <div className='more-bargain-dec'>\n 超过{props.limitPeople}位好友助力可获得【砍价神器】\n </div>\n </div>\n <i onClick={props.closeMore} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n )\n}\n\nexport default Ranking","module.exports = __webpack_public_path__ + \"static/media/kanjia_cg_icon.81a489ac.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGVcUnqxjj40TWBdkmIe0igjUT+z0B7cUu6oUDKrj3yzDZrZU3Gqz7iwDn2zjX60TSwmkHuyTfvxTN7SCtfXFBbWVCNgEjStDznwjikdC6XZi2HVSxiXk+adkiYiEbdvDrWqjF/TCtmYU5vaE12bUyShEacikW1nkHitjLQojGlkkPTrDzZuTrHmTDDljC2iC+sfS6slkK9o0DHo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YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg==\""],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1164:function(t,a,e){"use strict";e.r(a);var s,i=e(23),n=(e(43),e(14)),r=e.n(n),c=e(7),l=e(8),o=e(10),m=e(9),u=e(11),d=e(0),h=e.n(d),g=(e(896),e(30)),p=e(4),b=e(18),E=e(51),v=e(670),f=e(157),j=e(630),N=e(20),y=(e(62),Object(N.b)(function(t){return{user:t.user}})(s=function(t){function a(t){var s;return Object(c.a)(this,a),(s=Object(o.a)(this,Object(m.a)(a).call(this,t))).getBargainInfo=function(){p.c.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(p.b)("bargaincode"),"&is_originator=").concat(Object(p.b)("is_originator"))).then(function(t){200===t.data.code?s.setState({data:t.data.data,isOriginator:t.data.data.is_originator,originatorUid:t.data.data.originator_uid,course:t.data.data.course,limitPeople:t.data.data.course.limit_people,bargainData:t.data.data.bargain,width:100*(t.data.data.bargain.bargain_price/t.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(s.state.bargainData.expire_time){var t=1e3*s.state.bargainData.expire_time,a=Date.now();clearInterval(s.timer),s.timer=setInterval(function(){var e=new Date(t-=1e3),i=Object(f.differenceInSeconds)(e,a)%60,n=Object(f.differenceInMinutes)(e,a)%60,r=Object(f.differenceInHours)(e,a)%24,c=Object(f.differenceInDays)(e,a)%24;s.setState({hour:r,min:n,sec:i,day:c})},1e3)}}):r.a.info(t.data.msg,2)})},s.getBargainCourse=function(){p.c.get("".concat(API.home,"/m/bargain/courseList")).then(function(t){200===t.data.code?s.setState({courseList:t.data.data}):r.a.info(t.data.msg,2)})},s.getBargainRankList=function(t,a){var e={courseId:t,type:a};p.c.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(t){if(200===t.data.code){var a=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],e=t.data.data.out_list.map(function(t,e){return Object(i.a)({},t,{rank:a[e]})});s.setState({list:t.data.data.list,outList:e})}else r.a.info(t.data.msg,2)})},s.toCart=function(){var t={course_id:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/cart/add"),t).then(function(t){200===t.data.code||15001===t.data.code?s.props.history.push("/shopcart"):r.a.info(t.data.msg,2)})},s.toCartBottom=function(t){var a={course_id:t};p.c.post("".concat(API.home,"/m/cart/add"),a).then(function(t){200===t.data.code||15001===t.data.code?s.props.history.push("/shopcart"):r.a.info(t.data.msg,2)})},s.getMore=function(){s.setState({isShowMore:!0})},s.boxHide=function(t){s.setState({isShowMore:t})},s.toArtifact=function(){var t={courseId:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/bargain/receiveLimit"),t).then(function(t){200===t.data.code?s.setState({isShowOverlay:!0,status:5}):r.a.info(t.data.msg,2)})},s.useArtifact=function(){s.toKanjia(Object(p.b)("id"),2,0)},s.toKanjia=function(t,a,e){var i={course_id:t,type:a,parent_uid:e};p.c.post("".concat(API.home,"/m/bargain/toBargain"),i).then(function(t){200===t.data.code?(s.setState({amount:t.data.data.amount}),2===a&&s.setState({isShowOverlay:!0,status:6}),1===t.data.data.is_success?s.setState({isShowOverlay:!0,status:4}):2===t.data.data.is_success?3===a?s.setState({isShowOverlay:!0,status:2}):4===a&&s.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===t.data.data.is_success&&(3===a?s.setState({isShowOverlay:!0,status:2}):4===a&&s.setState({isShowOverlay:!0,status:3})),s.getBargainInfo()):r.a.info(t.data.msg,2)})},s.friendBargainFirst=function(){s.toKanjia(Object(p.b)("id"),3,s.state.originatorUid)},s.friendBargainSecond=function(){s.toKanjia(Object(p.b)("id"),4,s.state.originatorUid)},s.shareFriendBargain=function(){s.setState({isShowOverlay:!0,status:7,isshowYindao:!!p.a.isWeixin})},s.close=function(){s.setState({isShowOverlay:!1,status:""})},s.toCourseDetail=function(t){var a=s.props;a.dispatch;return a.history.push("/detail?id=".concat(t)),!1},s.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:e(629),course:{},courseList:[],data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0},s}return Object(u.a)(a,t),Object(l.a)(a,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(p.b)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"render",value:function(){var t,a,e,s=this;return 0===this.state.bargainData.is_artifact?t=h.a.createElement("div",null,"\u518d\u9080\u8bf7",h.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(t=h.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=h.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(t=h.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=h.a.createElement("button",{className:"artifact-btn",onClick:this.useArtifact},"\u7acb\u5373\u4f7f\u7528")),1!==this.state.isOriginator&&0===this.state.data.assist_status&&0===this.state.data.bargain_status?e=h.a.createElement("button",{className:"active-btn",onClick:this.friendBargainFirst},"\u5e2e\u597d\u53cb\u780d\u4e00\u5200"):1!==this.state.isOriginator&&1===this.state.data.assist_status?e=h.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):1!==this.state.isOriginator&&2===this.state.data.assist_status?e=h.a.createElement("button",{className:"invalid-btn"},"\u5df2\u5e2e\u597d\u53cb\u52a9\u529b"):1===this.state.data.bargain_status||2===this.state.data.bargain_status?e=h.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f"):1===this.state.isOriginator&&0===this.state.data.bargain_status&&(e=h.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")),h.a.createElement("div",{className:"bargain-middle-page"},h.a.createElement(g.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0}),h.a.createElement("div",{className:"top"},h.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&h.a.createElement("p",{className:"bargain-tip"},"\u4f60\u7684\u597d\u53cb\u53d1\u73b0\u4e00\u95e8\u7cbe\u54c1\u8bfe\u7a0b\uff0c\u5feb\u6765\u4e00\u8d77\u5e2e\u4ed6\u780d\u4ef7\uff1a"),h.a.createElement("ul",null,h.a.createElement(g.i,{img:this.state.course.course_img,info:h.a.createElement(S,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),h.a.createElement("div",{className:"bargain-detail"},h.a.createElement("div",{className:"top"},h.a.createElement("div",null,"\u5df2\u780d",h.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&h.a.createElement("div",null,h.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",h.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",h.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),h.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&h.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),h.a.createElement("div",{className:"middle"},h.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&h.a.createElement("div",null,t,a),1===this.state.isOriginator&&1===this.state.data.bargain_status&&h.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",h.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),h.a.createElement("span",{className:"unit"}," \u5929 "),h.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),h.a.createElement("span",{className:"unit"}," \u65f6 "),h.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),h.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),h.a.createElement("div",{className:"button"},e))),h.a.createElement("div",{className:"bargain-records"},h.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),h.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(t,a){return h.a.createElement("li",{key:a},h.a.createElement("div",{className:"left"},h.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),h.a.createElement("span",{className:"nickname"},t.user_name),h.a.createElement("span",{className:"rank-tag"},t.rank)),h.a.createElement("div",{className:"right"},h.a.createElement("img",{className:"kanjia-icon",src:s.state.kanjiaIcon,alt:""}),"\u780d\u6389",h.a.createElement("span",{className:"price"},t.amount)))})),h.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),h.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},h.a.createElement("div",{className:"title-wrapper"},h.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),h.a.createElement("div",{className:"subtitle"},"\u9080\u8bf7",this.state.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),h.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(t,a){return h.a.createElement(g.d,{className:"text-overflow-2",key:a,id:t.course_id,img:t.image_name,title:t.course_title,toDetail:s.toCourseDetail,bottom:h.a.createElement(A,{item:t,toCartBottom:s.toCartBottom.bind(s,t.course_id),toDetail:s.toCourseDetail})})}))),h.a.createElement(b.b,{to:"/classify",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),h.a.createElement(v.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&h.a.createElement(j.a,null,7===this.state.status&&h.a.createElement(O,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&h.a.createElement(C,{money:this.state.amount,avatar:this.props.user.data.avatar,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&h.a.createElement(B,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&h.a.createElement(k,{close:this.close,money:this.state.amount}),4===this.state.status&&h.a.createElement(U,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&h.a.createElement(w,{useArtifact:this.useArtifact}),6===this.state.status&&h.a.createElement(D,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&h.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),a}(d.Component))||s);function S(t){var a=t.data&&t.data.course;return h.a.createElement("div",{className:"des"},h.a.createElement("div",{className:"course-title text-overflow-2"},a.course_title),h.a.createElement("div",{className:"price-bar"},h.a.createElement("span",{className:"discount-price"},"\uffe5",a.course_price),1===t.isOriginator&&h.a.createElement("button",{className:"purchase-btn",onClick:t.toCart},"\xa5",a.pay_price,"\u53bb\u652f\u4ed8")))}function A(t){var a;return a=2===t.item.bargain_status?h.a.createElement("a",{href:"javascript:;",onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain"},"\u6211\u8981\u780d\u4ef7"):3===t.item.bargain_status?h.a.createElement(b.b,{to:"/play/video?id=".concat(t.item.v_course_id),className:"bargain"},"\u53bb\u5b66\u4e60"):h.a.createElement("div",{className:"btns"},1===t.item.bargain_status&&h.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===t.item.bargain_status&&h.a.createElement("a",{href:"javascript:;",onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain-btn"},"\u6211\u8981\u780d\u4ef7"),h.a.createElement("button",{onClick:t.toCartBottom,className:"purchase-btn"},"\xa5",t.item.pay_price,"\u53bb\u652f\u4ed8")),h.a.createElement("div",{className:"course-bottom"},h.a.createElement("div",{className:"course-price"},h.a.createElement("span",{className:"discount-price"},"\xa5",t.item.price1),h.a.createElement("span",{className:"original-price"},"\xa5",t.item.price0)),a)}function C(t){return h.a.createElement("div",{className:"bargain-public-number"},h.a.createElement("img",{className:"avait",src:t.avatar,alt:""}),t.firendBaigainPrice&&h.a.createElement("p",{className:"status-title ff4"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",t.money,"\u5143\uff01"),h.a.createElement("p",{className:"status-dec"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),h.a.createElement("img",{className:"public-number-img",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}))}function B(t){return h.a.createElement("div",{className:"bargain-first"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",h.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),h.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),h.a.createElement("button",{className:"bargain-href",onClick:t.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function k(t){return h.a.createElement("div",{className:"bargain-second"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",h.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),h.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function U(t){return h.a.createElement("div",{className:"not-bargain"},h.a.createElement("img",{className:"middle-img",src:e(897),alt:""}),h.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",h.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),h.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",t.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),h.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function w(t){return h.a.createElement("div",{className:"artifact-box"},h.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),h.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),h.a.createElement("button",{className:"use-artifact",onClick:t.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function D(t){return h.a.createElement("div",{className:"use-artifact-box"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",t.money,"\u5143\uff01"),h.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",h.a.createElement("span",{className:"indicator"},t.allMoney,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),h.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),h.a.createElement("button",{className:"tubuy",onClick:t.toCart},"\u53bb\u652f\u4ed8"))}function O(t){return h.a.createElement("div",null,h.a.createElement("div",{className:"close-bargain-success",onClick:t.close}),h.a.createElement("div",{className:"bargain-success"},t.isshowYindao&&h.a.createElement("i",{className:"iconfont iconyindao"}),h.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),h.a.createElement("p",null,"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",h.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}a.default=Object(E.g)(y)},629:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},630:function(t,a,e){"use strict";var s=e(7),i=e(8),n=e(10),r=e(9),c=e(11),l=e(0),o=e.n(l),m=e(21),u=e.n(m),d=(e(672),document.body||document.documentElement),h=["touchmove","mousewheel"],g=function(t){function a(t){var e;return Object(s.a)(this,a),(e=Object(n.a)(this,Object(r.a)(a).call(this,t))).preventScroll=function(t){t.preventDefault()},e.overlayBox=null,e}return Object(c.a)(a,t),Object(i.a)(a,[{key:"componentDidMount",value:function(){var t=this;h.forEach(function(a){t.overlayBox.addEventListener(a,t.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var t=this;h.forEach(function(a){t.overlayBox.removeEventListener(a,t.preventScroll)})}},{key:"render",value:function(){var t=this;return u.a.createPortal(o.a.createElement("div",{className:"overlay",ref:function(a){return t.overlayBox=a},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),a}(l.Component);a.a=g},670:function(t,a,e){"use strict";var s=e(7),i=e(8),n=e(10),r=e(9),c=e(11),l=e(0),o=e.n(l),m=(e(671),function(t){function a(t){var i;return Object(s.a)(this,a),(i=Object(n.a)(this,Object(r.a)(a).call(this,t))).closeMore=function(){i.props.boxHide(!1)},i.state={kanjiaIcon:e(629)},i}return Object(c.a)(a,t),Object(i.a)(a,[{key:"render",value:function(){return o.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&o.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),a}(l.Component));function u(t){return o.a.createElement("div",{className:"moreMbc"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),o.a.createElement("ul",{className:"more-bargain-list"},t.list&&t.list.length>0&&t.list.map(function(a,e){return o.a.createElement("li",{key:e,className:"bargain-item"},o.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),o.a.createElement("p",{className:"name"},a.user_name),o.a.createElement("p",{className:"bargain-status"},o.a.createElement("img",{className:"kanjia-icon",src:t.img,alt:""}),"\u780d\u6389",o.a.createElement("span",{className:"price"},a.amount)))})),o.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),o.a.createElement("i",{onClick:t.closeMore,className:"iconfont iconiconfront-2 close"}))}a.a=m},671:function(t,a,e){},672:function(t,a,e){},673:function(t,a,e){t.exports=e.p+"static/media/kanjia_cg_icon.81a489ac.png"},896:function(t,a,e){},897:function(t,a){t.ex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LHXW+f9bo//sDeuqkLv6/OX0IvF7BpnqMJYPC0xGf7hNy11jIIwEERheBrBQtBGBBHBxlKwUzyCt3jNMrYBDXY2c4Itt9lyNycIKcSbqUEhEyxMYL8LTPEPb03KAUkcSVkgiR0pYyQxImWKFPakTZDChlpmSGBLLRt8mcqWD1egjzxTr7+kljU+7J0lBOESnV0jM0u0uYr/K/+NhZld7gM68+JsFOGQoTanttUAtUr4JcL6HlccHvxmG/uiDVEz3gnfKxNP6KzwcMws4dzIom2/AS/mApgcPRSZsaW7WZVF2eEvz1bqZ0VBKIrj+NkILhLdSBBpROZKhtoV7QyKmHmKw8GW81AudJfaX4Ji6MlmIqaUbveY9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=BargainMiddlePage.5d9a1888.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/bargainMiddlePage/index.js","components/bargainMiddlePage/image/kanjia_icon.png","components/detail/overlay/index.js","components/bargainMiddlePage/ranking/index.js","components/bargainMiddlePage/image/kanjia_cg_icon.png","components/bargainMiddlePage/image/kanjia_no_iccon.png"],"names":["BargainMiddlePage","connect","state","user","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","call","getBargainInfo","http","get","concat","API","home","getParam","then","res","data","code","setState","isOriginator","is_originator","originatorUid","originator_uid","course","limitPeople","limit_people","bargainData","bargain","width","bargain_price","total_price","toFixed","expire_time","date","now","Date","clearInterval","timer","setInterval","_d","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","d","differenceInDays","hour","min","sec","day","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","a","info","msg","getBargainCourse","courseList","getBargainRankList","id","type","courseId","post","arr","newList","out_list","map","item","i","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","rank","list","outList","toCart","course_id","history","push","toCartBottom","getMore","isShowMore","boxHide","val","toArtifact","isShowOverlay","status","useArtifact","toKanjia","uid","parent_uid","amount","is_success","firendBaigainPrice","friendBargainFirst","friendBargainSecond","shareFriendBargain","isshowYindao","browser","isWeixin","close","toCourseDetail","_this$props","dispatch","kanjiaIcon","require","isLoaidng","thirdRow","btn","bargainBtn","_this2","is_artifact","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","invite_num","onClick","assist_status","bargain_status","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","img","course_img","CourseDes","String","padStart","style","length","index","key","src","avatar_file","alt","user_name","image_name","course_title","toDetail","bottom","CourseBottom","bind","react_router_dom__WEBPACK_IMPORTED_MODULE_12__","to","_ranking__WEBPACK_IMPORTED_MODULE_14__","icon","_detail_overlay__WEBPACK_IMPORTED_MODULE_16__","BargainSuccess","PublicNumber","money","avatar","BargainFirst","bargainSecond","BargainSecond","NotBargain","Artifact","UseArtifact","allMoney","Component","course_price","pay_price","Buttons","href","v_course_id","price1","price0","color","withRouter","module","exports","root","document","body","documentElement","events","Overlay","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","preventScroll","e","preventDefault","overlayBox","forEach","addEventListener","passive","_this3","removeEventListener","_this4","ReactDom","createPortal","react__WEBPACK_IMPORTED_MODULE_5___default","ref","el","top","window","scrollY","children","Ranking","closeMore","MoreList","__webpack_require__","p"],"mappings":"yQAiBMA,SAHLC,YAAQ,SAAAC,GAAK,MAAK,CACfC,KAAMD,EAAMC,sBAMZ,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,KAiCVQ,eAAiB,WAEbC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,gCAAAF,OAAmDG,YAAS,eAA5D,mBAAAH,OAA4FG,YAAS,mBAAoBC,KAAK,SAACC,GACrG,MAAlBA,EAAIC,KAAKC,KACTjB,EAAKkB,SACD,CACIF,KAAMD,EAAIC,KAAKA,KACfG,aAAcJ,EAAIC,KAAKA,KAAKI,cAC5BC,cAAeN,EAAIC,KAAKA,KAAKM,eAC7BC,OAAQR,EAAIC,KAAKA,KAAKO,OACtBC,YAAaT,EAAIC,KAAKA,KAAKO,OAAOE,aAClCC,YAAaX,EAAIC,KAAKA,KAAKW,QAC3BC,MAA8F,KAAt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sourcesContent":["import React, { Component } from 'react'\nimport './bargain-middle-page.scss'\nimport { HeaderBar, VList } from '@common'\nimport { Course } from '@common'\nimport { api, getParam, http, browser } from \"@/utils\"\nimport { Toast } from \"antd-mobile\"\nimport { Link, withRouter } from \"react-router-dom\"\nimport Ranking from './ranking'\nimport { differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays } from \"date-fns\"\nimport Overlay from '../detail/overlay'\nimport { compose } from \"redux\"\nimport { connect } from \"react-redux\";\nimport {getCourses} from './../detail/actions';\n\n@connect(state => ({\n user: state.user\n}))\nclass BargainMiddlePage extends Component {\n\n timer\n\n constructor(props) {\n super(props)\n this.state = {\n isShowOverlay: false,\n isOriginator: '',\n kanjiaIcon: require('./image/kanjia_icon.png'),\n course: {}, // 当前砍价课程\n courseList: [], // 所有砍价课程\n data: '',\n bargainData: '',\n limitPeople: 0,\n outList: [],\n list: [],\n width: '0',\n isShowMore: '',\n status: '',\n hour: '',\n min: '',\n sec: '',\n day: '',\n amount: '',\n firendBaigainPrice: true,\n isshowYindao: false,\n isLoaidng: true\n }\n }\n\n componentDidMount() {\n this.getBargainRankList(getParam('id'), 1)\n this.getBargainCourse()\n this.getBargainInfo()\n }\n\n // 获取砍价信息\n getBargainInfo = () => {\n\n http.get(`${API.home}/m/bargain/info?bargaincode=${getParam('bargaincode')}&is_originator=${getParam('is_originator')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState(\n {\n data: res.data.data,\n isOriginator: res.data.data.is_originator,\n originatorUid: res.data.data.originator_uid,\n course: res.data.data.course,\n limitPeople: res.data.data.course.limit_people,\n bargainData: res.data.data.bargain,\n width: (res.data.data.bargain.bargain_price / res.data.data.bargain.total_price).toFixed(2) * 100 + '%'\n },\n () => {\n if (this.state.bargainData.expire_time) {\n let date = this.state.bargainData.expire_time * 1000\n let now = Date.now()\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n date -= 1000\n let _d = new Date(date)\n let s = differenceInSeconds(_d, now) % 60,\n m = differenceInMinutes(_d, now) % 60,\n h = differenceInHours(_d, now) % 24,\n d = differenceInDays(_d, now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n day: d\n })\n\n }, 1000)\n }\n }\n )\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取砍价课程\n getBargainCourse = () => {\n http.get(`${API.home}/m/bargain/courseList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n courseList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取助理好友\n getBargainRankList = (id, type) => {\n let data = {\n courseId: id,\n type: type\n }\n http.post(`${API.home}/m/bargain/rankList`, data).then((res) => {\n if (res.data.code === 200) {\n let arr = ['刀神', '刀王', '刀霸']\n let newList = res.data.data.out_list.map((item, i) => {\n return {\n ...item,\n rank: arr[i]\n }\n })\n this.setState({\n list: res.data.data.list,\n outList: newList\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 加入购物车\n toCart = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API.home}/m/cart/add`, data).then((res) => {\n if (res.data.code === 200 || res.data.code === 15001) {\n this.props.history.push('/shopcart')\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 我要砍价列表的去支付\n toCartBottom=(id)=>{\n let data = {\n course_id: id\n }\n http.post(`${API.home}/m/cart/add`, data).then((res) => {\n if (res.data.code === 200 || res.data.code === 15001) {\n this.props.history.push('/shopcart')\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n // 查看更多\n getMore = () => {\n this.setState({\n isShowMore: true\n })\n }\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({isShowMore: val})\n }\n\n // 领取砍价神器\n toArtifact = () => {\n let data = {\n courseId: getParam('id')\n }\n http.post(`${API.home}/m/bargain/receiveLimit`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShowOverlay: true,\n status: 5,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 使用砍价神器\n useArtifact = () => {\n this.toKanjia(getParam('id'), 2, 0)\n }\n\n // 砍价接口\n toKanjia = (id, type, uid) => {\n let data = {\n course_id: id,\n type: type, // 1 用户自己砍价 2 使用砍价神器 3 好友助力砍价 4 好友第二次助力\n parent_uid: uid // 被助力人id 【自己本人操作传0】\n }\n http.post(`${API.home}/m/bargain/toBargain`, data).then((res) => {\n if (res.data.code === 200) {\n // is_success =0一切正常 =1 不能在砍了 =2关注公众号,可以再砍一刀!\n this.setState({\n amount: res.data.data.amount\n })\n if (type === 2) {\n this.setState({\n isShowOverlay: true,\n status: 6\n })\n }\n\n if (res.data.data.is_success === 1) {\n this.setState({\n isShowOverlay: true,\n status: 4\n })\n } else if (res.data.data.is_success === 2) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 1,\n firendBaigainPrice: false\n })\n }\n } else if (res.data.data.is_success === 0) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 3\n })\n }\n }\n\n this.getBargainInfo()\n\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n\n // 帮好友砍价第一刀\n friendBargainFirst = () => {\n this.toKanjia(getParam('id'), 3, this.state.originatorUid)\n }\n\n // 帮好友砍价第二刀\n friendBargainSecond = () => {\n this.toKanjia(getParam('id'), 4, this.state.originatorUid)\n }\n\n // 邀请好友砍价\n shareFriendBargain = () => {\n this.setState({\n isShowOverlay: true,\n status: 7,\n isshowYindao: browser.isWeixin ? true : false\n })\n }\n\n // 关闭弹窗\n close = () => {\n this.setState({\n isShowOverlay: false,\n status: '',\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n render() {\n let thirdRow, btn\n // is_artifact\t 0-再邀请多少人可以使用 1-可以使用未领取 2-已领取 3-已使用\n if (this.state.bargainData.is_artifact === 0) {\n thirdRow =\n <div>再邀请<span className={'indicator'}>{this.state.bargainData.invite_num}</span>位好友助力即可获得<span\n className={'indicator'}>【砍价神器】</span></div>\n } else if (this.state.bargainData.is_artifact === 1) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.toArtifact}>立即领取</button>\n } else if (this.state.bargainData.is_artifact === 2) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.useArtifact}>立即使用</button>\n }\n\n\n let bargainBtn\n if (this.state.isOriginator !== 1 && this.state.data.assist_status === 0 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainFirst}>帮好友砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 1) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainSecond}>再砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>已帮好友助力</button>\n } else if (this.state.data.bargain_status === 1 || this.state.data.bargain_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>砍价结束</button>\n } else if (this.state.isOriginator === 1 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.shareFriendBargain}>邀请好友砍价</button>\n }\n return (\n <div className={'bargain-middle-page'}>\n <HeaderBar title='砍价详情' arrow={true} cart={true}></HeaderBar>\n {/*<Loading isLoading={this.state.isLoaidng}>*/}\n <div className=\"top\">\n <div className=\"bargain-area\">\n {\n this.state.isOriginator !== 1 &&\n <p className='bargain-tip'>你的好友发现一门精品课程,快来一起帮他砍价:</p>\n }\n\n <ul>\n <VList\n img={this.state.course.course_img}\n info={\n <CourseDes\n isOriginator={this.state.isOriginator}\n data={this.state.data}\n toCart={this.toCart}/>\n }\n />\n </ul>\n <div className=\"bargain-detail\">\n <div className=\"top\">\n <div>\n 已砍<span className={'reduced-price'}>{this.state.bargainData.bargain_price}元</span>\n </div>\n {\n this.state.data.bargain_status === 0 &&\n <div>\n <span\n className={'time hour'}>{String(this.state.hour).padStart(2, 0)}</span> :&nbsp;\n <span\n className={'time min'}>{String(this.state.min).padStart(2, 0)}</span> :&nbsp;\n <span className={'time sec'}>{String(this.state.sec).padStart(2, 0)}</span>\n <span className={'inactive'}> 后砍价结束</span>\n </div>\n }\n {\n this.state.data.bargain_status === 1 && this.state.isOriginator === 1 &&\n <span className={'inactive'}>砍价结束</span>\n }\n\n </div>\n <div className=\"middle\">\n <span style={{width: this.state.width}}></span>\n </div>\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 0 &&\n <div>\n {thirdRow}\n {btn}\n </div>\n }\n\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 1 &&\n <div>\n 砍价金额将于\n <span className={'time hour'}>{String(this.state.day).padStart(2, 0)}</span><span\n className={'unit'}> 天 </span>\n <span className={'time min'}>{String(this.state.hour).padStart(2, 0)}</span><span\n className={'unit'}> 时 </span>\n <span className={'time sec'}>{String(this.state.min).padStart(2, 0)}</span><span\n className={'unit'}>分</span>\n 后清零,请尽快完成支付\n </div>\n }\n\n <div className={'button'}>\n {bargainBtn}\n </div>\n\n </div>\n </div>\n <div className=\"bargain-records\">\n <div className=\"title\">砍价记录</div>\n <ul>\n {\n this.state.outList && this.state.outList.length > 0 && this.state.outList.map((item, index) => {\n return (\n <li key={index}>\n <div className=\"left\">\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <span className={'nickname'}>{item.user_name}</span>\n <span className=\"rank-tag\">{item.rank}</span>\n </div>\n <div className=\"right\">\n <img className='kanjia-icon' src={this.state.kanjiaIcon} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </div>\n </li>\n )\n })\n\n }\n\n </ul>\n <div className=\"more\" onClick={this.getMore}>查看更多>></div>\n </div>\n </div>\n <div className=\"bargain-course-list\" id='bargainCourse'>\n <div className=\"title-wrapper\">\n <div className=\"title\">我要砍价</div>\n <div className=\"subtitle\">邀请{this.state.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</div>\n </div>\n <ul>\n {\n this.state.courseList && this.state.courseList.length > 0 && this.state.courseList.map((item, index) => {\n return <Course\n className={'text-overflow-2'}\n key={index}\n id={item.course_id}\n img={item.image_name}\n title={item.course_title}\n toDetail={this.toCourseDetail}\n bottom={\n <CourseBottom\n item={item}\n toCartBottom={this.toCartBottom.bind(this,item.course_id)}\n toDetail={this.toCourseDetail}\n />\n }\n />\n })\n }\n </ul>\n </div>\n <Link to={'/classify'} className={'preferential'}>查看更多精品课程 >></Link>\n\n\n {/*更多好友砍价*/}\n <Ranking list={this.state.list} icon={this.state.kanjiaIcon} limitPeople={this.state.limitPeople}\n isShowMore={this.state.isShowMore} boxHide={this.boxHide}></Ranking>\n\n\n {\n this.state.isShowOverlay &&\n <Overlay>\n\n {/*砍价成功去分享*/}\n {\n this.state.status === 7 &&\n <BargainSuccess isshowYindao={this.state.isshowYindao} limitPeople={this.state.limitPeople}\n close={this.close}/>\n }\n\n\n {/*引导关注公众号*/}\n {\n this.state.status === 1 &&\n <PublicNumber\n money={this.state.amount}\n avatar={this.props.user.data.avatar}\n firendBaigainPrice={this.state.firendBaigainPrice}/>\n }\n\n {/*好友成功砍第一刀*/}\n {\n this.state.status === 2 &&\n <BargainFirst\n bargainSecond={this.friendBargainSecond}\n money={this.state.amount}\n />\n }\n {/*好友成功砍第二刀*/}\n {\n this.state.status === 3 &&\n <BargainSecond close={this.close} money={this.state.amount}/>\n }\n {/*不能在砍了*/}\n {\n this.state.status === 4 &&\n <NotBargain close={this.close} limitPeople={this.state.limitPeople}/>\n }\n {/*领取砍价神器*/}\n {\n this.state.status === 5 &&\n <Artifact useArtifact={this.useArtifact}/>\n }\n {/*使用砍价神器*/}\n {\n this.state.status === 6 &&\n <UseArtifact toCart={this.toCart} money={this.state.amount}\n allMoney={this.state.bargainData.bargain_price}/>\n }\n\n {\n this.state.status !== 7 &&\n <i onClick={this.close} className={'iconfont iconiconfront-2 bargain-close'}></i>\n }\n </Overlay>\n\n }\n {/*</Loading>*/}\n\n </div>\n );\n }\n}\n\nfunction CourseDes(props) {\n const data = props.data && props.data.course\n return (\n <div className={'des'}>\n <div className=\"course-title text-overflow-2\">\n {data.course_title}\n </div>\n <div className=\"price-bar\">\n <span className={'discount-price'}>¥{data.course_price}</span>\n {\n props.isOriginator === 1 &&\n <button className={'purchase-btn'}\n onClick={props.toCart}>¥{data.pay_price}去支付\n </button>\n }\n </div>\n </div>\n )\n}\n\nfunction CourseBottom(props) {\n let Buttons\n if (props.item.bargain_status === 2) {\n // Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>\n Buttons = <a href=\"javascript:;\" onClick={() => props.toDetail(props.item.course_id)} className={'bargain'}>我要砍价</a>\n } else if (props.item.bargain_status === 3) {\n Buttons = <Link to={`/play/video?id=${props.item.v_course_id}`} className={'bargain'}>去学习</Link>\n } else {\n Buttons = (\n <div className=\"btns\">\n {/*<button className={classnames('bargain-btn', {invalid: props.item.bargain_status === 2})}>*/}\n {/*{props.item.bargain_status === 2 ? '砍价结束' : '继续砍价'}*/}\n {/*</button>*/}\n {\n props.item.bargain_status === 1 &&\n <button className='invalid'>砍价结束</button>\n }\n {\n props.item.bargain_status === 0 &&\n <a href=\"javascript:;\" onClick={() => props.toDetail(props.item.course_id)} className={'bargain-btn'}>我要砍价</a>\n\n }\n\n\n <button onClick={props.toCartBottom}\n className={'purchase-btn'}>¥{props.item.pay_price}去支付\n </button>\n </div>\n )\n }\n return (\n <div className=\"course-bottom\">\n <div className={'course-price'}>\n <span className={'discount-price'}>¥{props.item.price1}</span>\n <span className={'original-price'}>¥{props.item.price0}</span>\n </div>\n {Buttons}\n </div>\n )\n}\n\n\nfunction PublicNumber(props) {\n return (\n <div className='bargain-public-number'>\n\n <img className='avait' src={props.avatar} alt=\"\"/>\n\n {\n props.firendBaigainPrice &&\n <p className='status-title ff4'>谢谢你帮我砍了{props.money}元!</p>\n }\n <p className='status-dec'>关注公众号,可以再砍一刀哦~</p>\n <img className='public-number-img'\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n </div>\n )\n}\n\nfunction BargainFirst(props) {\n return (\n <div className='bargain-first'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>谢谢你帮我砍了<span className='ff4'>{props.money}元</span>!</p>\n <p className='status-dec'>你还可以帮我再砍一刀哦~</p>\n <button className='bargain-href' onClick={props.bargainSecond}>再砍一刀</button>\n </div>\n )\n}\n\nfunction BargainSecond(props) {\n return (\n <div className='bargain-second'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>厉害了,又帮好友砍掉<span className='ff4'>{props.money}元</span>!</p>\n <a className='bargain-href' href='#bargainCourse' onClick={props.close}>我也要砍价</a>\n </div>\n )\n}\n\nfunction NotBargain(props) {\n return (\n <div className='not-bargain'>\n <img className='middle-img' src={require('./image/kanjia_no_iccon.png')} alt=\"\"/>\n <p className='status-title'>你的好友用【砍价神器】把我砍蒙圈了<br/>不能再砍了哦~</p>\n <p className='status-dec'>邀请{props.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</p>\n <a className='bargain-href' href='#bargainCourse' onClick={props.close}>我也要砍价</a>\n </div>\n )\n}\n\nfunction Artifact(props) {\n return (\n <div className='artifact-box'>\n <p className='top-tip'>恭喜你获得【砍价神器】!</p>\n <p className='middle-tip'>\n 您可以使用\n <span className={'indicator'}>【砍价神器】</span>\n 再砍一刀\n </p>\n <button className='use-artifact' onClick={props.useArtifact}>立即使用</button>\n </div>\n )\n}\n\nfunction UseArtifact(props) {\n return (\n <div className='use-artifact-box'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='top-tip'>厉害了,又砍掉了{props.money}元!</p>\n <p className='middle-tip'>\n 你已经砍了\n <span className={'indicator'}>{props.allMoney}元</span>\n 没见过你这么能砍的人...\n </p>\n <p className='btm-tip'>\n 不能再砍了哦~\n </p>\n <button className='tubuy' onClick={props.toCart}>去支付</button>\n </div>\n )\n}\n\n\nfunction BargainSuccess(props) {\n return (\n <div>\n <div className='close-bargain-success' onClick={props.close}></div>\n\n <div className=\"bargain-success\">\n {\n props.isshowYindao &&\n <i className='iconfont iconyindao'></i>\n }\n <p>分享到微信群邀请更多好友帮忙砍价</p>\n <p>超过{props.limitPeople}位好友助力可获得<span className={'indicator'} style={{color: '#FF4000'}}>【砍价神器】</span>哦\n </p>\n </div>\n </div>\n )\n}\n\n\nexport default withRouter(BargainMiddlePage);\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII=\"","import React, { Component } from 'react';\nimport ReactDom from \"react-dom\";\n\nimport './overlay.scss'\n\nconst root = document.body || document.documentElement\n\nconst events = ['touchmove', 'mousewheel']\n\nclass Overlay extends Component {\n constructor(props) {\n super(props);\n this.overlayBox = null\n }\n\n preventScroll = e => {\n e.preventDefault()\n }\n\n componentDidMount() {\n events.forEach(item => {\n this.overlayBox.addEventListener(item, this.preventScroll, {\n passive: false\n })\n })\n }\n\n componentWillUnmount() {\n events.forEach(item => {\n this.overlayBox.removeEventListener(item, this.preventScroll)\n })\n }\n\n render() {\n return ReactDom.createPortal(\n (<div className={'overlay'}\n ref={el => this.overlayBox = el}\n style={{top: `${window.scrollY}px`}}\n >{this.props.children}</div>),\n root\n )\n }\n}\n\nexport default Overlay;","import React, {Component} from 'react'\nimport './index.scss'\n\nclass Ranking extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n kanjiaIcon: require('../image/kanjia_icon.png')\n }\n }\n\n // 关闭更多窗口\n closeMore = () => {\n this.props.boxHide(false);\n }\n\n render() {\n return (\n <div className={'ranking-box'}>\n {\n this.props.isShowMore &&\n <MoreList list={this.props.list} limitPeople={this.props.limitPeople} closeMore={this.closeMore}\n img={this.props.icon}/>\n }\n </div>\n );\n }\n}\n\nfunction MoreList(props) {\n return (\n <div className=\"moreMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n 好友助力详情\n </div>\n <ul className='more-bargain-list'>\n {\n props.list && props.list.length > 0 && props.list.map((item, index) => {\n return (\n <li key={index} className='bargain-item'>\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <p className='name'>{item.user_name}</p>\n <p className='bargain-status'>\n <img className='kanjia-icon' src={props.img} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </p>\n </li>\n )\n })\n }\n </ul>\n <div className='more-bargain-dec'>\n 超过{props.limitPeople}位好友助力可获得【砍价神器】\n </div>\n </div>\n <i onClick={props.closeMore} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n )\n}\n\nexport default Ranking","module.exports = __webpack_public_path__ + \"static/media/kanjia_cg_icon.81a489ac.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2Qyu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FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg==\""],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1181:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),c=a(10),r=a(9),o=a(11),i=a(0),l=a.n(i),m=(a(902),a(15)),u=a.n(m),h=a(30),p=(a(903),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(h.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),w=a(4),d=a(904);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;w.c.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,c=t.analysis,r=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(h.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(h.h,{className:"category-tag"},r),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:c,isShowAnswer:!0}),l.a.createElement(p,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},902:function(e,t,a){},903:function(e,t,a){}}]);
//# sourceMappingURL=Examination.7713915d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1179:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),c=a(10),r=a(9),o=a(11),i=a(0),l=a.n(i),m=(a(902),a(15)),u=a.n(m),h=a(30),p=(a(903),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(h.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),w=a(4),d=a(904);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;w.c.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,c=t.analysis,r=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(h.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(h.h,{className:"category-tag"},r),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:c,isShowAnswer:!0}),l.a.createElement(p,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},902:function(e,t,a){},903:function(e,t,a){}}]);
//# sourceMappingURL=Examination.ebfa34d0.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"6LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,QAAb,6DACAH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAASD,UAAU,SAAnB,sFCISE,cAEjB,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,WAAa,WACTP,EAAKQ,SAAS,CAACC,cAAeT,EAAKU,MAAMD,gBApBzCT,EAAKU,MAAQ,CACTD,cAAc,EACdE,aAAc,IAJHX,mFAQC,IAAAY,EAAAT,KAChBU,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,qBACKC,KAAK,SAAAC,GAAO,IAAAC,EACwBD,EAAzBE,KAAQA,EADPD,EACOC,KAChB,GAAY,MAFHD,EACaE,KACL,CACb,IAAMC,EAAUtB,SAAOuB,OAAOH,EAAM,CAACI,SAAUJ,EAAKI,SAASC,OAAQ,EAAGL,EAAKI,SAASE,MAAM,MAAO,KACnGf,EAAKJ,SAAS,CACVG,aAAcY,wCAUzB,IAAAK,EAMDzB,KAAKO,MANJmB,EAAAD,EA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N,IACpDD,EAAKQ,UAQxBhB,EAASI,IAAMC,KAAK,SAAAY,GAA6B,IAA3BhB,EAA2BgB,EAA3BhB,QAASlC,EAAkBkD,EAAlBlD,aACjC,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAWyD,IAAW,SAAU,CAACO,MAAOnD,KACzChB,EAAAC,EAAAC,cAAA,KAAGC,UAAU,UAAb,gBACC+C,EAAQjB,OAAO,GAAKiB,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"static/js/Examination.7713915d.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"6LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,QAAb,6DACAH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAASD,UAAU,SAAnB,sFC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,EAC7BQ,YAAarC,KAAKO,MAAMD,gBAIrDA,GAEGhB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cAAc6C,QAAStC,KAAKI,YACvCd,EAAAC,EAAAC,cAAA,uCAAUF,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAMnCa,GAAgBhB,EAAAC,EAAAC,cAAC+C,EAAD,CAAQC,QAASlB,EAAUhB,cAAY,IAE3DhB,EAAAC,EAAAC,cAACiD,EAAD,cA3DyBC,iBAiEnCN,EAAcO,IAAMC,KAAK,SAAAC,GAA4B,IAA1BhB,EAA0BgB,EAA1BhB,QAASQ,EAAiBQ,EAAjBR,YACtC,OACI/C,EAAAC,EAAAC,cAAA,MAAIC,UAAU,WAENoC,EAAQiB,IAAI,SAACC,EAAMC,GAAP,OACR1D,EAAAC,EAAAC,cAAA,MAAIyD,IAAKD,EAAOvD,UAAWyD,IAAW,SAAU,CAACC,OAA0B,IAAhBJ,EAAKK,QAAgBf,KAC5E/C,EAAAC,EAAAC,cAAA,QAAMC,UAAU,YAAY4D,OAAOC,aAAa,GAAKN,IACpDD,EAAKQ,UAQxBhB,EAASI,IAAMC,KAAK,SAAAY,GAA6B,IAA3BhB,EAA2BgB,EAA3BhB,QAASlC,EAAkBkD,EAAlBlD,aACjC,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAWyD,IAAW,SAAU,CAACO,MAAOnD,KACzChB,EAAAC,EAAAC,cAAA,KAAGC,UAAU,UAAb,gBACC+C,EAAQjB,OAAO,GAAKiB,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"static/js/Examination.ebfa34d0.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1149:function(e,t,a){},1167:function(e,t,a){"use strict";a.r(t);a(155);var o,r=a(75),c=a.n(r),n=a(23),s=(a(43),a(14)),i=a.n(s),l=a(7),p=a(8),d=a(10),m=a(9),u=a(11),f=(a(89),a(25)),h=a.n(f),b=(a(115),a(45)),g=a.n(b),E=a(0),y=a.n(E),v=a(30),x=a(18),N=a(4),O=a(38),j=a(20),S=(a(62),a(1149),g.a.Item);function w(e){console.log(e);var t=e.list;return y.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var o=t.course_id,r=t.image_name,c=t.price1,n=t.price0,s=t.simpledescription,i=t.course_title,l=t.coupon_num,p=t.coupon_desc,d=y.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(d=y.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var m=y.a.createElement("div",{className:"order-info"},y.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(o)}},i),y.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},s),y.a.createElement("p",{className:"order-des"},d,y.a.createElement("span",{className:"order-price"},"\xa5",n)));return y.a.createElement(v.g,Object.assign({},t,{src:r,id:o,key:a,info:m,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?y.a.createElement("div",{className:"order-prefer"},y.a.createElement(g.a,{key:a},y.a.createElement(S,{arrow:"horizontal",onClick:function(){}},y.a.createElement(x.b,{to:{pathname:"/coupons",search:"?id=".concat(o),state:{from:"/order"}}},y.a.createElement(h.a,{justify:"between"},y.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),y.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},p||(0===l?"\u65e0":"".concat(l,"\u5f20\u53ef\u7528")))))))):null)}))}var F=Object(j.b)()(o=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(d.a)(this,Object(m.a)(t).call(this,e))).submitOrder=function(){a.state.total;if(0!==a.state.orderList.length)if(a.state.perfect||i.a.info("\u8bf7\u5b8c\u5584\u62a5\u540d\u4fe1\u606f\uff01"),a.props.location.state&&1===a.props.location.state.group)N.c.post("".concat(API["base-api"],"/pdd/m"),{course_id:Object(N.b)("id"),ischeck:a.state.useBalance}).then(function(e){console.log(e),200===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))):i.a.info(e.data.msg,2)});else{var e="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(e+="&type=1"),N.c.get(e).then(function(e){0===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.is_free?a.props.history.replace("/payorder?oid=".concat(e.data.data.order_id)):a.props.history.replace("/purchased")):i.a.info(e.data.msg,2)})}else i.a.info("\u6ca1\u6709\u8981\u63d0\u4ea4\u7684\u8ba2\u5355\uff01")},a.useBalance=function(){var e=a.state.useBalance;a.setState({useBalance:!e}),e?sessionStorage.removeItem("orderUseCacheObj"):(a.cacheObj=Object(n.a)({},a.state),sessionStorage.setItem("orderUseCacheObj",JSON.stringify(a.state))),a.computedMoney(e)},a.computedMoney=function(e){var t=parseFloat(a.cacheObj.total),o=parseFloat(a.cacheObj.user_account),r=a.state.discount;e?a.setState({offset:a.cacheObj.offset,total:a.cacheObj.total,discount:a.cacheObj.discount}):t>o?a.setState({offset:o.toFixed(2),total:(t-o).toFixed(2),discount:(o+parseFloat(r)).toFixed(2)}):a.setState({offset:t.toFixed(2),total:0,discount:(t+parseFloat(r)).toFixed(2)})},a.computedMoneyByCache=function(){var e=parseFloat(a.cacheObj.total),t=parseFloat(a.cacheObj.user_account),o=parseFloat(a.cacheObj.discount);e>t?a.setState({offset:t.toFixed(2),total:(e-t).toFixed(2),discount:(o+t).toFixed(2)}):a.setState({offset:e.toFixed(2),total:0,discount:e.toFixed(2)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.publicGetData=function(e){var t=e.course,o=e.total,r=e.user_account,c=e.user_info,n=e.discount;a.props.location.state&&1===a.props.location.state.group&&(console.log(a.state),o=a.state.groupPrice),a.cacheObj={perfect:c,orderList:t,user_account:r,total:o,discount:n},a.setState({perfect:c,orderList:t,user_account:r,total:o,discount:n})},a.publicLocalStorage=function(){"PUSH"===a.props.history.action?sessionStorage.removeItem("orderUseCacheObj"):null!==sessionStorage.getItem("orderUseCacheObj")&&(a.setState({useBalance:!0}),a.computedMoneyByCache())},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={groupPrice:"",perfect:a.props.location.state,user_account:0,total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0},a}return Object(u.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){var e=this;console.log(this.props.location.state),console.log(0),this.props.location.state&&1===this.props.location.state.type?N.c.get("".concat(API["base-api"],"/m/order/preorder?type=1")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):!this.props.location.state||1!==this.props.location.state.simple&&1!==this.props.location.state.bargain?this.props.location.state&&1===this.props.location.state.group?Promise.all([N.c.get("".concat(API.home,"/m/course/detail/").concat(Object(N.b)("id"))),N.c.get("".concat(API["base-api"],"/m/order/preorder"))]).then(function(t){var a=t[0],o=t[1];console.log(a.data),console.log(o.data);var r={};200===o.data.errno?(r=Object.assign({},o.data.data,{course:[]}),200===a.data.code?(r.course.push(a.data.data.course_info),e.setState({groupPrice:a.data.data.course_info.pdd_group_info.price}),e.publicGetData(r),e.publicLocalStorage()):i.a.info(a.data.msg,2)):i.a.info(o.data.msg,2)}):N.c.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){console.log("\u4e3a\u4e86\u9a8c\u8bc1\u4ec0\u4e48\u6761\u4ef6\u4e0b\u4f1a\u8d70\u8fd9\u6bb5\u4ee3\u7801"),200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):(console.log(1),N.c.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}))}},{key:"render",value:function(){var e=this.state,t=e.perfect,a=e.orderList,o=e.user_account,r=e.total,s=e.discount,i=e.useBalance,l=e.info,p=e.offset,d=e.groupPrice;return y.a.createElement("div",{className:"order-wrapper"},y.a.createElement(h.a,null,y.a.createElement(h.a.Item,null,y.a.createElement(v.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),!this.state.perfect&&y.a.createElement(x.b,{to:{pathname:"/orderinfo",state:{type:this.props.location.state?this.props.location.state.type:null,id:Object(N.b)("id")}},className:"order-information"},y.a.createElement("i",{className:"iconfont iconiconfront-6 order-addsize"}),y.a.createElement("div",{className:"order-infotext"},"\u5b8c\u5584\u62a5\u540d\u4fe1\u606f"),y.a.createElement("i",{className:"iconfont iconiconfront-70 order-next"})),this.state.perfect&&y.a.createElement("div",{className:"order-information2"},y.a.createElement(c.a,null,y.a.createElement(x.b,{to:{pathname:"/orderinfo",state:Object(n.a)({},this.state.perfect,this.props.location.state,{id:Object(N.b)("id")})}},y.a.createElement(h.a,{align:"center",justify:"between",style:{height:"80px"}},y.a.createElement("i",{className:"iconfont iconiconfront-20 user-icon"}),y.a.createElement(h.a,{direction:"column",justify:"between",align:"start",className:"order-cell"},y.a.createElement("div",{className:"name"},"\u59d3\u540d\uff1a".concat(t.real_name)),y.a.createElement("div",null,"\u7535\u8bdd\uff1a".concat(t.cellphone))),y.a.createElement(h.a,{align:"start",className:"order-cell"},y.a.createElement("div",null,"QQ\uff1a".concat(t.qq))))))),y.a.createElement("div",{className:"order-list"},y.a.createElement(w,{list:a,compute:this.computedMoney,courseId:Object(N.b)("id"),locationState:this.props.location.state,groupPrice:d,toDetail:this.toCourseDetail})),y.a.createElement("div",{className:"order-balance"},y.a.createElement(g.a,null,y.a.createElement(S,{className:"order-prefer-text"},y.a.createElement(h.a,{justify:"between"},y.a.createElement(h.a,{align:"center"},y.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),y.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",y.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),y.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),y.a.createElement(h.a,null,i?y.a.createElement(y.a.Fragment,null,y.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(p)),y.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:Object(O.throttle)(this.useBalance,600)})):y.a.createElement("i",{className:"circle-icon",onClick:Object(O.throttle)(this.useBalance,600)})))))),y.a.createElement("div",{className:"order-bar"},y.a.createElement("div",{className:"order-course"},y.a.createElement("span",{className:"order-course-text"},"".concat(a.length,"\u95e8\u8bfe\u7a0b"))),y.a.createElement("div",{className:"order-bar-text"},y.a.createElement("div",{className:"order-amount"},y.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),y.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(r))),y.a.createElement("div",{className:"order-preprice"},y.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),y.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(s)))),t?y.a.createElement("button",{type:"button",className:"order-button has-info"},y.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355")):y.a.createElement("button",{type:"button",className:"order-button"},y.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355"))))),l?y.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},y.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%)"}},y.a.createElement(h.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},y.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),y.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"),y.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)}}]),t}(E.Component))||o;t.default=F}}]);
//# sourceMappingURL=Order.0b41ac28.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_13___default","a","OrderList","props","console","log","listData","list","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","map","item","index","is_coupon","course_id","image_name","price1","price0","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_15__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_16__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_11___default","justify","color","fontSize","Order","connect","_this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","location","http","post","API","getParam","ischeck","useBalance","then","res","data","errno","sessionStorage","removeItem","pay_jump","history","push","oid","msg","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","setItem","JSON","stringify","computedMoney","totalSale","parseFloat","userAccount","user_account","discount","offset","toFixed","computedMoneyByCache","showInfo","prevState","publicGetData","course","user_info","publicLocalStorage","action","getItem","toCourseDetail","_this$props","dispatch","_this2","bargain","Promise","all","home","resList","courseInfo","orderInfo","newData","code","course_info","pdd_group_info","price","_this$state","title","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","align","height","direction","real_name","cellphone","qq","compute","courseId","Fragment","marginRight","throttle","position","top","left","width","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"uUAYMA,iBAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjBC,Q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AUP,SAAU,WAAYE,KAAM,MAAOD,IAAK,MAAOO,UAAW,0BACnKvJ,EAAAP,EAAAQ,cAAA+C,EAAAvD,EAAA,CAAM6I,UAAU,SAASrF,QAAQ,UAAUmF,MAAM,SAAShH,MAAO,CAAEiH,OAAQ,SACzErI,EAAAP,EAAAQ,cAAA,KAAGmB,MAAO,CAAE+B,SAAU,OAAQD,MAAO,YAArC,wCACAlD,EAAAP,EAAAQ,cAAA,KAAGmB,MAAO,CAAEoI,WAAY,OAAQrG,SAAU,OAAQD,MAAO,YAAzD,kRACAlD,EAAAP,EAAAQ,cAAA,OAAKuB,QAASgC,KAAKiD,SAAUrF,MAAO,CAAE8H,MAAO,QAASb,OAAQ,OAAQmB,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqBzG,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aAtaMyG,iBA+aLxG","file":"static/js/Order.0b41ac28.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, List, WingBlank, Toast } from 'antd-mobile';\nimport { OrderItem } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport { http, getParam } from \"@/utils\";\nimport { throttle } from 'lodash';\nimport {HeaderBar} from '../../common';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\nimport \"./order.scss\"\n\nconst Item = List.Item;\n\nfunction OrderList(props) {\n console.log(props);\n const listData = props.list;\n return (\n <div>\n {\n listData.map((item, index) => {\n const { is_coupon, course_id, image_name, price1, price0, simpledescription, course_title, coupon_num, coupon_desc} = item;\n let NewPrice = (<span className='order-newprice'>¥{price1}</span>);\n if(props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>);\n }\n const Info = (\n <div className=\"order-info\">\n {/* <Link to={`/detail?id=${course_id}`}> */}\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n {/* </Link> */}\n <p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p>\n <p className='order-des'>\n {/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/ }\n {/*{*/}\n {/* props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>)*/}\n {/*}*/}\n {NewPrice}\n <span className='order-price'>¥{price0}</span>\n </p>\n </div>\n );\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => { }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }}}>\n {/* <Link to='coupons' query={{id: course_id}} state={{from: '/order'}}> */}\n <Flex justify='between'>\n <span style={{ color: '#333', fontSize: '15px' }}>优惠券</span>\n <span style={{ fontSize: '14px', color: '#999999' }}>{!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}</span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n );\n}\n\n@connect()\nclass Order extends Component {\n constructor(props) {\n super(props);\n this.state = {\n groupPrice: '',\n perfect: this.props.location.state,\n user_account: 0.00, // 账户余额\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n if(this.props.location.state && this.props.location.state.group === 1) {\n http.post(`${API['base-api']}/pdd/m`, {course_id: getParam(\"id\"),ischeck:this.state.useBalance}).then(res => {\n console.log(res);\n if(res.data.errno === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n console.log(this.state);\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n // 公共方法 本地存储\n publicLocalStorage = () => {\n if(this.props.history.action === 'PUSH') {\n sessionStorage.removeItem('orderUseCacheObj');\n } else{\n const cacheObj = sessionStorage.getItem('orderUseCacheObj');\n if(cacheObj !== null) {\n this.setState({\n useBalance: true\n });\n this.computedMoneyByCache();\n }\n }\n };\n componentDidMount() {\n let _this = this;\n console.log(this.props.location.state);\n console.log(0);\n // type: 1,返现课程,simple: 1,正常购买\n if(this.props.location.state && this.props.location.state.type === 1) {\n http.get(`${API['base-api']}/m/order/preorder?type=1`).then((res) => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n })\n } else if (this.props.location.state && (this.props.location.state.simple === 1 || this.props.location.state.bargain === 1)) {\n console.log(1);\n // 普通课程立即报名 不带 type = 1\n http.get(`${API['base-api']}/m/order/preorder`).then(res => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n } else if (this.props.location.state && this.props.location.state.group === 1){\n // 获取一键开团的课程\n Promise.all([http.get(`${API.home}/m/course/detail/${getParam('id')}`),http.get(`${API['base-api']}/m/order/preorder`)]).then(resList => {\n let courseInfo = resList[0],\n orderInfo = resList[1];\n console.log(courseInfo.data);\n console.log(orderInfo.data);\n let newData = {};\n if(orderInfo.data.errno === 200) {\n newData = Object.assign({}, orderInfo.data.data, {course: []});\n }else{\n Toast.info(orderInfo.data.msg, 2);\n return;\n }\n if(courseInfo.data.code === 200) {\n newData.course.push(courseInfo.data.data.course_info);\n this.setState({\n groupPrice: courseInfo.data.data.course_info.pdd_group_info.price\n })\n }else{\n Toast.info(courseInfo.data.msg, 2);\n return;\n }\n // this.groupPrice = orderInfo.data.data.course_info.pdd_group_info.price;\n // if(courseInfo.data.data.course.length === 0) {\n // courseInfo.data.data.course.push(orderInfo.data.data.course_info)\n // }\n this.publicGetData(newData);\n this.publicLocalStorage();\n });\n } else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API['base-api']}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n http.get(`${API['base-api']}/m/order/preorder`).then((res) => {\n console.log('为了验证什么条件下会走这段代码');\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n })\n // }\n }\n // else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API.home}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n // http.get(`${API.home}/m/order/preorder`).then((res) => {\n // console.log('为了验证什么条件下会走这段代码');\n // if (res.data.errno !== 200) {\n // Toast.info(res.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(res);\n // this.publicLocalStorage();\n // })\n // }\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 {\n perfect,\n orderList,\n user_account,\n total,\n discount,\n useBalance,\n info,\n offset,\n groupPrice\n } = this.state;\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true} />\n {\n !this.state.perfect &&\n <Link to={{\n pathname: '/orderinfo',\n state: {type: this.props.location.state ? this.props.location.state.type : null, id: getParam('id')}\n }}\n className=\"order-information\">\n <i className=\"iconfont iconiconfront-6 order-addsize\" />\n <div className=\"order-infotext\">完善报名信息</div>\n <i className=\"iconfont iconiconfront-70 order-next\" />\n </Link>\n }\n {\n this.state.perfect &&\n <div className=\"order-information2\">\n <WingBlank>\n <Link to={{\n pathname: '/orderinfo',\n state: {\n ...this.state.perfect,\n ...this.props.location.state,\n id: getParam('id')\n }\n }\n } >\n <Flex align='center' justify='between' style={{ height: '80px' }}>\n <i className=\"iconfont iconiconfront-20 user-icon\"></i>\n\n <Flex direction='column' justify='between' align='start' className=\"order-cell\">\n <div className=\"name\">{`姓名:${perfect.real_name}`}</div>\n <div>{`电话:${perfect.cellphone}`}</div>\n </Flex>\n\n <Flex align='start' className=\"order-cell\">\n <div>{`QQ:${perfect.qq}`}</div>\n </Flex>\n\n </Flex>\n </Link>\n </WingBlank>\n </div>\n }\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n compute={this.computedMoney}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{ color: '#FF2121', fontSize: '15px', marginRight: \"6px\" }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`} onClick={throttle(this.useBalance, 600)}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={throttle(this.useBalance, 600)}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${total}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n {\n perfect ? (\n\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n ) : (\n\n <button type=\"button\" className=\"order-button\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n )\n }\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.8)', zIndex: '99' }}>\n <div style={{ padding: '20px', backgroundColor: '#FFF', width: '300px', height: '170px', margin: '0 auto', position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }}>\n <Flex direction='column' justify='between' align='center' style={{ height: '100%' }}>\n <p style={{ fontSize: '16px', color: '#333333' }}>余额抵扣说明</p>\n <p style={{ lineHeight: '20px', fontSize: '13px', color: '#666666' }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{ width: '260px', height: '30px', lineHeight: '30px', textAlign: 'center', borderRadius: '3px', border: '1px solid #0099FF', color: '#0099FF', fontSize: '15px' }}>知道了</div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1149:function(e,t,a){},1167:function(e,t,a){"use strict";a.r(t);a(155);var o,r=a(75),c=a.n(r),n=a(22),s=(a(43),a(14)),i=a.n(s),l=a(7),d=a(8),p=a(10),m=a(9),u=a(11),f=(a(89),a(25)),h=a.n(f),b=(a(115),a(45)),g=a.n(b),E=a(0),v=a.n(E),y=a(30),x=a(18),N=a(4),O=a(38),j=a(20),S=(a(62),a(1149),g.a.Item);function w(e){console.log(e);var t=e.list;return v.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var o=t.course_id,r=t.image_name,c=t.price1,n=t.price0,s=t.simpledescription,i=t.course_title,l=t.coupon_num,d=t.coupon_desc,p=v.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(p=v.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var m=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(o)}},i),v.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},s),v.a.createElement("p",{className:"order-des"},p,v.a.createElement("span",{className:"order-price"},"\xa5",n)));return v.a.createElement(y.g,Object.assign({},t,{src:r,id:o,key:a,info:m,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?v.a.createElement("div",{className:"order-prefer"},v.a.createElement(g.a,{key:a},v.a.createElement(S,{arrow:"horizontal",onClick:function(){}},v.a.createElement(x.b,{to:{pathname:"/coupons",search:"?id=".concat(o),state:{from:"/order"}}},v.a.createElement(h.a,{justify:"between"},v.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),v.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},d||(0===l?"\u65e0":"".concat(l,"\u5f20\u53ef\u7528")))))))):null)}))}var _=Object(j.b)()(o=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(p.a)(this,Object(m.a)(t).call(this,e))).submitOrder=function(){a.state.total;if(0!==a.state.orderList.length){a.state.perfect||i.a.info("\u8bf7\u5b8c\u5584\u62a5\u540d\u4fe1\u606f\uff01");var e=a.props.location.state,t=void 0===e?{}:e;if(1===t.group){var o=t.pdd_order_id?{course_id:Object(N.b)("id"),ischeck:a.state.useBalance,pdd_order_id:t.pdd_order_id}:{course_id:Object(N.b)("id"),ischeck:a.state.useBalance};N.c.post("".concat(API["base-api"],"/pdd/m"),o).then(function(e){console.log(e),200===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))):i.a.info(e.data.msg,2)})}else{var r="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(r+="&type=1"),N.c.get(r).then(function(e){0===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.is_free?a.props.history.replace("/payorder?oid=".concat(e.data.data.order_id)):a.props.history.replace("/purchased")):i.a.info(e.data.msg,2)})}}else i.a.info("\u6ca1\u6709\u8981\u63d0\u4ea4\u7684\u8ba2\u5355\uff01")},a.useBalance=function(){var e=a.state.useBalance;a.setState({useBalance:!e}),e?sessionStorage.removeItem("orderUseCacheObj"):(a.cacheObj=Object(n.a)({},a.state),sessionStorage.setItem("orderUseCacheObj",JSON.stringify(a.state))),a.computedMoney(e)},a.computedMoney=function(e){var t=parseFloat(a.cacheObj.total),o=parseFloat(a.cacheObj.user_account),r=a.state.discount;e?a.setState({offset:a.cacheObj.offset,total:a.cacheObj.total,discount:a.cacheObj.discount}):t>o?a.setState({offset:o.toFixed(2),total:(t-o).toFixed(2),discount:(o+parseFloat(r)).toFixed(2)}):a.setState({offset:t.toFixed(2),total:0,discount:(t+parseFloat(r)).toFixed(2)})},a.computedMoneyByCache=function(){var e=parseFloat(a.cacheObj.total),t=parseFloat(a.cacheObj.user_account),o=parseFloat(a.cacheObj.discount);e>t?a.setState({offset:t.toFixed(2),total:(e-t).toFixed(2),discount:(o+t).toFixed(2)}):a.setState({offset:e.toFixed(2),total:0,discount:e.toFixed(2)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.publicGetData=function(e){var t=e.course,o=e.total,r=e.user_account,c=e.user_info,n=e.discount;a.props.location.state&&1===a.props.location.state.group&&(console.log(a.state),o=a.state.groupPrice),a.cacheObj={perfect:c,orderList:t,user_account:r,total:o,discount:n},a.setState({perfect:c,orderList:t,user_account:r,total:o,discount:n})},a.publicLocalStorage=function(){"PUSH"===a.props.history.action?sessionStorage.removeItem("orderUseCacheObj"):null!==sessionStorage.getItem("orderUseCacheObj")&&(a.setState({useBalance:!0}),a.computedMoneyByCache())},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={groupPrice:"",perfect:a.props.location.state,user_account:0,total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0},a}return Object(u.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){var e=this;console.log(this.props.location.state),console.log(0),this.props.location.state&&1===this.props.location.state.type?N.c.get("".concat(API["base-api"],"/m/order/preorder?type=1")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):!this.props.location.state||1!==this.props.location.state.simple&&1!==this.props.location.state.bargain?this.props.location.state&&1===this.props.location.state.group?Promise.all([N.c.get("".concat(API.home,"/m/course/detail/").concat(Object(N.b)("id"))),N.c.get("".concat(API["base-api"],"/m/order/preorder"))]).then(function(t){var a=t[0],o=t[1];console.log(a.data),console.log(o.data);var r={};200===o.data.errno?(r=Object.assign({},o.data.data,{course:[]}),200===a.data.code?(r.course.push(a.data.data.course_info),e.setState({groupPrice:a.data.data.course_info.pdd_group_info.price}),e.publicGetData(r),e.publicLocalStorage()):i.a.info(a.data.msg,2)):i.a.info(o.data.msg,2)}):N.c.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){console.log("\u4e3a\u4e86\u9a8c\u8bc1\u4ec0\u4e48\u6761\u4ef6\u4e0b\u4f1a\u8d70\u8fd9\u6bb5\u4ee3\u7801"),200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):(console.log(1),N.c.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}))}},{key:"render",value:function(){var e=this.state,t=e.perfect,a=e.orderList,o=e.user_account,r=e.total,s=e.discount,i=e.useBalance,l=e.info,d=e.offset,p=e.groupPrice;return v.a.createElement("div",{className:"order-wrapper"},v.a.createElement(h.a,null,v.a.createElement(h.a.Item,null,v.a.createElement(y.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),!this.state.perfect&&v.a.createElement(x.b,{to:{pathname:"/orderinfo",state:{type:this.props.location.state?this.props.location.state.type:null,id:Object(N.b)("id")}},className:"order-information"},v.a.createElement("i",{className:"iconfont iconiconfront-6 order-addsize"}),v.a.createElement("div",{className:"order-infotext"},"\u5b8c\u5584\u62a5\u540d\u4fe1\u606f"),v.a.createElement("i",{className:"iconfont iconiconfront-70 order-next"})),this.state.perfect&&v.a.createElement("div",{className:"order-information2"},v.a.createElement(c.a,null,v.a.createElement(x.b,{to:{pathname:"/orderinfo",state:Object(n.a)({},this.state.perfect,this.props.location.state,{id:Object(N.b)("id")})}},v.a.createElement(h.a,{align:"center",justify:"between",style:{height:"80px"}},v.a.createElement("i",{className:"iconfont iconiconfront-20 user-icon"}),v.a.createElement(h.a,{direction:"column",justify:"between",align:"start",className:"order-cell"},v.a.createElement("div",{className:"name"},"\u59d3\u540d\uff1a".concat(t.real_name)),v.a.createElement("div",null,"\u7535\u8bdd\uff1a".concat(t.cellphone))),v.a.createElement(h.a,{align:"start",className:"order-cell"},v.a.createElement("div",null,"QQ\uff1a".concat(t.qq))))))),v.a.createElement("div",{className:"order-list"},v.a.createElement(w,{list:a,compute:this.computedMoney,courseId:Object(N.b)("id"),locationState:this.props.location.state,groupPrice:p,toDetail:this.toCourseDetail})),v.a.createElement("div",{className:"order-balance"},v.a.createElement(g.a,null,v.a.createElement(S,{className:"order-prefer-text"},v.a.createElement(h.a,{justify:"between"},v.a.createElement(h.a,{align:"center"},v.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),v.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",v.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),v.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),v.a.createElement(h.a,null,i?v.a.createElement(v.a.Fragment,null,v.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(d)),v.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:Object(O.throttle)(this.useBalance,600)})):v.a.createElement("i",{className:"circle-icon",onClick:Object(O.throttle)(this.useBalance,600)})))))),v.a.createElement("div",{className:"order-bar"},v.a.createElement("div",{className:"order-course"},v.a.createElement("span",{className:"order-course-text"},"".concat(a.length,"\u95e8\u8bfe\u7a0b"))),v.a.createElement("div",{className:"order-bar-text"},v.a.createElement("div",{className:"order-amount"},v.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),v.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(r))),v.a.createElement("div",{className:"order-preprice"},v.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),v.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(s)))),t?v.a.createElement("button",{type:"button",className:"order-button has-info"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355")):v.a.createElement("button",{type:"button",className:"order-button"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355"))))),l?v.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},v.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%)"}},v.a.createElement(h.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},v.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),v.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"),v.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)}}]),t}(E.Component))||o;t.default=_}}]);
//# sourceMappingURL=Order.25a1b5a9.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_13___default","a","OrderList","props","console","log","listData","list","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","map","item","index","is_coupon","course_id","image_name","price1","price0","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_15__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_16__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_11___default","justify","color","fontSize","Order","connect","_this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","_this$props$location$","location","params","pdd_order_id","getParam","ischeck","useBalance","http","post","API","then","res","data","errno","sessionStorage","removeItem","pay_jump","history","push","oid","msg","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","setItem","JSON","stringify","computedMoney","totalSale","parseFloat","userAccount","user_account","discount","offset","toFixed","computedMoneyByCache","showInfo","prevState","publicGetData","course","user_info","publicLocalStorage","action","getItem","toCourseDetail","_this$props","dispatch","_this2","bargain","Promise","all","home","resList","courseInfo","orderInfo","newData","code","course_info","pdd_group_info","price","_this$state","title","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","align","height","direction","real_name","cellphone","qq","compute","courseId","Fragment","marginRight","throttle","position","top","left","width","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"uUAYMA,iBAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjBC,QAAQC,IAAIF,GACZ,IAAMG,EAAWH,EAAMI,KACvB,OACEC,EAAAP,EAAAQ,cAAA,WAEIH,EAASI,IAAI,SAACC,EAAMC,GACoGD,EAA9GE,UADoB,IACTC,EAAmGH,EAAnGG,UAAWC,EAAwFJ,EAAxFI,WAAYC,EAA4EL,EAA5EK,OAAQC,EAAoEN,EAApEM,OAAQC,EAA4DP,EAA5DO,kBAAmBC,EAAyCR,EAAzCQ,aAAcC,EAA2BT,EAA3BS,WAAYC,EAAeV,EAAfU,YACnGC,EAAYd,EAAAP,EAAAQ,cAAA,QAAMc,UAAU,kBAAhB,OAAmCP,GAChDb,EAAMqB,eAAiBrB,EAAMqB,cAAcC,QAC5CH,EAAYd,EAAAP,EAAAQ,cAAA,QAAMc,UAAU,kBAAhB,OAAmCpB,EAAMuB,aAEvD,IAAMC,EACJnB,EAAAP,EAAAQ,cAAA,OAAKc,UAAU,cAEXf,EAAAP,EAAAQ,cAAA,KACEc,UAAU,cACVK,MAAO,CACLC,SAAU,SACVC,aAAc,WACdC,WAAY,UAEdC,QAAS,kBAAM7B,EAAM8B,SAASnB,KAE7BK,GAGLX,EAAAP,EAAAQ,cAAA,KAAGc,UAAU,gBAAgBK,MAAO,CAAEM,gBAAiB,WAAYC,gBAAiB,IAAKC,UAAW,YAAaP,SAAU,SAAUC,aAAc,WAAYO,QAAS,gBAAkBnB,GAC1LV,EAAAP,EAAAQ,cA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SAASvB,UAAU,yBAC9Bf,EAAAP,EAAAQ,cAAA,QAAMc,UAAU,oBAAoBS,QAASgC,KAAKI,aAAlD,6BAIA5D,EAAAP,EAAAQ,cAAA,UAAQqC,KAAK,SAASvB,UAAU,gBAC9Bf,EAAAP,EAAAQ,cAAA,QAAMc,UAAU,oBAAoBS,QAASgC,KAAKI,aAAlD,gCAQZxB,EACEpC,EAAAP,EAAAQ,cAAA,OAAKmB,MAAO,CAAE8H,SAAU,QAASC,IAAK,EAAGC,KAAM,EAAGC,MAAO,OAAQb,OAAQ,OAAQc,gBAAiB,qBAAsBC,OAAQ,OAC9HvJ,EAAAP,EAAAQ,cAAA,OAAKmB,MAAO,CAAEoI,QAAS,OAAQF,gBAAiB,OAAQD,MAAO,QAASb,OAAQ,QAASiB,OAAQ,SAAUP,SAAU,WAAYE,KAAM,MAAOD,IAAK,MAAOO,UAAW,0BACnK1J,EAAAP,EAAAQ,cAAA+C,EAAAvD,EAAA,CAAMgJ,UAAU,SAASxF,QAAQ,UAAUsF,MAAM,SAASnH,MAAO,CAAEoH,OAAQ,SACzExI,EAAAP,EAAAQ,cAAA,KAAGmB,MAAO,CAAE+B,SAAU,OAAQD,MAAO,YAArC,wCACAlD,EAAAP,EAAAQ,cAAA,KAAGmB,MAAO,CAAEuI,WAAY,OAAQxG,SAAU,OAAQD,MAAO,YAAzD,kRACAlD,EAAAP,EAAAQ,cAAA,OAAKuB,QAASgC,KAAKoD,SAAUxF,MAAO,CAAEiI,MAAO,QAASb,OAAQ,OAAQmB,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqB5G,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aA/aM4G,iBAwbL3G","file":"static/js/Order.25a1b5a9.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, List, WingBlank, Toast } from 'antd-mobile';\nimport { OrderItem } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport { http, getParam } from \"@/utils\";\nimport { throttle } from 'lodash';\nimport {HeaderBar} from '../../common';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\nimport \"./order.scss\"\n\nconst Item = List.Item;\n\nfunction OrderList(props) {\n console.log(props);\n const listData = props.list;\n return (\n <div>\n {\n listData.map((item, index) => {\n const { is_coupon, course_id, image_name, price1, price0, simpledescription, course_title, coupon_num, coupon_desc} = item;\n let NewPrice = (<span className='order-newprice'>¥{price1}</span>);\n if(props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>);\n }\n const Info = (\n <div className=\"order-info\">\n {/* <Link to={`/detail?id=${course_id}`}> */}\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n {/* </Link> */}\n <p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p>\n <p className='order-des'>\n {/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/ }\n {/*{*/}\n {/* props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>)*/}\n {/*}*/}\n {NewPrice}\n <span className='order-price'>¥{price0}</span>\n </p>\n </div>\n );\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => { }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }}}>\n {/* <Link to='coupons' query={{id: course_id}} state={{from: '/order'}}> */}\n <Flex justify='between'>\n <span style={{ color: '#333', fontSize: '15px' }}>优惠券</span>\n <span style={{ fontSize: '14px', color: '#999999' }}>{!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}</span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n );\n}\n\n@connect()\nclass Order extends Component {\n constructor(props) {\n super(props);\n this.state = {\n groupPrice: '',\n perfect: this.props.location.state,\n user_account: 0.00, // 账户余额\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n const { location: { state ={} } } = this.props;\n if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n console.log(res);\n if(res.data.errno === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n console.log(this.state);\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n // 公共方法 本地存储\n publicLocalStorage = () => {\n if(this.props.history.action === 'PUSH') {\n sessionStorage.removeItem('orderUseCacheObj');\n } else{\n const cacheObj = sessionStorage.getItem('orderUseCacheObj');\n if(cacheObj !== null) {\n this.setState({\n useBalance: true\n });\n this.computedMoneyByCache();\n }\n }\n };\n componentDidMount() {\n let _this = this;\n console.log(this.props.location.state);\n console.log(0);\n // type: 1,返现课程,simple: 1,正常购买\n if(this.props.location.state && this.props.location.state.type === 1) {\n http.get(`${API['base-api']}/m/order/preorder?type=1`).then((res) => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n })\n } else if (this.props.location.state && (this.props.location.state.simple === 1 || this.props.location.state.bargain === 1)) {\n console.log(1);\n // 普通课程立即报名 不带 type = 1\n http.get(`${API['base-api']}/m/order/preorder`).then(res => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n } else if (this.props.location.state && this.props.location.state.group === 1){\n // 获取一键开团的课程\n Promise.all([http.get(`${API.home}/m/course/detail/${getParam('id')}`),http.get(`${API['base-api']}/m/order/preorder`)]).then(resList => {\n let courseInfo = resList[0],\n orderInfo = resList[1];\n console.log(courseInfo.data);\n console.log(orderInfo.data);\n let newData = {};\n if(orderInfo.data.errno === 200) {\n newData = Object.assign({}, orderInfo.data.data, {course: []});\n }else{\n Toast.info(orderInfo.data.msg, 2);\n return;\n }\n if(courseInfo.data.code === 200) {\n newData.course.push(courseInfo.data.data.course_info);\n this.setState({\n groupPrice: courseInfo.data.data.course_info.pdd_group_info.price\n })\n }else{\n Toast.info(courseInfo.data.msg, 2);\n return;\n }\n // this.groupPrice = orderInfo.data.data.course_info.pdd_group_info.price;\n // if(courseInfo.data.data.course.length === 0) {\n // courseInfo.data.data.course.push(orderInfo.data.data.course_info)\n // }\n this.publicGetData(newData);\n this.publicLocalStorage();\n });\n } else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API['base-api']}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n http.get(`${API['base-api']}/m/order/preorder`).then((res) => {\n console.log('为了验证什么条件下会走这段代码');\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n })\n // }\n }\n // else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API.home}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n // http.get(`${API.home}/m/order/preorder`).then((res) => {\n // console.log('为了验证什么条件下会走这段代码');\n // if (res.data.errno !== 200) {\n // Toast.info(res.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(res);\n // this.publicLocalStorage();\n // })\n // }\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 {\n perfect,\n orderList,\n user_account,\n total,\n discount,\n useBalance,\n info,\n offset,\n groupPrice\n } = this.state;\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true} />\n {\n !this.state.perfect &&\n <Link to={{\n pathname: '/orderinfo',\n state: {type: this.props.location.state ? this.props.location.state.type : null, id: getParam('id')}\n }}\n className=\"order-information\">\n <i className=\"iconfont iconiconfront-6 order-addsize\" />\n <div className=\"order-infotext\">完善报名信息</div>\n <i className=\"iconfont iconiconfront-70 order-next\" />\n </Link>\n }\n {\n this.state.perfect &&\n <div className=\"order-information2\">\n <WingBlank>\n <Link to={{\n pathname: '/orderinfo',\n state: {\n ...this.state.perfect,\n ...this.props.location.state,\n id: getParam('id')\n }\n }\n } >\n <Flex align='center' justify='between' style={{ height: '80px' }}>\n <i className=\"iconfont iconiconfront-20 user-icon\"></i>\n\n <Flex direction='column' justify='between' align='start' className=\"order-cell\">\n <div className=\"name\">{`姓名:${perfect.real_name}`}</div>\n <div>{`电话:${perfect.cellphone}`}</div>\n </Flex>\n\n <Flex align='start' className=\"order-cell\">\n <div>{`QQ:${perfect.qq}`}</div>\n </Flex>\n\n </Flex>\n </Link>\n </WingBlank>\n </div>\n }\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n compute={this.computedMoney}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{ color: '#FF2121', fontSize: '15px', marginRight: \"6px\" }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`} onClick={throttle(this.useBalance, 600)}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={throttle(this.useBalance, 600)}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${total}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n {\n perfect ? (\n\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n ) : (\n\n <button type=\"button\" className=\"order-button\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n )\n }\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.8)', zIndex: '99' }}>\n <div style={{ padding: '20px', backgroundColor: '#FFF', width: '300px', height: '170px', margin: '0 auto', position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }}>\n <Flex direction='column' justify='between' align='center' style={{ height: '100%' }}>\n <p style={{ fontSize: '16px', color: '#333333' }}>余额抵扣说明</p>\n <p style={{ lineHeight: '20px', fontSize: '13px', color: '#666666' }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{ width: '260px', height: '30px', lineHeight: '30px', textAlign: 'center', borderRadius: '3px', border: '1px solid #0099FF', color: '#0099FF', fontSize: '15px' }}>知道了</div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1166:function(e,n,a){"use strict";a.r(n);var o=a(7),r=a(8),t=a(10),l=a(9),i=a(11),c=(a(43),a(14)),s=a.n(c),p=a(23),u=(a(155),a(75)),d=a.n(u),f=(a(1137),a(1139)),h=a.n(f),m=(a(1140),a(1142)),v=a.n(m),b=a(0),g=a.n(b),q=a(19),E=a(30),j=a(4),y=Object(q.e)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,n){return{}},handleSubmit:function(e,n){var a=e.real_name,o=e.cellphone,r=e.qq;if(a)if(0!=="".concat(a).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(n.props.userInfo){var l=n.props.userInfo;l.real_name===a&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";n.props.userInfo.id&&(i=i+"?id="+n.props.userInfo.id),console.log(e),3!==t?j.c.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(a){console.log(a),200===a.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),n.props.history.replace(i,Object(p.a)({},e))):s.a.info(a.data.msg,void 0,void 0,!1)}):n.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var n=e.values,a=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return g.a.createElement("form",null,g.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return a("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:n.real_name},"\u59d3\u540d"),g.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return a("cellphone",e)},value:n.cellphone},"\u7535\u8bdd"),g.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return a("qq",e)},value:n.qq},"QQ"),g.a.createElement("div",{style:{marginTop:"21px"}},g.a.createElement(d.a,null,g.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function n(e){return Object(o.a)(this,n),Object(t.a)(this,Object(l.a)(n).call(this,e))}return Object(i.a)(n,e),Object(r.a)(n,[{key:"render",value:function(){return g.a.createElement("div",null,g.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),g.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(b.Component);n.default=O}}]);
//# sourceMappingURL=Orderinfo.1d26f717.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1166:function(e,n,a){"use strict";a.r(n);var o=a(7),r=a(8),t=a(10),l=a(9),i=a(11),c=(a(43),a(14)),s=a.n(c),p=a(22),u=(a(155),a(75)),d=a.n(u),f=(a(1137),a(1139)),h=a.n(f),m=(a(1140),a(1142)),v=a.n(m),b=a(0),g=a.n(b),q=a(19),E=a(30),j=a(4),y=Object(q.e)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,n){return{}},handleSubmit:function(e,n){var a=e.real_name,o=e.cellphone,r=e.qq;if(a)if(0!=="".concat(a).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(n.props.userInfo){var l=n.props.userInfo;l.real_name===a&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";n.props.userInfo.id&&(i=i+"?id="+n.props.userInfo.id),console.log(e),3!==t?j.c.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(a){console.log(a),200===a.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),n.props.history.replace(i,Object(p.a)({},e))):s.a.info(a.data.msg,void 0,void 0,!1)}):n.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var n=e.values,a=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return g.a.createElement("form",null,g.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return a("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:n.real_name},"\u59d3\u540d"),g.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return a("cellphone",e)},value:n.cellphone},"\u7535\u8bdd"),g.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return a("qq",e)},value:n.qq},"QQ"),g.a.createElement("div",{style:{marginTop:"21px"}},g.a.createElement(d.a,null,g.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function n(e){return Object(o.a)(this,n),Object(t.a)(this,Object(l.a)(n).call(this,e))}return Object(i.a)(n,e),Object(r.a)(n,[{key:"render",value:function(){return g.a.createElement("div",null,g.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),g.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(b.Component);n.default=O}}]);
//# sourceMappingURL=Orderinfo.6b507931.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","console","log","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"u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sD,EAAA,EAAAtD,CAAAuD,KAAAF,GAAArD,OAAAwD,EAAA,EAAAxD,CAAAuD,KAAAvD,OAAAyD,EAAA,EAAAzD,CAAAqD,GAAAK,KAAAH,KACVxD,0EAIN,OACIuC,EAAAX,EAAAY,cAAA,WACID,EAAAX,EAAAY,cAACoB,EAAA,EAAD,CAAWC,MAAM,2BAAOC,OAAO,IAC/BvB,EAAAX,EAAAY,cAAC3C,EAAD,CAAQkC,QAASyB,KAAKxD,MAAM+B,QAAS5B,SAAUqD,KAAKxD,MAAM+D,SAASC,gBAT3DC,aAgBTX","file":"static/js/Orderinfo.1d26f717.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","console","log","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"uSAgDMA,EAASC,YAAW,CACtBC,iBAAkB,SAAAC,GAAK,OAAAC,OAAAC,EAAA,EAAAD,CAAA,GAAUD,EAAMG,WACvCC,SAAU,SAACC,EAAQL,GAEf,MADe,IAGnBM,aAAc,SACVD,EACAE,GACC,IACMC,EAA4BH,EAA5BG,UAAWC,EAAiBJ,EAAjBI,UAAWC,EAAML,EAANK,GAC7B,GAAKF,EAGC,GAAoD,IAAhD,GAAAG,OAAIH,GAAaI,QAAQ,OAAQ,IAAIC,OAI/C,GAAKJ,EAGE,GAAK,WAAWK,KAAK,GAAAH,OAAIF,GAAaG,QAAQ,OAAQ,KAI7D,GAAKF,EAG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{ Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1132:function(e,t,a){},1133:function(e,t,a){},1180:function(e,t,a){"use strict";a.r(t);var n,o,r=a(7),s=a(8),i=a(10),c=a(9),l=a(11),u=a(0),h=a.n(u),f=a(20),p=a(704),d=a(161),m=a(4),v=(a(1132),a(43),a(14)),g=a.n(v),y=(a(1133),a(30)),b=a(51),C=(a(62),Object(f.b)()(n=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={courses:[]},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;m.c.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):g.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return h.a.createElement("div",{className:"recommendation"},h.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),h.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var a=h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},t.price1),h.a.createElement("span",{className:"old-price"},t.price0));return h.a.createElement(y.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})})))}}]),t}(u.Component))||n),w=Object(b.g)(C),E=function(e){var t=e.item;return h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},"\xa5",t.price1),h.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},O=Object(f.b)()(o=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={courseList:[],value:"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[]},a.getCourses=function(e){m.c.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&a.setState({courseList:t.data.info.search_data.course})})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleSearch=function(){a.state.value&&a.getCourses(a.state.value)},a.handleChange=function(e){a.setState({value:e})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.b)("word"))}},{key:"render",value:function(){var e=this,t=this.state.courseList;return h.a.createElement("div",{className:"search-result"},h.a.createElement(p.a,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory}),t&&t.length>0?h.a.createElement("ul",null,t.map(function(t){var a=h.a.createElement("div",{className:"info"},h.a.createElement("p",{className:"title"},t.course_title),h.a.createElement("p",{className:"des"},t.simpledescription),h.a.createElement(E,{item:t})),n=t.bargain_num||t.groupon_num?h.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return h.a.createElement(d.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:a,id:t.course_id,status:n})})):h.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),h.a.createElement(w,null))}}]),t}(u.PureComponent))||o;t.default=O},583: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},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(3),r=(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 i=(0,r.default)({},o);e.locale&&(i=(0,r.default)({},i,e.locale),e.locale.lang&&(i.lang=(0,r.default)({},o.lang,e.locale.lang)));return i},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,a){"use strict";a(47),a(607)},607:function(e,t,a){},608:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(3)),o=g(a(34)),r=g(a(5)),s=g(a(12)),i=g(a(6)),c=g(a(13)),l=g(a(15)),u=v(a(0)),h=v(a(2)),f=g(a(153)),p=g(a(583)),d=a(588),m=a(609);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 y=function(e){function t(e){(0,r.default)(this,t);var a=(0,i.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,r=this.props,s=r.prefixCls,i=r.showCancelButton,c=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(610)}).cancelText,b=this.state,C=b.value,w=b.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||C&&C.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&C&&C.length>0))),N=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(i||w||C&&C.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:h&&!C?"visible":"hidden"}},h))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:C,disabled:c,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},609: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}},610:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},704:function(e,t,a){"use strict";a(606);var n=a(608),o=a.n(n),r=a(116),s=a(7),i=a(8),c=a(10),l=a(9),u=a(11),h=a(0),f=a.n(h),p=a(51),d=(a(705),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).returnPage=function(){a.props.history.go(-1)},a.search=function(){a.storeKeyword(),a.props.handleSearch()},a.storeKeyword=function(){var e=a.props,t=e.searchHistory,n=void 0===t?[]:t,o=e.value;o&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(r.a)(n),[o])))},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){return f.a.createElement("div",{className:"search-head"},f.a.createElement("div",{className:"left",onClick:this.returnPage},f.a.createElement("i",{className:"iconfont iconiconfront-68"})),f.a.createElement("div",{className:"center"},f.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b"})),f.a.createElement("div",{className:"right right-btn",onClick:this.search},f.a.createElement("div",{className:"submit-btn"},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(p.g)(d)},705:function(e,t,a){}}]);
//# sourceMappingURL=SearchResult.d3f64477.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1132:function(e,t,a){},1133:function(e,t,a){},1181:function(e,t,a){"use strict";a.r(t);var n,o,r=a(7),s=a(8),i=a(10),c=a(9),l=a(11),u=a(0),h=a.n(u),f=a(20),p=a(704),d=a(161),m=a(4),v=(a(1132),a(43),a(14)),g=a.n(v),y=(a(1133),a(30)),b=a(51),C=(a(62),Object(f.b)()(n=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={courses:[]},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;m.c.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):g.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return h.a.createElement("div",{className:"recommendation"},h.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),h.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var a=h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},t.price1),h.a.createElement("span",{className:"old-price"},t.price0));return h.a.createElement(y.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})})))}}]),t}(u.Component))||n),w=Object(b.g)(C),E=function(e){var t=e.item;return h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},"\xa5",t.price1),h.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},O=Object(f.b)()(o=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={courseList:[],value:"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[]},a.getCourses=function(e){m.c.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&a.setState({courseList:t.data.info.search_data.course})})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleSearch=function(){a.state.value&&a.getCourses(a.state.value)},a.handleChange=function(e){a.setState({value:e})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.b)("word"))}},{key:"render",value:function(){var e=this,t=this.state.courseList;return h.a.createElement("div",{className:"search-result"},h.a.createElement(p.a,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory}),t&&t.length>0?h.a.createElement("ul",null,t.map(function(t){var a=h.a.createElement("div",{className:"info"},h.a.createElement("p",{className:"title"},t.course_title),h.a.createElement("p",{className:"des"},t.simpledescription),h.a.createElement(E,{item:t})),n=t.bargain_num||t.groupon_num?h.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return h.a.createElement(d.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:a,id:t.course_id,status:n})})):h.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),h.a.createElement(w,null))}}]),t}(u.PureComponent))||o;t.default=O},583: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},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(3),r=(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 i=(0,r.default)({},o);e.locale&&(i=(0,r.default)({},i,e.locale),e.locale.lang&&(i.lang=(0,r.default)({},o.lang,e.locale.lang)));return i},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,a){"use strict";a(47),a(607)},607:function(e,t,a){},608:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(3)),o=g(a(34)),r=g(a(5)),s=g(a(12)),i=g(a(6)),c=g(a(13)),l=g(a(15)),u=v(a(0)),h=v(a(2)),f=g(a(153)),p=g(a(583)),d=a(588),m=a(609);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 y=function(e){function t(e){(0,r.default)(this,t);var a=(0,i.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,r=this.props,s=r.prefixCls,i=r.showCancelButton,c=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(610)}).cancelText,b=this.state,C=b.value,w=b.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||C&&C.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&C&&C.length>0))),N=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(i||w||C&&C.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:h&&!C?"visible":"hidden"}},h))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:C,disabled:c,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},609: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}},610:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},704:function(e,t,a){"use strict";a(606);var n=a(608),o=a.n(n),r=a(116),s=a(7),i=a(8),c=a(10),l=a(9),u=a(11),h=a(0),f=a.n(h),p=a(51),d=(a(705),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).returnPage=function(){a.props.history.go(-1)},a.search=function(){a.storeKeyword(),a.props.handleSearch()},a.storeKeyword=function(){var e=a.props,t=e.searchHistory,n=void 0===t?[]:t,o=e.value;o&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(r.a)(n),[o])))},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){return f.a.createElement("div",{className:"search-head"},f.a.createElement("div",{className:"left",onClick:this.returnPage},f.a.createElement("i",{className:"iconfont iconiconfront-68"})),f.a.createElement("div",{className:"center"},f.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b"})),f.a.createElement("div",{className:"right right-btn",onClick:this.search},f.a.createElement("div",{className:"submit-btn"},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(p.g)(d)},705:function(e,t,a){}}]);
//# sourceMappingURL=SearchResult.09d41b8d.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.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","components/search/searchHead.js"],"names":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","_ref","price1","price0","SearchResult","courseList","value","searchHistory","JSON","parse","localStorage","getItem","getCourses","word","course","handleClick","handleSearch","handleChange","getParam","searchHead","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","Object","defineProperty","exports","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","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","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","onClick","defaultProps","contextTypes","object","noop","SearchHead","returnPage","go","search","storeKeyword","_this$props$searchHis","setItem","stringify","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","refs","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"0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L,IAAI,MAO3BC,OAAS,WACL7L,EAAK8L,eACL9L,EAAKC,MAAMkD,kBAGf2I,aAAe,WAAM,IAAA/L,EACiBC,EAAKC,MADtB8L,EAAAhM,EACZ2C,qBADY,IAAAqJ,EACI,GADJA,EACQtJ,EADR1C,EACQ0C,MACzBA,GAASI,aAAamJ,QAAQ,gBAAiBrJ,KAAKsJ,UAAL,GAAA5L,OAAA4D,OAAAiI,EAAA,EAAAjI,CAAmBvB,GAAnB,CAAkCD,0FAVjFlC,KAAK4L,KAAKN,OAAOtE,yCAejB,OACI6E,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,eAEX6K,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,OAAO8J,QAAS9K,KAAKoL,YAChCS,EAAAlL,EAAAI,cAAA,KAAGC,UAAU,+BAGjB6K,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,UACX6K,EAAAlL,EAAAI,cAAA+K,EAAAnL,EAAA,CACIuB,MAAOlC,KAAKN,MAAMwC,MAClBoH,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJxD,OAAO,EACPD,SAAU/G,KAAKN,MAAMmD,aACrBoH,YAAY,8BAEpB4B,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,kBAAkB8J,QAAS9K,KAAKsL,QAC3CO,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,cAAf,yBAxCKyC,kBAgDV7B,gBAAWuJ","file":"static/js/SearchResult.d3f64477.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\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 {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport {getCourses} from './../detail/actions';\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass SearchResult extends PureComponent {\n\n state = {\n courseList: [],\n value: '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || []\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\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 {courseList} = this.state\n\n return (\n <div className='search-result'>\n <SearchHeader\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation />\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","'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, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n\n render() {\n return (\n <div className=\"search-head\">\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"/>\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className=\"submit-btn\">搜索\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.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","components/search/searchHead.js"],"names":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","_ref","price1","price0","SearchResult","courseList","value","searchHistory","JSON","parse","localStorage","getItem","getCourses","word","course","handleClick","handleSearch","handleChange","getParam","searchHead","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","Object","defineProperty","exports","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","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","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","onClick","defaultProps","contextTypes","object","noop","SearchHead","returnPage","go","search","storeKeyword","_this$props$searchHis","setItem","stringify","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","refs","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"0SAUMA,SADLC,2NAGGC,MAAQ,CACJC,QAAS,MAsBbC,eAAiB,SAACC,GAAO,IAAAC,EACSC,EAAKC,MADdF,EACbG,SADaH,EACHI,QAENC,KAAR,cAAAC,OAA2BP,wFAtBf,IAAAQ,EAAAC,KAChBC,IAAKC,IAAL,GAAAJ,O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aAAamJ,QAAQ,gBAAiBrJ,KAAKsJ,UAAL,GAAA5L,OAAA4D,OAAAiI,EAAA,EAAAjI,CAAmBvB,GAAnB,CAAkCD,0FAVjFlC,KAAK4L,KAAKN,OAAOtE,yCAejB,OACI6E,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,eAEX6K,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,OAAO8J,QAAS9K,KAAKoL,YAChCS,EAAAlL,EAAAI,cAAA,KAAGC,UAAU,+BAGjB6K,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,UACX6K,EAAAlL,EAAAI,cAAA+K,EAAAnL,EAAA,CACIuB,MAAOlC,KAAKN,MAAMwC,MAClBoH,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJxD,OAAO,EACPD,SAAU/G,KAAKN,MAAMmD,aACrBoH,YAAY,8BAEpB4B,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,kBAAkB8J,QAAS9K,KAAKsL,QAC3CO,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,cAAf,yBAxCKyC,kBAgDV7B,gBAAWuJ","file":"static/js/SearchResult.09d41b8d.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\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 {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport {getCourses} from './../detail/actions';\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass SearchResult extends PureComponent {\n\n state = {\n courseList: [],\n value: '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || []\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\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 {courseList} = this.state\n\n return (\n <div className='search-result'>\n <SearchHeader\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation />\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","'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, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n\n render() {\n return (\n <div className=\"search-head\">\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"/>\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className=\"submit-btn\">搜索\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1178:function(e,t,a){"use strict";a.r(t);a(737);var c=a(738),n=a.n(c),r=a(23),s=(a(43),a(14)),o=a.n(s),i=a(7),l=a(8),u=a(10),d=a(9),h=a(11),m=(a(257),a(99)),p=a.n(m),f=a(0),v=a.n(f),g=a(20),k=a(30),E=a(63),b=a(18),N=a(158),C=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).state={val:e.item.value},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"onChange",value:function(e,t){var a=e.target.checked;this.props.checkChange(t,a)}},{key:"render",value:function(){var e=this,t=this.props.item,a=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.props.toDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"order-content text-overflow-2"},t.simpledescription),v.a.createElement("p",{className:"order-des"},v.a.createElement("span",{className:"order-newprice"},"\xa5",t.price1),v.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return v.a.createElement("div",{className:"cart-c-item"},v.a.createElement("div",{className:"cart-c-check"},v.a.createElement(n.a,{checked:t.check,onChange:function(a){e.onChange(a,t.course_id)}})),v.a.createElement("div",{className:"card-wrap"},v.a.createElement(N.a,{info:a,src:t.image_name,id:t.course_id,toDetail:this.props.toDetail})))}}]),t}(f.Component),j=function(e){function t(){return Object(i.a)(this,t),Object(u.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-main"},v.a.createElement("div",{className:"cart-c-body"},this.props.data.length>0?this.props.data.map(function(t,a){return v.a.createElement(C,{index:a,changeStock:function(t,a){e.props.changeStock(t,a)},checkChange:function(t,a){e.props.checkChange(t,a)},key:a,item:t,toDetail:e.props.toDetail})}):v.a.createElement("div",{className:"cart-tip"},v.a.createElement("p",{className:"cart-mess"},"\u8fd9\u91cc\u662f\u7a7a\u7684\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),v.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(f.Component),y=(a(901),a(15)),O=a.n(y),I=a(4),w=(a(62),p.a.alert),D=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).getList=function(){I.c.get("".concat(API.home,"/m/cart/list")).then(function(e){200===e.data.code?a.setState({data:e.data.data.courses,isLoading:!1}):o.a.info(e.data.msg,2)})},a.tobuy=function(){console.log(a.state.courseIdarr),I.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(a.state.courseIdarr,"]")).then(function(e){0==e.data.errno?a.props.history.push("/order?id=[".concat(a.state.courseIdarr,"]"),{simple:1}):o.a.info(e.data.msg,2)})},a.todelete=function(){a.state.courseIdarr.length>0&&w("","\u786e\u5b9a\u4ece\u8d2d\u7269\u8f66\u4e2d\u5220\u9664\uff1f",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var e={course_ids:a.state.courseIdarr};I.c.post("".concat(API.home,"/m/cart/remove"),e).then(function(e){200===e.data.code?a.getList():o.a.info(e.data.msg,2)})}}])},a.toCourseDetail=function(e){console.log(e);var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],checkedNum:0,allPrice:0,cartNmu:0,courseIdarr:[],isLoading:!0},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"allChange",value:function(e){var t=e.target.checked,a=this.state.data.map(function(e,a){return Object(r.a)({},e,{check:t})});if(this.setState({data:a}),this.calc(a),t){var c=[];a.map(function(e,t){c.push(e.course_id)}),this.setState({courseIdarr:c})}else this.setState({courseIdarr:[]})}},{key:"checkChange",value:function(e,t){var a=this,c=this.state.data.map(function(a,c){return a.course_id===e?Object(r.a)({},a,{check:t}):a});this.setState({data:c}),this.calc(c);var n=[];c.forEach(function(e,t){e.check?(n.push(e.course_id),a.setState({courseIdarr:n})):a.setState({courseIdarr:n})})}},{key:"calc",value:function(e){var t=0,a=0,c=0,n=[];e.forEach(function(e,r){e.check&&(n.push(e),c+=1,a=n.length,t+=parseFloat(e.price1))}),this.setState({checkedNum:a,allPrice:t,cartNmu:c})}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-page",style:{overflow:"hidden"}},v.a.createElement(k.e,{title:"\u8d2d\u7269\u8f66",arrow:!0,cart:!1,delete:!0,toDelete:this.todelete}),v.a.createElement(E.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"cart-body"},v.a.createElement(j,{checkChange:this.checkChange.bind(this),data:this.state.data,toDetail:this.toCourseDetail}),v.a.createElement("div",{className:"cart-footer"},v.a.createElement("div",{className:"cart-label"},v.a.createElement(n.a,{onChange:function(t){e.allChange(t)}}),v.a.createElement("div",null,"\u5168\u9009")),v.a.createElement("div",{className:"all-pirce"},v.a.createElement("p",null,v.a.createElement("span",null,"\u5408\u8ba1\uff1a"),v.a.createElement("span",null,"\uffe5",this.state.allPrice))),v.a.createElement("div",{className:O()({active:this.state.checkedNum>0}),onClick:function(){e.state.checkedNum>0&&e.tobuy()}},"\u7ed3\u7b97",v.a.createElement("span",null," ( ",this.state.checkedNum," ) "))))))}}]),t}(f.Component);t.default=Object(g.b)()(D)},901:function(e,t,a){}}]);
//# sourceMappingURL=ShopCart.535850f6.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1178:function(e,t,a){"use strict";a.r(t);a(737);var c=a(738),n=a.n(c),r=a(22),s=(a(43),a(14)),o=a.n(s),i=a(7),l=a(8),u=a(10),d=a(9),h=a(11),m=(a(257),a(99)),p=a.n(m),f=a(0),v=a.n(f),g=a(20),k=a(30),E=a(63),b=a(18),N=a(158),C=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).state={val:e.item.value},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"onChange",value:function(e,t){var a=e.target.checked;this.props.checkChange(t,a)}},{key:"render",value:function(){var e=this,t=this.props.item,a=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.props.toDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"order-content text-overflow-2"},t.simpledescription),v.a.createElement("p",{className:"order-des"},v.a.createElement("span",{className:"order-newprice"},"\xa5",t.price1),v.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return v.a.createElement("div",{className:"cart-c-item"},v.a.createElement("div",{className:"cart-c-check"},v.a.createElement(n.a,{checked:t.check,onChange:function(a){e.onChange(a,t.course_id)}})),v.a.createElement("div",{className:"card-wrap"},v.a.createElement(N.a,{info:a,src:t.image_name,id:t.course_id,toDetail:this.props.toDetail})))}}]),t}(f.Component),j=function(e){function t(){return Object(i.a)(this,t),Object(u.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-main"},v.a.createElement("div",{className:"cart-c-body"},this.props.data.length>0?this.props.data.map(function(t,a){return v.a.createElement(C,{index:a,changeStock:function(t,a){e.props.changeStock(t,a)},checkChange:function(t,a){e.props.checkChange(t,a)},key:a,item:t,toDetail:e.props.toDetail})}):v.a.createElement("div",{className:"cart-tip"},v.a.createElement("p",{className:"cart-mess"},"\u8fd9\u91cc\u662f\u7a7a\u7684\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),v.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(f.Component),y=(a(901),a(15)),O=a.n(y),I=a(4),w=(a(62),p.a.alert),D=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).getList=function(){I.c.get("".concat(API.home,"/m/cart/list")).then(function(e){200===e.data.code?a.setState({data:e.data.data.courses,isLoading:!1}):o.a.info(e.data.msg,2)})},a.tobuy=function(){console.log(a.state.courseIdarr),I.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(a.state.courseIdarr,"]")).then(function(e){0==e.data.errno?a.props.history.push("/order?id=[".concat(a.state.courseIdarr,"]"),{simple:1}):o.a.info(e.data.msg,2)})},a.todelete=function(){a.state.courseIdarr.length>0&&w("","\u786e\u5b9a\u4ece\u8d2d\u7269\u8f66\u4e2d\u5220\u9664\uff1f",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var e={course_ids:a.state.courseIdarr};I.c.post("".concat(API.home,"/m/cart/remove"),e).then(function(e){200===e.data.code?a.getList():o.a.info(e.data.msg,2)})}}])},a.toCourseDetail=function(e){console.log(e);var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],checkedNum:0,allPrice:0,cartNmu:0,courseIdarr:[],isLoading:!0},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"allChange",value:function(e){var t=e.target.checked,a=this.state.data.map(function(e,a){return Object(r.a)({},e,{check:t})});if(this.setState({data:a}),this.calc(a),t){var c=[];a.map(function(e,t){c.push(e.course_id)}),this.setState({courseIdarr:c})}else this.setState({courseIdarr:[]})}},{key:"checkChange",value:function(e,t){var a=this,c=this.state.data.map(function(a,c){return a.course_id===e?Object(r.a)({},a,{check:t}):a});this.setState({data:c}),this.calc(c);var n=[];c.forEach(function(e,t){e.check?(n.push(e.course_id),a.setState({courseIdarr:n})):a.setState({courseIdarr:n})})}},{key:"calc",value:function(e){var t=0,a=0,c=0,n=[];e.forEach(function(e,r){e.check&&(n.push(e),c+=1,a=n.length,t+=parseFloat(e.price1))}),this.setState({checkedNum:a,allPrice:t,cartNmu:c})}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-page",style:{overflow:"hidden"}},v.a.createElement(k.e,{title:"\u8d2d\u7269\u8f66",arrow:!0,cart:!1,delete:!0,toDelete:this.todelete}),v.a.createElement(E.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"cart-body"},v.a.createElement(j,{checkChange:this.checkChange.bind(this),data:this.state.data,toDetail:this.toCourseDetail}),v.a.createElement("div",{className:"cart-footer"},v.a.createElement("div",{className:"cart-label"},v.a.createElement(n.a,{onChange:function(t){e.allChange(t)}}),v.a.createElement("div",null,"\u5168\u9009")),v.a.createElement("div",{className:"all-pirce"},v.a.createElement("p",null,v.a.createElement("span",null,"\u5408\u8ba1\uff1a"),v.a.createElement("span",null,"\uffe5",this.state.allPrice))),v.a.createElement("div",{className:O()({active:this.state.checkedNum>0}),onClick:function(){e.state.checkedNum>0&&e.tobuy()}},"\u7ed3\u7b97",v.a.createElement("span",null," ( ",this.state.checkedNum," ) "))))))}}]),t}(f.Component);t.default=Object(g.b)()(D)},901:function(e,t,a){}}]);
//# sourceMappingURL=ShopCart.a97f6c51.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/shopCart/cartItem.js","components/shopCart/cartList.js","components/shopCart/index.js"],"names":["CartItem","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","val","item","value","e","id","checked","target","checkChange","_this2","Info","react_default","a","createElement","className","onClick","toDetail","course_id","course_title","simpledescription","price1","price0","checkbox_default","check","onChange","OrderList","info","src","image_name","Component","cartList","data","length","map","index","cartItem","changeStock","key","react_router_dom","to","alert","modal_default","Cart","getList","http","get","concat","API","home","then","res","code","setState","courses","isLoading","toast_default","msg","tobuy","console","log","courseIdarr","errno","history","push","simple","todelete","text","onPress","course_ids","post","toCourseDetail","_this$props","dispatch","checkedNum","allPrice","cartNmu","newData","i","objectSpread","calc","arr","forEach","parseFloat","_this3","style","overflow","common","title","arrow","cart","delete","toDelete","Loading","shopCart_cartList","bind","allChange","classnames","active","connect"],"mappings":"yRA0DeA,cAlDX,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,KACDQ,MAAQ,CACTC,IAAKT,EAAMU,KAAKC,OAHLV,wEAOVW,EAAGC,GACR,IAAIC,EAAUF,EAAEG,OAAOD,QACvBV,KAAKJ,MAAMgB,YAAYH,EAAIC,oCAGtB,IAAAG,EAAAb,KACDM,EAAON,KAAKJ,MAAMU,KAChBQ,EACFC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,gCAAgCC,QAAS,kBAAIN,EAAKjB,MAAMwB,SAASd,EAAKe,aAE9Ef,EAAKgB,cAGVP,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAAiCZ,EAAKiB,mBACnDR,EAAAC,EAAAC,cAAA,KAAGC,UAAU,aACTH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,kBAAhB,OAAmCZ,EAAKkB,QACxCT,EAAAC,EAAAC,cAAA,QAAMC,UAAU,eAAhB,OAAgCZ,EAAKmB,UAKjD,OACQV,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBAC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AMC,OAAO,EAAMC,MAAM,EAAOC,QAAQ,EAAMC,SAAU/F,KAAKqE,WAE9EtD,EAAAC,EAAAC,cAAC+E,EAAA,EAAD,CAAStC,UAAW1D,KAAKI,MAAMsD,WAC3B3C,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAACgF,EAAD,CACIrF,YAAaZ,KAAKY,YAAYsF,KAAKlG,MACnCmC,KAAMnC,KAAKI,MAAM+B,KACjBf,SAAUpB,KAAK0E,iBAGnB3D,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAAS,EAAAV,EAAA,CAAUY,SAAU,SAACpB,GACjB+E,EAAKY,UAAU3F,MAEnBO,EAAAC,EAAAC,cAAA,4BAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAAA,SACIF,EAAAC,EAAAC,cAAA,kCACAF,EAAAC,EAAAC,cAAA,qBAAQjB,KAAKI,MAAM0E,YAG3B/D,EAAAC,EAAAC,cAAA,OAAKC,UAAWkF,IAAW,CACvBC,OAAUrG,KAAKI,MAAMyE,WAAa,IAClC1D,QAAS,WACLoE,EAAKnF,MAAMyE,WAAa,GACxBU,EAAK1B,UAJb,eAOM9C,EAAAC,EAAAC,cAAA,kBAAUjB,KAAKI,MAAMyE,WAArB,mBApMf5C,aAiNJqE,wBAAUxD","file":"static/js/ShopCart.535850f6.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Checkbox } from 'antd-mobile';\nimport OrderList from '@/common/OrderList';\nimport {Link} from \"react-router-dom\";\n\n\nclass CartItem extends Component {\n // 构造函数\n constructor(props) {\n super(props)\n this.state = {\n val: props.item.value\n }\n }\n // 改变选择\n onChange(e, id) {\n let checked = e.target.checked\n this.props.checkChange(id, checked)\n }\n\n render() {\n let item = this.props.item\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={()=>this.props.toDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </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\n return (\n <div className=\"cart-c-item\" >\n <div className=\"cart-c-check\">\n <Checkbox checked={item.check} onChange={(e) => {\n this.onChange(e, item.course_id)\n }} />\n </div>\n\n <div className=\"card-wrap\">\n <OrderList \n info={Info} \n src={item.image_name} \n id={item.course_id}\n toDetail={this.props.toDetail}\n ></OrderList>\n </div>\n </div>\n\n )\n }\n}\nexport default CartItem;","import React, {Component} from 'react'\nimport {Link} from 'react-router-dom'\nimport CartItem from './cartItem'\n\nclass cartList extends Component {\n render() {\n return (\n <div className=\"cart-main\">\n {/* 遍历购物车商品列表 */}\n <div className=\"cart-c-body\">\n {\n this.props.data.length > 0 ?\n this.props.data.map((item, index) => {\n return (\n <CartItem\n index={index}\n changeStock={(id, val) => {\n this.props.changeStock(id, val)\n }}\n checkChange={(id, val) => {\n this.props.checkChange(id, val)\n }}\n key={index} \n item={item}\n toDetail={this.props.toDetail}\n />\n )\n })\n : <div className=\"cart-tip\">\n <p className='cart-mess'>这里是空的,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default cartList;","import React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {Checkbox, Modal, Toast} from 'antd-mobile'\nimport {HeaderBar} from '../../common'\nimport Loading from '@/common/Loading'\nimport ShopCart from './cartList.js'\nimport './card.scss'\nimport classnames from 'classnames'\nimport {http} from \"@/utils\";\nimport {getCourses} from './../detail/actions';\n\nconst alert = Modal.alert;\n\nclass Cart extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n checkedNum: 0,\n allPrice: 0,\n cartNmu: 0,\n courseIdarr: [], // 选中的课程id\n isLoading: true\n }\n\n }\n\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取课程列表\n getList = () => {\n http.get(`${API.home}/m/cart/list`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data.courses,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n //全选\n allChange(e) {\n let checked = e.target.checked\n let newData = this.state.data.map((item, i) => {\n return {\n ...item,\n check: checked\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n\n if (checked) {\n let arr = []\n newData.map((item, i) => {\n arr.push(item.course_id)\n })\n this.setState({\n courseIdarr: arr\n })\n\n } else {\n this.setState({\n courseIdarr: []\n })\n }\n\n }\n\n //点击\n checkChange(id, check) {\n let newData = this.state.data.map((item, i) => {\n if (item.course_id === id) {\n return {\n ...item,\n check: check\n }\n } else {\n return item;\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item.course_id)\n this.setState({\n courseIdarr: arr\n })\n } else {\n this.setState({\n courseIdarr: arr\n })\n }\n })\n }\n\n //计算总价\n calc(newData) {\n let allPrice = 0;\n let checkedNum = 0;\n let cartNmu = 0;\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item)\n cartNmu += 1;\n checkedNum = arr.length;\n allPrice += parseFloat(item.price1);\n }\n })\n this.setState({\n checkedNum,\n allPrice,\n cartNmu\n })\n }\n\n // 去结算\n tobuy = () => {\n console.log(this.state.courseIdarr);\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {\n if (res.data.errno == 0) {\n this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n\n // 删除\n todelete = () => {\n if (this.state.courseIdarr.length > 0) {\n alert('', '确定从购物车中删除?', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n course_ids: this.state.courseIdarr\n }\n http.post(`${API.home}/m/cart/remove`, data).then((res) => {\n if (res.data.code === 200) {\n this.getList()\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n }\n\n toCourseDetail = (id) => {\n console.log(id);\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n return (\n <div className=\"cart-page\" style={{overflow: 'hidden'}}>\n <HeaderBar title='购物车' arrow={true} cart={false} delete={true} toDelete={this.todelete}></HeaderBar>\n\n <Loading isLoading={this.state.isLoading}>\n <div className=\"cart-body\">\n <ShopCart\n checkChange={this.checkChange.bind(this)}\n data={this.state.data}\n toDetail={this.toCourseDetail}\n />\n\n <div className=\"cart-footer\">\n <div className=\"cart-label\">\n <Checkbox onChange={(e) => {\n this.allChange(e)\n }}/>\n <div>全选</div>\n </div>\n <div className=\"all-pirce\">\n <p>\n <span>合计:</span>\n <span>¥{this.state.allPrice}</span>\n </p>\n </div>\n <div className={classnames({\n 'active': this.state.checkedNum > 0\n })} onClick={() => {\n if (this.state.checkedNum > 0) {\n this.tobuy()\n }\n }}>\n 结算<span> ( {this.state.checkedNum} ) </span>\n </div>\n </div>\n\n </div>\n </Loading>\n\n\n </div>\n )\n }\n}\n\nexport default connect()(Cart)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/shopCart/cartItem.js","components/shopCart/cartList.js","components/shopCart/index.js"],"names":["CartItem","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","val","item","value","e","id","checked","target","checkChange","_this2","Info","react_default","a","createElement","className","onClick","toDetail","course_id","course_title","simpledescription","price1","price0","checkbox_default","check","onChange","OrderList","info","src","image_name","Component","cartList","data","length","map","index","cartItem","changeStock","key","react_router_dom","to","alert","modal_default","Cart","getList","http","get","concat","API","home","then","res","code","setState","courses","isLoading","toast_default","msg","tobuy","console","log","courseIdarr","errno","history","push","simple","todelete","text","onPress","course_ids","post","toCourseDetail","_this$props","dispatch","checkedNum","allPrice","cartNmu","newData","i","objectSpread","calc","arr","forEach","parseFloat","_this3","style","overflow","common","title","arrow","cart","delete","toDelete","Loading","shopCart_cartList","bind","allChange","classnames","active","connect"],"mappings":"yRA0DeA,cAlDX,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,KACDQ,MAAQ,CACTC,IAAKT,EAAMU,KAAKC,OAHLV,wEAOVW,EAAGC,GACR,IAAIC,EAAUF,EAAEG,OAAOD,QACvBV,KAAKJ,MAAMgB,YAAYH,EAAIC,oCAGtB,IAAAG,EAAAb,KACDM,EAAON,KAAKJ,MAAMU,KAChBQ,EACFC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,gCAAgCC,QAAS,kBAAIN,EAAKjB,MAAMwB,SAASd,EAAKe,aAE9Ef,EAAKgB,cAGVP,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAAiCZ,EAAKiB,mBACnDR,EAAAC,EAAAC,cAAA,KAAGC,UAAU,aACTH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,kBAAhB,OAAmCZ,EAAKkB,QACxCT,EAAAC,EAAAC,cAAA,QAAMC,UAAU,eAAhB,OAAgCZ,EAAKmB,UAKjD,OACQV,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACXH,EAAAC,EAAAC,cAAAS,EAAAV,EAAA,CAAUN,QAASJ,EAAKqB,MAAOC,SAAU,SAACpB,GACtCK,EAAKe,SAASpB,EAAGF,EAAKe,eAI9BN,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAACY,EAA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AAC,EAAAC,cAACgF,EAAD,CACIrF,YAAaZ,KAAKY,YAAYsF,KAAKlG,MACnCmC,KAAMnC,KAAKI,MAAM+B,KACjBf,SAAUpB,KAAK0E,iBAGnB3D,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAAS,EAAAV,EAAA,CAAUY,SAAU,SAACpB,GACjB+E,EAAKY,UAAU3F,MAEnBO,EAAAC,EAAAC,cAAA,4BAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAAA,SACIF,EAAAC,EAAAC,cAAA,kCACAF,EAAAC,EAAAC,cAAA,qBAAQjB,KAAKI,MAAM0E,YAG3B/D,EAAAC,EAAAC,cAAA,OAAKC,UAAWkF,IAAW,CACvBC,OAAUrG,KAAKI,MAAMyE,WAAa,IAClC1D,QAAS,WACLoE,EAAKnF,MAAMyE,WAAa,GACxBU,EAAK1B,UAJb,eAOM9C,EAAAC,EAAAC,cAAA,kBAAUjB,KAAKI,MAAMyE,WAArB,mBApMf5C,aAiNJqE,wBAAUxD","file":"static/js/ShopCart.a97f6c51.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Checkbox } from 'antd-mobile';\nimport OrderList from '@/common/OrderList';\nimport {Link} from \"react-router-dom\";\n\n\nclass CartItem extends Component {\n // 构造函数\n constructor(props) {\n super(props)\n this.state = {\n val: props.item.value\n }\n }\n // 改变选择\n onChange(e, id) {\n let checked = e.target.checked\n this.props.checkChange(id, checked)\n }\n\n render() {\n let item = this.props.item\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={()=>this.props.toDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </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\n return (\n <div className=\"cart-c-item\" >\n <div className=\"cart-c-check\">\n <Checkbox checked={item.check} onChange={(e) => {\n this.onChange(e, item.course_id)\n }} />\n </div>\n\n <div className=\"card-wrap\">\n <OrderList \n info={Info} \n src={item.image_name} \n id={item.course_id}\n toDetail={this.props.toDetail}\n ></OrderList>\n </div>\n </div>\n\n )\n }\n}\nexport default CartItem;","import React, {Component} from 'react'\nimport {Link} from 'react-router-dom'\nimport CartItem from './cartItem'\n\nclass cartList extends Component {\n render() {\n return (\n <div className=\"cart-main\">\n {/* 遍历购物车商品列表 */}\n <div className=\"cart-c-body\">\n {\n this.props.data.length > 0 ?\n this.props.data.map((item, index) => {\n return (\n <CartItem\n index={index}\n changeStock={(id, val) => {\n this.props.changeStock(id, val)\n }}\n checkChange={(id, val) => {\n this.props.checkChange(id, val)\n }}\n key={index} \n item={item}\n toDetail={this.props.toDetail}\n />\n )\n })\n : <div className=\"cart-tip\">\n <p className='cart-mess'>这里是空的,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default cartList;","import React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {Checkbox, Modal, Toast} from 'antd-mobile'\nimport {HeaderBar} from '../../common'\nimport Loading from '@/common/Loading'\nimport ShopCart from './cartList.js'\nimport './card.scss'\nimport classnames from 'classnames'\nimport {http} from \"@/utils\";\nimport {getCourses} from './../detail/actions';\n\nconst alert = Modal.alert;\n\nclass Cart extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n checkedNum: 0,\n allPrice: 0,\n cartNmu: 0,\n courseIdarr: [], // 选中的课程id\n isLoading: true\n }\n\n }\n\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取课程列表\n getList = () => {\n http.get(`${API.home}/m/cart/list`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data.courses,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n //全选\n allChange(e) {\n let checked = e.target.checked\n let newData = this.state.data.map((item, i) => {\n return {\n ...item,\n check: checked\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n\n if (checked) {\n let arr = []\n newData.map((item, i) => {\n arr.push(item.course_id)\n })\n this.setState({\n courseIdarr: arr\n })\n\n } else {\n this.setState({\n courseIdarr: []\n })\n }\n\n }\n\n //点击\n checkChange(id, check) {\n let newData = this.state.data.map((item, i) => {\n if (item.course_id === id) {\n return {\n ...item,\n check: check\n }\n } else {\n return item;\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item.course_id)\n this.setState({\n courseIdarr: arr\n })\n } else {\n this.setState({\n courseIdarr: arr\n })\n }\n })\n }\n\n //计算总价\n calc(newData) {\n let allPrice = 0;\n let checkedNum = 0;\n let cartNmu = 0;\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item)\n cartNmu += 1;\n checkedNum = arr.length;\n allPrice += parseFloat(item.price1);\n }\n })\n this.setState({\n checkedNum,\n allPrice,\n cartNmu\n })\n }\n\n // 去结算\n tobuy = () => {\n console.log(this.state.courseIdarr);\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {\n if (res.data.errno == 0) {\n this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n\n // 删除\n todelete = () => {\n if (this.state.courseIdarr.length > 0) {\n alert('', '确定从购物车中删除?', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n course_ids: this.state.courseIdarr\n }\n http.post(`${API.home}/m/cart/remove`, data).then((res) => {\n if (res.data.code === 200) {\n this.getList()\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n }\n\n toCourseDetail = (id) => {\n console.log(id);\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n return (\n <div className=\"cart-page\" style={{overflow: 'hidden'}}>\n <HeaderBar title='购物车' arrow={true} cart={false} delete={true} toDelete={this.todelete}></HeaderBar>\n\n <Loading isLoading={this.state.isLoading}>\n <div className=\"cart-body\">\n <ShopCart\n checkChange={this.checkChange.bind(this)}\n data={this.state.data}\n toDetail={this.toCourseDetail}\n />\n\n <div className=\"cart-footer\">\n <div className=\"cart-label\">\n <Checkbox onChange={(e) => {\n this.allChange(e)\n }}/>\n <div>全选</div>\n </div>\n <div className=\"all-pirce\">\n <p>\n <span>合计:</span>\n <span>¥{this.state.allPrice}</span>\n </p>\n </div>\n <div className={classnames({\n 'active': this.state.checkedNum > 0\n })} onClick={() => {\n if (this.state.checkedNum > 0) {\n this.tobuy()\n }\n }}>\n 结算<span> ( {this.state.checkedNum} ) </span>\n </div>\n </div>\n\n </div>\n </Loading>\n\n\n </div>\n )\n }\n}\n\nexport default connect()(Cart)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1175:function(e,t,a){"use strict";a.r(t);var n=a(24),o=(a(43),a(14)),c=a.n(o),s=a(116),i=a(7),r=a(8),l=a(10),u=a(9),p=a(11),d=a(0),m=a.n(d),h=(a(778),a(779),a(780),a(15)),f=a.n(h),v=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).clearInput=function(){a.props.onChange("")},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.type,a=e.placeholder;return m.a.createElement("div",{className:"custom-input-wrapper"},m.a.createElement("input",{type:t,className:f()("custom-input"),placeholder:a,onChange:this.props.onChange,value:this.props.value}),m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(d.Component);v.defaultProps={type:"text",placeholder:""};var C,b=v,g=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return m.a.createElement("div",{className:"exchange-bar"},m.a.createElement(b,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),m.a.createElement("button",{className:f()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(d.Component),y=(a(781),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).pick=function(){var e=a.props,t=e.useCoupon;!e.invalid&&t&&t(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.ctype,a=e.amount,n=e.format_expire_time,o=e.limit_course,c=e.invalid,s=e.course_title,i=e.id,r=e.selectedCouponId,l=e.showUseButton;return m.a.createElement("li",{className:"coupon",onClick:this.pick},m.a.createElement("div",{className:f()("coupon-info",c?"invalid":"coupon-type".concat(t))},m.a.createElement("p",{className:"type"},1===t?"\u4ee3\u91d1\u5238":"\u8bfe\u7a0b\u5238"),1===t?m.a.createElement("p",{className:"denomination"},a," ",m.a.createElement("span",null,"\u5143")):m.a.createElement("p",{className:"course-title"},s),m.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",n),r===i&&m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-5",{check:!c})}),m.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return m.a.createElement("li",{key:t})}))),m.a.createElement("div",{className:"coupon-des"},m.a.createElement("span",{className:"limit"},0===o?"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b":"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),l&&m.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528")))}}]),t}(d.PureComponent)),E=a(4),j=a(70),O=a(38),_=a(30),I=a(20),w=(a(62),Object(I.b)()(C=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(E.b)("id"),showUseButton:!1},a.handleChange=function(e){var t=e?e.target.value:"";a.setState({redeemCode:t})},a.exchange=function(){var e=a.props.location.state,t=void 0===e?{}:e;""!==a.state.redeemCode?E.c.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if(a.state.showUseButton)a.setState({couponList:[].concat(Object(s.a)(a.state.couponList),[o]),redeemCode:""});else{var i=n.data;2==i.ctype&&i.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(s.a)(a.state.invalid_coupons),[i]),showUseButton:null}):a.setState({valid_coupons:[].concat(Object(s.a)(a.state.valid_coupons),[i]),redeemCode:""})}c.a.info("\u5151\u6362\u6210\u529f"),"/my"===t.from&&a.getMyCoupons(),"/order"===t.from&&a.getAllCoupons()}else c.a.info(n.msg)}):c.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){E.c.get("".concat(API.home,"/m/coupon/all")).then(function(e){var t=e.data;200===t.code?a.setState({couponList:Object(O.isEmpty)(t.data)?[]:t.data}):c.a.info(t.msg)})},a.getAllCoupons=function(){E.c.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId}).then(function(e){var t=e.data;if(200===t.code){var n=t.data.inuse_coupon;a.setState({valid_coupons:n?[].concat(Object(s.a)(n),Object(s.a)(t.data.valid_coupons)):t.data.valid_coupons,invalid_coupons:t.data.invalid_coupons,selectedCouponId:n.length?n[0].id:0})}else c.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props,n=t.history,o=(t.dispatch,a.state.couponList.find(function(t){return t.id===e}));if(e)if(a.state.showUseButton){if(1!==o.ctype)return n.push("/detail?id=".concat(o.limit_course)),!1;n.push("/classify")}else{var s=a.state,i=s.courseId;s.selectedCouponId===e?E.c.post("".concat(API.home,"/m/coupon/cancel"),{course_id:i}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):c.a.info(t.msg)}):E.c.post("".concat(API.home,"/m/coupon/use"),{course_id:a.state.courseId,coupon_id:e}).then(function(t){var n=t&&t.data;200===n.code?(a.setState({selectedCouponId:e}),a.props.history.goBack()):c.a.info(n.msg)})}else c.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.history,a=e.location,n=this.props.location.state;n&&n.from&&("/my"===n.from?(this.getMyCoupons(),this.setState({showUseButton:!0})):(this.state.courseId||(a.state&&a.state.from?t.replace(a.state.from):t.goBack()),this.getAllCoupons()))}},{key:"render",value:function(){var e=this.props.location.state,t=this.state,a=t.showUseButton,n=t.selectedCouponId;return m.a.createElement("div",{className:"use-coupon"},m.a.createElement(_.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),m.a.createElement(g,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),m.a.createElement("div",{className:"coupons-area"},m.a.createElement(N,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon}),this.state.invalid_coupons.length>0&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),m.a.createElement(N,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))))}}]),t}(d.PureComponent))||C);function N(e){var t=e.coupons,a=Object(n.a)(e,["coupons"]);return 0===t.length?m.a.createElement("div",{className:"empty"},m.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):m.a.createElement("ul",null,t.map(function(e){return m.a.createElement(y,Object.assign({key:e.id},e,{id:e.id},a))}))}t.default=Object(j.a)(w)},778:function(e,t,a){},779:function(e,t,a){},780:function(e,t,a){},781:function(e,t,a){}}]);
//# sourceMappingURL=coupons.32d91de9.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1177:function(e,t,a){"use strict";a.r(t);var n=a(24),o=(a(43),a(14)),c=a.n(o),s=a(116),i=a(7),r=a(8),l=a(10),u=a(9),p=a(11),d=a(0),m=a.n(d),h=(a(778),a(779),a(780),a(15)),f=a.n(h),v=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).clearInput=function(){a.props.onChange("")},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.type,a=e.placeholder;return m.a.createElement("div",{className:"custom-input-wrapper"},m.a.createElement("input",{type:t,className:f()("custom-input"),placeholder:a,onChange:this.props.onChange,value:this.props.value}),m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(d.Component);v.defaultProps={type:"text",placeholder:""};var C,b=v,g=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return m.a.createElement("div",{className:"exchange-bar"},m.a.createElement(b,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),m.a.createElement("button",{className:f()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(d.Component),y=(a(781),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).pick=function(){var e=a.props,t=e.useCoupon;!e.invalid&&t&&t(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.ctype,a=e.amount,n=e.format_expire_time,o=e.limit_course,c=e.invalid,s=e.course_title,i=e.id,r=e.selectedCouponId,l=e.showUseButton;return m.a.createElement("li",{className:"coupon",onClick:this.pick},m.a.createElement("div",{className:f()("coupon-info",c?"invalid":"coupon-type".concat(t))},m.a.createElement("p",{className:"type"},1===t?"\u4ee3\u91d1\u5238":"\u8bfe\u7a0b\u5238"),1===t?m.a.createElement("p",{className:"denomination"},a," ",m.a.createElement("span",null,"\u5143")):m.a.createElement("p",{className:"course-title"},s),m.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",n),r===i&&m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-5",{check:!c})}),m.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return m.a.createElement("li",{key:t})}))),m.a.createElement("div",{className:"coupon-des"},m.a.createElement("span",{className:"limit"},0===o?"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b":"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),l&&m.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528")))}}]),t}(d.PureComponent)),E=a(4),j=a(70),O=a(38),_=a(30),I=a(20),w=(a(62),Object(I.b)()(C=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(E.b)("id"),showUseButton:!1},a.handleChange=function(e){var t=e?e.target.value:"";a.setState({redeemCode:t})},a.exchange=function(){var e=a.props.location.state,t=void 0===e?{}:e;""!==a.state.redeemCode?E.c.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if(a.state.showUseButton)a.setState({couponList:[].concat(Object(s.a)(a.state.couponList),[o]),redeemCode:""});else{var i=n.data;2==i.ctype&&i.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(s.a)(a.state.invalid_coupons),[i]),showUseButton:null}):a.setState({valid_coupons:[].concat(Object(s.a)(a.state.valid_coupons),[i]),redeemCode:""})}c.a.info("\u5151\u6362\u6210\u529f"),"/my"===t.from&&a.getMyCoupons(),"/order"===t.from&&a.getAllCoupons()}else c.a.info(n.msg)}):c.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){E.c.get("".concat(API.home,"/m/coupon/all")).then(function(e){var t=e.data;200===t.code?a.setState({couponList:Object(O.isEmpty)(t.data)?[]:t.data}):c.a.info(t.msg)})},a.getAllCoupons=function(){E.c.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId}).then(function(e){var t=e.data;if(200===t.code){var n=t.data.inuse_coupon;a.setState({valid_coupons:n?[].concat(Object(s.a)(n),Object(s.a)(t.data.valid_coupons)):t.data.valid_coupons,invalid_coupons:t.data.invalid_coupons,selectedCouponId:n.length?n[0].id:0})}else c.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props,n=t.history,o=(t.dispatch,a.state.couponList.find(function(t){return t.id===e}));if(e)if(a.state.showUseButton){if(1!==o.ctype)return n.push("/detail?id=".concat(o.limit_course)),!1;n.push("/classify")}else{var s=a.state,i=s.courseId;s.selectedCouponId===e?E.c.post("".concat(API.home,"/m/coupon/cancel"),{course_id:i}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):c.a.info(t.msg)}):E.c.post("".concat(API.home,"/m/coupon/use"),{course_id:a.state.courseId,coupon_id:e}).then(function(t){var n=t&&t.data;200===n.code?(a.setState({selectedCouponId:e}),a.props.history.goBack()):c.a.info(n.msg)})}else c.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.history,a=e.location,n=this.props.location.state;n&&n.from&&("/my"===n.from?(this.getMyCoupons(),this.setState({showUseButton:!0})):(this.state.courseId||(a.state&&a.state.from?t.replace(a.state.from):t.goBack()),this.getAllCoupons()))}},{key:"render",value:function(){var e=this.props.location.state,t=this.state,a=t.showUseButton,n=t.selectedCouponId;return m.a.createElement("div",{className:"use-coupon"},m.a.createElement(_.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),m.a.createElement(g,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),m.a.createElement("div",{className:"coupons-area"},m.a.createElement(N,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon}),this.state.invalid_coupons.length>0&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),m.a.createElement(N,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))))}}]),t}(d.PureComponent))||C);function N(e){var t=e.coupons,a=Object(n.a)(e,["coupons"]);return 0===t.length?m.a.createElement("div",{className:"empty"},m.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):m.a.createElement("ul",null,t.map(function(e){return m.a.createElement(y,Object.assign({key:e.id},e,{id:e.id},a))}))}t.default=Object(j.a)(w)},778:function(e,t,a){},779:function(e,t,a){},780:function(e,t,a){},781:function(e,t,a){}}]);
//# sourceMappingURL=coupons.70722e88.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/index.js"],"names":["Input","clearInput","_this","props","onChange","_this$props","this","type","placeholder","react_default","a","createElement","className","classnames","value","hide","length","onClick","Component","defaultProps","RedeemBar","state","redeemCode","exchange","coupons_Input","active","Coupon","pick","useCoupon","invalid","id","GoToUse","_this$props2","ctype","amount","format_expire_time","limit_course","course_title","selectedCouponId","showUseButton","concat","check","Array","fill","map","item","index","key","PureComponent","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","handleChange","e","target","setState","_this$props$location$","location","http","post","API","home","code","then","res","data","coupon","Object","toConsumableArray","toast_default","info","from","getMyCoupons","getAllCoupons","msg","get","isEmpty","course_id","inuse_coupon","val","history","dispatch","find","push","_this$state","coupon_id","goBack","reload","replace","_this$state2","common","title","arrow","coupons_RedeemBar","Content","coupons","select","Fragment","purpose","_ref","rest","objectWithoutProperties","coupons_Coupon","assign","WithFullSize"],"mappings":"8OAKMA,6MACFC,WAAa,WACTC,EAAKC,MAAMC,SAAS,6EAGf,IAAAC,EACqBC,KAAKH,MAA1BI,EADAF,EACAE,KAAMC,EADNH,EACMG,YACX,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,g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vOrBmB,sBAkPxB,SAASkD,EAATK,GAAqC,IAAnBJ,EAAmBI,EAAnBJ,QAAYK,EAAOjC,OAAAkC,EAAA,EAAAlC,CAAAgC,EAAA,aACjC,OAAuB,IAAnBJ,EAAQnF,OAEJP,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SACXH,EAAAC,EAAAC,cAAA,oEAKRF,EAAAC,EAAAC,cAAA,UAEQwF,EAAQvD,IAAI,SAAAC,GACR,OACIpC,EAAAC,EAAAC,cAAC+F,EAADnC,OAAAoC,OAAA,CACI5D,IAAKF,EAAKf,IACNe,EAFR,CAGIf,GAAIe,EAAKf,IACL0E,OASjBI,sBAAa3D","file":"static/js/coupons.32d91de9.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input')}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n />\n <i\n className={classnames('iconfont icondanseshixintubiao-3', {\n hide: this.props.value.length === 0\n })}\n onClick={this.clearInput}\n />\n </div>\n );\n }\n}\n\n\nInput.defaultProps = {type: 'text', placeholder: ''}\n\nexport default Input;","import React, { Component } from 'react';\nimport './exchange-bar.scss'\nimport Input from '../Input'\nimport classnames from 'classnames'\n\nclass RedeemBar extends Component {\n state = {}\n\n render() {\n const {onChange, redeemCode, exchange} = this.props\n return (\n <div className=\"exchange-bar\">\n <Input\n placeholder={'请输入优惠码'}\n onChange={onChange}\n value={redeemCode}\n />\n <button className={classnames({\n active: redeemCode && redeemCode.length > 0\n })} onClick={exchange}>兑换\n </button>\n </div>\n );\n }\n}\n\nexport default RedeemBar;","import React, { PureComponent } from 'react'\nimport './coupon.scss'\nimport classnames from 'classnames'\n\nclass Coupon extends PureComponent {\n\n pick = () => {\n let {useCoupon, invalid} = this.props\n !invalid && useCoupon && useCoupon(this.props.id)\n }\n\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n\n render() {\n let {\n ctype,\n amount,\n format_expire_time,\n limit_course,\n invalid,\n course_title,\n id,\n selectedCouponId,\n showUseButton\n } = this.props\n\n return (\n <li className='coupon' onClick={this.pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{ctype === 1 ? '代金券' : '课程券'}</p>\n {\n ctype === 1 ? <p className='denomination'>{amount} <span>元</span></p>\n : <p className='course-title'>{course_title}</p>\n\n }\n <p className='expire'>有效期至:{format_expire_time}</p>\n {\n selectedCouponId === id &&\n <i className={classnames('iconfont icondanseshixintubiao-5', {\n check: !invalid\n })}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n <div className=\"coupon-des\">\n <span className='limit'>{\n limit_course === 0 ? '可用于大于代金券金额的课程' : `仅适用于《${course_title}》`\n }</span>\n {\n showUseButton &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n\n </div>\n </li>\n );\n }\n}\n\nexport default Coupon","import React, { PureComponent } from 'react';\nimport './coupons.scss'\n\nimport RedeemBar from \"./RedeemBar\";\nimport Coupon from './Coupon'\nimport { http, getParam } from '@/utils'\nimport { WithFullSize } from '@/HOCs'\nimport { Toast } from 'antd-mobile'\nimport { isEmpty } from 'lodash'\nimport { HeaderBar } from \"@/common\";\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass UseCoupon extends PureComponent {\n\n state = {\n selectedCouponId: 0,\n redeemCode: '',\n couponList: [],\n valid_coupons: [],\n invalid_coupons: [],\n courseId: getParam('id'),\n showUseButton: false\n }\n\n componentDidMount() {\n\n const {history, location} = this.props\n\n const {state} = this.props.location\n\n\n if (state && state.from) {\n if (state.from === '/my') {\n this.getMyCoupons();\n this.setState({\n showUseButton: true\n })\n } else {\n if (!this.state.courseId) {\n location.state && location.state.from ? history.replace(location.state.from) : history.goBack()\n }\n this.getAllCoupons();\n }\n }\n }\n\n handleChange = e => {\n let value = e ? e.target.value : ''\n this.setState({redeemCode: value})\n }\n\n exchange = () => {\n const { location: { state = {}} } = this.props;\n if (this.state.redeemCode !== '') {\n http.post(`${API.home}/m/coupon/exchange`, {\n code: this.state.redeemCode\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const coupon = data.data\n\n if (this.state.showUseButton) {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n } else {\n\n const coupon = data.data\n\n if (coupon['ctype'] == 2\n && coupon['limit_course'] != this.state.courseId) {\n this.setState({\n invalid_coupons: [...this.state.invalid_coupons, coupon],\n showUseButton: null\n });\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n\n }\n Toast.info('兑换成功')\n if (state.from === '/my') {\n this.getMyCoupons()\n }\n if(state.from === '/order') {\n this.getAllCoupons()\n }\n } else {\n Toast.info(data.msg)\n }\n })\n } else {\n Toast.info('请输入兑换码')\n }\n }\n\n getMyCoupons = () => {\n http.get(`${API.home}/m/coupon/all`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n this.setState({\n couponList: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n getAllCoupons = () => {\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const inuse_coupon = data.data['inuse_coupon'];\n\n\n this.setState({\n valid_coupons: inuse_coupon\n ? [...inuse_coupon, ...data.data.valid_coupons]\n : data.data.valid_coupons,\n invalid_coupons: data.data.invalid_coupons,\n selectedCouponId: inuse_coupon.length ? inuse_coupon[0].id : 0\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n useCoupon = val => {\n const {history, dispatch} = this.props\n const coupon = this.state.couponList.find(item => item.id === val)\n\n if (val) {\n if (this.state.showUseButton) {\n\n if (coupon['ctype'] === 1) {\n history.push(`/classify`)\n } else {\n // dispatch(getCourses(coupon['limit_course'], () => {\n history.push(`/detail?id=${coupon['limit_course']}`);\n return false;\n // }));\n }\n\n } else {\n\n const {courseId, selectedCouponId} = this.state\n\n if (selectedCouponId === val) {\n\n\n http.post(`${API.home}/m/coupon/cancel`, {\n course_id: courseId\n }).then(res => {\n const data = res.data\n if (data.code === 200) {\n\n\n this.setState({\n selectedCouponId: 0\n })\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n\n } else {\n http.post(`${API.home}/m/coupon/use`, {\n course_id: this.state.courseId,\n coupon_id: val\n })\n .then(res => {\n const data = res && res.data\n if (data.code === 200) {\n\n this.setState({selectedCouponId: val})\n this.props.history.goBack()\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n\n }\n\n } else {\n Toast.info('未知错误')\n location.reload()\n }\n\n }\n\n render() {\n const {state} = this.props.location\n const {showUseButton, selectedCouponId} = this.state\n return (\n <div className='use-coupon'>\n <HeaderBar title='优惠券' arrow={true}/>\n <RedeemBar onChange={this.handleChange}\n exchange={this.exchange}\n redeemCode={this.state.redeemCode}/>\n <div className=\"coupons-area\">\n <Content\n coupons={\n state\n && state.from\n && state.from === '/my'\n ? this.state.couponList\n : this.state.valid_coupons\n }\n showUseButton={showUseButton}\n selectedCouponId={selectedCouponId}\n select={this.select}\n useCoupon={this.useCoupon}\n />\n {\n this.state.invalid_coupons.length > 0 &&\n (\n <>\n <div className='invalid-title'>- 不可使用的优惠券 -</div>\n <Content\n coupons={this.state.invalid_coupons}\n selectedCouponId={selectedCouponId}\n select={this.select}\n purpose={'use'}\n invalid={'invalid'}\n />\n </>\n )\n }\n </div>\n </div>\n );\n }\n}\n\nfunction Content({coupons, ...rest}) {\n if (coupons.length === 0) {\n return (\n <div className='empty'>\n <p>暂无可使用的优惠券</p>\n </div>\n )\n }\n return (\n <ul>\n {\n coupons.map(item => {\n return (\n <Coupon\n key={item.id}\n {...item}\n id={item.id}\n {...rest}\n />\n )\n })\n }\n </ul>\n )\n}\n\nexport default WithFullSize(UseCoupon);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/index.js"],"names":["Input","clearInput","_this","props","onChange","_this$props","this","type","placeholder","react_default","a","createElement","className","classnames","value","hide","length","onClick","Component","defaultProps","RedeemBar","state","redeemCode","exchange","coupons_Input","active","Coupon","pick","useCoupon","invalid","id","GoToUse","_this$props2","ctype","amount","format_expire_time","limit_course","course_title","selectedCouponId","showUseButton","concat","check","Array","fill","map","item","index","key","PureComponent","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","handleChange","e","target","setState","_this$props$location$","location","http","post","API","home","code","then","res","data","coupon","Object","toConsumableArray","toast_default","info","from","getMyCoupons","getAllCoupons","msg","get","isEmpty","course_id","inuse_coupon","val","history","dispatch","find","push","_this$state","coupon_id","goBack","reload","replace","_this$state2","common","title","arrow","coupons_RedeemBar","Content","coupons","select","Fragment","purpose","_ref","rest","objectWithoutProperties","coupons_Coupon","assign","WithFullSize"],"mappings":"8OAKMA,6MACFC,WAAa,WACTC,EAAKC,MAAMC,SAAS,6EAGf,IAAAC,EACqBC,KAAKH,MAA1BI,EADAF,EACAE,KAAMC,EADNH,EACMG,YACX,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,gBACtBL,YAAaA,EACbJ,SAAUE,KAAKH,MAAMC,SACrBU,MAAOR,KAAKH,MAAMW,QAEtBL,EAAAC,EAAAC,cAAA,KACIC,UAAWC,IAAW,mCAAoC,CACtDE,KAAkC,IAA5BT,KAAKH,MAAMW,MAAME,SAE3BC,QAASX,KAAKL,qBApBdiB,aA4BpBlB,EAAMmB,aAAe,CAACZ,KAAM,OAAQC,YAAa,IAElCR,UCTAoB,6MApBXC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ACR,OACIpC,EAAAC,EAAAC,cAAC+F,EAADnC,OAAAoC,OAAA,CACI5D,IAAKF,EAAKf,IACNe,EAFR,CAGIf,GAAIe,EAAKf,IACL0E,OASjBI,sBAAa3D","file":"static/js/coupons.70722e88.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input')}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n />\n <i\n className={classnames('iconfont icondanseshixintubiao-3', {\n hide: this.props.value.length === 0\n })}\n onClick={this.clearInput}\n />\n </div>\n );\n }\n}\n\n\nInput.defaultProps = {type: 'text', placeholder: ''}\n\nexport default Input;","import React, { Component } from 'react';\nimport './exchange-bar.scss'\nimport Input from '../Input'\nimport classnames from 'classnames'\n\nclass RedeemBar extends Component {\n state = {}\n\n render() {\n const {onChange, redeemCode, exchange} = this.props\n return (\n <div className=\"exchange-bar\">\n <Input\n placeholder={'请输入优惠码'}\n onChange={onChange}\n value={redeemCode}\n />\n <button className={classnames({\n active: redeemCode && redeemCode.length > 0\n })} onClick={exchange}>兑换\n </button>\n </div>\n );\n }\n}\n\nexport default RedeemBar;","import React, { PureComponent } from 'react'\nimport './coupon.scss'\nimport classnames from 'classnames'\n\nclass Coupon extends PureComponent {\n\n pick = () => {\n let {useCoupon, invalid} = this.props\n !invalid && useCoupon && useCoupon(this.props.id)\n }\n\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n\n render() {\n let {\n ctype,\n amount,\n format_expire_time,\n limit_course,\n invalid,\n course_title,\n id,\n selectedCouponId,\n showUseButton\n } = this.props\n\n return (\n <li className='coupon' onClick={this.pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{ctype === 1 ? '代金券' : '课程券'}</p>\n {\n ctype === 1 ? <p className='denomination'>{amount} <span>元</span></p>\n : <p className='course-title'>{course_title}</p>\n\n }\n <p className='expire'>有效期至:{format_expire_time}</p>\n {\n selectedCouponId === id &&\n <i className={classnames('iconfont icondanseshixintubiao-5', {\n check: !invalid\n })}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n <div className=\"coupon-des\">\n <span className='limit'>{\n limit_course === 0 ? '可用于大于代金券金额的课程' : `仅适用于《${course_title}》`\n }</span>\n {\n showUseButton &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n\n </div>\n </li>\n );\n }\n}\n\nexport default Coupon","import React, { PureComponent } from 'react';\nimport './coupons.scss'\n\nimport RedeemBar from \"./RedeemBar\";\nimport Coupon from './Coupon'\nimport { http, getParam } from '@/utils'\nimport { WithFullSize } from '@/HOCs'\nimport { Toast } from 'antd-mobile'\nimport { isEmpty } from 'lodash'\nimport { HeaderBar } from \"@/common\";\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass UseCoupon extends PureComponent {\n\n state = {\n selectedCouponId: 0,\n redeemCode: '',\n couponList: [],\n valid_coupons: [],\n invalid_coupons: [],\n courseId: getParam('id'),\n showUseButton: false\n }\n\n componentDidMount() {\n\n const {history, location} = this.props\n\n const {state} = this.props.location\n\n\n if (state && state.from) {\n if (state.from === '/my') {\n this.getMyCoupons();\n this.setState({\n showUseButton: true\n })\n } else {\n if (!this.state.courseId) {\n location.state && location.state.from ? history.replace(location.state.from) : history.goBack()\n }\n this.getAllCoupons();\n }\n }\n }\n\n handleChange = e => {\n let value = e ? e.target.value : ''\n this.setState({redeemCode: value})\n }\n\n exchange = () => {\n const { location: { state = {}} } = this.props;\n if (this.state.redeemCode !== '') {\n http.post(`${API.home}/m/coupon/exchange`, {\n code: this.state.redeemCode\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const coupon = data.data\n\n if (this.state.showUseButton) {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n } else {\n\n const coupon = data.data\n\n if (coupon['ctype'] == 2\n && coupon['limit_course'] != this.state.courseId) {\n this.setState({\n invalid_coupons: [...this.state.invalid_coupons, coupon],\n showUseButton: null\n });\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n\n }\n Toast.info('兑换成功')\n if (state.from === '/my') {\n this.getMyCoupons()\n }\n if(state.from === '/order') {\n this.getAllCoupons()\n }\n } else {\n Toast.info(data.msg)\n }\n })\n } else {\n Toast.info('请输入兑换码')\n }\n }\n\n getMyCoupons = () => {\n http.get(`${API.home}/m/coupon/all`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n this.setState({\n couponList: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n getAllCoupons = () => {\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const inuse_coupon = data.data['inuse_coupon'];\n\n\n this.setState({\n valid_coupons: inuse_coupon\n ? [...inuse_coupon, ...data.data.valid_coupons]\n : data.data.valid_coupons,\n invalid_coupons: data.data.invalid_coupons,\n selectedCouponId: inuse_coupon.length ? inuse_coupon[0].id : 0\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n useCoupon = val => {\n const {history, dispatch} = this.props\n const coupon = this.state.couponList.find(item => item.id === val)\n\n if (val) {\n if (this.state.showUseButton) {\n\n if (coupon['ctype'] === 1) {\n history.push(`/classify`)\n } else {\n // dispatch(getCourses(coupon['limit_course'], () => {\n history.push(`/detail?id=${coupon['limit_course']}`);\n return false;\n // }));\n }\n\n } else {\n\n const {courseId, selectedCouponId} = this.state\n\n if (selectedCouponId === val) {\n\n\n http.post(`${API.home}/m/coupon/cancel`, {\n course_id: courseId\n }).then(res => {\n const data = res.data\n if (data.code === 200) {\n\n\n this.setState({\n selectedCouponId: 0\n })\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n\n } else {\n http.post(`${API.home}/m/coupon/use`, {\n course_id: this.state.courseId,\n coupon_id: val\n })\n .then(res => {\n const data = res && res.data\n if (data.code === 200) {\n\n this.setState({selectedCouponId: val})\n this.props.history.goBack()\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n\n }\n\n } else {\n Toast.info('未知错误')\n location.reload()\n }\n\n }\n\n render() {\n const {state} = this.props.location\n const {showUseButton, selectedCouponId} = this.state\n return (\n <div className='use-coupon'>\n <HeaderBar title='优惠券' arrow={true}/>\n <RedeemBar onChange={this.handleChange}\n exchange={this.exchange}\n redeemCode={this.state.redeemCode}/>\n <div className=\"coupons-area\">\n <Content\n coupons={\n state\n && state.from\n && state.from === '/my'\n ? this.state.couponList\n : this.state.valid_coupons\n }\n showUseButton={showUseButton}\n selectedCouponId={selectedCouponId}\n select={this.select}\n useCoupon={this.useCoupon}\n />\n {\n this.state.invalid_coupons.length > 0 &&\n (\n <>\n <div className='invalid-title'>- 不可使用的优惠券 -</div>\n <Content\n coupons={this.state.invalid_coupons}\n selectedCouponId={selectedCouponId}\n select={this.select}\n purpose={'use'}\n invalid={'invalid'}\n />\n </>\n )\n }\n </div>\n </div>\n );\n }\n}\n\nfunction Content({coupons, ...rest}) {\n if (coupons.length === 0) {\n return (\n <div className='empty'>\n <p>暂无可使用的优惠券</p>\n </div>\n )\n }\n return (\n <ul>\n {\n coupons.map(item => {\n return (\n <Coupon\n key={item.id}\n {...item}\n id={item.id}\n {...rest}\n />\n )\n })\n }\n </ul>\n )\n}\n\nexport default WithFullSize(UseCoupon);"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1115:function(e,t,a){},1116:function(e,t,a){},1117:function(e,t,a){},1118:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAA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UUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},1119:function(e,t,a){e.exports=a.p+"static/media/kanjia_cg_icon.81a489ac.png"},1120:function(e,t,a){},1121:function(e,t,a){},1122:function(e,t,a){},1123:function(e,t,a){},1124:function(e,t,a){},1131:function(e,t,a){},1174:function(e,t,a){"use strict";a.r(t);var n=a(22),s=(a(43),a(14)),i=a.n(s),c=a(7),o=a(8),r=a(10),l=a(9),m=a(11),u=a(0),d=a.n(u),p=(a(1115),a(83)),h=(a(89),a(25)),b=a.n(h),f=(a(1116),a(630)),g=(a(115),a(45)),E=a.n(g),v=a(50),N=(a(1117),a(4)),_=a(18),y=function(e){function t(){var e,a;Object(c.a)(this,t);for(var s=arguments.length,o=new Array(s),m=0;m<s;m++)o[m]=arguments[m];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={mobile:"",code:"",isBargain:!0},a.handleChange=function(e){var t=e.target,n=t.name,s=t.value;a.setState(Object(v.a)({},n,s))},a.sendCode=function(){console.log(Object(N.g)(a.state.mobile)),Object(N.g)(a.state.mobile)?N.c.post("".concat(API["base-api"],"/sys/bind_send_sms"),{phone_num:a.state.mobile}).then(function(e){200==e.data.code?i.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1):410===e.data.errno?(i.a.info("\u8be5\u624b\u673a\u53f7\u5df2\u6ce8\u518c\uff0c\u8bf7\u4f7f\u7528\u8be5\u624b\u673a\u53f7\u767b\u5f55\uff0c\u53d1\u8d77\u780d\u4ef7\u3002",3,null,!1),a.setState({isBargain:!1})):i.a.info(e.data.msg)}):i.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7")},a.handleClick=function(){a.state.code?N.c.post("".concat(API.home,"/m/user/bindMobile"),Object(n.a)({},a.state)).then(function(e){200==e.data.code?(i.a.info("\u7ed1\u5b9a\u624b\u673a\u53f7\u6210\u529f",2,null,!1),a.props.iWantBargain()):i.a.info(e.data.msg)}):i.a.info("\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state,t=e.mobile,a=e.code;return d.a.createElement("div",{className:"bargain-bind-phone"},d.a.createElement("div",{className:"title"},"\u7ed1\u5b9a\u624b\u673a\uff0c\u5148\u780d\u4e00\u5200"),d.a.createElement(E.a,{className:"list"},d.a.createElement("input",{type:"tel",onChange:this.handleChange,name:"mobile",placeholder:"\u624b\u673a\u53f7",maxLength:11}),d.a.createElement("label",{htmlFor:"code"},d.a.createElement("input",{type:"tel",id:"code",onChange:this.handleChange,name:"code",placeholder:"\u9a8c\u8bc1\u7801",maxLength:6}),d.a.createElement("div",{className:"send-code",onClick:this.sendCode},"\u53d1\u9001\u9a8c\u8bc1\u7801"))),this.state.isBargain&&d.a.createElement("button",{onClick:this.handleClick,className:Object(N.g)(t)&&a?"active":""},"\u5148\u780d\u4e00\u5200"),!this.state.isBargain&&d.a.createElement(_.b,{className:"button active",to:"/passport/login"},"\u53bb\u767b\u5f55"))}}]),t}(u.Component),j=a(157),S=a(670),w=a(17),O=a(51),I=a(20),k=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(r.a)(this,Object(l.a)(t).call(this,e))).getBargainRankList=function(e,t){var a={courseId:e,type:t};N.c.post("".concat(API.home,"/m/bargain/rankList"),a).then(function(e){200===e.data.code?n.setState({list:e.data.data.list,outList:e.data.data.list[0]}):i.a.info(e.data.msg,2)})},n.getBargainInfo=function(){var e={courseId:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/bargain/courseDetail"),e).then(function(e){200===e.data.code?(n.setState({barInfo:e.data.data}),0===e.data.data.bargain_status&&n.getBargainRankList(Object(N.b)("id"),0)):i.a.info(e.data.msg,2)})},n.getMore=function(){n.setState({isShowMore:!0})},n.boxHide=function(e){n.setState({isShowMore:e})},n.toArtifact=function(){var e={courseId:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/bargain/receiveLimit"),e).then(function(e){200===e.data.code?n.setState({isShowOverlay:!0,status:1}):i.a.info(e.data.msg,2)})},n.useArtifact=function(){n.toKanjia(Object(N.b)("id"),2,0)},n.toCart=function(){var e={course_id:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/cart/add"),e).then(function(e){200===e.data.code||15001===e.data.code?n.props.history.push("/shopcart"):i.a.info(e.data.msg,2)})},n.continueBargain=function(){var e=n.state.barInfo,t=(void 0===e?{}:e).bargain_code;n.props.history.push("/bargain-middle-page?id=".concat(Object(N.b)("id"),"&bargaincode=").concat(t,"&is_originator=1"))},n.iWantBargain=function(){var e=n.props.user;e&&e.data&&e.data.uid?n.toKanjia(Object(N.b)("id"),1,0):n.props.history.push("/passport/login")},n.toKanjia=function(e,t,a){var s={course_id:e,type:t,parent_uid:a},c=n.props.history;N.c.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(e){var a=e.data,s=a.data;200===a.code?2===t?n.setState({isShowOverlay:!0,status:2}):2===s.user_status?n.setState({isShowOverlay:!0,status:3}):c.push("/bargain-middle-page?id=".concat(Object(N.b)("id"),"&bargaincode=").concat(s.bargain_code,"&is_originator=1")):i.a.info(e.data.msg,2)})},n.close=function(){n.setState({isShowOverlay:!1,status:""})},n.state={isShowOverlay:!1,kanjiaIcon:a(1118),info:"",outList:[],list:[],limitPeople:"",status:"",bargainCode:"",time:"",barInfo:{}},n}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.user,t=void 0===e?{}:e;t.data&&t.data.uid&&this.getBargainInfo()}},{key:"render",value:function(){var e=this.state,t=e.list,a=e.outList,n=e.barInfo,s=this.props.user,i=s&&s.data&&s.data.uid;return d.a.createElement("div",{className:"bargain-func"},(2===n.bargain_status||!i)&&d.a.createElement(A,{limitPeople:n.limitPeople,iWantBargain:this.iWantBargain}),(0===n.bargain_status||1===n.bargain_status)&&d.a.createElement(C,{info:n,outList:a,getMore:this.getMore,toArtifact:this.toArtifact,useArtifact:this.useArtifact,continueBargain:this.continueBargain}),this.state.isShowOverlay&&d.a.createElement(f.a,null,3===this.state.status&&d.a.createElement(y,{iWantBargain:this.iWantBargain}),1===this.state.status&&d.a.createElement(x,{useArtifact:this.useArtifact}),2===this.state.status&&d.a.createElement(B,{toCart:this.toCart}),0!==this.state.status&&d.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})),d.a.createElement(S.a,{list:t,icon:this.state.kanjiaIcon,limitPeople:n.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}))}}]),t}(u.Component);function A(e){return d.a.createElement("div",{className:"intro-outer"},d.a.createElement("div",{className:"intro-inner"},d.a.createElement(b.a,{direction:"column",justify:"center",className:"intro-wrapper"},d.a.createElement("p",null,"\u9080\u8bf7",d.a.createElement("span",{className:"indicator"},e.limitPeople,"\u4f4d"),"\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),d.a.createElement("p",null,"\u4e00\u5200\u7edd\u6740\uff0c\u780d\u7206\u5e95\u4ef7"),d.a.createElement(b.a.Item,null,d.a.createElement("button",{onClick:e.iWantBargain},"\u6211\u8981\u780d\u4ef7")))))}function C(e){var t,a,n=Object(u.useState)(0),s=Object(p.a)(n,2),i=s[0],c=s[1],o=Object(u.useState)(0),r=Object(p.a)(o,2),l=r[0],m=r[1],h=Object(u.useState)(0),f=Object(p.a)(h,2),g=f[0],E=f[1],v=Object(u.useState)(0),N=Object(p.a)(v,2),_=N[0],y=N[1];0===e.info.is_artifact?t=d.a.createElement("div",null,"\u518d\u9080\u8bf7",d.a.createElement("span",{className:"indicator"},e.info.invit_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===e.info.is_artifact?(t=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=d.a.createElement("button",{onClick:e.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===e.info.is_artifact&&(t=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=d.a.createElement("button",{onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var S=1e3*e.info.end_time,w=Date.now();return setInterval(function(){S-=1e3,y(Object(j.differenceInSeconds)(new Date(S),w)%60),E(Object(j.differenceInMinutes)(new Date(S),w)%60),m(Object(j.differenceInHours)(new Date(S),w)%24),c(Object(j.differenceInDays)(new Date(S),w)%24)},1e3),d.a.createElement("div",{className:"status-outer"},0===e.info.bargain_status&&d.a.createElement("div",{className:"status-inner"},d.a.createElement(b.a,{direction:"column"},d.a.createElement("div",{className:"first-row"},d.a.createElement("div",null,"\u5df2\u780d",d.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),d.a.createElement("span",{className:"time hour"},String(l).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time min"},String(g).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time sec"},String(_).padStart(2,0)),d.a.createElement("span",{className:"over"},"\u540e\u780d\u4ef7\u7ed3\u675f")),d.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),d.a.createElement("div",{className:"sec-row"},d.a.createElement("div",null,d.a.createElement("img",{src:e.outList.avatar_file,alt:""}),d.a.createElement("span",{className:"name"},e.outList.user_name)),d.a.createElement("div",null,d.a.createElement("div",null,"\u780d\u6389",d.a.createElement("span",{className:"indicator"},e.outList.amount,"\u5143")),d.a.createElement("button",{onClick:e.continueBargain},"\u7ee7\u7eed\u780d\u4ef7"))),d.a.createElement("div",{className:"third-row"},t,a))),1===e.info.bargain_status&&d.a.createElement("div",{className:"status-inner status-over"},d.a.createElement(b.a,{direction:"column"},d.a.createElement("div",{className:"first-row"},d.a.createElement("div",null,"\u5df2\u780d",d.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),d.a.createElement("span",{className:"bargain-over"},"\u780d\u4ef7\u7ed3\u675f")),d.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),d.a.createElement("div",{className:"time-tobuy"},"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",d.a.createElement("span",{className:"time hour"},String(i).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u5929 "),d.a.createElement("span",{className:"time min"},String(l).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u65f6 "),d.a.createElement("span",{className:"time sec"},String(g).padStart(2,0)),d.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"))))}function x(e){return d.a.createElement("div",{className:"artifact-box"},d.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),d.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),d.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function B(e){return d.a.createElement("div",{className:"use-artifact-box"},d.a.createElement("img",{className:"top-img",src:a(1119),alt:""}),d.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e8610\u5143\uff01"),d.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",d.a.createElement("span",{className:"indicator"},"109\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),d.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),d.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}var P=Object(w.d)(Object(I.b)(function(e){return{user:e.user}},null),O.g)(k),M=(a(1120),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getMore=function(){a.setState({isShowMore:!0})},a.closeMore=function(){a.setState({isShowMore:!1})},a.toPay=function(e){var t=a.props,n=t.courseInfo,s=t.history;3===n.group_status?s.push("/order?id=".concat(Object(N.b)("id")),{group:1,pdd_order_id:e}):a.setState({isShowMore:!1,alreadyIn:!0})},a.invitedFriends=function(){a.setState({isShowMore:!1,alreadyIn:!1}),a.props.invitedFriends()},a.hideMbc=function(){a.setState({alreadyIn:!1})},a.formatTimeByMillisecond=function(e){var t,a,n,s=1e3*e;return s-=1e3,t="".concat(parseInt(s/36e5)).padStart(2,0),a="".concat(parseInt((s-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((s-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(t,":").concat(a,":").concat(n)},a.state={isShowMore:!1,alreadyIn:!1,pdd_price:0,number:0,data:{},countdown:e.countdown,now_groupon_list:[]},console.log(e),a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.courseInfo&&e.courseInfo.courseInfo&&e.courseInfo.courseInfo.course_info&&e.courseInfo.courseInfo.course_info.pdd_group_info){var t=e.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;t&&t.length>0&&(t.map(function(e){return e.end_time-=1,e}),this.setState({now_groupon_list:t}))}this.setState({countdown:e.countdown})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.courseInfo,a=void 0===t?{}:t;if(a.pdd_group_info){var n=a.pdd_group_info.now_groupon_list;n&&n.length>0&&setInterval(function(){n.map(function(e){return e.end_time-=1,e}),e.setState({now_groupon_list:n})},1e3)}}},{key:"render",value:function(){var e=this,t=this.props.courseInfo,a=this.state,n=a.alreadyIn,s=a.countdown,i=(a.now_groupon_list,""),c="",o=-1,r=null;if(t&&(c=(i=t.pdd_group_info).groupon_member,o=t.group_status),4===o&&c.member){for(var l=[],m=c.number;0!=m;)l.push(m),m--;var u=d.a.createElement("div",{className:"group-user-list"},d.a.createElement(b.a,{justify:"center",className:"imgList"},c.member.map(function(e){return d.a.createElement("div",{className:"imgContainer",key:Math.random()},d.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?d.a.createElement("div",{className:"leaderFlag"},d.a.createElement("span",null,"\u56e2\u957f")):null)}),l.map(function(e){return d.a.createElement("div",{className:"imgContainer",key:Math.random()},d.a.createElement("div",{className:"imgname"},d.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})));r=d.a.createElement("div",{className:"groupSuccessMbc",onClick:this.hideMbc},d.a.createElement("div",{className:"content"},d.a.createElement("p",null,"\u4f60\u5df2\u53c2\u56e2"),u,d.a.createElement("div",{className:"group-btn",onClick:this.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",s," \u540e\u7ed3\u675f"),d.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")))}return d.a.createElement("div",{className:"group-box"},d.a.createElement("div",{className:"group-title"},d.a.createElement("span",null,i.now_groupon_total,"\u4eba\u6b63\u5728\u5f00\u56e2\uff0c\u53ef\u76f4\u63a5\u53c2\u4e0e"),d.a.createElement("span",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a",d.a.createElement("i",{className:"iconfont iconiconfront-70"}))),d.a.createElement("ul",{className:"group-list"},i.now_groupon_list&&i.now_groupon_list.length>0&&i.now_groupon_list.map(function(t,a){return d.a.createElement("li",{key:a,className:"group-item"},d.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),d.a.createElement("div",{className:"user-name text-overflow-one"},t.user_name),d.a.createElement("div",{className:"group-status"},d.a.createElement("p",null,"\u8fd8\u5dee",d.a.createElement("span",{className:"red"},t.number,"\u4eba"),"\u62fc\u6210"),d.a.createElement("p",null,"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),d.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),d.a.createElement("div",{className:"group-dec"},d.a.createElement("span",null,d.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),d.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(i.person_num,"\u4eba\u6210\u56e2"))),n&&4===o&&d.a.createElement(d.a.Fragment,null,r),this.state.isShowMore&&d.a.createElement("div",{className:"moreMbc"},d.a.createElement("div",{className:"content"},d.a.createElement("div",{className:"title-box"},"\u6b63\u5728\u62fc\u56e2"),d.a.createElement("ul",{className:"more-group-list"},i.now_groupon_list&&i.now_groupon_list.length>0&&i.now_groupon_list.map(function(t,a){return d.a.createElement("li",{key:a,className:"group-item"},d.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),d.a.createElement("div",{className:"user-name"},d.a.createElement("p",{className:"name text-overflow-one"},t.user_name),d.a.createElement("p",{className:"time"},"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),d.a.createElement("p",{className:"group-status"},"\u8fd8\u5dee",t.number,"\u4eba"),d.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),d.a.createElement("div",{className:"more-group-dec"},"\u4ec5\u663e\u793a10\u4e2a\u6b63\u5728\u5f00\u56e2\u7684\u4eba"),d.a.createElement("i",{onClick:this.closeMore,className:"iconfont iconiconfront-2 close"}))))}}]),t}(u.Component)),D=(a(258),a(160)),z=a.n(D),T=(a(154),a(35)),R=a.n(T),L=(a(1121),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).htmlDecode=function(e){return e&&(e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e},a.tabchange=function(e,t){1===t&&a.getList()},a.getList=function(){N.c.get("".concat(API.home,"/m/course/syllabuses/").concat(Object(N.b)("id"))).then(function(e){200===e.data.code?a.setState({stageInfo:e.data.data}):i.a.info(e.data.msg,2)})},a.state={stageInfo:[]},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t="";return this.props.data&&(t=this.props.data),d.a.createElement("div",{className:"course-detail"},d.a.createElement(R.a,null),d.a.createElement(z.a,{tabs:[{title:"\u4ecb\u7ecd"},{title:"\u5927\u7eb2"}],initialPage:0,onChange:function(t,a){e.tabchange(t,a)}},d.a.createElement("div",{className:"introduce"},d.a.createElement("p",null,"\u8bb2\u5e08\uff1a",t.teachers),d.a.createElement("p",null,"\u8bfe\u65f6\uff1a",t.course_hour),d.a.createElement("p",null,"\u65f6\u95f4\uff1a",t.start_time),d.a.createElement("div",{className:"dec",dangerouslySetInnerHTML:{__html:this.htmlDecode(t.intro)}})),d.a.createElement("div",{className:"outline"},this.state.stageInfo&&this.state.stageInfo.length>0&&this.state.stageInfo.map(function(a,n){return d.a.createElement("div",{className:"stagebox",key:n},d.a.createElement("h1",{className:"stage text-overflow-1"},a.stage_name),a.lesson.map(function(a,n){return d.a.createElement("ul",{key:n},d.a.createElement("h2",{className:"classhour"},d.a.createElement("span",{className:"title text-overflow-1"},a.name),!t.is_aist&&6===a.class_status&&d.a.createElement("span",{className:"btn-right-10 audition",onClick:e.props.toAudition},"\u8bd5\u542c",d.a.createElement("i",{className:"iconfont iconcelluar"})),!t.is_aist&&0===a.class_status&&d.a.createElement("i",{className:"iconfont iconiconfront-74 icon-right-22"}),!t.is_aist&&1===a.class_status&&d.a.createElement("span",{className:"btn-right-10 singleset",onClick:function(t){return e.props.toSingleset(a)}},"\xa5 ",a.class_price),!t.is_aist&&4===a.class_status&&1===a.video_auth&&4===a.is_video&&d.a.createElement("span",{className:"live icon-right-22"},"\u6b63\u5728\u76f4\u64ad",d.a.createElement("i",{className:"iconfont icondanseshixintubiao-23"})),!t.is_aist&&2===a.class_status&&d.a.createElement(_.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"iconfont icondanseshixintubiao-23 icon-right-22"}),t.is_aist&&a.is_open&&1===t.is_baoming&&d.a.createElement(_.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"aist aist_open"}),t.is_aist&&(!a.is_open||0===t.is_baoming)&&d.a.createElement("i",{className:"aist iconfont iconiconfront-74"})),a.point&&a.point.length>0&&a.point.map(function(e,t){var a=d.a.createElement("span",null,1===e.type&&d.a.createElement("span",null,"\u77e5\u8bc6\u70b9",t+1,"\uff1a"),2===e.type&&d.a.createElement("span",{className:"red"},"\u5b9e\u6218\u9879\u76ee\uff1a"));return d.a.createElement("li",{className:"points text-overflow-1",key:t},a,e.name)}),d.a.createElement(d.a.Fragment,null,t.is_aist&&""!==a.practice.title&&(!a.is_open||0===t.is_baoming)&&d.a.createElement("span",{className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),d.a.createElement("i",{className:"exam exam_close"})),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&!a.practice.is_tested&&d.a.createElement(_.b,{to:"/campTest?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title)),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&a.practice.is_tested&&d.a.createElement(_.b,{to:"/campResolve?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),d.a.createElement("i",{className:"exam exam_open"}))))}))}))),d.a.createElement(R.a,null))}}]),t}(u.Component)),F=a(30),W=(a(1122),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getRankList=function(){N.c.get("".concat(API.home,"/dist/rankList/").concat(Object(N.b)("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(N.b)("id")};N.c.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;if(t&&t.data&&t.data.uid){var n=Object(N.b)("id"),s=e.dist_first_level_ti,i=e.uid,c=a.state.code;a.props.history.push("/shareposter?courseId=".concat(n,"&dist_first=").concat(s,"&uid=").concat(i,"&dist_code=").concat(c))}else a.props.history.push("/passport/login")},a.openRanking=function(){a.setState({shareRank:!0})},a.colse=function(){a.setState({shareRank:!1})},a.state={list:[],rankingslice:[],code:"",shareRank:!1},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getRankList(),this.getCode()}},{key:"render",value:function(){var e=this.props.courseInfo,t=void 0===e?"":e;return d.a.createElement("div",{className:"share-ranking"},d.a.createElement(b.a,{className:"share-container",justify:"between"},d.a.createElement(b.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(b.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}(u.Component)),U=Object(w.d)(Object(I.b)(function(e){return{user:e.user}},null),O.g)(W),q=(a(1123),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).colse=function(){a.props.boxHide(!1)},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return d.a.createElement("div",null,this.props.auditionBox&&d.a.createElement("div",{className:"popup-box"},d.a.createElement("div",{className:"content audition-box"},d.a.createElement("p",{className:"audition-header"},"\u5f53\u524d\u9875\u9762\u4e0d\u652f\u6301\u8bd5\u542c"),d.a.createElement("p",{className:"audition-dec"},"\u8bf7\u524d\u5f80APP\u8bd5\u542c"),d.a.createElement(F.a,{className:"btn btn-18B4ED",text:"\u7acb\u5373\u524d\u5f80"})),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component)),J=a(660),H=a(62),K=(a(1124),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).signUpNow=function(){if(a.props.user.hasError)a.props.history.push("/passport");else{var e=JSON.stringify([Number(Object(N.b)("id"))]);N.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(e,"?type=1")).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{type:1}):i.a.info(e.data.msg,2)})}},a.simpleCourse=function(){a.props.user.hasError?a.props.history.push("/passport"):N.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(N.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(N.b)("id")),{simple:1}):i.a.info(e.data.msg,2)})},a.formatDate=function(e){var t=e.split("-");return"".concat(t[1],"\u6708").concat(t[2],"\u65e5\u5f00\u8bfe")},a.tobuy=function(){var e=a.props.user,t=a.state.barInfo;e&&e.data&&e.data.uid?2===t.bargain_status?a.simpleCourse():a.setState({isShowOverlay:!0,bargainStatus:1}):a.props.history.push("/passport/login")},a.keyToGroup=function(){a.props.user.hasError?a.props.history.push("/passport"):a.props.history.push("/order?id=".concat(Object(N.b)("id")),{group:1})},a.bargainToOrder=function(){a.props.user.hasError?a.props.history.push("/passport"):N.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(N.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(N.b)("id"),"]"),{bargain:1}):i.a.info(e.data.msg,2)})},a.cancel=function(){var e={courseId:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/bargain/cancel"),e).then(function(e){200===e.data.code?(a.setState({isShowOverlay:!1,bargainStatus:""}),N.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(N.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(N.b)("id"),"]"),{simple:1}):i.a.info(e.data.msg,2)})):i.a.info(e.data.msg,2)})},a.close=function(){a.setState({isShowOverlay:!1,bargainStatus:""})},a.toKanjia=function(){var e=a.props,t=e.user,n=e.history,s=t&&t.data&&t.data.uid,c=Object(N.b)("id");if(s){var o={course_id:c,type:1,parent_uid:0};N.c.post("".concat(API.home,"/m/bargain/toBargain"),o).then(function(e){var t=e.data,a=t.data,s=t.code,o=t.msg;200===s?n.push("/bargain-middle-page?id=".concat(c,"&bargaincode=").concat(a.bargain_code,"&is_originator=1")):i.a.info(o,2)})}else a.props.history.push("/passport/login")},a.getBargainInfo=function(){var e=a.props.user,t=(e&&e.data&&e.data.uid,{courseId:Object(N.b)("id")});N.c.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(e){200===e.data.code?a.setState({barInfo:e.data.data}):i.a.info(e.data.msg,2)})},a.state={isbuy:1,is_baoming:0,group_status:3,in_cart:!1,countdown:0,barInfo:{}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.group=!1}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=void 0===t?{}:t,n=e.user,s=void 0===n?{}:n;a.is_bargain&&s.data&&s.data.uid&&this.getBargainInfo(),this.setState({courseInfo:a,countdown:e.countdown})}},{key:"render",value:function(){var e=this,t=this.props,a=t.user,n=void 0===a?{}:a,s=t.toCart,i=this.state,c=i.countdown,o=i.barInfo,r=i.courseInfo,l=void 0===r?{}:r,m=n.data&&n.data.uid;return d.a.createElement("div",null,0===l.is_baoming&&3!==l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),l.in_cart&&d.a.createElement(_.b,{to:"/shopcart",className:"btn btn-s bg-FCCD05"},"\u53bb\u8d2d\u7269\u8f66\u7ed3\u7b97"),!l.in_cart&&d.a.createElement("button",{className:"btn btn-s bg-FCCD05",onClick:function(e){return s(1)}},"\u52a0\u5165\u8d2d\u7269\u8f66"),d.a.createElement("span",{className:"btn btn-s bg-FD7700",onClick:function(t){return e.simpleCourse()}},"\u7acb\u5373\u62a5\u540d")),1===l.is_baoming&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement(_.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m bg-09f"},"\u5f00\u59cb\u5b66\u4e60")),0===l.is_baoming&&3===l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn btn-s bg-F4AAA7",onClick:this.simpleCourse},d.a.createElement("span",null,"\xa5 ".concat(l.price1)),d.a.createElement("span",null,"\u76f4\u63a5\u8d2d\u4e70")),d.a.createElement("button",{className:"btn btn-s bg-E02E24"},d.a.createElement("span",{onClick:this.keyToGroup},d.a.createElement("span",null,"\xa5 ".concat(l.pdd_group_info.price)),d.a.createElement("span",null,"\u4e00\u952e\u5f00\u56e2")))),0===l.is_baoming&&4===l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("div",{className:"btn btn-l bg-E02E24",onClick:this.props.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",c," \u540e\u7ed3\u675f")),0===l.is_baoming&&this.props.data&&this.props.data.is_bargain&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn btn-s bg-F4AAA7"},d.a.createElement("span",null,"\xa5",l.price1),d.a.createElement("span",{onClick:this.tobuy},"\u76f4\u63a5\u8d2d\u4e70")),(2===o.bargain_status||!m)&&d.a.createElement("button",{className:"btn btn-s bg-E02E24",onClick:this.toKanjia},"\u6211\u8981\u780d\u4ef7"),(0===o.bargain_status||1===o.bargain_status)&&m&&d.a.createElement("button",{className:"btn btn-s bg-E02E24"},d.a.createElement("span",null,"\xa5",o.amount),d.a.createElement("span",{onClick:this.bargainToOrder},"\u53bb\u652f\u4ed8"))),20===this.state.isbuy&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult-l",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2"))),l.is_aist&&(this.props.user.hasError||0===l.is_baoming)&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn sign-up-now",onClick:function(t){return e.signUpNow()}},d.a.createElement("span",null,"\u7acb\u5373\u62a5\u540d"))),l.is_aist&&!this.props.user.hasError&&1===l.is_baoming&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),""===l.aist_start_time?d.a.createElement(_.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m learn-now"},d.a.createElement("span",null,"\u5f00\u59cb\u5b66\u4e60")):d.a.createElement("button",{className:"btn btn-m wait-open"},d.a.createElement("span",null,this.formatDate(l.aist_start_time)))),this.state.isShowOverlay&&d.a.createElement(f.a,null,1===this.state.bargainStatus&&d.a.createElement(Q,{close:this.close,cancel:this.cancel}),d.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(u.Component));function Q(e){return d.a.createElement("div",{className:"cancel-bargain"},d.a.createElement("p",{className:"top-img"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"})),d.a.createElement("p",{className:"tip-mess"},"\u60a8\u5df2\u53d1\u8d77\u780d\u4ef7\uff0c\u76f4\u63a5\u8d2d\u4e70\u5c06\u6e05\u9664\u5df2\u780d\u91d1\u989d\u3002\u76f4\u63a5\u8d2d\u4e70\u53ef\u4f7f\u7528\u4f18\u60e0\u5238~"),d.a.createElement("div",{className:"btns"},d.a.createElement("button",{onClick:e.close},"\u53d6\u6d88"),d.a.createElement("button",{onClick:e.cancel},"\u786e\u5b9a")))}var G=Object(I.b)(function(e){return{user:e.user}},{getCourses:H.d})(K),V=(a(155),a(75)),Z=a.n(V),Y=(a(1125),a(1127)),X=a.n(Y),$=(a(1131),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getList=function(){var e={course_id:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/course/barrages"),e).then(function(e){200===e.data.code&&a.setState({list:e.data.data})})},a.state={list:[]},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;e.getList(),this.timer=setInterval(function(){e.getList()},1e4)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer)}},{key:"render",value:function(){return d.a.createElement(Z.a,null,d.a.createElement(X.a,{className:"my-carousel",vertical:!0,dots:!1,autoplay:!0,infinite:!0},this.state.list&&d.a.createElement("div",{className:"v-item text-overflow-one"},d.a.createElement("img",{src:this.state.list.avatar,alt:""}),this.state.list.user_name," ",this.state.list.live_msg)))}}]),t}(u.Component)),ee=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).fetchCourseInfo=function(){var e=Object(N.b)("id");N.c.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code&&(a.setState({course:n}),n.course_info)){var s=n.course_info;if(3===s.group_status||4===s.group_status){var i=1e3*s.pdd_group_info.groupon_member.end_time,c=0,o=0,r=0;setInterval(function(){i-=1e3,c="".concat(parseInt(i/36e5)).padStart(2,0),o="".concat(parseInt((i-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((i-36e5*c-6e4*o)/1e3)).padStart(2,0),a.setState({countdown:"".concat(c,":").concat(o,":").concat(r)})},1e3)}}})},a.toAudition=function(){var e=a.props.user;e&&e.data&&e.data.uid?a.setState({auditionBox:!0}):a.props.history.push("/passport/login")},a.toSingleset=function(e){var t=a.props.user;t&&t.data&&t.data.uid?a.setState({singleBox:!0,singMess:e}):a.props.history.push("/passport/login")},a.showSingleBox=function(){a.setState({singleBox:!0})},a.toCart=function(e){var t=a.props,n=t.history,s=t.addCourseToCart,c={course_id:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/cart/add"),c).then(function(t){200===t.data.code?1===e?(i.a.info("\u5df2\u52a0\u5165\u8d2d\u7269\u8f66",2),s(),a.fetchCourseInfo()):(n.replace("/shopcart"),\u00df):15001===t.data.code?n.replace("/shopcart"):4030===t.data.code?n.replace("/passport"):i.a.info(t.data.msg,2)})},a.invitedFriends=function(){var e=a.state.course.course_info,t=e.course_title,s=e.image_name,c=e.course_id,o=(e.pdd_group_info,e.pdd_group_info),r=(o.groupon_member,o.groupon_member.number),l=o.price;if(N.a.isWeixin){var m=a.state.share;a.setState({share:!m});var u={title:"\u3010\u4ec5\u5269".concat(r,"\u4e2a\u540d\u989d\u3011\u6211").concat(l,"\u5143\u62fc\u4e86\u300a").concat(t,"\u300b"),desc:t,link:location.origin+"/detail??id=".concat(c),imgUrl:s};N.c.post("".concat(API["base-api"],"/m/sale/signature")).then(function(e){var t=e.data,a=t.nonce_str,n=t.signature,s=t.timestamp;wx.config({debug:!1,appId:"wx23dac6775ac82877",timestamp:s,nonceStr:a,signature:n,jsApiList:["hideMenuItems","showMenuItems","updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","onMenuShareAppMessage"]})}),wx.ready(function(){wx.hideAllNonBaseMenuItem(),wx.showMenuItems({menuList:["menuItem:share:appMessage","menuItem:share:timeline"]}),wx.updateAppMessageShareData(Object(n.a)({},u,{success:function(){}})),wx.updateTimelineShareData(Object(n.a)({},u,{success:function(){}}))})}else i.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},a.boxHide=function(e){a.setState({auditionBox:e,singleBox:e})},a.state={isbuy:0,isvip:0,auditionBox:!1,singleBox:!1,shareRank:!1,singMess:"",barInfo:"",share:!1,countdown:"00:00:00",outList:[],list:[],course:{}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.course.course_info,n=void 0===a?{}:a;t.barInfo;console.log(n);var s=0;3!==n.group_status&&4!==n.group_status||(s=n.pdd_group_info.groupon_member.number);var i=this.state,c=i.share,o=i.countdown,r=(i.list,i.outList,this.props.location&&this.props.location.state?this.props.location.state.href:void 0);return d.a.createElement("div",{className:"detail-box"},d.a.createElement(F.e,{title:"\u8bfe\u7a0b\u8be6\u60c5",arrow:!0,cart:!0,toHref:r}),d.a.createElement(F.a,{className:"toapp"}),d.a.createElement($,null),d.a.createElement("div",{className:"course-content"},d.a.createElement("div",{className:"cover"},d.a.createElement("img",{src:n.image_name,alt:""}),n.is_aist&&d.a.createElement("span",{className:"return_cash"})),d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title"},n.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},n.simpledescription),d.a.createElement("div",{className:"des"},0===n.is_baoming&&d.a.createElement("p",{className:"course-price"},d.a.createElement("span",{className:"new"},"\xa5",n.price1),d.a.createElement("span",{className:"old"},"\xa5",n.price0)),1===n.is_baoming&&d.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70")))),1===n.is_baoming&&d.a.createElement("div",{className:"group"},"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid),n.vip_range&&d.a.createElement("div",{className:"vip"},d.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),d.a.createElement("p",null,"\u5e74\u4f1a\u5458QQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid)),d.a.createElement("div",{className:"promise"},d.a.createElement("label",null,"\u670d\u52a1\u627f\u8bfa"),d.a.createElement("p",null,n.service&&n.service.length>0&&n.service.map(function(e,t){return d.a.createElement("span",{key:t}," ",e," ")}))),d.a.createElement(q,{auditionBox:this.state.auditionBox,boxHide:this.boxHide}),d.a.createElement(J.a,{singleBox:this.state.singleBox,showSingleBox:this.showSingleBox,boxHide:this.boxHide,data:this.state.singMess,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,title:n.course_title}),n.is_dist&&d.a.createElement(U,{courseInfo:n}),!n.is_aist&&(3===n.group_status||4===n.group_status)&&d.a.createElement(M,{courseInfo:n,history:this.props.history,countdown:o,invitedFriends:this.invitedFriends}),0===n.is_baoming&&!n.is_aist&&n.is_bargain&&d.a.createElement(P,null),d.a.createElement(L,{data:n,toAudition:this.toAudition,toSingleset:this.toSingleset}),n&&d.a.createElement(G,{countdown:o,data:n,user:this.props.user,invitedFriends:this.invitedFriends,toCart:this.toCart,history:this.props.history}),c?d.a.createElement("div",{className:"groupSuccessMbc",onClick:function(){e.setState({share:!1})}},d.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(s,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),d.a.createElement("div",{className:"tipArrow"},d.a.createElement("i",{className:"iconfont iconyindao"}))):null)}}]),t}(u.Component);t.default=Object(I.b)(function(e){return{user:Object(n.a)({},e.user)}},function(e){return Object(w.b)({getCourses:H.d,addCourseToCart:H.c},e)})(ee)},629:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},630:function(e,t,a){"use strict";var n=a(7),s=a(8),i=a(10),c=a(9),o=a(11),r=a(0),l=a.n(r),m=a(21),u=a.n(m),d=(a(672),document.body||document.documentElement),p=["touchmove","mousewheel"],h=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).preventScroll=function(e){e.preventDefault()},a.overlayBox=null,a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.addEventListener(t,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.removeEventListener(t,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(t){return e.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),t}(r.Component);t.a=h},660:function(e,t,a){"use strict";a(43);var n=a(14),s=a.n(n),i=a(7),c=a(8),o=a(10),r=a(9),l=a(11),m=a(156),u=a(0),d=a.n(u),p=(a(661),a(4)),h=a(18),b=a(51),f=a(17),g=a(20),E=a(157),v=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){p.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).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)):s.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.a.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.c.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.alipayPay=function(e){p.c.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:s.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(m.a)(Object(m.a)(a)),t=Object(p.b)("code");if(t){if(!Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("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(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,t.props.showSingleBox(),p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){s.a.info(Number(e.data.data.errno)),200===Number(e.data.data.errno)?t.setState({status:6}):201===Number(e.data.data.errno)?t.setState({status:4}):202===Number(e.data.data.errno)?t.setState({status:3}):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}):s.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 s.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(m.a)(Object(m.a)(a));Object(p.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,t.props.showSingleBox(),p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6}):201===Number(e.data.data.errno)?t.setState({status:4}):202===Number(e.data.data.errno)?t.setState({status:3}):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}):s.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){s.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.b)("id")};p.c.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)):s.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.c.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):s.a.info(e.data.msg,2)})},a.getTime=function(e){p.c.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}):s.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={status:1,orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",singleBox:!1},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){(1===Object(p.b)("is_class")||Object(p.b)("weixinpay"))&&this.payCallback(),p.a.isWeixin&&this.isweixinPay()}},{key:"componentWillReceiveProps",value:function(e,t){this.setState({singleBox:e.singleBox})}},{key:"render",value:function(){var e=this,t=this.state.singleBox;if(this.state.endTime){var a=1e3*this.state.endTime,n=Date.now();setInterval(function(){a-=1e3;var t=Object(E.differenceInSeconds)(new Date(a),n)%60,s=Object(E.differenceInMinutes)(new Date(a),n)%60,i=Object(E.differenceInHours)(new Date(a),n)%24;e.setState({hour:i,min:s,sec:t})},1e3)}return d.a.createElement("div",null,t&&d.a.createElement("div",{className:"popup-box"},1===this.state.status&&d.a.createElement("div",{className:"content singleset-payment"},d.a.createElement("div",{className:"price-box"},d.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),d.a.createElement("p",null,this.props.data.class_price,"\u5143")),d.a.createElement("div",{className:"course-info"},d.a.createElement("p",{className:"text-overflow-1"},d.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),d.a.createElement("p",{className:"text-overflow-1"},d.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),d.a.createElement("div",{className:"payment-type"},d.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&d.a.createElement("p",{onClick:this.check.bind(this,"1")},d.a.createElement("i",{className:"iconfont iconalipay"}),d.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),d.a.createElement("p",{onClick:this.check.bind(this,"0")},d.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),d.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),d.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),2===this.state.status&&d.a.createElement("div",{className:"content payment-success"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.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.state.nowPrice,"\u5143\u8d2d\u4e70\u3002"),d.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u591f\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.state.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),d.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),d.a.createElement("div",{className:"btn btn-FF4000",onclick:this.toBuyAll()},"\uffe5",this.state.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),d.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),d.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===this.state.status&&d.a.createElement("div",{className:"content group"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),d.a.createElement("div",{className:"group-img"},d.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),d.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")),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(g.b)(function(e){return{user:e.user}},null),b.g)(v)},661:function(e,t,a){},670:function(e,t,a){"use strict";var n=a(7),s=a(8),i=a(10),c=a(9),o=a(11),r=a(0),l=a.n(r),m=(a(671),function(e){function t(e){var s;return Object(n.a)(this,t),(s=Object(i.a)(this,Object(c.a)(t).call(this,e))).closeMore=function(){s.props.boxHide(!1)},s.state={kanjiaIcon:a(629)},s}return Object(o.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),t}(r.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(t,a){return l.a.createElement("li",{key:a,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},t.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},t.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=m},671:function(e,t,a){},672:function(e,t,a){}}]);
//# sourceMappingURL=detail.1b85edeb.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1115:function(e,t,a){},1116:function(e,t,a){},1117:function(e,t,a){},1118:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},1119:function(e,t,a){e.exports=a.p+"static/media/kanjia_cg_icon.81a489ac.png"},1120:function(e,t,a){},1121:function(e,t,a){},1122:function(e,t,a){},1123:function(e,t,a){},1124:function(e,t,a){},1131:function(e,t,a){},1174:function(e,t,a){"use strict";a.r(t);var n=a(23),s=(a(43),a(14)),i=a.n(s),c=a(7),o=a(8),r=a(10),l=a(9),m=a(11),u=a(0),d=a.n(u),p=(a(1115),a(82)),h=(a(89),a(25)),b=a.n(h),f=(a(1116),a(630)),g=(a(115),a(45)),E=a.n(g),v=a(50),_=(a(1117),a(4)),N=a(18),y=function(e){function t(){var e,a;Object(c.a)(this,t);for(var s=arguments.length,o=new Array(s),m=0;m<s;m++)o[m]=arguments[m];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={mobile:"",code:"",isBargain:!0},a.handleChange=function(e){var t=e.target,n=t.name,s=t.value;a.setState(Object(v.a)({},n,s))},a.sendCode=function(){console.log(Object(_.g)(a.state.mobile)),Object(_.g)(a.state.mobile)?_.c.post("".concat(API["base-api"],"/sys/bind_send_sms"),{phone_num:a.state.mobile}).then(function(e){200==e.data.code?i.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1):410===e.data.errno?(i.a.info("\u8be5\u624b\u673a\u53f7\u5df2\u6ce8\u518c\uff0c\u8bf7\u4f7f\u7528\u8be5\u624b\u673a\u53f7\u767b\u5f55\uff0c\u53d1\u8d77\u780d\u4ef7\u3002",3,null,!1),a.setState({isBargain:!1})):i.a.info(e.data.msg)}):i.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7")},a.handleClick=function(){a.state.code?_.c.post("".concat(API.home,"/m/user/bindMobile"),Object(n.a)({},a.state)).then(function(e){200==e.data.code?(i.a.info("\u7ed1\u5b9a\u624b\u673a\u53f7\u6210\u529f",2,null,!1),a.props.iWantBargain()):i.a.info(e.data.msg)}):i.a.info("\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state,t=e.mobile,a=e.code;return d.a.createElement("div",{className:"bargain-bind-phone"},d.a.createElement("div",{className:"title"},"\u7ed1\u5b9a\u624b\u673a\uff0c\u5148\u780d\u4e00\u5200"),d.a.createElement(E.a,{className:"list"},d.a.createElement("input",{type:"tel",onChange:this.handleChange,name:"mobile",placeholder:"\u624b\u673a\u53f7",maxLength:11}),d.a.createElement("label",{htmlFor:"code"},d.a.createElement("input",{type:"tel",id:"code",onChange:this.handleChange,name:"code",placeholder:"\u9a8c\u8bc1\u7801",maxLength:6}),d.a.createElement("div",{className:"send-code",onClick:this.sendCode},"\u53d1\u9001\u9a8c\u8bc1\u7801"))),this.state.isBargain&&d.a.createElement("button",{onClick:this.handleClick,className:Object(_.g)(t)&&a?"active":""},"\u5148\u780d\u4e00\u5200"),!this.state.isBargain&&d.a.createElement(N.b,{className:"button active",to:"/passport/login"},"\u53bb\u767b\u5f55"))}}]),t}(u.Component),j=a(157),S=a(670),O=a(17),w=a(51),I=a(20),k=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(r.a)(this,Object(l.a)(t).call(this,e))).getBargainRankList=function(e,t){var a={courseId:e,type:t};_.c.post("".concat(API.home,"/m/bargain/rankList"),a).then(function(e){200===e.data.code?n.setState({list:e.data.data.list,outList:e.data.data.list[0]}):i.a.info(e.data.msg,2)})},n.getBargainInfo=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/courseDetail"),e).then(function(e){200===e.data.code?(n.setState({barInfo:e.data.data}),0===e.data.data.bargain_status&&n.getBargainRankList(Object(_.b)("id"),0)):i.a.info(e.data.msg,2)})},n.getMore=function(){n.setState({isShowMore:!0})},n.boxHide=function(e){n.setState({isShowMore:e})},n.toArtifact=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/receiveLimit"),e).then(function(e){200===e.data.code?n.setState({isShowOverlay:!0,status:1}):i.a.info(e.data.msg,2)})},n.useArtifact=function(){n.toKanjia(Object(_.b)("id"),2,0)},n.toCart=function(){var e={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/cart/add"),e).then(function(e){200===e.data.code||15001===e.data.code?n.props.history.push("/shopcart"):i.a.info(e.data.msg,2)})},n.continueBargain=function(){var e=n.state.barInfo,t=(void 0===e?{}:e).bargain_code;n.props.history.push("/bargain-middle-page?id=".concat(Object(_.b)("id"),"&bargaincode=").concat(t,"&is_originator=1"))},n.iWantBargain=function(){var e=n.props.user;e&&e.data&&e.data.uid?n.toKanjia(Object(_.b)("id"),1,0):n.props.history.push("/passport/login")},n.toKanjia=function(e,t,a){var s={course_id:e,type:t,parent_uid:a},c=n.props.history;_.c.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(e){var a=e.data,s=a.data;200===a.code?2===t?n.setState({isShowOverlay:!0,status:2}):2===s.user_status?n.setState({isShowOverlay:!0,status:3}):c.push("/bargain-middle-page?id=".concat(Object(_.b)("id"),"&bargaincode=").concat(s.bargain_code,"&is_originator=1")):i.a.info(e.data.msg,2)})},n.close=function(){n.setState({isShowOverlay:!1,status:""})},n.state={isShowOverlay:!1,kanjiaIcon:a(1118),info:"",outList:[],list:[],limitPeople:"",status:"",bargainCode:"",time:"",barInfo:{}},n}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.user,t=void 0===e?{}:e;t.data&&t.data.uid&&this.getBargainInfo()}},{key:"render",value:function(){var e=this.state,t=e.list,a=e.outList,n=e.barInfo,s=this.props.user,i=s&&s.data&&s.data.uid;return d.a.createElement("div",{className:"bargain-func"},(2===n.bargain_status||!i)&&d.a.createElement(A,{limitPeople:n.limitPeople,iWantBargain:this.iWantBargain}),(0===n.bargain_status||1===n.bargain_status)&&d.a.createElement(C,{info:n,outList:a,getMore:this.getMore,toArtifact:this.toArtifact,useArtifact:this.useArtifact,continueBargain:this.continueBargain}),this.state.isShowOverlay&&d.a.createElement(f.a,null,3===this.state.status&&d.a.createElement(y,{iWantBargain:this.iWantBargain}),1===this.state.status&&d.a.createElement(x,{useArtifact:this.useArtifact}),2===this.state.status&&d.a.createElement(B,{toCart:this.toCart}),0!==this.state.status&&d.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})),d.a.createElement(S.a,{list:t,icon:this.state.kanjiaIcon,limitPeople:n.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}))}}]),t}(u.Component);function A(e){return d.a.createElement("div",{className:"intro-outer"},d.a.createElement("div",{className:"intro-inner"},d.a.createElement(b.a,{direction:"column",justify:"center",className:"intro-wrapper"},d.a.createElement("p",null,"\u9080\u8bf7",d.a.createElement("span",{className:"indicator"},e.limitPeople,"\u4f4d"),"\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),d.a.createElement("p",null,"\u4e00\u5200\u7edd\u6740\uff0c\u780d\u7206\u5e95\u4ef7"),d.a.createElement(b.a.Item,null,d.a.createElement("button",{onClick:e.iWantBargain},"\u6211\u8981\u780d\u4ef7")))))}function C(e){var t,a,n=Object(u.useState)(0),s=Object(p.a)(n,2),i=s[0],c=s[1],o=Object(u.useState)(0),r=Object(p.a)(o,2),l=r[0],m=r[1],h=Object(u.useState)(0),f=Object(p.a)(h,2),g=f[0],E=f[1],v=Object(u.useState)(0),_=Object(p.a)(v,2),N=_[0],y=_[1];0===e.info.is_artifact?t=d.a.createElement("div",null,"\u518d\u9080\u8bf7",d.a.createElement("span",{className:"indicator"},e.info.invit_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===e.info.is_artifact?(t=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=d.a.createElement("button",{onClick:e.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===e.info.is_artifact&&(t=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=d.a.createElement("button",{onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var S=1e3*e.info.end_time,O=Date.now();return setInterval(function(){S-=1e3,y(Object(j.differenceInSeconds)(new Date(S),O)%60),E(Object(j.differenceInMinutes)(new Date(S),O)%60),m(Object(j.differenceInHours)(new Date(S),O)%24),c(Object(j.differenceInDays)(new Date(S),O)%24)},1e3),d.a.createElement("div",{className:"status-outer"},0===e.info.bargain_status&&d.a.createElement("div",{className:"status-inner"},d.a.createElement(b.a,{direction:"column"},d.a.createElement("div",{className:"first-row"},d.a.createElement("div",null,"\u5df2\u780d",d.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),d.a.createElement("span",{className:"time hour"},String(l).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time min"},String(g).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time sec"},String(N).padStart(2,0)),d.a.createElement("span",{className:"over"},"\u540e\u780d\u4ef7\u7ed3\u675f")),d.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),d.a.createElement("div",{className:"sec-row"},d.a.createElement("div",null,d.a.createElement("img",{src:e.outList.avatar_file,alt:""}),d.a.createElement("span",{className:"name"},e.outList.user_name)),d.a.createElement("div",null,d.a.createElement("div",null,"\u780d\u6389",d.a.createElement("span",{className:"indicator"},e.outList.amount,"\u5143")),d.a.createElement("button",{onClick:e.continueBargain},"\u7ee7\u7eed\u780d\u4ef7"))),d.a.createElement("div",{className:"third-row"},t,a))),1===e.info.bargain_status&&d.a.createElement("div",{className:"status-inner status-over"},d.a.createElement(b.a,{direction:"column"},d.a.createElement("div",{className:"first-row"},d.a.createElement("div",null,"\u5df2\u780d",d.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),d.a.createElement("span",{className:"bargain-over"},"\u780d\u4ef7\u7ed3\u675f")),d.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),d.a.createElement("div",{className:"time-tobuy"},"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",d.a.createElement("span",{className:"time hour"},String(i).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u5929 "),d.a.createElement("span",{className:"time min"},String(l).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u65f6 "),d.a.createElement("span",{className:"time sec"},String(g).padStart(2,0)),d.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"))))}function x(e){return d.a.createElement("div",{className:"artifact-box"},d.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),d.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),d.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function B(e){return d.a.createElement("div",{className:"use-artifact-box"},d.a.createElement("img",{className:"top-img",src:a(1119),alt:""}),d.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e8610\u5143\uff01"),d.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",d.a.createElement("span",{className:"indicator"},"109\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),d.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),d.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}var P=Object(O.d)(Object(I.b)(function(e){return{user:e.user}},null),w.g)(k),M=(a(1120),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getMore=function(){a.setState({isShowMore:!0})},a.closeMore=function(){a.setState({isShowMore:!1})},a.toPay=function(e){var t=a.props,n=t.courseInfo,s=t.history;3===n.group_status?s.push("/order?id=".concat(Object(_.b)("id")),{group:1}):a.setState({isShowMore:!1,alreadyIn:!0})},a.invitedFriends=function(){a.setState({isShowMore:!1,alreadyIn:!1}),a.props.invitedFriends()},a.hideMbc=function(){a.setState({alreadyIn:!1})},a.formatTimeByMillisecond=function(e){var t,a,n,s=1e3*e;return s-=1e3,t="".concat(parseInt(s/36e5)).padStart(2,0),a="".concat(parseInt((s-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((s-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(t,":").concat(a,":").concat(n)},a.state={isShowMore:!1,alreadyIn:!1,pdd_price:0,number:0,data:{},countdown:e.countdown,now_groupon_list:[]},console.log(e),a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.courseInfo&&e.courseInfo.courseInfo&&e.courseInfo.courseInfo.course_info&&e.courseInfo.courseInfo.course_info.pdd_group_info){var t=e.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;t&&t.length>0&&(t.map(function(e){return e.end_time-=1,e}),this.setState({now_groupon_list:t}))}this.setState({countdown:e.countdown})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.courseInfo,a=void 0===t?{}:t;if(a.pdd_group_info){var n=a.pdd_group_info.now_groupon_list;n&&n.length>0&&setInterval(function(){n.map(function(e){return e.end_time-=1,e}),e.setState({now_groupon_list:n})},1e3)}}},{key:"render",value:function(){var e=this,t=this.props.courseInfo,a=this.state,n=a.alreadyIn,s=a.countdown,i=(a.now_groupon_list,""),c="",o=-1,r=null;if(t&&(c=(i=t.pdd_group_info).groupon_member,o=t.group_status),4===o&&c.member){for(var l=[],m=c.number;0!=m;)l.push(m),m--;var u=d.a.createElement("div",{className:"group-user-list"},d.a.createElement(b.a,{justify:"center",className:"imgList"},c.member.map(function(e){return d.a.createElement("div",{className:"imgContainer",key:Math.random()},d.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?d.a.createElement("div",{className:"leaderFlag"},d.a.createElement("span",null,"\u56e2\u957f")):null)}),l.map(function(e){return d.a.createElement("div",{className:"imgContainer",key:Math.random()},d.a.createElement("div",{className:"imgname"},d.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})));r=d.a.createElement("div",{className:"groupSuccessMbc",onClick:this.hideMbc},d.a.createElement("div",{className:"content"},d.a.createElement("p",null,"\u4f60\u5df2\u53c2\u56e2"),u,d.a.createElement("div",{className:"group-btn",onClick:this.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",s," \u540e\u7ed3\u675f"),d.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")))}return d.a.createElement("div",{className:"group-box"},d.a.createElement("div",{className:"group-title"},d.a.createElement("span",null,i.now_groupon_total,"\u4eba\u6b63\u5728\u5f00\u56e2\uff0c\u53ef\u76f4\u63a5\u53c2\u4e0e"),d.a.createElement("span",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a",d.a.createElement("i",{className:"iconfont iconiconfront-70"}))),d.a.createElement("ul",{className:"group-list"},i.now_groupon_list&&i.now_groupon_list.length>0&&i.now_groupon_list.map(function(t,a){return d.a.createElement("li",{key:a,className:"group-item"},d.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),d.a.createElement("div",{className:"user-name text-overflow-one"},t.user_name),d.a.createElement("div",{className:"group-status"},d.a.createElement("p",null,"\u8fd8\u5dee",d.a.createElement("span",{className:"red"},t.number,"\u4eba"),"\u62fc\u6210"),d.a.createElement("p",null,"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),d.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),d.a.createElement("div",{className:"group-dec"},d.a.createElement("span",null,d.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),d.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(i.person_num,"\u4eba\u6210\u56e2"))),n&&4===o&&d.a.createElement(d.a.Fragment,null,r),this.state.isShowMore&&d.a.createElement("div",{className:"moreMbc"},d.a.createElement("div",{className:"content"},d.a.createElement("div",{className:"title-box"},"\u6b63\u5728\u62fc\u56e2"),d.a.createElement("ul",{className:"more-group-list"},i.now_groupon_list&&i.now_groupon_list.length>0&&i.now_groupon_list.map(function(t,a){return d.a.createElement("li",{key:a,className:"group-item"},d.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),d.a.createElement("div",{className:"user-name"},d.a.createElement("p",{className:"name text-overflow-one"},t.user_name),d.a.createElement("p",{className:"time"},"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),d.a.createElement("p",{className:"group-status"},"\u8fd8\u5dee",t.number,"\u4eba"),d.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),d.a.createElement("div",{className:"more-group-dec"},"\u4ec5\u663e\u793a10\u4e2a\u6b63\u5728\u5f00\u56e2\u7684\u4eba"),d.a.createElement("i",{onClick:this.closeMore,className:"iconfont iconiconfront-2 close"}))))}}]),t}(u.Component)),D=(a(258),a(160)),z=a.n(D),T=(a(154),a(35)),R=a.n(T),L=(a(1121),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).htmlDecode=function(e){return e&&(e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e},a.tabchange=function(e,t){1===t&&a.getList()},a.getList=function(){_.c.get("".concat(API.home,"/m/course/syllabuses/").concat(Object(_.b)("id"))).then(function(e){200===e.data.code?a.setState({stageInfo:e.data.data}):i.a.info(e.data.msg,2)})},a.state={stageInfo:[]},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t="";return this.props.data&&(t=this.props.data),d.a.createElement("div",{className:"course-detail"},d.a.createElement(R.a,null),d.a.createElement(z.a,{tabs:[{title:"\u4ecb\u7ecd"},{title:"\u5927\u7eb2"}],initialPage:0,onChange:function(t,a){e.tabchange(t,a)}},d.a.createElement("div",{className:"introduce"},d.a.createElement("p",null,"\u8bb2\u5e08\uff1a",t.teachers),d.a.createElement("p",null,"\u8bfe\u65f6\uff1a",t.course_hour),d.a.createElement("p",null,"\u65f6\u95f4\uff1a",t.start_time),d.a.createElement("div",{className:"dec",dangerouslySetInnerHTML:{__html:this.htmlDecode(t.intro)}})),d.a.createElement("div",{className:"outline"},this.state.stageInfo&&this.state.stageInfo.length>0&&this.state.stageInfo.map(function(a,n){return d.a.createElement("div",{className:"stagebox",key:n},d.a.createElement("h1",{className:"stage text-overflow-1"},a.stage_name),a.lesson.map(function(a,n){return d.a.createElement("ul",{key:n},d.a.createElement("h2",{className:"classhour"},d.a.createElement("span",{className:"title text-overflow-1"},a.name),!t.is_aist&&6===a.class_status&&d.a.createElement("span",{className:"btn-right-10 audition",onClick:e.props.toAudition},"\u8bd5\u542c",d.a.createElement("i",{className:"iconfont iconcelluar"})),!t.is_aist&&0===a.class_status&&d.a.createElement("i",{className:"iconfont iconiconfront-74 icon-right-22"}),!t.is_aist&&1===a.class_status&&d.a.createElement("span",{className:"btn-right-10 singleset",onClick:function(t){return e.props.toSingleset(a)}},"\xa5 ",a.class_price),!t.is_aist&&4===a.class_status&&1===a.video_auth&&4===a.is_video&&d.a.createElement("span",{className:"live icon-right-22"},"\u6b63\u5728\u76f4\u64ad",d.a.createElement("i",{className:"iconfont icondanseshixintubiao-23"})),!t.is_aist&&2===a.class_status&&d.a.createElement(N.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"iconfont icondanseshixintubiao-23 icon-right-22"}),t.is_aist&&a.is_open&&1===t.is_baoming&&d.a.createElement(N.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"aist aist_open"}),t.is_aist&&(!a.is_open||0===t.is_baoming)&&d.a.createElement("i",{className:"aist iconfont iconiconfront-74"})),a.point&&a.point.length>0&&a.point.map(function(e,t){var a=d.a.createElement("span",null,1===e.type&&d.a.createElement("span",null,"\u77e5\u8bc6\u70b9",t+1,"\uff1a"),2===e.type&&d.a.createElement("span",{className:"red"},"\u5b9e\u6218\u9879\u76ee\uff1a"));return d.a.createElement("li",{className:"points text-overflow-1",key:t},a,e.name)}),d.a.createElement(d.a.Fragment,null,t.is_aist&&""!==a.practice.title&&(!a.is_open||0===t.is_baoming)&&d.a.createElement("span",{className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),d.a.createElement("i",{className:"exam exam_close"})),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&!a.practice.is_tested&&d.a.createElement(N.b,{to:"/campTest?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title)),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&a.practice.is_tested&&d.a.createElement(N.b,{to:"/campResolve?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),d.a.createElement("i",{className:"exam exam_open"}))))}))}))),d.a.createElement(R.a,null))}}]),t}(u.Component)),F=a(30),W=(a(1122),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getRankList=function(){_.c.get("".concat(API.home,"/dist/rankList/").concat(Object(_.b)("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(_.b)("id")};_.c.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;if(t&&t.data&&t.data.uid){var n=Object(_.b)("id"),s=e.dist_first_level_ti,i=e.uid,c=a.state.code;a.props.history.push("/shareposter?courseId=".concat(n,"&dist_first=").concat(s,"&uid=").concat(i,"&dist_code=").concat(c))}else a.props.history.push("/passport/login")},a.openRanking=function(){a.setState({shareRank:!0})},a.colse=function(){a.setState({shareRank:!1})},a.state={list:[],rankingslice:[],code:"",shareRank:!1},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getRankList(),this.getCode()}},{key:"render",value:function(){var e=this.props.courseInfo,t=void 0===e?"":e;return d.a.createElement("div",{className:"share-ranking"},d.a.createElement(b.a,{className:"share-container",justify:"between"},d.a.createElement(b.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(b.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}(u.Component)),U=Object(O.d)(Object(I.b)(function(e){return{user:e.user}},null),w.g)(W),q=(a(1123),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).colse=function(){a.props.boxHide(!1)},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return d.a.createElement("div",null,this.props.auditionBox&&d.a.createElement("div",{className:"popup-box"},d.a.createElement("div",{className:"content audition-box"},d.a.createElement("p",{className:"audition-header"},"\u5f53\u524d\u9875\u9762\u4e0d\u652f\u6301\u8bd5\u542c"),d.a.createElement("p",{className:"audition-dec"},"\u8bf7\u524d\u5f80APP\u8bd5\u542c"),d.a.createElement(F.a,{className:"btn btn-18B4ED",text:"\u7acb\u5373\u524d\u5f80"})),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component)),J=a(660),H=a(62),K=(a(1124),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).signUpNow=function(){if(a.props.user.hasError)a.props.history.push("/passport");else{var e=JSON.stringify([Number(Object(_.b)("id"))]);_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(e,"?type=1")).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{type:1}):i.a.info(e.data.msg,2)})}},a.simpleCourse=function(){a.props.user.hasError?a.props.history.push("/passport"):_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(_.b)("id")),{simple:1}):i.a.info(e.data.msg,2)})},a.formatDate=function(e){var t=e.split("-");return"".concat(t[1],"\u6708").concat(t[2],"\u65e5\u5f00\u8bfe")},a.tobuy=function(){var e=a.props.user,t=a.state.barInfo;e&&e.data&&e.data.uid?2===t.bargain_status?a.simpleCourse():a.setState({isShowOverlay:!0,bargainStatus:1}):a.props.history.push("/passport/login")},a.keyToGroup=function(){a.props.user.hasError?a.props.history.push("/passport"):a.props.history.push("/order?id=".concat(Object(_.b)("id")),{group:1})},a.bargainToOrder=function(){a.props.user.hasError?a.props.history.push("/passport"):_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(_.b)("id"),"]"),{bargain:1}):i.a.info(e.data.msg,2)})},a.cancel=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/cancel"),e).then(function(e){200===e.data.code?(a.setState({isShowOverlay:!1,bargainStatus:""}),_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(_.b)("id"),"]"),{simple:1}):i.a.info(e.data.msg,2)})):i.a.info(e.data.msg,2)})},a.close=function(){a.setState({isShowOverlay:!1,bargainStatus:""})},a.toKanjia=function(){var e=a.props,t=e.user,n=e.history,s=t&&t.data&&t.data.uid,c=Object(_.b)("id");if(s){var o={course_id:c,type:1,parent_uid:0};_.c.post("".concat(API.home,"/m/bargain/toBargain"),o).then(function(e){var t=e.data,a=t.data,s=t.code,o=t.msg;200===s?n.push("/bargain-middle-page?id=".concat(c,"&bargaincode=").concat(a.bargain_code,"&is_originator=1")):i.a.info(o,2)})}else a.props.history.push("/passport/login")},a.getBargainInfo=function(){var e=a.props.user,t=(e&&e.data&&e.data.uid,{courseId:Object(_.b)("id")});_.c.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(e){200===e.data.code?a.setState({barInfo:e.data.data}):i.a.info(e.data.msg,2)})},a.state={isbuy:1,is_baoming:0,group_status:3,in_cart:!1,countdown:0,barInfo:{}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.group=!1}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=void 0===t?{}:t,n=e.user,s=void 0===n?{}:n;a.is_bargain&&s.data&&s.data.uid&&this.getBargainInfo(),this.setState({courseInfo:a,countdown:e.countdown})}},{key:"render",value:function(){var e=this,t=this.props,a=t.user,n=void 0===a?{}:a,s=t.toCart,i=this.state,c=i.countdown,o=i.barInfo,r=i.courseInfo,l=void 0===r?{}:r,m=n.data&&n.data.uid;return d.a.createElement("div",null,0===l.is_baoming&&3!==l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),l.in_cart&&d.a.createElement(N.b,{to:"/shopcart",className:"btn btn-s bg-FCCD05"},"\u53bb\u8d2d\u7269\u8f66\u7ed3\u7b97"),!l.in_cart&&d.a.createElement("button",{className:"btn btn-s bg-FCCD05",onClick:function(e){return s(1)}},"\u52a0\u5165\u8d2d\u7269\u8f66"),d.a.createElement("span",{className:"btn btn-s bg-FD7700",onClick:function(t){return e.simpleCourse()}},"\u7acb\u5373\u62a5\u540d")),1===l.is_baoming&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement(N.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m bg-09f"},"\u5f00\u59cb\u5b66\u4e60")),0===l.is_baoming&&3===l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn btn-s bg-F4AAA7",onClick:this.simpleCourse},d.a.createElement("span",null,"\xa5 ".concat(l.price1)),d.a.createElement("span",null,"\u76f4\u63a5\u8d2d\u4e70")),d.a.createElement("button",{className:"btn btn-s bg-E02E24"},d.a.createElement("span",{onClick:this.keyToGroup},d.a.createElement("span",null,"\xa5 ".concat(l.pdd_group_info.price)),d.a.createElement("span",null,"\u4e00\u952e\u5f00\u56e2")))),0===l.is_baoming&&4===l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("div",{className:"btn btn-l bg-E02E24",onClick:this.props.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",c," \u540e\u7ed3\u675f")),0===l.is_baoming&&this.props.data&&this.props.data.is_bargain&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn btn-s bg-F4AAA7"},d.a.createElement("span",null,"\xa5",l.price1),d.a.createElement("span",{onClick:this.tobuy},"\u76f4\u63a5\u8d2d\u4e70")),(2===o.bargain_status||!m)&&d.a.createElement("button",{className:"btn btn-s bg-E02E24",onClick:this.toKanjia},"\u6211\u8981\u780d\u4ef7"),(0===o.bargain_status||1===o.bargain_status)&&m&&d.a.createElement("button",{className:"btn btn-s bg-E02E24"},d.a.createElement("span",null,"\xa5",o.amount),d.a.createElement("span",{onClick:this.bargainToOrder},"\u53bb\u652f\u4ed8"))),20===this.state.isbuy&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult-l",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2"))),l.is_aist&&(this.props.user.hasError||0===l.is_baoming)&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn sign-up-now",onClick:function(t){return e.signUpNow()}},d.a.createElement("span",null,"\u7acb\u5373\u62a5\u540d"))),l.is_aist&&!this.props.user.hasError&&1===l.is_baoming&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),""===l.aist_start_time?d.a.createElement(N.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m learn-now"},d.a.createElement("span",null,"\u5f00\u59cb\u5b66\u4e60")):d.a.createElement("button",{className:"btn btn-m wait-open"},d.a.createElement("span",null,this.formatDate(l.aist_start_time)))),this.state.isShowOverlay&&d.a.createElement(f.a,null,1===this.state.bargainStatus&&d.a.createElement(Q,{close:this.close,cancel:this.cancel}),d.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(u.Component));function Q(e){return d.a.createElement("div",{className:"cancel-bargain"},d.a.createElement("p",{className:"top-img"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"})),d.a.createElement("p",{className:"tip-mess"},"\u60a8\u5df2\u53d1\u8d77\u780d\u4ef7\uff0c\u76f4\u63a5\u8d2d\u4e70\u5c06\u6e05\u9664\u5df2\u780d\u91d1\u989d\u3002\u76f4\u63a5\u8d2d\u4e70\u53ef\u4f7f\u7528\u4f18\u60e0\u5238~"),d.a.createElement("div",{className:"btns"},d.a.createElement("button",{onClick:e.close},"\u53d6\u6d88"),d.a.createElement("button",{onClick:e.cancel},"\u786e\u5b9a")))}var G=Object(I.b)(function(e){return{user:e.user}},{getCourses:H.d})(K),V=(a(155),a(75)),Z=a.n(V),Y=(a(1125),a(1127)),X=a.n(Y),$=(a(1131),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getList=function(){var e={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/course/barrages"),e).then(function(e){200===e.data.code&&a.setState({list:e.data.data})})},a.state={list:[]},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;e.getList(),this.timer=setInterval(function(){e.getList()},1e4)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer)}},{key:"render",value:function(){return d.a.createElement(Z.a,null,d.a.createElement(X.a,{className:"my-carousel",vertical:!0,dots:!1,autoplay:!0,infinite:!0},this.state.list&&d.a.createElement("div",{className:"v-item text-overflow-one"},d.a.createElement("img",{src:this.state.list.avatar,alt:""}),this.state.list.user_name," ",this.state.list.live_msg)))}}]),t}(u.Component)),ee=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).fetchCourseInfo=function(){var e=Object(_.b)("id");_.c.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code&&(a.setState({course:n}),n.course_info)){var s=n.course_info;if(3===s.group_status||4===s.group_status){var i=1e3*s.pdd_group_info.groupon_member.end_time,c=0,o=0,r=0;setInterval(function(){i-=1e3,c="".concat(parseInt(i/36e5)).padStart(2,0),o="".concat(parseInt((i-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((i-36e5*c-6e4*o)/1e3)).padStart(2,0),a.setState({countdown:"".concat(c,":").concat(o,":").concat(r)})},1e3)}}})},a.toAudition=function(){var e=a.props.user;e&&e.data&&e.data.uid?a.setState({auditionBox:!0}):a.props.history.push("/passport/login")},a.toSingleset=function(e){var t=a.props.user;t&&t.data&&t.data.uid?a.setState({singleBox:!0,singMess:e}):a.props.history.push("/passport/login")},a.toCart=function(e){var t=a.props,n=t.history,s=t.addCourseToCart,c={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/cart/add"),c).then(function(t){200===t.data.code?1===e?(i.a.info("\u5df2\u52a0\u5165\u8d2d\u7269\u8f66",2),s(),a.fetchCourseInfo()):(n.replace("/shopcart"),\u00df):15001===t.data.code?n.replace("/shopcart"):4030===t.data.code?n.replace("/passport"):i.a.info(t.data.msg,2)})},a.invitedFriends=function(){var e=a.state.course.course_info,t=e.course_title,s=e.image_name,c=e.course_id,o=(e.pdd_group_info,e.pdd_group_info),r=(o.groupon_member,o.groupon_member.number),l=o.price;if(_.a.isWeixin){var m=a.state.share;a.setState({share:!m});var u={title:"\u3010\u4ec5\u5269".concat(r,"\u4e2a\u540d\u989d\u3011\u6211").concat(l,"\u5143\u62fc\u4e86\u300a").concat(t,"\u300b"),desc:t,link:location.origin+"/detail??id=".concat(c),imgUrl:s};_.c.post("".concat(API["base-api"],"/m/sale/signature")).then(function(e){var t=e.data,a=t.nonce_str,n=t.signature,s=t.timestamp;wx.config({debug:!1,appId:"wx23dac6775ac82877",timestamp:s,nonceStr:a,signature:n,jsApiList:["hideMenuItems","showMenuItems","updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","onMenuShareAppMessage"]})}),wx.ready(function(){wx.hideAllNonBaseMenuItem(),wx.showMenuItems({menuList:["menuItem:share:appMessage","menuItem:share:timeline"]}),wx.updateAppMessageShareData(Object(n.a)({},u,{success:function(){}})),wx.updateTimelineShareData(Object(n.a)({},u,{success:function(){}}))})}else i.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},a.boxHide=function(e){a.setState({auditionBox:e,singleBox:e})},a.state={isbuy:0,isvip:0,auditionBox:!1,singleBox:!1,shareRank:!1,singMess:"",barInfo:"",share:!1,countdown:"00:00:00",outList:[],list:[],course:{}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.course.course_info,n=void 0===a?{}:a;t.barInfo;console.log(n);var s=0;3!==n.group_status&&4!==n.group_status||(s=n.pdd_group_info.groupon_member.number);var i=this.state,c=i.share,o=i.countdown,r=(i.list,i.outList,this.props.location&&this.props.location.state?this.props.location.state.href:void 0);return d.a.createElement("div",{className:"detail-box"},d.a.createElement(F.e,{title:"\u8bfe\u7a0b\u8be6\u60c5",arrow:!0,cart:!0,toHref:r}),d.a.createElement(F.a,{className:"toapp"}),d.a.createElement($,null),d.a.createElement("div",{className:"course-content"},d.a.createElement("div",{className:"cover"},d.a.createElement("img",{src:n.image_name,alt:""}),n.is_aist&&d.a.createElement("span",{className:"return_cash"})),d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title"},n.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},n.simpledescription),d.a.createElement("div",{className:"des"},0===n.is_baoming&&d.a.createElement("p",{className:"course-price"},d.a.createElement("span",{className:"new"},"\xa5",n.price1),d.a.createElement("span",{className:"old"},"\xa5",n.price0)),1===n.is_baoming&&d.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70")))),1===n.is_baoming&&d.a.createElement("div",{className:"group"},"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid),n.vip_range&&d.a.createElement("div",{className:"vip"},d.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),d.a.createElement("p",null,"\u5e74\u4f1a\u5458QQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid)),d.a.createElement("div",{className:"promise"},d.a.createElement("label",null,"\u670d\u52a1\u627f\u8bfa"),d.a.createElement("p",null,n.service&&n.service.length>0&&n.service.map(function(e,t){return d.a.createElement("span",{key:t}," ",e," ")}))),d.a.createElement(q,{auditionBox:this.state.auditionBox,boxHide:this.boxHide}),d.a.createElement(J.a,{singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,title:n.course_title}),n.is_dist&&d.a.createElement(U,{courseInfo:n}),!n.is_aist&&(3===n.group_status||4===n.group_status)&&d.a.createElement(M,{courseInfo:n,history:this.props.history,countdown:o,invitedFriends:this.invitedFriends}),0===n.is_baoming&&!n.is_aist&&n.is_bargain&&d.a.createElement(P,null),d.a.createElement(L,{data:n,toAudition:this.toAudition,toSingleset:this.toSingleset}),n&&d.a.createElement(G,{countdown:o,data:n,user:this.props.user,invitedFriends:this.invitedFriends,toCart:this.toCart,history:this.props.history}),c?d.a.createElement("div",{className:"groupSuccessMbc",onClick:function(){e.setState({share:!1})}},d.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(s,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),d.a.createElement("div",{className:"tipArrow"},d.a.createElement("i",{className:"iconfont iconyindao"}))):null)}}]),t}(u.Component);t.default=Object(I.b)(function(e){return{user:Object(n.a)({},e.user)}},function(e){return Object(O.b)({getCourses:H.d,addCourseToCart:H.c},e)})(ee)},629:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},630:function(e,t,a){"use strict";var n=a(7),s=a(8),i=a(10),c=a(9),o=a(11),r=a(0),l=a.n(r),m=a(21),u=a.n(m),d=(a(672),document.body||document.documentElement),p=["touchmove","mousewheel"],h=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).preventScroll=function(e){e.preventDefault()},a.overlayBox=null,a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.addEventListener(t,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.removeEventListener(t,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(t){return e.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),t}(r.Component);t.a=h},660:function(e,t,a){"use strict";a(43);var n=a(14),s=a.n(n),i=a(7),c=a(8),o=a(10),r=a(9),l=a(11),m=a(156),u=a(0),d=a.n(u),p=(a(661),a(4)),h=a(18),b=a(51),f=a(17),g=a(20),E=a(157),v=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){p.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).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)):s.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.a.isWeixin?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.c.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)})},a.alipayPay=function(e){p.c.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:s.a.info(e.data.msg,2)})},a.onBridgeReady=function(e){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,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?this.payCallback():alert("\u652f\u4ed8\u5931\u8d25")})},a.isweixinPay=function(){var e=Object(m.a)(Object(m.a)(a)),t=Object(p.b)("code");if(t){if(void 0===Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("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(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/sys/orderStatus/").concat(Object(p.b)("oid"))).then(function(e){"200"==e.data.data.errno?t.setState({status:6}):"201"==e.data.data.errno?t.setState({status:4}):"202"==e.data.data.errno?t.setState({status:3}):"203"==e.data.data.errno?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2}):s.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 s.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(m.a)(Object(m.a)(a));e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/sys/orderStatus/").concat(Object(p.b)("oid"))).then(function(e){"200"==e.data.data.errno?t.setState({status:6}):"201"==e.data.data.errno?t.setState({status:4}):"202"==e.data.data.errno?t.setState({status:3}):"203"==e.data.data.errno?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2}):s.a.info(e.data.data.msg,2)}))})},1e3)},a.toBuyAll=function(){},a.zerobuyReceive=function(){s.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.b)("id")};p.c.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)):s.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.c.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):s.a.info(e.data.msg,2)})},a.getTime=function(e){p.c.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}):s.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={status:1,orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){(1===Object(p.b)("is_class")||Object(p.b)("weixinpay"))&&this.payCallback(),p.a.isWeixin&&this.isweixinPay()}},{key:"render",value:function(){var e=this;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(E.differenceInSeconds)(new Date(t),a)%60,s=Object(E.differenceInMinutes)(new Date(t),a)%60,i=Object(E.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:s,sec:n})},1e3)}return d.a.createElement("div",null,this.props.singleBox&&d.a.createElement("div",{className:"popup-box"},1===this.state.status&&d.a.createElement("div",{className:"content singleset-payment"},d.a.createElement("div",{className:"price-box"},d.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),d.a.createElement("p",null,this.props.data.class_price,"\u5143")),d.a.createElement("div",{className:"course-info"},d.a.createElement("p",{className:"text-overflow-1"},d.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),d.a.createElement("p",{className:"text-overflow-1"},d.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),d.a.createElement("div",{className:"payment-type"},d.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&d.a.createElement("p",{onClick:this.check.bind(this,"1")},d.a.createElement("i",{className:"iconfont iconalipay"}),d.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),d.a.createElement("p",{onClick:this.check.bind(this,"0")},d.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),d.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),d.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),2===this.state.status&&d.a.createElement("div",{className:"content payment-success"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.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.state.nowPrice,"\u5143\u8d2d\u4e70\u3002"),d.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u591f\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.state.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),d.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),d.a.createElement("div",{className:"btn btn-FF4000",onclick:this.toBuyAll()},"\uffe5",this.state.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),d.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),d.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===this.state.status&&d.a.createElement("div",{className:"content group"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),d.a.createElement("div",{className:"group-img"},d.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),d.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")),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(g.b)(function(e){return{user:e.user}},null),b.g)(v)},661:function(e,t,a){},670:function(e,t,a){"use strict";var n=a(7),s=a(8),i=a(10),c=a(9),o=a(11),r=a(0),l=a.n(r),m=(a(671),function(e){function t(e){var s;return Object(n.a)(this,t),(s=Object(i.a)(this,Object(c.a)(t).call(this,e))).closeMore=function(){s.props.boxHide(!1)},s.state={kanjiaIcon:a(629)},s}return Object(o.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),t}(r.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(t,a){return l.a.createElement("li",{key:a,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},t.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},t.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=m},671:function(e,t,a){},672:function(e,t,a){}}]);
//# sourceMappingURL=detail.e7658232.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){function r(r){for(var n,a,c=r[0],f=r[1],u=r[2],d=0,l=[];d<c.length;d++)a=c[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(r);l.length;)l.shift()();return i.push.apply(i,u||[]),t()}function t(){for(var e,r=0;r<i.length;r++){for(var t=i[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(i.splice(r--,1),e=c(c.s=t[0]))}return e}var n={},a={18:0},o={18:0},i=[];function c(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"5654b0f2",1:"6f1b147b",2:"2444c6c2",3:"58508f31",4:"02475a25",5:"31d6cfe0",6:"5199031c",7:"31d6cfe0",8:"4a91788c",9:"aced1689",10:"d246922c",11:"f39ca42e",12:"01bc9663",13:"c48c0144",14:"1970e6cf",16:"1dbd49e2",17:"a14c858f",19:"59d9773d",20:"728e4385",21:"8e1bd2b5",22:"acc61e40",23:"0984720e",25:"31d6cfe0",26:"b8256974",27:"31d6cfe0",28:"415f421f",29:"fd1b61f1",30:"44620a41",31:"ffbe0560"}[e]+".chunk.css",o=c.p+n,i=document.getElementsByTagName("link"),f=0;f<i.length;f++){var u=(s=i[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var s;if((u=(s=d[f]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");i.request=n,delete a[e],l.parentNode.removeChild(l),t(i)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var i,f=document.createElement("script");f.charset="utf-8",f.timeout=120,c.nc&&f.setAttribute("nonce",c.nc),f.src=function(e){return c.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"5d9a1888",1:"63329319",2:"f13847f4",3:"947fa78f",4:"7713915d",5:"98497c0f",6:"0b41ac28",7:"1d26f717",8:"8f7c5463",9:"061171dd",10:"d3f64477",11:"535850f6",12:"062aaeb3",13:"32d91de9",14:"e7658232",16:"c38a691f",17:"a499871a",19:"a10701e0",20:"6f0b8364",21:"3d4d0ff0",22:"a76a3571",23:"95c64771",25:"403aae65",26:"f7b80738",27:"33496196",28:"88036717",29:"42d40869",30:"b92758f1",31:"29632a76"}[e]+".chunk.js"}(e),i=function(r){f.onerror=f.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,i=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");i.type=n,i.request=a,t[1](i)}o[e]=void 0}};var u=setTimeout(function(){i({type:"timeout",target:f})},12e4);f.onerror=f.onload=i,document.head.appendChild(f)}return Promise.all(r)},c.m=e,c.c=n,c.d=function(e,r,t){c.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,r){if(1&r&&(e=c(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)c.d(t,n,function(r){return e[r]}.bind(null,n));return t},c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,"a",r),r},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.p="/",c.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],u=f.push.bind(f);f.push=r,f=f.slice();for(var d=0;d<f.length;d++)r(f[d]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.280838a5.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],f=r[1],u=r[2],d=0,l=[];d<i.length;d++)a=i[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"f15334d9",1:"6f1b147b",2:"2444c6c2",3:"58508f31",4:"02475a25",5:"31d6cfe0",6:"5199031c",7:"31d6cfe0",8:"4a91788c",9:"aced1689",10:"d246922c",11:"f39ca42e",12:"01bc9663",13:"c48c0144",14:"1970e6cf",16:"1dbd49e2",17:"a14c858f",19:"59d9773d",20:"728e4385",21:"8e1bd2b5",22:"acc61e40",23:"0984720e",25:"31d6cfe0",26:"b8256974",27:"31d6cfe0",28:"415f421f",29:"fd1b61f1",30:"44620a41",31:"ffbe0560"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var u=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var s;if((u=(s=d[f]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=function(e){return i.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"1d2df9b1",1:"63329319",2:"f13847f4",3:"947fa78f",4:"ebfa34d0",5:"98497c0f",6:"25a1b5a9",7:"6b507931",8:"8f7c5463",9:"061171dd",10:"09d41b8d",11:"a97f6c51",12:"062aaeb3",13:"70722e88",14:"1b85edeb",16:"c38a691f",17:"a499871a",19:"5e8dfb79",20:"6f0b8364",21:"3d4d0ff0",22:"07524052",23:"d741a89f",25:"403aae65",26:"08c4cdc9",27:"33496196",28:"88036717",29:"42d40869",30:"b92758f1",31:"29632a76"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],u=f.push.bind(f);f.push=r,f=f.slice();for(var d=0;d<f.length;d++)r(f[d]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.4fbb8ee2.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","18","exports","module","l","e","promises","0","1","2","3","4","6","8","9","10","11","12","13","14","16","17","19","20","21","22","23","26","28","29","30","31","Promise","resolve","reject","href","5","7","25","27","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAA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AAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAtG,EAAA0G,EAAA,SAAApG,GACA,IAAAoF,EAAApF,KAAA+F,WACA,WAA2B,OAAA/F,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAwF,EAAAE,EAAA,IAAAA,GACAA,GAIA1F,EAAA2F,EAAA,SAAAgB,EAAAC,GAAsD,OAAA5H,OAAAC,UAAAC,eAAAC,KAAAwH,EAAAC,IAGtD5G,EAAA4C,EAAA,IAGA5C,EAAA6G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAhI,KAAA0H,KAAAM,GACAA,EAAAhI,KAAAX,EACA2I,IAAAG,QACA,QAAAvI,EAAA,EAAgBA,EAAAoI,EAAAlI,OAAuBF,IAAAP,EAAA2I,EAAApI,IACvC,IAAAU,EAAA4H,EAIAxH","file":"static/js/runtime~main.280838a5.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\t18: 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\t18: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"static/js/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"5d9a1888\",\"1\":\"63329319\",\"2\":\"f13847f4\",\"3\":\"947fa78f\",\"4\":\"7713915d\",\"5\":\"98497c0f\",\"6\":\"0b41ac28\",\"7\":\"1d26f717\",\"8\":\"8f7c5463\",\"9\":\"061171dd\",\"10\":\"d3f64477\",\"11\":\"535850f6\",\"12\":\"062aaeb3\",\"13\":\"32d91de9\",\"14\":\"e7658232\",\"16\":\"c38a691f\",\"17\":\"a499871a\",\"19\":\"a10701e0\",\"20\":\"6f0b8364\",\"21\":\"3d4d0ff0\",\"22\":\"a76a3571\",\"23\":\"95c64771\",\"25\":\"403aae65\",\"26\":\"f7b80738\",\"27\":\"33496196\",\"28\":\"88036717\",\"29\":\"42d40869\",\"30\":\"b92758f1\",\"31\":\"29632a76\"}[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 = {\"0\":1,\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"6\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"16\":1,\"17\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"26\":1,\"28\":1,\"29\":1,\"30\":1,\"31\":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 = \"static/css/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"5654b0f2\",\"1\":\"6f1b147b\",\"2\":\"2444c6c2\",\"3\":\"58508f31\",\"4\":\"02475a25\",\"5\":\"31d6cfe0\",\"6\":\"5199031c\",\"7\":\"31d6cfe0\",\"8\":\"4a91788c\",\"9\":\"aced1689\",\"10\":\"d246922c\",\"11\":\"f39ca42e\",\"12\":\"01bc9663\",\"13\":\"c48c0144\",\"14\":\"1970e6cf\",\"16\":\"1dbd49e2\",\"17\":\"a14c858f\",\"19\":\"59d9773d\",\"20\":\"728e4385\",\"21\":\"8e1bd2b5\",\"22\":\"acc61e40\",\"23\":\"0984720e\",\"25\":\"31d6cfe0\",\"26\":\"b8256974\",\"27\":\"31d6cfe0\",\"28\":\"415f421f\",\"29\":\"fd1b61f1\",\"30\":\"44620a41\",\"31\":\"ffbe0560\"}[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","18","exports","module","l","e","promises","0","1","2","3","4","6","8","9","10","11","12","13","14","16","17","19","20","21","22","23","26","28","29","30","31","Promise","resolve","reject","href","5","7","25","27","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAA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,IAAAI,EAAAtH,OAAAuH,OAAA,MAGA,GAFAvG,EAAA+F,EAAAO,GACAtH,OAAA4G,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAlG,EAAAwF,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAtG,EAAA0G,EAAA,SAAApG,GACA,IAAAoF,EAAApF,KAAA+F,WACA,WAA2B,OAAA/F,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAwF,EAAAE,EAAA,IAAAA,GACAA,GAIA1F,EAAA2F,EAAA,SAAAgB,EAAAC,GAAsD,OAAA5H,OAAAC,UAAAC,eAAAC,KAAAwH,EAAAC,IAGtD5G,EAAA4C,EAAA,IAGA5C,EAAA6G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAhI,KAAA0H,KAAAM,GACAA,EAAAhI,KAAAX,EACA2I,IAAAG,QACA,QAAAvI,EAAA,EAAgBA,EAAAoI,EAAAlI,OAAuBF,IAAAP,EAAA2I,EAAApI,IACvC,IAAAU,EAAA4H,EAIAxH","file":"static/js/runtime~main.4fbb8ee2.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\t18: 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\t18: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"static/js/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"1d2df9b1\",\"1\":\"63329319\",\"2\":\"f13847f4\",\"3\":\"947fa78f\",\"4\":\"ebfa34d0\",\"5\":\"98497c0f\",\"6\":\"25a1b5a9\",\"7\":\"6b507931\",\"8\":\"8f7c5463\",\"9\":\"061171dd\",\"10\":\"09d41b8d\",\"11\":\"a97f6c51\",\"12\":\"062aaeb3\",\"13\":\"70722e88\",\"14\":\"1b85edeb\",\"16\":\"c38a691f\",\"17\":\"a499871a\",\"19\":\"5e8dfb79\",\"20\":\"6f0b8364\",\"21\":\"3d4d0ff0\",\"22\":\"07524052\",\"23\":\"d741a89f\",\"25\":\"403aae65\",\"26\":\"08c4cdc9\",\"27\":\"33496196\",\"28\":\"88036717\",\"29\":\"42d40869\",\"30\":\"b92758f1\",\"31\":\"29632a76\"}[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 = {\"0\":1,\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"6\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"16\":1,\"17\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"26\":1,\"28\":1,\"29\":1,\"30\":1,\"31\":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 = \"static/css/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"f15334d9\",\"1\":\"6f1b147b\",\"2\":\"2444c6c2\",\"3\":\"58508f31\",\"4\":\"02475a25\",\"5\":\"31d6cfe0\",\"6\":\"5199031c\",\"7\":\"31d6cfe0\",\"8\":\"4a91788c\",\"9\":\"aced1689\",\"10\":\"d246922c\",\"11\":\"f39ca42e\",\"12\":\"01bc9663\",\"13\":\"c48c0144\",\"14\":\"1970e6cf\",\"16\":\"1dbd49e2\",\"17\":\"a14c858f\",\"19\":\"59d9773d\",\"20\":\"728e4385\",\"21\":\"8e1bd2b5\",\"22\":\"acc61e40\",\"23\":\"0984720e\",\"25\":\"31d6cfe0\",\"26\":\"b8256974\",\"27\":\"31d6cfe0\",\"28\":\"415f421f\",\"29\":\"fd1b61f1\",\"30\":\"44620a41\",\"31\":\"ffbe0560\"}[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([[19],{1134:function(e,t,n){},1135:function(e,t,n){},1179:function(e,t,n){"use strict";n.r(t);var a=n(73),r=n.n(a),o=n(106),s=n(116),c=n(7),i=n(8),l=n(10),u=n(9),h=n(11),f=n(0),p=n.n(f),d=n(704),m=(n(1134),function(e){function t(){return Object(c.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return p.a.createElement("span",Object.assign({className:this.props.name},this.props),this.props.children)}}]),t}(f.PureComponent)),v=n(4),g=(n(1135),n(18)),y=n(63),C=function(e){function t(){var e,n;Object(c.a)(this,t);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(n=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(r)))).state={searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],hot_words:[],searchList:[],value:"",isLoading:!0},n.clearHistory=function(){localStorage.setItem("searchHistory",null),n.setState({searchHistory:[]})},n.handleChange=function(e){n.setState({value:e})},n.handleSearch=function(){n.state.value&&n.props.history.push("/search-result?word=".concat(encodeURIComponent(n.state.value)))},n.storeHistory=function(e){localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(s.a)(n.state.searchHistory),[e])))},n}return Object(h.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(o.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.c.get("".concat(API["search-api"],"/search_hot_word"));case 2:0===(t=e.sent).data.errno&&this.setState({hot_words:t.data.data.info.hot_words,isLoading:!1});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state.searchHistory;return p.a.createElement("div",{className:"search-page"},p.a.createElement(d.a,{searchHistory:this.state.searchHistory,value:this.state.value,handleChange:this.handleChange,handleSearch:this.handleSearch}),p.a.createElement(y.a,{isLoading:this.state.isLoading},p.a.createElement("div",{className:"search-main"},t.length>0&&p.a.createElement("div",{className:"search-land"},p.a.createElement("div",{className:"search-history"},p.a.createElement("span",null,"\u6700\u8fd1\u641c\u7d22"),p.a.createElement("i",{className:"iconfont iconiconfront-56",onClick:this.clearHistory})),p.a.createElement("div",{className:"search-tag"},t.map(function(e,t){return p.a.createElement(g.b,{key:t,to:"/search-result?word=".concat(encodeURIComponent(e))},p.a.createElement(m,{name:"tagLately"},e))}))),p.a.createElement("div",{className:"search-land search-hot"},p.a.createElement("label",{className:"search-history"},p.a.createElement("span",null,"\u70ed\u95e8\u641c\u7d22")),p.a.createElement("div",{className:"search-tag"},this.state.hot_words.length>0?this.state.hot_words.map(function(t,n){return p.a.createElement(g.b,{key:n,to:"/search-result?word=".concat(encodeURIComponent(t)),onClick:e.storeHistory.bind(e,t)},p.a.createElement(m,{name:"tagHot"},t))}):p.a.createElement("div",{style:{textAlign:"center",padding:"20px"}},"\u6682\u65e0\u70ed\u95e8"))))))}}]),t}(f.PureComponent);t.default=C},583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(3),o=(a=r)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var r={};if(t&&t.antLocale&&t.antLocale[n])r=t.antLocale[n];else{var s=a();r=s.default||s}var c=(0,o.default)({},r);e.locale&&(c=(0,o.default)({},c,e.locale),e.locale.lang&&(c.lang=(0,o.default)({},r.lang,e.locale.lang)));return c},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,n){"use strict";n(47),n(607)},607:function(e,t,n){},608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(3)),r=g(n(34)),o=g(n(5)),s=g(n(12)),c=g(n(6)),i=g(n(13)),l=g(n(15)),u=v(n(0)),h=v(n(2)),f=g(n(153)),p=g(n(583)),d=n(588),m=n(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var n=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,i.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,o=this.props,s=o.prefixCls,c=o.showCancelButton,i=o.disabled,h=o.placeholder,m=o.className,v=o.style,g=o.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(610)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,r.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,r.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),N=(0,l.default)(s+"-cancel",(e={},(0,r.default)(e,s+"-cancel-show",!!(c||w||b&&b.length>0)),(0,r.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:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:i,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},609:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},704:function(e,t,n){"use strict";n(606);var a=n(608),r=n.n(a),o=n(116),s=n(7),c=n(8),i=n(10),l=n(9),u=n(11),h=n(0),f=n.n(h),p=n(51),d=(n(705),function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(r)))).returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,r=e.value;r&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(o.a)(a),[r])))},n}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){return f.a.createElement("div",{className:"search-head"},f.a.createElement("div",{className:"left",onClick:this.returnPage},f.a.createElement("i",{className:"iconfont iconiconfront-68"})),f.a.createElement("div",{className:"center"},f.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b"})),f.a.createElement("div",{className:"right right-btn",onClick:this.search},f.a.createElement("div",{className:"submit-btn"},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(p.g)(d)},705:function(e,t,n){}}]);
//# sourceMappingURL=search.a10701e0.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1134:function(e,t,n){},1135:function(e,t,n){},1180:function(e,t,n){"use strict";n.r(t);var a=n(73),r=n.n(a),o=n(106),s=n(116),c=n(7),i=n(8),l=n(10),u=n(9),h=n(11),f=n(0),p=n.n(f),d=n(704),m=(n(1134),function(e){function t(){return Object(c.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return p.a.createElement("span",Object.assign({className:this.props.name},this.props),this.props.children)}}]),t}(f.PureComponent)),v=n(4),g=(n(1135),n(18)),y=n(63),C=function(e){function t(){var e,n;Object(c.a)(this,t);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(n=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(r)))).state={searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],hot_words:[],searchList:[],value:"",isLoading:!0},n.clearHistory=function(){localStorage.setItem("searchHistory",null),n.setState({searchHistory:[]})},n.handleChange=function(e){n.setState({value:e})},n.handleSearch=function(){n.state.value&&n.props.history.push("/search-result?word=".concat(encodeURIComponent(n.state.value)))},n.storeHistory=function(e){localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(s.a)(n.state.searchHistory),[e])))},n}return Object(h.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(o.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.c.get("".concat(API["search-api"],"/search_hot_word"));case 2:0===(t=e.sent).data.errno&&this.setState({hot_words:t.data.data.info.hot_words,isLoading:!1});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state.searchHistory;return p.a.createElement("div",{className:"search-page"},p.a.createElement(d.a,{searchHistory:this.state.searchHistory,value:this.state.value,handleChange:this.handleChange,handleSearch:this.handleSearch}),p.a.createElement(y.a,{isLoading:this.state.isLoading},p.a.createElement("div",{className:"search-main"},t.length>0&&p.a.createElement("div",{className:"search-land"},p.a.createElement("div",{className:"search-history"},p.a.createElement("span",null,"\u6700\u8fd1\u641c\u7d22"),p.a.createElement("i",{className:"iconfont iconiconfront-56",onClick:this.clearHistory})),p.a.createElement("div",{className:"search-tag"},t.map(function(e,t){return p.a.createElement(g.b,{key:t,to:"/search-result?word=".concat(encodeURIComponent(e))},p.a.createElement(m,{name:"tagLately"},e))}))),p.a.createElement("div",{className:"search-land search-hot"},p.a.createElement("label",{className:"search-history"},p.a.createElement("span",null,"\u70ed\u95e8\u641c\u7d22")),p.a.createElement("div",{className:"search-tag"},this.state.hot_words.length>0?this.state.hot_words.map(function(t,n){return p.a.createElement(g.b,{key:n,to:"/search-result?word=".concat(encodeURIComponent(t)),onClick:e.storeHistory.bind(e,t)},p.a.createElement(m,{name:"tagHot"},t))}):p.a.createElement("div",{style:{textAlign:"center",padding:"20px"}},"\u6682\u65e0\u70ed\u95e8"))))))}}]),t}(f.PureComponent);t.default=C},583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(3),o=(a=r)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var r={};if(t&&t.antLocale&&t.antLocale[n])r=t.antLocale[n];else{var s=a();r=s.default||s}var c=(0,o.default)({},r);e.locale&&(c=(0,o.default)({},c,e.locale),e.locale.lang&&(c.lang=(0,o.default)({},r.lang,e.locale.lang)));return c},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,n){"use strict";n(47),n(607)},607:function(e,t,n){},608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(3)),r=g(n(34)),o=g(n(5)),s=g(n(12)),c=g(n(6)),i=g(n(13)),l=g(n(15)),u=v(n(0)),h=v(n(2)),f=g(n(153)),p=g(n(583)),d=n(588),m=n(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var n=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,i.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,o=this.props,s=o.prefixCls,c=o.showCancelButton,i=o.disabled,h=o.placeholder,m=o.className,v=o.style,g=o.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(610)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,r.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,r.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),N=(0,l.default)(s+"-cancel",(e={},(0,r.default)(e,s+"-cancel-show",!!(c||w||b&&b.length>0)),(0,r.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:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:i,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},609:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},704:function(e,t,n){"use strict";n(606);var a=n(608),r=n.n(a),o=n(116),s=n(7),c=n(8),i=n(10),l=n(9),u=n(11),h=n(0),f=n.n(h),p=n(51),d=(n(705),function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(r)))).returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,r=e.value;r&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(o.a)(a),[r])))},n}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){return f.a.createElement("div",{className:"search-head"},f.a.createElement("div",{className:"left",onClick:this.returnPage},f.a.createElement("i",{className:"iconfont iconiconfront-68"})),f.a.createElement("div",{className:"center"},f.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b"})),f.a.createElement("div",{className:"right right-btn",onClick:this.search},f.a.createElement("div",{className:"submit-btn"},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(p.g)(d)},705:function(e,t,n){}}]);
//# sourceMappingURL=search.5e8dfb79.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["common/Tag/index.js","components/search/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","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","history","push","concat","encodeURIComponent","storeHistory","keyword","stringify","toConsumableArray","http","get","API","res","data","errno","info","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","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","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","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","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","Component","defaultProps","contextTypes","object","noop","SearchHead","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","refs","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"sPAEqBA,4LAEb,OACIC,EAAAC,EAAA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,UAAU,kBAAkB0C,QAASzC,KAAK+K,QAC3CM,EAAA1L,EAAAC,cAAA,OAAKG,UAAU,cAAf,yBAxCKK,kBAgDVmL,gBAAWX","file":"static/js/search.a10701e0.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`)\n if (res.data.errno === 0) {\n this.setState({\n hot_words: res.data.data.info.hot_words,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n this.state.value && this.props.history.push(`/search-result?word=${encodeURIComponent(this.state.value)}`)\n }\n\n storeHistory = keyword => {\n localStorage.setItem('searchHistory', JSON.stringify([...this.state.searchHistory, keyword]))\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'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, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n\n render() {\n return (\n <div className=\"search-head\">\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"/>\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className=\"submit-btn\">搜索\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["common/Tag/index.js","components/search/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","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","history","push","concat","encodeURIComponent","storeHistory","keyword","stringify","toConsumableArray","http","get","API","res","data","errno","info","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","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","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","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","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","Component","defaultProps","contextTypes","object","noop","SearchHead","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","refs","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"sPAEqBA,4LAEb,OACIC,EAAAC,EAAAC,cAAA,OAAAC,OAAAC,OAAA,CAAMC,UAAWC,KAAKC,MAAMC,MAAUF,KAAKC,OACtCD,KAAKC,MAAME,iBAJKC,mDCO3BC,6MAEFC,MAAQ,CACJC,cAAeC,KAAKC,MAAMC,aAAaC,QAAQ,mBAAqB,GACpEC,UAAW,GACXC,WAAY,GACZC,MAAO,GACPC,WAAW,KAafC,aAAe,WACXN,aAAaO,QAAQ,gBAAiB,MACtCC,EAAKC,SAAS,CACVZ,cAAe,QAIvBa,aAAe,SAAAN,GACXI,EAAKC,SAAS,CAACL,aAGnBO,aAAe,WACXH,EAAKZ,MAAMQ,OAASI,EAAKjB,MAAMqB,QAAQC,KAAnB,uBAAAC,OAA+CC,mBAAmBP,EAA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,WACT3J,EAAKjB,MAAMqB,QAAQwJ,IAAI,MAO3BC,OAAS,WACL7J,EAAK8J,eACL9J,EAAKjB,MAAMoB,kBAGf2J,aAAe,WAAM,IAAAC,EACiB/J,EAAKjB,MADtBiL,EAAAD,EACZ1K,qBADY,IAAA2K,EACI,GADJA,EACQpK,EADRmK,EACQnK,MACzBA,GAASJ,aAAaO,QAAQ,gBAAiBT,KAAKoB,UAAL,GAAAJ,OAAA3B,OAAAsL,EAAA,EAAAtL,CAAmBU,GAAnB,CAAkCO,0FAVjFd,KAAKoL,KAAKL,OAAOrE,yCAejB,OACI2E,EAAA1L,EAAAC,cAAA,OAAKG,UAAU,eAEXsL,EAAA1L,EAAAC,cAAA,OAAKG,UAAU,OAAO0C,QAASzC,KAAK6K,YAChCQ,EAAA1L,EAAAC,cAAA,KAAGG,UAAU,+BAGjBsL,EAAA1L,EAAAC,cAAA,OAAKG,UAAU,UACXsL,EAAA1L,EAAAC,cAAA0L,EAAA3L,EAAA,CACImB,MAAOd,KAAKC,MAAMa,MAClBiI,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJvD,OAAO,EACPD,SAAUzG,KAAKC,MAAMmB,aACrBsI,YAAY,8BAEpB2B,EAAA1L,EAAAC,cAAA,OAAKG,UAAU,kBAAkB0C,QAASzC,KAAK+K,QAC3CM,EAAA1L,EAAAC,cAAA,OAAKG,UAAU,cAAf,yBAxCKK,kBAgDVmL,gBAAWX","file":"static/js/search.5e8dfb79.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`)\n if (res.data.errno === 0) {\n this.setState({\n hot_words: res.data.data.info.hot_words,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n this.state.value && this.props.history.push(`/search-result?word=${encodeURIComponent(this.state.value)}`)\n }\n\n storeHistory = keyword => {\n localStorage.setItem('searchHistory', JSON.stringify([...this.state.searchHistory, keyword]))\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'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, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n\n render() {\n return (\n <div className=\"search-head\">\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"/>\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className=\"submit-btn\">搜索\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1161:function(e,a,t){"use strict";t.r(a);t(155);var n,c=t(75),s=t.n(c),r=(t(89),t(25)),i=t.n(r),o=(t(154),t(35)),l=t.n(o),m=(t(43),t(14)),u=t.n(m),d=t(23),p=t(7),f=t(8),E=t(10),g=t(9),_=t(11),N=t(0),v=t.n(N),h=(t(889),t(30)),b=t(4),w=t(20),I=t(18),y=(t(62),Object(w.b)()(n=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(E.a)(this,Object(g.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,c=e.data;if(b.a.isWeixin){var s=t.state.share;t.setState({share:!s});var r={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.origin+"/detail?id=".concat(c.course_id),imgUrl:c.image_name};b.c.post("".concat(API["base-api"],"/m/sale/signature")).then(function(e){var a=e.data,t=a.nonce_str,n=a.signature,c=a.timestamp;wx.config({debug:!1,appId:"wx23dac6775ac82877",timestamp:c,nonceStr:t,signature:n,jsApiList:["hideMenuItems","showMenuItems","updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","onMenuShareAppMessage"]})}),wx.ready(function(){wx.hideAllNonBaseMenuItem(),wx.showMenuItems({menuList:["menuItem:share:appMessage","menuItem:share:timeline"]}),wx.updateAppMessageShareData(Object(d.a)({},r,{success:function(){}})),wx.updateTimelineShareData(Object(d.a)({},r,{success:function(){}}))})}else u.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){var a=t.props;a.dispatch;return a.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,userInfo:{},number:0},t}return Object(_.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;Promise.all([b.c.get("".concat(API["base-api"],"/pdd/goupon_pay_page/").concat(Object(b.b)("id"))),b.c.get("".concat(API.home,"/m/user_info"))]).then(function(a){console.log(a);var t=a[0],n=a[1];if(0===t.data.errno)if(200===n.data.code){if(e.setState({data:t.data.data.course_info,pdd_price:t.data.data.pdd_price,groupon_member:t.data.data.groupon_member,is_success:t.data.data.is_success,person_num:t.data.data.person_num,course_list:t.data.data.course_list,userInfo:n,number:t.data.data.number,countdown:""}),0===t.data.data.is_success){var c=1e3*t.data.data.end_time,s=0,r=0,i=0;setInterval(function(){c-=1e3,s="".concat(parseInt(c/36e5)).padStart(2,0),r="".concat(parseInt((c-36e5*s)/6e4)).padStart(2,0),i="".concat(parseInt((c-36e5*s-6e4*r)/1e3)).padStart(2,0),e.setState({countdown:"".concat(s,":").concat(r,":").concat(i)})},1e3)}}else u.a.info(t.data.msg,2);else u.a.info(t.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),m=(a.person_num,a.groupon_member,a.course_list),u=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},c),v.a.createElement("p",{className:"contact text-overflow-2"},s),v.a.createElement("div",{className:"des"},v.a.createElement("p",{className:"course-price"},v.a.createElement("span",{className:"new"},"\xa5",i),v.a.createElement("span",{className:"old"},"\xa5",r))));return v.a.createElement("div",{className:"to-group-box"},v.a.createElement(h.e,{title:"\u62fc\u56e2",cart:!1,toHref:function(){return e.toCourseDetail(n)}}),!o&&v.a.createElement(h.i,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),v.a.createElement(C,{data:this.state,invitedFriends:this.invitedFriends}),v.a.createElement(l.a,null),v.a.createElement("div",{className:"group-course"},v.a.createElement("div",{className:"top-title"},v.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),v.a.createElement(I.b,{to:"/preferential",className:"more"},"\u66f4\u591a",v.a.createElement("i",{className:"iconfont iconiconfront-70"}))),m&&m.length>0&&m[0].course&&m[0].course.length>0&&m[0].course.slice(0,4).map(function(a){var t=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),v.a.createElement("div",{className:"des"},v.a.createElement("p",{className:"course-price"},v.a.createElement("span",{className:"new"},"\xa5",a.price1),v.a.createElement("span",{className:"old"},"\xa5",a.price0))));return v.a.createElement(h.i,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n);function C(e){for(var a,t,n,c,r=e.data,o=r.pdd_price,l=r.data,m=r.groupon_member,u=r.is_success,d=r.person_num,p=r.userInfo,f=r.share,E=r.number,g=r.countdown,_=[],N=E;0!=N;)_.push(N),N--;if(c=v.a.createElement("div",{className:"group-user-list"},v.a.createElement(i.a,{justify:"center",className:"imgList"},m.map(function(e){return v.a.createElement("div",{className:"imgContainer",key:Math.random()},v.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?v.a.createElement("div",{className:"leaderFlag"},v.a.createElement("span",null,"\u56e2\u957f")):null)}),_.map(function(e){return v.a.createElement("div",{className:"imgContainer",key:Math.random()},v.a.createElement("div",{className:"imgname"},v.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),m&&m.length>0){var h="";m.map(function(e){1===e.user_type&&(h="".concat(e.uid))}),h===p.data.data.uid?(a=v.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(o,"\u5143")),t=v.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",g," \u540e\u7ed3\u675f"),n=v.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):(a=v.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(o,"\u5143")),t=v.a.createElement(I.b,{to:"/order?id=".concat(l.course_id),className:"group-btn"},"\u4e00\u952e\u53c2\u56e2"))}return 1===u&&(a=v.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=v.a.createElement(I.b,{to:"/play",className:"tostudy"},"\u53bb\u5b66\u4e60")),v.a.createElement("div",{className:"gorup-content"},f?v.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},v.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),v.a.createElement("div",{className:"tipArrow"},v.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,v.a.createElement(s.a,null,c),v.a.createElement(s.a,null,t),n,!u&&v.a.createElement("div",{className:"group-dec"},v.a.createElement("span",null,v.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),v.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(d,"\u4eba\u6210\u56e2"))))}a.default=y},889:function(e,a,t){}}]);
//# sourceMappingURL=togroup.a76a3571.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1161:function(e,a,t){"use strict";t.r(a);t(155);var n,c=t(75),s=t.n(c),r=(t(89),t(25)),i=t.n(r),o=(t(154),t(35)),l=t.n(o),m=(t(43),t(14)),u=t.n(m),d=t(22),p=t(7),f=t(8),E=t(10),g=t(9),_=t(11),N=t(0),v=t.n(N),h=(t(889),t(30)),b=t(4),w=t(20),I=t(18),y=(t(62),Object(w.b)()(n=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(E.a)(this,Object(g.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,c=e.data;if(b.a.isWeixin){var s=t.state.share;t.setState({share:!s});var r={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.origin+"/detail?id=".concat(c.course_id),imgUrl:c.image_name};b.c.post("".concat(API["base-api"],"/m/sale/signature")).then(function(e){var a=e.data,t=a.nonce_str,n=a.signature,c=a.timestamp;wx.config({debug:!1,appId:"wx23dac6775ac82877",timestamp:c,nonceStr:t,signature:n,jsApiList:["hideMenuItems","showMenuItems","updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","onMenuShareAppMessage"]})}),wx.ready(function(){wx.hideAllNonBaseMenuItem(),wx.showMenuItems({menuList:["menuItem:share:appMessage","menuItem:share:timeline"]}),wx.updateAppMessageShareData(Object(d.a)({},r,{success:function(){}})),wx.updateTimelineShareData(Object(d.a)({},r,{success:function(){}}))})}else u.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){var a=t.props;a.dispatch;return a.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,userInfo:{},number:0},t}return Object(_.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;Promise.all([b.c.get("".concat(API["base-api"],"/pdd/goupon_pay_page/").concat(Object(b.b)("id"))),b.c.get("".concat(API.home,"/m/user_info"))]).then(function(a){console.log(a);var t=a[0],n=a[1];if(0===t.data.errno)if(200===n.data.code){if(e.setState({data:t.data.data.course_info,pdd_price:t.data.data.pdd_price,groupon_member:t.data.data.groupon_member,is_success:t.data.data.is_success,person_num:t.data.data.person_num,course_list:t.data.data.course_list,userInfo:n,number:t.data.data.number,countdown:""}),0===t.data.data.is_success){var c=1e3*t.data.data.end_time,s=0,r=0,i=0;setInterval(function(){c-=1e3,s="".concat(parseInt(c/36e5)).padStart(2,0),r="".concat(parseInt((c-36e5*s)/6e4)).padStart(2,0),i="".concat(parseInt((c-36e5*s-6e4*r)/1e3)).padStart(2,0),e.setState({countdown:"".concat(s,":").concat(r,":").concat(i)})},1e3)}}else u.a.info(t.data.msg,2);else u.a.info(t.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),m=(a.person_num,a.groupon_member,a.course_list),u=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},c),v.a.createElement("p",{className:"contact text-overflow-2"},s),v.a.createElement("div",{className:"des"},v.a.createElement("p",{className:"course-price"},v.a.createElement("span",{className:"new"},"\xa5",i),v.a.createElement("span",{className:"old"},"\xa5",r))));return v.a.createElement("div",{className:"to-group-box"},v.a.createElement(h.e,{title:"\u62fc\u56e2",cart:!1,toHref:function(){return e.toCourseDetail(n)}}),!o&&v.a.createElement(h.i,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),v.a.createElement(C,{data:this.state,invitedFriends:this.invitedFriends}),v.a.createElement(l.a,null),v.a.createElement("div",{className:"group-course"},v.a.createElement("div",{className:"top-title"},v.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),v.a.createElement(I.b,{to:"/preferential",className:"more"},"\u66f4\u591a",v.a.createElement("i",{className:"iconfont iconiconfront-70"}))),m&&m.length>0&&m[0].course&&m[0].course.length>0&&m[0].course.slice(0,4).map(function(a){var t=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),v.a.createElement("div",{className:"des"},v.a.createElement("p",{className:"course-price"},v.a.createElement("span",{className:"new"},"\xa5",a.price1),v.a.createElement("span",{className:"old"},"\xa5",a.price0))));return v.a.createElement(h.i,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n);function C(e){for(var a,t,n,c,r=e.data,o=r.pdd_price,l=r.data,m=r.groupon_member,u=r.is_success,d=r.person_num,p=r.userInfo,f=r.share,E=r.number,g=r.countdown,_=[],N=E;0!=N;)_.push(N),N--;if(c=v.a.createElement("div",{className:"group-user-list"},v.a.createElement(i.a,{justify:"center",className:"imgList"},m.map(function(e){return v.a.createElement("div",{className:"imgContainer",key:Math.random()},v.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?v.a.createElement("div",{className:"leaderFlag"},v.a.createElement("span",null,"\u56e2\u957f")):null)}),_.map(function(e){return v.a.createElement("div",{className:"imgContainer",key:Math.random()},v.a.createElement("div",{className:"imgname"},v.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),m&&m.length>0){var h="";m.map(function(e){1===e.user_type&&(h="".concat(e.uid))}),h===p.data.data.uid?(a=v.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(o,"\u5143")),t=v.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",g," \u540e\u7ed3\u675f"),n=v.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):(a=v.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(o,"\u5143")),t=v.a.createElement(I.b,{to:"/order?id=".concat(l.course_id),className:"group-btn"},"\u4e00\u952e\u53c2\u56e2"))}return 1===u&&(a=v.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=v.a.createElement(I.b,{to:"/play",className:"tostudy"},"\u53bb\u5b66\u4e60")),v.a.createElement("div",{className:"gorup-content"},f?v.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},v.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),v.a.createElement("div",{className:"tipArrow"},v.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,v.a.createElement(s.a,null,c),v.a.createElement(s.a,null,t),n,!u&&v.a.createElement("div",{className:"group-dec"},v.a.createElement("span",null,v.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),v.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(d,"\u4eba\u6210\u56e2"))))}a.default=y},889:function(e,a,t){}}]);
//# sourceMappingURL=togroup.07524052.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_9__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12__","call","invitedFriends","_this$state","state","pdd_price","number","data","browser","isWeixin","share","setState","shareData","title","concat","course_title","desc","link","location","origin","course_id","imgUrl","image_name","http","post","API","then","res","_res$data","nonce_str","signature","timestamp","wx","config","debug","appId","nonceStr","jsApiList","ready","hideAllNonBaseMenuItem","showMenuItems","menuList","updateAppMessageShareData","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_8__","success","updateTimelineShareData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","a","info","toCourseDetail","id","_this$props","dispatch","history","push","href","groupon_member","person_num","is_success","userInfo","_this2","Promise","all","get","getParam","home","resultList","console","log","errno","code","course_info","course_list","countdown","date","end_time","hours","minutes","seconds","setInterval","parseInt","padStart","msg","_this3","_this$state2","_this$state2$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_16__","cart","toHref","img","toDetail","GorupContent","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_19__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kTAWMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAaVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKS,MAAhCC,EADYF,EACZE,UAAWC,EADCH,EACDG,OAAQC,EADPJ,EACOI,KAC1B,GAAGC,IAAQC,SAAU,CACjB,IAAIC,EAAQf,EAAKS,MAAMM,MACvBf,EAAKgB,SAAS,CACVD,OAAQA,IAEZ,IAAIE,EAAY,CACZC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsCP,EAAKQ,aAA3C,UACLC,KAAMT,EAAKQ,aAEXE,KAAMC,SAASC,OAAT,cAAAL,OAAgCP,EAAKa,WAC3CC,OA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B,uBAGNF,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,iBAEPlF,EACIgF,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,kBAAkBC,QAASnG,EAAMQ,gBAC5CwF,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,cAAf,eAAA9E,OAEUR,EAFV,uFAIAoF,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,YACXF,EAAA3C,EAAA4C,cAAA,KAAGC,UAAU,0BAGrB,KAGPoB,EACDtB,EAAA3C,EAAA4C,cAAAoC,EAAAhF,EAAA,KACKoE,GAELzB,EAAA3C,EAAA4C,cAAAoC,EAAAhF,EAAA,KACKkE,GAEJC,GAEIxD,GACDgC,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,aACXF,EAAA3C,EAAA4C,cAAA,YACID,EAAA3C,EAAA4C,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAA3C,EAAA4C,cAAA,QAAMC,UAAU,UAAhB,eAAA9E,OAA+B2C,EAA/B,yBAOLjE","file":"static/js/togroup.a76a3571.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\n\nimport { getParam, http, browser} from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast } from 'antd-mobile'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\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 userInfo: {},\n number: 0, // 差几人成团\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 let shareData = {\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title, // 分享描述\n // 直接进入课程详情页,isIn: 1\n link: location.origin + `/detail?id=${data.course_id}`, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致\n imgUrl: data.image_name, // 分享图标\n };\n http.post(`${API['base-api']}/m/sale/signature`).then(res => {\n const {nonce_str, signature, timestamp} = res.data;\n wx.config({\n \"debug\": false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。\n \"appId\": 'wx23dac6775ac82877', // 必填,公众号的唯一标识\n \"timestamp\": timestamp, // 必填,生成签名的时间戳\n \"nonceStr\": nonce_str, // 必填,生成签名的随机串\n \"signature\": signature, // 必填,签名\n jsApiList: [\n 'hideMenuItems',\n 'showMenuItems',\n 'updateAppMessageShareData',\n 'updateTimelineShareData',\n 'onMenuShareWeibo',\n 'onMenuShareAppMessage',\n ], // 必填,需要使用的JS接口列表\n });\n });\n wx.ready(function () { //需在用户可能点击分享按钮前就先调用\n wx.hideAllNonBaseMenuItem();\n wx.showMenuItems({\n menuList: ['menuItem:share:appMessage' , 'menuItem:share:timeline'] // 要显示的菜单项,所有menu项见附录3\n });\n wx.updateAppMessageShareData({ \n ...shareData,\n success: function () {\n // 设置成功\n }\n })\n wx.updateTimelineShareData({\n ...shareData,\n success: function () {\n // 设置成功\n }\n })\n });\n }else{\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n Promise.all([http.get(`${API['base-api']}/pdd/goupon_pay_page/${getParam('id')}`), http.get(`${API.home}/m/user_info`)]).then(resultList => {\n console.log(resultList);\n let res = resultList[0],\n userInfo = resultList[1];\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n if(userInfo.data.code !== 200) {\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 userInfo,\n number: res.data.data.number,\n countdown: '',\n });\n\n if(res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600000 - minutes * 60000 ) / 1000)}`.padStart(2, 0);\n this.setState({\n countdown: `${hours}:${minutes}:${seconds}`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\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={() => this.toCourseDetail(course_id)}></HeaderBar>\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 data={this.state} invitedFriends={this.invitedFriends} />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList \n img={item.image_name} \n key={item.uid} \n id={item.course_id} \n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const { pdd_price, data, groupon_member, is_success, person_num, userInfo, share, number, countdown } = props.data;\n let ary=[],num = number;\n while(num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt='' />\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let uid = '';\n groupon_member.map(item=>{\n if(item.user_type === 1) {\n uid = `${item.uid}`;\n }\n })\n\n if(uid === userInfo.data.data.uid) {\n tip = <p className='tip'>{`拼团省¥${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 tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>\n btn = <Link to={`/order?id=${data.course_id}`} className='group-btn'>一键参团</Link>\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/play`} 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","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_9__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12__","call","invitedFriends","_this$state","state","pdd_price","number","data","browser","isWeixin","share","setState","shareData","title","concat","course_title","desc","link","location","origin","course_id","imgUrl","image_name","http","post","API","then","res","_res$data","nonce_str","signature","timestamp","wx","config","debug","appId","nonceStr","jsApiList","ready","hideAllNonBaseMenuItem","showMenuItems","menuList","updateAppMessageShareData","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_8__","success","updateTimelineShareData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","a","info","toCourseDetail","id","_this$props","dispatch","history","push","href","groupon_member","person_num","is_success","userInfo","_this2","Promise","all","get","getParam","home","resultList","console","log","errno","code","course_info","course_list","countdown","date","end_time","hours","minutes","seconds","setInterval","parseInt","padStart","msg","_this3","_this$state2","_this$state2$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_16__","cart","toHref","img","toDetail","GorupContent","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_19__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kTAWMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAaVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKS,MAAhCC,EADYF,EACZE,UAAWC,EADCH,EACDG,OAAQC,EADPJ,EACOI,KAC1B,GAAGC,IAAQC,SAAU,CACjB,IAAIC,EAAQf,EAAKS,MAAMM,MACvBf,EAAKgB,SAAS,CACVD,OAAQA,IAEZ,IAAIE,EAAY,CACZC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsCP,EAAKQ,aAA3C,UACLC,KAAMT,EAAKQ,aAEXE,KAAMC,SAASC,OAAT,cAAAL,OAAgCP,EAAKa,WAC3CC,OAAQd,EAAKe,YAEjBC,IAAKC,KAAL,GAAAV,OAAaW,IAAI,YAAjB,sBAAiDC,KAAK,SAAAC,GAAO,IAAAC,EACfD,EAAIpB,KAAv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EAAMQ,gBAC5CwF,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,cAAf,eAAA9E,OAEUR,EAFV,uFAIAoF,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,YACXF,EAAA3C,EAAA4C,cAAA,KAAGC,UAAU,0BAGrB,KAGPoB,EACDtB,EAAA3C,EAAA4C,cAAAoC,EAAAhF,EAAA,KACKoE,GAELzB,EAAA3C,EAAA4C,cAAAoC,EAAAhF,EAAA,KACKkE,GAEJC,GAEIxD,GACDgC,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,aACXF,EAAA3C,EAAA4C,cAAA,YACID,EAAA3C,EAAA4C,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAA3C,EAAA4C,cAAA,QAAMC,UAAU,UAAhB,eAAA9E,OAA+B2C,EAA/B,yBAOLjE","file":"static/js/togroup.07524052.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\n\nimport { getParam, http, browser} from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast } from 'antd-mobile'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\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 userInfo: {},\n number: 0, // 差几人成团\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 let shareData = {\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title, // 分享描述\n // 直接进入课程详情页,isIn: 1\n link: location.origin + `/detail?id=${data.course_id}`, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致\n imgUrl: data.image_name, // 分享图标\n };\n http.post(`${API['base-api']}/m/sale/signature`).then(res => {\n const {nonce_str, signature, timestamp} = res.data;\n wx.config({\n \"debug\": false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。\n \"appId\": 'wx23dac6775ac82877', // 必填,公众号的唯一标识\n \"timestamp\": timestamp, // 必填,生成签名的时间戳\n \"nonceStr\": nonce_str, // 必填,生成签名的随机串\n \"signature\": signature, // 必填,签名\n jsApiList: [\n 'hideMenuItems',\n 'showMenuItems',\n 'updateAppMessageShareData',\n 'updateTimelineShareData',\n 'onMenuShareWeibo',\n 'onMenuShareAppMessage',\n ], // 必填,需要使用的JS接口列表\n });\n });\n wx.ready(function () { //需在用户可能点击分享按钮前就先调用\n wx.hideAllNonBaseMenuItem();\n wx.showMenuItems({\n menuList: ['menuItem:share:appMessage' , 'menuItem:share:timeline'] // 要显示的菜单项,所有menu项见附录3\n });\n wx.updateAppMessageShareData({ \n ...shareData,\n success: function () {\n // 设置成功\n }\n })\n wx.updateTimelineShareData({\n ...shareData,\n success: function () {\n // 设置成功\n }\n })\n });\n }else{\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n Promise.all([http.get(`${API['base-api']}/pdd/goupon_pay_page/${getParam('id')}`), http.get(`${API.home}/m/user_info`)]).then(resultList => {\n console.log(resultList);\n let res = resultList[0],\n userInfo = resultList[1];\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n if(userInfo.data.code !== 200) {\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 userInfo,\n number: res.data.data.number,\n countdown: '',\n });\n\n if(res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600000 - minutes * 60000 ) / 1000)}`.padStart(2, 0);\n this.setState({\n countdown: `${hours}:${minutes}:${seconds}`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\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={() => this.toCourseDetail(course_id)}></HeaderBar>\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 data={this.state} invitedFriends={this.invitedFriends} />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList \n img={item.image_name} \n key={item.uid} \n id={item.course_id} \n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const { pdd_price, data, groupon_member, is_success, person_num, userInfo, share, number, countdown } = props.data;\n let ary=[],num = number;\n while(num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt='' />\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let uid = '';\n groupon_member.map(item=>{\n if(item.user_type === 1) {\n uid = `${item.uid}`;\n }\n })\n\n if(uid === userInfo.data.data.uid) {\n tip = <p className='tip'>{`拼团省¥${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 tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>\n btn = <Link to={`/order?id=${data.course_id}`} className='group-btn'>一键参团</Link>\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/play`} 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/video/recommendation/index.js","components/video/video-catalog/index.js","components/video/datum-catalog/index.js","components/video/index.js","common/v-list-base/index.js","components/detail/single/index.js"],"names":["Bottom","_ref","item","react_default","a","createElement","className","price1","price0","Recommendation","connect","state","num","list","courseId","getRecommendation","http","get","concat","API","home","_this","props","vCourseId","then","res","data","code","setState","Array","isArray","toast_default","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","this","_this2","length","map","Info","course_title","simpledescription","recommendation_Bottom","v_list_base","key","course_id","img","image_name","handleClick","PureComponent","VideoCatalog","i","selectVideo","videoCatalog","index","classnames","active","activeIndex","onClick","bind","name","duration","video_auth","practice","qid","react_router_dom","to","pathname","search","title","is_tested","Component","DatumCatalog","datum","accordion_default","Panel","header","dir_name","files","file_id","file_name","defaultProps","alert","modal_default","ProgressShareModal","isShow","learn_day_count","parseFloat","action_power","style","display","href","url","closeShareModal","Video","previousPlaybackRate","currentPlaybackRate","reconnect","videoList","currentVideoSrc","isAuth","course","salePrice","isLoading","isShowShareModal","shareData","singleBox","singMess","tobuy","getParam","errno","simple","toSingleset","boxHide","val","setupRecord","recordSocket","io","record","transports","forceNew","on","time","player","currentTime","recordTimer","setInterval","sendRecord","emit","recordUserInfo","uid","user","courseID","video_id","video_time","parseInt","plat","setupWS","ws","WebSocket","addEventListener","setTimeout","clearInterval","timer","e","JSON","parse","sendMessage","message","send","stringify","getShareProgressInfo","countSchedule","mtype","token","platform","sendWatchTime","sec","rate","_this$state","v_course_id","setupTimer","count","watchSec","paused","initializePlayer","window","HELP_IMPROVE_VIDEOJS","videojs","video","controls","preload","bigPlayButton","textTrackDisplay","posterImage","errorDisplay","playbackRates","controlBar","pictureInPictureToggle","playbackRate","sendLastRecord","post","hasAuth","setPlayerSrc","playVideo","getVideoList","is_aist","lessonAvailable","Promise","resolve","playWithAuth","getCoursePrice","text","onPress","src","type","play","_this$state2","videoIndex","findIndex","last_video_id","_this$state3","_this$state4","location","protocol","jsCookie","getDatumCatalog","replace","slice","dispose","close","_this3","match","_this$state5","HeaderBar","arrow","common","ref","el","activeClassName","single","videoId","course_tile","react_router","exact","from","path","render","video_video_catalog","Object","assign","video_datum_catalog","video_recommendation","VList","react__WEBPACK_IMPORTED_MODULE_0___default","status","alt","tab","Single","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","check","payType","toBuy","orderId","order_id","alipayPay","weixinPay","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","browser","isWeixin","encodeURIComponent","toLowerCase","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","payCallback","isweixinPay","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","weixin_code","undefined","intervalPayStatus","nowPrice","now_price","laterPrice","three_day_later_price","document","attachEvent","_this4","toBuyAll","zerobuyReceive","success","colse","zerogroupBuy","getOrderId","groupOrderId","getOrderStatus","getTime","pdd_order_id","endTime","end_time","toGroup","hour","min","_this5","date","now","Date","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","react__WEBPACK_IMPORTED_MODULE_8___default","class_price","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","vcourseId","onclick","avatar","String","padStart","compose","withRouter"],"mappings":"wRASMA,EAAS,SAAAC,GAAY,IAAVC,EAAUD,EAAVC,KACb,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,SAAhB,OAA0BJ,EAAKK,QAC/BJ,EAAAC,EAAAC,cAAA,QAAMC,UAAU,eAAhB,OAAgCJ,EAAKM,UA6ElCC,EAxEdC,2NAEGC,MAAQ,CACJC,IAAK,GACLC,KAAM,GACNC,SAAU,QAOdC,kBAAoB,WAChBC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,6BAAAF,OAAgDG,EAAKC,MAAMC,UAA3D,SAAAL,OAA4EG,EAAKV,MAAMC,MAClFY,KAAK,SAAAC,GACF,IAAMC,EAAOD,EAAIC,KACA,MAAdA,EAAKC,KAEJN,EAAKO,SAAS,CACVf,KAAMgB,MAAMC,QAAQJ,EAAKA,MAAQA,EAAKA,KAAO,KAIjDK,EAAA3B,EAAM4B,KAAKN,EAAKO,UAKhCC,eAAiB,SAACC,GAAO,IAAAC,EACSf,EAAKC,MADdc,EACbC,SADaD,EACHE,QAENC,KAAR,cAAArB,OAA2BiB,wFAtB/BK,KAAKzB,qDA0BA,IAAA0B,EAAAD,KACL,OACIA,KAAK7B,MAAME,KAAK6B,OAEhBvC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,kBACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,SAAhB,4BACAH,EAAAC,EAAAC,cAAA,UAEQmC,KAAK7B,MAAME,KAAK8B,IAAI,SAAAzC,GAChB,IAAM0C,EACFzC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,QACXH,EAA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KlB,MAAMI,KAAKgH,UAAYpI,UAAU,kBAAnG,uBAIkB,IAAtBkC,KAAK7B,MAAMqO,QACXoE,EAAAhT,EAAAC,cAAA,OAAKC,UAAU,iBACX8S,EAAAhT,EAAAC,cAAA,OAAKC,UAAU,UACX8S,EAAAhT,EAAAC,cAAA,KAAGC,UAAU,qCACb8S,EAAAhT,EAAAC,cAAA,yCAEJ+S,EAAAhT,EAAAC,cAAA,OAAKC,UAAU,aACX8S,EAAAhT,EAAAC,cAAA,OAAKkM,IAAK/J,KAAKlB,MAAMkH,KAAK9G,KAAK+R,OAAQxE,IAAI,KAC3CmE,EAAAhT,EAAAC,cAAA,OACIkM,IAAI,qFACJ0C,IAAI,KACRmE,EAAAhT,EAAAC,cAAA,OACIkM,IAAI,qFACJ0C,IAAI,MAGZmE,EAAAhT,EAAAC,cAAA,OAAKC,UAAU,mBAAmByD,QAASvB,KAAK+P,SAAhD,eACOmB,OAAOlR,KAAK7B,MAAM6R,MAAMmB,SAAS,EAAG,GAD3C,SACgDD,OAAOlR,KAAK7B,MAAM8R,KAAKkB,SAAS,EAAG,GADnF,SACwFD,OAAOlR,KAAK7B,MAAMuJ,KAAKyJ,SAAS,EAAG,GAD3H,yCAMRP,EAAAhT,EAAAC,cAAA,KAAG0D,QAASvB,KAAKsP,MAAOxR,UAAW,4CA5ZtCsE,aAsaNgP,gBACXlT,YACI,SAAAC,GAAK,MAAK,CAAC6H,KAAM7H,EAAM6H,OACvB,MAEJqL,IALWD,CAMbzE","file":"static/js/video.95c64771.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../../detail/actions';\nimport './recommendation.scss'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport VList from '@/common/v-list-base';\n\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass Recommendation extends PureComponent {\n state = {\n num: 10,\n list: [],\n courseId: null\n }\n\n componentDidMount() {\n this.getRecommendation()\n }\n\n getRecommendation = () => {\n http.get(`${API.home}/m/play/recommend_course/${this.props.vCourseId}?num=${this.state.num}`)\n .then(res => {\n const data = res.data\n if(data.code === 200){\n\n this.setState({\n list: Array.isArray(data.data) ? data.data : []\n })\n\n }else {\n Toast.info(data.msg)\n }\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 return (\n this.state.list.length\n ?\n <div className='recommendation'>\n <div className={'title'}>相关推荐</div>\n <ul>\n {\n this.state.list.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title text-overflow-1'>{item.course_title}</p>\n <p className='des text-overflow-2'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n\n return (\n <VList\n key={item.course_id}\n img={item.image_name}\n handleClick={this.toCourseDetail}\n info={Info}\n id={item.course_id}\n />\n )\n })\n }\n </ul>\n </div>\n : null\n );\n }\n}\n\nexport default Recommendation;","import React, { Component } from 'react'\nimport './video-catalog.scss'\nimport { Link } from \"react-router-dom\";\nimport classnames from 'classnames'\n\n\nclass VideoCatalog extends Component {\n\n handleClick = (i) => {\n this.props.selectVideo(i)\n }\n\n render() {\n return (\n <div className='video-catalog'>\n <ul>\n {\n this.props.videoCatalog.map((item, index) => {\n return (\n <li key={item.id}\n className={classnames({active: this.props.activeIndex === index})}\n >\n <div className=\"video-title\" onClick={this.handleClick.bind(this, index)}>\n <span className=\"title\">{item.name}</span>\n <span className='duration'>{item.duration}</span>\n <i className={classnames(`iconfont`,\n [item.video_auth === 0\n ? 'iconiconfront-74'\n : 'iconplay_hovericon'],\n )}/>\n </div>\n {\n (item.practice && item.practice.qid)\n ? <Link to={{\n pathname: '/campTest',\n search: `?keshi_id=${item.id}&qid=${item.practice.qid}`\n }}>\n <div className=\"exercise\">\n 课后练习:{item.practice.title}\n <i className={classnames('iconfont',!item.video_auth ? 'iconiconfront-74' : item.practice.is_tested ? 'iconiconfront-3' : '')}/>\n </div>\n </Link>\n : null\n }\n </li>\n )\n })\n }\n </ul>\n </div>\n );\n }\n}\n\nexport default VideoCatalog;","import React, { Component } from 'react';\nimport './datum-catalog.scss'\nimport { Accordion } from \"antd-mobile\";\n\n\nclass DatumCatalog extends Component {\n\n static defaultProps = {\n datum: [{\n dir_name: '',\n files: [{\n file_name: '',\n file_id: 0\n }]\n }]\n }\n\n render() {\n const {datum} = this.props\n return (\n <div className='datum-catalog'>\n <p className='prompt'>课程资料请到PC端播放页下载</p>\n <Accordion>\n {\n datum && datum.length && datum.map((item, index) => {\n return (\n <Accordion.Panel header={item.dir_name} key={index}>\n {\n item.files.map(item => {\n return (\n <div key={item.file_id} className='file-name'>\n {item.file_name}\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n </div>\n );\n }\n}\n\nexport default DatumCatalog;","import React, {Component} from 'react'\nimport HeaderBar from '@/common/HeaderBar'\nimport './video.scss'\nimport {NavLink, Route, Redirect, Switch, Link} from 'react-router-dom'\nimport {http, getParam} from '@/utils'\nimport Recommendation from './recommendation'\nimport VideoCatalog from './video-catalog'\nimport DatumCatalog from './datum-catalog'\nimport {Toast} from 'antd-mobile'\nimport videojs from 'video.js'\nimport 'video.js/dist/video-js.min.css'\nimport {Modal} from \"antd-mobile\"\nimport {Loading} from '@/common'\nimport {connect} from \"react-redux\"\nimport jsCookie from 'js-cookie'\nimport io from 'socket.io-client'\nimport Single from \"@/components/detail/single\";\n\nlet alert = Modal.alert\n\nfunction ProgressShareModal(props) {\n return (\n props.isShow &&\n <div className='progress-share-modal-wrapper'>\n <div className=\"progress-share-modal\">\n <div className=\"title\">每日打卡</div>\n <ul className=\"progress-container\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"number\"><span className='num'>{props.data.learn_day_count}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"number\"><span className='num'>{parseFloat(props.data.action_power)}</span>%\n </div>\n </li>\n </ul>\n <div className=\"share-container\">\n <div className=\"title\">分享到</div>\n <ul>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconweixinzhifu'/></div>\n <div className='text'>微信好友</div>\n </a>\n </li>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconpengyouquaniconx'/></div>\n <div className='text'>朋友圈</div>\n </a>\n </li>\n </ul>\n </div>\n <i className=\"iconfont iconiconfront-2 close\" onClick={props.closeShareModal}/>\n </div>\n </div>\n )\n}\n\n\nclass Video extends Component {\n\n video //video element\n player //video player instance\n\n courseID\n\n ws //websocket instance\n timer\n token\n count\n watchSec\n previousPlaybackRate = 1\n currentPlaybackRate = 1\n reconnect = true\n\n recordSocket\n recordTimer\n\n\n state = {\n title: '',\n courseId: null,\n videoList: [],\n datum: [],\n currentVideoSrc: '',\n activeIndex: 0,\n isAuth: true,\n course: null,\n salePrice: null,\n vCourseId: null,\n isLoading: true,\n isShowShareModal: false,\n shareData: {},\n singleBox: false,\n singMess: '',\n }\n\n\n componentDidMount() {\n const location = window.location;\n if (location.protocol === 'https:') {\n location.replace('http' + location.href.slice(5))\n return\n }\n\n this.courseID = getParam('id')\n if (!this.courseID) {\n this.props.history.replace('/')\n return\n }\n this.setState({\n courseId: this.courseID\n })\n this.token = jsCookie.get('token')\n this.getVideoList()\n this.getDatumCatalog()\n this.setupRecord()\n }\n\n // 直接购买\n tobuy = () => {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${getParam('id')}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${getParam('id')}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 购买单集\n toSingleset = (item) => {\n this.setState({\n singleBox: true,\n singMess: item\n })\n }\n\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({singleBox: val})\n }\n\n\n setupRecord = () => {\n this.recordSocket = io(API.record, {\n transports: ['websocket'],\n forceNew: true\n })\n // this.recordSocket = io(API.record)\n this.recordSocket.on('seek', time => {\n this.player.currentTime(time)\n })\n\n this.recordTimer = setInterval(() => {\n this.sendRecord()\n }, 5000)\n }\n\n sendRecord = () => {\n if (this.recordSocket && this.player) {\n this.recordSocket.emit('addRecord', this.recordUserInfo())\n }\n }\n\n recordUserInfo = () => {\n let {uid} = this.props.user.data\n return {\n uid,\n course_id: this.courseID,\n video_id: this.state.videoList[this.state.activeIndex]['id'],\n video_time: parseInt(this.player.currentTime()),\n plat: 5\n }\n }\n\n setupWS = () => {\n this.ws = new WebSocket(API[\"process-api\"]);\n this.ws.addEventListener('error', () => {\n this.ws = null\n /*setTimeout(() => {\n this.setupWS();\n }, 1000)*/\n })\n this.ws.addEventListener('close', () => {\n if (this.reconnect) {\n this.ws = null\n setTimeout(() => {\n this.setupWS();\n }, 1000)\n }\n clearInterval(this.timer)\n })\n this.ws.addEventListener('message', e => {\n const data = JSON.parse(e.data);\n data.code == 4040 && (this.reconnect = false)\n })\n }\n\n sendMessage = message => {\n this.ws && this.ws.send(JSON.stringify(message))\n }\n\n //视频结束请求接口\n getShareProgressInfo = () => {\n http.get(`${API['base-api']}/m/aist/share_data/${this.courseID}/${this.state.videoList[this.state.activeIndex]['id']}`)\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({shareData: data.data, isShowShareModal: true})\n }\n })\n }\n\n //告诉服务端切换视频\n countSchedule = () => {\n this.sendMessage({\n mtype: 'count_schedule',\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 5\n })\n }\n\n sendWatchTime = (sec, rate) => {\n const {videoList, activeIndex, vCourseId} = this.state\n\n this.sendMessage({\n mtype: 'watch_time',\n rate,\n time: sec,\n video_id: videoList[activeIndex]['id'],\n course_id: this.courseID,\n v_course_id: vCourseId,\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 0\n })\n }\n\n setupTimer = () => {\n this.count = 0\n this.watchSec = 0\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n if (this.player && this.player.player()) {\n if (this.count === 5) {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.count = this.watchSec = 0\n } else {\n !this.player.paused() && this.watchSec++\n this.count++\n }\n }\n }, 1000)\n\n }\n\n initializePlayer = () => {\n window.HELP_IMPROVE_VIDEOJS = false;\n this.player = videojs(this.video, {\n controls: true,\n preload: 'auto',\n bigPlayButton: true,\n textTrackDisplay: false,\n posterImage: false,\n errorDisplay: false,\n playbackRates: ['0.75', '1', '1.5', '2'],\n controlBar: {\n pictureInPictureToggle: false\n }\n })\n this.player.on('ready', () => {\n this.recordSocket.emit('load', this.recordUserInfo())\n })\n this.player.on('ratechange', () => {\n this.currentPlaybackRate = this.player.playbackRate()\n this.sendWatchTime(this.watchSec, this.previousPlaybackRate)\n this.count = this.watchSec = 0\n this.previousPlaybackRate = this.currentPlaybackRate\n })\n this.player.on('ended', () => {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.getShareProgressInfo()\n clearInterval(this.timer)\n })\n this.player.on('seeked', () => {\n this.sendRecord()\n })\n }\n\n sendLastRecord = () => {\n http.post(`${API.home}/m/course/record_last_video`, {\n v_course_id: this.state.course['v_course_id'],\n video_id: this.state.videoList[this.state.activeIndex].id\n })\n }\n\n componentWillUnmount() {\n this.player && this.player.dispose()\n\n clearInterval(this.timer)\n this.ws && this.ws.close()\n this.ws = null\n\n clearInterval(this.recordTimer)\n this.recordSocket && this.recordSocket.close()\n this.recordSocket = null\n }\n\n selectVideo = index => {\n\n if (index === this.state.activeIndex) {\n return\n }\n\n this.countSchedule()\n\n this.setState({\n activeIndex: index\n },\n () => {\n if (this.hasAuth()) {\n this.setPlayerSrc(this.state.videoList[index]['play_url'])\n this.sendLastRecord()\n this.playVideo()\n }\n\n\n }\n )\n }\n\n\n getVideoList = () => {\n let url = ''\n\n if (getParam('video_id')) {\n url = `${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`\n } else {\n url = `${API.home}/m/course/play/${this.courseID}`\n }\n http.get(url)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState(\n state => ({\n videoList: data.data['lessons'],\n currentVideoSrc: data.data['lessons'][state.activeIndex]['play_url'],\n course: data.data.course,\n courseId: data.data.course['course_id'],\n vCourseId: data.data.course['v_course_id'],\n title: data.data.course['course_title'],\n isLoading: false\n }),\n () => {\n if (this.state.course.is_aist) {\n this.setupWS()\n this.setupTimer()\n }\n if (this.lessonAvailable()) {\n if (this.hasAuth()) {\n Promise.resolve().then(() => {\n this.initializePlayer()\n this.playWithAuth()\n })\n } else {\n this.getCoursePrice();\n }\n } else {\n alert('暂无视频', '', [{\n text: 'OK',\n onPress: () => {\n this.props.history.push('/')\n }\n }])\n }\n }\n )\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n setPlayerSrc = src => {\n if (!this.player) {\n this.initializePlayer()\n }\n this.player.src({\n src,\n type: 'application/x-mpegURL'\n })\n }\n\n playVideo = () => {\n this.player.play()\n }\n\n\n getDatumCatalog() {\n http.get(`${API.home}/m/course/data/${this.courseID}`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState({\n datum: data.data\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n lessonAvailable = () => {\n let {videoList, course} = this.state\n let videoIndex = videoList.findIndex(item => item.id == course.last_video_id)\n this.setState({\n activeIndex: videoIndex\n })\n return videoList[videoIndex]['video_size'] !== 0\n }\n\n getCoursePrice = () => {\n http.get(`${API.home}/sys/course/price/${getParam('id')}`)\n .then(res => {\n const {data} = res\n if (data.code === 200) {\n this.setState({\n salePrice: data.data['sale_price']\n })\n }\n })\n }\n\n playWithAuth = () => {\n const {videoList, activeIndex} = this.state\n\n if (this.hasAuth()) {\n this.setPlayerSrc(videoList[activeIndex]['play_url'])\n }\n }\n\n hasAuth = () => {\n const {course, videoList} = this.state\n\n let videoIndex = videoList.findIndex(item => item.id == course.last_video_id)\n this.setState({\n activeIndex: videoIndex\n })\n let lesson = videoList[videoIndex]\n\n if (lesson['video_auth']) {\n this.setState({\n isAuth: true\n })\n return true\n } else {\n this.setState({\n isAuth: false\n })\n return false\n\n }\n }\n\n\n render() {\n let {match, location} = this.props\n const {videoList, activeIndex, isAuth, salePrice, course} = this.state\n return (\n <div className='play'>\n <HeaderBar title={this.state.title} arrow={true}/>\n <Loading isLoading={this.state.isLoading}>\n <div className=\"video\">\n <video className={'video-js'} ref={el => this.video = el}>\n <source src={'/'} type='application/x-mpegURL'/>\n </video>\n {\n !isAuth && !!videoList[activeIndex]['is_class'] && (\n <div className=\"purchase-box\">\n <div className='hint'>您尚未购买该课时,请购买后学习。</div>\n <div className='btns'>\n <button type='button'\n onClick={this.tobuy}\n className='purchase-class'>¥{salePrice} 购买课程\n </button>\n <button type='button'\n onClick={this.toSingleset.bind(this, videoList[activeIndex])}\n className='purchase-episode'>¥{videoList.length && videoList[activeIndex]['class_price']} 购买单集\n </button>\n </div>\n </div>\n )\n }\n {\n !isAuth && !!course.is_aist && (\n <div className=\"is-aist-box\">\n <i className={'iconfont iconiconfront-21'}></i>\n <p className={'time'}>{videoList[activeIndex]['aist_start_time']}</p>\n <p className={'time'}>请耐心等待...</p>\n </div>\n )\n }\n </div>\n <div className='tab'>\n <div>\n <NavLink to={{pathname: `${match.url}/video`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >视频</NavLink>\n </div>\n <div>\n <NavLink to={{pathname: `${match.url}/datum`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >资料</NavLink>\n </div>\n </div>\n\n {/*单集购买*/}\n <Single singleBox={this.state.singleBox} boxHide={this.boxHide} data={this.state.singMess}\n videoId={this.state.singMess.id}\n title={this.state.singMess.course_tile}/>\n </Loading>\n <Switch>\n <Redirect exact from={'/play'} to={{\n pathname: '/play/video',\n search: location.search\n }}/>\n <Route path={`${match.path}/video`} render={props => {\n return <VideoCatalog\n activeIndex={this.state.activeIndex}\n selectVideo={this.selectVideo}\n videoCatalog={videoList}\n {...props}/>\n }}/>\n <Route path={`${match.path}/datum`} render={props => {\n return <DatumCatalog {...props} datum={this.state.datum}/>\n }}/>\n </Switch>\n <Route render={props => {\n return this.state.vCourseId ? <Recommendation {...props} vCourseId={this.state.vCourseId}/>\n : null\n }}/>\n <ProgressShareModal isShow={this.state.isShowShareModal}\n closeShareModal={() => this.setState({isShowShareModal: false})}\n data={this.state.shareData}\n />\n\n </div>\n );\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Video);","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)}>\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;","import React, { Component } from 'react'\nimport './index.scss'\nimport { getParam, http, browser } from \"@/utils\";\nimport { Toast } from 'antd-mobile';\nimport { Link, withRouter } from \"react-router-dom\";\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\nimport { differenceInHours, differenceInMinutes, differenceInSeconds } from \"date-fns\";\n\n\nclass Single extends Component {\n constructor(props) {\n super(props)\n this.state = {\n status: 1,\n orderId: '',\n nowPrice: '',\n laterPrice: '',\n hour: '',\n min: '',\n sec: '',\n endTime: '',\n groupOrderId: '',\n payType: '0', // 1支付宝 0微信\n }\n }\n\n componentDidMount() {\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (browser.isWeixin) {\n this.isweixinPay()\n }\n }\n\n // 选择支付方式\n check = (type) => {\n this.setState({\n payType: type\n })\n }\n\n // 确定购买\n toBuy = () => {\n http.get(`${API.home}/sys/createClassOrder/${this.props.data.video_id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n orderId: res.data.data.order_id\n })\n this.state.payType === '1' ? this.alipayPay(res.data.data.order_id) : this.weixinPay(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (browser.isWeixin) {\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 } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((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 alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((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 onBridgeReady = (data) => {\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 this.payCallback()\n } else {\n alert('支付失败')\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 const data = res.data.data;\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']}/sys/orderStatus/${getParam('oid')}`).then((res) => {\n if (res.data.data.errno == '200') {\n // 正常购买单集成功\n this.setState({\n status: 6\n })\n } else if (res.data.data.errno == '201') {\n // 0元参团\n this.setState({\n status: 4\n })\n } else if (res.data.data.errno == '202') {\n // 0元购\n this.setState({\n status: 3\n })\n } else if (res.data.data.errno == '203') {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\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 // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\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']}/sys/orderStatus/${getParam('oid')}`).then((res) => {\n if (res.data.data.errno == '200') {\n // 正常购买单集成功\n this.setState({\n status: 6\n })\n } else if (res.data.data.errno == '201') {\n // 0元参团\n this.setState({\n status: 4\n })\n } else if (res.data.data.errno == '202') {\n // 0元购\n this.setState({\n status: 3\n })\n } else if (res.data.data.errno == '203') {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n }\n\n\n // 特价购买全集\n toBuyAll = () => {\n\n }\n // 0元购买全集\n zerobuyReceive = () => {\n Toast.success('购买全集成功', 3)\n this.colse()\n }\n // 0元参团\n zerogroupBuy = () => {\n this.getOrderId()\n }\n\n // 获取订单号-0元参团\n getOrderId = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API['base-api']}/pdd/sys`, data).then((res) => {\n if (res.data.errno === 0) {\n this.setState({\n groupOrderId: res.data.data.order_id\n })\n this.getOrderStatus(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取订单状态-0元参团\n getOrderStatus = (id) => {\n http.get(`${API.home}/m/pdd/order_status/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.getTime(res.data.data.pdd_order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 获取倒计时-0元参团\n getTime = (id) => {\n http.get(`${API.home}/m/pdd_order_end_time/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n endTime: res.data.data.end_time,\n status: 7\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 邀请好友参团\n toGroup = () => {\n this.props.history.push(`/togroup?id=${this.state.groupOrderId}`)\n }\n\n // 关闭弹窗\n colse = () => {\n this.props.boxHide(false);\n this.setState({\n status: 1\n })\n }\n\n render() {\n if (this.state.endTime) {\n let date = this.state.endTime * 1000\n let now = Date.now()\n setInterval(() => {\n date -= 1000\n let s = differenceInSeconds(new Date(date), now) % 60,\n m = differenceInMinutes(new Date(date), now) % 60,\n h = differenceInHours(new Date(date), now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n })\n }, 1000)\n }\n\n return (\n\n <div>\n {\n this.props.singleBox &&\n <div className='popup-box'>\n {\n this.state.status === 1 &&\n <div className='content singleset-payment'>\n <div className='price-box'>\n <span>实付款:</span>\n <p>{this.props.data.class_price}元</p>\n </div>\n <div className='course-info'>\n <p className='text-overflow-1'><span>课程:</span>\n {this.props.title}\n </p>\n <p className='text-overflow-1'><span>课时:</span>\n {this.props.data.name}\n </p>\n </div>\n <div className='payment-type'>\n <label>支付方式:</label>\n {\n !browser.isWeixin &&\n <p onClick={this.check.bind(this, '1')}>\n <i className='iconfont iconalipay'></i>\n <span>支付宝</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '1' ? 'redioed' : ''}`}></i>\n </p>\n }\n\n <p onClick={this.check.bind(this, '0')}>\n <i className='iconfont iconweixinzhifu buy'></i>\n <span>微信支付</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '0' ? 'redioed' : ''}`}></i>\n </p>\n </div>\n <div className='btn btn-18B4ED' onClick={this.toBuy}>确认购买</div>\n </div>\n }\n {\n this.state.status === 2 &&\n <div className='content payment-success'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 3天内购买全集,可直接抵扣该集费用,{this.state.nowPrice}元购买。</div>\n <div className=\"dec\">· 超过3天,按照未够集数/全部集数等比例计费,{this.state.laterPrice}元购买全集。</div>\n <Link to={`/play/video?id=${this.props.vcourseId}&video_id=${this.props.data.video_id}`} className='btn btn-18B4ED'>开始学习</Link>\n <div className='btn btn-FF4000' onclick={this.toBuyAll()}>¥{this.state.nowPrice}购买全集\n </div>\n </div>\n }\n {\n this.state.status === 3 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元拼团购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerogroupBuy}>0元参团</div>\n </div>\n }\n {\n this.state.status === 4 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerobuyReceive}>0元购</div>\n </div>\n }\n {\n this.state.status === 6 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <Link to={`/play/video?id=${this.props.vcourseId}&video_id=${this.props.data.video_id}`} className='btn btn-18B4ED'>去学习</Link>\n </div>\n }\n {\n this.state.status === 7 &&\n <div className='content group'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>参团成功</span>\n </div>\n <div className='group-img'>\n <img src={this.props.user.data.avatar} alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n\n </div>\n <div className='btn-l btn-FF4000' onClick={this.toGroup}>\n 剩余{String(this.state.hour).padStart(2, 0)}:{String(this.state.min).padStart(2, 0)}:{String(this.state.sec).padStart(2, 0)}\n 邀请好友参团\n </div>\n </div>\n }\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n }\n </div>\n\n );\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(Single)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1177:function(e,t,a){"use strict";a.r(t);a(43);var n,c=a(14),i=a.n(c),s=a(7),r=a(8),o=a(10),l=a(9),d=a(11),u=(a(257),a(99)),m=a.n(u),p=a(0),h=a.n(p),v=a(162),f=(a(786),a(18)),y=a(51),b=a(4),E=a(20),g=(a(62),a(787),a(647)),S=function(e){var t=e.item;return h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},"\xa5",t.price1),h.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},_=Object(E.b)()(n=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(o.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.c.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:[]}):i.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?h.a.createElement("div",{className:"recommendation"},h.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),h.a.createElement("ul",null,this.state.list.map(function(t){var a=h.a.createElement("div",{className:"info"},h.a.createElement("p",{className:"title text-overflow-1"},t.course_title),h.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),h.a.createElement(S,{item:t}));return h.a.createElement(g.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(p.PureComponent))||n,I=(a(788),a(15)),N=a.n(I),w=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(o.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",{className:"video-catalog"},h.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return h.a.createElement("li",{key:t.id,className:N()({active:e.props.activeIndex===a})},h.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},h.a.createElement("span",{className:"title"},t.name),h.a.createElement("span",{className:"duration"},t.duration),h.a.createElement("i",{className:N()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?h.a.createElement(f.b,{to:{pathname:"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid)}},h.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,h.a.createElement("i",{className:N()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(p.Component),k=(a(789),a(791)),P=a.n(k),x=(a(792),function(e){function t(){return Object(s.a)(this,t),Object(o.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props.datum;return h.a.createElement("div",{className:"datum-catalog"},h.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),h.a.createElement(P.a,null,e&&e.length&&e.map(function(e,t){return h.a.createElement(P.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return h.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(p.Component));x.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var O=x,j=a(1155),C=(a(838),a(30)),A=a(41),R=a.n(A),D=a(839),T=a.n(D),L=a(660),B=m.a.alert;function W(e){return e.isShow&&h.a.createElement("div",{className:"progress-share-modal-wrapper"},h.a.createElement("div",{className:"progress-share-modal"},h.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),h.a.createElement("ul",{className:"progress-container"},h.a.createElement("li",null,h.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),h.a.createElement("div",{className:"number"},h.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),h.a.createElement("li",null,h.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),h.a.createElement("div",{className:"number"},h.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),h.a.createElement("div",{className:"share-container"},h.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),h.a.createElement("ul",null,h.a.createElement("li",{className:"share-icon"},h.a.createElement("a",{style:{display:"block"},href:e.data.url},h.a.createElement("div",{className:"icon"},h.a.createElement("i",{className:"iconfont iconweixinzhifu"})),h.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),h.a.createElement("li",{className:"share-icon"},h.a.createElement("a",{style:{display:"block"},href:e.data.url},h.a.createElement("div",{className:"icon"},h.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),h.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),h.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var M=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(o.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:null,salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:""},a.tobuy=function(){b.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(b.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(b.b)("id")),{simple:1}):i.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singMess:e})},a.boxHide=function(e){a.setState({singleBox:e})},a.setupRecord=function(){a.recordSocket=T()(API.record,{transports:["websocket"],forceNew:!0}),a.recordSocket.on("seek",function(e){a.player.currentTime(e)}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer)}),a.ws.addEventListener("message",function(e){4040==JSON.parse(e.data).code&&(a.reconnect=!1)})},a.sendMessage=function(e){a.ws&&a.ws.send(JSON.stringify(e))},a.getShareProgressInfo=function(){b.c.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(){a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5})},a.sendWatchTime=function(e,t){var n=a.state,c=n.videoList,i=n.activeIndex,s=n.vCourseId;a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:c[i].id,course_id:a.courseID,v_course_id:s,uid:a.props.user.data.uid,token:a.token,platform:0})},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),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.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(j.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!0,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),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.getShareProgressInfo(),clearInterval(a.timer)}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.c.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.countSchedule(),a.setState({activeIndex:e},function(){a.hasAuth()&&(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo())}))},a.getVideoList=function(){var e="";e=Object(b.b)("video_id")?"".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.b)("video_id")):"".concat(API.home,"/m/course/play/").concat(a.courseID),b.c.get(e).then(function(e){var t=e.data;200===t.code?a.setState(function(e){return{videoList:t.data.lessons,currentVideoSrc:t.data.lessons[e.activeIndex].play_url,course:t.data.course,courseId:t.data.course.course_id,vCourseId:t.data.course.v_course_id,title:t.data.course.course_title,isLoading:!1}},function(){a.state.course.is_aist&&(a.setupWS(),a.setupTimer()),a.lessonAvailable()?a.hasAuth()?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():B("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])}):i.a.info(t.msg)})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.play()},a.lessonAvailable=function(){var e=a.state,t=e.videoList,n=e.course,c=t.findIndex(function(e){return e.id==n.last_video_id});return a.setState({activeIndex:c}),0!==t[c].video_size},a.getCoursePrice=function(){b.c.get("".concat(API.home,"/sys/course/price/").concat(Object(b.b)("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()&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(){var e=a.state,t=e.course,n=e.videoList,c=n.findIndex(function(e){return e.id==t.last_video_id});return a.setState({activeIndex:c}),n[c].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=window.location;"https:"!==e.protocol?(this.courseID=Object(b.b)("id"),this.courseID?(this.setState({courseId:this.courseID}),this.token=R.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()):this.props.history.replace("/")):e.replace("http"+e.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.c.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}):i.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,c=this.state,i=c.videoList,s=c.activeIndex,r=c.isAuth,o=c.salePrice,l=c.course;return h.a.createElement("div",{className:"play"},h.a.createElement(v.a,{title:this.state.title,arrow:!0}),h.a.createElement(C.f,{isLoading:this.state.isLoading},h.a.createElement("div",{className:"video"},h.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t}},h.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!i[s].is_class&&h.a.createElement("div",{className:"purchase-box"},h.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),h.a.createElement("div",{className:"btns"},h.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",o," \u8d2d\u4e70\u8bfe\u7a0b"),h.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,i[s]),className:"purchase-episode"},"\xa5",i.length&&i[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&h.a.createElement("div",{className:"is-aist-box"},h.a.createElement("i",{className:"iconfont iconiconfront-21"}),h.a.createElement("p",{className:"time"},i[s].aist_start_time),h.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),h.a.createElement("div",{className:"tab"},h.a.createElement("div",null,h.a.createElement(f.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),h.a.createElement("div",null,h.a.createElement(f.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),h.a.createElement(L.a,{singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,videoId:this.state.singMess.id,title:this.state.singMess.course_tile})),h.a.createElement(y.d,null,h.a.createElement(y.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),h.a.createElement(y.b,{path:"".concat(a.path,"/video"),render:function(t){return h.a.createElement(w,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:i},t))}}),h.a.createElement(y.b,{path:"".concat(a.path,"/datum"),render:function(t){return h.a.createElement(O,Object.assign({},t,{datum:e.state.datum}))}})),h.a.createElement(y.b,{render:function(t){return e.state.vCourseId?h.a.createElement(_,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),h.a.createElement(W,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(p.Component);t.default=Object(E.b)(function(e){return{user:e.user}},null)(M)},647:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(648);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},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)}},648:function(e,t,a){},660:function(e,t,a){"use strict";a(43);var n=a(14),c=a.n(n),i=a(7),s=a(8),r=a(10),o=a(9),l=a(11),d=a(156),u=a(0),m=a.n(u),p=(a(661),a(4)),h=a(18),v=a(51),f=a(17),y=a(20),b=a(157),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){p.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).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)):c.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.a.isWeixin?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.c.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():c.a.info(e.data.msg,2)})},a.alipayPay=function(e){p.c.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:c.a.info(e.data.msg,2)})},a.onBridgeReady=function(e){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.appId,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?this.payCallback():alert("\u652f\u4ed8\u5931\u8d25")})},a.isweixinPay=function(){var e=Object(d.a)(Object(d.a)(a)),t=Object(p.b)("code");if(t){if(void 0===Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/sys/orderStatus/").concat(Object(p.b)("oid"))).then(function(e){"200"==e.data.data.errno?t.setState({status:6}):"201"==e.data.data.errno?t.setState({status:4}):"202"==e.data.data.errno?t.setState({status:3}):"203"==e.data.data.errno?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2}):c.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 c.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(Object(d.a)(a));e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/sys/orderStatus/").concat(Object(p.b)("oid"))).then(function(e){"200"==e.data.data.errno?t.setState({status:6}):"201"==e.data.data.errno?t.setState({status:4}):"202"==e.data.data.errno?t.setState({status:3}):"203"==e.data.data.errno?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2}):c.a.info(e.data.data.msg,2)}))})},1e3)},a.toBuyAll=function(){},a.zerobuyReceive=function(){c.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.b)("id")};p.c.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)):c.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.c.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):c.a.info(e.data.msg,2)})},a.getTime=function(e){p.c.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}):c.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={status:1,orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){(1===Object(p.b)("is_class")||Object(p.b)("weixinpay"))&&this.payCallback(),p.a.isWeixin&&this.isweixinPay()}},{key:"render",value:function(){var e=this;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(b.differenceInSeconds)(new Date(t),a)%60,c=Object(b.differenceInMinutes)(new Date(t),a)%60,i=Object(b.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:c,sec:n})},1e3)}return m.a.createElement("div",null,this.props.singleBox&&m.a.createElement("div",{className:"popup-box"},1===this.state.status&&m.a.createElement("div",{className:"content singleset-payment"},m.a.createElement("div",{className:"price-box"},m.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),m.a.createElement("p",null,this.props.data.class_price,"\u5143")),m.a.createElement("div",{className:"course-info"},m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),m.a.createElement("div",{className:"payment-type"},m.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&m.a.createElement("p",{onClick:this.check.bind(this,"1")},m.a.createElement("i",{className:"iconfont iconalipay"}),m.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),m.a.createElement("p",{onClick:this.check.bind(this,"0")},m.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),m.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),m.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),2===this.state.status&&m.a.createElement("div",{className:"content payment-success"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.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.state.nowPrice,"\u5143\u8d2d\u4e70\u3002"),m.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u591f\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.state.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),m.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),m.a.createElement("div",{className:"btn btn-FF4000",onclick:this.toBuyAll()},"\uffe5",this.state.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),m.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),m.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===this.state.status&&m.a.createElement("div",{className:"content group"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),m.a.createElement("div",{className:"group-img"},m.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),m.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")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(y.b)(function(e){return{user:e.user}},null),v.g)(E)},661:function(e,t,a){},786:function(e,t,a){},787:function(e,t,a){},788:function(e,t,a){},792:function(e,t,a){},794:function(e,t){},862:function(e,t){}}]);
//# sourceMappingURL=video.95c64771.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1175:function(e,t,a){"use strict";a.r(t);a(43);var n,c=a(14),i=a.n(c),s=a(7),r=a(8),o=a(10),l=a(9),d=a(11),u=(a(257),a(99)),m=a.n(u),p=a(0),h=a.n(p),v=a(162),f=(a(786),a(18)),b=a(51),y=a(4),E=a(20),g=(a(62),a(787),a(647)),N=function(e){var t=e.item;return h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},"\xa5",t.price1),h.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},_=Object(E.b)()(n=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(o.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){y.c.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:[]}):i.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?h.a.createElement("div",{className:"recommendation"},h.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),h.a.createElement("ul",null,this.state.list.map(function(t){var a=h.a.createElement("div",{className:"info"},h.a.createElement("p",{className:"title text-overflow-1"},t.course_title),h.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),h.a.createElement(N,{item:t}));return h.a.createElement(g.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(p.PureComponent))||n,S=(a(788),a(15)),I=a.n(S),w=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(o.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",{className:"video-catalog"},h.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return h.a.createElement("li",{key:t.id,className:I()({active:e.props.activeIndex===a})},h.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},h.a.createElement("span",{className:"title"},t.name),h.a.createElement("span",{className:"duration"},t.duration),h.a.createElement("i",{className:I()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?h.a.createElement(f.b,{to:{pathname:"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid)}},h.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,h.a.createElement("i",{className:I()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(p.Component),k=(a(789),a(791)),x=a.n(k),P=(a(792),function(e){function t(){return Object(s.a)(this,t),Object(o.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props.datum;return h.a.createElement("div",{className:"datum-catalog"},h.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),h.a.createElement(x.a,null,e&&e.length&&e.map(function(e,t){return h.a.createElement(x.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return h.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(p.Component));P.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var O=P,j=a(1155),C=(a(838),a(30)),A=a(41),R=a.n(A),D=a(839),L=a.n(D),T=a(660),B=m.a.alert;function W(e){return e.isShow&&h.a.createElement("div",{className:"progress-share-modal-wrapper"},h.a.createElement("div",{className:"progress-share-modal"},h.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),h.a.createElement("ul",{className:"progress-container"},h.a.createElement("li",null,h.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),h.a.createElement("div",{className:"number"},h.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),h.a.createElement("li",null,h.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),h.a.createElement("div",{className:"number"},h.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),h.a.createElement("div",{className:"share-container"},h.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),h.a.createElement("ul",null,h.a.createElement("li",{className:"share-icon"},h.a.createElement("a",{style:{display:"block"},href:e.data.url},h.a.createElement("div",{className:"icon"},h.a.createElement("i",{className:"iconfont iconweixinzhifu"})),h.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),h.a.createElement("li",{className:"share-icon"},h.a.createElement("a",{style:{display:"block"},href:e.data.url},h.a.createElement("div",{className:"icon"},h.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),h.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),h.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var M=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(o.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:null,salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:""},a.tobuy=function(){y.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(y.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(y.b)("id")),{simple:1}):i.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singMess:e})},a.boxHide=function(e){a.setState({singleBox:e})},a.setupRecord=function(){a.recordSocket=L()(API.record,{transports:["websocket"],forceNew:!0}),a.recordSocket.on("seek",function(e){a.player.currentTime(e)}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer)}),a.ws.addEventListener("message",function(e){4040==JSON.parse(e.data).code&&(a.reconnect=!1)})},a.sendMessage=function(e){a.ws&&a.ws.send(JSON.stringify(e))},a.getShareProgressInfo=function(){y.c.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(){a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5})},a.sendWatchTime=function(e,t){var n=a.state,c=n.videoList,i=n.activeIndex,s=n.vCourseId;a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:c[i].id,course_id:a.courseID,v_course_id:s,uid:a.props.user.data.uid,token:a.token,platform:0})},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),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.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(j.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!0,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),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.getShareProgressInfo(),clearInterval(a.timer)}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){y.c.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.countSchedule(),a.setState({activeIndex:e},function(){a.hasAuth()&&(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo())}))},a.getVideoList=function(){var e="";e=Object(y.b)("video_id")?"".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(y.b)("video_id")):"".concat(API.home,"/m/course/play/").concat(a.courseID),y.c.get(e).then(function(e){var t=e.data;200===t.code?a.setState(function(e){return{videoList:t.data.lessons,currentVideoSrc:t.data.lessons[e.activeIndex].play_url,course:t.data.course,courseId:t.data.course.course_id,vCourseId:t.data.course.v_course_id,title:t.data.course.course_title,isLoading:!1}},function(){a.state.course.is_aist&&(a.setupWS(),a.setupTimer()),a.lessonAvailable()?a.hasAuth()?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():B("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])}):i.a.info(t.msg)})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.play()},a.lessonAvailable=function(){var e=a.state,t=e.videoList,n=e.course,c=t.findIndex(function(e){return e.id==n.last_video_id});return a.setState({activeIndex:c}),0!==t[c].video_size},a.getCoursePrice=function(){y.c.get("".concat(API.home,"/sys/course/price/").concat(Object(y.b)("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()&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(){var e=a.state,t=e.course,n=e.videoList,c=n.findIndex(function(e){return e.id==t.last_video_id});return a.setState({activeIndex:c}),n[c].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=window.location;"https:"!==e.protocol?(this.courseID=Object(y.b)("id"),this.courseID?(this.setState({courseId:this.courseID}),this.token=R.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()):this.props.history.replace("/")):e.replace("http"+e.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),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;y.c.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}):i.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,c=this.state,i=c.videoList,s=c.activeIndex,r=c.isAuth,o=c.salePrice,l=c.course;return h.a.createElement("div",{className:"play"},h.a.createElement(v.a,{title:this.state.title,arrow:!0}),h.a.createElement(C.f,{isLoading:this.state.isLoading},h.a.createElement("div",{className:"video"},h.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t}},h.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!i[s].is_class&&h.a.createElement("div",{className:"purchase-box"},h.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),h.a.createElement("div",{className:"btns"},h.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",o," \u8d2d\u4e70\u8bfe\u7a0b"),h.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,i[s]),className:"purchase-episode"},"\xa5",i.length&&i[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&h.a.createElement("div",{className:"is-aist-box"},h.a.createElement("i",{className:"iconfont iconiconfront-21"}),h.a.createElement("p",{className:"time"},i[s].aist_start_time),h.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),h.a.createElement("div",{className:"tab"},h.a.createElement("div",null,h.a.createElement(f.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),h.a.createElement("div",null,h.a.createElement(f.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),h.a.createElement(T.a,{singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,videoId:this.state.singMess.id,title:this.state.singMess.course_tile})),h.a.createElement(b.d,null,h.a.createElement(b.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),h.a.createElement(b.b,{path:"".concat(a.path,"/video"),render:function(t){return h.a.createElement(w,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:i},t))}}),h.a.createElement(b.b,{path:"".concat(a.path,"/datum"),render:function(t){return h.a.createElement(O,Object.assign({},t,{datum:e.state.datum}))}})),h.a.createElement(b.b,{render:function(t){return e.state.vCourseId?h.a.createElement(_,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),h.a.createElement(W,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(p.Component);t.default=Object(E.b)(function(e){return{user:e.user}},null)(M)},647:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(648);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},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)}},648:function(e,t,a){},660:function(e,t,a){"use strict";a(43);var n=a(14),c=a.n(n),i=a(7),s=a(8),r=a(10),o=a(9),l=a(11),d=a(156),u=a(0),m=a.n(u),p=(a(661),a(4)),h=a(18),v=a(51),f=a(17),b=a(20),y=a(157),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){p.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).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)):c.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.a.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.c.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():c.a.info(t.data.msg,2)})},a.alipayPay=function(e){p.c.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:c.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(Object(d.a)(a)),t=Object(p.b)("code");if(t){if(!Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,t.props.showSingleBox(),p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){c.a.info(Number(e.data.data.errno)),200===Number(e.data.data.errno)?t.setState({status:6}):201===Number(e.data.data.errno)?t.setState({status:4}):202===Number(e.data.data.errno)?t.setState({status:3}):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}):c.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 c.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(Object(d.a)(a));Object(p.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,t.props.showSingleBox(),p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6}):201===Number(e.data.data.errno)?t.setState({status:4}):202===Number(e.data.data.errno)?t.setState({status:3}):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}):c.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){c.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.b)("id")};p.c.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)):c.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.c.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):c.a.info(e.data.msg,2)})},a.getTime=function(e){p.c.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}):c.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={status:1,orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",singleBox:!1},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){(1===Object(p.b)("is_class")||Object(p.b)("weixinpay"))&&this.payCallback(),p.a.isWeixin&&this.isweixinPay()}},{key:"componentWillReceiveProps",value:function(e,t){this.setState({singleBox:e.singleBox})}},{key:"render",value:function(){var e=this,t=this.state.singleBox;if(this.state.endTime){var a=1e3*this.state.endTime,n=Date.now();setInterval(function(){a-=1e3;var t=Object(y.differenceInSeconds)(new Date(a),n)%60,c=Object(y.differenceInMinutes)(new Date(a),n)%60,i=Object(y.differenceInHours)(new Date(a),n)%24;e.setState({hour:i,min:c,sec:t})},1e3)}return m.a.createElement("div",null,t&&m.a.createElement("div",{className:"popup-box"},1===this.state.status&&m.a.createElement("div",{className:"content singleset-payment"},m.a.createElement("div",{className:"price-box"},m.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),m.a.createElement("p",null,this.props.data.class_price,"\u5143")),m.a.createElement("div",{className:"course-info"},m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),m.a.createElement("div",{className:"payment-type"},m.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&m.a.createElement("p",{onClick:this.check.bind(this,"1")},m.a.createElement("i",{className:"iconfont iconalipay"}),m.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),m.a.createElement("p",{onClick:this.check.bind(this,"0")},m.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),m.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),m.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),2===this.state.status&&m.a.createElement("div",{className:"content payment-success"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.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.state.nowPrice,"\u5143\u8d2d\u4e70\u3002"),m.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u591f\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.state.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),m.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),m.a.createElement("div",{className:"btn btn-FF4000",onclick:this.toBuyAll()},"\uffe5",this.state.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),m.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),m.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===this.state.status&&m.a.createElement("div",{className:"content group"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),m.a.createElement("div",{className:"group-img"},m.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),m.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")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(b.b)(function(e){return{user:e.user}},null),v.g)(E)},661:function(e,t,a){},786:function(e,t,a){},787:function(e,t,a){},788:function(e,t,a){},792:function(e,t,a){},794:function(e,t){},862:function(e,t){}}]);
//# sourceMappingURL=video.d741a89f.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/video/recommendation/index.js","components/video/video-catalog/index.js","components/video/datum-catalog/index.js","components/video/index.js","common/v-list-base/index.js","components/detail/single/index.js"],"names":["Bottom","_ref","item","react_default","a","createElement","className","price1","price0","Recommendation","connect","state","num","list","courseId","getRecommendation","http","get","concat","API","home","_this","props","vCourseId","then","res","data","code","setState","Array","isArray","toast_default","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","this","_this2","length","map","Info","course_title","simpledescription","recommendation_Bottom","v_list_base","key","course_id","img","image_name","handleClick","PureComponent","VideoCatalog","i","selectVideo","videoCatalog","index","classnames","active","activeIndex","onClick","bind","name","duration","video_auth","practice","qid","react_router_dom","to","pathname","search","title","is_tested","Component","DatumCatalog","datum","accordion_default","Panel","header","dir_name","files","file_id","file_name","defaultProps","alert","modal_default","ProgressShareModal","isShow","learn_day_count","parseFloat","action_power","style","display","href","url","closeShareModal","Video","previousPlaybackRate","currentPlaybackRate","reconnect","videoList","currentVideoSrc","isAuth","course","salePrice","isLoading","isShowShareModal","shareData","singleBox","singMess","tobuy","getParam","errno","simple","toSingleset","boxHide","val","setupRecord","recordSocket","io","record","transports","forceNew","on","time","player","currentTime","recordTimer","setInterval","sendRecord","emit","recordUserInfo","uid","user","courseID","video_id","video_time","parseInt","plat","setupWS","ws","WebSocket","addEventListener","setTimeout","clearInterval","timer","e","JSON","parse","sendMessage","message","send","stringify","getShareProgressInfo","countSchedule","mtype","token","platform","sendWatchTime","sec","rate","_this$state","v_course_id","setupTimer","count","watchSec","paused","initializePlayer","window","HELP_IMPROVE_VIDEOJS","videojs","video","controls","preload","bigPlayButton","textTrackDisplay","posterImage","errorDisplay","playbackRates","controlBar","pictureInPictureToggle","playbackRate","sendLastRecord","post","hasAuth","setPlayerSrc","playVideo","getVideoList","is_aist","lessonAvailable","Promise","resolve","playWithAuth","getCoursePrice","text","onPress","src","type","play","_this$state2","videoIndex","findIndex","last_video_id","_this$state3","_this$state4","location","protocol","jsCookie","getDatumCatalog","replace","slice","dispose","close","_this3","match","_this$state5","HeaderBar","arrow","common","ref","el","activeClassName","single","videoId","course_tile","react_router","exact","from","path","render","video_video_catalog","Object","assign","video_datum_catalog","video_recommendation","VList","react__WEBPACK_IMPORTED_MODULE_0___default","status","alt","tab","Single","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","check","payType","toBuy","orderId","order_id","alipayPay","weixinPay","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","browser","isWeixin","encodeURIComponent","toLowerCase","isweixinPay","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","weixin_code","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","showSingleBox","Number","nowPrice","now_price","laterPrice","three_day_later_price","document","attachEvent","payCallback","_this4","toBuyAll","zerobuyReceive","success","colse","zerogroupBuy","getOrderId","groupOrderId","getOrderStatus","getTime","pdd_order_id","endTime","end_time","toGroup","hour","min","nextProps","nextContext","_this5","date","now","Date","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","react__WEBPACK_IMPORTED_MODULE_8___default","class_price","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","vcourseId","onclick","avatar","String","padStart","compose","withRouter"],"mappings":"wRASMA,EAAS,SAAAC,GAAY,IAAVC,EAAUD,EAAVC,KACb,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,SAAhB,OAA0BJ,EAAKK,QAC/BJ,EAAAC,EAAAC,cAAA,QAAMC,UAAU,eAAhB,OAAgCJ,EAAKM,UA6ElCC,EAxEdC,2NAEGC,MAAQ,CACJC,IAAK,GACLC,KAAM,GACNC,SAAU,QAOdC,kBAAoB,WAChBC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,6BAAAF,OAAgDG,EAAKC,MAAMC,UAA3D,SAAAL,OAA4EG,EAAKV,MAAMC,MAClFY,KAAK,SAAAC,GACF,IAAMC,EAAOD,EAAIC,KACA,MAAdA,EAAKC,KAEJN,EAAKO,SAAS,CACVf,KAAMgB,MAAMC,QAAQJ,EAAKA,MAAQA,EAAKA,KAAO,KAIjDK,EAAA3B,EAAM4B,KAAKN,EAAKO,UAKhCC,eAAiB,SAACC,GAAO,IAAAC,EACSf,EAAKC,MADdc,EACbC,SADaD,EACHE,QAENC,KAAR,cAAArB,OAA2BiB,wFAtB/BK,KAAKzB,qDA0BA,IAAA0B,EAAAD,KACL,OACIA,KAAK7B,MAAME,KAAK6B,OAEhBvC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,kBACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,SAAhB,4BACAH,EAAAC,EA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,UAAU,qCACbiT,EAAAnT,EAAAC,cAAA,yCAEJkT,EAAAnT,EAAAC,cAACoT,EAAA,EAAD,CAAMlP,GAAE,kBAAArD,OAAoBsB,KAAKlB,MAAMoS,UAA/B,cAAAxS,OAAqDsB,KAAKlB,MAAMI,KAAKgH,UAAYpI,UAAU,kBAAnG,uBAIkB,IAAtBkC,KAAK7B,MAAMqO,QACXuE,EAAAnT,EAAAC,cAAA,OAAKC,UAAU,iBACXiT,EAAAnT,EAAAC,cAAA,OAAKC,UAAU,UACXiT,EAAAnT,EAAAC,cAAA,KAAGC,UAAU,qCACbiT,EAAAnT,EAAAC,cAAA,yCAEJkT,EAAAnT,EAAAC,cAAA,OAAKC,UAAU,aACXiT,EAAAnT,EAAAC,cAAA,OAAKkM,IAAK/J,KAAKlB,MAAMkH,KAAK9G,KAAKkS,OAAQ3E,IAAI,KAC3CsE,EAAAnT,EAAAC,cAAA,OACIkM,IAAI,qFACJ0C,IAAI,KACRsE,EAAAnT,EAAAC,cAAA,OACIkM,IAAI,qFACJ0C,IAAI,MAGZsE,EAAAnT,EAAAC,cAAA,OAAKC,UAAU,mBAAmByD,QAASvB,KAAKgQ,SAAhD,eACOqB,OAAOrR,KAAK7B,MAAM8R,MAAMqB,SAAS,EAAG,GAD3C,SACgDD,OAAOrR,KAAK7B,MAAM+R,KAAKoB,SAAS,EAAG,GADnF,SACwFD,OAAOrR,KAAK7B,MAAMuJ,KAAK4J,SAAS,EAAG,GAD3H,yCAMRP,EAAAnT,EAAAC,cAAA,KAAG0D,QAASvB,KAAKuP,MAAOzR,UAAW,4CAvZtCsE,aAiaNmP,gBACXrT,YACI,SAAAC,GAAK,MAAK,CAAC6H,KAAM7H,EAAM6H,OACvB,MAEJwL,IALWD,CAMb5E","file":"static/js/video.d741a89f.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../../detail/actions';\nimport './recommendation.scss'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport VList from '@/common/v-list-base';\n\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass Recommendation extends PureComponent {\n state = {\n num: 10,\n list: [],\n courseId: null\n }\n\n componentDidMount() {\n this.getRecommendation()\n }\n\n getRecommendation = () => {\n http.get(`${API.home}/m/play/recommend_course/${this.props.vCourseId}?num=${this.state.num}`)\n .then(res => {\n const data = res.data\n if(data.code === 200){\n\n this.setState({\n list: Array.isArray(data.data) ? data.data : []\n })\n\n }else {\n Toast.info(data.msg)\n }\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 return (\n this.state.list.length\n ?\n <div className='recommendation'>\n <div className={'title'}>相关推荐</div>\n <ul>\n {\n this.state.list.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title text-overflow-1'>{item.course_title}</p>\n <p className='des text-overflow-2'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n\n return (\n <VList\n key={item.course_id}\n img={item.image_name}\n handleClick={this.toCourseDetail}\n info={Info}\n id={item.course_id}\n />\n )\n })\n }\n </ul>\n </div>\n : null\n );\n }\n}\n\nexport default Recommendation;","import React, { Component } from 'react'\nimport './video-catalog.scss'\nimport { Link } from \"react-router-dom\";\nimport classnames from 'classnames'\n\n\nclass VideoCatalog extends Component {\n\n handleClick = (i) => {\n this.props.selectVideo(i)\n }\n\n render() {\n return (\n <div className='video-catalog'>\n <ul>\n {\n this.props.videoCatalog.map((item, index) => {\n return (\n <li key={item.id}\n className={classnames({active: this.props.activeIndex === index})}\n >\n <div className=\"video-title\" onClick={this.handleClick.bind(this, index)}>\n <span className=\"title\">{item.name}</span>\n <span className='duration'>{item.duration}</span>\n <i className={classnames(`iconfont`,\n [item.video_auth === 0\n ? 'iconiconfront-74'\n : 'iconplay_hovericon'],\n )}/>\n </div>\n {\n (item.practice && item.practice.qid)\n ? <Link to={{\n pathname: '/campTest',\n search: `?keshi_id=${item.id}&qid=${item.practice.qid}`\n }}>\n <div className=\"exercise\">\n 课后练习:{item.practice.title}\n <i className={classnames('iconfont',!item.video_auth ? 'iconiconfront-74' : item.practice.is_tested ? 'iconiconfront-3' : '')}/>\n </div>\n </Link>\n : null\n }\n </li>\n )\n })\n }\n </ul>\n </div>\n );\n }\n}\n\nexport default VideoCatalog;","import React, { Component } from 'react';\nimport './datum-catalog.scss'\nimport { Accordion } from \"antd-mobile\";\n\n\nclass DatumCatalog extends Component {\n\n static defaultProps = {\n datum: [{\n dir_name: '',\n files: [{\n file_name: '',\n file_id: 0\n }]\n }]\n }\n\n render() {\n const {datum} = this.props\n return (\n <div className='datum-catalog'>\n <p className='prompt'>课程资料请到PC端播放页下载</p>\n <Accordion>\n {\n datum && datum.length && datum.map((item, index) => {\n return (\n <Accordion.Panel header={item.dir_name} key={index}>\n {\n item.files.map(item => {\n return (\n <div key={item.file_id} className='file-name'>\n {item.file_name}\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n </div>\n );\n }\n}\n\nexport default DatumCatalog;","import React, {Component} from 'react'\nimport HeaderBar from '@/common/HeaderBar'\nimport './video.scss'\nimport {NavLink, Route, Redirect, Switch, Link} from 'react-router-dom'\nimport {http, getParam} from '@/utils'\nimport Recommendation from './recommendation'\nimport VideoCatalog from './video-catalog'\nimport DatumCatalog from './datum-catalog'\nimport {Toast} from 'antd-mobile'\nimport videojs from 'video.js'\nimport 'video.js/dist/video-js.min.css'\nimport {Modal} from \"antd-mobile\"\nimport {Loading} from '@/common'\nimport {connect} from \"react-redux\"\nimport jsCookie from 'js-cookie'\nimport io from 'socket.io-client'\nimport Single from \"@/components/detail/single\";\n\nlet alert = Modal.alert\n\nfunction ProgressShareModal(props) {\n return (\n props.isShow &&\n <div className='progress-share-modal-wrapper'>\n <div className=\"progress-share-modal\">\n <div className=\"title\">每日打卡</div>\n <ul className=\"progress-container\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"number\"><span className='num'>{props.data.learn_day_count}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"number\"><span className='num'>{parseFloat(props.data.action_power)}</span>%\n </div>\n </li>\n </ul>\n <div className=\"share-container\">\n <div className=\"title\">分享到</div>\n <ul>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconweixinzhifu'/></div>\n <div className='text'>微信好友</div>\n </a>\n </li>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconpengyouquaniconx'/></div>\n <div className='text'>朋友圈</div>\n </a>\n </li>\n </ul>\n </div>\n <i className=\"iconfont iconiconfront-2 close\" onClick={props.closeShareModal}/>\n </div>\n </div>\n )\n}\n\n\nclass Video extends Component {\n\n video //video element\n player //video player instance\n\n courseID\n\n ws //websocket instance\n timer\n token\n count\n watchSec\n previousPlaybackRate = 1\n currentPlaybackRate = 1\n reconnect = true\n\n recordSocket\n recordTimer\n\n\n state = {\n title: '',\n courseId: null,\n videoList: [],\n datum: [],\n currentVideoSrc: '',\n activeIndex: 0,\n isAuth: true,\n course: null,\n salePrice: null,\n vCourseId: null,\n isLoading: true,\n isShowShareModal: false,\n shareData: {},\n singleBox: false,\n singMess: '',\n }\n\n\n componentDidMount() {\n const location = window.location;\n if (location.protocol === 'https:') {\n location.replace('http' + location.href.slice(5))\n return\n }\n\n this.courseID = getParam('id')\n if (!this.courseID) {\n this.props.history.replace('/')\n return\n }\n this.setState({\n courseId: this.courseID\n })\n this.token = jsCookie.get('token')\n this.getVideoList()\n this.getDatumCatalog()\n this.setupRecord()\n }\n\n // 直接购买\n tobuy = () => {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${getParam('id')}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${getParam('id')}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 购买单集\n toSingleset = (item) => {\n this.setState({\n singleBox: true,\n singMess: item\n })\n }\n\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({singleBox: val})\n }\n\n\n setupRecord = () => {\n this.recordSocket = io(API.record, {\n transports: ['websocket'],\n forceNew: true\n })\n // this.recordSocket = io(API.record)\n this.recordSocket.on('seek', time => {\n this.player.currentTime(time)\n })\n\n this.recordTimer = setInterval(() => {\n this.sendRecord()\n }, 5000)\n }\n\n sendRecord = () => {\n if (this.recordSocket && this.player) {\n this.recordSocket.emit('addRecord', this.recordUserInfo())\n }\n }\n\n recordUserInfo = () => {\n let {uid} = this.props.user.data\n return {\n uid,\n course_id: this.courseID,\n video_id: this.state.videoList[this.state.activeIndex]['id'],\n video_time: parseInt(this.player.currentTime()),\n plat: 5\n }\n }\n\n setupWS = () => {\n this.ws = new WebSocket(API[\"process-api\"]);\n this.ws.addEventListener('error', () => {\n this.ws = null\n /*setTimeout(() => {\n this.setupWS();\n }, 1000)*/\n })\n this.ws.addEventListener('close', () => {\n if (this.reconnect) {\n this.ws = null\n setTimeout(() => {\n this.setupWS();\n }, 1000)\n }\n clearInterval(this.timer)\n })\n this.ws.addEventListener('message', e => {\n const data = JSON.parse(e.data);\n data.code == 4040 && (this.reconnect = false)\n })\n }\n\n sendMessage = message => {\n this.ws && this.ws.send(JSON.stringify(message))\n }\n\n //视频结束请求接口\n getShareProgressInfo = () => {\n http.get(`${API['base-api']}/m/aist/share_data/${this.courseID}/${this.state.videoList[this.state.activeIndex]['id']}`)\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({shareData: data.data, isShowShareModal: true})\n }\n })\n }\n\n //告诉服务端切换视频\n countSchedule = () => {\n this.sendMessage({\n mtype: 'count_schedule',\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 5\n })\n }\n\n sendWatchTime = (sec, rate) => {\n const {videoList, activeIndex, vCourseId} = this.state\n\n this.sendMessage({\n mtype: 'watch_time',\n rate,\n time: sec,\n video_id: videoList[activeIndex]['id'],\n course_id: this.courseID,\n v_course_id: vCourseId,\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 0\n })\n }\n\n setupTimer = () => {\n this.count = 0\n this.watchSec = 0\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n if (this.player && this.player.player()) {\n if (this.count === 5) {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.count = this.watchSec = 0\n } else {\n !this.player.paused() && this.watchSec++\n this.count++\n }\n }\n }, 1000)\n\n }\n\n initializePlayer = () => {\n window.HELP_IMPROVE_VIDEOJS = false;\n this.player = videojs(this.video, {\n controls: true,\n preload: 'auto',\n bigPlayButton: true,\n textTrackDisplay: false,\n posterImage: false,\n errorDisplay: false,\n playbackRates: ['0.75', '1', '1.5', '2'],\n controlBar: {\n pictureInPictureToggle: false\n }\n })\n this.player.on('ready', () => {\n this.recordSocket.emit('load', this.recordUserInfo())\n })\n this.player.on('ratechange', () => {\n this.currentPlaybackRate = this.player.playbackRate()\n this.sendWatchTime(this.watchSec, this.previousPlaybackRate)\n this.count = this.watchSec = 0\n this.previousPlaybackRate = this.currentPlaybackRate\n })\n this.player.on('ended', () => {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.getShareProgressInfo()\n clearInterval(this.timer)\n })\n this.player.on('seeked', () => {\n this.sendRecord()\n })\n }\n\n sendLastRecord = () => {\n http.post(`${API.home}/m/course/record_last_video`, {\n v_course_id: this.state.course['v_course_id'],\n video_id: this.state.videoList[this.state.activeIndex].id\n })\n }\n\n componentWillUnmount() {\n this.player && this.player.dispose()\n\n clearInterval(this.timer)\n this.ws && this.ws.close()\n this.ws = null\n\n clearInterval(this.recordTimer)\n this.recordSocket && this.recordSocket.close()\n this.recordSocket = null\n }\n\n selectVideo = index => {\n\n if (index === this.state.activeIndex) {\n return\n }\n\n this.countSchedule()\n\n this.setState({\n activeIndex: index\n },\n () => {\n if (this.hasAuth()) {\n this.setPlayerSrc(this.state.videoList[index]['play_url'])\n this.sendLastRecord()\n this.playVideo()\n }\n\n\n }\n )\n }\n\n\n getVideoList = () => {\n let url = ''\n\n if (getParam('video_id')) {\n url = `${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`\n } else {\n url = `${API.home}/m/course/play/${this.courseID}`\n }\n http.get(url)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState(\n state => ({\n videoList: data.data['lessons'],\n currentVideoSrc: data.data['lessons'][state.activeIndex]['play_url'],\n course: data.data.course,\n courseId: data.data.course['course_id'],\n vCourseId: data.data.course['v_course_id'],\n title: data.data.course['course_title'],\n isLoading: false\n }),\n () => {\n if (this.state.course.is_aist) {\n this.setupWS()\n this.setupTimer()\n }\n if (this.lessonAvailable()) {\n if (this.hasAuth()) {\n Promise.resolve().then(() => {\n this.initializePlayer()\n this.playWithAuth()\n })\n } else {\n this.getCoursePrice();\n }\n } else {\n alert('暂无视频', '', [{\n text: 'OK',\n onPress: () => {\n this.props.history.push('/')\n }\n }])\n }\n }\n )\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n setPlayerSrc = src => {\n if (!this.player) {\n this.initializePlayer()\n }\n this.player.src({\n src,\n type: 'application/x-mpegURL'\n })\n }\n\n playVideo = () => {\n this.player.play()\n }\n\n\n getDatumCatalog() {\n http.get(`${API.home}/m/course/data/${this.courseID}`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState({\n datum: data.data\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n lessonAvailable = () => {\n let {videoList, course} = this.state\n let videoIndex = videoList.findIndex(item => item.id == course.last_video_id)\n this.setState({\n activeIndex: videoIndex\n })\n return videoList[videoIndex]['video_size'] !== 0\n }\n\n getCoursePrice = () => {\n http.get(`${API.home}/sys/course/price/${getParam('id')}`)\n .then(res => {\n const {data} = res\n if (data.code === 200) {\n this.setState({\n salePrice: data.data['sale_price']\n })\n }\n })\n }\n\n playWithAuth = () => {\n const {videoList, activeIndex} = this.state\n\n if (this.hasAuth()) {\n this.setPlayerSrc(videoList[activeIndex]['play_url'])\n }\n }\n\n hasAuth = () => {\n const {course, videoList} = this.state\n\n let videoIndex = videoList.findIndex(item => item.id == course.last_video_id)\n this.setState({\n activeIndex: videoIndex\n })\n let lesson = videoList[videoIndex]\n\n if (lesson['video_auth']) {\n this.setState({\n isAuth: true\n })\n return true\n } else {\n this.setState({\n isAuth: false\n })\n return false\n\n }\n }\n\n\n render() {\n let {match, location} = this.props\n const {videoList, activeIndex, isAuth, salePrice, course} = this.state\n return (\n <div className='play'>\n <HeaderBar title={this.state.title} arrow={true}/>\n <Loading isLoading={this.state.isLoading}>\n <div className=\"video\">\n <video className={'video-js'} ref={el => this.video = el}>\n <source src={'/'} type='application/x-mpegURL'/>\n </video>\n {\n !isAuth && !!videoList[activeIndex]['is_class'] && (\n <div className=\"purchase-box\">\n <div className='hint'>您尚未购买该课时,请购买后学习。</div>\n <div className='btns'>\n <button type='button'\n onClick={this.tobuy}\n className='purchase-class'>¥{salePrice} 购买课程\n </button>\n <button type='button'\n onClick={this.toSingleset.bind(this, videoList[activeIndex])}\n className='purchase-episode'>¥{videoList.length && videoList[activeIndex]['class_price']} 购买单集\n </button>\n </div>\n </div>\n )\n }\n {\n !isAuth && !!course.is_aist && (\n <div className=\"is-aist-box\">\n <i className={'iconfont iconiconfront-21'}></i>\n <p className={'time'}>{videoList[activeIndex]['aist_start_time']}</p>\n <p className={'time'}>请耐心等待...</p>\n </div>\n )\n }\n </div>\n <div className='tab'>\n <div>\n <NavLink to={{pathname: `${match.url}/video`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >视频</NavLink>\n </div>\n <div>\n <NavLink to={{pathname: `${match.url}/datum`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >资料</NavLink>\n </div>\n </div>\n\n {/*单集购买*/}\n <Single singleBox={this.state.singleBox} boxHide={this.boxHide} data={this.state.singMess}\n videoId={this.state.singMess.id}\n title={this.state.singMess.course_tile}/>\n </Loading>\n <Switch>\n <Redirect exact from={'/play'} to={{\n pathname: '/play/video',\n search: location.search\n }}/>\n <Route path={`${match.path}/video`} render={props => {\n return <VideoCatalog\n activeIndex={this.state.activeIndex}\n selectVideo={this.selectVideo}\n videoCatalog={videoList}\n {...props}/>\n }}/>\n <Route path={`${match.path}/datum`} render={props => {\n return <DatumCatalog {...props} datum={this.state.datum}/>\n }}/>\n </Switch>\n <Route render={props => {\n return this.state.vCourseId ? <Recommendation {...props} vCourseId={this.state.vCourseId}/>\n : null\n }}/>\n <ProgressShareModal isShow={this.state.isShowShareModal}\n closeShareModal={() => this.setState({isShowShareModal: false})}\n data={this.state.shareData}\n />\n\n </div>\n );\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Video);","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)}>\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;","import React, { Component } from 'react'\nimport './index.scss'\nimport { getParam, http, browser } from \"@/utils\";\nimport { Toast } from 'antd-mobile';\nimport { Link, withRouter } from \"react-router-dom\";\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\nimport { differenceInHours, differenceInMinutes, differenceInSeconds } from \"date-fns\";\n\n\nclass Single extends Component {\n constructor(props) {\n super(props)\n this.state = {\n status: 1,\n orderId: '',\n nowPrice: '',\n laterPrice: '',\n hour: '',\n min: '',\n sec: '',\n endTime: '',\n groupOrderId: '',\n payType: '0', // 1支付宝 0微信\n singleBox: false,\n }\n }\n\n componentDidMount() {\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (browser.isWeixin) {\n this.isweixinPay()\n }\n }\n\n componentWillReceiveProps(nextProps, nextContext) {\n this.setState({\n singleBox: nextProps.singleBox,\n })\n }\n\n // 选择支付方式\n check = (type) => {\n this.setState({\n payType: type\n })\n }\n\n // 确定购买\n toBuy = () => {\n http.get(`${API.home}/sys/createClassOrder/${this.props.data.video_id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n orderId: res.data.data.order_id\n })\n this.state.payType === '1' ? this.alipayPay(res.data.data.order_id) : this.weixinPay(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (browser.isWeixin) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb&oid=\" + orderId).toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1&oid=\" + orderId).toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\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 window.location = res.data.data.url;\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')) {\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 const data = res.data.data;\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 this.props.showSingleBox();\n http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {\n Toast.info(Number(res.data.data.errno));\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\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 // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n if(getParam('oid')) {\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 this.props.showSingleBox();\n http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n }\n\n }\n\n\n // 特价购买全集\n toBuyAll = () => {\n\n }\n // 0元购买全集\n zerobuyReceive = () => {\n Toast.success('购买全集成功', 3)\n this.colse()\n }\n // 0元参团\n zerogroupBuy = () => {\n this.getOrderId()\n }\n\n // 获取订单号-0元参团\n getOrderId = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API['base-api']}/pdd/sys`, data).then((res) => {\n if (res.data.errno === 0) {\n this.setState({\n groupOrderId: res.data.data.order_id\n })\n this.getOrderStatus(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取订单状态-0元参团\n getOrderStatus = (id) => {\n http.get(`${API.home}/m/pdd/order_status/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.getTime(res.data.data.pdd_order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 获取倒计时-0元参团\n getTime = (id) => {\n http.get(`${API.home}/m/pdd_order_end_time/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n endTime: res.data.data.end_time,\n status: 7\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 邀请好友参团\n toGroup = () => {\n this.props.history.push(`/togroup?id=${this.state.groupOrderId}`)\n }\n\n // 关闭弹窗\n colse = () => {\n this.props.boxHide(false);\n this.setState({\n status: 1\n })\n }\n\n render() {\n let {singleBox} = this.state;\n if (this.state.endTime) {\n let date = this.state.endTime * 1000\n let now = Date.now()\n setInterval(() => {\n date -= 1000\n let s = differenceInSeconds(new Date(date), now) % 60,\n m = differenceInMinutes(new Date(date), now) % 60,\n h = differenceInHours(new Date(date), now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n })\n }, 1000)\n }\n\n return (\n <div>\n {\n singleBox &&\n <div className='popup-box'>\n {\n this.state.status === 1 &&\n <div className='content singleset-payment'>\n <div className='price-box'>\n <span>实付款:</span>\n <p>{this.props.data.class_price}元</p>\n </div>\n <div className='course-info'>\n <p className='text-overflow-1'><span>课程:</span>\n {this.props.title}\n </p>\n <p className='text-overflow-1'><span>课时:</span>\n {this.props.data.name}\n </p>\n </div>\n <div className='payment-type'>\n <label>支付方式:</label>\n {\n !browser.isWeixin &&\n <p onClick={this.check.bind(this, '1')}>\n <i className='iconfont iconalipay'></i>\n <span>支付宝</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '1' ? 'redioed' : ''}`}></i>\n </p>\n }\n\n <p onClick={this.check.bind(this, '0')}>\n <i className='iconfont iconweixinzhifu buy'></i>\n <span>微信支付</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '0' ? 'redioed' : ''}`}></i>\n </p>\n </div>\n <div className='btn btn-18B4ED' onClick={this.toBuy}>确认购买</div>\n </div>\n }\n {\n this.state.status === 2 &&\n <div className='content payment-success'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 3天内购买全集,可直接抵扣该集费用,{this.state.nowPrice}元购买。</div>\n <div className=\"dec\">· 超过3天,按照未够集数/全部集数等比例计费,{this.state.laterPrice}元购买全集。</div>\n <Link to={`/play/video?id=${this.props.vcourseId}&video_id=${this.props.data.video_id}`} className='btn btn-18B4ED'>开始学习</Link>\n <div className='btn btn-FF4000' onclick={this.toBuyAll()}>¥{this.state.nowPrice}购买全集\n </div>\n </div>\n }\n {\n this.state.status === 3 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元拼团购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerogroupBuy}>0元参团</div>\n </div>\n }\n {\n this.state.status === 4 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerobuyReceive}>0元购</div>\n </div>\n }\n {\n this.state.status === 6 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <Link to={`/play/video?id=${this.props.vcourseId}&video_id=${this.props.data.video_id}`} className='btn btn-18B4ED'>去学习</Link>\n </div>\n }\n {\n this.state.status === 7 &&\n <div className='content group'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>参团成功</span>\n </div>\n <div className='group-img'>\n <img src={this.props.user.data.avatar} alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n\n </div>\n <div className='btn-l btn-FF4000' onClick={this.toGroup}>\n 剩余{String(this.state.hour).padStart(2, 0)}:{String(this.state.min).padStart(2, 0)}:{String(this.state.sec).padStart(2, 0)}\n 邀请好友参团\n </div>\n </div>\n }\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n }\n </div>\n\n );\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(Single)\n"],"sourceRoot":""}
\ No newline at end of file
......@@ -23,17 +23,38 @@ import './assets/font/iconfont.css';
class App extends Component {
previousLocation = {
...{
state: {
from:
{
pathname: this.props.location.pathname,
search: this.props.location.search,
hash: this.props.location.hash
}
}
},
...this.props.location
}
componentDidMount() {
//平台信息
cookie.set('plat', '5', {domain: '.julyedu.com'})
console.log(this.props.location);
this.props.startFetchUser()
http.get(`${API.home}/m/user_info`).then(res => {
this.props.setCurrentUser(this.transformUser(res))
})
const {history} = this.props
history.listen(location => {
if (location.pathname.startsWith('/passport')) {
location.state = {from: this.previousLocation};
}
})
//微信
let code = getParam('code')
......@@ -46,7 +67,6 @@ class App extends Component {
if (data.errno == 200) {
if (data.data['is_bind_mobile']) {
window.location.assign(data.data.url)
} else {
let user = this.transformWxUser(res)
let {role, uid, token} = data.data
......@@ -67,6 +87,13 @@ class App extends Component {
}
componentDidUpdate() {
const {location} = this.props
this.previousLocation = location.pathname.startsWith('/passport') ?
this.previousLocation.pathname === '/' ? location : this.previousLocation : location
}
transformUser = res => {
let payload
if (res.data.code === 200) {
......
......@@ -99,6 +99,11 @@ class Detail extends Component {
})
}
}
showSingleBox = () => {
this.setState({
singleBox: true
})
}
// componentWillReceiveProps(nextProps) {
// let _this = this;
......@@ -304,6 +309,7 @@ class Detail extends Component {
{/*单集购买弹窗*/}
<Single
singleBox={this.state.singleBox}
showSingleBox={this.showSingleBox}
boxHide={this.boxHide}
data={this.state.singMess}
vcourseId={course_info.v_course_id}
......
......@@ -22,6 +22,7 @@ class Single extends Component {
endTime: '',
groupOrderId: '',
payType: '0', // 1支付宝 0微信
singleBox: false,
}
}
......@@ -66,6 +67,12 @@ class Single extends Component {
}
}
componentWillReceiveProps(nextProps, nextContext) {
this.setState({
singleBox: nextProps.singleBox,
})
}
// 选择支付方式
check = (type) => {
this.setState({
......@@ -90,12 +97,12 @@ class Single extends Component {
weixinPay = (orderId) => {
// 微信内部-支付
if (browser.isWeixin) {
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";
window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=" + encodeURIComponent(window.location.href + "&aa=bb&oid=" + orderId).toLowerCase() + "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
} else {
// 微信外部-支付
http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {
if (res.data.errno === 0) {
window.location.href = res.data.data.url + "&redirect_url=" + encodeURIComponent(window.location.href + "&weixinpay=1").toLowerCase();
window.location.href = res.data.data.url + "&redirect_url=" + encodeURIComponent(window.location.href + "&weixinpay=1&oid=" + orderId).toLowerCase();
} else {
Toast.info(res.data.msg, 2)
}
......@@ -114,31 +121,13 @@ class Single extends Component {
}
})
}
onBridgeReady = (data) => {
WeixinJSBridge.invoke(
'getBrandWCPayRequest', {
"appId": data.appId, //公众号名称,由商户传入
"timeStamp": data.timeStamp, //时间戳,自1970年以来的秒数
"nonceStr": data.nonceStr, //随机串
"package": data.package,
"signType": data.signType, //微信签名方式:
"paySign": data.paySign //微信签名
},
function (res) {
if (res.err_msg == "get_brand_wcpay_request:ok") {
this.payCallback()
} else {
alert('支付失败')
}
}
)
}
// 微信内部支付
isweixinPay = () => {
let _this = this;
let weixin_code = getParam('code')
if (weixin_code) {
if (getParam('oid') === undefined) {
if (!getParam('oid')) {
return
} else {
http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {
......@@ -163,23 +152,25 @@ class Single extends Component {
clearInterval(_this.intervalPayStatus);
_this.intervalPayStatus = null;
// 获取课程类型
http.get(`${API['base-api']}/sys/orderStatus/${getParam('oid')}`).then((res) => {
if (res.data.data.errno == '200') {
this.props.showSingleBox();
http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {
Toast.info(Number(res.data.data.errno));
if (Number(res.data.data.errno) === 200) {
// 正常购买单集成功
this.setState({
status: 6
})
} else if (res.data.data.errno == '201') {
} else if (Number(res.data.data.errno) === 201) {
// 0元参团
this.setState({
status: 4
})
} else if (res.data.data.errno == '202') {
} else if (Number(res.data.data.errno) === 202) {
// 0元购
this.setState({
status: 3
})
} else if (res.data.data.errno == '203') {
} else if (Number(res.data.data.errno) === 203) {
// 三天内特价
this.setState({
nowPrice: res.data.data.data.now_price,
......@@ -220,29 +211,31 @@ class Single extends Component {
// 支付完成之后获取状态
payCallback = () => {
const _this = this;
if(getParam('oid')) {
_this.intervalPayStatus = setInterval(function () {
http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {
if (res.data.errno === 401) {
clearInterval(_this.intervalPayStatus);
_this.intervalPayStatus = null;
// 获取课程类型
http.get(`${API['base-api']}/sys/orderStatus/${getParam('oid')}`).then((res) => {
if (res.data.data.errno == '200') {
this.props.showSingleBox();
http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {
if (Number(res.data.data.errno) === 200) {
// 正常购买单集成功
this.setState({
status: 6
})
} else if (res.data.data.errno == '201') {
} else if (Number(res.data.data.errno) === 201) {
// 0元参团
this.setState({
status: 4
})
} else if (res.data.data.errno == '202') {
} else if (Number(res.data.data.errno) === 202) {
// 0元购
this.setState({
status: 3
})
} else if (res.data.data.errno == '203') {
} else if (Number(res.data.data.errno) === 203) {
// 三天内特价
this.setState({
nowPrice: res.data.data.data.now_price,
......@@ -258,6 +251,8 @@ class Single extends Component {
}, 1000)
}
}
// 特价购买全集
toBuyAll = () => {
......@@ -328,6 +323,7 @@ class Single extends Component {
}
render() {
let {singleBox} = this.state;
if (this.state.endTime) {
let date = this.state.endTime * 1000
let now = Date.now()
......@@ -345,10 +341,9 @@ class Single extends Component {
}
return (
<div>
{
this.props.singleBox &&
singleBox &&
<div className='popup-box'>
{
this.state.status === 1 &&
......
......@@ -77,7 +77,7 @@ const formikConfig = {
}).then(res => {
if (!res.hasError) {
let {from} = props.location.state || {from: {pathname: '/', search: ''}}
history.replace({pathname: from.pathname, search: from.search})
history.replace({pathname: from.pathname, search: from.search || ''})
} else {
Toast.info(res.msg, 2, null, false)
}
......
......@@ -19,10 +19,14 @@ import wechat from './wechat.png'
class Passport extends Component {
redirect_url = location.protocol + '//' + location.hostname
redirectURL = '/'
constructor(props) {
super(props);
const {location} = props
const {pathname, search, hash} = location
const {from} = location.state || {from: {pathname: pathname, search: search, hash: hash}}
this.redirectURL = window.location.origin + from.pathname + from.search + from.hash
this.state = {
loginWays: [
{
......@@ -32,17 +36,17 @@ class Passport extends Component {
{
logo: wechat,
text: '微信',
url: 'https://www.baidu.com'
url: ''
},
{
logo: qq,
text: 'QQ',
url: `${API["passport-api"]}/mob/qqlogin?redirect_url=https://m.julyedu.com`
url: `${API["passport-api"]}/mob/qqlogin?redirect_url=${this.redirectURL}`
},
{
logo: sina,
text: '新浪',
url: `${API['passport-api']}/mob/sinalogin?redirect_url=${this.redirect_url}`
url: `${API['passport-api']}/mob/sinalogin?redirect_url=${this.redirectURL}`
},
]
}
......@@ -51,11 +55,12 @@ class Passport extends Component {
componentDidMount() {
this.routeWhenUserLoggedIn()
}
componentDidUpdate() {
this.routeWhenUserLoggedIn()
// console.log(this.props.location);
}
......
......@@ -32,9 +32,9 @@ class Login extends Component {
history.push('/passport/account-login', location.state)
break;
case '微信':
let {from} = location.state || {from: {pathname: '/'}}
let {from} = location.state || {from: {pathname: '/', search: '', hash: ''}}
const redirectURI = window.location.origin + from.pathname
const redirectURI = window.location.origin + from.pathname + from.search + from.hash
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`)
break;
......
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