Commit 09f013c0 by wangshuo

打包

parent 69927e77
{
"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.d8bb172c.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.d8bb172c.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",
......@@ -17,8 +17,8 @@
"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",
"Order.js": "/static/js/Order.6102c2d5.chunk.js",
"Order.js.map": "/static/js/Order.6102c2d5.chunk.js.map",
"Orderinfo.js": "/static/js/Orderinfo.1d26f717.chunk.js",
"Orderinfo.js.map": "/static/js/Orderinfo.1d26f717.chunk.js.map",
"PayOrder.css": "/static/css/PayOrder.4a91788c.chunk.css",
......@@ -40,8 +40,8 @@
"coupons.js": "/static/js/coupons.32d91de9.chunk.js",
"coupons.js.map": "/static/js/coupons.32d91de9.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.e6fd4d44.chunk.js",
"detail.js.map": "/static/js/detail.e6fd4d44.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",
......@@ -51,8 +51,8 @@
"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.7c7b41d1.js",
"runtime~main.js.map": "/static/js/runtime~main.7c7b41d1.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",
......@@ -66,8 +66,8 @@
"togroup.js": "/static/js/togroup.a76a3571.chunk.js",
"togroup.js.map": "/static/js/togroup.a76a3571.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",
"video.js": "/static/js/video.6f7d4809.chunk.js",
"video.js.map": "/static/js/video.6f7d4809.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",
......@@ -91,7 +91,7 @@
"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.e07eaa78f9fc6a28384c2bd9d0b881b2.js": "/precache-manifest.e07eaa78f9fc6a28384c2bd9d0b881b2.js",
"service-worker.js": "/service-worker.js",
"static/css/24.62b6292a.chunk.css.map": "/static/css/24.62b6292a.chunk.css.map",
"static/css/26.b8256974.chunk.css.map": "/static/css/26.b8256974.chunk.css.map",
......@@ -99,7 +99,7 @@
"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.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 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 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 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:"d8bb172c",1:"63329319",2:"f13847f4",3:"947fa78f",4:"7713915d",5:"98497c0f",6:"6102c2d5",7:"1d26f717",8:"8f7c5463",9:"061171dd",10:"d3f64477",11:"535850f6",12:"062aaeb3",13:"32d91de9",14:"e6fd4d44",16:"c38a691f",17:"a499871a",19:"a10701e0",20:"6f0b8364",21:"3d4d0ff0",22:"a76a3571",23:"6f7d4809",25:"403aae65",26:"f7b80738",27:"33496196",28:"88036717",29:"42d40869",30:"b92758f1",31:"29632a76"}[u]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(i);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 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;d()}([])</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
......@@ -4,8 +4,8 @@ self.__precacheManifest = [
"url": "/static/js/purchased.a499871a.chunk.js"
},
{
"revision": "84d0b00913d03f35573c",
"url": "/static/css/BargainMiddlePage.5654b0f2.chunk.css"
"revision": "e0e7d7c5e364cf1a9a1b",
"url": "/static/css/BargainMiddlePage.f15334d9.chunk.css"
},
{
"revision": "8ed48f8c643e0607c130",
......@@ -44,12 +44,12 @@ self.__precacheManifest = [
"url": "/static/js/MyEdit.98497c0f.chunk.js"
},
{
"revision": "c107ddc6959c00798d5b",
"revision": "09be11a0dfe1a6ee4d29",
"url": "/static/css/Order.5199031c.chunk.css"
},
{
"revision": "c107ddc6959c00798d5b",
"url": "/static/js/Order.0b41ac28.chunk.js"
"revision": "09be11a0dfe1a6ee4d29",
"url": "/static/js/Order.6102c2d5.chunk.js"
},
{
"revision": "0dd078c3fbf39dae783d",
......@@ -104,12 +104,12 @@ self.__precacheManifest = [
"url": "/static/js/coupons.32d91de9.chunk.js"
},
{
"revision": "e2798ae62bff3805b524",
"revision": "6e5f330e9f690e1ebd6d",
"url": "/static/css/detail.1970e6cf.chunk.css"
},
{
"revision": "e2798ae62bff3805b524",
"url": "/static/js/detail.e7658232.chunk.js"
"revision": "6e5f330e9f690e1ebd6d",
"url": "/static/js/detail.e6fd4d44.chunk.js"
},
{
"revision": "d098e46d3a97eb5e191c",
......@@ -132,12 +132,12 @@ self.__precacheManifest = [
"url": "/static/css/purchased.a14c858f.chunk.css"
},
{
"revision": "84d0b00913d03f35573c",
"url": "/static/js/BargainMiddlePage.5d9a1888.chunk.js"
"revision": "e0e7d7c5e364cf1a9a1b",
"url": "/static/js/BargainMiddlePage.d8bb172c.chunk.js"
},
{
"revision": "d493d176fac486f57c1c",
"url": "/static/js/runtime~main.280838a5.js"
"revision": "1b21fb39acf81faa5574",
"url": "/static/js/runtime~main.7c7b41d1.js"
},
{
"revision": "1f851421d43b507e18c7",
......@@ -172,12 +172,12 @@ self.__precacheManifest = [
"url": "/static/js/togroup.a76a3571.chunk.js"
},
{
"revision": "8553d198eda7e14905f5",
"revision": "cfa0cc2218d3de327ef3",
"url": "/static/css/video.0984720e.chunk.css"
},
{
"revision": "8553d198eda7e14905f5",
"url": "/static/js/video.95c64771.chunk.js"
"revision": "cfa0cc2218d3de327ef3",
"url": "/static/js/video.6f7d4809.chunk.js"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
......@@ -260,7 +260,7 @@ self.__precacheManifest = [
"url": "/static/css/24.62b6292a.chunk.css"
},
{
"revision": "69551d209c5785f55a505c204ebd2a90",
"revision": "a2e8a2f91a58b174ebd51e9b3f6b2630",
"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.e07eaa78f9fc6a28384c2bd9d0b881b2.js"
);
workbox.clientsClaim();
......
.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,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,4CAA2B,CAxEnC,4DA2EU,uBAAkB,CA3E5B,gEA8EY,iBAAA,CACA,WAAY,CA/ExB,8DAoFU,+BA7Fa,CASvB,sDAyFQ,oBA3JM,CAkEd,mDA6FQ,iBAAkB,CA7F1B,wDAiGQ,YAAA,CACA,gBAAA,CACA,oBAAe,CAnGvB,6DAsGU,YAAA,CACA,6BAAA,CACA,wBAAkB,CAxG5B,6EA2GY,oBA9KE,CAmEd,uEAgHU,aA5M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,CACA,SAAU,CARd,+BAWM,UAAA,CACA,kBAAA,CACA,qBAAA,CACA,kBAAA,CACA,kCAAA,CACA,iBAAkB,CAhBxB,0CAmBQ,UAAA,CACA,WAAA,CACA,iBAAA,CACA,aAAA,CACA,oBAAA,CACA,gBAAiB,CAxBzB,kDA4BQ,UAAA,CACA,kBAAA,CACA,aAAA,CACA,4BAAA,CACA,aAAA,CACA,wBAtFW,CAqDnB,gEAoCU,+BAAA,CACA,kBAAA,CACA,YAAA,CACA,iBAAkB,CAvC5B,wEA0CY,SAAA,CACA,UAAA,CACA,iBAAA,CACA,qBAAA,CACA,uBAAkB,CA9C9B,sEAmDY,oBAAA,CACA,UAAA,CACA,qBAAA,CACA,eAAA,CACA,sBAAA,CACA,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,eA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A,sBAAA,CACA,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.f15334d9.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: #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
(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.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT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SVkgiR0pYyQxImWKFPakTZDChlpmSGBLLRt8mcqWD1egjzxTr7+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,KAAtFb,EAAIC,KAAKA,KAAKW,QAAQE,cAAgBd,EAAIC,KAAKA,KAAKW,QAAQG,aAAaC,QAAQ,GAAW,KAExG,WACI,GAAI/B,EAAKH,MAAM6B,YAAYM,YAAa,CACpC,I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E,KAAKJ,MAAMwE,KAAM/C,YAAarB,KAAKJ,MAAMyB,YAAa6K,UAAWlM,KAAKkM,UAC5E5E,IAAKtH,KAAKJ,MAAMgJ,eApBxBa,cA2BtB,SAAS0C,EAASvM,GACd,OACI8L,EAAAxI,EAAA0D,cAAA,OAAKC,UAAU,WACX6E,EAAAxI,EAAA0D,cAAA,OAAKC,UAAU,WACX6E,EAAAxI,EAAA0D,cAAA,OAAKC,UAAU,aAAf,wCAGA6E,EAAAxI,EAAA0D,cAAA,MAAIC,UAAU,qBAENjH,EAAMwE,MAAQxE,EAAMwE,KAAKwD,OAAS,GAAKhI,EAAMwE,KAAKL,IAAI,SAACC,EAAM6D,GACzD,OACI6D,EAAAxI,EAAA0D,cAAA,MAAIkB,IAAKD,EAAOhB,UAAU,gBACtB6E,EAAAxI,EAAA0D,cAAA,OAAKC,UAAU,SAASkB,IAAK/D,EAAKgE,YAAaC,IAAI,KACnDyD,EAAAxI,EAAA0D,cAAA,KAAGC,UAAU,QAAQ7C,EAAKkE,WAC1BwD,EAAAxI,EAAA0D,cAAA,KAAGC,UAAU,kBACT6E,EAAAxI,EAAA0D,cAAA,OAAKC,UAAU,cAAckB,IAAKnI,EAAM0H,IAAKW,IAAI,KADrD,eAEMyD,EAAAxI,EAAA0D,cAAA,QAAMC,UAAW,SAAU7C,EAAKsB,aAO1DoG,EAAAxI,EAAA0D,cAAA,OAAKC,UAAU,oBAAf,eACOjH,EAAMyB,YADb,yFAIJqK,EAAAxI,EAAA0D,cAAA,KAAGG,QAASnH,EAAMsM,UAAWrF,UAAW,oCAKrCoF,uEC9Df9B,EAAAC,QAAiBgC,EAAAC,EAAuB,oFCAxClC,EAAAC,QAAA","file":"static/js/BargainMiddlePage.5d9a1888.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';\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/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGVcUnqxjj40TWBdkm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0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/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),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/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGVcUnqxjj40TWBdkmIe0igjUT+z0B7cUu6oUDKrj3yzDZrZU3Gqz7iwDn2zjX60TSwmkHuyTfvxTN7SCtfXFBbWVCNgEjStDznwjikdC6XZi2HVSxiXk+adkiYiEbdvDrWqjF/TCtmYU5vaE12bUyShEacikW1nkHitjLQojGlkkPTrDzZuTrHmTDDljC2iC+sfS6slkK9o0DHoT/OsTz2zDOebS6EUiy2kELApj/9yTfeszLarjHAkjDqXFPxg0imgUWuiETZtTvswTPovTKygy/0oIbxhmXveGDpWFTtbk33qj/0n3rqYVbsaFT2n0HBm0D5sj3huTq7jS/ykmzvekqfe0f0lkS7lkH7vjoJQEVHAAAA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aUNtsNY8rCyAgXc9mxMHzL2Xg2GRL1nKEWpgmU/72LtmxYPddgoLA3uLSOtxsz8d0jjRHWotw+iDqPLxq9zZkoHCXeD9GBl86tqiThss2ZBhAnOs/ZDvFUZurnQM4a2o8uYzhHVLZ/BA1dtVH2T4W+bYbh4DQ0e1byC9k5PYa0jZqPVufV8w9IlSOEtFJd1JAUjGboLC0usL4RWWzLHXW+f9bo//sDeuqkLv6/OX0IvF7BpnqMJYPC0xGf7hNy11jIIwEERheBrBQtBGBBHBxlKwUzyCt3jNMrYBDXY2c4Itt9lyNycIKcSbqUEhEyxMYL8LTPEPb03KAUkcSVkgiR0pYyQxImWKFPakTZDChlpmSGBLLRt8mcqWD1egjzxTr7+kljU+7J0lBOESnV0jM0u0uYr/K/+NhZld7gM68+JsFOGQoTanttUAtUr4JcL6HlccHvxmG/uiDVEz3gnfKxNP6KzwcMws4dzIom2/AS/mApgcPRSZsaW7WZVF2eEvz1bqZ0VBKIrj+NkILhLdSBBpROZKhtoV7QyKmHmKw8GW81AudJfaX4Ji6MlmIqaUbveY9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=BargainMiddlePage.d8bb172c.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,EA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U7C,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.d8bb172c.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/1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kgiR0pYyQxImWKFPakTZDChlpmSGBLLRt8mcqWD1egjzxTr7+kljU+7J0lBOESnV0jM0u0uYr/K/+NhZld7gM68+JsFOGQoTanttUAtUr4JcL6HlccHvxmG/uiDVEz3gnfKxNP6KzwcMws4dzIom2/AS/mApgcPRSZsaW7WZVF2eEvz1bqZ0VBKIrj+NkILhLdSBBpROZKhtoV7QyKmHmKw8GW81AudJfaX4Ji6MlmIqaUbveY9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg==\""],"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,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,KAC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Content":["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(23),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.6102c2d5.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,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AA,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.6102c2d5.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([[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,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(){_.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+5ET2zDD50C77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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.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.e6fd4d44.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.
!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,c=r[0],f=r[1],d=r[2],u=0,l=[];u<c.length;u++)a=c[u],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,d||[]),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:"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=c.p+n,i=document.getElementsByTagName("link"),f=0;f<i.length;f++){var d=(s=i[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===n||d===o))return r()}var u=document.getElementsByTagName("style");for(f=0;f<u.length;f++){var s;if((d=(s=u[f]).getAttribute("data-href"))===n||d===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:"d8bb172c",1:"63329319",2:"f13847f4",3:"947fa78f",4:"7713915d",5:"98497c0f",6:"6102c2d5",7:"1d26f717",8:"8f7c5463",9:"061171dd",10:"d3f64477",11:"535850f6",12:"062aaeb3",13:"32d91de9",14:"e6fd4d44",16:"c38a691f",17:"a499871a",19:"a10701e0",20:"6f0b8364",21:"3d4d0ff0",22:"a76a3571",23:"6f7d4809",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(d);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 d=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||[],d=f.push.bind(f);f.push=r,f=f.slice();for(var u=0;u<f.length;u++)r(f[u]);var s=d;t()}([]);
//# sourceMappingURL=runtime~main.7c7b41d1.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,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H,OAAA4G,eAAAvF,EAAA2F,OAAAC,YAAA,CAAwDC,MAAA,WAExDlH,OAAA4G,eAAAvF,EAAA,cAAiD6F,OAAA,KAQjDlG,EAAAmG,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAlG,EAAAkG,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,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.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,E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EAAA2I,EAAApI,IACvC,IAAAU,EAAA4H,EAIAxH","file":"static/js/runtime~main.7c7b41d1.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\":\"d8bb172c\",\"1\":\"63329319\",\"2\":\"f13847f4\",\"3\":\"947fa78f\",\"4\":\"7713915d\",\"5\":\"98497c0f\",\"6\":\"6102c2d5\",\"7\":\"1d26f717\",\"8\":\"8f7c5463\",\"9\":\"061171dd\",\"10\":\"d3f64477\",\"11\":\"535850f6\",\"12\":\"062aaeb3\",\"13\":\"32d91de9\",\"14\":\"e6fd4d44\",\"16\":\"c38a691f\",\"17\":\"a499871a\",\"19\":\"a10701e0\",\"20\":\"6f0b8364\",\"21\":\"3d4d0ff0\",\"22\":\"a76a3571\",\"23\":\"6f7d4809\",\"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\":\"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([[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],{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&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.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.6f7d4809.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","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,EAA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AAA,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.6f7d4809.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&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 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
{"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,CAC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,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
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