Commit 74336131 by zhanghaozhe

bug

parent 64d11d04
{
"BargainMiddlePage.css": "/static/css/BargainMiddlePage.9e05243b.chunk.css",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.7dfab09b.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.7dfab09b.chunk.js.map",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.c8e3669c.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.c8e3669c.chunk.js.map",
"Classify.css": "/static/css/Classify.de22eb69.chunk.css",
"Classify.js": "/static/js/Classify.0c09c28b.chunk.js",
"Classify.js.map": "/static/js/Classify.0c09c28b.chunk.js.map",
......@@ -51,8 +51,8 @@
"purchased.css": "/static/css/purchased.4b0044ec.chunk.css",
"purchased.js": "/static/js/purchased.31fa5e4e.chunk.js",
"purchased.js.map": "/static/js/purchased.31fa5e4e.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.10478d36.js",
"runtime~main.js.map": "/static/js/runtime~main.10478d36.js.map",
"runtime~main.js": "/static/js/runtime~main.28b2be20.js",
"runtime~main.js.map": "/static/js/runtime~main.28b2be20.js.map",
"search.css": "/static/css/search.9fa57dd6.chunk.css",
"search.js": "/static/js/search.5e68d822.chunk.js",
"search.js.map": "/static/js/search.5e68d822.chunk.js.map",
......@@ -89,7 +89,7 @@
"static/js/30.3933456b.chunk.js": "/static/js/30.3933456b.chunk.js",
"static/js/30.3933456b.chunk.js.map": "/static/js/30.3933456b.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.8e649038225c1a936e797ec1dd22eb2d.js": "/precache-manifest.8e649038225c1a936e797ec1dd22eb2d.js",
"precache-manifest.e9325da1e98dc149e2897e2041cc90bb.js": "/precache-manifest.e9325da1e98dc149e2897e2041cc90bb.js",
"service-worker.js": "/service-worker.js",
"static/css/24.257b0329.chunk.css.map": "/static/css/24.257b0329.chunk.css.map",
"static/css/25.4c706a4e.chunk.css.map": "/static/css/25.4c706a4e.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>React App</title><link href="/static/css/24.257b0329.chunk.css" rel="stylesheet"><link href="/static/css/main.12aa8431.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(d){function e(e){for(var r,t,n=e[0],a=e[1],o=e[2],c=0,i=[];c<n.length;c++)t=n[c],l[t]&&i.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(d[r]=a[r]);for(b&&b(e);i.length;)i.shift()();return f.push.apply(f,o||[]),u()}function u(){for(var e,r=0;r<f.length;r++){for(var t=f[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(f.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},s={18:0},l={18:0},f=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return d[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(f){var e=[];s[f]?e.push(s[f]):0!==s[f]&&{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,25:1,27:1,28:1,29:1,30:1}[f]&&e.push(s[f]=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"}[f]||f)+"."+{0:"9e05243b",1:"de22eb69",2:"ce9acdcb",3:"2e7d81ca",4:"1a38e85d",5:"31d6cfe0",6:"6576554c",7:"31d6cfe0",8:"21570c76",9:"20451cd3",10:"b59ee96d",11:"a93db4c0",12:"bef8c404",13:"9ece7350",14:"deae77c4",16:"3ab93c8e",17:"4b0044ec",19:"9fa57dd6",20:"82081d02",21:"2f1e5759",22:"49988cae",23:"5463a623",25:"4c706a4e",26:"31d6cfe0",27:"694b4628",28:"5ed15c7e",29:"ecbb6f9a",30:"bc06dce4"}[f]+".chunk.css",a=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(d=t[o]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===r||c===a))return e()}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var d;if((c=(d=i[o]).getAttribute("data-href"))===r||c===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 "+f+" failed.\n("+r+")");t.request=r,delete s[f],u.parentNode.removeChild(u),n(t)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){s[f]=0}));var t=l[f];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[f]=[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"}[f]||f)+"."+{0:"7dfab09b",1:"0c09c28b",2:"fcc26c19",3:"4d71b0d8",4:"04d34ba8",5:"d53d06e5",6:"f5e96bf7",7:"70b0db04",8:"5af8307e",9:"659805a5",10:"1240fd4e",11:"5b9868fb",12:"acf1ca74",13:"62c3afd6",14:"4ef70074",16:"10940b3d",17:"31fa5e4e",19:"5e68d822",20:"f667c34f",21:"55683afc",22:"38b70eb0",23:"371d8ec0",25:"6ccc443e",26:"7b048f4b",27:"fb848190",28:"d44dcc23",29:"f4c45245",30:"3933456b"}[f]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[f];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 "+f+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[f]=void 0}};var c=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},p.m=d,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 b=n;u()}([])</script><script src="/static/js/24.ad69c58d.chunk.js"></script><script src="/static/js/main.ca020864.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>React App</title><link href="/static/css/24.257b0329.chunk.css" rel="stylesheet"><link href="/static/css/main.12aa8431.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(d){function e(e){for(var r,t,n=e[0],a=e[1],o=e[2],c=0,i=[];c<n.length;c++)t=n[c],l[t]&&i.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(d[r]=a[r]);for(b&&b(e);i.length;)i.shift()();return s.push.apply(s,o||[]),u()}function u(){for(var e,r=0;r<s.length;r++){for(var t=s[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(s.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},f={18:0},l={18:0},s=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return d[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(s){var e=[];f[s]?e.push(f[s]):0!==f[s]&&{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,25:1,27:1,28:1,29:1,30:1}[s]&&e.push(f[s]=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"}[s]||s)+"."+{0:"9e05243b",1:"de22eb69",2:"ce9acdcb",3:"2e7d81ca",4:"1a38e85d",5:"31d6cfe0",6:"6576554c",7:"31d6cfe0",8:"21570c76",9:"20451cd3",10:"b59ee96d",11:"a93db4c0",12:"bef8c404",13:"9ece7350",14:"deae77c4",16:"3ab93c8e",17:"4b0044ec",19:"9fa57dd6",20:"82081d02",21:"2f1e5759",22:"49988cae",23:"5463a623",25:"4c706a4e",26:"31d6cfe0",27:"694b4628",28:"5ed15c7e",29:"ecbb6f9a",30:"bc06dce4"}[s]+".chunk.css",a=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(d=t[o]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===r||c===a))return e()}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var d;if((c=(d=i[o]).getAttribute("data-href"))===r||c===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 "+s+" failed.\n("+r+")");t.request=r,delete f[s],u.parentNode.removeChild(u),n(t)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){f[s]=0}));var t=l[s];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[s]=[e,r]});e.push(t[2]=r);var 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"}[s]||s)+"."+{0:"c8e3669c",1:"0c09c28b",2:"fcc26c19",3:"4d71b0d8",4:"04d34ba8",5:"d53d06e5",6:"f5e96bf7",7:"70b0db04",8:"5af8307e",9:"659805a5",10:"1240fd4e",11:"5b9868fb",12:"acf1ca74",13:"62c3afd6",14:"4ef70074",16:"10940b3d",17:"31fa5e4e",19:"5e68d822",20:"f667c34f",21:"55683afc",22:"38b70eb0",23:"371d8ec0",25:"6ccc443e",26:"7b048f4b",27:"fb848190",28:"d44dcc23",29:"f4c45245",30:"3933456b"}[s]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[s];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+s+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[s]=void 0}};var c=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},p.m=d,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 b=n;u()}([])</script><script src="/static/js/24.ad69c58d.chunk.js"></script><script src="/static/js/main.ca020864.chunk.js"></script></body></html>
\ No newline at end of file
......@@ -4,7 +4,7 @@ self.__precacheManifest = [
"url": "/static/css/purchased.4b0044ec.chunk.css"
},
{
"revision": "8566774d4c7408d12630",
"revision": "4d2b1aa483d44cf3f28b",
"url": "/static/css/BargainMiddlePage.9e05243b.chunk.css"
},
{
......@@ -128,16 +128,16 @@ self.__precacheManifest = [
"url": "/static/js/myorders.10940b3d.chunk.js"
},
{
"revision": "8566774d4c7408d12630",
"url": "/static/js/BargainMiddlePage.7dfab09b.chunk.js"
"revision": "4d2b1aa483d44cf3f28b",
"url": "/static/js/BargainMiddlePage.c8e3669c.chunk.js"
},
{
"revision": "8bdb438efa9916303ed8",
"url": "/static/js/purchased.31fa5e4e.chunk.js"
},
{
"revision": "7402bf2e5f18add945a8",
"url": "/static/js/runtime~main.10478d36.js"
"revision": "2bac29fc9704c592d155",
"url": "/static/js/runtime~main.28b2be20.js"
},
{
"revision": "c45c1e264cf112a45edd",
......@@ -208,16 +208,16 @@ self.__precacheManifest = [
"url": "/static/js/27.fb848190.chunk.js"
},
{
"revision": "55ad4bbcfbe7879698a2538de5145a09",
"url": "/static/media/iconfont.55ad4bbc.ttf"
"revision": "10b7bd5b99a2a0a2f1a30d7ed72ec1a0",
"url": "/static/media/iconfont.10b7bd5b.eot"
},
{
"revision": "6b8bb5a84b3ddaed7458",
"url": "/static/js/28.d44dcc23.chunk.js"
},
{
"revision": "10b7bd5b99a2a0a2f1a30d7ed72ec1a0",
"url": "/static/media/iconfont.10b7bd5b.eot"
"revision": "55ad4bbcfbe7879698a2538de5145a09",
"url": "/static/media/iconfont.55ad4bbc.ttf"
},
{
"revision": "23851ab419d2d5bc7e46",
......@@ -256,7 +256,7 @@ self.__precacheManifest = [
"url": "/static/css/24.257b0329.chunk.css"
},
{
"revision": "af135c993c500854575aad0cec01b8ce",
"revision": "7bd59292e820326ba0e9b99336f61a53",
"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.8e649038225c1a936e797ec1dd22eb2d.js"
"/precache-manifest.e9325da1e98dc149e2897e2041cc90bb.js"
);
workbox.clientsClaim();
......
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{564:function(a,t){a.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zC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om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},565:function(a,t,e){"use strict";var s=e(7),i=e(8),n=e(10),c=e(9),r=e(11),l=e(0),o=e.n(l),m=e(20),u=e.n(m),d=(e(582),document.body||document.documentElement),h=["touchmove","mousewheel"],g=function(a){function t(a){var e;return Object(s.a)(this,t),(e=Object(n.a)(this,Object(c.a)(t).call(this,a))).preventScroll=function(a){a.preventDefault()},e.overlayBox=null,e}return Object(r.a)(t,a),Object(i.a)(t,[{key:"componentDidMount",value:function(){var a=this;h.forEach(function(t){a.overlayBox.addEventListener(t,a.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var a=this;h.forEach(function(t){a.overlayBox.removeEventListener(t,a.preventScroll)})}},{key:"render",value:function(){var a=this;return u.a.createPortal(o.a.createElement("div",{className:"overlay",ref:function(t){return a.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),t}(l.Component);t.a=g},580:function(a,t,e){"use strict";var s=e(7),i=e(8),n=e(10),c=e(9),r=e(11),l=e(0),o=e.n(l),m=(e(581),function(a){function t(a){var i;return Object(s.a)(this,t),(i=Object(n.a)(this,Object(c.a)(t).call(this,a))).closeMore=function(){i.props.boxHide(!1)},i.state={kanjiaIcon:e(564)},i}return Object(r.a)(t,a),Object(i.a)(t,[{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}))}}]),t}(l.Component));function u(a){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"},a.list&&a.list.length>0&&a.list.map(function(t,e){return o.a.createElement("li",{key:e,className:"bargain-item"},o.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),o.a.createElement("p",{className:"name"},t.user_name),o.a.createElement("p",{className:"bargain-status"},o.a.createElement("img",{className:"kanjia-icon",src:a.img,alt:""}),"\u780d\u6389",o.a.createElement("span",{className:"price"},t.amount)))})),o.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",a.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),o.a.createElement("i",{onClick:a.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=m},581:function(a,t,e){},582:function(a,t,e){},583:function(a,t,e){a.exports=e.p+"static/media/kanjia_cg_icon.81a489ac.png"},703:function(a,t,e){},704:function(a,t){a.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/TC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gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="},760:function(a,t,e){"use strict";e.r(t);var s=e(22),i=(e(43),e(14)),n=e.n(i),c=e(7),r=e(8),l=e(10),o=e(9),m=e(11),u=e(0),d=e.n(u),h=(e(703),e(33)),g=e(4),p=e(16),b=e(52),E=e(580),v=e(153),f=e(565),j=e(21),N=e(19),y=function(a){function t(a){var i;return Object(c.a)(this,t),(i=Object(l.a)(this,Object(o.a)(t).call(this,a))).getBargainInfo=function(){g.c.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(g.b)("bargaincode"),"&is_originator=").concat(Object(g.b)("is_originator"))).then(function(a){200===a.data.code?i.setState({data:a.data.data,isOriginator:a.data.data.is_originator,originatorUid:a.data.data.originator_uid,limitPeople:a.data.data.course.limit_people,bargainData:a.data.data.bargain,width:100*(a.data.data.bargain.bargain_price/a.data.data.bargain.total_price).toFixed(2)+"%"}):n.a.info(a.data.msg,2)})},i.getBargainCourse=function(){g.c.get("".concat(API.home,"/m/bargain/courseList")).then(function(a){200===a.data.code?i.setState({courseList:a.data.data}):n.a.info(a.data.msg,2)})},i.getBargainRankList=function(a,t){var e={courseId:a,type:t};g.c.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(a){if(200===a.data.code){var t=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],e=a.data.data.out_list.map(function(a,e){return Object(s.a)({},a,{rank:t[e]})});i.setState({list:a.data.data.list,outList:e})}else n.a.info(a.data.msg,2)})},i.toCart=function(){var a={course_id:Object(g.b)("id")};g.c.post("".concat(API.home,"/m/cart/add"),a).then(function(a){200===a.data.code||15001===a.data.code?i.props.history.push("/shopcart"):n.a.info(a.data.msg,2)})},i.getMore=function(){i.setState({isShowMore:!0})},i.boxHide=function(a){i.setState({isShowMore:a})},i.toArtifact=function(){var a={courseId:Object(g.b)("id")};g.c.post("".concat(API.home,"/m/bargain/receiveLimit"),a).then(function(a){200===a.data.code?i.setState({isShowOverlay:!0,status:5}):n.a.info(a.data.msg,2)})},i.useArtifact=function(){i.toKanjia(Object(g.b)("id"),2,0)},i.toKanjia=function(a,t,e){var s={course_id:a,type:t,parent_uid:e};g.c.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(a){200===a.data.code?(i.setState({amount:a.data.data.amount}),2===t&&i.setState({isShowOverlay:!0,status:6}),1===a.data.data.is_success?i.setState({isShowOverlay:!0,status:4}):2===a.data.data.is_success?3===t?i.setState({isShowOverlay:!0,status:2}):4===t&&i.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===a.data.data.is_success&&(3===t?i.setState({isShowOverlay:!0,status:2}):4===t&&i.setState({isShowOverlay:!0,status:3})),i.getBargainInfo()):n.a.info(a.data.msg,2)})},i.friendBargainFirst=function(){i.toKanjia(Object(g.b)("id"),3,i.state.originatorUid)},i.friendBargainSecond=function(){i.toKanjia(Object(g.b)("id"),4,i.state.originatorUid)},i.shareFriendBargain=function(){i.setState({isShowOverlay:!0,status:7,isshowYindao:!!g.a.isWeixin})},i.close=function(){i.setState({isShowOverlay:!1,status:""})},i.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:e(564),courseList:"",data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0},i}return Object(m.a)(t,a),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(g.b)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"render",value:function(){var a,t,e,s=this;if(this.state.bargainData.expire_time){var i=1e3*this.state.bargainData.expire_time,n=Date.now();setInterval(function(){i-=1e3;var a=Object(v.differenceInSeconds)(new Date(i),n)%60,t=Object(v.differenceInMinutes)(new Date(i),n)%60,e=Object(v.differenceInHours)(new Date(i),n)%24,c=Object(v.differenceInDays)(new Date(i),n)%24;s.setState({hour:e,min:t,sec:a,day:c})},1e3)}return 0===this.state.bargainData.is_artifact?a=d.a.createElement("div",null,"\u518d\u9080\u8bf7",d.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(a=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),t=d.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(a=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),t=d.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=d.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=d.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):1!==this.state.isOriginator&&2===this.state.data.assist_status?e=d.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=d.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f"):1===this.state.isOriginator&&0===this.state.data.bargain_status&&(e=d.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")),d.a.createElement("div",{className:"bargain-middle-page"},d.a.createElement(h.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0}),d.a.createElement("div",{className:"top"},d.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&d.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"),d.a.createElement("ul",null,d.a.createElement(h.i,{info:d.a.createElement(S,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),d.a.createElement("div",{className:"bargain-detail"},d.a.createElement("div",{className:"top"},d.a.createElement("div",null,"\u5df2\u780d",d.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&d.a.createElement("div",null,d.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),d.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&d.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),d.a.createElement("div",{className:"middle"},d.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&d.a.createElement("div",null,a,t),1===this.state.isOriginator&&1===this.state.data.bargain_status&&d.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",d.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u5929 "),d.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u65f6 "),d.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),d.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),d.a.createElement("div",{className:"button"},e))),d.a.createElement("div",{className:"bargain-records"},d.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),d.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(a,t){return d.a.createElement("li",{key:t},d.a.createElement("div",{className:"left"},d.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),d.a.createElement("span",{className:"nickname"},a.user_name),d.a.createElement("span",{className:"rank-tag"},a.rank)),d.a.createElement("div",{className:"right"},d.a.createElement("img",{className:"kanjia-icon",src:s.state.kanjiaIcon,alt:""}),"\u780d\u6389",d.a.createElement("span",{className:"price"},a.amount)))})),d.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),d.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},d.a.createElement("div",{className:"title-wrapper"},d.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),d.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")),d.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(a,t){return d.a.createElement(h.d,{className:"text-overflow-2",key:t,id:a.course_id,img:a.image_name,title:a.course_title,bottom:d.a.createElement(A,{item:a,toCart:s.toCart})})}))),d.a.createElement(p.b,{to:"/preferential",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),d.a.createElement(E.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&d.a.createElement(f.a,null,7===this.state.status&&d.a.createElement(D,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&d.a.createElement(k,{money:this.state.amount,avatar:this.props.user.data.avatar,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&d.a.createElement(C,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&d.a.createElement(B,{close:this.close,money:this.state.amount}),4===this.state.status&&d.a.createElement(w,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&d.a.createElement(U,{useArtifact:this.useArtifact}),6===this.state.status&&d.a.createElement(O,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&d.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(u.Component);function S(a){var t=a.data&&a.data.course;return d.a.createElement("div",{className:"des"},d.a.createElement("div",{className:"course-title text-overflow-2"},t.course_title),d.a.createElement("div",{className:"price-bar"},d.a.createElement("span",{className:"discount-price"},"\uffe5",t.course_price),1===a.isOriginator&&d.a.createElement("button",{className:"purchase-btn",onClick:a.toCart},"\xa5",t.pay_price,"\u53bb\u652f\u4ed8")))}function A(a){var t;return t=2===a.item.bargain_status?d.a.createElement(p.b,{to:"/detail?id=".concat(a.item.course_id),className:"bargain"},"\u6211\u8981\u780d\u4ef7"):3===a.item.bargain_status?d.a.createElement(p.b,{to:"/play?id=".concat(a.item.course_id),className:"bargain"},"\u53bb\u5b66\u4e60"):d.a.createElement("div",{className:"btns"},1===a.item.bargain_status&&d.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===a.item.bargain_status&&d.a.createElement(p.b,{to:"/detail?id=".concat(a.item.course_id),className:"bargain-btn"},"\u7ee7\u7eed\u780d\u4ef7"),d.a.createElement("button",{onClick:a.toCart,className:"purchase-btn"},"\xa5",a.item.pay_price,"\u53bb\u652f\u4ed8")),d.a.createElement("div",{className:"course-bottom"},d.a.createElement("div",{className:"course-price"},d.a.createElement("span",{className:"discount-price"},"\xa5",a.item.price1),d.a.createElement("span",{className:"original-price"},"\xa5",a.item.price0)),t)}function k(a){return d.a.createElement("div",{className:"bargain-public-number"},d.a.createElement("img",{className:"avait",src:a.avatar,alt:""}),a.firendBaigainPrice&&d.a.createElement("p",{className:"status-title ff4"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",a.money,"\u5143\uff01"),d.a.createElement("p",{className:"status-dec"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),d.a.createElement("img",{className:"public-number-img",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}))}function C(a){return d.a.createElement("div",{className:"bargain-first"},d.a.createElement("img",{className:"top-img",src:e(583),alt:""}),d.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",d.a.createElement("span",{className:"ff4"},a.money,"\u5143"),"\uff01"),d.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),d.a.createElement("button",{className:"bargain-href",onClick:a.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function B(a){return d.a.createElement("div",{className:"bargain-second"},d.a.createElement("img",{className:"top-img",src:e(583),alt:""}),d.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",d.a.createElement("span",{className:"ff4"},a.money,"\u5143"),"\uff01"),d.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:a.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function w(a){return d.a.createElement("div",{className:"not-bargain"},d.a.createElement("img",{className:"middle-img",src:e(704),alt:""}),d.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",d.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),d.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",a.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),d.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:a.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function U(a){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:a.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function O(a){return d.a.createElement("div",{className:"use-artifact-box"},d.a.createElement("img",{className:"top-img",src:e(583),alt:""}),d.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",a.money,"\u5143\uff01"),d.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",d.a.createElement("span",{className:"indicator"},a.allMoney,"\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:a.toCart},"\u53bb\u652f\u4ed8"))}function D(a){return d.a.createElement("div",null,d.a.createElement("div",{className:"close-bargain-success",onClick:a.close}),d.a.createElement("div",{className:"bargain-success"},a.isshowYindao&&d.a.createElement("i",{className:"iconfont iconyindao"}),d.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),d.a.createElement("p",null,"\u8d85\u8fc7",a.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}t.default=Object(j.d)(Object(N.b)(function(a){return{user:a.user}},null),b.g)(y)}}]);
//# sourceMappingURL=BargainMiddlePage.7dfab09b.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["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","components/bargainMiddlePage/index.js"],"names":["module","exports","root","document","body","documentElement","events","Overlay","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","preventScroll","e","preventDefault","overlayBox","_this2","forEach","item","addEventListener","passive","_this3","removeEventListener","_this4","ReactDom","createPortal","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","ref","el","style","top","concat","window","scrollY","children","Component","Ranking","closeMore","boxHide","state","kanjiaIcon","require","isShowMore","MoreList","list","limitPeople","img","icon","length","map","index","key","src","avatar_file","alt","user_name","amount","onClick","__webpack_require__","p","BargainMiddlePage","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","getBargainInfo","http","get","API","home","getParam","then","res","data","code","setState","isOriginator","is_originator","originatorUid","originator_uid","course","limit_people","bargainData","bargain","width","bargain_price","total_price","toFixed","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","info","msg","getBargainCourse","courseList","getBargainRankList","id","type","courseId","post","arr","newList","out_list","i","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","rank","outList","toCart","course_id","history","push","getMore","val","toArtifact","isShowOverlay","status","useArtifact","toKanjia","uid","parent_uid","is_success","firendBaigainPrice","friendBargainFirst","friendBargainSecond","shareFriendBargain","isshowYindao","browser","isWeixin","close","hour","min","sec","day","isLoaidng","thirdRow","btn","bargainBtn","expire_time","date","now","Date","setInterval","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","d","differenceInDays","is_artifact","react__WEBPACK_IMPORTED_MODULE_8___default","invite_num","assist_status","bargain_status","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","CourseDes","String","padStart","image_name","course_title","bottom","CourseBottom","react_router_dom__WEBPACK_IMPORTED_MODULE_12__","to","_ranking__WEBPACK_IMPORTED_MODULE_14__","_detail_overlay__WEBPACK_IMPORTED_MODULE_16__","BargainSuccess","PublicNumber","money","avatar","user","BargainFirst","bargainSecond","BargainSecond","NotBargain","Artifact","UseArtifact","allMoney","course_price","pay_price","Buttons","price1","price0","href","color","compose","connect","withRouter"],"mappings":"2EAAAA,EAAAC,QAAA,65CCKMC,UAAOC,SAASC,MAAQD,SAASE,iBAEjCC,EAAS,CAAC,YAAa,cAEvBC,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAA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CZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII=\"","import React, { Component } from 'react';\nimport ReactDom from \"react-dom\";\n\nimport './overlay.scss'\n\nconst root = document.body || document.documentElement\n\nconst events = ['touchmove', 'mousewheel']\n\nclass Overlay extends Component {\n constructor(props) {\n super(props);\n this.overlayBox = null\n }\n\n preventScroll = e => {\n e.preventDefault()\n }\n\n componentDidMount() {\n events.forEach(item => {\n this.overlayBox.addEventListener(item, this.preventScroll, {\n passive: false\n })\n })\n }\n\n componentWillUnmount() {\n events.forEach(item => {\n this.overlayBox.removeEventListener(item, this.preventScroll)\n })\n }\n\n render() {\n return ReactDom.createPortal(\n (<div className={'overlay'}\n ref={el => this.overlayBox = el}\n style={{top: `${window.scrollY}px`}}\n >{this.props.children}</div>),\n root\n )\n }\n}\n\nexport default Overlay;","import React, {Component} from 'react'\nimport './index.scss'\n\nclass Ranking extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n kanjiaIcon: require('../image/kanjia_icon.png')\n }\n }\n\n // 关闭更多窗口\n closeMore = () => {\n this.props.boxHide(false);\n }\n\n render() {\n return (\n <div className={'ranking-box'}>\n {\n this.props.isShowMore &&\n <MoreList list={this.props.list} limitPeople={this.props.limitPeople} closeMore={this.closeMore}\n img={this.props.icon}/>\n }\n </div>\n );\n }\n}\n\nfunction MoreList(props) {\n return (\n <div className=\"moreMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n 好友助力详情\n </div>\n <ul className='more-bargain-list'>\n {\n props.list && props.list.length > 0 && props.list.map((item, index) => {\n return (\n <li key={index} className='bargain-item'>\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <p className='name'>{item.user_name}</p>\n <p className='bargain-status'>\n <img className='kanjia-icon' src={props.img} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </p>\n </li>\n )\n })\n }\n </ul>\n <div className='more-bargain-dec'>\n 超过{props.limitPeople}位好友助力可获得【砍价神器】\n </div>\n </div>\n <i onClick={props.closeMore} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n )\n}\n\nexport default Ranking","module.exports = __webpack_public_path__ + \"static/media/kanjia_cg_icon.81a489ac.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGVcUnqxjj40TWBdkmIe0igjUT+z0B7cUu6oUDKrj3yzDZrZU3Gqz7iwDn2zjX60TSwmkHuyTfvxTN7SCtfXFBbWVCNgEjStDznwjikdC6XZi2HVSxiXk+adkiYiEbdvDrWqjF/TCtmYU5vaE12bUyShEacikW1nkHitjLQojGlkkPTrDzZuTrHmTDDljC2iC+sfS6slkK9o0DHoT/OsTz2zDOebS6EUiy2kELApj/9yTfeszLarjHAkjDqXFPxg0imgUWuiETZtTvswTPovTKygy/0oIbxhmXveGDpWFTtbk33qj/0n3rqYVbsaFT2n0HBm0D5sj3huTq7jS/ykmzvekqfe0f0lkS7lkH7vjoJQEVHAAAAYnRSTlMAB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rCyAgXc9mxMHzL2Xg2GRL1nKEWpgmU/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==\"","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\";\n\n\nclass BargainMiddlePage extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowOverlay: false,\n isOriginator: '',\n kanjiaIcon: require('./image/kanjia_icon.png'),\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 data: res.data.data,\n isOriginator: res.data.data.is_originator,\n originatorUid: res.data.data.originator_uid,\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 } 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 // 查看更多\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 render() {\n if (this.state.bargainData.expire_time) {\n\n let date = this.state.bargainData.expire_time * 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 d = differenceInDays(new Date(date), 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 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\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 info={<CourseDes\n isOriginator={this.state.isOriginator}\n data={this.state.data}\n toCart={this.toCart}/>}\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 bottom={<CourseBottom\n item={item}\n toCart={this.toCart}\n />\n }\n />\n })\n }\n </ul>\n </div>\n <Link to={'/preferential'} 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 } else if (props.item.bargain_status === 3) {\n Buttons = <Link to={`/play?id=${props.item.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 <Link to={`/detail?id=${props.item.course_id}`} className={'bargain-btn'}>继续砍价</Link>\n\n }\n\n\n <button onClick={props.toCart}\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 compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(BargainMiddlePage)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{564:function(a,t){a.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60j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OQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},565:function(a,t,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(20),u=e.n(m),d=(e(582),document.body||document.documentElement),g=["touchmove","mousewheel"],h=function(a){function t(a){var e;return Object(s.a)(this,t),(e=Object(n.a)(this,Object(r.a)(t).call(this,a))).preventScroll=function(a){a.preventDefault()},e.overlayBox=null,e}return Object(c.a)(t,a),Object(i.a)(t,[{key:"componentDidMount",value:function(){var a=this;g.forEach(function(t){a.overlayBox.addEventListener(t,a.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var a=this;g.forEach(function(t){a.overlayBox.removeEventListener(t,a.preventScroll)})}},{key:"render",value:function(){var a=this;return u.a.createPortal(o.a.createElement("div",{className:"overlay",ref:function(t){return a.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),t}(l.Component);t.a=h},580:function(a,t,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(581),function(a){function t(a){var i;return Object(s.a)(this,t),(i=Object(n.a)(this,Object(r.a)(t).call(this,a))).closeMore=function(){i.props.boxHide(!1)},i.state={kanjiaIcon:e(564)},i}return Object(c.a)(t,a),Object(i.a)(t,[{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}))}}]),t}(l.Component));function u(a){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"},a.list&&a.list.length>0&&a.list.map(function(t,e){return o.a.createElement("li",{key:e,className:"bargain-item"},o.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),o.a.createElement("p",{className:"name"},t.user_name),o.a.createElement("p",{className:"bargain-status"},o.a.createElement("img",{className:"kanjia-icon",src:a.img,alt:""}),"\u780d\u6389",o.a.createElement("span",{className:"price"},t.amount)))})),o.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",a.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),o.a.createElement("i",{onClick:a.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=m},581:function(a,t,e){},582:function(a,t,e){},583:function(a,t,e){a.exports=e.p+"static/media/kanjia_cg_icon.81a489ac.png"},703:function(a,t,e){},704:function(a,t){a.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/TCtmY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MX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="},760:function(a,t,e){"use strict";e.r(t);var s=e(22),i=(e(43),e(14)),n=e.n(i),r=e(7),c=e(8),l=e(10),o=e(9),m=e(11),u=e(0),d=e.n(u),g=(e(703),e(33)),h=e(4),p=e(16),b=e(52),E=e(580),v=e(153),f=e(565),j=e(21),N=e(19),y=function(a){function t(a){var i;return Object(r.a)(this,t),(i=Object(l.a)(this,Object(o.a)(t).call(this,a))).getBargainInfo=function(){h.c.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(h.b)("bargaincode"),"&is_originator=").concat(Object(h.b)("is_originator"))).then(function(a){200===a.data.code?i.setState({data:a.data.data,isOriginator:a.data.data.is_originator,originatorUid:a.data.data.originator_uid,limitPeople:a.data.data.course.limit_people,bargainData:a.data.data.bargain,width:100*(a.data.data.bargain.bargain_price/a.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(i.state.bargainData.expire_time){var a=1e3*i.state.bargainData.expire_time,t=Date.now();clearInterval(i.timer),i.timer=setInterval(function(){var e=new Date(a-=1e3),s=Object(v.differenceInSeconds)(e,t)%60,n=Object(v.differenceInMinutes)(e,t)%60,r=Object(v.differenceInHours)(e,t)%24,c=Object(v.differenceInDays)(e,t)%24;i.setState({hour:r,min:n,sec:s,day:c})},1e3)}}):n.a.info(a.data.msg,2)})},i.getBargainCourse=function(){h.c.get("".concat(API.home,"/m/bargain/courseList")).then(function(a){200===a.data.code?i.setState({courseList:a.data.data}):n.a.info(a.data.msg,2)})},i.getBargainRankList=function(a,t){var e={courseId:a,type:t};h.c.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(a){if(200===a.data.code){var t=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],e=a.data.data.out_list.map(function(a,e){return Object(s.a)({},a,{rank:t[e]})});i.setState({list:a.data.data.list,outList:e})}else n.a.info(a.data.msg,2)})},i.toCart=function(){var a={course_id:Object(h.b)("id")};h.c.post("".concat(API.home,"/m/cart/add"),a).then(function(a){200===a.data.code||15001===a.data.code?i.props.history.push("/shopcart"):n.a.info(a.data.msg,2)})},i.getMore=function(){i.setState({isShowMore:!0})},i.boxHide=function(a){i.setState({isShowMore:a})},i.toArtifact=function(){var a={courseId:Object(h.b)("id")};h.c.post("".concat(API.home,"/m/bargain/receiveLimit"),a).then(function(a){200===a.data.code?i.setState({isShowOverlay:!0,status:5}):n.a.info(a.data.msg,2)})},i.useArtifact=function(){i.toKanjia(Object(h.b)("id"),2,0)},i.toKanjia=function(a,t,e){var s={course_id:a,type:t,parent_uid:e};h.c.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(a){200===a.data.code?(i.setState({amount:a.data.data.amount}),2===t&&i.setState({isShowOverlay:!0,status:6}),1===a.data.data.is_success?i.setState({isShowOverlay:!0,status:4}):2===a.data.data.is_success?3===t?i.setState({isShowOverlay:!0,status:2}):4===t&&i.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===a.data.data.is_success&&(3===t?i.setState({isShowOverlay:!0,status:2}):4===t&&i.setState({isShowOverlay:!0,status:3})),i.getBargainInfo()):n.a.info(a.data.msg,2)})},i.friendBargainFirst=function(){i.toKanjia(Object(h.b)("id"),3,i.state.originatorUid)},i.friendBargainSecond=function(){i.toKanjia(Object(h.b)("id"),4,i.state.originatorUid)},i.shareFriendBargain=function(){i.setState({isShowOverlay:!0,status:7,isshowYindao:!!h.a.isWeixin})},i.close=function(){i.setState({isShowOverlay:!1,status:""})},i.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:e(564),courseList:"",data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0},i}return Object(m.a)(t,a),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(h.b)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"render",value:function(){var a,t,e,s=this;return 0===this.state.bargainData.is_artifact?a=d.a.createElement("div",null,"\u518d\u9080\u8bf7",d.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(a=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),t=d.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(a=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),t=d.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=d.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=d.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):1!==this.state.isOriginator&&2===this.state.data.assist_status?e=d.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=d.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f"):1===this.state.isOriginator&&0===this.state.data.bargain_status&&(e=d.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")),d.a.createElement("div",{className:"bargain-middle-page"},d.a.createElement(g.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0}),d.a.createElement("div",{className:"top"},d.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&d.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"),d.a.createElement("ul",null,d.a.createElement(g.i,{info:d.a.createElement(S,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),d.a.createElement("div",{className:"bargain-detail"},d.a.createElement("div",{className:"top"},d.a.createElement("div",null,"\u5df2\u780d",d.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&d.a.createElement("div",null,d.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),d.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&d.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),d.a.createElement("div",{className:"middle"},d.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&d.a.createElement("div",null,a,t),1===this.state.isOriginator&&1===this.state.data.bargain_status&&d.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",d.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u5929 "),d.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u65f6 "),d.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),d.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),d.a.createElement("div",{className:"button"},e))),d.a.createElement("div",{className:"bargain-records"},d.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),d.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(a,t){return d.a.createElement("li",{key:t},d.a.createElement("div",{className:"left"},d.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),d.a.createElement("span",{className:"nickname"},a.user_name),d.a.createElement("span",{className:"rank-tag"},a.rank)),d.a.createElement("div",{className:"right"},d.a.createElement("img",{className:"kanjia-icon",src:s.state.kanjiaIcon,alt:""}),"\u780d\u6389",d.a.createElement("span",{className:"price"},a.amount)))})),d.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),d.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},d.a.createElement("div",{className:"title-wrapper"},d.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),d.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")),d.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(a,t){return d.a.createElement(g.d,{className:"text-overflow-2",key:t,id:a.course_id,img:a.image_name,title:a.course_title,bottom:d.a.createElement(A,{item:a,toCart:s.toCart})})}))),d.a.createElement(p.b,{to:"/preferential",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),d.a.createElement(E.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&d.a.createElement(f.a,null,7===this.state.status&&d.a.createElement(L,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&d.a.createElement(k,{money:this.state.amount,avatar:this.props.user.data.avatar,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&d.a.createElement(C,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&d.a.createElement(B,{close:this.close,money:this.state.amount}),4===this.state.status&&d.a.createElement(U,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&d.a.createElement(w,{useArtifact:this.useArtifact}),6===this.state.status&&d.a.createElement(O,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&d.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(u.Component);function S(a){var t=a.data&&a.data.course;return d.a.createElement("div",{className:"des"},d.a.createElement("div",{className:"course-title text-overflow-2"},t.course_title),d.a.createElement("div",{className:"price-bar"},d.a.createElement("span",{className:"discount-price"},"\uffe5",t.course_price),1===a.isOriginator&&d.a.createElement("button",{className:"purchase-btn",onClick:a.toCart},"\xa5",t.pay_price,"\u53bb\u652f\u4ed8")))}function A(a){var t;return t=2===a.item.bargain_status?d.a.createElement(p.b,{to:"/detail?id=".concat(a.item.course_id),className:"bargain"},"\u6211\u8981\u780d\u4ef7"):3===a.item.bargain_status?d.a.createElement(p.b,{to:"/play?id=".concat(a.item.course_id),className:"bargain"},"\u53bb\u5b66\u4e60"):d.a.createElement("div",{className:"btns"},1===a.item.bargain_status&&d.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===a.item.bargain_status&&d.a.createElement(p.b,{to:"/detail?id=".concat(a.item.course_id),className:"bargain-btn"},"\u7ee7\u7eed\u780d\u4ef7"),d.a.createElement("button",{onClick:a.toCart,className:"purchase-btn"},"\xa5",a.item.pay_price,"\u53bb\u652f\u4ed8")),d.a.createElement("div",{className:"course-bottom"},d.a.createElement("div",{className:"course-price"},d.a.createElement("span",{className:"discount-price"},"\xa5",a.item.price1),d.a.createElement("span",{className:"original-price"},"\xa5",a.item.price0)),t)}function k(a){return d.a.createElement("div",{className:"bargain-public-number"},d.a.createElement("img",{className:"avait",src:a.avatar,alt:""}),a.firendBaigainPrice&&d.a.createElement("p",{className:"status-title ff4"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",a.money,"\u5143\uff01"),d.a.createElement("p",{className:"status-dec"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),d.a.createElement("img",{className:"public-number-img",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}))}function C(a){return d.a.createElement("div",{className:"bargain-first"},d.a.createElement("img",{className:"top-img",src:e(583),alt:""}),d.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",d.a.createElement("span",{className:"ff4"},a.money,"\u5143"),"\uff01"),d.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),d.a.createElement("button",{className:"bargain-href",onClick:a.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function B(a){return d.a.createElement("div",{className:"bargain-second"},d.a.createElement("img",{className:"top-img",src:e(583),alt:""}),d.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",d.a.createElement("span",{className:"ff4"},a.money,"\u5143"),"\uff01"),d.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:a.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function U(a){return d.a.createElement("div",{className:"not-bargain"},d.a.createElement("img",{className:"middle-img",src:e(704),alt:""}),d.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",d.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),d.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",a.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),d.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:a.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function w(a){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:a.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function O(a){return d.a.createElement("div",{className:"use-artifact-box"},d.a.createElement("img",{className:"top-img",src:e(583),alt:""}),d.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",a.money,"\u5143\uff01"),d.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",d.a.createElement("span",{className:"indicator"},a.allMoney,"\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:a.toCart},"\u53bb\u652f\u4ed8"))}function L(a){return d.a.createElement("div",null,d.a.createElement("div",{className:"close-bargain-success",onClick:a.close}),d.a.createElement("div",{className:"bargain-success"},a.isshowYindao&&d.a.createElement("i",{className:"iconfont iconyindao"}),d.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),d.a.createElement("p",null,"\u8d85\u8fc7",a.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}t.default=Object(j.d)(Object(N.b)(function(a){return{user:a.user}},null),b.g)(y)}}]);
//# sourceMappingURL=BargainMiddlePage.c8e3669c.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["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","components/bargainMiddlePage/index.js"],"names":["module","exports","root","document","body","documentElement","events","Overlay","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","preventScroll","e","preventDefault","overlayBox","_this2","forEach","item","addEventListener","passive","_this3","removeEventListener","_this4","ReactDom","createPortal","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","ref","el","style","top","concat","window","scrollY","children","Component","Ranking","closeMore","boxHide","state","kanjiaIcon","require","isShowMore","MoreList","list","limitPeople","img","icon","length","map","index","key","src","avatar_file","alt","user_name","amount","onClick","__webpack_require__","p","BargainMiddlePage","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","getBargainInfo","http","get","API","home","getParam","then","res","data","code","setState","isOriginator","is_originator","originatorUid","originator_uid","course","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","info","msg","getBargainCourse","courseList","getBargainRankList","id","type","courseId","post","arr","newList","out_list","i","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","rank","outList","toCart","course_id","history","push","getMore","val","toArtifact","isShowOverlay","status","useArtifact","toKanjia","uid","parent_uid","is_success","firendBaigainPrice","friendBargainFirst","friendBargainSecond","shareFriendBargain","isshowYindao","browser","isWeixin","close","isLoaidng","thirdRow","btn","bargainBtn","is_artifact","react__WEBPACK_IMPORTED_MODULE_8___default","invite_num","assist_status","bargain_status","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","CourseDes","String","padStart","image_name","course_title","bottom","CourseBottom","react_router_dom__WEBPACK_IMPORTED_MODULE_12__","to","_ranking__WEBPACK_IMPORTED_MODULE_14__","_detail_overlay__WEBPACK_IMPORTED_MODULE_16__","BargainSuccess","PublicNumber","money","avatar","user","BargainFirst","bargainSecond","BargainSecond","NotBargain","Artifact","UseArtifact","allMoney","course_price","pay_price","Buttons","price1","price0","href","color","compose","connect","withRouter"],"mappings":"2EAAAA,EAAAC,QAAA,65CCKMC,UAAOC,SAASC,MAAQD,SAASE,iBAEjCC,EAAS,CAAC,YAAa,cAEvBC,cACF,SAAAA,EAAYC,GAAO,IAAAC,E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dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII=\"","import React, { Component } from 'react';\nimport ReactDom from \"react-dom\";\n\nimport './overlay.scss'\n\nconst root = document.body || document.documentElement\n\nconst events = ['touchmove', 'mousewheel']\n\nclass Overlay extends Component {\n constructor(props) {\n super(props);\n this.overlayBox = null\n }\n\n preventScroll = e => {\n e.preventDefault()\n }\n\n componentDidMount() {\n events.forEach(item => {\n this.overlayBox.addEventListener(item, this.preventScroll, {\n passive: false\n })\n })\n }\n\n componentWillUnmount() {\n events.forEach(item => {\n this.overlayBox.removeEventListener(item, this.preventScroll)\n })\n }\n\n render() {\n return ReactDom.createPortal(\n (<div className={'overlay'}\n ref={el => this.overlayBox = el}\n style={{top: `${window.scrollY}px`}}\n >{this.props.children}</div>),\n root\n )\n }\n}\n\nexport default Overlay;","import React, {Component} from 'react'\nimport './index.scss'\n\nclass Ranking extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n kanjiaIcon: require('../image/kanjia_icon.png')\n }\n }\n\n // 关闭更多窗口\n closeMore = () => {\n this.props.boxHide(false);\n }\n\n render() {\n return (\n <div className={'ranking-box'}>\n {\n this.props.isShowMore &&\n <MoreList list={this.props.list} limitPeople={this.props.limitPeople} closeMore={this.closeMore}\n img={this.props.icon}/>\n }\n </div>\n );\n }\n}\n\nfunction MoreList(props) {\n return (\n <div className=\"moreMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n 好友助力详情\n </div>\n <ul className='more-bargain-list'>\n {\n props.list && props.list.length > 0 && props.list.map((item, index) => {\n return (\n <li key={index} className='bargain-item'>\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <p className='name'>{item.user_name}</p>\n <p className='bargain-status'>\n <img className='kanjia-icon' src={props.img} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </p>\n </li>\n )\n })\n }\n </ul>\n <div className='more-bargain-dec'>\n 超过{props.limitPeople}位好友助力可获得【砍价神器】\n </div>\n </div>\n <i onClick={props.closeMore} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n )\n}\n\nexport default Ranking","module.exports = __webpack_public_path__ + \"static/media/kanjia_cg_icon.81a489ac.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGVcUnqxjj40TWBdkmIe0igjUT+z0B7cUu6oUDKrj3yzDZrZU3Gqz7iwDn2zjX60TSwmkHuyTfvxTN7SCtfXFBbWVCNgEjStDznwjikdC6XZi2HVSxiXk+adkiYiEbdvDrWqjF/TCtmYU5vaE12bUyShEacikW1nkHitjLQojGlkkPTrDzZuTrHmTDDljC2iC+sfS6slkK9o0DHoT/OsTz2zDOebS6EUiy2kELApj/9yTfeszLarjHAkjDqXFPxg0imgUWuiETZtTvswTPovTKygy/0oIbxhmXveGDpWFTtbk33qj/0n3rqYVbsaFT2n0HBm0D5sj3huTq7jS/ykmzvekqfe0f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ZgL2Cjnb4+ah4wqmCHgLaUNtsNY8rCyAgXc9mxMHzL2Xg2GRL1nKEWpgmU/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==\"","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\";\n\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 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 data: res.data.data,\n isOriginator: res.data.data.is_originator,\n originatorUid: res.data.data.originator_uid,\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 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 } 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 // 查看更多\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 render() {\n\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\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 info={<CourseDes\n isOriginator={this.state.isOriginator}\n data={this.state.data}\n toCart={this.toCart}/>}\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 bottom={<CourseBottom\n item={item}\n toCart={this.toCart}\n />\n }\n />\n })\n }\n </ul>\n </div>\n <Link to={'/preferential'} 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 } else if (props.item.bargain_status === 3) {\n Buttons = <Link to={`/play?id=${props.item.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 <Link to={`/detail?id=${props.item.course_id}`} className={'bargain-btn'}>继续砍价</Link>\n\n }\n\n\n <button onClick={props.toCart}\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 compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(BargainMiddlePage)\n"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],d=r[1],u=r[2],f=0,l=[];f<i.length;f++)a=i[f],o[a]&&l.push(o[a][0]),o[a]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var d=t[a];0!==o[d]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,25:1,27:1,28:1,29:1,30: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:"9e05243b",1:"de22eb69",2:"ce9acdcb",3:"2e7d81ca",4:"1a38e85d",5:"31d6cfe0",6:"6576554c",7:"31d6cfe0",8:"21570c76",9:"20451cd3",10:"b59ee96d",11:"a93db4c0",12:"bef8c404",13:"9ece7350",14:"deae77c4",16:"3ab93c8e",17:"4b0044ec",19:"9fa57dd6",20:"82081d02",21:"2f1e5759",22:"49988cae",23:"5463a623",25:"4c706a4e",26:"31d6cfe0",27:"694b4628",28:"5ed15c7e",29:"ecbb6f9a",30:"bc06dce4"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var u=(s=c[d]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var f=document.getElementsByTagName("style");for(d=0;d<f.length;d++){var s;if((u=(s=f[d]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=function(e){return i.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"7dfab09b",1:"0c09c28b",2:"fcc26c19",3:"4d71b0d8",4:"04d34ba8",5:"d53d06e5",6:"f5e96bf7",7:"70b0db04",8:"5af8307e",9:"659805a5",10:"1240fd4e",11:"5b9868fb",12:"acf1ca74",13:"62c3afd6",14:"4ef70074",16:"10940b3d",17:"31fa5e4e",19:"5e68d822",20:"f667c34f",21:"55683afc",22:"38b70eb0",23:"371d8ec0",25:"6ccc443e",26:"7b048f4b",27:"fb848190",28:"d44dcc23",29:"f4c45245",30:"3933456b"}[e]+".chunk.js"}(e),c=function(r){d.onerror=d.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:d})},12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],u=d.push.bind(d);d.push=r,d=d.slice();for(var f=0;f<d.length;f++)r(d[f]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.10478d36.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],d=r[1],u=r[2],f=0,l=[];f<i.length;f++)a=i[f],o[a]&&l.push(o[a][0]),o[a]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var d=t[a];0!==o[d]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,25:1,27:1,28:1,29:1,30: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:"9e05243b",1:"de22eb69",2:"ce9acdcb",3:"2e7d81ca",4:"1a38e85d",5:"31d6cfe0",6:"6576554c",7:"31d6cfe0",8:"21570c76",9:"20451cd3",10:"b59ee96d",11:"a93db4c0",12:"bef8c404",13:"9ece7350",14:"deae77c4",16:"3ab93c8e",17:"4b0044ec",19:"9fa57dd6",20:"82081d02",21:"2f1e5759",22:"49988cae",23:"5463a623",25:"4c706a4e",26:"31d6cfe0",27:"694b4628",28:"5ed15c7e",29:"ecbb6f9a",30:"bc06dce4"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var u=(s=c[d]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var f=document.getElementsByTagName("style");for(d=0;d<f.length;d++){var s;if((u=(s=f[d]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,i.nc&&d.setAttribute("nonce",i.nc),d.src=function(e){return i.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"c8e3669c",1:"0c09c28b",2:"fcc26c19",3:"4d71b0d8",4:"04d34ba8",5:"d53d06e5",6:"f5e96bf7",7:"70b0db04",8:"5af8307e",9:"659805a5",10:"1240fd4e",11:"5b9868fb",12:"acf1ca74",13:"62c3afd6",14:"4ef70074",16:"10940b3d",17:"31fa5e4e",19:"5e68d822",20:"f667c34f",21:"55683afc",22:"38b70eb0",23:"371d8ec0",25:"6ccc443e",26:"7b048f4b",27:"fb848190",28:"d44dcc23",29:"f4c45245",30:"3933456b"}[e]+".chunk.js"}(e),c=function(r){d.onerror=d.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:d})},12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],u=d.push.bind(d);d.push=r,d=d.slice();for(var f=0;f<d.length;f++)r(d[f]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.28b2be20.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","25","27","28","29","30","Promise","resolve","reject","href","5","7","26","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd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OAAA2G,eAAAtF,EAAA,cAAiD4F,OAAA,KAQjDjG,EAAAkG,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAjG,EAAAiG,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAArH,OAAAsH,OAAA,MAGA,GAFAtG,EAAA8F,EAAAO,GACArH,OAAA2G,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAjG,EAAAuF,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIArG,EAAAyG,EAAA,SAAAnG,GACA,IAAAmF,EAAAnF,KAAA8F,WACA,WAA2B,OAAA9F,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAuF,EAAAE,EAAA,IAAAA,GACAA,GAIAzF,EAAA0F,EAAA,SAAAgB,EAAAC,GAAsD,OAAA3H,OAAAC,UAAAC,eAAAC,KAAAuH,EAAAC,IAGtD3G,EAAA2C,EAAA,IAGA3C,EAAA4G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAA/H,KAAAyH,KAAAM,GACAA,EAAA/H,KAAAX,EACA0I,IAAAG,QACA,QAAAtI,EAAA,EAAgBA,EAAAmI,EAAAjI,OAAuBF,IAAAP,EAAA0I,EAAAnI,IACvC,IAAAU,EAAA2H,EAIAvH","file":"static/js/runtime~main.10478d36.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\":\"7dfab09b\",\"1\":\"0c09c28b\",\"2\":\"fcc26c19\",\"3\":\"4d71b0d8\",\"4\":\"04d34ba8\",\"5\":\"d53d06e5\",\"6\":\"f5e96bf7\",\"7\":\"70b0db04\",\"8\":\"5af8307e\",\"9\":\"659805a5\",\"10\":\"1240fd4e\",\"11\":\"5b9868fb\",\"12\":\"acf1ca74\",\"13\":\"62c3afd6\",\"14\":\"4ef70074\",\"16\":\"10940b3d\",\"17\":\"31fa5e4e\",\"19\":\"5e68d822\",\"20\":\"f667c34f\",\"21\":\"55683afc\",\"22\":\"38b70eb0\",\"23\":\"371d8ec0\",\"25\":\"6ccc443e\",\"26\":\"7b048f4b\",\"27\":\"fb848190\",\"28\":\"d44dcc23\",\"29\":\"f4c45245\",\"30\":\"3933456b\"}[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,\"25\":1,\"27\":1,\"28\":1,\"29\":1,\"30\":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\":\"9e05243b\",\"1\":\"de22eb69\",\"2\":\"ce9acdcb\",\"3\":\"2e7d81ca\",\"4\":\"1a38e85d\",\"5\":\"31d6cfe0\",\"6\":\"6576554c\",\"7\":\"31d6cfe0\",\"8\":\"21570c76\",\"9\":\"20451cd3\",\"10\":\"b59ee96d\",\"11\":\"a93db4c0\",\"12\":\"bef8c404\",\"13\":\"9ece7350\",\"14\":\"deae77c4\",\"16\":\"3ab93c8e\",\"17\":\"4b0044ec\",\"19\":\"9fa57dd6\",\"20\":\"82081d02\",\"21\":\"2f1e5759\",\"22\":\"49988cae\",\"23\":\"5463a623\",\"25\":\"4c706a4e\",\"26\":\"31d6cfe0\",\"27\":\"694b4628\",\"28\":\"5ed15c7e\",\"29\":\"ecbb6f9a\",\"30\":\"bc06dce4\"}[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","25","27","28","29","30","Promise","resolve","reject","href","5","7","26","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,I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P 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\":\"c8e3669c\",\"1\":\"0c09c28b\",\"2\":\"fcc26c19\",\"3\":\"4d71b0d8\",\"4\":\"04d34ba8\",\"5\":\"d53d06e5\",\"6\":\"f5e96bf7\",\"7\":\"70b0db04\",\"8\":\"5af8307e\",\"9\":\"659805a5\",\"10\":\"1240fd4e\",\"11\":\"5b9868fb\",\"12\":\"acf1ca74\",\"13\":\"62c3afd6\",\"14\":\"4ef70074\",\"16\":\"10940b3d\",\"17\":\"31fa5e4e\",\"19\":\"5e68d822\",\"20\":\"f667c34f\",\"21\":\"55683afc\",\"22\":\"38b70eb0\",\"23\":\"371d8ec0\",\"25\":\"6ccc443e\",\"26\":\"7b048f4b\",\"27\":\"fb848190\",\"28\":\"d44dcc23\",\"29\":\"f4c45245\",\"30\":\"3933456b\"}[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,\"25\":1,\"27\":1,\"28\":1,\"29\":1,\"30\":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\":\"9e05243b\",\"1\":\"de22eb69\",\"2\":\"ce9acdcb\",\"3\":\"2e7d81ca\",\"4\":\"1a38e85d\",\"5\":\"31d6cfe0\",\"6\":\"6576554c\",\"7\":\"31d6cfe0\",\"8\":\"21570c76\",\"9\":\"20451cd3\",\"10\":\"b59ee96d\",\"11\":\"a93db4c0\",\"12\":\"bef8c404\",\"13\":\"9ece7350\",\"14\":\"deae77c4\",\"16\":\"3ab93c8e\",\"17\":\"4b0044ec\",\"19\":\"9fa57dd6\",\"20\":\"82081d02\",\"21\":\"2f1e5759\",\"22\":\"49988cae\",\"23\":\"5463a623\",\"25\":\"4c706a4e\",\"26\":\"31d6cfe0\",\"27\":\"694b4628\",\"28\":\"5ed15c7e\",\"29\":\"ecbb6f9a\",\"30\":\"bc06dce4\"}[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
import React, {Component} from 'react'
import React, { Component } from 'react'
import './bargain-middle-page.scss'
import {HeaderBar, VList} from '@common'
import {Course} from '@common'
import {api, getParam, http, browser} from "@/utils"
import {Toast} from "antd-mobile"
import {Link, withRouter} from "react-router-dom"
import { HeaderBar, VList } from '@common'
import { Course } from '@common'
import { api, getParam, http, browser } from "@/utils"
import { Toast } from "antd-mobile"
import { Link, withRouter } from "react-router-dom"
import Ranking from './ranking'
import {differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays} from "date-fns"
import { differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays } from "date-fns"
import Overlay from '../detail/overlay'
import {compose} from "redux"
import {connect} from "react-redux";
import { compose } from "redux"
import { connect } from "react-redux";
class BargainMiddlePage extends Component {
timer
constructor(props) {
super(props)
this.state = {
......@@ -58,6 +60,27 @@ class BargainMiddlePage extends Component {
limitPeople: res.data.data.course.limit_people,
bargainData: res.data.data.bargain,
width: (res.data.data.bargain.bargain_price / res.data.data.bargain.total_price).toFixed(2) * 100 + '%'
}, () => {
if (this.state.bargainData.expire_time) {
let date = this.state.bargainData.expire_time * 1000
let now = Date.now()
clearInterval(this.timer)
this.timer = setInterval(() => {
date -= 1000
let _d = new Date(date)
let s = differenceInSeconds(_d, now) % 60,
m = differenceInMinutes(_d, now) % 60,
h = differenceInHours(_d, now) % 24,
d = differenceInDays(_d, now) % 24
this.setState({
hour: h,
min: m,
sec: s,
day: d
})
}, 1000)
}
})
} else {
Toast.info(res.data.msg, 2)
......@@ -240,26 +263,6 @@ class BargainMiddlePage extends Component {
}
render() {
if (this.state.bargainData.expire_time) {
let date = this.state.bargainData.expire_time * 1000
let now = Date.now()
setInterval(() => {
date -= 1000
let s = differenceInSeconds(new Date(date), now) % 60,
m = differenceInMinutes(new Date(date), now) % 60,
h = differenceInHours(new Date(date), now) % 24,
d = differenceInDays(new Date(date), now) % 24
this.setState({
hour: h,
min: m,
sec: s,
day: d
})
}, 1000)
}
let thirdRow, btn
// is_artifact 0-再邀请多少人可以使用 1-可以使用未领取 2-已领取 3-已使用
......
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