Commit af45ad1f by wangshuo

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

parents 606981ba bb9f734e
{
"BargainMiddlePage.css": "/static/css/BargainMiddlePage.417c8635.chunk.css",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.d52ac203.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.d52ac203.chunk.js.map",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.a28416ee.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.a28416ee.chunk.js.map",
"Classify.css": "/static/css/Classify.b13bb9a5.chunk.css",
"Classify.js": "/static/js/Classify.7c83b805.chunk.js",
"Classify.js.map": "/static/js/Classify.7c83b805.chunk.js.map",
"Classify.js": "/static/js/Classify.a88ff223.chunk.js",
"Classify.js.map": "/static/js/Classify.a88ff223.chunk.js.map",
"CourseList.css": "/static/css/CourseList.49ca5e9b.chunk.css",
"CourseList.js": "/static/js/CourseList.4a28c0e7.chunk.js",
"CourseList.js.map": "/static/js/CourseList.4a28c0e7.chunk.js.map",
"CourseList.js": "/static/js/CourseList.27b2e6c3.chunk.js",
"CourseList.js.map": "/static/js/CourseList.27b2e6c3.chunk.js.map",
"DrawDocument.css": "/static/css/DrawDocument.aeb3f822.chunk.css",
"DrawDocument.js": "/static/js/DrawDocument.7411b8fa.chunk.js",
"DrawDocument.js.map": "/static/js/DrawDocument.7411b8fa.chunk.js.map",
"DrawDocument.js": "/static/js/DrawDocument.7fd9d55d.chunk.js",
"DrawDocument.js.map": "/static/js/DrawDocument.7fd9d55d.chunk.js.map",
"Examination.css": "/static/css/Examination.7bb0622b.chunk.css",
"Examination.js": "/static/js/Examination.e7077e18.chunk.js",
"Examination.js.map": "/static/js/Examination.e7077e18.chunk.js.map",
"MyEdit.js": "/static/js/MyEdit.e8f8cc5d.chunk.js",
"MyEdit.js.map": "/static/js/MyEdit.e8f8cc5d.chunk.js.map",
"Examination.js": "/static/js/Examination.3f59b16f.chunk.js",
"Examination.js.map": "/static/js/Examination.3f59b16f.chunk.js.map",
"MyEdit.js": "/static/js/MyEdit.539ac99a.chunk.js",
"MyEdit.js.map": "/static/js/MyEdit.539ac99a.chunk.js.map",
"Order.css": "/static/css/Order.c0945477.chunk.css",
"Order.js": "/static/js/Order.82ed0164.chunk.js",
"Order.js.map": "/static/js/Order.82ed0164.chunk.js.map",
"Orderinfo.js": "/static/js/Orderinfo.3f88f5a0.chunk.js",
"Orderinfo.js.map": "/static/js/Orderinfo.3f88f5a0.chunk.js.map",
"Order.js": "/static/js/Order.a579d31b.chunk.js",
"Order.js.map": "/static/js/Order.a579d31b.chunk.js.map",
"Orderinfo.js": "/static/js/Orderinfo.ccc104bf.chunk.js",
"Orderinfo.js.map": "/static/js/Orderinfo.ccc104bf.chunk.js.map",
"PayOrder.css": "/static/css/PayOrder.7eb7d317.chunk.css",
"PayOrder.js": "/static/js/PayOrder.15b3e5bc.chunk.js",
"PayOrder.js.map": "/static/js/PayOrder.15b3e5bc.chunk.js.map",
"PayOrder.js": "/static/js/PayOrder.ae2564f9.chunk.js",
"PayOrder.js.map": "/static/js/PayOrder.ae2564f9.chunk.js.map",
"Preferential.css": "/static/css/Preferential.a285bc5d.chunk.css",
"Preferential.js": "/static/js/Preferential.d5328928.chunk.js",
"Preferential.js.map": "/static/js/Preferential.d5328928.chunk.js.map",
"SearchResult.css": "/static/css/SearchResult.b10912cf.chunk.css",
"SearchResult.js": "/static/js/SearchResult.eea16f08.chunk.js",
"SearchResult.js.map": "/static/js/SearchResult.eea16f08.chunk.js.map",
"Preferential.js": "/static/js/Preferential.ef876af4.chunk.js",
"Preferential.js.map": "/static/js/Preferential.ef876af4.chunk.js.map",
"SearchResult.css": "/static/css/SearchResult.530e102d.chunk.css",
"SearchResult.js": "/static/js/SearchResult.43591d80.chunk.js",
"SearchResult.js.map": "/static/js/SearchResult.43591d80.chunk.js.map",
"ShopCart.css": "/static/css/ShopCart.92ab48a3.chunk.css",
"ShopCart.js": "/static/js/ShopCart.45a1532d.chunk.js",
"ShopCart.js.map": "/static/js/ShopCart.45a1532d.chunk.js.map",
"ShopCart.js": "/static/js/ShopCart.dd56865b.chunk.js",
"ShopCart.js.map": "/static/js/ShopCart.dd56865b.chunk.js.map",
"aist-share.css": "/static/css/aist-share.a97e13d0.chunk.css",
"aist-share.js": "/static/js/aist-share.fb4d12aa.chunk.js",
"aist-share.js.map": "/static/js/aist-share.fb4d12aa.chunk.js.map",
"aist-share.js": "/static/js/aist-share.966b948f.chunk.js",
"aist-share.js.map": "/static/js/aist-share.966b948f.chunk.js.map",
"coupons.css": "/static/css/coupons.f2c7a13b.chunk.css",
"coupons.js": "/static/js/coupons.3f67ea86.chunk.js",
"coupons.js.map": "/static/js/coupons.3f67ea86.chunk.js.map",
"detail.css": "/static/css/detail.7897f884.chunk.css",
"detail.js": "/static/js/detail.99f0eabf.chunk.js",
"detail.js.map": "/static/js/detail.99f0eabf.chunk.js.map",
"coupons.js": "/static/js/coupons.a921ef66.chunk.js",
"coupons.js.map": "/static/js/coupons.a921ef66.chunk.js.map",
"detail.css": "/static/css/detail.7ba4148b.chunk.css",
"detail.js": "/static/js/detail.208e4e64.chunk.js",
"detail.js.map": "/static/js/detail.208e4e64.chunk.js.map",
"main.css": "/static/css/main.792d1aeb.chunk.css",
"main.js": "/static/js/main.6a46c597.chunk.js",
"main.js.map": "/static/js/main.6a46c597.chunk.js.map",
"main.js": "/static/js/main.e8ba5b57.chunk.js",
"main.js.map": "/static/js/main.e8ba5b57.chunk.js.map",
"myorders.css": "/static/css/myorders.67814bde.chunk.css",
"myorders.js": "/static/js/myorders.a0e87ff3.chunk.js",
"myorders.js.map": "/static/js/myorders.a0e87ff3.chunk.js.map",
"myorders.js": "/static/js/myorders.cfd5a912.chunk.js",
"myorders.js.map": "/static/js/myorders.cfd5a912.chunk.js.map",
"purchased.css": "/static/css/purchased.19e06a3f.chunk.css",
"purchased.js": "/static/js/purchased.d4e89e8d.chunk.js",
"purchased.js.map": "/static/js/purchased.d4e89e8d.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.b7934ef1.js",
"runtime~main.js.map": "/static/js/runtime~main.b7934ef1.js.map",
"search.css": "/static/css/search.0f0e9639.chunk.css",
"search.js": "/static/js/search.79e5b107.chunk.js",
"search.js.map": "/static/js/search.79e5b107.chunk.js.map",
"purchased.js": "/static/js/purchased.04cbed77.chunk.js",
"purchased.js.map": "/static/js/purchased.04cbed77.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.e6de9828.js",
"runtime~main.js.map": "/static/js/runtime~main.e6de9828.js.map",
"search.css": "/static/css/search.5716d9b3.chunk.css",
"search.js": "/static/js/search.1f053f98.chunk.js",
"search.js.map": "/static/js/search.1f053f98.chunk.js.map",
"shareposter.css": "/static/css/shareposter.9e774e45.chunk.css",
"shareposter.js": "/static/js/shareposter.5c853d61.chunk.js",
"shareposter.js.map": "/static/js/shareposter.5c853d61.chunk.js.map",
"shareposter.js": "/static/js/shareposter.ce440fc4.chunk.js",
"shareposter.js.map": "/static/js/shareposter.ce440fc4.chunk.js.map",
"study.css": "/static/css/study.14e72a25.chunk.css",
"study.js": "/static/js/study.81f3ccd8.chunk.js",
"study.js.map": "/static/js/study.81f3ccd8.chunk.js.map",
"study.js": "/static/js/study.3923bc2e.chunk.js",
"study.js.map": "/static/js/study.3923bc2e.chunk.js.map",
"togroup.css": "/static/css/togroup.f08bc5f3.chunk.css",
"togroup.js": "/static/js/togroup.2438b92f.chunk.js",
"togroup.js.map": "/static/js/togroup.2438b92f.chunk.js.map",
"video.css": "/static/css/video.ac969c69.chunk.css",
"video.js": "/static/js/video.85bd98ff.chunk.js",
"video.js.map": "/static/js/video.85bd98ff.chunk.js.map",
"togroup.js": "/static/js/togroup.7dcc5f4b.chunk.js",
"togroup.js.map": "/static/js/togroup.7dcc5f4b.chunk.js.map",
"video.css": "/static/css/video.bafccd3e.chunk.css",
"video.js": "/static/js/video.a5562d60.chunk.js",
"video.js.map": "/static/js/video.a5562d60.chunk.js.map",
"static/css/24.4abd5c22.chunk.css": "/static/css/24.4abd5c22.chunk.css",
"static/js/24.ad81eedb.chunk.js": "/static/js/24.ad81eedb.chunk.js",
"static/js/24.ad81eedb.chunk.js.map": "/static/js/24.ad81eedb.chunk.js.map",
"static/js/25.403aae65.chunk.js": "/static/js/25.403aae65.chunk.js",
"static/js/25.403aae65.chunk.js.map": "/static/js/25.403aae65.chunk.js.map",
"static/js/24.74fab2ab.chunk.js": "/static/js/24.74fab2ab.chunk.js",
"static/js/24.74fab2ab.chunk.js.map": "/static/js/24.74fab2ab.chunk.js.map",
"static/js/25.e1e251e0.chunk.js": "/static/js/25.e1e251e0.chunk.js",
"static/js/25.e1e251e0.chunk.js.map": "/static/js/25.e1e251e0.chunk.js.map",
"static/css/26.73976871.chunk.css": "/static/css/26.73976871.chunk.css",
"static/js/26.219a86a3.chunk.js": "/static/js/26.219a86a3.chunk.js",
"static/js/26.219a86a3.chunk.js.map": "/static/js/26.219a86a3.chunk.js.map",
"static/js/26.dfc38a85.chunk.js": "/static/js/26.dfc38a85.chunk.js",
"static/js/26.dfc38a85.chunk.js.map": "/static/js/26.dfc38a85.chunk.js.map",
"static/js/27.33496196.chunk.js": "/static/js/27.33496196.chunk.js",
"static/js/27.33496196.chunk.js.map": "/static/js/27.33496196.chunk.js.map",
"static/css/28.42a89c77.chunk.css": "/static/css/28.42a89c77.chunk.css",
......@@ -91,7 +91,7 @@
"static/js/31.57a6441b.chunk.js": "/static/js/31.57a6441b.chunk.js",
"static/js/31.57a6441b.chunk.js.map": "/static/js/31.57a6441b.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.c9c795240610ab00c6c96d621d7a1b6f.js": "/precache-manifest.c9c795240610ab00c6c96d621d7a1b6f.js",
"precache-manifest.c95741bc7bfd88126e2c7dc194ba46d2.js": "/precache-manifest.c95741bc7bfd88126e2c7dc194ba46d2.js",
"service-worker.js": "/service-worker.js",
"static/css/24.4abd5c22.chunk.css.map": "/static/css/24.4abd5c22.chunk.css.map",
"static/css/26.73976871.chunk.css.map": "/static/css/26.73976871.chunk.css.map",
......@@ -107,19 +107,19 @@
"static/css/Order.c0945477.chunk.css.map": "/static/css/Order.c0945477.chunk.css.map",
"static/css/PayOrder.7eb7d317.chunk.css.map": "/static/css/PayOrder.7eb7d317.chunk.css.map",
"static/css/Preferential.a285bc5d.chunk.css.map": "/static/css/Preferential.a285bc5d.chunk.css.map",
"static/css/SearchResult.b10912cf.chunk.css.map": "/static/css/SearchResult.b10912cf.chunk.css.map",
"static/css/SearchResult.530e102d.chunk.css.map": "/static/css/SearchResult.530e102d.chunk.css.map",
"static/css/ShopCart.92ab48a3.chunk.css.map": "/static/css/ShopCart.92ab48a3.chunk.css.map",
"static/css/aist-share.a97e13d0.chunk.css.map": "/static/css/aist-share.a97e13d0.chunk.css.map",
"static/css/coupons.f2c7a13b.chunk.css.map": "/static/css/coupons.f2c7a13b.chunk.css.map",
"static/css/detail.7897f884.chunk.css.map": "/static/css/detail.7897f884.chunk.css.map",
"static/css/detail.7ba4148b.chunk.css.map": "/static/css/detail.7ba4148b.chunk.css.map",
"static/css/main.792d1aeb.chunk.css.map": "/static/css/main.792d1aeb.chunk.css.map",
"static/css/myorders.67814bde.chunk.css.map": "/static/css/myorders.67814bde.chunk.css.map",
"static/css/purchased.19e06a3f.chunk.css.map": "/static/css/purchased.19e06a3f.chunk.css.map",
"static/css/search.0f0e9639.chunk.css.map": "/static/css/search.0f0e9639.chunk.css.map",
"static/css/search.5716d9b3.chunk.css.map": "/static/css/search.5716d9b3.chunk.css.map",
"static/css/shareposter.9e774e45.chunk.css.map": "/static/css/shareposter.9e774e45.chunk.css.map",
"static/css/study.14e72a25.chunk.css.map": "/static/css/study.14e72a25.chunk.css.map",
"static/css/togroup.f08bc5f3.chunk.css.map": "/static/css/togroup.f08bc5f3.chunk.css.map",
"static/css/video.ac969c69.chunk.css.map": "/static/css/video.ac969c69.chunk.css.map",
"static/css/video.bafccd3e.chunk.css.map": "/static/css/video.bafccd3e.chunk.css.map",
"static/media/iconfont.css": "/static/media/iconfont.f983caa7.svg",
"static/media/kanjia_cg_icon.png": "/static/media/kanjia_cg_icon.81a489ac.png",
"static/media/video.scss": "/static/media/progress-share-bg.80011994.png"
......
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/static/css/24.4abd5c22.chunk.css" rel="stylesheet"><link href="/static/css/main.792d1aeb.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(u){function e(e){for(var r,t,a=e[0],n=e[1],o=e[2],c=0,i=[];c<a.length;c++)t=a[c],l[t]&&i.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(u[r]=n[r]);for(b&&b(e);i.length;)i.shift()();return d.push.apply(d,o||[]),f()}function f(){for(var e,r=0;r<d.length;r++){for(var t=d[r],a=!0,n=1;n<t.length;n++){var o=t[n];0!==l[o]&&(a=!1)}a&&(d.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},s={18:0},l={18:0},d=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return u[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(d){var e=[];s[d]?e.push(s[d]):0!==s[d]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[d]&&e.push(s[d]=new Promise(function(e,a){for(var r="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[d]||d)+"."+{0:"417c8635",1:"b13bb9a5",2:"49ca5e9b",3:"aeb3f822",4:"7bb0622b",5:"31d6cfe0",6:"c0945477",7:"31d6cfe0",8:"7eb7d317",9:"a285bc5d",10:"b10912cf",11:"92ab48a3",12:"a97e13d0",13:"f2c7a13b",14:"7897f884",16:"67814bde",17:"19e06a3f",19:"0f0e9639",20:"9e774e45",21:"14e72a25",22:"f08bc5f3",23:"ac969c69",25:"31d6cfe0",26:"73976871",27:"31d6cfe0",28:"42a89c77",29:"bf839917",30:"35e22f8c",31:"57d8b033"}[d]+".chunk.css",n=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(u=t[o]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(c===r||c===n))return e()}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var u;if((c=(u=i[o]).getAttribute("data-href"))===r||c===n)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+d+" failed.\n("+r+")");t.request=r,delete s[d],f.parentNode.removeChild(f),a(t)},f.href=n,document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){s[d]=0}));var t=l[d];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[d]=[e,r]});e.push(t[2]=r);var a,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[d]||d)+"."+{0:"d52ac203",1:"7c83b805",2:"4a28c0e7",3:"7411b8fa",4:"e7077e18",5:"e8f8cc5d",6:"82ed0164",7:"3f88f5a0",8:"15b3e5bc",9:"d5328928",10:"eea16f08",11:"45a1532d",12:"fb4d12aa",13:"3f67ea86",14:"99f0eabf",16:"a0e87ff3",17:"d4e89e8d",19:"79e5b107",20:"5c853d61",21:"81f3ccd8",22:"2438b92f",23:"85bd98ff",25:"403aae65",26:"219a86a3",27:"33496196",28:"bddce1a4",29:"b94e2aac",30:"50307e1d",31:"57a6441b"}[d]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[d];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src,n=new Error("Loading chunk "+d+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}l[d]=void 0}};var c=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},p.m=u,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 a in r)p.d(t,a,function(e){return r[e]}.bind(null,a));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||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var b=a;f()}([])</script><script src="/static/js/24.ad81eedb.chunk.js"></script><script src="/static/js/main.6a46c597.chunk.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/static/css/24.4abd5c22.chunk.css" rel="stylesheet"><link href="/static/css/main.792d1aeb.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,26:1,28:1,29:1,30:1,31: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:"417c8635",1:"b13bb9a5",2:"49ca5e9b",3:"aeb3f822",4:"7bb0622b",5:"31d6cfe0",6:"c0945477",7:"31d6cfe0",8:"7eb7d317",9:"a285bc5d",10:"530e102d",11:"92ab48a3",12:"a97e13d0",13:"f2c7a13b",14:"7ba4148b",16:"67814bde",17:"19e06a3f",19:"5716d9b3",20:"9e774e45",21:"14e72a25",22:"f08bc5f3",23:"bafccd3e",25:"31d6cfe0",26:"73976871",27:"31d6cfe0",28:"42a89c77",29:"bf839917",30:"35e22f8c",31:"57d8b033"}[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:"a28416ee",1:"a88ff223",2:"27b2e6c3",3:"7fd9d55d",4:"3f59b16f",5:"539ac99a",6:"a579d31b",7:"ccc104bf",8:"ae2564f9",9:"ef876af4",10:"43591d80",11:"dd56865b",12:"966b948f",13:"a921ef66",14:"208e4e64",16:"cfd5a912",17:"04cbed77",19:"1f053f98",20:"ce440fc4",21:"3923bc2e",22:"7dcc5f4b",23:"a5562d60",25:"e1e251e0",26:"dfc38a85",27:"33496196",28:"bddce1a4",29:"b94e2aac",30:"50307e1d",31:"57a6441b"}[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.74fab2ab.chunk.js"></script><script src="/static/js/main.e8ba5b57.chunk.js"></script></body></html>
\ No newline at end of file
self.__precacheManifest = [
{
"revision": "12f72985377d2b555058",
"url": "/static/js/purchased.04cbed77.chunk.js"
},
{
"revision": "6abdfc31efcca258a2a7",
"url": "/static/css/BargainMiddlePage.417c8635.chunk.css"
},
{
"revision": "b5e6c7dd5aa8bf13852f",
"url": "/static/css/Classify.b13bb9a5.chunk.css"
},
{
"revision": "b5e6c7dd5aa8bf13852f",
"url": "/static/js/Classify.a88ff223.chunk.js"
},
{
"revision": "281f6809e4249e762a4e",
"url": "/static/css/CourseList.49ca5e9b.chunk.css"
},
{
"revision": "281f6809e4249e762a4e",
"url": "/static/js/CourseList.27b2e6c3.chunk.js"
},
{
"revision": "2a34a8f4ca1effab3622",
"url": "/static/css/DrawDocument.aeb3f822.chunk.css"
},
{
"revision": "2a34a8f4ca1effab3622",
"url": "/static/js/DrawDocument.7fd9d55d.chunk.js"
},
{
"revision": "815b77f12202ed76f4b1",
"url": "/static/css/Examination.7bb0622b.chunk.css"
},
{
"revision": "815b77f12202ed76f4b1",
"url": "/static/js/Examination.3f59b16f.chunk.js"
},
{
"revision": "ffebe892c93d41c54cb7",
"url": "/static/js/MyEdit.539ac99a.chunk.js"
},
{
"revision": "6f7567fb61ab9d0942b4",
"url": "/static/css/Order.c0945477.chunk.css"
},
{
"revision": "6f7567fb61ab9d0942b4",
"url": "/static/js/Order.a579d31b.chunk.js"
},
{
"revision": "7a108067d8a9416186b7",
"url": "/static/js/Orderinfo.ccc104bf.chunk.js"
},
{
"revision": "813320e45d0d6cf04489",
"url": "/static/css/PayOrder.7eb7d317.chunk.css"
},
{
"revision": "813320e45d0d6cf04489",
"url": "/static/js/PayOrder.ae2564f9.chunk.js"
},
{
"revision": "c5b81a737ec66ae02e45",
"url": "/static/css/Preferential.a285bc5d.chunk.css"
},
{
"revision": "c5b81a737ec66ae02e45",
"url": "/static/js/Preferential.ef876af4.chunk.js"
},
{
"revision": "d88b7e68021a0164a8eb",
"url": "/static/css/SearchResult.530e102d.chunk.css"
},
{
"revision": "d88b7e68021a0164a8eb",
"url": "/static/js/SearchResult.43591d80.chunk.js"
},
{
"revision": "a99b90dc938c613119e2",
"url": "/static/css/ShopCart.92ab48a3.chunk.css"
},
{
"revision": "a99b90dc938c613119e2",
"url": "/static/js/ShopCart.dd56865b.chunk.js"
},
{
"revision": "a2577ac9940b16b159e8",
"url": "/static/css/aist-share.a97e13d0.chunk.css"
},
{
"revision": "a2577ac9940b16b159e8",
"url": "/static/js/aist-share.966b948f.chunk.js"
},
{
"revision": "59e06aa8268b6aadab5c",
"url": "/static/css/coupons.f2c7a13b.chunk.css"
},
{
"revision": "59e06aa8268b6aadab5c",
"url": "/static/js/coupons.a921ef66.chunk.js"
},
{
"revision": "ad4d69c39c6a88679365",
"url": "/static/css/detail.7ba4148b.chunk.css"
},
{
"revision": "ad4d69c39c6a88679365",
"url": "/static/js/detail.208e4e64.chunk.js"
},
{
"revision": "9baafa3d01d121f203d6",
"url": "/static/css/main.792d1aeb.chunk.css"
},
{
"revision": "9baafa3d01d121f203d6",
"url": "/static/js/main.e8ba5b57.chunk.js"
},
{
"revision": "00062a6ec54d00afa8ae",
"url": "/static/css/myorders.67814bde.chunk.css"
},
{
"revision": "00062a6ec54d00afa8ae",
"url": "/static/js/myorders.cfd5a912.chunk.js"
},
{
"revision": "12f72985377d2b555058",
"url": "/static/css/purchased.19e06a3f.chunk.css"
},
{
"revision": "6abdfc31efcca258a2a7",
"url": "/static/js/BargainMiddlePage.a28416ee.chunk.js"
},
{
"revision": "49cc77e34955446e3229",
"url": "/static/js/runtime~main.e6de9828.js"
},
{
"revision": "52684af606de7d69280c",
"url": "/static/css/search.5716d9b3.chunk.css"
},
{
"revision": "52684af606de7d69280c",
"url": "/static/js/search.1f053f98.chunk.js"
},
{
"revision": "c1afe26b00a3b441fd8f",
"url": "/static/css/shareposter.9e774e45.chunk.css"
},
{
"revision": "c1afe26b00a3b441fd8f",
"url": "/static/js/shareposter.ce440fc4.chunk.js"
},
{
"revision": "b56dea5566be75e13847",
"url": "/static/css/study.14e72a25.chunk.css"
},
{
"revision": "b56dea5566be75e13847",
"url": "/static/js/study.3923bc2e.chunk.js"
},
{
"revision": "b3cf926f93066e99cd68",
"url": "/static/css/togroup.f08bc5f3.chunk.css"
},
{
"revision": "b3cf926f93066e99cd68",
"url": "/static/js/togroup.7dcc5f4b.chunk.js"
},
{
"revision": "6b26faf67cabac992f79",
"url": "/static/css/video.bafccd3e.chunk.css"
},
{
"revision": "6b26faf67cabac992f79",
"url": "/static/js/video.a5562d60.chunk.js"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/static/media/progress-share-bg.80011994.png"
},
{
"revision": "3b4c00927ebcb01ca19e",
"url": "/static/js/24.74fab2ab.chunk.js"
},
{
"revision": "aafa87f76fee515850ad",
"url": "/static/js/25.e1e251e0.chunk.js"
},
{
"revision": "81a489ac63f2f2df5ab412e0782bd54c",
"url": "/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "bf7c013558833da61d3d",
"url": "/static/js/26.dfc38a85.chunk.js"
},
{
"revision": "2725cf82a2822752e44f",
"url": "/static/js/27.33496196.chunk.js"
},
{
"revision": "f983caa7c06f105373e7e1aec42da261",
"url": "/static/media/iconfont.f983caa7.svg"
},
{
"revision": "94d20aba613131d7195d",
"url": "/static/js/28.bddce1a4.chunk.js"
},
{
"revision": "145742789ab409c81f28938b15b5dee7",
"url": "/static/media/iconfont.14574278.ttf"
},
{
"revision": "ba9765edee55933198a2",
"url": "/static/js/29.b94e2aac.chunk.js"
},
{
"revision": "cd1c41437a2e35a283e4b16b620a8c9e",
"url": "/static/media/iconfont.cd1c4143.eot"
},
{
"revision": "f989e5bbf4d3f3b4cc0d",
"url": "/static/js/30.50307e1d.chunk.js"
},
{
"revision": "7b542c778563daa7cc420d21ed1601b3",
"url": "/static/media/iconfont.7b542c77.woff"
},
{
"revision": "f12fd8160493994e9cd4",
"url": "/static/js/31.57a6441b.chunk.js"
},
{
"revision": "f12fd8160493994e9cd4",
"url": "/static/css/31.57d8b033.chunk.css"
},
{
"revision": "f989e5bbf4d3f3b4cc0d",
"url": "/static/css/30.35e22f8c.chunk.css"
},
{
"revision": "ba9765edee55933198a2",
"url": "/static/css/29.bf839917.chunk.css"
},
{
"revision": "94d20aba613131d7195d",
"url": "/static/css/28.42a89c77.chunk.css"
},
{
"revision": "bf7c013558833da61d3d",
"url": "/static/css/26.73976871.chunk.css"
},
{
"revision": "3b4c00927ebcb01ca19e",
"url": "/static/css/24.4abd5c22.chunk.css"
},
{
"revision": "52afbee21b12c0ce1c3f08a292227256",
"url": "/index.html"
}
];
\ No newline at end of file
self.__precacheManifest = [
{
"revision": "709b6293a9e0849b8a8b",
"url": "/static/js/purchased.d4e89e8d.chunk.js"
},
{
"revision": "a352547df99e2c07f14b",
"url": "/static/css/BargainMiddlePage.417c8635.chunk.css"
},
{
"revision": "a92b19b373ae4a65506d",
"url": "/static/css/Classify.b13bb9a5.chunk.css"
},
{
"revision": "a92b19b373ae4a65506d",
"url": "/static/js/Classify.7c83b805.chunk.js"
},
{
"revision": "0d50a4316c3ad8e75dfe",
"url": "/static/css/CourseList.49ca5e9b.chunk.css"
},
{
"revision": "0d50a4316c3ad8e75dfe",
"url": "/static/js/CourseList.4a28c0e7.chunk.js"
},
{
"revision": "cd37632e41bcd928dbd5",
"url": "/static/css/DrawDocument.aeb3f822.chunk.css"
},
{
"revision": "cd37632e41bcd928dbd5",
"url": "/static/js/DrawDocument.7411b8fa.chunk.js"
},
{
"revision": "5d57561dc6c1973550dc",
"url": "/static/css/Examination.7bb0622b.chunk.css"
},
{
"revision": "5d57561dc6c1973550dc",
"url": "/static/js/Examination.e7077e18.chunk.js"
},
{
"revision": "4413ff8a6d9a13c12025",
"url": "/static/js/MyEdit.e8f8cc5d.chunk.js"
},
{
"revision": "2b5f4b5bb1729f74f8b8",
"url": "/static/css/Order.c0945477.chunk.css"
},
{
"revision": "2b5f4b5bb1729f74f8b8",
"url": "/static/js/Order.82ed0164.chunk.js"
},
{
"revision": "4e4065e81d930cc4af0b",
"url": "/static/js/Orderinfo.3f88f5a0.chunk.js"
},
{
"revision": "f5d5a755816c67104a6d",
"url": "/static/css/PayOrder.7eb7d317.chunk.css"
},
{
"revision": "f5d5a755816c67104a6d",
"url": "/static/js/PayOrder.15b3e5bc.chunk.js"
},
{
"revision": "3d4c9a50a45a7a737354",
"url": "/static/css/Preferential.a285bc5d.chunk.css"
},
{
"revision": "3d4c9a50a45a7a737354",
"url": "/static/js/Preferential.d5328928.chunk.js"
},
{
"revision": "1317462503366332f158",
"url": "/static/css/SearchResult.b10912cf.chunk.css"
},
{
"revision": "1317462503366332f158",
"url": "/static/js/SearchResult.eea16f08.chunk.js"
},
{
"revision": "83f6105fa6a2ef922a20",
"url": "/static/css/ShopCart.92ab48a3.chunk.css"
},
{
"revision": "83f6105fa6a2ef922a20",
"url": "/static/js/ShopCart.45a1532d.chunk.js"
},
{
"revision": "8b6b98c6bd6ba5cd63a5",
"url": "/static/css/aist-share.a97e13d0.chunk.css"
},
{
"revision": "8b6b98c6bd6ba5cd63a5",
"url": "/static/js/aist-share.fb4d12aa.chunk.js"
},
{
"revision": "9f91e812141824f98507",
"url": "/static/css/coupons.f2c7a13b.chunk.css"
},
{
"revision": "9f91e812141824f98507",
"url": "/static/js/coupons.3f67ea86.chunk.js"
},
{
"revision": "bfa6544aed76398d5d07",
"url": "/static/css/detail.7897f884.chunk.css"
},
{
"revision": "bfa6544aed76398d5d07",
"url": "/static/js/detail.99f0eabf.chunk.js"
},
{
"revision": "4175689dfc743d8be06a",
"url": "/static/css/main.792d1aeb.chunk.css"
},
{
"revision": "4175689dfc743d8be06a",
"url": "/static/js/main.6a46c597.chunk.js"
},
{
"revision": "573d199a875b2d2818da",
"url": "/static/css/myorders.67814bde.chunk.css"
},
{
"revision": "573d199a875b2d2818da",
"url": "/static/js/myorders.a0e87ff3.chunk.js"
},
{
"revision": "709b6293a9e0849b8a8b",
"url": "/static/css/purchased.19e06a3f.chunk.css"
},
{
"revision": "a352547df99e2c07f14b",
"url": "/static/js/BargainMiddlePage.d52ac203.chunk.js"
},
{
"revision": "9fe6f4da6a5ff8a2f469",
"url": "/static/js/runtime~main.b7934ef1.js"
},
{
"revision": "5c064a3260d6cb54efd8",
"url": "/static/css/search.0f0e9639.chunk.css"
},
{
"revision": "5c064a3260d6cb54efd8",
"url": "/static/js/search.79e5b107.chunk.js"
},
{
"revision": "07c58e67b603057be100",
"url": "/static/css/shareposter.9e774e45.chunk.css"
},
{
"revision": "07c58e67b603057be100",
"url": "/static/js/shareposter.5c853d61.chunk.js"
},
{
"revision": "d5aa2b543fa10d8f0988",
"url": "/static/css/study.14e72a25.chunk.css"
},
{
"revision": "d5aa2b543fa10d8f0988",
"url": "/static/js/study.81f3ccd8.chunk.js"
},
{
"revision": "e5829673fb781a98e4ed",
"url": "/static/css/togroup.f08bc5f3.chunk.css"
},
{
"revision": "e5829673fb781a98e4ed",
"url": "/static/js/togroup.2438b92f.chunk.js"
},
{
"revision": "2ed18a5bab524b5f94cd",
"url": "/static/css/video.ac969c69.chunk.css"
},
{
"revision": "2ed18a5bab524b5f94cd",
"url": "/static/js/video.85bd98ff.chunk.js"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/static/media/progress-share-bg.80011994.png"
},
{
"revision": "474ad90773b622e6af71",
"url": "/static/js/24.ad81eedb.chunk.js"
},
{
"revision": "c36733f1a53eb4beb646",
"url": "/static/js/25.403aae65.chunk.js"
},
{
"revision": "81a489ac63f2f2df5ab412e0782bd54c",
"url": "/static/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "d32785ee7f3be183782e",
"url": "/static/js/26.219a86a3.chunk.js"
},
{
"revision": "2725cf82a2822752e44f",
"url": "/static/js/27.33496196.chunk.js"
},
{
"revision": "f983caa7c06f105373e7e1aec42da261",
"url": "/static/media/iconfont.f983caa7.svg"
},
{
"revision": "94d20aba613131d7195d",
"url": "/static/js/28.bddce1a4.chunk.js"
},
{
"revision": "145742789ab409c81f28938b15b5dee7",
"url": "/static/media/iconfont.14574278.ttf"
},
{
"revision": "ba9765edee55933198a2",
"url": "/static/js/29.b94e2aac.chunk.js"
},
{
"revision": "cd1c41437a2e35a283e4b16b620a8c9e",
"url": "/static/media/iconfont.cd1c4143.eot"
},
{
"revision": "f989e5bbf4d3f3b4cc0d",
"url": "/static/js/30.50307e1d.chunk.js"
},
{
"revision": "7b542c778563daa7cc420d21ed1601b3",
"url": "/static/media/iconfont.7b542c77.woff"
},
{
"revision": "f12fd8160493994e9cd4",
"url": "/static/js/31.57a6441b.chunk.js"
},
{
"revision": "f12fd8160493994e9cd4",
"url": "/static/css/31.57d8b033.chunk.css"
},
{
"revision": "f989e5bbf4d3f3b4cc0d",
"url": "/static/css/30.35e22f8c.chunk.css"
},
{
"revision": "ba9765edee55933198a2",
"url": "/static/css/29.bf839917.chunk.css"
},
{
"revision": "94d20aba613131d7195d",
"url": "/static/css/28.42a89c77.chunk.css"
},
{
"revision": "d32785ee7f3be183782e",
"url": "/static/css/26.73976871.chunk.css"
},
{
"revision": "474ad90773b622e6af71",
"url": "/static/css/24.4abd5c22.chunk.css"
},
{
"revision": "a6bbcc75400ccc55ac5f15a3d17425b5",
"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.c9c795240610ab00c6c96d621d7a1b6f.js"
"/precache-manifest.c95741bc7bfd88126e2c7dc194ba46d2.js"
);
workbox.clientsClaim();
......
.am-search{display:flex;align-items:center;height:11.733333vw;padding:0 2.133333vw;background-color:#efeff4}.am-search,.am-search-input{position:relative;overflow:hidden}.am-search-input{flex:1 1;width:100%;height:7.466667vw;background-color:#fff;background-clip:padding-box;border-radius:.8vw}.am-search-input .am-search-synthetic-ph,.am-search-input input[type=search]{position:absolute;top:0;left:0}.am-search-input .am-search-synthetic-ph{box-sizing:initial;z-index:1;height:7.466667vw;line-height:7.466667vw;width:100%;-webkit-transition:width .3s;transition:width .3s;display:block;text-align:center}.am-search-input .am-search-synthetic-ph-icon{display:inline-block;margin-right:1.333333vw;width:4vw;height:4vw;overflow:hidden;vertical-align:-.666667vw;background-repeat:no-repeat;background-size:4vw auto;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='38' height='36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M29.05 25.23a15.81 15.81 0 0 0 3.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02 7.136.02 15.936c0 8.802 7.172 15.937 16.017 15.937a16 16 0 0 0 10.772-4.143l8.873 8.232 2.296-2.45-8.927-8.282zM16.2 28.933c-7.19 0-13.04-5.788-13.04-12.903 0-7.113 5.85-12.904 13.04-12.904 7.19 0 12.9 5.79 12.9 12.904 0 7.115-5.71 12.903-12.9 12.903z' fill='%23bbb' fill-rule='evenodd'/%3E%3C/svg%3E")}.am-search-input .am-search-synthetic-ph-placeholder{color:#bbb;font-size:4vw}.am-search-input input[type=search]{z-index:2;opacity:0;width:100%;text-align:left;display:block;color:#000;height:7.466667vw;font-size:4vw;background-color:initial;border:0}.am-search-input input[type=search]::-webkit-input-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-moz-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-ms-input-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.am-search-input .am-search-clear{box-sizing:initial;position:absolute;display:none;z-index:3;width:4vw;height:4vw;padding:1.733333vw;border-radius:50%;top:0;right:0;background-color:initial;background-position:50%;background-repeat:no-repeat;background-size:4vw 4vw;-webkit-transition:all .3s;transition:all .3s;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23ccc'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M8 8l12 12'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M20 8L8 20'/%3E%3C/svg%3E")}.am-search-input .am-search-clear-active{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23108ee9'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M8 8l12 12'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M20 8L8 20'/%3E%3C/svg%3E")}.am-search-input .am-search-clear-show{display:block}.am-search-cancel{flex:none;opacity:0;padding-left:2.133333vw;height:11.733333vw;line-height:11.733333vw;font-size:4.266667vw;color:#108ee9;text-align:right}.am-search-cancel-anim{-webkit-transition:margin-right .3s,opacity .3s;transition:margin-right .3s,opacity .3s;-webkit-transition-delay:.1s;transition-delay:.1s}.am-search-cancel-show{opacity:1}.am-search.am-search-start .am-search-input input[type=search]{opacity:1;padding:0 7.466667vw 0 9.333333vw}.am-search.am-search-start .am-search-input input[type=search]::-webkit-input-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::-moz-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::-ms-input-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::placeholder{color:transparent}.am-search.am-search-start .am-search-input .am-search-synthetic-ph{padding-left:4vw;width:auto}.search-head{height:11.733333vw;display:flex;background-color:#f7f9fc;border-bottom:1px solid #eee}.search-head .left{width:11.733333vw;height:11.733333vw;line-height:11.733333vw;text-align:center}.search-head .left img{width:3.733333vw;height:3.733333vw;display:block;padding:4vw}.search-head .center{flex:1 1}.search-head .center .am-search{background-color:#f7f9fc}.search-head .center .am-search .am-search-input{background:#f0f2f6;border-radius:11.733333vw}.search-head .center .am-search-start .am-search-input{background:#fff;border-radius:11.733333vw}.search-head .right{width:11.733333vw;height:11.733333vw;line-height:11.733333vw}.search-head .right .am-icon-md{padding:2.933333vw}.search-head .right-btn{width:auto}.search-head .right-btn .submit-btn{line-height:8vw;border:0;height:8vw;padding:0 3.2vw;margin:1.866667vw 0;border-radius:.8vw;font-size:3.733333vw;color:#333}.am-search{height:11.466667vw;padding:0}.search-result ul{list-style:none}.search-result .v-list-item .content{width:100%}.search-result .info{display:flex;flex-wrap:wrap;width:50%}.search-result .info .title{overflow:hidden;font-size:3.733333vw;white-space:nowrap;text-overflow:ellipsis}.search-result .info .des{font-size:3.2vw;line-height:4.266667vw;align-self:flex-start}.search-result .info .price{color:#ff2121;font-size:4.266667vw;margin-right:3.733333vw}.search-result .info .stale-price{text-decoration:line-through;color:#999;font-size:3.2vw}.search-result .info .bottom{align-self:flex-end}.search-result .empty{font-size:3.2vw;color:#666;padding:8vw 0;text-align:center;background-color:#f5f5f5}.search-result .status{width:100%;position:absolute;bottom:-.533333vw;left:0;height:6.4vw;text-align:center;line-height:6.4vw;font-size:3.466667vw;color:#fff;background-color:rgba(224,46,36,.6)}.search-result .recommendation{padding:0 4vw}.search-result .recommendation .title{width:100%;font-size:4vw;padding:5.333333vw 0 1.333333vw;text-align:center}.search-result .recommendation .courses{display:flex;flex-flow:wrap;justify-content:space-between}.search-result .recommendation .bottom{margin-top:3.2vw}.search-result .recommendation .price{color:#ff2121;font-size:4vw;margin-right:4vw}.search-result .recommendation .old-price{color:#999;font-size:2.933333vw;text-decoration:line-through}
/*# sourceMappingURL=SearchResult.b10912cf.chunk.css.map */
\ No newline at end of file
.am-search{display:flex;align-items:center;height:11.733333vw;padding:0 2.133333vw;background-color:#efeff4}.am-search,.am-search-input{position:relative;overflow:hidden}.am-search-input{flex:1 1;width:100%;height:7.466667vw;background-color:#fff;background-clip:padding-box;border-radius:.8vw}.am-search-input .am-search-synthetic-ph,.am-search-input input[type=search]{position:absolute;top:0;left:0}.am-search-input .am-search-synthetic-ph{box-sizing:initial;z-index:1;height:7.466667vw;line-height:7.466667vw;width:100%;-webkit-transition:width .3s;transition:width .3s;display:block;text-align:center}.am-search-input .am-search-synthetic-ph-icon{display:inline-block;margin-right:1.333333vw;width:4vw;height:4vw;overflow:hidden;vertical-align:-.666667vw;background-repeat:no-repeat;background-size:4vw auto;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='38' height='36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M29.05 25.23a15.81 15.81 0 0 0 3.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02 7.136.02 15.936c0 8.802 7.172 15.937 16.017 15.937a16 16 0 0 0 10.772-4.143l8.873 8.232 2.296-2.45-8.927-8.282zM16.2 28.933c-7.19 0-13.04-5.788-13.04-12.903 0-7.113 5.85-12.904 13.04-12.904 7.19 0 12.9 5.79 12.9 12.904 0 7.115-5.71 12.903-12.9 12.903z' fill='%23bbb' fill-rule='evenodd'/%3E%3C/svg%3E")}.am-search-input .am-search-synthetic-ph-placeholder{color:#bbb;font-size:4vw}.am-search-input input[type=search]{z-index:2;opacity:0;width:100%;text-align:left;display:block;color:#000;height:7.466667vw;font-size:4vw;background-color:initial;border:0}.am-search-input input[type=search]::-webkit-input-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-moz-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-ms-input-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.am-search-input .am-search-clear{box-sizing:initial;position:absolute;display:none;z-index:3;width:4vw;height:4vw;padding:1.733333vw;border-radius:50%;top:0;right:0;background-color:initial;background-position:50%;background-repeat:no-repeat;background-size:4vw 4vw;-webkit-transition:all .3s;transition:all .3s;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23ccc'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M8 8l12 12'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M20 8L8 20'/%3E%3C/svg%3E")}.am-search-input .am-search-clear-active{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23108ee9'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M8 8l12 12'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M20 8L8 20'/%3E%3C/svg%3E")}.am-search-input .am-search-clear-show{display:block}.am-search-cancel{flex:none;opacity:0;padding-left:2.133333vw;height:11.733333vw;line-height:11.733333vw;font-size:4.266667vw;color:#108ee9;text-align:right}.am-search-cancel-anim{-webkit-transition:margin-right .3s,opacity .3s;transition:margin-right .3s,opacity .3s;-webkit-transition-delay:.1s;transition-delay:.1s}.am-search-cancel-show{opacity:1}.am-search.am-search-start .am-search-input input[type=search]{opacity:1;padding:0 7.466667vw 0 9.333333vw}.am-search.am-search-start .am-search-input input[type=search]::-webkit-input-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::-moz-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::-ms-input-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::placeholder{color:transparent}.am-search.am-search-start .am-search-input .am-search-synthetic-ph{padding-left:4vw;width:auto}.search-head{height:11.733333vw;display:flex;background-color:#f7f9fc;border-bottom:1px solid #eee}.search-head .left{width:11.733333vw;height:11.733333vw;line-height:11.733333vw;text-align:center}.search-head .left img{width:3.733333vw;height:3.733333vw;display:block;padding:4vw}.search-head .center{flex:1 1}.search-head .center .am-search{background-color:#f7f9fc}.search-head .center .am-search .am-search-input{background:#f0f2f6;border-radius:11.733333vw}.search-head .center .am-search-start .am-search-input{background:#fff;border-radius:11.733333vw}.search-head .right{width:11.733333vw;height:11.733333vw;line-height:11.733333vw}.search-head .right .am-icon-md{padding:2.933333vw}.search-head .right-btn{width:auto}.search-head .right-btn .submit-btn{line-height:8vw;border:0;height:8vw;padding:0 3.2vw;margin:1.866667vw 0;border-radius:.8vw;font-size:3.733333vw;color:#333}.search-head .right-btn .submit-btn--active{color:#09f}.am-search{height:11.466667vw;padding:0}.search-result ul{list-style:none}.search-result .v-list-item .content{width:100%}.search-result .info{display:flex;flex-wrap:wrap;width:50%}.search-result .info .title{overflow:hidden;font-size:3.733333vw;white-space:nowrap;text-overflow:ellipsis}.search-result .info .des{font-size:3.2vw;line-height:4.266667vw;align-self:flex-start}.search-result .info .price{color:#ff2121;font-size:4.266667vw;margin-right:3.733333vw}.search-result .info .stale-price{text-decoration:line-through;color:#999;font-size:3.2vw}.search-result .info .bottom{align-self:flex-end}.search-result .empty{font-size:3.2vw;color:#666;padding:8vw 0;text-align:center;background-color:#f5f5f5}.search-result .status{width:100%;position:absolute;bottom:-.533333vw;left:0;height:6.4vw;text-align:center;line-height:6.4vw;font-size:3.466667vw;color:#fff;background-color:rgba(224,46,36,.6)}.search-result .recommendation{padding:0 4vw}.search-result .recommendation .title{width:100%;font-size:4vw;padding:5.333333vw 0 1.333333vw;text-align:center}.search-result .recommendation .courses{display:flex;flex-flow:wrap;justify-content:space-between}.search-result .recommendation .bottom{margin-top:3.2vw}.search-result .recommendation .price{color:#ff2121;font-size:4vw;margin-right:4vw}.search-result .recommendation .old-price{color:#999;font-size:2.933333vw;text-decoration:line-through}
/*# sourceMappingURL=SearchResult.530e102d.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/node_modules/antd-mobile/lib/search-bar/style/index.css","SearchResult.530e102d.chunk.css","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/search_header.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/search-result.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/recommendation/recommendation.scss"],"names":[],"mappings":"AACA,WAKE,YAAA,CAIQ,kB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AAA,CACA,cAAA,CACA,6BAA8B,CAd1C,uCAkBY,gBAAgB,CAlB5B,sCAsBY,aAAA,CACA,aAAA,CACA,gBAAkB,CAxB9B,0CA4BY,UAAA,CACA,oBAAA,CACA,4BAA6B","file":"SearchResult.530e102d.chunk.css","sourcesContent":["/* 默认搜索bar */\n.am-search {\n position: relative;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 44px;\n padding: 0 8px;\n overflow: hidden;\n background-color: #efeff4;\n}\n.am-search-input {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n width: 100%;\n height: 28px;\n overflow: hidden;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 3px;\n}\n.am-search-input .am-search-synthetic-ph,\n.am-search-input input[type=\"search\"] {\n position: absolute;\n top: 0;\n left: 0;\n}\n.am-search-input .am-search-synthetic-ph {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n z-index: 1;\n height: 28px;\n line-height: 28px;\n width: 100%;\n -webkit-transition: width .3s;\n transition: width .3s;\n display: block;\n text-align: center;\n}\n.am-search-input .am-search-synthetic-ph-icon {\n display: inline-block;\n margin-right: 5px;\n width: 15px;\n height: 15px;\n overflow: hidden;\n vertical-align: -2.5px;\n background-repeat: no-repeat;\n background-size: 15px auto;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'38'%20height%3D'36'%20viewBox%3D'0%200%2038%2036'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M29.05%2025.23a15.81%2015.81%200%200%200%203.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02%207.136.02%2015.936c0%208.802%207.172%2015.937%2016.017%2015.937%204.148%200%207.928-1.569%2010.772-4.143l8.873%208.232%202.296-2.45-8.927-8.282zM16.2%2028.933c-7.19%200-13.04-5.788-13.04-12.903%200-7.113%205.85-12.904%2013.04-12.904%207.19%200%2012.9%205.79%2012.9%2012.904%200%207.115-5.71%2012.903-12.9%2012.903z'%20fill%3D'%23bbb'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-synthetic-ph-placeholder {\n color: #bbb;\n font-size: 15px;\n}\n.am-search-input input[type=\"search\"] {\n z-index: 2;\n opacity: 0;\n width: 100%;\n text-align: left;\n display: block;\n color: #000;\n height: 28px;\n font-size: 15px;\n background-color: transparent;\n border: 0;\n}\n.am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-moz-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-ms-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.am-search-input .am-search-clear {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n position: absolute;\n display: none;\n z-index: 3;\n width: 15px;\n height: 15px;\n padding: 6.5px;\n border-radius: 50%;\n top: 0;\n right: 0;\n background-color: transparent;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 15px 15px;\n -webkit-transition: all .3s;\n transition: all .3s;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23ccc'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-active {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23108ee9'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-show {\n display: block;\n}\n.am-search-cancel {\n -webkit-box-flex: 0;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none;\n opacity: 0;\n padding-left: 8px;\n height: 44px;\n line-height: 44px;\n font-size: 16px;\n color: #108ee9;\n text-align: right;\n}\n.am-search-cancel-anim {\n -webkit-transition: margin-right 0.3s, opacity 0.3s;\n transition: margin-right 0.3s, opacity 0.3s;\n -webkit-transition-delay: .1s;\n transition-delay: .1s;\n}\n.am-search-cancel-show {\n opacity: 1;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"] {\n opacity: 1;\n padding: 0 28px 0 35px;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-moz-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-ms-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input .am-search-synthetic-ph {\n padding-left: 15px;\n width: auto;\n}\n","/* 默认搜索bar */\n.am-search {\n position: relative;\n display: flex;\n align-items: center;\n height: 11.733333vw;\n padding: 0 2.133333vw;\n overflow: hidden;\n background-color: #efeff4;\n}\n.am-search-input {\n flex: 1 1;\n position: relative;\n width: 100%;\n height: 7.466667vw;\n overflow: hidden;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 0.8vw;\n}\n.am-search-input .am-search-synthetic-ph,\n.am-search-input input[type=\"search\"] {\n position: absolute;\n top: 0;\n left: 0;\n}\n.am-search-input .am-search-synthetic-ph {\n box-sizing: content-box;\n z-index: 1;\n height: 7.466667vw;\n line-height: 7.466667vw;\n width: 100%;\n -webkit-transition: width .3s;\n transition: width .3s;\n display: block;\n text-align: center;\n}\n.am-search-input .am-search-synthetic-ph-icon {\n display: inline-block;\n margin-right: 1.333333vw;\n width: 4vw;\n height: 4vw;\n overflow: hidden;\n vertical-align: -0.666667vw;\n background-repeat: no-repeat;\n background-size: 4vw auto;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'38'%20height%3D'36'%20viewBox%3D'0%200%2038%2036'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M29.05%2025.23a15.81%2015.81%200%200%200%203.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02%207.136.02%2015.936c0%208.802%207.172%2015.937%2016.017%2015.937%204.148%200%207.928-1.569%2010.772-4.143l8.873%208.232%202.296-2.45-8.927-8.282zM16.2%2028.933c-7.19%200-13.04-5.788-13.04-12.903%200-7.113%205.85-12.904%2013.04-12.904%207.19%200%2012.9%205.79%2012.9%2012.904%200%207.115-5.71%2012.903-12.9%2012.903z'%20fill%3D'%23bbb'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-synthetic-ph-placeholder {\n color: #bbb;\n font-size: 4vw;\n}\n.am-search-input input[type=\"search\"] {\n z-index: 2;\n opacity: 0;\n width: 100%;\n text-align: left;\n display: block;\n color: #000;\n height: 7.466667vw;\n font-size: 4vw;\n background-color: transparent;\n border: 0;\n}\n.am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-moz-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-ms-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.am-search-input .am-search-clear {\n box-sizing: content-box;\n position: absolute;\n display: none;\n z-index: 3;\n width: 4vw;\n height: 4vw;\n padding: 1.733333vw;\n border-radius: 50%;\n top: 0;\n right: 0;\n background-color: transparent;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 4vw 4vw;\n -webkit-transition: all .3s;\n transition: all .3s;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23ccc'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-active {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23108ee9'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-show {\n display: block;\n}\n.am-search-cancel {\n flex: none;\n opacity: 0;\n padding-left: 2.133333vw;\n height: 11.733333vw;\n line-height: 11.733333vw;\n font-size: 4.266667vw;\n color: #108ee9;\n text-align: right;\n}\n.am-search-cancel-anim {\n -webkit-transition: margin-right 0.3s, opacity 0.3s;\n transition: margin-right 0.3s, opacity 0.3s;\n -webkit-transition-delay: .1s;\n transition-delay: .1s;\n}\n.am-search-cancel-show {\n opacity: 1;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"] {\n opacity: 1;\n padding: 0 7.466667vw 0 9.333333vw;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-moz-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-ms-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input .am-search-synthetic-ph {\n padding-left: 4vw;\n width: auto;\n}\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-head {\n height: 11.733333vw;\n display: flex;\n background-color: #F7F9FC;\n border-bottom: 1px solid #eee; }\n .search-head .left {\n width: 11.733333vw;\n height: 11.733333vw;\n line-height: 11.733333vw;\n text-align: center; }\n .search-head .left img {\n width: 3.733333vw;\n height: 3.733333vw;\n display: block;\n padding: 4vw; }\n .search-head .center {\n flex: 1 1; }\n .search-head .center .am-search {\n background-color: #F7F9FC; }\n .search-head .center .am-search .am-search-input {\n background: #F0F2F6;\n border-radius: 11.733333vw; }\n .search-head .center .am-search-start .am-search-input {\n background: #fff;\n border-radius: 11.733333vw; }\n .search-head .right {\n width: 11.733333vw;\n height: 11.733333vw;\n line-height: 11.733333vw; }\n .search-head .right .am-icon-md {\n padding: 2.933333vw; }\n .search-head .right-btn {\n width: auto; }\n .search-head .right-btn .submit-btn {\n line-height: 8vw;\n border: 0;\n height: 8vw;\n margin: 1.866667vw 0px;\n padding: 0 3.2vw;\n margin-left: 0;\n border-radius: 0.8vw;\n font-size: 3.733333vw;\n color: #333; }\n .search-head .right-btn .submit-btn--active {\n color: #09f; }\n\n.am-search {\n height: 11.466667vw;\n padding: 0; }\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-result ul {\n list-style: none; }\n\n.search-result .v-list-item .content {\n width: 100%; }\n\n.search-result .info {\n display: flex;\n flex-wrap: wrap;\n width: 50%; }\n .search-result .info .title {\n overflow: hidden;\n font-size: 3.733333vw;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .search-result .info .des {\n font-size: 3.2vw;\n line-height: 4.266667vw;\n align-self: flex-start; }\n .search-result .info .price {\n color: #FF2121;\n font-size: 4.266667vw;\n margin-right: 3.733333vw; }\n .search-result .info .stale-price {\n text-decoration: line-through;\n color: #999;\n font-size: 3.2vw; }\n .search-result .info .bottom {\n align-self: flex-end; }\n\n.search-result .empty {\n font-size: 3.2vw;\n color: #666;\n padding: 8vw 0;\n text-align: center;\n background-color: #f5f5f5; }\n\n.search-result .status {\n width: 100%;\n position: absolute;\n bottom: -0.533333vw;\n left: 0;\n height: 6.4vw;\n text-align: center;\n line-height: 6.4vw;\n font-size: 3.466667vw;\n color: #fff;\n background-color: rgba(224, 46, 36, 0.6); }\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-result .recommendation {\n padding: 0 4vw; }\n .search-result .recommendation .title {\n width: 100%;\n font-size: 4vw;\n padding: 5.333333vw 0 1.333333vw;\n text-align: center; }\n .search-result .recommendation .courses {\n display: flex;\n flex-flow: wrap;\n justify-content: space-between; }\n .search-result .recommendation .bottom {\n margin-top: 3.2vw; }\n .search-result .recommendation .price {\n color: #FF2121;\n font-size: 4vw;\n margin-right: 4vw; }\n .search-result .recommendation .old-price {\n color: #999;\n font-size: 2.933333vw;\n text-decoration: line-through; }\n\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-head {\n height: 44px;\n display: flex;\n background-color: #F7F9FC;\n border-bottom: 1px solid #eee; }\n .search-head .left {\n width: 44px;\n height: 44px;\n line-height: 44px;\n text-align: center; }\n .search-head .left img {\n width: 14px;\n height: 14px;\n display: block;\n padding: 15px; }\n .search-head .center {\n flex: 1; }\n .search-head .center .am-search {\n background-color: #F7F9FC; }\n .search-head .center .am-search .am-search-input {\n background: #F0F2F6;\n border-radius: 44px; }\n .search-head .center .am-search-start .am-search-input {\n background: #fff;\n border-radius: 44px; }\n .search-head .right {\n width: 44px;\n height: 44px;\n line-height: 44px; }\n .search-head .right .am-icon-md {\n padding: 11px; }\n .search-head .right-btn {\n width: auto; }\n .search-head .right-btn .submit-btn {\n line-height: 30px;\n border: 0;\n height: 30px;\n margin: 7px 0px;\n padding: 0 12px;\n margin-left: 0;\n border-radius: 3px;\n font-size: 14px;\n color: #333; }\n .search-head .right-btn .submit-btn--active {\n color: #09f; }\n\n.am-search {\n height: 43px;\n padding: 0; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-result ul {\n list-style: none; }\n\n.search-result .v-list-item .content {\n width: 100%; }\n\n.search-result .info {\n display: flex;\n flex-wrap: wrap;\n width: 50%; }\n .search-result .info .title {\n overflow: hidden;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .search-result .info .des {\n font-size: 12px;\n line-height: 16px;\n align-self: flex-start; }\n .search-result .info .price {\n color: #FF2121;\n font-size: 16px;\n margin-right: 14px; }\n .search-result .info .stale-price {\n text-decoration: line-through;\n color: #999;\n font-size: 12px; }\n .search-result .info .bottom {\n align-self: flex-end; }\n\n.search-result .empty {\n font-size: 12px;\n color: #666;\n padding: 30px 0;\n text-align: center;\n background-color: #f5f5f5; }\n\n.search-result .status {\n width: 100%;\n position: absolute;\n bottom: -2px;\n left: 0;\n height: 24px;\n text-align: center;\n line-height: 24px;\n font-size: 13px;\n color: #fff;\n background-color: rgba(224, 46, 36, 0.6); }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-result .recommendation {\n padding: 0 15px; }\n .search-result .recommendation .title {\n width: 100%;\n font-size: 15px;\n padding: 20px 0 5px;\n text-align: center; }\n .search-result .recommendation .courses {\n display: flex;\n flex-flow: wrap;\n justify-content: space-between; }\n .search-result .recommendation .bottom {\n margin-top: 12px; }\n .search-result .recommendation .price {\n color: #FF2121;\n font-size: 15px;\n margin-right: 15px; }\n .search-result .recommendation .old-price {\n color: #999;\n font-size: 11px;\n text-decoration: line-through; }\n"]}
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/node_modules/antd-mobile/lib/search-bar/style/index.css","SearchResult.b10912cf.chunk.css","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/search_header.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/search-result.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/recommendation/recommendation.scss"],"names":[],"mappings":"AACA,WAKE,YAAA,CAIQ,kBAAA,CACR,kBAAA,CACA,oBAAA,CAEA,wBCLF,CDOA,4BAdE,iBAAA,CAWA,eCMF,CDHA,iBAIU,QAAA,CAER,UAAA,CACA,iBAAA,CAEA,qBAAA,CACA,2BAAA,CACA,kBCRF,CDUA,6EAEE,iBAAA,CACA,KAAA,CACA,MCRF,CDUA,yCAEU,kBAAA,CACR,SAAA,CACA,iBAAA,CACA,sBAAA,CACA,UAAA,CACA,4BAAA,CACA,oBAAA,CACA,aAAA,CACA,iBCTF,CDWA,8CACE,oBAAA,CACA,uBAAA,CACA,SAAA,CACA,UAAA,CACA,eAAA,CACA,yBAAA,CACA,2BAAA,CACA,wBAAA,CACA,2gBCTF,CDWA,qDACE,UAAA,CACA,aCTF,CDWA,oCACE,SAAA,CACA,SAAA,CACA,UAAA,CACA,eAAA,CACA,aAAA,CACA,UAAA,CACA,iBAAA,CACA,aAAA,CACA,wBAAA,CACA,QCTF,CDWA,+DACE,eAAA,CACA,eAAA,CACA,iBCTF,CDWA,sDACE,eAAA,CACA,eAAA,CACA,iBCTF,CDWA,2DACE,eAAA,CACA,eAAA,CACA,iBCTF,CDWA,iDACE,eAAA,CACA,eAAA,CACA,iBCTF,CDWA,kEACE,uBCTF,CDWA,kCAEU,kBAAA,CACR,iBAAA,CACA,YAAA,CACA,SAAA,CACA,S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aAAA,CACA,oBAAA,CACA,uBAAkB,CAlC9B,kCAsCY,4BAAA,CACA,UAAA,CACA,eAzGE,CAiEd,6BA4CY,mBAAoB,CA5ChC,sBAiDQ,eAAA,CACA,UAAA,CACA,aAAA,CACA,iBAAA,CACA,wBAAyB,CArDjC,uBAyDQ,UAAA,CACA,iBAAA,CACA,iBAAA,CACA,MAAA,CACA,YAAA,CACA,iBAAA,CACA,iBAAA,CACA,oBAAA,CACA,UAAA,CACA,mCAAwC,CClEhD,+BAGQ,aAAe,CAHvB,sCAKY,UAAA,CACA,aAAA,CACA,+BAAA,CACA,iBAAkB,CAR9B,wCAYY,YAAA,CACA,cAAA,CACA,6BAA8B,CAd1C,uCAkBY,gBAAgB,CAlB5B,sCAsBY,aAAA,CACA,aAAA,CACA,gBAAkB,CAxB9B,0CA4BY,UAAA,CACA,oBAAA,CACA,4BAA6B","file":"SearchResult.b10912cf.chunk.css","sourcesContent":["/* 默认搜索bar */\n.am-search {\n position: relative;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 44px;\n padding: 0 8px;\n overflow: hidden;\n background-color: #efeff4;\n}\n.am-search-input {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n width: 100%;\n height: 28px;\n overflow: hidden;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 3px;\n}\n.am-search-input .am-search-synthetic-ph,\n.am-search-input input[type=\"search\"] {\n position: absolute;\n top: 0;\n left: 0;\n}\n.am-search-input .am-search-synthetic-ph {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n z-index: 1;\n height: 28px;\n line-height: 28px;\n width: 100%;\n -webkit-transition: width .3s;\n transition: width .3s;\n display: block;\n text-align: center;\n}\n.am-search-input .am-search-synthetic-ph-icon {\n display: inline-block;\n margin-right: 5px;\n width: 15px;\n height: 15px;\n overflow: hidden;\n vertical-align: -2.5px;\n background-repeat: no-repeat;\n background-size: 15px auto;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'38'%20height%3D'36'%20viewBox%3D'0%200%2038%2036'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M29.05%2025.23a15.81%2015.81%200%200%200%203.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02%207.136.02%2015.936c0%208.802%207.172%2015.937%2016.017%2015.937%204.148%200%207.928-1.569%2010.772-4.143l8.873%208.232%202.296-2.45-8.927-8.282zM16.2%2028.933c-7.19%200-13.04-5.788-13.04-12.903%200-7.113%205.85-12.904%2013.04-12.904%207.19%200%2012.9%205.79%2012.9%2012.904%200%207.115-5.71%2012.903-12.9%2012.903z'%20fill%3D'%23bbb'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-synthetic-ph-placeholder {\n color: #bbb;\n font-size: 15px;\n}\n.am-search-input input[type=\"search\"] {\n z-index: 2;\n opacity: 0;\n width: 100%;\n text-align: left;\n display: block;\n color: #000;\n height: 28px;\n font-size: 15px;\n background-color: transparent;\n border: 0;\n}\n.am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-moz-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-ms-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.am-search-input .am-search-clear {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n position: absolute;\n display: none;\n z-index: 3;\n width: 15px;\n height: 15px;\n padding: 6.5px;\n border-radius: 50%;\n top: 0;\n right: 0;\n background-color: transparent;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 15px 15px;\n -webkit-transition: all .3s;\n transition: all .3s;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23ccc'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-active {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23108ee9'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-show {\n display: block;\n}\n.am-search-cancel {\n -webkit-box-flex: 0;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none;\n opacity: 0;\n padding-left: 8px;\n height: 44px;\n line-height: 44px;\n font-size: 16px;\n color: #108ee9;\n text-align: right;\n}\n.am-search-cancel-anim {\n -webkit-transition: margin-right 0.3s, opacity 0.3s;\n transition: margin-right 0.3s, opacity 0.3s;\n -webkit-transition-delay: .1s;\n transition-delay: .1s;\n}\n.am-search-cancel-show {\n opacity: 1;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"] {\n opacity: 1;\n padding: 0 28px 0 35px;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-moz-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-ms-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input .am-search-synthetic-ph {\n padding-left: 15px;\n width: auto;\n}\n","/* 默认搜索bar */\n.am-search {\n position: relative;\n display: flex;\n align-items: center;\n height: 11.733333vw;\n padding: 0 2.133333vw;\n overflow: hidden;\n background-color: #efeff4;\n}\n.am-search-input {\n flex: 1 1;\n position: relative;\n width: 100%;\n height: 7.466667vw;\n overflow: hidden;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 0.8vw;\n}\n.am-search-input .am-search-synthetic-ph,\n.am-search-input input[type=\"search\"] {\n position: absolute;\n top: 0;\n left: 0;\n}\n.am-search-input .am-search-synthetic-ph {\n box-sizing: content-box;\n z-index: 1;\n height: 7.466667vw;\n line-height: 7.466667vw;\n width: 100%;\n -webkit-transition: width .3s;\n transition: width .3s;\n display: block;\n text-align: center;\n}\n.am-search-input .am-search-synthetic-ph-icon {\n display: inline-block;\n margin-right: 1.333333vw;\n width: 4vw;\n height: 4vw;\n overflow: hidden;\n vertical-align: -0.666667vw;\n background-repeat: no-repeat;\n background-size: 4vw auto;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'38'%20height%3D'36'%20viewBox%3D'0%200%2038%2036'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M29.05%2025.23a15.81%2015.81%200%200%200%203.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02%207.136.02%2015.936c0%208.802%207.172%2015.937%2016.017%2015.937%204.148%200%207.928-1.569%2010.772-4.143l8.873%208.232%202.296-2.45-8.927-8.282zM16.2%2028.933c-7.19%200-13.04-5.788-13.04-12.903%200-7.113%205.85-12.904%2013.04-12.904%207.19%200%2012.9%205.79%2012.9%2012.904%200%207.115-5.71%2012.903-12.9%2012.903z'%20fill%3D'%23bbb'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-synthetic-ph-placeholder {\n color: #bbb;\n font-size: 4vw;\n}\n.am-search-input input[type=\"search\"] {\n z-index: 2;\n opacity: 0;\n width: 100%;\n text-align: left;\n display: block;\n color: #000;\n height: 7.466667vw;\n font-size: 4vw;\n background-color: transparent;\n border: 0;\n}\n.am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-moz-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-ms-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.am-search-input .am-search-clear {\n box-sizing: content-box;\n position: absolute;\n display: none;\n z-index: 3;\n width: 4vw;\n height: 4vw;\n padding: 1.733333vw;\n border-radius: 50%;\n top: 0;\n right: 0;\n background-color: transparent;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 4vw 4vw;\n -webkit-transition: all .3s;\n transition: all .3s;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23ccc'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-active {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23108ee9'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-show {\n display: block;\n}\n.am-search-cancel {\n flex: none;\n opacity: 0;\n padding-left: 2.133333vw;\n height: 11.733333vw;\n line-height: 11.733333vw;\n font-size: 4.266667vw;\n color: #108ee9;\n text-align: right;\n}\n.am-search-cancel-anim {\n -webkit-transition: margin-right 0.3s, opacity 0.3s;\n transition: margin-right 0.3s, opacity 0.3s;\n -webkit-transition-delay: .1s;\n transition-delay: .1s;\n}\n.am-search-cancel-show {\n opacity: 1;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"] {\n opacity: 1;\n padding: 0 7.466667vw 0 9.333333vw;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-moz-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-ms-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input .am-search-synthetic-ph {\n padding-left: 4vw;\n width: auto;\n}\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-head {\n height: 11.733333vw;\n display: flex;\n background-color: #F7F9FC;\n border-bottom: 1px solid #eee; }\n .search-head .left {\n width: 11.733333vw;\n height: 11.733333vw;\n line-height: 11.733333vw;\n text-align: center; }\n .search-head .left img {\n width: 3.733333vw;\n height: 3.733333vw;\n display: block;\n padding: 4vw; }\n .search-head .center {\n flex: 1 1; }\n .search-head .center .am-search {\n background-color: #F7F9FC; }\n .search-head .center .am-search .am-search-input {\n background: #F0F2F6;\n border-radius: 11.733333vw; }\n .search-head .center .am-search-start .am-search-input {\n background: #fff;\n border-radius: 11.733333vw; }\n .search-head .right {\n width: 11.733333vw;\n height: 11.733333vw;\n line-height: 11.733333vw; }\n .search-head .right .am-icon-md {\n padding: 2.933333vw; }\n .search-head .right-btn {\n width: auto; }\n .search-head .right-btn .submit-btn {\n line-height: 8vw;\n border: 0;\n height: 8vw;\n margin: 1.866667vw 0px;\n padding: 0 3.2vw;\n margin-left: 0;\n border-radius: 0.8vw;\n font-size: 3.733333vw;\n color: #333; }\n\n.am-search {\n height: 11.466667vw;\n padding: 0; }\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-result ul {\n list-style: none; }\n\n.search-result .v-list-item .content {\n width: 100%; }\n\n.search-result .info {\n display: flex;\n flex-wrap: wrap;\n width: 50%; }\n .search-result .info .title {\n overflow: hidden;\n font-size: 3.733333vw;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .search-result .info .des {\n font-size: 3.2vw;\n line-height: 4.266667vw;\n align-self: flex-start; }\n .search-result .info .price {\n color: #FF2121;\n font-size: 4.266667vw;\n margin-right: 3.733333vw; }\n .search-result .info .stale-price {\n text-decoration: line-through;\n color: #999;\n font-size: 3.2vw; }\n .search-result .info .bottom {\n align-self: flex-end; }\n\n.search-result .empty {\n font-size: 3.2vw;\n color: #666;\n padding: 8vw 0;\n text-align: center;\n background-color: #f5f5f5; }\n\n.search-result .status {\n width: 100%;\n position: absolute;\n bottom: -0.533333vw;\n left: 0;\n height: 6.4vw;\n text-align: center;\n line-height: 6.4vw;\n font-size: 3.466667vw;\n color: #fff;\n background-color: rgba(224, 46, 36, 0.6); }\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-result .recommendation {\n padding: 0 4vw; }\n .search-result .recommendation .title {\n width: 100%;\n font-size: 4vw;\n padding: 5.333333vw 0 1.333333vw;\n text-align: center; }\n .search-result .recommendation .courses {\n display: flex;\n flex-flow: wrap;\n justify-content: space-between; }\n .search-result .recommendation .bottom {\n margin-top: 3.2vw; }\n .search-result .recommendation .price {\n color: #FF2121;\n font-size: 4vw;\n margin-right: 4vw; }\n .search-result .recommendation .old-price {\n color: #999;\n font-size: 2.933333vw;\n text-decoration: line-through; }\n\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-head {\n height: 44px;\n display: flex;\n background-color: #F7F9FC;\n border-bottom: 1px solid #eee; }\n .search-head .left {\n width: 44px;\n height: 44px;\n line-height: 44px;\n text-align: center; }\n .search-head .left img {\n width: 14px;\n height: 14px;\n display: block;\n padding: 15px; }\n .search-head .center {\n flex: 1; }\n .search-head .center .am-search {\n background-color: #F7F9FC; }\n .search-head .center .am-search .am-search-input {\n background: #F0F2F6;\n border-radius: 44px; }\n .search-head .center .am-search-start .am-search-input {\n background: #fff;\n border-radius: 44px; }\n .search-head .right {\n width: 44px;\n height: 44px;\n line-height: 44px; }\n .search-head .right .am-icon-md {\n padding: 11px; }\n .search-head .right-btn {\n width: auto; }\n .search-head .right-btn .submit-btn {\n line-height: 30px;\n border: 0;\n height: 30px;\n margin: 7px 0px;\n padding: 0 12px;\n margin-left: 0;\n border-radius: 3px;\n font-size: 14px;\n color: #333; }\n\n.am-search {\n height: 43px;\n padding: 0; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-result ul {\n list-style: none; }\n\n.search-result .v-list-item .content {\n width: 100%; }\n\n.search-result .info {\n display: flex;\n flex-wrap: wrap;\n width: 50%; }\n .search-result .info .title {\n overflow: hidden;\n font-size: 14px;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .search-result .info .des {\n font-size: 12px;\n line-height: 16px;\n align-self: flex-start; }\n .search-result .info .price {\n color: #FF2121;\n font-size: 16px;\n margin-right: 14px; }\n .search-result .info .stale-price {\n text-decoration: line-through;\n color: #999;\n font-size: 12px; }\n .search-result .info .bottom {\n align-self: flex-end; }\n\n.search-result .empty {\n font-size: 12px;\n color: #666;\n padding: 30px 0;\n text-align: center;\n background-color: #f5f5f5; }\n\n.search-result .status {\n width: 100%;\n position: absolute;\n bottom: -2px;\n left: 0;\n height: 24px;\n text-align: center;\n line-height: 24px;\n font-size: 13px;\n color: #fff;\n background-color: rgba(224, 46, 36, 0.6); }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-result .recommendation {\n padding: 0 15px; }\n .search-result .recommendation .title {\n width: 100%;\n font-size: 15px;\n padding: 20px 0 5px;\n text-align: center; }\n .search-result .recommendation .courses {\n display: flex;\n flex-flow: wrap;\n justify-content: space-between; }\n .search-result .recommendation .bottom {\n margin-top: 12px; }\n .search-result .recommendation .price {\n color: #FF2121;\n font-size: 15px;\n margin-right: 15px; }\n .search-result .recommendation .old-price {\n color: #999;\n font-size: 11px;\n text-decoration: line-through; }\n"]}
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/node_modules/antd-mobile/lib/search-bar/style/index.css","search.0f0e9639.chunk.css","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/search_header.scss","/Users/xzh/dnmp/www/mr-julyedu/src/common/Tag/tag.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/index.scss"],"names":[],"mappings":"AACA,WAKE,YAAA,CAIQ,kBAAA,CACR,kBAAA,CACA,oBAAA,CAEA,wBCLF,CDOA,4BAdE,iBAAA,CAWA,eCMF,CDHA,iBAIU,QAAA,CAER,UAAA,CACA,iBAAA,CAEA,qBAAA,CACA,2BAAA,CACA,kBCRF,CDUA,6EAEE,iBAAA,CACA,KAAA,CACA,MCRF,CDUA,yCAEU,kBAAA,CACR,SAAA,CACA,iBAAA,CACA,sBAAA,CACA,UAAA,CACA,4BAAA,CACA,oBAAA,CACA,aAAA,CACA,iBCTF,CDWA,8CACE,oBAAA,CACA,uBAAA,CACA,SAAA,CACA,UAAA,CACA,eAAA,CACA,yBAAA,CACA,2BAAA,CACA,wBAAA,CACA,2gBCTF,CDWA,qDACE,UAAA,CACA,aCTF,CDWA,oCACE,SAAA,CACA,SAAA,CACA,UAAA,CACA,e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AA,CACA,UAAA,CAEA,eAAA,CACA,mBAAA,CACA,kBAAA,CACA,oBAAA,CACA,UA7JI,CAkKhB,WACI,kBAAA,CACA,SAAU,CCzEd,mBACI,aAAA,CACA,cAAA,CACA,eAAA,CACA,uBAAA,CACA,wBAAA,CACA,eAAA,CACA,6BAAA,CACA,wBAAA,CACA,UAAA,CACA,wBAAA,CACA,sBAAA,CACA,UAAW,CAGf,QACI,UAAW,CChBf,0BAEQ,qBAAA,CACA,kBAAa,CAHrB,uDAOgB,wBAAA,CACA,YAAA,CACA,6BAA8B,CAT9C,4DAYoB,oBAAe,CAZnC,2DAgBoB,gBAAA,CACA,iBAAA,CACA,aAAc,CAlBlC,mDAuBgB,eAAgB,CAvBhC,0DA0BgB,eAAe,CA1B/B,sCA+BY,qBAAA,CACA,oBAAe,CAhC3B,0DAoCY,eAAA,CACA,SAAA,CACA,QAAS,CAtCrB,gCA0CY,oBAAA,CACA,4BAA6B,CA3CzC,2CA+CY,eAAgB,CA/C5B,2BAoDQ,oBAAe","file":"search.0f0e9639.chunk.css","sourcesContent":["/* 默认搜索bar */\n.am-search {\n position: relative;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 44px;\n padding: 0 8px;\n overflow: hidden;\n background-color: #efeff4;\n}\n.am-search-input {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n width: 100%;\n height: 28px;\n overflow: hidden;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 3px;\n}\n.am-search-input .am-search-synthetic-ph,\n.am-search-input input[type=\"search\"] {\n position: absolute;\n top: 0;\n left: 0;\n}\n.am-search-input .am-search-synthetic-ph {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n z-index: 1;\n height: 28px;\n line-height: 28px;\n width: 100%;\n -webkit-transition: width .3s;\n transition: width .3s;\n display: block;\n text-align: center;\n}\n.am-search-input .am-search-synthetic-ph-icon {\n display: inline-block;\n margin-right: 5px;\n width: 15px;\n height: 15px;\n overflow: hidden;\n vertical-align: -2.5px;\n background-repeat: no-repeat;\n background-size: 15px auto;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'38'%20height%3D'36'%20viewBox%3D'0%200%2038%2036'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M29.05%2025.23a15.81%2015.81%200%200%200%203.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02%207.136.02%2015.936c0%208.802%207.172%2015.937%2016.017%2015.937%204.148%200%207.928-1.569%2010.772-4.143l8.873%208.232%202.296-2.45-8.927-8.282zM16.2%2028.933c-7.19%200-13.04-5.788-13.04-12.903%200-7.113%205.85-12.904%2013.04-12.904%207.19%200%2012.9%205.79%2012.9%2012.904%200%207.115-5.71%2012.903-12.9%2012.903z'%20fill%3D'%23bbb'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-synthetic-ph-placeholder {\n color: #bbb;\n font-size: 15px;\n}\n.am-search-input input[type=\"search\"] {\n z-index: 2;\n opacity: 0;\n width: 100%;\n text-align: left;\n display: block;\n color: #000;\n height: 28px;\n font-size: 15px;\n background-color: transparent;\n border: 0;\n}\n.am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-moz-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-ms-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.am-search-input .am-search-clear {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n position: absolute;\n display: none;\n z-index: 3;\n width: 15px;\n height: 15px;\n padding: 6.5px;\n border-radius: 50%;\n top: 0;\n right: 0;\n background-color: transparent;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 15px 15px;\n -webkit-transition: all .3s;\n transition: all .3s;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23ccc'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-active {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23108ee9'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-show {\n display: block;\n}\n.am-search-cancel {\n -webkit-box-flex: 0;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none;\n opacity: 0;\n padding-left: 8px;\n height: 44px;\n line-height: 44px;\n font-size: 16px;\n color: #108ee9;\n text-align: right;\n}\n.am-search-cancel-anim {\n -webkit-transition: margin-right 0.3s, opacity 0.3s;\n transition: margin-right 0.3s, opacity 0.3s;\n -webkit-transition-delay: .1s;\n transition-delay: .1s;\n}\n.am-search-cancel-show {\n opacity: 1;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"] {\n opacity: 1;\n padding: 0 28px 0 35px;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-moz-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-ms-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input .am-search-synthetic-ph {\n padding-left: 15px;\n width: auto;\n}\n","/* 默认搜索bar */\n.am-search {\n position: relative;\n display: flex;\n align-items: center;\n height: 11.733333vw;\n padding: 0 2.133333vw;\n overflow: hidden;\n background-color: #efeff4;\n}\n.am-search-input {\n flex: 1 1;\n position: relative;\n width: 100%;\n height: 7.466667vw;\n overflow: hidden;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 0.8vw;\n}\n.am-search-input .am-search-synthetic-ph,\n.am-search-input input[type=\"search\"] {\n position: absolute;\n top: 0;\n left: 0;\n}\n.am-search-input .am-search-synthetic-ph {\n box-sizing: content-box;\n z-index: 1;\n height: 7.466667vw;\n line-height: 7.466667vw;\n width: 100%;\n -webkit-transition: width .3s;\n transition: width .3s;\n display: block;\n text-align: center;\n}\n.am-search-input .am-search-synthetic-ph-icon {\n display: inline-block;\n margin-right: 1.333333vw;\n width: 4vw;\n height: 4vw;\n overflow: hidden;\n vertical-align: -0.666667vw;\n background-repeat: no-repeat;\n background-size: 4vw auto;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'38'%20height%3D'36'%20viewBox%3D'0%200%2038%2036'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M29.05%2025.23a15.81%2015.81%200%200%200%203.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02%207.136.02%2015.936c0%208.802%207.172%2015.937%2016.017%2015.937%204.148%200%207.928-1.569%2010.772-4.143l8.873%208.232%202.296-2.45-8.927-8.282zM16.2%2028.933c-7.19%200-13.04-5.788-13.04-12.903%200-7.113%205.85-12.904%2013.04-12.904%207.19%200%2012.9%205.79%2012.9%2012.904%200%207.115-5.71%2012.903-12.9%2012.903z'%20fill%3D'%23bbb'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-synthetic-ph-placeholder {\n color: #bbb;\n font-size: 4vw;\n}\n.am-search-input input[type=\"search\"] {\n z-index: 2;\n opacity: 0;\n width: 100%;\n text-align: left;\n display: block;\n color: #000;\n height: 7.466667vw;\n font-size: 4vw;\n background-color: transparent;\n border: 0;\n}\n.am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-moz-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-ms-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.am-search-input .am-search-clear {\n box-sizing: content-box;\n position: absolute;\n display: none;\n z-index: 3;\n width: 4vw;\n height: 4vw;\n padding: 1.733333vw;\n border-radius: 50%;\n top: 0;\n right: 0;\n background-color: transparent;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 4vw 4vw;\n -webkit-transition: all .3s;\n transition: all .3s;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23ccc'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-active {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23108ee9'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-show {\n display: block;\n}\n.am-search-cancel {\n flex: none;\n opacity: 0;\n padding-left: 2.133333vw;\n height: 11.733333vw;\n line-height: 11.733333vw;\n font-size: 4.266667vw;\n color: #108ee9;\n text-align: right;\n}\n.am-search-cancel-anim {\n -webkit-transition: margin-right 0.3s, opacity 0.3s;\n transition: margin-right 0.3s, opacity 0.3s;\n -webkit-transition-delay: .1s;\n transition-delay: .1s;\n}\n.am-search-cancel-show {\n opacity: 1;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"] {\n opacity: 1;\n padding: 0 7.466667vw 0 9.333333vw;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-moz-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-ms-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input .am-search-synthetic-ph {\n padding-left: 4vw;\n width: auto;\n}\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-head {\n height: 11.733333vw;\n display: flex;\n background-color: #F7F9FC;\n border-bottom: 1px solid #eee; }\n .search-head .left {\n width: 11.733333vw;\n height: 11.733333vw;\n line-height: 11.733333vw;\n text-align: center; }\n .search-head .left img {\n width: 3.733333vw;\n height: 3.733333vw;\n display: block;\n padding: 4vw; }\n .search-head .center {\n flex: 1 1; }\n .search-head .center .am-search {\n background-color: #F7F9FC; }\n .search-head .center .am-search .am-search-input {\n background: #F0F2F6;\n border-radius: 11.733333vw; }\n .search-head .center .am-search-start .am-search-input {\n background: #fff;\n border-radius: 11.733333vw; }\n .search-head .right {\n width: 11.733333vw;\n height: 11.733333vw;\n line-height: 11.733333vw; }\n .search-head .right .am-icon-md {\n padding: 2.933333vw; }\n .search-head .right-btn {\n width: auto; }\n .search-head .right-btn .submit-btn {\n line-height: 8vw;\n border: 0;\n height: 8vw;\n margin: 1.866667vw 0px;\n padding: 0 3.2vw;\n margin-left: 0;\n border-radius: 0.8vw;\n font-size: 3.733333vw;\n color: #333; }\n\n.am-search {\n height: 11.466667vw;\n padding: 0; }\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.tagLately, .tagHot {\n display: block;\n max-width: 100%;\n overflow: hidden;\n margin-right: 2.666667vw;\n margin-bottom: 2.666667vw;\n font-size: 3.2vw;\n padding: 1.066667vw 2.666667vw;\n border-radius: 3.733333vw;\n float: left;\n background-color: #F5F5F5;\n line-height: 5.333333vw;\n color: #666; }\n\n.tagHot {\n color: #333; }\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-page .search-main {\n background-color: #fff;\n padding: 2.666667vw; }\n .search-page .search-main .search-land .search-history {\n margin-bottom: 2.666667vw;\n display: flex;\n justify-content: space-between; }\n .search-page .search-main .search-land .search-history span {\n font-size: 4.266667vw; }\n .search-page .search-main .search-land .search-history img {\n width: 4.266667vw;\n height: 4.266667vw;\n display: block; }\n .search-page .search-main .search-land .search-tag {\n overflow: hidden; }\n .search-page .search-main .search-land .no_search_history {\n font-size: 3.2vw; }\n .search-page .search-main .search-hot {\n margin-top: 2.666667vw;\n font-size: 3.733333vw; }\n .search-page .search-main ul, .search-page .search-main li {\n list-style: none;\n padding: 0;\n margin: 0; }\n .search-page .search-main .list {\n padding: 2.666667vw 0;\n border-bottom: 1px solid #eee; }\n .search-page .search-main .list:last-child {\n border-bottom: 0; }\n\n.search-page .searct-lists {\n padding: 0 2.666667vw; }\n\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-head {\n height: 44px;\n display: flex;\n background-color: #F7F9FC;\n border-bottom: 1px solid #eee; }\n .search-head .left {\n width: 44px;\n height: 44px;\n line-height: 44px;\n text-align: center; }\n .search-head .left img {\n width: 14px;\n height: 14px;\n display: block;\n padding: 15px; }\n .search-head .center {\n flex: 1; }\n .search-head .center .am-search {\n background-color: #F7F9FC; }\n .search-head .center .am-search .am-search-input {\n background: #F0F2F6;\n border-radius: 44px; }\n .search-head .center .am-search-start .am-search-input {\n background: #fff;\n border-radius: 44px; }\n .search-head .right {\n width: 44px;\n height: 44px;\n line-height: 44px; }\n .search-head .right .am-icon-md {\n padding: 11px; }\n .search-head .right-btn {\n width: auto; }\n .search-head .right-btn .submit-btn {\n line-height: 30px;\n border: 0;\n height: 30px;\n margin: 7px 0px;\n padding: 0 12px;\n margin-left: 0;\n border-radius: 3px;\n font-size: 14px;\n color: #333; }\n\n.am-search {\n height: 43px;\n padding: 0; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.tagLately, .tagHot {\n display: block;\n max-width: 100%;\n overflow: hidden;\n margin-right: 10px;\n margin-bottom: 10px;\n font-size: 12px;\n padding: 4px 10px;\n border-radius: 14px;\n float: left;\n background-color: #F5F5F5;\n line-height: 20px;\n color: #666; }\n\n.tagHot {\n color: #333; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-page .search-main {\n background-color: #fff;\n padding: 10px; }\n .search-page .search-main .search-land .search-history {\n margin-bottom: 10px;\n display: flex;\n justify-content: space-between; }\n .search-page .search-main .search-land .search-history span {\n font-size: 16px; }\n .search-page .search-main .search-land .search-history img {\n width: 16px;\n height: 16px;\n display: block; }\n .search-page .search-main .search-land .search-tag {\n overflow: hidden; }\n .search-page .search-main .search-land .no_search_history {\n font-size: 12px; }\n .search-page .search-main .search-hot {\n margin-top: 10px;\n font-size: 14px; }\n .search-page .search-main ul, .search-page .search-main li {\n list-style: none;\n padding: 0;\n margin: 0; }\n .search-page .search-main .list {\n padding: 10px 0;\n border-bottom: 1px solid #eee; }\n .search-page .search-main .list:last-child {\n border-bottom: 0; }\n\n.search-page .searct-lists {\n padding: 0 10px; }\n"]}
\ No newline at end of file
.am-search{display:flex;align-items:center;height:11.733333vw;padding:0 2.133333vw;background-color:#efeff4}.am-search,.am-search-input{position:relative;overflow:hidden}.am-search-input{flex:1 1;width:100%;height:7.466667vw;background-color:#fff;background-clip:padding-box;border-radius:.8vw}.am-search-input .am-search-synthetic-ph,.am-search-input input[type=search]{position:absolute;top:0;left:0}.am-search-input .am-search-synthetic-ph{box-sizing:initial;z-index:1;height:7.466667vw;line-height:7.466667vw;width:100%;-webkit-transition:width .3s;transition:width .3s;display:block;text-align:center}.am-search-input .am-search-synthetic-ph-icon{display:inline-block;margin-right:1.333333vw;width:4vw;height:4vw;overflow:hidden;vertical-align:-.666667vw;background-repeat:no-repeat;background-size:4vw auto;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='38' height='36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M29.05 25.23a15.81 15.81 0 0 0 3.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02 7.136.02 15.936c0 8.802 7.172 15.937 16.017 15.937a16 16 0 0 0 10.772-4.143l8.873 8.232 2.296-2.45-8.927-8.282zM16.2 28.933c-7.19 0-13.04-5.788-13.04-12.903 0-7.113 5.85-12.904 13.04-12.904 7.19 0 12.9 5.79 12.9 12.904 0 7.115-5.71 12.903-12.9 12.903z' fill='%23bbb' fill-rule='evenodd'/%3E%3C/svg%3E")}.am-search-input .am-search-synthetic-ph-placeholder{color:#bbb;font-size:4vw}.am-search-input input[type=search]{z-index:2;opacity:0;width:100%;text-align:left;display:block;color:#000;height:7.466667vw;font-size:4vw;background-color:initial;border:0}.am-search-input input[type=search]::-webkit-input-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-moz-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-ms-input-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.am-search-input .am-search-clear{box-sizing:initial;position:absolute;display:none;z-index:3;width:4vw;height:4vw;padding:1.733333vw;border-radius:50%;top:0;right:0;background-color:initial;background-position:50%;background-repeat:no-repeat;background-size:4vw 4vw;-webkit-transition:all .3s;transition:all .3s;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23ccc'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M8 8l12 12'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M20 8L8 20'/%3E%3C/svg%3E")}.am-search-input .am-search-clear-active{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23108ee9'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M8 8l12 12'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M20 8L8 20'/%3E%3C/svg%3E")}.am-search-input .am-search-clear-show{display:block}.am-search-cancel{flex:none;opacity:0;padding-left:2.133333vw;height:11.733333vw;line-height:11.733333vw;font-size:4.266667vw;color:#108ee9;text-align:right}.am-search-cancel-anim{-webkit-transition:margin-right .3s,opacity .3s;transition:margin-right .3s,opacity .3s;-webkit-transition-delay:.1s;transition-delay:.1s}.am-search-cancel-show{opacity:1}.am-search.am-search-start .am-search-input input[type=search]{opacity:1;padding:0 7.466667vw 0 9.333333vw}.am-search.am-search-start .am-search-input input[type=search]::-webkit-input-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::-moz-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::-ms-input-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::placeholder{color:transparent}.am-search.am-search-start .am-search-input .am-search-synthetic-ph{padding-left:4vw;width:auto}.search-head{height:11.733333vw;display:flex;background-color:#f7f9fc;border-bottom:1px solid #eee}.search-head .left{width:11.733333vw;height:11.733333vw;line-height:11.733333vw;text-align:center}.search-head .left img{width:3.733333vw;height:3.733333vw;display:block;padding:4vw}.search-head .center{flex:1 1}.search-head .center .am-search{background-color:#f7f9fc}.search-head .center .am-search .am-search-input{background:#f0f2f6;border-radius:11.733333vw}.search-head .center .am-search-start .am-search-input{background:#fff;border-radius:11.733333vw}.search-head .right{width:11.733333vw;height:11.733333vw;line-height:11.733333vw}.search-head .right .am-icon-md{padding:2.933333vw}.search-head .right-btn{width:auto}.search-head .right-btn .submit-btn{line-height:8vw;border:0;height:8vw;padding:0 3.2vw;margin:1.866667vw 0;border-radius:.8vw;font-size:3.733333vw;color:#333}.am-search{height:11.466667vw;padding:0}.tagHot,.tagLately{display:block;max-width:100%;overflow:hidden;margin-right:2.666667vw;margin-bottom:2.666667vw;font-size:3.2vw;padding:1.066667vw 2.666667vw;border-radius:3.733333vw;float:left;background-color:#f5f5f5;line-height:5.333333vw;color:#666}.tagHot{color:#333}.search-page .search-main{background-color:#fff;padding:2.666667vw}.search-page .search-main .search-land .search-history{margin-bottom:2.666667vw;display:flex;justify-content:space-between}.search-page .search-main .search-land .search-history span{font-size:4.266667vw}.search-page .search-main .search-land .search-history img{width:4.266667vw;height:4.266667vw;display:block}.search-page .search-main .search-land .search-tag{overflow:hidden}.search-page .search-main .search-land .no_search_history{font-size:3.2vw}.search-page .search-main .search-hot{margin-top:2.666667vw;font-size:3.733333vw}.search-page .search-main li,.search-page .search-main ul{list-style:none;padding:0;margin:0}.search-page .search-main .list{padding:2.666667vw 0;border-bottom:1px solid #eee}.search-page .search-main .list:last-child{border-bottom:0}.search-page .searct-lists{padding:0 2.666667vw}
/*# sourceMappingURL=search.0f0e9639.chunk.css.map */
\ No newline at end of file
.am-search{display:flex;align-items:center;height:11.733333vw;padding:0 2.133333vw;background-color:#efeff4}.am-search,.am-search-input{position:relative;overflow:hidden}.am-search-input{flex:1 1;width:100%;height:7.466667vw;background-color:#fff;background-clip:padding-box;border-radius:.8vw}.am-search-input .am-search-synthetic-ph,.am-search-input input[type=search]{position:absolute;top:0;left:0}.am-search-input .am-search-synthetic-ph{box-sizing:initial;z-index:1;height:7.466667vw;line-height:7.466667vw;width:100%;-webkit-transition:width .3s;transition:width .3s;display:block;text-align:center}.am-search-input .am-search-synthetic-ph-icon{display:inline-block;margin-right:1.333333vw;width:4vw;height:4vw;overflow:hidden;vertical-align:-.666667vw;background-repeat:no-repeat;background-size:4vw auto;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='38' height='36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M29.05 25.23a15.81 15.81 0 0 0 3.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02 7.136.02 15.936c0 8.802 7.172 15.937 16.017 15.937a16 16 0 0 0 10.772-4.143l8.873 8.232 2.296-2.45-8.927-8.282zM16.2 28.933c-7.19 0-13.04-5.788-13.04-12.903 0-7.113 5.85-12.904 13.04-12.904 7.19 0 12.9 5.79 12.9 12.904 0 7.115-5.71 12.903-12.9 12.903z' fill='%23bbb' fill-rule='evenodd'/%3E%3C/svg%3E")}.am-search-input .am-search-synthetic-ph-placeholder{color:#bbb;font-size:4vw}.am-search-input input[type=search]{z-index:2;opacity:0;width:100%;text-align:left;display:block;color:#000;height:7.466667vw;font-size:4vw;background-color:initial;border:0}.am-search-input input[type=search]::-webkit-input-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-moz-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-ms-input-placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::placeholder{background:none;text-align:left;color:transparent}.am-search-input input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.am-search-input .am-search-clear{box-sizing:initial;position:absolute;display:none;z-index:3;width:4vw;height:4vw;padding:1.733333vw;border-radius:50%;top:0;right:0;background-color:initial;background-position:50%;background-repeat:no-repeat;background-size:4vw 4vw;-webkit-transition:all .3s;transition:all .3s;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23ccc'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M8 8l12 12'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M20 8L8 20'/%3E%3C/svg%3E")}.am-search-input .am-search-clear-active{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23108ee9'/%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M8 8l12 12'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-miterlimit='10' d='M20 8L8 20'/%3E%3C/svg%3E")}.am-search-input .am-search-clear-show{display:block}.am-search-cancel{flex:none;opacity:0;padding-left:2.133333vw;height:11.733333vw;line-height:11.733333vw;font-size:4.266667vw;color:#108ee9;text-align:right}.am-search-cancel-anim{-webkit-transition:margin-right .3s,opacity .3s;transition:margin-right .3s,opacity .3s;-webkit-transition-delay:.1s;transition-delay:.1s}.am-search-cancel-show{opacity:1}.am-search.am-search-start .am-search-input input[type=search]{opacity:1;padding:0 7.466667vw 0 9.333333vw}.am-search.am-search-start .am-search-input input[type=search]::-webkit-input-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::-moz-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::-ms-input-placeholder{color:transparent}.am-search.am-search-start .am-search-input input[type=search]::placeholder{color:transparent}.am-search.am-search-start .am-search-input .am-search-synthetic-ph{padding-left:4vw;width:auto}.search-head{height:11.733333vw;display:flex;background-color:#f7f9fc;border-bottom:1px solid #eee}.search-head .left{width:11.733333vw;height:11.733333vw;line-height:11.733333vw;text-align:center}.search-head .left img{width:3.733333vw;height:3.733333vw;display:block;padding:4vw}.search-head .center{flex:1 1}.search-head .center .am-search{background-color:#f7f9fc}.search-head .center .am-search .am-search-input{background:#f0f2f6;border-radius:11.733333vw}.search-head .center .am-search-start .am-search-input{background:#fff;border-radius:11.733333vw}.search-head .right{width:11.733333vw;height:11.733333vw;line-height:11.733333vw}.search-head .right .am-icon-md{padding:2.933333vw}.search-head .right-btn{width:auto}.search-head .right-btn .submit-btn{line-height:8vw;border:0;height:8vw;padding:0 3.2vw;margin:1.866667vw 0;border-radius:.8vw;font-size:3.733333vw;color:#333}.search-head .right-btn .submit-btn--active{color:#09f}.am-search{height:11.466667vw;padding:0}.tagHot,.tagLately{display:block;max-width:100%;overflow:hidden;margin-right:2.666667vw;margin-bottom:2.666667vw;font-size:3.2vw;padding:1.066667vw 2.666667vw;border-radius:3.733333vw;float:left;background-color:#f5f5f5;line-height:5.333333vw;color:#666}.tagHot{color:#333}.search-page .search-main{background-color:#fff;padding:2.666667vw}.search-page .search-main .search-land .search-history{margin-bottom:2.666667vw;display:flex;justify-content:space-between}.search-page .search-main .search-land .search-history span{font-size:4.266667vw}.search-page .search-main .search-land .search-history img{width:4.266667vw;height:4.266667vw;display:block}.search-page .search-main .search-land .search-tag{overflow:hidden}.search-page .search-main .search-land .no_search_history{font-size:3.2vw}.search-page .search-main .search-hot{margin-top:2.666667vw;font-size:3.733333vw}.search-page .search-main li,.search-page .search-main ul{list-style:none;padding:0;margin:0}.search-page .search-main .list{padding:2.666667vw 0;border-bottom:1px solid #eee}.search-page .search-main .list:last-child{border-bottom:0}.search-page .searct-lists{padding:0 2.666667vw}
/*# sourceMappingURL=search.5716d9b3.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/node_modules/antd-mobile/lib/search-bar/style/index.css","search.5716d9b3.chunk.css","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/search_header.scss","/Users/xzh/dnmp/www/mr-julyedu/src/common/Tag/tag.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/search/index.scss"],"names":[],"mappings":"AACA,WAKE,YAAA,CAIQ,kBAAA,CACR,kBAAA,CACA,oBAAA,CAEA,wBCLF,CDOA,4BAdE,iBAAA,CAWA,eCMF,CDHA,iBAIU,QAAA,CAER,UAAA,CACA,iBAAA,CAEA,qBAAA,CACA,2BAAA,CACA,kBCRF,CDUA,6EAEE,iBAAA,CACA,KAAA,CACA,MCRF,CDUA,yCAEU,kBAAA,CACR,SAAA,CACA,iBAAA,CACA,sBAAA,CACA,UAAA,CACA,4BAAA,CACA,oBAAA,CACA,aAAA,CACA,iBCTF,CDWA,8CACE,oBAAA,CACA,uBAAA,CACA,SAAA,CACA,UAAA,CACA,eAAA,CACA,yBAAA,CACA,2BAAA,CACA,wBAAA,CACA,2gBCTF,CDWA,qDACE,UAAA,CACA,aCTF,CDWA,oCACE,SAAA,CACA,SAAA,CACA,UAAA,CACA,eAAA,CACA,aAAA,CACA,UAAA,CACA,iBAAA,CACA,aAAA,CACA,wBAAA,CACA,QCTF,CDWA,+DACE,eAAA,CACA,eAAA,CACA,iBCTF,CDWA,sDACE,eAAA,CACA,eAAA,CACA,iBCTF,CDWA,2DACE,eAAA,CACA,eAAA,CACA,iBCTF,CDWA,iDACE,eAAA,CACA,eAAA,CACA,iBCTF,CDWA,kEACE,uBCTF,CDWA,kCAEU,kBAAA,CACR,iBAAA,CACA,YAAA,CACA,SAAA,CACA,SAAA,CACA,UAAA,CACA,kBAAA,CACA,iBAAA,CACA,KAAA,CACA,OAAA,CACA,wBAAA,CACA,uBAAA,CACA,2BAAA,CACA,uBAAA,CACA,0BAAA,CACA,kBAAA,CACA,qWCVF,CDYA,yCACE,wWCVF,CDYA,uCACE,aCVF,CDYA,k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BY,qBAAA,CACA,oBAAe,CAhC3B,0DAoCY,eAAA,CACA,SAAA,CACA,QAAS,CAtCrB,gCA0CY,oBAAA,CACA,4BAA6B,CA3CzC,2CA+CY,eAAgB,CA/C5B,2BAoDQ,oBAAe","file":"search.5716d9b3.chunk.css","sourcesContent":["/* 默认搜索bar */\n.am-search {\n position: relative;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 44px;\n padding: 0 8px;\n overflow: hidden;\n background-color: #efeff4;\n}\n.am-search-input {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n width: 100%;\n height: 28px;\n overflow: hidden;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 3px;\n}\n.am-search-input .am-search-synthetic-ph,\n.am-search-input input[type=\"search\"] {\n position: absolute;\n top: 0;\n left: 0;\n}\n.am-search-input .am-search-synthetic-ph {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n z-index: 1;\n height: 28px;\n line-height: 28px;\n width: 100%;\n -webkit-transition: width .3s;\n transition: width .3s;\n display: block;\n text-align: center;\n}\n.am-search-input .am-search-synthetic-ph-icon {\n display: inline-block;\n margin-right: 5px;\n width: 15px;\n height: 15px;\n overflow: hidden;\n vertical-align: -2.5px;\n background-repeat: no-repeat;\n background-size: 15px auto;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'38'%20height%3D'36'%20viewBox%3D'0%200%2038%2036'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M29.05%2025.23a15.81%2015.81%200%200%200%203.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02%207.136.02%2015.936c0%208.802%207.172%2015.937%2016.017%2015.937%204.148%200%207.928-1.569%2010.772-4.143l8.873%208.232%202.296-2.45-8.927-8.282zM16.2%2028.933c-7.19%200-13.04-5.788-13.04-12.903%200-7.113%205.85-12.904%2013.04-12.904%207.19%200%2012.9%205.79%2012.9%2012.904%200%207.115-5.71%2012.903-12.9%2012.903z'%20fill%3D'%23bbb'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-synthetic-ph-placeholder {\n color: #bbb;\n font-size: 15px;\n}\n.am-search-input input[type=\"search\"] {\n z-index: 2;\n opacity: 0;\n width: 100%;\n text-align: left;\n display: block;\n color: #000;\n height: 28px;\n font-size: 15px;\n background-color: transparent;\n border: 0;\n}\n.am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-moz-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-ms-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.am-search-input .am-search-clear {\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n position: absolute;\n display: none;\n z-index: 3;\n width: 15px;\n height: 15px;\n padding: 6.5px;\n border-radius: 50%;\n top: 0;\n right: 0;\n background-color: transparent;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 15px 15px;\n -webkit-transition: all .3s;\n transition: all .3s;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23ccc'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-active {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23108ee9'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-show {\n display: block;\n}\n.am-search-cancel {\n -webkit-box-flex: 0;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none;\n opacity: 0;\n padding-left: 8px;\n height: 44px;\n line-height: 44px;\n font-size: 16px;\n color: #108ee9;\n text-align: right;\n}\n.am-search-cancel-anim {\n -webkit-transition: margin-right 0.3s, opacity 0.3s;\n transition: margin-right 0.3s, opacity 0.3s;\n -webkit-transition-delay: .1s;\n transition-delay: .1s;\n}\n.am-search-cancel-show {\n opacity: 1;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"] {\n opacity: 1;\n padding: 0 28px 0 35px;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-moz-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-ms-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input .am-search-synthetic-ph {\n padding-left: 15px;\n width: auto;\n}\n","/* 默认搜索bar */\n.am-search {\n position: relative;\n display: flex;\n align-items: center;\n height: 11.733333vw;\n padding: 0 2.133333vw;\n overflow: hidden;\n background-color: #efeff4;\n}\n.am-search-input {\n flex: 1 1;\n position: relative;\n width: 100%;\n height: 7.466667vw;\n overflow: hidden;\n background-color: #fff;\n background-clip: padding-box;\n border-radius: 0.8vw;\n}\n.am-search-input .am-search-synthetic-ph,\n.am-search-input input[type=\"search\"] {\n position: absolute;\n top: 0;\n left: 0;\n}\n.am-search-input .am-search-synthetic-ph {\n box-sizing: content-box;\n z-index: 1;\n height: 7.466667vw;\n line-height: 7.466667vw;\n width: 100%;\n -webkit-transition: width .3s;\n transition: width .3s;\n display: block;\n text-align: center;\n}\n.am-search-input .am-search-synthetic-ph-icon {\n display: inline-block;\n margin-right: 1.333333vw;\n width: 4vw;\n height: 4vw;\n overflow: hidden;\n vertical-align: -0.666667vw;\n background-repeat: no-repeat;\n background-size: 4vw auto;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D'38'%20height%3D'36'%20viewBox%3D'0%200%2038%2036'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M29.05%2025.23a15.81%2015.81%200%200%200%203.004-9.294c0-8.8-7.17-15.934-16.017-15.934C7.192.002.02%207.136.02%2015.936c0%208.802%207.172%2015.937%2016.017%2015.937%204.148%200%207.928-1.569%2010.772-4.143l8.873%208.232%202.296-2.45-8.927-8.282zM16.2%2028.933c-7.19%200-13.04-5.788-13.04-12.903%200-7.113%205.85-12.904%2013.04-12.904%207.19%200%2012.9%205.79%2012.9%2012.904%200%207.115-5.71%2012.903-12.9%2012.903z'%20fill%3D'%23bbb'%20fill-rule%3D'evenodd'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-synthetic-ph-placeholder {\n color: #bbb;\n font-size: 4vw;\n}\n.am-search-input input[type=\"search\"] {\n z-index: 2;\n opacity: 0;\n width: 100%;\n text-align: left;\n display: block;\n color: #000;\n height: 7.466667vw;\n font-size: 4vw;\n background-color: transparent;\n border: 0;\n}\n.am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-moz-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-ms-input-placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::placeholder {\n background: none;\n text-align: left;\n color: transparent;\n}\n.am-search-input input[type=\"search\"]::-webkit-search-cancel-button {\n -webkit-appearance: none;\n}\n.am-search-input .am-search-clear {\n box-sizing: content-box;\n position: absolute;\n display: none;\n z-index: 3;\n width: 4vw;\n height: 4vw;\n padding: 1.733333vw;\n border-radius: 50%;\n top: 0;\n right: 0;\n background-color: transparent;\n background-position: center;\n background-repeat: no-repeat;\n background-size: 4vw 4vw;\n -webkit-transition: all .3s;\n transition: all .3s;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23ccc'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-active {\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2028'%3E%3Ccircle%20cx%3D'14'%20cy%3D'14'%20r%3D'14'%20fill%3D'%23108ee9'%2F%3E%3Cline%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'8'%20y1%3D'8'%20x2%3D'20'%20y2%3D'20'%2F%3E%3Cline%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'2'%20stroke-miterlimit%3D'10'%20x1%3D'20'%20y1%3D'8'%20x2%3D'8'%20y2%3D'20'%2F%3E%3C%2Fsvg%3E\");\n}\n.am-search-input .am-search-clear-show {\n display: block;\n}\n.am-search-cancel {\n flex: none;\n opacity: 0;\n padding-left: 2.133333vw;\n height: 11.733333vw;\n line-height: 11.733333vw;\n font-size: 4.266667vw;\n color: #108ee9;\n text-align: right;\n}\n.am-search-cancel-anim {\n -webkit-transition: margin-right 0.3s, opacity 0.3s;\n transition: margin-right 0.3s, opacity 0.3s;\n -webkit-transition-delay: .1s;\n transition-delay: .1s;\n}\n.am-search-cancel-show {\n opacity: 1;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"] {\n opacity: 1;\n padding: 0 7.466667vw 0 9.333333vw;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-webkit-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-moz-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::-ms-input-placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input input[type=\"search\"]::placeholder {\n color: transparent;\n}\n.am-search.am-search-start .am-search-input .am-search-synthetic-ph {\n padding-left: 4vw;\n width: auto;\n}\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-head {\n height: 11.733333vw;\n display: flex;\n background-color: #F7F9FC;\n border-bottom: 1px solid #eee; }\n .search-head .left {\n width: 11.733333vw;\n height: 11.733333vw;\n line-height: 11.733333vw;\n text-align: center; }\n .search-head .left img {\n width: 3.733333vw;\n height: 3.733333vw;\n display: block;\n padding: 4vw; }\n .search-head .center {\n flex: 1 1; }\n .search-head .center .am-search {\n background-color: #F7F9FC; }\n .search-head .center .am-search .am-search-input {\n background: #F0F2F6;\n border-radius: 11.733333vw; }\n .search-head .center .am-search-start .am-search-input {\n background: #fff;\n border-radius: 11.733333vw; }\n .search-head .right {\n width: 11.733333vw;\n height: 11.733333vw;\n line-height: 11.733333vw; }\n .search-head .right .am-icon-md {\n padding: 2.933333vw; }\n .search-head .right-btn {\n width: auto; }\n .search-head .right-btn .submit-btn {\n line-height: 8vw;\n border: 0;\n height: 8vw;\n margin: 1.866667vw 0px;\n padding: 0 3.2vw;\n margin-left: 0;\n border-radius: 0.8vw;\n font-size: 3.733333vw;\n color: #333; }\n .search-head .right-btn .submit-btn--active {\n color: #09f; }\n\n.am-search {\n height: 11.466667vw;\n padding: 0; }\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.tagLately, .tagHot {\n display: block;\n max-width: 100%;\n overflow: hidden;\n margin-right: 2.666667vw;\n margin-bottom: 2.666667vw;\n font-size: 3.2vw;\n padding: 1.066667vw 2.666667vw;\n border-radius: 3.733333vw;\n float: left;\n background-color: #F5F5F5;\n line-height: 5.333333vw;\n color: #666; }\n\n.tagHot {\n color: #333; }\n\n@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-page .search-main {\n background-color: #fff;\n padding: 2.666667vw; }\n .search-page .search-main .search-land .search-history {\n margin-bottom: 2.666667vw;\n display: flex;\n justify-content: space-between; }\n .search-page .search-main .search-land .search-history span {\n font-size: 4.266667vw; }\n .search-page .search-main .search-land .search-history img {\n width: 4.266667vw;\n height: 4.266667vw;\n display: block; }\n .search-page .search-main .search-land .search-tag {\n overflow: hidden; }\n .search-page .search-main .search-land .no_search_history {\n font-size: 3.2vw; }\n .search-page .search-main .search-hot {\n margin-top: 2.666667vw;\n font-size: 3.733333vw; }\n .search-page .search-main ul, .search-page .search-main li {\n list-style: none;\n padding: 0;\n margin: 0; }\n .search-page .search-main .list {\n padding: 2.666667vw 0;\n border-bottom: 1px solid #eee; }\n .search-page .search-main .list:last-child {\n border-bottom: 0; }\n\n.search-page .searct-lists {\n padding: 0 2.666667vw; }\n\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-head {\n height: 44px;\n display: flex;\n background-color: #F7F9FC;\n border-bottom: 1px solid #eee; }\n .search-head .left {\n width: 44px;\n height: 44px;\n line-height: 44px;\n text-align: center; }\n .search-head .left img {\n width: 14px;\n height: 14px;\n display: block;\n padding: 15px; }\n .search-head .center {\n flex: 1; }\n .search-head .center .am-search {\n background-color: #F7F9FC; }\n .search-head .center .am-search .am-search-input {\n background: #F0F2F6;\n border-radius: 44px; }\n .search-head .center .am-search-start .am-search-input {\n background: #fff;\n border-radius: 44px; }\n .search-head .right {\n width: 44px;\n height: 44px;\n line-height: 44px; }\n .search-head .right .am-icon-md {\n padding: 11px; }\n .search-head .right-btn {\n width: auto; }\n .search-head .right-btn .submit-btn {\n line-height: 30px;\n border: 0;\n height: 30px;\n margin: 7px 0px;\n padding: 0 12px;\n margin-left: 0;\n border-radius: 3px;\n font-size: 14px;\n color: #333; }\n .search-head .right-btn .submit-btn--active {\n color: #09f; }\n\n.am-search {\n height: 43px;\n padding: 0; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.tagLately, .tagHot {\n display: block;\n max-width: 100%;\n overflow: hidden;\n margin-right: 10px;\n margin-bottom: 10px;\n font-size: 12px;\n padding: 4px 10px;\n border-radius: 14px;\n float: left;\n background-color: #F5F5F5;\n line-height: 20px;\n color: #666; }\n\n.tagHot {\n color: #333; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.search-page .search-main {\n background-color: #fff;\n padding: 10px; }\n .search-page .search-main .search-land .search-history {\n margin-bottom: 10px;\n display: flex;\n justify-content: space-between; }\n .search-page .search-main .search-land .search-history span {\n font-size: 16px; }\n .search-page .search-main .search-land .search-history img {\n width: 16px;\n height: 16px;\n display: block; }\n .search-page .search-main .search-land .search-tag {\n overflow: hidden; }\n .search-page .search-main .search-land .no_search_history {\n font-size: 12px; }\n .search-page .search-main .search-hot {\n margin-top: 10px;\n font-size: 14px; }\n .search-page .search-main ul, .search-page .search-main li {\n list-style: none;\n padding: 0;\n margin: 0; }\n .search-page .search-main .list {\n padding: 10px 0;\n border-bottom: 1px solid #eee; }\n .search-page .search-main .list:last-child {\n border-bottom: 0; }\n\n.search-page .searct-lists {\n padding: 0 10px; }\n"]}
\ No newline at end of file
.play .video{width:100%;height:57.333333vw;background-color:#000;position:relative}.play .video .video-js{width:100%;height:100%}.play .video .video-js .vjs-big-play-button{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#09f;border:none}.play .video .purchase-box{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.8);display:flex;flex-flow:column;justify-content:center;align-items:center}.play .video .purchase-box .hint{font-size:3.733333vw;color:#fff;margin-bottom:5.333333vw}.play .video .purchase-box .btns{width:100%;padding:0 16vw;display:flex;justify-content:space-around}.play .video .purchase-box .purchase-class{background-color:initial;background-color:#fff;color:#ff4000}.play .video .purchase-box .purchase-class,.play .video .purchase-box .purchase-episode{display:block;-webkit-appearance:none;outline:none;border:none;border-radius:1.333333vw;line-height:8vw;font-size:3.466667vw;padding:0 2.4vw}.play .video .purchase-box .purchase-episode{background-color:initial;background-color:#ff4000;color:#fff}.play .video .is-aist-box{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.8);display:flex;flex-flow:column;justify-content:center;align-items:center;color:#fff}.play .video .is-aist-box i{font-size:9.066667vw}.play .video .is-aist-box .time{font-size:4.266667vw}.play .video video{width:100%;height:100%}.play .tab{height:11.733333vw;max-height:11.733333vw;line-height:11.733333vw;text-align:center;background:#fff;display:flex;justify-content:center}.play .tab,.play .tab>div{flex:1 0 auto}.play .tab a{display:inline-block;height:11.733333vw;font-size:4.266667vw;border-bottom:1px solid transparent}.play .tab a.active{border-bottom:1px solid #09f}.play .active{color:#09f}.play .active .iconiconfront-74{color:#555}.play .progress-share-modal{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:77.333333vw;height:88.533333vw;padding:4.8vw 4vw;background:url(/static/media/progress-share-bg.80011994.png);background-size:contain}.play .progress-share-modal>.title{font-size:5.6vw;color:#00656f;line-height:8vw;text-align:center;margin-bottom:5.333333vw}.play .progress-share-modal .progress-container{display:flex;justify-content:space-between;margin-bottom:5.333333vw}.play .progress-share-modal .progress-container li{flex:1 1}.play .progress-share-modal .progress-container li .title{font-size:3.733333vw;color:#00838f;line-height:5.333333vw;text-align:center;flex:1 1;margin-bottom:2.666667vw}.play .progress-share-modal .progress-container li .number{font-size:4vw;color:#00656f;text-align:center}.play .progress-share-modal .progress-container li .number .num{font-size:8.8vw;color:#00656f}.play .progress-share-modal .share-container .title{position:relative;text-align:center;font-size:3.733333vw;color:#00838f;margin-bottom:6.666667vw}.play .progress-share-modal .share-container .title:before{left:8vw}.play .progress-share-modal .share-container .title:after,.play .progress-share-modal .share-container .title:before{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);content:"";display:block;width:18.666667vw;height:1px;background:#77c4bf}.play .progress-share-modal .share-container .title:after{right:8vw}.play .progress-share-modal .share-container ul{display:flex;justify-content:space-around;padding:0 5.333333vw;text-align:center}.play .progress-share-modal .share-container ul li{font-size:3.2vw;color:#00838f}.play .progress-share-modal .share-container ul li .iconfont{font-size:10.666667vw;color:#00838f}.play .progress-share-modal .close{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:-16.8vw;color:#fff;font-size:8vw}.play .progress-share-modal-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);touch-action:none;z-index:100}.recommendation{margin-top:4vw;border-top:2.666667vw solid #f5f5f5}.recommendation>.title{font-size:4.266667vw;padding-left:4vw;margin-top:4vw}.recommendation .info{display:flex;flex-wrap:wrap;width:52.3%}.recommendation .info .title{font-size:4vw}.recommendation .info .des{font-size:3.733333vw;line-height:4.266667vw;align-self:flex-start}.recommendation .info .price{color:#ff2121;font-size:4.266667vw;margin-right:3.733333vw}.recommendation .info .stale-price{text-decoration:line-through;color:#999;font-size:3.2vw}.recommendation .info .bottom{align-self:flex-end}.v-list-base-item{height:34.666667vw;padding:2.666667vw 2.666667vw 0;position:relative}.v-list-base-item .content{display:flex;height:100%;padding-bottom:2.666667vw;border-bottom:1px solid #e7eaf1}.v-list-base-item .content .cover{flex:0 0 auto;margin-right:4.266667vw;position:relative}.v-list-base-item .content .cover img{width:40vw;height:28.8vw;border-radius:.8vw}.v-list-base-item .content .course-status{width:100%;height:6.4vw;position:absolute;bottom:-1px;border-radius:0 0 .8vw .8vw;text-align:center;line-height:6.4vw;color:#fff;font-size:3.466667vw}.video-catalog li:first-child{border-top:1px solid #e7eaf1}.video-catalog li{line-height:11.733333vw;border-bottom:1px solid #e7eaf1;padding:0 4vw}.video-catalog li.active .duration,.video-catalog li.active .title{color:#09f}.video-catalog li.active .video-title{background-color:#f5fbff}.video-catalog li.active .exercise{border-top:1px solid #e7eaf1;font-size:3.2vw}.video-catalog li.active .exercise .iconiconfront-3{font-weight:700;color:#09f}.video-catalog li .video-title{height:11.733333vw;margin:0 -4vw;padding:0 4vw}.video-catalog li .video-title .iconfont{font-size:5.866667vw}.video-catalog li .exercise{padding-left:4vw;height:9.333333vw;background:#f5fbff;margin-bottom:4vw;line-height:9.333333vw;font-size:3.2vw;color:#000;border-top:1px solid transparent}.video-catalog li .exercise .iconfont{font-size:4.8vw}.video-catalog .title{display:inline-block;width:50%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:3.733333vw;margin-right:6.933333vw}.video-catalog .duration{display:inline-block;font-size:2.933333vw;overflow:hidden}.video-catalog .iconfont{float:right}.datum-catalog .prompt{height:8vw;line-height:8vw;font-size:3.2vw;color:#333;background-color:#fff4ce;text-align:center}.datum-catalog .file-name{padding:4vw 4vw 0}.datum-catalog .file-name:last-of-type{padding-bottom:4vw}.popup-box{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:2}.popup-box .content{width:80vw;position:relative;background-color:#fff;padding-top:5.333333vw;border-radius:.8vw}.popup-box .close{color:#fff;font-size:5.866667vw;position:relative;left:50%;margin-left:-2.933333vw}.popup-box .btn{position:absolute;bottom:6.4vw;left:22.133333vw;width:36vw;height:8vw;border-radius:.8vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8vw}.popup-box .btn-18B4ED{background-color:#18b4ed}.popup-box .btn-FF4000{background-color:#ff4000}.popup-box .header{color:#09f;height:6.4vw;line-height:6.4vw;text-align:center}.popup-box .header i{font-size:6.4vw}.popup-box .header span{font-size:4.8vw;margin-left:2.666667vw;vertical-align:text-bottom}.popup-box .singleset-payment{height:81.333333vw;margin:37.333333vw auto 5.866667vw;padding:4.533333vw 5.333333vw}.popup-box .singleset-payment .price-box{padding-bottom:4vw;border-bottom:1px solid #ddd}.popup-box .singleset-payment .price-box span{font-size:3.2vw;color:#666}.popup-box .singleset-payment .price-box p{height:5.866667vw;line-height:5.866667vw;color:#ff4000;font-size:5.866667vw;text-align:center;margin-top:1.333333vw}.popup-box .singleset-payment .course-info{font-size:3.733333vw}.popup-box .singleset-payment .course-info p{height:3.733333vw;line-height:3.733333vw;margin-top:2.666667vw;color:#333}.popup-box .singleset-payment .course-info p span{color:#666}.popup-box .singleset-payment .payment-type{margin-top:5.333333vw}.popup-box .singleset-payment .payment-type label{display:inline-block;width:100%;border-bottom:1px solid #ddd;color:#666;font-size:3.2vw;padding-bottom:1.333333vw}.popup-box .singleset-payment .payment-type p{height:5.866667vw;line-height:5.866667vw;margin-top:2.666667vw;position:relative}.popup-box .singleset-payment .payment-type p .iconalipay{font-size:5.866667vw;color:#01aaef}.popup-box .singleset-payment .payment-type p .iconweixinzhifu{font-size:5.866667vw;color:#3baf34}.popup-box .singleset-payment .payment-type p span{display:inline-block;margin-left:2.666667vw;color:#333;font-size:3.733333vw;vertical-align:text-bottom}.popup-box .singleset-payment .payment-type p .icondanseshixintubiao-5{position:absolute;right:0;font-size:6.4vw}.popup-box .singleset-payment .payment-type p .redio{color:#ccc}.popup-box .singleset-payment .payment-type p .redioed{color:#4cd964}.popup-box .zero{height:39.2vw;margin:56.8vw auto 5.866667vw;text-align:center}.popup-box .zero .header{color:#09f;height:6.4vw;line-height:6.4vw}.popup-box .zero .header i{font-size:6.4vw}.popup-box .zero .header span{font-size:4.8vw;margin-left:2.666667vw;vertical-align:text-bottom}.popup-box .zero .dec{height:3.733333vw;line-height:3.733333vw;color:#666;font-size:3.733333vw;margin-top:4vw}.popup-box .payment-success{height:68.8vw;margin:38.133333vw auto 5.866667vw;padding:5.333333vw 6.4vw}.popup-box .payment-success .dec{height:8.8vw;line-height:5.333333vw;color:#666;font-size:3.733333vw;margin-top:3.2vw}.popup-box .payment-success .btn-18B4ED{bottom:18.666667vw}.popup-box .group{height:44vw;margin:56.8vw auto 5.866667vw;text-align:center}.popup-box .group .group-img{margin-top:4vw}.popup-box .group .group-img img{width:10.666667vw;height:10.666667vw;border-radius:13.333333vw;margin-right:4vw}.popup-box .group .btn-l{position:absolute;width:64vw;bottom:5.333333vw;left:8vw;height:8vw;border-radius:.8vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8vw}
/*# sourceMappingURL=video.ac969c69.chunk.css.map */
\ No newline at end of file
.play .video{width:100%;height:57.333333vw;background-color:#000;position:relative}.play .video .video-js{width:100%;height:100%}.play .video .video-js .vjs-big-play-button{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#09f;border:none}.play .video .purchase-box{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.8);display:flex;flex-flow:column;justify-content:center;align-items:center}.play .video .purchase-box .hint{font-size:3.733333vw;color:#fff;margin-bottom:5.333333vw}.play .video .purchase-box .btns{width:100%;padding:0 16vw;display:flex;justify-content:space-around}.play .video .purchase-box .purchase-class{background-color:initial;background-color:#fff;color:#ff4000}.play .video .purchase-box .purchase-class,.play .video .purchase-box .purchase-episode{display:block;-webkit-appearance:none;outline:none;border:none;border-radius:1.333333vw;line-height:8vw;font-size:3.466667vw;padding:0 2.4vw}.play .video .purchase-box .purchase-episode{background-color:initial;background-color:#ff4000;color:#fff}.play .video .is-aist-box{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.8);display:flex;flex-flow:column;justify-content:center;align-items:center;color:#fff}.play .video .is-aist-box i{font-size:9.066667vw}.play .video .is-aist-box .time{font-size:4.266667vw}.play .video video{width:100%;height:100%}.play .tab{height:11.733333vw;max-height:11.733333vw;line-height:11.733333vw;text-align:center;background:#fff;display:flex;justify-content:center}.play .tab,.play .tab>div{flex:1 0 auto}.play .tab a{display:inline-block;height:11.733333vw;font-size:4.266667vw;border-bottom:1px solid transparent}.play .tab a.active{border-bottom:1px solid #09f}.play .active{color:#09f}.play .active .iconiconfront-74{color:#555}.play .progress-share-modal{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:77.333333vw;height:88.533333vw;padding:4.8vw 4vw;background:url(/static/media/progress-share-bg.80011994.png);background-size:contain}.play .progress-share-modal>.title{font-size:5.6vw;color:#00656f;line-height:8vw;text-align:center;margin-bottom:5.333333vw}.play .progress-share-modal .progress-container{display:flex;justify-content:space-between;margin-bottom:5.333333vw}.play .progress-share-modal .progress-container li{flex:1 1}.play .progress-share-modal .progress-container li .title{font-size:3.733333vw;color:#00838f;line-height:5.333333vw;text-align:center;flex:1 1;margin-bottom:2.666667vw}.play .progress-share-modal .progress-container li .number{font-size:4vw;color:#00656f;text-align:center}.play .progress-share-modal .progress-container li .number .num{font-size:8.8vw;color:#00656f}.play .progress-share-modal .share-container .title{position:relative;text-align:center;font-size:3.733333vw;color:#00838f;margin-bottom:6.666667vw}.play .progress-share-modal .share-container .title:before{left:8vw}.play .progress-share-modal .share-container .title:after,.play .progress-share-modal .share-container .title:before{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);content:"";display:block;width:18.666667vw;height:1px;background:#77c4bf}.play .progress-share-modal .share-container .title:after{right:8vw}.play .progress-share-modal .share-container ul{display:flex;justify-content:space-around;padding:0 5.333333vw;text-align:center}.play .progress-share-modal .share-container ul li{font-size:3.2vw;color:#00838f}.play .progress-share-modal .share-container ul li .iconfont{font-size:10.666667vw;color:#00838f}.play .progress-share-modal .close{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:-16.8vw;color:#fff;font-size:8vw}.play .progress-share-modal-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);touch-action:none;z-index:100}.recommendation{margin-top:4vw;border-top:2.666667vw solid #f5f5f5}.recommendation>.title{font-size:4.266667vw;padding-left:4vw;margin-top:4vw}.recommendation .info{display:flex;flex-wrap:wrap;width:52.3%}.recommendation .info .title{font-size:4vw}.recommendation .info .des{font-size:3.733333vw;line-height:4.266667vw;align-self:flex-start}.recommendation .info .price{color:#ff2121;font-size:4.266667vw;margin-right:3.733333vw}.recommendation .info .stale-price{text-decoration:line-through;color:#999;font-size:3.2vw}.recommendation .info .bottom{align-self:flex-end}.v-list-base-item{height:34.666667vw;padding:2.666667vw 2.666667vw 0;position:relative}.v-list-base-item .content{display:flex;height:100%;padding-bottom:2.666667vw;border-bottom:1px solid #e7eaf1}.v-list-base-item .content .cover{flex:0 0 auto;margin-right:4.266667vw;position:relative}.v-list-base-item .content .cover img{width:40vw;height:28.8vw;border-radius:.8vw}.v-list-base-item .content .course-status{width:100%;height:6.4vw;position:absolute;bottom:-1px;border-radius:0 0 .8vw .8vw;text-align:center;line-height:6.4vw;color:#fff;font-size:3.466667vw}.video-catalog li:first-child{border-top:1px solid #e7eaf1}.video-catalog li{line-height:11.733333vw;border-bottom:1px solid #e7eaf1;padding:0 4vw}.video-catalog li.active .duration,.video-catalog li.active .title{color:#09f}.video-catalog li.active .video-title{background-color:#f5fbff}.video-catalog li.active .exercise{border-top:1px solid #e7eaf1;font-size:3.2vw}.video-catalog li.active .exercise .iconiconfront-3{font-weight:700;color:#09f}.video-catalog li .video-title{height:11.733333vw;margin:0 -4vw;padding:0 4vw}.video-catalog li .video-title .iconfont{font-size:5.866667vw}.video-catalog li .exercise{padding-left:4vw;height:9.333333vw;background:#f5fbff;margin-bottom:4vw;line-height:9.333333vw;font-size:3.2vw;color:#000;border-top:1px solid transparent}.video-catalog li .exercise .iconfont{font-size:4.8vw}.video-catalog .title{display:inline-block;width:50%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:3.733333vw;margin-right:6.933333vw}.video-catalog .duration{display:inline-block;font-size:2.933333vw;overflow:hidden}.video-catalog .iconfont{float:right}.datum-catalog .prompt{height:8vw;line-height:8vw;font-size:3.2vw;color:#333;background-color:#fff4ce;text-align:center}.datum-catalog .file-name{padding:4vw 4vw 0}.datum-catalog .file-name:last-of-type{padding-bottom:4vw}.popup-box{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:5}.popup-box .content{width:80vw;position:relative;background-color:#fff;padding-top:5.333333vw;border-radius:.8vw}.popup-box .close{color:#fff;font-size:5.866667vw;position:relative;left:50%;margin-left:-2.933333vw}.popup-box .btn{position:absolute;bottom:6.4vw;left:22.133333vw;width:36vw;height:8vw;border-radius:.8vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8vw}.popup-box .btn-18B4ED{background-color:#18b4ed}.popup-box .btn-FF4000{background-color:#ff4000}.popup-box .header{color:#09f;height:6.4vw;line-height:6.4vw;text-align:center}.popup-box .header i{font-size:6.4vw}.popup-box .header span{font-size:4.8vw;margin-left:2.666667vw;vertical-align:text-bottom}.popup-box .singleset-payment{height:81.333333vw;margin:37.333333vw auto 5.866667vw;padding:4.533333vw 5.333333vw}.popup-box .singleset-payment .price-box{padding-bottom:4vw;border-bottom:1px solid #ddd}.popup-box .singleset-payment .price-box span{font-size:3.2vw;color:#666}.popup-box .singleset-payment .price-box p{height:5.866667vw;line-height:5.866667vw;color:#ff4000;font-size:5.866667vw;text-align:center;margin-top:1.333333vw}.popup-box .singleset-payment .course-info{font-size:3.733333vw}.popup-box .singleset-payment .course-info p{height:3.733333vw;line-height:3.733333vw;margin-top:2.666667vw;color:#333}.popup-box .singleset-payment .course-info p span{color:#666}.popup-box .singleset-payment .payment-type{margin-top:5.333333vw}.popup-box .singleset-payment .payment-type label{display:inline-block;width:100%;border-bottom:1px solid #ddd;color:#666;font-size:3.2vw;padding-bottom:1.333333vw}.popup-box .singleset-payment .payment-type p{height:5.866667vw;line-height:5.866667vw;margin-top:2.666667vw;position:relative}.popup-box .singleset-payment .payment-type p .iconalipay{font-size:5.866667vw;color:#01aaef}.popup-box .singleset-payment .payment-type p .iconweixinzhifu{font-size:5.866667vw;color:#3baf34}.popup-box .singleset-payment .payment-type p span{display:inline-block;margin-left:2.666667vw;color:#333;font-size:3.733333vw;vertical-align:text-bottom}.popup-box .singleset-payment .payment-type p .icondanseshixintubiao-5{position:absolute;right:0;font-size:6.4vw}.popup-box .singleset-payment .payment-type p .redio{color:#ccc}.popup-box .singleset-payment .payment-type p .redioed{color:#4cd964}.popup-box .zero{height:39.2vw;margin:56.8vw auto 5.866667vw;text-align:center}.popup-box .zero .header{color:#09f;height:6.4vw;line-height:6.4vw}.popup-box .zero .header i{font-size:6.4vw}.popup-box .zero .header span{font-size:4.8vw;margin-left:2.666667vw;vertical-align:text-bottom}.popup-box .zero .dec{height:3.733333vw;line-height:3.733333vw;color:#666;font-size:3.733333vw;margin-top:4vw}.popup-box .payment-success{height:68.8vw;margin:38.133333vw auto 5.866667vw;padding:5.333333vw 6.4vw}.popup-box .payment-success .dec{height:8.8vw;line-height:5.333333vw;color:#666;font-size:3.733333vw;margin-top:3.2vw}.popup-box .payment-success .btn-18B4ED{bottom:18.666667vw}.popup-box .group{height:44vw;margin:56.8vw auto 5.866667vw;text-align:center}.popup-box .group .group-img{margin-top:4vw}.popup-box .group .group-img img{width:10.666667vw;height:10.666667vw;border-radius:13.333333vw;margin-right:4vw}.popup-box .group .btn-l{position:absolute;width:64vw;bottom:5.333333vw;left:8vw;height:8vw;border-radius:.8vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8vw}
/*# sourceMappingURL=video.bafccd3e.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/src/components/video/video.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/video/recommendation/recommendation.scss","/Users/xzh/dnmp/www/mr-julyedu/src/common/v-list-base/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/video/video-catalog/video-catalog.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/video/datum-catalog/datum-catalog.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/detail/single/index.scss"],"names":[],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A,CACA,wBAAkB,CA7LtB,iCAgMM,YAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,gBAAgB,CApMtB,wCAwMM,kBAAY,CAxMlB,kBA6MI,WAAA,CACA,6BAAA,CACA,iBAAkB,CA/MtB,6BAiNM,cAAgB,CAjNtB,iCAmNQ,iBAAA,CACA,kBAAA,CACA,yBAAA,CACA,gBAAkB,CAtN1B,yBA0NM,iBAAA,CACA,UAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,kBAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,eAAiB","file":"video.ac969c69.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.play .video {\n width: 100%;\n height: 215px;\n background-color: #000;\n position: relative; }\n .play .video .video-js {\n width: 100%;\n height: 100%; }\n .play .video .video-js .vjs-big-play-button {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #09f;\n border: none; }\n .play .video .purchase-box {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.8);\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center; }\n .play .video .purchase-box .hint {\n font-size: 14px;\n color: #fff;\n margin-bottom: 20px; }\n .play .video .purchase-box .btns {\n width: 100%;\n padding: 0 60px;\n display: flex;\n justify-content: space-around; }\n .play .video .purchase-box .purchase-class {\n display: block;\n -webkit-appearance: none;\n outline: none;\n border: none;\n background-color: transparent;\n border-radius: 5px;\n line-height: 30px;\n font-size: 13px;\n padding: 0 9px;\n background-color: #fff;\n color: #FF4000; }\n .play .video .purchase-box .purchase-episode {\n display: block;\n -webkit-appearance: none;\n outline: none;\n border: none;\n background-color: transparent;\n border-radius: 5px;\n line-height: 30px;\n font-size: 13px;\n padding: 0 9px;\n background-color: #FF4000;\n color: #fff; }\n .play .video .is-aist-box {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.8);\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center;\n color: #fff; }\n .play .video .is-aist-box i {\n font-size: 34px; }\n .play .video .is-aist-box .time {\n font-size: 16px; }\n .play .video video {\n width: 100%;\n height: 100%; }\n\n.play .tab {\n height: 44px;\n max-height: 44px;\n line-height: 44px;\n text-align: center;\n background: #fff;\n flex: 1 0 auto;\n display: flex;\n justify-content: center; }\n .play .tab > div {\n flex: 1 0 auto; }\n .play .tab a {\n display: inline-block;\n height: 44px;\n font-size: 16px;\n border-bottom: 1px solid transparent; }\n .play .tab a.active {\n border-bottom: 1px solid #09f; }\n\n.play .active {\n color: #09f; }\n .play .active .iconiconfront-74 {\n color: #555; }\n\n.play .progress-share-modal {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 290px;\n height: 332px;\n padding: 18px 15px;\n background: url(\"./images/progress-share-bg.png\");\n background-size: contain; }\n .play .progress-share-modal > .title {\n font-size: 21px;\n color: #00656F;\n line-height: 30px;\n text-align: center;\n margin-bottom: 20px; }\n .play .progress-share-modal .progress-container {\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px; }\n .play .progress-share-modal .progress-container li {\n flex: 1; }\n .play .progress-share-modal .progress-container li .title {\n font-size: 14px;\n color: #00838F;\n line-height: 20px;\n text-align: center;\n flex: 1;\n margin-bottom: 10px; }\n .play .progress-share-modal .progress-container li .number {\n font-size: 15px;\n color: #00656F;\n text-align: center; }\n .play .progress-share-modal .progress-container li .number .num {\n font-size: 33px;\n color: #00656F; }\n .play .progress-share-modal .share-container .title {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #00838F;\n margin-bottom: 25px; }\n .play .progress-share-modal .share-container .title::before {\n position: absolute;\n top: 50%;\n left: 30px;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 70px;\n height: 1px;\n background: #77c4bf; }\n .play .progress-share-modal .share-container .title::after {\n position: absolute;\n top: 50%;\n right: 30px;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 70px;\n height: 1px;\n background: #77c4bf; }\n .play .progress-share-modal .share-container ul {\n display: flex;\n justify-content: space-around;\n padding: 0 20px;\n text-align: center; }\n .play .progress-share-modal .share-container ul li {\n font-size: 12px;\n color: #00838F; }\n .play .progress-share-modal .share-container ul li .iconfont {\n font-size: 40px;\n color: #00838f; }\n .play .progress-share-modal .close {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n bottom: -63px;\n color: #fff;\n font-size: 30px; }\n .play .progress-share-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n touch-action: none;\n z-index: 100; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.recommendation {\n margin-top: 15px;\n border-top: 10px solid #f5f5f5; }\n .recommendation > .title {\n font-size: 16px;\n padding-left: 15px;\n margin-top: 15px; }\n .recommendation .info {\n display: flex;\n flex-wrap: wrap;\n width: 52.3%; }\n .recommendation .info .title {\n font-size: 15px; }\n .recommendation .info .des {\n font-size: 14px;\n line-height: 16px;\n align-self: flex-start; }\n .recommendation .info .price {\n color: #FF2121;\n font-size: 16px;\n margin-right: 14px; }\n .recommendation .info .stale-price {\n text-decoration: line-through;\n color: #999;\n font-size: 12px; }\n .recommendation .info .bottom {\n align-self: flex-end; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.v-list-base-item {\n height: 130px;\n padding: 10px 10px 0;\n position: relative; }\n .v-list-base-item .content {\n display: flex;\n height: 100%;\n padding-bottom: 10px;\n border-bottom: 1px solid #e7eaf1; }\n .v-list-base-item .content .cover {\n flex: 0 0 auto;\n margin-right: 16px;\n position: relative; }\n .v-list-base-item .content .cover img {\n width: 150px;\n height: 108px;\n border-radius: 3px; }\n .v-list-base-item .content .course-status {\n width: 100%;\n height: 24px;\n position: absolute;\n bottom: -1px;\n border-radius: 0 0 3px 3px;\n text-align: center;\n line-height: 24px;\n color: #fff;\n font-size: 13px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.video-catalog li:first-child {\n border-top: 1px solid #E7EAF1; }\n\n.video-catalog li {\n line-height: 44px;\n border-bottom: 1px solid #E7EAF1;\n padding: 0 15px; }\n .video-catalog li.active .title, .video-catalog li.active .duration {\n color: #09f; }\n .video-catalog li.active .video-title {\n background-color: #F5FBFF; }\n .video-catalog li.active .exercise {\n border-top: 1px solid #E7EAF1;\n font-size: 12px; }\n .video-catalog li.active .exercise .iconiconfront-3 {\n font-weight: bold;\n color: #09f; }\n .video-catalog li .video-title {\n height: 44px;\n margin: 0 -15px;\n padding: 0 15px; }\n .video-catalog li .video-title .iconfont {\n font-size: 22px; }\n .video-catalog li .exercise {\n padding-left: 15px;\n height: 35px;\n background: #F5FBFF;\n margin-bottom: 15px;\n line-height: 35px;\n font-size: 12px;\n color: #000;\n border-top: 1px solid transparent; }\n .video-catalog li .exercise .iconfont {\n font-size: 18px; }\n\n.video-catalog .title {\n display: inline-block;\n width: 50%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 14px;\n margin-right: 26px; }\n\n.video-catalog .duration {\n display: inline-block;\n font-size: 11px;\n overflow: hidden; }\n\n.video-catalog .iconfont {\n float: right; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.datum-catalog .prompt {\n height: 30px;\n line-height: 30px;\n font-size: 12px;\n color: #333;\n background-color: #FFF4CE;\n text-align: center; }\n\n.datum-catalog .file-name {\n padding: 15px;\n padding-bottom: 0; }\n\n.datum-catalog .file-name:last-of-type {\n padding-bottom: 15px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.popup-box {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 2; }\n .popup-box .content {\n width: 300px;\n position: relative;\n background-color: #fff;\n padding-top: 20px;\n border-radius: 3px; }\n .popup-box .close {\n color: #fff;\n font-size: 22px;\n position: relative;\n left: 50%;\n margin-left: -11px; }\n .popup-box .btn {\n position: absolute;\n bottom: 24px;\n left: 83px;\n width: 135px;\n height: 30px;\n border-radius: 3px;\n font-size: 16px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n .popup-box .btn-18B4ED {\n background-color: #18B4ED; }\n .popup-box .btn-FF4000 {\n background-color: #FF4000; }\n .popup-box .header {\n color: #09f;\n height: 24px;\n line-height: 24px;\n text-align: center; }\n .popup-box .header i {\n font-size: 24px; }\n .popup-box .header span {\n font-size: 18px;\n margin-left: 10px;\n vertical-align: text-bottom; }\n .popup-box .singleset-payment {\n height: 305px;\n margin: 140px auto 22px auto;\n padding: 17px 20px; }\n .popup-box .singleset-payment .price-box {\n padding-bottom: 15px;\n border-bottom: 1px solid #ddd; }\n .popup-box .singleset-payment .price-box span {\n font-size: 12px;\n color: #666; }\n .popup-box .singleset-payment .price-box p {\n height: 22px;\n line-height: 22px;\n color: #FF4000;\n font-size: 22px;\n text-align: center;\n margin-top: 5px; }\n .popup-box .singleset-payment .course-info {\n font-size: 14px; }\n .popup-box .singleset-payment .course-info p {\n height: 14px;\n line-height: 14px;\n margin-top: 10px;\n color: #333; }\n .popup-box .singleset-payment .course-info p span {\n color: #666; }\n .popup-box .singleset-payment .payment-type {\n margin-top: 20px; }\n .popup-box .singleset-payment .payment-type label {\n display: inline-block;\n width: 100%;\n border-bottom: 1px solid #ddd;\n color: #666;\n font-size: 12px;\n padding-bottom: 5px; }\n .popup-box .singleset-payment .payment-type p {\n height: 22px;\n line-height: 22px;\n margin-top: 10px;\n position: relative; }\n .popup-box .singleset-payment .payment-type p .iconalipay {\n font-size: 22px;\n color: #01aaef; }\n .popup-box .singleset-payment .payment-type p .iconweixinzhifu {\n font-size: 22px;\n color: #3baf34; }\n .popup-box .singleset-payment .payment-type p span {\n display: inline-block;\n margin-left: 10px;\n color: #333;\n font-size: 14px;\n vertical-align: text-bottom; }\n .popup-box .singleset-payment .payment-type p .icondanseshixintubiao-5 {\n position: absolute;\n right: 0;\n font-size: 24px; }\n .popup-box .singleset-payment .payment-type p .redio {\n color: #ccc; }\n .popup-box .singleset-payment .payment-type p .redioed {\n color: #4cd964; }\n .popup-box .zero {\n height: 147px;\n margin: 213px auto 22px auto;\n text-align: center; }\n .popup-box .zero .header {\n color: #09f;\n height: 24px;\n line-height: 24px; }\n .popup-box .zero .header i {\n font-size: 24px; }\n .popup-box .zero .header span {\n font-size: 18px;\n margin-left: 10px;\n vertical-align: text-bottom; }\n .popup-box .zero .dec {\n height: 14px;\n line-height: 14px;\n color: #666;\n font-size: 14px;\n margin-top: 15px; }\n .popup-box .payment-success {\n height: 258px;\n margin: 143px auto 22px auto;\n padding: 20px 24px; }\n .popup-box .payment-success .dec {\n height: 33px;\n line-height: 20px;\n color: #666;\n font-size: 14px;\n margin-top: 12px; }\n .popup-box .payment-success .btn-18B4ED {\n bottom: 70px; }\n .popup-box .group {\n height: 165px;\n margin: 213px auto 22px auto;\n text-align: center; }\n .popup-box .group .group-img {\n margin-top: 15px; }\n .popup-box .group .group-img img {\n width: 40px;\n height: 40px;\n border-radius: 50px;\n margin-right: 15px; }\n .popup-box .group .btn-l {\n position: absolute;\n width: 240px;\n bottom: 20px;\n left: 30px;\n height: 30px;\n border-radius: 3px;\n font-size: 16px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n"]}
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/src/components/video/video.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/video/recommendation/recommendation.scss","/Users/xzh/dnmp/www/mr-julyedu/src/common/v-list-base/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/video/video-catalog/video-catalog.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/video/datum-catalog/datum-catalog.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/detail/single/index.scss"],"names":[],"mappings":"AAqGA,aAEI,UAAA,CACA,kBAAA,CACA,qBAAA,CACA,iBAAkB,CALtB,uBAQM,UAAA,CACA,WAAY,CATlB,4CAYQ,OAAA,CACA,QAAA,CACA,sCAAA,CAAA,8BAAA,CACA,qBAAA,CACA,WAAY,CAhBpB,2BAqBM,UAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,+BAAA,CACA,YAAA,CACA,gBAAA,CACA,sBAAA,CACA,kBAAmB,CA9BzB,iCAiCQ,oBAAA,CACA,UAAA,CACA,wBAAmB,CAnC3B,iCAmDQ,UAAA,CACA,cAAA,CACA,YAAA,CACA,4BAA6B,CAtDrC,2CA2CQ,wBAAA,CAgBA,qBAAA,CACA,aA/Ic,CAmFtB,wFAuCQ,aAAA,CACA,uBAAA,CACA,YAAA,CACA,WAAA,CAEA,wBAAA,CACA,eAAA,CACA,oBAAA,CACA,eAhJI,CAiGZ,6CA2CQ,wBAAA,CAsBA,wBAAA,CACA,UAnKI,CAiGZ,0BAuEM,UAAA,CACA,WAAA,CACA,iB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AmB,CAhH3B,8CAoHQ,iBAAA,CACA,sBAAA,CACA,qBAAA,CACA,iBAAkB,CAvH1B,0DA0HU,oBAAA,CACA,aAAc,CA3HxB,+DA+HU,oBAAA,CACA,aAAc,CAhIxB,mDAoIU,oBAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,0BAA2B,CAxIrC,uEA4IU,iBAAA,CACA,OAAA,CACA,eAAe,CA9IzB,qDAkJU,UAzJO,CAOjB,uDAsJU,aAAc,CAtJxB,iBA6JI,aAAA,CACA,6BAAA,CACA,iBAAkB,CA/JtB,yBAkKM,UAAA,CACA,YAAA,CACA,iBAAiB,CApKvB,2BAuKQ,eAAe,CAvKvB,8BA2KQ,eAAA,CACA,sBAAA,CACA,0BAA2B,CA7KnC,sBAkLM,iBAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,cAAgB,CAtLtB,4BA2LI,aAAA,CACA,kCAAA,CACA,wBAAkB,CA7LtB,iCAgMM,YAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,gBAAgB,CApMtB,wCAwMM,kBAAY,CAxMlB,kBA6MI,WAAA,CACA,6BAAA,CACA,iBAAkB,CA/MtB,6BAiNM,cAAgB,CAjNtB,iCAmNQ,iBAAA,CACA,kBAAA,CACA,yBAAA,CACA,gBAAkB,CAtN1B,yBA0NM,iBAAA,CACA,UAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,kBAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,eAAiB","file":"video.bafccd3e.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.play .video {\n width: 100%;\n height: 215px;\n background-color: #000;\n position: relative; }\n .play .video .video-js {\n width: 100%;\n height: 100%; }\n .play .video .video-js .vjs-big-play-button {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: #09f;\n border: none; }\n .play .video .purchase-box {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.8);\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center; }\n .play .video .purchase-box .hint {\n font-size: 14px;\n color: #fff;\n margin-bottom: 20px; }\n .play .video .purchase-box .btns {\n width: 100%;\n padding: 0 60px;\n display: flex;\n justify-content: space-around; }\n .play .video .purchase-box .purchase-class {\n display: block;\n -webkit-appearance: none;\n outline: none;\n border: none;\n background-color: transparent;\n border-radius: 5px;\n line-height: 30px;\n font-size: 13px;\n padding: 0 9px;\n background-color: #fff;\n color: #FF4000; }\n .play .video .purchase-box .purchase-episode {\n display: block;\n -webkit-appearance: none;\n outline: none;\n border: none;\n background-color: transparent;\n border-radius: 5px;\n line-height: 30px;\n font-size: 13px;\n padding: 0 9px;\n background-color: #FF4000;\n color: #fff; }\n .play .video .is-aist-box {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.8);\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center;\n color: #fff; }\n .play .video .is-aist-box i {\n font-size: 34px; }\n .play .video .is-aist-box .time {\n font-size: 16px; }\n .play .video video {\n width: 100%;\n height: 100%; }\n\n.play .tab {\n height: 44px;\n max-height: 44px;\n line-height: 44px;\n text-align: center;\n background: #fff;\n flex: 1 0 auto;\n display: flex;\n justify-content: center; }\n .play .tab > div {\n flex: 1 0 auto; }\n .play .tab a {\n display: inline-block;\n height: 44px;\n font-size: 16px;\n border-bottom: 1px solid transparent; }\n .play .tab a.active {\n border-bottom: 1px solid #09f; }\n\n.play .active {\n color: #09f; }\n .play .active .iconiconfront-74 {\n color: #555; }\n\n.play .progress-share-modal {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 290px;\n height: 332px;\n padding: 18px 15px;\n background: url(\"./images/progress-share-bg.png\");\n background-size: contain; }\n .play .progress-share-modal > .title {\n font-size: 21px;\n color: #00656F;\n line-height: 30px;\n text-align: center;\n margin-bottom: 20px; }\n .play .progress-share-modal .progress-container {\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px; }\n .play .progress-share-modal .progress-container li {\n flex: 1; }\n .play .progress-share-modal .progress-container li .title {\n font-size: 14px;\n color: #00838F;\n line-height: 20px;\n text-align: center;\n flex: 1;\n margin-bottom: 10px; }\n .play .progress-share-modal .progress-container li .number {\n font-size: 15px;\n color: #00656F;\n text-align: center; }\n .play .progress-share-modal .progress-container li .number .num {\n font-size: 33px;\n color: #00656F; }\n .play .progress-share-modal .share-container .title {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #00838F;\n margin-bottom: 25px; }\n .play .progress-share-modal .share-container .title::before {\n position: absolute;\n top: 50%;\n left: 30px;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 70px;\n height: 1px;\n background: #77c4bf; }\n .play .progress-share-modal .share-container .title::after {\n position: absolute;\n top: 50%;\n right: 30px;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 70px;\n height: 1px;\n background: #77c4bf; }\n .play .progress-share-modal .share-container ul {\n display: flex;\n justify-content: space-around;\n padding: 0 20px;\n text-align: center; }\n .play .progress-share-modal .share-container ul li {\n font-size: 12px;\n color: #00838F; }\n .play .progress-share-modal .share-container ul li .iconfont {\n font-size: 40px;\n color: #00838f; }\n .play .progress-share-modal .close {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n bottom: -63px;\n color: #fff;\n font-size: 30px; }\n .play .progress-share-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n touch-action: none;\n z-index: 100; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.recommendation {\n margin-top: 15px;\n border-top: 10px solid #f5f5f5; }\n .recommendation > .title {\n font-size: 16px;\n padding-left: 15px;\n margin-top: 15px; }\n .recommendation .info {\n display: flex;\n flex-wrap: wrap;\n width: 52.3%; }\n .recommendation .info .title {\n font-size: 15px; }\n .recommendation .info .des {\n font-size: 14px;\n line-height: 16px;\n align-self: flex-start; }\n .recommendation .info .price {\n color: #FF2121;\n font-size: 16px;\n margin-right: 14px; }\n .recommendation .info .stale-price {\n text-decoration: line-through;\n color: #999;\n font-size: 12px; }\n .recommendation .info .bottom {\n align-self: flex-end; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.v-list-base-item {\n height: 130px;\n padding: 10px 10px 0;\n position: relative; }\n .v-list-base-item .content {\n display: flex;\n height: 100%;\n padding-bottom: 10px;\n border-bottom: 1px solid #e7eaf1; }\n .v-list-base-item .content .cover {\n flex: 0 0 auto;\n margin-right: 16px;\n position: relative; }\n .v-list-base-item .content .cover img {\n width: 150px;\n height: 108px;\n border-radius: 3px; }\n .v-list-base-item .content .course-status {\n width: 100%;\n height: 24px;\n position: absolute;\n bottom: -1px;\n border-radius: 0 0 3px 3px;\n text-align: center;\n line-height: 24px;\n color: #fff;\n font-size: 13px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.video-catalog li:first-child {\n border-top: 1px solid #E7EAF1; }\n\n.video-catalog li {\n line-height: 44px;\n border-bottom: 1px solid #E7EAF1;\n padding: 0 15px; }\n .video-catalog li.active .title, .video-catalog li.active .duration {\n color: #09f; }\n .video-catalog li.active .video-title {\n background-color: #F5FBFF; }\n .video-catalog li.active .exercise {\n border-top: 1px solid #E7EAF1;\n font-size: 12px; }\n .video-catalog li.active .exercise .iconiconfront-3 {\n font-weight: bold;\n color: #09f; }\n .video-catalog li .video-title {\n height: 44px;\n margin: 0 -15px;\n padding: 0 15px; }\n .video-catalog li .video-title .iconfont {\n font-size: 22px; }\n .video-catalog li .exercise {\n padding-left: 15px;\n height: 35px;\n background: #F5FBFF;\n margin-bottom: 15px;\n line-height: 35px;\n font-size: 12px;\n color: #000;\n border-top: 1px solid transparent; }\n .video-catalog li .exercise .iconfont {\n font-size: 18px; }\n\n.video-catalog .title {\n display: inline-block;\n width: 50%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 14px;\n margin-right: 26px; }\n\n.video-catalog .duration {\n display: inline-block;\n font-size: 11px;\n overflow: hidden; }\n\n.video-catalog .iconfont {\n float: right; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.datum-catalog .prompt {\n height: 30px;\n line-height: 30px;\n font-size: 12px;\n color: #333;\n background-color: #FFF4CE;\n text-align: center; }\n\n.datum-catalog .file-name {\n padding: 15px;\n padding-bottom: 0; }\n\n.datum-catalog .file-name:last-of-type {\n padding-bottom: 15px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.popup-box {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 5; }\n .popup-box .content {\n width: 300px;\n position: relative;\n background-color: #fff;\n padding-top: 20px;\n border-radius: 3px; }\n .popup-box .close {\n color: #fff;\n font-size: 22px;\n position: relative;\n left: 50%;\n margin-left: -11px; }\n .popup-box .btn {\n position: absolute;\n bottom: 24px;\n left: 83px;\n width: 135px;\n height: 30px;\n border-radius: 3px;\n font-size: 16px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n .popup-box .btn-18B4ED {\n background-color: #18B4ED; }\n .popup-box .btn-FF4000 {\n background-color: #FF4000; }\n .popup-box .header {\n color: #09f;\n height: 24px;\n line-height: 24px;\n text-align: center; }\n .popup-box .header i {\n font-size: 24px; }\n .popup-box .header span {\n font-size: 18px;\n margin-left: 10px;\n vertical-align: text-bottom; }\n .popup-box .singleset-payment {\n height: 305px;\n margin: 140px auto 22px auto;\n padding: 17px 20px; }\n .popup-box .singleset-payment .price-box {\n padding-bottom: 15px;\n border-bottom: 1px solid #ddd; }\n .popup-box .singleset-payment .price-box span {\n font-size: 12px;\n color: #666; }\n .popup-box .singleset-payment .price-box p {\n height: 22px;\n line-height: 22px;\n color: #FF4000;\n font-size: 22px;\n text-align: center;\n margin-top: 5px; }\n .popup-box .singleset-payment .course-info {\n font-size: 14px; }\n .popup-box .singleset-payment .course-info p {\n height: 14px;\n line-height: 14px;\n margin-top: 10px;\n color: #333; }\n .popup-box .singleset-payment .course-info p span {\n color: #666; }\n .popup-box .singleset-payment .payment-type {\n margin-top: 20px; }\n .popup-box .singleset-payment .payment-type label {\n display: inline-block;\n width: 100%;\n border-bottom: 1px solid #ddd;\n color: #666;\n font-size: 12px;\n padding-bottom: 5px; }\n .popup-box .singleset-payment .payment-type p {\n height: 22px;\n line-height: 22px;\n margin-top: 10px;\n position: relative; }\n .popup-box .singleset-payment .payment-type p .iconalipay {\n font-size: 22px;\n color: #01aaef; }\n .popup-box .singleset-payment .payment-type p .iconweixinzhifu {\n font-size: 22px;\n color: #3baf34; }\n .popup-box .singleset-payment .payment-type p span {\n display: inline-block;\n margin-left: 10px;\n color: #333;\n font-size: 14px;\n vertical-align: text-bottom; }\n .popup-box .singleset-payment .payment-type p .icondanseshixintubiao-5 {\n position: absolute;\n right: 0;\n font-size: 24px; }\n .popup-box .singleset-payment .payment-type p .redio {\n color: #ccc; }\n .popup-box .singleset-payment .payment-type p .redioed {\n color: #4cd964; }\n .popup-box .zero {\n height: 147px;\n margin: 213px auto 22px auto;\n text-align: center; }\n .popup-box .zero .header {\n color: #09f;\n height: 24px;\n line-height: 24px; }\n .popup-box .zero .header i {\n font-size: 24px; }\n .popup-box .zero .header span {\n font-size: 18px;\n margin-left: 10px;\n vertical-align: text-bottom; }\n .popup-box .zero .dec {\n height: 14px;\n line-height: 14px;\n color: #666;\n font-size: 14px;\n margin-top: 15px; }\n .popup-box .payment-success {\n height: 258px;\n margin: 143px auto 22px auto;\n padding: 20px 24px; }\n .popup-box .payment-success .dec {\n height: 33px;\n line-height: 20px;\n color: #666;\n font-size: 14px;\n margin-top: 12px; }\n .popup-box .payment-success .btn-18B4ED {\n bottom: 70px; }\n .popup-box .group {\n height: 165px;\n margin: 213px auto 22px auto;\n text-align: center; }\n .popup-box .group .group-img {\n margin-top: 15px; }\n .popup-box .group .group-img img {\n width: 40px;\n height: 40px;\n border-radius: 50px;\n margin-right: 15px; }\n .popup-box .group .btn-l {\n position: absolute;\n width: 240px;\n bottom: 20px;\n left: 30px;\n height: 30px;\n border-radius: 3px;\n font-size: 16px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n"]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1164:function(t,a,e){"use strict";e.r(a);var s,i=e(23),n=(e(44),e(14)),r=e.n(n),c=e(7),l=e(8),o=e(11),m=e(9),u=e(10),d=e(0),g=e.n(d),h=(e(896),e(30)),p=e(4),b=e(18),E=e(52),f=e(670),v=e(157),j=e(631),N=e(21),y=(e(63),e(15)),S=e.n(y),A=Object(N.b)(function(t){return{user:t.user}})(s=function(t){function a(t){var s;return Object(c.a)(this,a),(s=Object(o.a)(this,Object(m.a)(a).call(this,t))).getBargainInfo=function(){p.c.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(p.b)("bargaincode"),"&is_originator=").concat(Object(p.b)("is_originator"))).then(function(t){200===t.data.code?s.setState({data:t.data.data,isOriginator:t.data.data.is_originator,originatorUid:t.data.data.originator_uid,course:t.data.data.course,limitPeople:t.data.data.course.limit_people,bargainData:t.data.data.bargain,width:100*(t.data.data.bargain.bargain_price/t.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(s.state.bargainData.expire_time){var t=1e3*s.state.bargainData.expire_time,a=Date.now();clearInterval(s.timer),s.timer=setInterval(function(){var e=new Date(t-=1e3),i=Object(v.differenceInSeconds)(e,a)%60,n=Object(v.differenceInMinutes)(e,a)%60,r=Object(v.differenceInHours)(e,a)%24,c=Object(v.differenceInDays)(e,a)%24;s.setState({hour:r,min:n,sec:i,day:c})},1e3)}}):r.a.info(t.data.msg,2)})},s.getBargainCourse=function(){p.c.get("".concat(API.home,"/m/bargain/courseList")).then(function(t){200===t.data.code?s.setState({courseList:t.data.data}):r.a.info(t.data.msg,2)})},s.getBargainRankList=function(t,a){var e={courseId:t,type:a};p.c.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(t){if(200===t.data.code){var a=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],e=t.data.data.out_list.map(function(t,e){return Object(i.a)({},t,{rank:a[e]})});s.setState({list:t.data.data.list,outList:e})}else r.a.info(t.data.msg,2)})},s.toCart=function(){p.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(p.b)("id"),"]")).then(function(t){0===t.data.errno?s.props.history.push("/order?id=[".concat(Object(p.b)("id"),"]"),{bargain:1}):r.a.info(t.data.msg,2)})},s.toCartBottom=function(t){p.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(t){0===t.data.errno?s.props.history.push("/order?id=[".concat(Object(p.b)("id"),"]"),{bargain:1}):r.a.info(t.data.msg,2)})},s.getMore=function(){s.setState({isShowMore:!0})},s.boxHide=function(t){s.setState({isShowMore:t})},s.toArtifact=function(){var t={courseId:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/bargain/receiveLimit"),t).then(function(t){200===t.data.code?s.setState({isShowOverlay:!0,status:5}):r.a.info(t.data.msg,2)})},s.useArtifact=function(){s.toKanjia(Object(p.b)("id"),2,0)},s.toKanjia=function(t,a,e){var i={course_id:t,type:a,parent_uid:e};p.c.post("".concat(API.home,"/m/bargain/toBargain"),i).then(function(t){200===t.data.code?(s.setState({amount:t.data.data.amount}),2===a&&s.setState({isShowOverlay:!0,status:6}),1===t.data.data.is_success?s.setState({isShowOverlay:!0,status:4}):2===t.data.data.is_success?3===a?s.setState({isShowOverlay:!0,status:2}):4===a&&s.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===t.data.data.is_success&&(3===a?s.setState({isShowOverlay:!0,status:2}):4===a&&s.setState({isShowOverlay:!0,status:3})),s.getBargainInfo()):r.a.info(t.data.msg,2)})},s.friendBargainFirst=function(){s.toKanjia(Object(p.b)("id"),3,s.state.originatorUid)},s.friendBargainSecond=function(){s.toKanjia(Object(p.b)("id"),4,s.state.originatorUid)},s.shareFriendBargain=function(){s.setState({isShowOverlay:!0,status:7,isshowYindao:!!p.a.isWeixin})},s.close=function(){s.setState({isShowOverlay:!1,status:""})},s.toCourseDetail=function(t){var a=s.props;a.dispatch;return a.history.push("/detail?id=".concat(t)),!1},s.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:e(630),course:{},courseList:[],data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0},s}return Object(u.a)(a,t),Object(l.a)(a,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(p.b)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"render",value:function(){var t,a,e,s=this;return 0===this.state.bargainData.is_artifact?t=g.a.createElement("div",null,"\u518d\u9080\u8bf7",g.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(t=g.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=g.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(t=g.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=g.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=g.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=g.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):1!==this.state.isOriginator&&2===this.state.data.assist_status?e=g.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=g.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f"):1===this.state.isOriginator&&0===this.state.data.bargain_status&&(e=g.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")),g.a.createElement("div",{className:"bargain-middle-page"},g.a.createElement(h.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0}),g.a.createElement("div",{className:"top"},g.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&g.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"),g.a.createElement("ul",null,g.a.createElement(h.i,{img:this.state.course.course_img,info:g.a.createElement(C,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),g.a.createElement("div",{className:"bargain-detail"},g.a.createElement("div",{className:"top"},g.a.createElement("div",null,"\u5df2\u780d",g.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&g.a.createElement("div",null,g.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",g.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",g.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),g.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&g.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),g.a.createElement("div",{className:"middle"},g.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&g.a.createElement("div",null,t,a),1===this.state.isOriginator&&1===this.state.data.bargain_status&&g.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",g.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),g.a.createElement("span",{className:"unit"}," \u5929 "),g.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),g.a.createElement("span",{className:"unit"}," \u65f6 "),g.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),g.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),g.a.createElement("div",{className:"button"},e))),g.a.createElement("div",{className:"bargain-records"},g.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),g.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(t,a){return g.a.createElement("li",{key:a},g.a.createElement("div",{className:"left"},g.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),g.a.createElement("span",{className:"nickname"},t.user_name),g.a.createElement("span",{className:"rank-tag"},t.rank)),g.a.createElement("div",{className:"right"},g.a.createElement("img",{className:"kanjia-icon",src:s.state.kanjiaIcon,alt:""}),"\u780d\u6389",g.a.createElement("span",{className:"price"},t.amount)))})),g.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),g.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},g.a.createElement("div",{className:"title-wrapper"},g.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),g.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")),g.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(t,a){return g.a.createElement(h.d,{className:"text-overflow-2",key:a,id:t.course_id,img:t.image_name,title:t.course_title,toDetail:s.toCourseDetail,bottom:g.a.createElement(B,{item:t,toCartBottom:s.toCartBottom.bind(s,t.course_id),toDetail:s.toCourseDetail})})}))),g.a.createElement(b.b,{to:"/classify",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),g.a.createElement(f.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&g.a.createElement(j.a,null,7===this.state.status&&g.a.createElement(T,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&g.a.createElement(k,{money:this.state.amount,avatar:this.props.user.data.avatar,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&g.a.createElement(U,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&g.a.createElement(O,{close:this.close,money:this.state.amount}),4===this.state.status&&g.a.createElement(w,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&g.a.createElement(D,{useArtifact:this.useArtifact}),6===this.state.status&&g.a.createElement(L,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&g.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),a}(d.Component))||s;function C(t){var a=t.data&&t.data.course;return g.a.createElement("div",{className:"des"},g.a.createElement("div",{className:"course-title text-overflow-2"},a.course_title),g.a.createElement("div",{className:"price-bar"},g.a.createElement("span",{className:"discount-price"},"\uffe5",a.course_price),1===t.isOriginator&&g.a.createElement("button",{className:"purchase-btn",onClick:t.toCart},"\xa5",a.pay_price,"\u53bb\u652f\u4ed8")))}function B(t){var a;return a=2===t.item.bargain_status?g.a.createElement("a",{href:"javascript:;",onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"):3===t.item.bargain_status?g.a.createElement(b.b,{to:"/play/video?id=".concat(t.item.v_course_id),className:S()("bargain","button--study")},"\u53bb\u5b66\u4e60"):g.a.createElement("div",{className:"btns"},1===t.item.bargain_status&&g.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===t.item.bargain_status&&g.a.createElement("a",{href:"javascript:;",onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain-btn"},"\u6211\u8981\u780d\u4ef7"),g.a.createElement("button",{onClick:function(){return t.toCartBottom(t.item.course_id)},className:"purchase-btn"},"\xa5",t.item.pay_price,"\u53bb\u652f\u4ed8")),g.a.createElement("div",{className:"course-bottom"},g.a.createElement("div",{className:"course-price"},g.a.createElement("span",{className:"discount-price"},"\xa5",t.item.price1),g.a.createElement("span",{className:"original-price"},"\xa5",t.item.price0)),a)}function k(t){return g.a.createElement("div",{className:"bargain-public-number"},g.a.createElement("img",{className:"avait",src:t.avatar,alt:""}),t.firendBaigainPrice&&g.a.createElement("p",{className:"status-title ff4"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",t.money,"\u5143\uff01"),g.a.createElement("p",{className:"status-dec"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),g.a.createElement("img",{className:"public-number-img",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}))}function U(t){return g.a.createElement("div",{className:"bargain-first"},g.a.createElement("img",{className:"top-img",src:e(673),alt:""}),g.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",g.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),g.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),g.a.createElement("button",{className:"bargain-href",onClick:t.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function O(t){return g.a.createElement("div",{className:"bargain-second"},g.a.createElement("img",{className:"top-img",src:e(673),alt:""}),g.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",g.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),g.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function w(t){return g.a.createElement("div",{className:"not-bargain"},g.a.createElement("img",{className:"middle-img",src:e(897),alt:""}),g.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",g.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),g.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",t.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),g.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function D(t){return g.a.createElement("div",{className:"artifact-box"},g.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),g.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),g.a.createElement("button",{className:"use-artifact",onClick:t.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function L(t){return g.a.createElement("div",{className:"use-artifact-box"},g.a.createElement("img",{className:"top-img",src:e(673),alt:""}),g.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",t.money,"\u5143\uff01"),g.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",g.a.createElement("span",{className:"indicator"},t.allMoney,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),g.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),g.a.createElement("button",{className:"tubuy",onClick:t.toCart},"\u53bb\u652f\u4ed8"))}function T(t){return g.a.createElement("div",null,g.a.createElement("div",{className:"close-bargain-success",onClick:t.close}),g.a.createElement("div",{className:"bargain-success"},t.isshowYindao&&g.a.createElement("i",{className:"iconfont iconyindao"}),g.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),g.a.createElement("p",null,"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",g.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}a.default=Object(E.g)(A)},630:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},631:function(t,a,e){"use strict";var s=e(7),i=e(8),n=e(11),r=e(9),c=e(10),l=e(0),o=e.n(l),m=e(22),u=e.n(m),d=(e(672),document.body||document.documentElement),g=["touchmove","mousewheel"],h=function(t){function a(t){var e;return Object(s.a)(this,a),(e=Object(n.a)(this,Object(r.a)(a).call(this,t))).preventScroll=function(t){t.preventDefault()},e.overlayBox=null,e}return Object(c.a)(a,t),Object(i.a)(a,[{key:"componentDidMount",value:function(){var t=this;g.forEach(function(a){t.overlayBox.addEventListener(a,t.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var t=this;g.forEach(function(a){t.overlayBox.removeEventListener(a,t.preventScroll)})}},{key:"render",value:function(){var t=this;return u.a.createPortal(o.a.createElement("div",{className:"overlay",ref:function(a){return t.overlayBox=a},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),a}(l.Component);a.a=h},670:function(t,a,e){"use strict";var s=e(7),i=e(8),n=e(11),r=e(9),c=e(10),l=e(0),o=e.n(l),m=(e(671),function(t){function a(t){var i;return Object(s.a)(this,a),(i=Object(n.a)(this,Object(r.a)(a).call(this,t))).closeMore=function(){i.props.boxHide(!1)},i.state={kanjiaIcon:e(630)},i}return Object(c.a)(a,t),Object(i.a)(a,[{key:"render",value:function(){return o.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&o.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),a}(l.Component));function u(t){return o.a.createElement("div",{className:"moreMbc"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),o.a.createElement("ul",{className:"more-bargain-list"},t.list&&t.list.length>0&&t.list.map(function(a,e){return o.a.createElement("li",{key:e,className:"bargain-item"},o.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),o.a.createElement("p",{className:"name"},a.user_name),o.a.createElement("p",{className:"bargain-status"},o.a.createElement("img",{className:"kanjia-icon",src:t.img,alt:""}),"\u780d\u6389",o.a.createElement("span",{className:"price"},a.amount)))})),o.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),o.a.createElement("i",{onClick:t.closeMore,className:"iconfont iconiconfront-2 close"}))}a.a=m},671:function(t,a,e){},672:function(t,a,e){},673:function(t,a,e){t.exports=e.p+"static/media/kanjia_cg_icon.81a489ac.png"},896:function(t,a,e){},897:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmS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LLRt8mcqWD1egjzxTr7+kljU+7J0lBOESnV0jM0u0uYr/K/+NhZld7gM68+JsFOGQoTanttUAtUr4JcL6HlccHvxmG/uiDVEz3gnfKxNP6KzwcMws4dzIom2/AS/mApgcPRSZsaW7WZVF2eEvz1bqZ0VBKIrj+NkILhLdSBBpROZKhtoV7QyKmHmKw8GW81AudJfaX4Ji6MlmIqaUbveY9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=BargainMiddlePage.a28416ee.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/bargainMiddlePage/index.js","components/bargainMiddlePage/image/kanjia_icon.png","components/detail/overlay/index.js","components/bargainMiddlePage/ranking/index.js","components/bargainMiddlePage/image/kanjia_cg_icon.png","components/bargainMiddlePage/image/kanjia_no_iccon.png"],"names":["BargainMiddlePage","connect","state","user","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","call","getBargainInfo","http","get","concat","API","home","getParam","then","res","data","code","setState","isOriginator","is_originator","originatorUid","originator_uid","course","limitPeople","limit_people","bargainData","bargain","width","bargain_price","total_price","toFixed","expire_time","date","now","Date","clearInterval","timer","setInterval","_d","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","d","differenceInDays","hour","min","sec","day","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","a","info","msg","getBargainCourse","courseList","getBargainRankList","id","type","courseId","post","arr","newList","out_list","map","item","i","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","rank","list","outList","toCart","errno","history","push","toCartBottom","getMore","isShowMore","boxHide","val","toArtifact","isShowOverlay","status","useArtifact","toKanjia","uid","course_id","parent_uid","amount","is_success","firendBaigainPrice","friendBargainFirst","friendBargainSecond","shareFriendBargain","isshowYindao","browser","isWeixin","close","toCourseDetail","_this$props","dispatch","kanjiaIcon","require","isLoaidng","thirdRow","btn","bargainBtn","_this2","is_artifact","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","invite_num","onClick","assist_status","bargain_status","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","img","course_img","CourseDes","String","padStart","style","length","index","key","src","avatar_file","alt","user_name","image_name","course_title","toDetail","bottom","CourseBottom","bind","react_router_dom__WEBPACK_IMPORTED_MODULE_12__","to","_ranking__WEBPACK_IMPORTED_MODULE_14__","icon","_detail_overlay__WEBPACK_IMPORTED_MODULE_16__","BargainSuccess","PublicNumber","money","avatar","BargainFirst","bargainSecond","BargainSecond","NotBargain","Artifact","UseArtifact","allMoney","Component","course_price","pay_price","Buttons","href","v_course_id","classnames","price1","price0","color","withRouter","module","exports","root","document","body","documentElement","events","Overlay","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","preventScroll","e","preventDefault","overlayBox","forEach","addEventListener","passive","_this3","removeEventListener","_this4","ReactDom","createPortal","react__WEBPACK_IMPORTED_MODULE_5___default","ref","el","top","window","scrollY","children","Ranking","closeMore","MoreList","__webpack_require__","p"],"mappings":"kSAkBMA,EAHLC,YAAQ,SAAAC,GAAK,MAAK,CACfC,KAAMD,EAAMC,sBAMZ,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAiCVQ,eAAiB,WAEbC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,gCAAAF,OAAmDG,YAAS,eAA5D,mBAAAH,OAA4FG,YAAS,mBAAoBC,KAAK,SAACC,GACrG,MAAlBA,EAAIC,KAAKC,KACTjB,EAAKkB,SACD,CACIF,KAAMD,EAAIC,KAAKA,KACfG,aAAcJ,EAAIC,KAAKA,KAAKI,cAC5BC,cAAeN,EAAIC,KAAKA,KAAKM,eAC7BC,OAAQR,EAAIC,KAAKA,KAAKO,OACtBC,YAAaT,EAAIC,KAAKA,KAAKO,OAAOE,aAClCC,YAAaX,EAAIC,KAAKA,KAAKW,QAC3BC,MAA8F,KAAtFb,EAAIC,KAAKA,KAAKW,QAAQE,cAAgBd,EAAIC,KAAKA,KAAKW,QAAQG,aAAaC,QAAQ,GAAW,KAExG,WACI,GAAI/B,EAAKH,MAAM6B,YAAY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AKJ,MAAMgF,YACXgH,EAAA1I,EAAA2D,cAACwF,EAAD,CAAUjI,KAAMpE,KAAKJ,MAAMwE,KAAM/C,YAAarB,KAAKJ,MAAMyB,YAAa+K,UAAWpM,KAAKoM,UAC5E7E,IAAKvH,KAAKJ,MAAMiJ,eApBxBa,cA2BtB,SAAS2C,EAASzM,GACd,OACIgM,EAAA1I,EAAA2D,cAAA,OAAKC,UAAU,WACX8E,EAAA1I,EAAA2D,cAAA,OAAKC,UAAU,WACX8E,EAAA1I,EAAA2D,cAAA,OAAKC,UAAU,aAAf,wCAGA8E,EAAA1I,EAAA2D,cAAA,MAAIC,UAAU,qBAENlH,EAAMwE,MAAQxE,EAAMwE,KAAKyD,OAAS,GAAKjI,EAAMwE,KAAKL,IAAI,SAACC,EAAM8D,GACzD,OACI8D,EAAA1I,EAAA2D,cAAA,MAAIkB,IAAKD,EAAOhB,UAAU,gBACtB8E,EAAA1I,EAAA2D,cAAA,OAAKC,UAAU,SAASkB,IAAKhE,EAAKiE,YAAaC,IAAI,KACnD0D,EAAA1I,EAAA2D,cAAA,KAAGC,UAAU,QAAQ9C,EAAKmE,WAC1ByD,EAAA1I,EAAA2D,cAAA,KAAGC,UAAU,kBACT8E,EAAA1I,EAAA2D,cAAA,OAAKC,UAAU,cAAckB,IAAKpI,EAAM2H,IAAKW,IAAI,KADrD,eAEM0D,EAAA1I,EAAA2D,cAAA,QAAMC,UAAW,SAAU9C,EAAKuB,aAO1DqG,EAAA1I,EAAA2D,cAAA,OAAKC,UAAU,oBAAf,eACOlH,EAAMyB,YADb,yFAIJuK,EAAA1I,EAAA2D,cAAA,KAAGG,QAASpH,EAAMwM,UAAWtF,UAAW,oCAKrCqF,uEC9Df9B,EAAAC,QAAiBgC,EAAAC,EAAuB,oFCAxClC,EAAAC,QAAA","file":"static/js/BargainMiddlePage.a28416ee.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './bargain-middle-page.scss'\nimport { HeaderBar, VList } from '@common'\nimport { Course } from '@common'\nimport { api, getParam, http, browser } from \"@/utils\"\nimport { Toast } from \"antd-mobile\"\nimport { Link, withRouter } from \"react-router-dom\"\nimport Ranking from './ranking'\nimport { differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays } from \"date-fns\"\nimport Overlay from '../detail/overlay'\nimport { compose } from \"redux\"\nimport { connect } from \"react-redux\";\nimport {getCourses} from './../detail/actions';\nimport classnames from 'classnames';\n\n@connect(state => ({\n user: state.user\n}))\nclass BargainMiddlePage extends Component {\n\n timer\n\n constructor(props) {\n super(props)\n this.state = {\n isShowOverlay: false,\n isOriginator: '',\n kanjiaIcon: require('./image/kanjia_icon.png'),\n course: {}, // 当前砍价课程\n courseList: [], // 所有砍价课程\n data: '',\n bargainData: '',\n limitPeople: 0,\n outList: [],\n list: [],\n width: '0',\n isShowMore: '',\n status: '',\n hour: '',\n min: '',\n sec: '',\n day: '',\n amount: '',\n firendBaigainPrice: true,\n isshowYindao: false,\n isLoaidng: true\n }\n }\n\n componentDidMount() {\n this.getBargainRankList(getParam('id'), 1)\n this.getBargainCourse()\n this.getBargainInfo()\n }\n\n // 获取砍价信息\n getBargainInfo = () => {\n\n http.get(`${API.home}/m/bargain/info?bargaincode=${getParam('bargaincode')}&is_originator=${getParam('is_originator')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState(\n {\n data: res.data.data,\n isOriginator: res.data.data.is_originator,\n originatorUid: res.data.data.originator_uid,\n course: res.data.data.course,\n limitPeople: res.data.data.course.limit_people,\n bargainData: res.data.data.bargain,\n width: (res.data.data.bargain.bargain_price / res.data.data.bargain.total_price).toFixed(2) * 100 + '%'\n },\n () => {\n if (this.state.bargainData.expire_time) {\n let date = this.state.bargainData.expire_time * 1000\n let now = Date.now()\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n date -= 1000\n let _d = new Date(date)\n let s = differenceInSeconds(_d, now) % 60,\n m = differenceInMinutes(_d, now) % 60,\n h = differenceInHours(_d, now) % 24,\n d = differenceInDays(_d, now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n day: d\n })\n\n }, 1000)\n }\n }\n )\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取砍价课程\n getBargainCourse = () => {\n http.get(`${API.home}/m/bargain/courseList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n courseList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取助理好友\n getBargainRankList = (id, type) => {\n let data = {\n courseId: id,\n type: type\n }\n http.post(`${API.home}/m/bargain/rankList`, data).then((res) => {\n if (res.data.code === 200) {\n let arr = ['刀神', '刀王', '刀霸']\n let newList = res.data.data.out_list.map((item, i) => {\n return {\n ...item,\n rank: arr[i]\n }\n })\n this.setState({\n list: res.data.data.list,\n outList: newList\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 直接支付\n toCart = () => {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${getParam('id')}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=[${getParam('id')}]`, {bargain: 1});\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n // let data = {\n // course_id: getParam('id')\n // }\n // http.post(`${API.home}/m/cart/add`, data).then((res) => {\n // if (res.data.code === 200 || res.data.code === 15001) {\n // this.props.history.push('/shopcart')\n // } else {\n // Toast.info(res.data.msg, 2);\n // }\n // })\n }\n // 我要砍价列表的去支付\n toCartBottom=(id)=>{\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${id}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=[${getParam('id')}]`, {bargain: 1});\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n // http.post(`${API.home}/m/cart/add`, data).then((res) => {\n // if (res.data.code === 200 || res.data.code === 15001) {\n // this.props.history.push('/shopcart')\n // } else {\n // Toast.info(res.data.msg, 2);\n // }\n // })\n }\n\n // 查看更多\n getMore = () => {\n this.setState({\n isShowMore: true\n })\n }\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({isShowMore: val})\n }\n\n // 领取砍价神器\n toArtifact = () => {\n let data = {\n courseId: getParam('id')\n }\n http.post(`${API.home}/m/bargain/receiveLimit`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShowOverlay: true,\n status: 5,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 使用砍价神器\n useArtifact = () => {\n this.toKanjia(getParam('id'), 2, 0)\n }\n\n // 砍价接口\n toKanjia = (id, type, uid) => {\n let data = {\n course_id: id,\n type: type, // 1 用户自己砍价 2 使用砍价神器 3 好友助力砍价 4 好友第二次助力\n parent_uid: uid // 被助力人id 【自己本人操作传0】\n }\n http.post(`${API.home}/m/bargain/toBargain`, data).then((res) => {\n if (res.data.code === 200) {\n // is_success =0一切正常 =1 不能在砍了 =2关注公众号,可以再砍一刀!\n this.setState({\n amount: res.data.data.amount\n })\n if (type === 2) {\n this.setState({\n isShowOverlay: true,\n status: 6\n })\n }\n\n if (res.data.data.is_success === 1) {\n this.setState({\n isShowOverlay: true,\n status: 4\n })\n } else if (res.data.data.is_success === 2) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 1,\n firendBaigainPrice: false\n })\n }\n } else if (res.data.data.is_success === 0) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 3\n })\n }\n }\n\n this.getBargainInfo()\n\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n\n // 帮好友砍价第一刀\n friendBargainFirst = () => {\n this.toKanjia(getParam('id'), 3, this.state.originatorUid)\n }\n\n // 帮好友砍价第二刀\n friendBargainSecond = () => {\n this.toKanjia(getParam('id'), 4, this.state.originatorUid)\n }\n\n // 邀请好友砍价\n shareFriendBargain = () => {\n this.setState({\n isShowOverlay: true,\n status: 7,\n isshowYindao: browser.isWeixin ? true : false\n })\n }\n\n // 关闭弹窗\n close = () => {\n this.setState({\n isShowOverlay: false,\n status: '',\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n render() {\n let thirdRow, btn\n // is_artifact\t 0-再邀请多少人可以使用 1-可以使用未领取 2-已领取 3-已使用\n if (this.state.bargainData.is_artifact === 0) {\n thirdRow =\n <div>再邀请<span className={'indicator'}>{this.state.bargainData.invite_num}</span>位好友助力即可获得<span\n className={'indicator'}>【砍价神器】</span></div>\n } else if (this.state.bargainData.is_artifact === 1) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.toArtifact}>立即领取</button>\n } else if (this.state.bargainData.is_artifact === 2) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.useArtifact}>立即使用</button>\n }\n\n\n let bargainBtn\n if (this.state.isOriginator !== 1 && this.state.data.assist_status === 0 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainFirst}>帮好友砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 1) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainSecond}>再砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>已帮好友助力</button>\n } else if (this.state.data.bargain_status === 1 || this.state.data.bargain_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>砍价结束</button>\n } else if (this.state.isOriginator === 1 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.shareFriendBargain}>邀请好友砍价</button>\n }\n return (\n <div className={'bargain-middle-page'}>\n <HeaderBar title='砍价详情' arrow={true} cart={true}></HeaderBar>\n {/*<Loading isLoading={this.state.isLoaidng}>*/}\n <div className=\"top\">\n <div className=\"bargain-area\">\n {\n this.state.isOriginator !== 1 &&\n <p className='bargain-tip'>你的好友发现一门精品课程,快来一起帮他砍价:</p>\n }\n\n <ul>\n <VList\n img={this.state.course.course_img}\n info={\n <CourseDes\n isOriginator={this.state.isOriginator}\n data={this.state.data}\n toCart={this.toCart}/>\n }\n />\n </ul>\n <div className=\"bargain-detail\">\n <div className=\"top\">\n <div>\n 已砍<span className={'reduced-price'}>{this.state.bargainData.bargain_price}元</span>\n </div>\n {\n this.state.data.bargain_status === 0 &&\n <div>\n <span\n className={'time hour'}>{String(this.state.hour).padStart(2, 0)}</span> :&nbsp;\n <span\n className={'time min'}>{String(this.state.min).padStart(2, 0)}</span> :&nbsp;\n <span className={'time sec'}>{String(this.state.sec).padStart(2, 0)}</span>\n <span className={'inactive'}> 后砍价结束</span>\n </div>\n }\n {\n this.state.data.bargain_status === 1 && this.state.isOriginator === 1 &&\n <span className={'inactive'}>砍价结束</span>\n }\n\n </div>\n <div className=\"middle\">\n <span style={{width: this.state.width}}></span>\n </div>\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 0 &&\n <div>\n {thirdRow}\n {btn}\n </div>\n }\n\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 1 &&\n <div>\n 砍价金额将于\n <span className={'time hour'}>{String(this.state.day).padStart(2, 0)}</span><span\n className={'unit'}> 天 </span>\n <span className={'time min'}>{String(this.state.hour).padStart(2, 0)}</span><span\n className={'unit'}> 时 </span>\n <span className={'time sec'}>{String(this.state.min).padStart(2, 0)}</span><span\n className={'unit'}>分</span>\n 后清零,请尽快完成支付\n </div>\n }\n\n <div className={'button'}>\n {bargainBtn}\n </div>\n\n </div>\n </div>\n <div className=\"bargain-records\">\n <div className=\"title\">砍价记录</div>\n <ul>\n {\n this.state.outList && this.state.outList.length > 0 && this.state.outList.map((item, index) => {\n return (\n <li key={index}>\n <div className=\"left\">\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <span className={'nickname'}>{item.user_name}</span>\n <span className=\"rank-tag\">{item.rank}</span>\n </div>\n <div className=\"right\">\n <img className='kanjia-icon' src={this.state.kanjiaIcon} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </div>\n </li>\n )\n })\n\n }\n\n </ul>\n <div className=\"more\" onClick={this.getMore}>查看更多>></div>\n </div>\n </div>\n <div className=\"bargain-course-list\" id='bargainCourse'>\n <div className=\"title-wrapper\">\n <div className=\"title\">我要砍价</div>\n <div className=\"subtitle\">邀请{this.state.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</div>\n </div>\n <ul>\n {\n this.state.courseList && this.state.courseList.length > 0 && this.state.courseList.map((item, index) => {\n return <Course\n className={'text-overflow-2'}\n key={index}\n id={item.course_id}\n img={item.image_name}\n title={item.course_title}\n toDetail={this.toCourseDetail}\n bottom={\n <CourseBottom\n item={item}\n toCartBottom={this.toCartBottom.bind(this,item.course_id)}\n toDetail={this.toCourseDetail}\n />\n }\n />\n })\n }\n </ul>\n </div>\n <Link to={'/classify'} className={'preferential'}>查看更多精品课程 >></Link>\n\n\n {/*更多好友砍价*/}\n <Ranking list={this.state.list} icon={this.state.kanjiaIcon} limitPeople={this.state.limitPeople}\n isShowMore={this.state.isShowMore} boxHide={this.boxHide}></Ranking>\n\n\n {\n this.state.isShowOverlay &&\n <Overlay>\n\n {/*砍价成功去分享*/}\n {\n this.state.status === 7 &&\n <BargainSuccess isshowYindao={this.state.isshowYindao} limitPeople={this.state.limitPeople}\n close={this.close}/>\n }\n\n\n {/*引导关注公众号*/}\n {\n this.state.status === 1 &&\n <PublicNumber\n money={this.state.amount}\n avatar={this.props.user.data.avatar}\n firendBaigainPrice={this.state.firendBaigainPrice}/>\n }\n\n {/*好友成功砍第一刀*/}\n {\n this.state.status === 2 &&\n <BargainFirst\n bargainSecond={this.friendBargainSecond}\n money={this.state.amount}\n />\n }\n {/*好友成功砍第二刀*/}\n {\n this.state.status === 3 &&\n <BargainSecond close={this.close} money={this.state.amount}/>\n }\n {/*不能在砍了*/}\n {\n this.state.status === 4 &&\n <NotBargain close={this.close} limitPeople={this.state.limitPeople}/>\n }\n {/*领取砍价神器*/}\n {\n this.state.status === 5 &&\n <Artifact useArtifact={this.useArtifact}/>\n }\n {/*使用砍价神器*/}\n {\n this.state.status === 6 &&\n <UseArtifact toCart={this.toCart} money={this.state.amount}\n allMoney={this.state.bargainData.bargain_price}/>\n }\n\n {\n this.state.status !== 7 &&\n <i onClick={this.close} className={'iconfont iconiconfront-2 bargain-close'}></i>\n }\n </Overlay>\n\n }\n {/*</Loading>*/}\n\n </div>\n );\n }\n}\n\nfunction CourseDes(props) {\n const data = props.data && props.data.course\n return (\n <div className={'des'}>\n <div className=\"course-title text-overflow-2\">\n {data.course_title}\n </div>\n <div className=\"price-bar\">\n <span className={'discount-price'}>¥{data.course_price}</span>\n {\n props.isOriginator === 1 &&\n <button className={'purchase-btn'}\n onClick={props.toCart}>¥{data.pay_price}去支付\n </button>\n }\n </div>\n </div>\n )\n}\n\nfunction CourseBottom(props) {\n let Buttons\n if (props.item.bargain_status === 2) {\n // Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>\n Buttons = <a href=\"javascript:;\" onClick={() => props.toDetail(props.item.course_id)} className={'bargain bargian-study'}>我要砍价</a>\n } else if (props.item.bargain_status === 3) {\n Buttons = <Link to={`/play/video?id=${props.item.v_course_id}`} className={classnames('bargain', 'button--study')}>去学习</Link>\n } else {\n Buttons = (\n <div className=\"btns\">\n {/*<button className={classnames('bargain-btn', {invalid: props.item.bargain_status === 2})}>*/}\n {/*{props.item.bargain_status === 2 ? '砍价结束' : '继续砍价'}*/}\n {/*</button>*/}\n {\n props.item.bargain_status === 1 &&\n <button className='invalid'>砍价结束</button>\n }\n {\n props.item.bargain_status === 0 &&\n <a href=\"javascript:;\" onClick={() => props.toDetail(props.item.course_id)} className={'bargain-btn'}>我要砍价</a>\n\n }\n\n\n <button onClick={() => props.toCartBottom(props.item.course_id)}\n className={'purchase-btn'}>¥{props.item.pay_price}去支付\n </button>\n </div>\n )\n }\n return (\n <div className=\"course-bottom\">\n <div className={'course-price'}>\n <span className={'discount-price'}>¥{props.item.price1}</span>\n <span className={'original-price'}>¥{props.item.price0}</span>\n </div>\n {Buttons}\n </div>\n )\n}\n\n\nfunction PublicNumber(props) {\n return (\n <div className='bargain-public-number'>\n\n <img className='avait' src={props.avatar} alt=\"\"/>\n\n {\n props.firendBaigainPrice &&\n <p className='status-title ff4'>谢谢你帮我砍了{props.money}元!</p>\n }\n <p className='status-dec'>关注公众号,可以再砍一刀哦~</p>\n <img className='public-number-img'\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n </div>\n )\n}\n\nfunction BargainFirst(props) {\n return (\n <div className='bargain-first'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>谢谢你帮我砍了<span className='ff4'>{props.money}元</span>!</p>\n <p className='status-dec'>你还可以帮我再砍一刀哦~</p>\n <button className='bargain-href' onClick={props.bargainSecond}>再砍一刀</button>\n </div>\n )\n}\n\nfunction BargainSecond(props) {\n return (\n <div className='bargain-second'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>厉害了,又帮好友砍掉<span className='ff4'>{props.money}元</span>!</p>\n <a className='bargain-href' href='#bargainCourse' onClick={props.close}>我也要砍价</a>\n </div>\n )\n}\n\nfunction NotBargain(props) {\n return (\n <div className='not-bargain'>\n <img className='middle-img' src={require('./image/kanjia_no_iccon.png')} alt=\"\"/>\n <p className='status-title'>你的好友用【砍价神器】把我砍蒙圈了<br/>不能再砍了哦~</p>\n <p className='status-dec'>邀请{props.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</p>\n <a className='bargain-href' href='#bargainCourse' onClick={props.close}>我也要砍价</a>\n </div>\n )\n}\n\nfunction Artifact(props) {\n return (\n <div className='artifact-box'>\n <p className='top-tip'>恭喜你获得【砍价神器】!</p>\n <p className='middle-tip'>\n 您可以使用\n <span className={'indicator'}>【砍价神器】</span>\n 再砍一刀\n </p>\n <button className='use-artifact' onClick={props.useArtifact}>立即使用</button>\n </div>\n )\n}\n\nfunction UseArtifact(props) {\n return (\n <div className='use-artifact-box'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='top-tip'>厉害了,又砍掉了{props.money}元!</p>\n <p className='middle-tip'>\n 你已经砍了\n <span className={'indicator'}>{props.allMoney}元</span>\n 没见过你这么能砍的人...\n </p>\n <p className='btm-tip'>\n 不能再砍了哦~\n </p>\n <button className='tubuy' onClick={props.toCart}>去支付</button>\n </div>\n )\n}\n\n\nfunction BargainSuccess(props) {\n return (\n <div>\n <div className='close-bargain-success' onClick={props.close}></div>\n\n <div className=\"bargain-success\">\n {\n props.isshowYindao &&\n <i className='iconfont iconyindao'></i>\n }\n <p>分享到微信群邀请更多好友帮忙砍价</p>\n <p>超过{props.limitPeople}位好友助力可获得<span className={'indicator'} style={{color: '#FF4000'}}>【砍价神器】</span>哦\n </p>\n </div>\n </div>\n )\n}\n\n\nexport default withRouter(BargainMiddlePage);\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII=\"","import React, { Component } from 'react';\nimport ReactDom from \"react-dom\";\n\nimport './overlay.scss'\n\nconst root = document.body || document.documentElement\n\nconst events = ['touchmove', 'mousewheel']\n\nclass Overlay extends Component {\n constructor(props) {\n super(props);\n this.overlayBox = null\n }\n\n preventScroll = e => {\n e.preventDefault()\n }\n\n componentDidMount() {\n events.forEach(item => {\n this.overlayBox.addEventListener(item, this.preventScroll, {\n passive: false\n })\n })\n }\n\n componentWillUnmount() {\n events.forEach(item => {\n this.overlayBox.removeEventListener(item, this.preventScroll)\n })\n }\n\n render() {\n return ReactDom.createPortal(\n (<div className={'overlay'}\n ref={el => this.overlayBox = el}\n style={{top: `${window.scrollY}px`}}\n >{this.props.children}</div>),\n root\n )\n }\n}\n\nexport default Overlay;","import React, {Component} from 'react'\nimport './index.scss'\n\nclass Ranking extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n kanjiaIcon: require('../image/kanjia_icon.png')\n }\n }\n\n // 关闭更多窗口\n closeMore = () => {\n this.props.boxHide(false);\n }\n\n render() {\n return (\n <div className={'ranking-box'}>\n {\n this.props.isShowMore &&\n <MoreList list={this.props.list} limitPeople={this.props.limitPeople} closeMore={this.closeMore}\n img={this.props.icon}/>\n }\n </div>\n );\n }\n}\n\nfunction MoreList(props) {\n return (\n <div className=\"moreMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n 好友助力详情\n </div>\n <ul className='more-bargain-list'>\n {\n props.list && props.list.length > 0 && props.list.map((item, index) => {\n return (\n <li key={index} className='bargain-item'>\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <p className='name'>{item.user_name}</p>\n <p className='bargain-status'>\n <img className='kanjia-icon' src={props.img} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </p>\n </li>\n )\n })\n }\n </ul>\n <div className='more-bargain-dec'>\n 超过{props.limitPeople}位好友助力可获得【砍价神器】\n </div>\n </div>\n <i onClick={props.closeMore} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n )\n}\n\nexport default Ranking","module.exports = __webpack_public_path__ + \"static/media/kanjia_cg_icon.81a489ac.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR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cqWD1egjzxTr7+kljU+7J0lBOESnV0jM0u0uYr/K/+NhZld7gM68+JsFOGQoTanttUAtUr4JcL6HlccHvxmG/uiDVEz3gnfKxNP6KzwcMws4dzIom2/AS/mApgcPRSZsaW7WZVF2eEvz1bqZ0VBKIrj+NkILhLdSBBpROZKhtoV7QyKmHmKw8GW81AudJfaX4Ji6MlmIqaUbveY9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg==\""],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1164:function(t,a,e){"use strict";e.r(a);var s,i=e(23),n=(e(44),e(14)),r=e.n(n),c=e(7),l=e(8),o=e(10),m=e(9),u=e(11),d=e(0),h=e.n(d),g=(e(896),e(30)),p=e(4),b=e(18),E=e(52),v=e(670),f=e(157),j=e(630),N=e(21),y=(e(63),e(15)),S=e.n(y),A=Object(N.b)(function(t){return{user:t.user}})(s=function(t){function a(t){var s;return Object(c.a)(this,a),(s=Object(o.a)(this,Object(m.a)(a).call(this,t))).getBargainInfo=function(){p.c.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(p.b)("bargaincode"),"&is_originator=").concat(Object(p.b)("is_originator"))).then(function(t){200===t.data.code?s.setState({data:t.data.data,isOriginator:t.data.data.is_originator,originatorUid:t.data.data.originator_uid,course:t.data.data.course,limitPeople:t.data.data.course.limit_people,bargainData:t.data.data.bargain,width:100*(t.data.data.bargain.bargain_price/t.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(s.state.bargainData.expire_time){var t=1e3*s.state.bargainData.expire_time,a=Date.now();clearInterval(s.timer),s.timer=setInterval(function(){var e=new Date(t-=1e3),i=Object(f.differenceInSeconds)(e,a)%60,n=Object(f.differenceInMinutes)(e,a)%60,r=Object(f.differenceInHours)(e,a)%24,c=Object(f.differenceInDays)(e,a)%24;s.setState({hour:r,min:n,sec:i,day:c})},1e3)}}):r.a.info(t.data.msg,2)})},s.getBargainCourse=function(){p.c.get("".concat(API.home,"/m/bargain/courseList")).then(function(t){200===t.data.code?s.setState({courseList:t.data.data}):r.a.info(t.data.msg,2)})},s.getBargainRankList=function(t,a){var e={courseId:t,type:a};p.c.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(t){if(200===t.data.code){var a=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],e=t.data.data.out_list.map(function(t,e){return Object(i.a)({},t,{rank:a[e]})});s.setState({list:t.data.data.list,outList:e})}else r.a.info(t.data.msg,2)})},s.toCart=function(){var t={course_id:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/cart/add"),t).then(function(t){200===t.data.code||15001===t.data.code?s.props.history.push("/shopcart"):r.a.info(t.data.msg,2)})},s.toCartBottom=function(t){var a={course_id:t};p.c.post("".concat(API.home,"/m/cart/add"),a).then(function(t){200===t.data.code||15001===t.data.code?s.props.history.push("/shopcart"):r.a.info(t.data.msg,2)})},s.getMore=function(){s.setState({isShowMore:!0})},s.boxHide=function(t){s.setState({isShowMore:t})},s.toArtifact=function(){var t={courseId:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/bargain/receiveLimit"),t).then(function(t){200===t.data.code?s.setState({isShowOverlay:!0,status:5}):r.a.info(t.data.msg,2)})},s.useArtifact=function(){s.toKanjia(Object(p.b)("id"),2,0)},s.toKanjia=function(t,a,e){var i={course_id:t,type:a,parent_uid:e};p.c.post("".concat(API.home,"/m/bargain/toBargain"),i).then(function(t){200===t.data.code?(s.setState({amount:t.data.data.amount}),2===a&&s.setState({isShowOverlay:!0,status:6}),1===t.data.data.is_success?s.setState({isShowOverlay:!0,status:4}):2===t.data.data.is_success?3===a?s.setState({isShowOverlay:!0,status:2}):4===a&&s.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===t.data.data.is_success&&(3===a?s.setState({isShowOverlay:!0,status:2}):4===a&&s.setState({isShowOverlay:!0,status:3})),s.getBargainInfo()):r.a.info(t.data.msg,2)})},s.friendBargainFirst=function(){s.toKanjia(Object(p.b)("id"),3,s.state.originatorUid)},s.friendBargainSecond=function(){s.toKanjia(Object(p.b)("id"),4,s.state.originatorUid)},s.shareFriendBargain=function(){s.setState({isShowOverlay:!0,status:7,isshowYindao:!!p.a.isWeixin})},s.close=function(){s.setState({isShowOverlay:!1,status:""})},s.toCourseDetail=function(t){var a=s.props;a.dispatch;return a.history.push("/detail?id=".concat(t)),!1},s.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:e(629),course:{},courseList:[],data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0},s}return Object(u.a)(a,t),Object(l.a)(a,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(p.b)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"render",value:function(){var t,a,e,s=this;return 0===this.state.bargainData.is_artifact?t=h.a.createElement("div",null,"\u518d\u9080\u8bf7",h.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(t=h.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=h.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(t=h.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=h.a.createElement("button",{className:"artifact-btn",onClick:this.useArtifact},"\u7acb\u5373\u4f7f\u7528")),1!==this.state.isOriginator&&0===this.state.data.assist_status&&0===this.state.data.bargain_status?e=h.a.createElement("button",{className:"active-btn",onClick:this.friendBargainFirst},"\u5e2e\u597d\u53cb\u780d\u4e00\u5200"):1!==this.state.isOriginator&&1===this.state.data.assist_status?e=h.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):1!==this.state.isOriginator&&2===this.state.data.assist_status?e=h.a.createElement("button",{className:"invalid-btn"},"\u5df2\u5e2e\u597d\u53cb\u52a9\u529b"):1===this.state.data.bargain_status||2===this.state.data.bargain_status?e=h.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f"):1===this.state.isOriginator&&0===this.state.data.bargain_status&&(e=h.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")),h.a.createElement("div",{className:"bargain-middle-page"},h.a.createElement(g.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0}),h.a.createElement("div",{className:"top"},h.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&h.a.createElement("p",{className:"bargain-tip"},"\u4f60\u7684\u597d\u53cb\u53d1\u73b0\u4e00\u95e8\u7cbe\u54c1\u8bfe\u7a0b\uff0c\u5feb\u6765\u4e00\u8d77\u5e2e\u4ed6\u780d\u4ef7\uff1a"),h.a.createElement("ul",null,h.a.createElement(g.i,{img:this.state.course.course_img,info:h.a.createElement(C,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),h.a.createElement("div",{className:"bargain-detail"},h.a.createElement("div",{className:"top"},h.a.createElement("div",null,"\u5df2\u780d",h.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&h.a.createElement("div",null,h.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",h.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",h.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),h.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&h.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),h.a.createElement("div",{className:"middle"},h.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&h.a.createElement("div",null,t,a),1===this.state.isOriginator&&1===this.state.data.bargain_status&&h.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",h.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),h.a.createElement("span",{className:"unit"}," \u5929 "),h.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),h.a.createElement("span",{className:"unit"}," \u65f6 "),h.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),h.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),h.a.createElement("div",{className:"button"},e))),h.a.createElement("div",{className:"bargain-records"},h.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),h.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(t,a){return h.a.createElement("li",{key:a},h.a.createElement("div",{className:"left"},h.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),h.a.createElement("span",{className:"nickname"},t.user_name),h.a.createElement("span",{className:"rank-tag"},t.rank)),h.a.createElement("div",{className:"right"},h.a.createElement("img",{className:"kanjia-icon",src:s.state.kanjiaIcon,alt:""}),"\u780d\u6389",h.a.createElement("span",{className:"price"},t.amount)))})),h.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),h.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},h.a.createElement("div",{className:"title-wrapper"},h.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),h.a.createElement("div",{className:"subtitle"},"\u9080\u8bf7",this.state.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),h.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(t,a){return h.a.createElement(g.d,{className:"text-overflow-2",key:a,id:t.course_id,img:t.image_name,title:t.course_title,toDetail:s.toCourseDetail,bottom:h.a.createElement(B,{item:t,toCartBottom:s.toCartBottom.bind(s,t.course_id),toDetail:s.toCourseDetail})})}))),h.a.createElement(b.b,{to:"/classify",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),h.a.createElement(v.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&h.a.createElement(j.a,null,7===this.state.status&&h.a.createElement(T,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&h.a.createElement(k,{money:this.state.amount,avatar:this.props.user.data.avatar,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&h.a.createElement(U,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&h.a.createElement(w,{close:this.close,money:this.state.amount}),4===this.state.status&&h.a.createElement(D,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&h.a.createElement(O,{useArtifact:this.useArtifact}),6===this.state.status&&h.a.createElement(L,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&h.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),a}(d.Component))||s;function C(t){var a=t.data&&t.data.course;return h.a.createElement("div",{className:"des"},h.a.createElement("div",{className:"course-title text-overflow-2"},a.course_title),h.a.createElement("div",{className:"price-bar"},h.a.createElement("span",{className:"discount-price"},"\uffe5",a.course_price),1===t.isOriginator&&h.a.createElement("button",{className:"purchase-btn",onClick:t.toCart},"\xa5",a.pay_price,"\u53bb\u652f\u4ed8")))}function B(t){var a;return a=2===t.item.bargain_status?h.a.createElement("a",{href:"javascript:;",onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"):3===t.item.bargain_status?h.a.createElement(b.b,{to:"/play/video?id=".concat(t.item.v_course_id),className:S()("bargain","button--study")},"\u53bb\u5b66\u4e60"):h.a.createElement("div",{className:"btns"},1===t.item.bargain_status&&h.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===t.item.bargain_status&&h.a.createElement("a",{href:"javascript:;",onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain-btn"},"\u6211\u8981\u780d\u4ef7"),h.a.createElement("button",{onClick:t.toCartBottom,className:"purchase-btn"},"\xa5",t.item.pay_price,"\u53bb\u652f\u4ed8")),h.a.createElement("div",{className:"course-bottom"},h.a.createElement("div",{className:"course-price"},h.a.createElement("span",{className:"discount-price"},"\xa5",t.item.price1),h.a.createElement("span",{className:"original-price"},"\xa5",t.item.price0)),a)}function k(t){return h.a.createElement("div",{className:"bargain-public-number"},h.a.createElement("img",{className:"avait",src:t.avatar,alt:""}),t.firendBaigainPrice&&h.a.createElement("p",{className:"status-title ff4"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",t.money,"\u5143\uff01"),h.a.createElement("p",{className:"status-dec"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),h.a.createElement("img",{className:"public-number-img",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}))}function U(t){return h.a.createElement("div",{className:"bargain-first"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",h.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),h.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),h.a.createElement("button",{className:"bargain-href",onClick:t.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function w(t){return h.a.createElement("div",{className:"bargain-second"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",h.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),h.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function D(t){return h.a.createElement("div",{className:"not-bargain"},h.a.createElement("img",{className:"middle-img",src:e(897),alt:""}),h.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",h.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),h.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",t.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),h.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function O(t){return h.a.createElement("div",{className:"artifact-box"},h.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),h.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",h.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),h.a.createElement("button",{className:"use-artifact",onClick:t.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function L(t){return h.a.createElement("div",{className:"use-artifact-box"},h.a.createElement("img",{className:"top-img",src:e(673),alt:""}),h.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",t.money,"\u5143\uff01"),h.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",h.a.createElement("span",{className:"indicator"},t.allMoney,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),h.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),h.a.createElement("button",{className:"tubuy",onClick:t.toCart},"\u53bb\u652f\u4ed8"))}function T(t){return h.a.createElement("div",null,h.a.createElement("div",{className:"close-bargain-success",onClick:t.close}),h.a.createElement("div",{className:"bargain-success"},t.isshowYindao&&h.a.createElement("i",{className:"iconfont iconyindao"}),h.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),h.a.createElement("p",null,"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",h.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}a.default=Object(E.g)(A)},629:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},630:function(t,a,e){"use strict";var s=e(7),i=e(8),n=e(10),r=e(9),c=e(11),l=e(0),o=e.n(l),m=e(22),u=e.n(m),d=(e(672),document.body||document.documentElement),h=["touchmove","mousewheel"],g=function(t){function a(t){var e;return Object(s.a)(this,a),(e=Object(n.a)(this,Object(r.a)(a).call(this,t))).preventScroll=function(t){t.preventDefault()},e.overlayBox=null,e}return Object(c.a)(a,t),Object(i.a)(a,[{key:"componentDidMount",value:function(){var t=this;h.forEach(function(a){t.overlayBox.addEventListener(a,t.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var t=this;h.forEach(function(a){t.overlayBox.removeEventListener(a,t.preventScroll)})}},{key:"render",value:function(){var t=this;return u.a.createPortal(o.a.createElement("div",{className:"overlay",ref:function(a){return t.overlayBox=a},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),a}(l.Component);a.a=g},670:function(t,a,e){"use strict";var s=e(7),i=e(8),n=e(10),r=e(9),c=e(11),l=e(0),o=e.n(l),m=(e(671),function(t){function a(t){var i;return Object(s.a)(this,a),(i=Object(n.a)(this,Object(r.a)(a).call(this,t))).closeMore=function(){i.props.boxHide(!1)},i.state={kanjiaIcon:e(629)},i}return Object(c.a)(a,t),Object(i.a)(a,[{key:"render",value:function(){return o.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&o.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),a}(l.Component));function u(t){return o.a.createElement("div",{className:"moreMbc"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),o.a.createElement("ul",{className:"more-bargain-list"},t.list&&t.list.length>0&&t.list.map(function(a,e){return o.a.createElement("li",{key:e,className:"bargain-item"},o.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),o.a.createElement("p",{className:"name"},a.user_name),o.a.createElement("p",{className:"bargain-status"},o.a.createElement("img",{className:"kanjia-icon",src:t.img,alt:""}),"\u780d\u6389",o.a.createElement("span",{className:"price"},a.amount)))})),o.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),o.a.createElement("i",{onClick:t.closeMore,className:"iconfont iconiconfront-2 close"}))}a.a=m},671:function(t,a,e){},672:function(t,a,e){},673:function(t,a,e){t.exports=e.p+"static/media/kanjia_cg_icon.81a489ac.png"},896:function(t,a,e){},897:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGV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crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=BargainMiddlePage.d52ac203.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/bargainMiddlePage/index.js","components/bargainMiddlePage/image/kanjia_icon.png","components/detail/overlay/index.js","components/bargainMiddlePage/ranking/index.js","components/bargainMiddlePage/image/kanjia_cg_icon.png","components/bargainMiddlePage/image/kanjia_no_iccon.png"],"names":["BargainMiddlePage","connect","state","user","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","call","getBargainInfo","http","get","concat","API","home","getParam","then","res","data","code","setState","isOriginator","is_originator","originatorUid","originator_uid","course","limitPeople","limit_people","bargainData","bargain","width","bargain_price","total_price","toFixed","expire_time","date","now","Date","clearInterval","timer","setInterval","_d","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","d","differenceInDays","hour","min","sec","day","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","a","info","msg","getBargainCourse","courseList","getBargainRankList","id","type","courseId","post","arr","newList","out_list","map","item","i","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","rank","list","outList","toCart","course_id","history","push","toCartBottom","getMore","isShowMore","boxHide","val","toArtifact","isShowOverlay","status","useArtifact","toKanjia","uid","parent_uid","amount","is_success","firendBaigainPrice","friendBargainFirst","friendBargainSecond","shareFriendBargain","isshowYindao","browser","isWeixin","close","toCourseDetail","_this$props","dispatch","kanjiaIcon","require","isLoaidng","thirdRow","btn","bargainBtn","_this2","is_artifact","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","invite_num","onClick","assist_status","bargain_status","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","img","course_img","CourseDes","String","padStart","style","length","index","key","src","avatar_file","alt","user_name","image_name","course_title","toDetail","bottom","CourseBottom","bind","react_router_dom__WEBPACK_IMPORTED_MODULE_12__","to","_ranking__WEBPACK_IMPORTED_MODULE_14__","icon","_detail_overlay__WEBPACK_IMPORTED_MODULE_16__","BargainSuccess","PublicNumber","money","avatar","BargainFirst","bargainSecond","BargainSecond","NotBargain","Artifact","UseArtifact","allMoney","Component","course_price","pay_price","Buttons","href","v_course_id","classnames","price1","price0","color","withRouter","module","exports","root","document","body","documentElement","events","Overlay","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","preventScroll","e","preventDefault","overlayBox","forEach","addEventListener","passive","_this3","removeEventListener","_this4","ReactDom","createPortal","react__WEBPACK_IMPORTED_MODULE_5___default","ref","el","top","window","scrollY","children","Ranking","closeMore","More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AKwD,OAAS,GAAKhI,EAAMwE,KAAKL,IAAI,SAACC,EAAM6D,GACzD,OACI8D,EAAAzI,EAAA0D,cAAA,MAAIkB,IAAKD,EAAOhB,UAAU,gBACtB8E,EAAAzI,EAAA0D,cAAA,OAAKC,UAAU,SAASkB,IAAK/D,EAAKgE,YAAaC,IAAI,KACnD0D,EAAAzI,EAAA0D,cAAA,KAAGC,UAAU,QAAQ7C,EAAKkE,WAC1ByD,EAAAzI,EAAA0D,cAAA,KAAGC,UAAU,kBACT8E,EAAAzI,EAAA0D,cAAA,OAAKC,UAAU,cAAckB,IAAKnI,EAAM0H,IAAKW,IAAI,KADrD,eAEM0D,EAAAzI,EAAA0D,cAAA,QAAMC,UAAW,SAAU7C,EAAKsB,aAO1DqG,EAAAzI,EAAA0D,cAAA,OAAKC,UAAU,oBAAf,eACOjH,EAAMyB,YADb,yFAIJsK,EAAAzI,EAAA0D,cAAA,KAAGG,QAASnH,EAAMuM,UAAWtF,UAAW,oCAKrCqF,uEC9Df9B,EAAAC,QAAiBgC,EAAAC,EAAuB,oFCAxClC,EAAAC,QAAA","file":"static/js/BargainMiddlePage.d52ac203.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './bargain-middle-page.scss'\nimport { HeaderBar, VList } from '@common'\nimport { Course } from '@common'\nimport { api, getParam, http, browser } from \"@/utils\"\nimport { Toast } from \"antd-mobile\"\nimport { Link, withRouter } from \"react-router-dom\"\nimport Ranking from './ranking'\nimport { differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays } from \"date-fns\"\nimport Overlay from '../detail/overlay'\nimport { compose } from \"redux\"\nimport { connect } from \"react-redux\";\nimport {getCourses} from './../detail/actions';\nimport classnames from 'classnames';\n\n@connect(state => ({\n user: state.user\n}))\nclass BargainMiddlePage extends Component {\n\n timer\n\n constructor(props) {\n super(props)\n this.state = {\n isShowOverlay: false,\n isOriginator: '',\n kanjiaIcon: require('./image/kanjia_icon.png'),\n course: {}, // 当前砍价课程\n courseList: [], // 所有砍价课程\n data: '',\n bargainData: '',\n limitPeople: 0,\n outList: [],\n list: [],\n width: '0',\n isShowMore: '',\n status: '',\n hour: '',\n min: '',\n sec: '',\n day: '',\n amount: '',\n firendBaigainPrice: true,\n isshowYindao: false,\n isLoaidng: true\n }\n }\n\n componentDidMount() {\n this.getBargainRankList(getParam('id'), 1)\n this.getBargainCourse()\n this.getBargainInfo()\n }\n\n // 获取砍价信息\n getBargainInfo = () => {\n\n http.get(`${API.home}/m/bargain/info?bargaincode=${getParam('bargaincode')}&is_originator=${getParam('is_originator')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState(\n {\n data: res.data.data,\n isOriginator: res.data.data.is_originator,\n originatorUid: res.data.data.originator_uid,\n course: res.data.data.course,\n limitPeople: res.data.data.course.limit_people,\n bargainData: res.data.data.bargain,\n width: (res.data.data.bargain.bargain_price / res.data.data.bargain.total_price).toFixed(2) * 100 + '%'\n },\n () => {\n if (this.state.bargainData.expire_time) {\n let date = this.state.bargainData.expire_time * 1000\n let now = Date.now()\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n date -= 1000\n let _d = new Date(date)\n let s = differenceInSeconds(_d, now) % 60,\n m = differenceInMinutes(_d, now) % 60,\n h = differenceInHours(_d, now) % 24,\n d = differenceInDays(_d, now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n day: d\n })\n\n }, 1000)\n }\n }\n )\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取砍价课程\n getBargainCourse = () => {\n http.get(`${API.home}/m/bargain/courseList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n courseList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取助理好友\n getBargainRankList = (id, type) => {\n let data = {\n courseId: id,\n type: type\n }\n http.post(`${API.home}/m/bargain/rankList`, data).then((res) => {\n if (res.data.code === 200) {\n let arr = ['刀神', '刀王', '刀霸']\n let newList = res.data.data.out_list.map((item, i) => {\n return {\n ...item,\n rank: arr[i]\n }\n })\n this.setState({\n list: res.data.data.list,\n outList: newList\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 加入购物车\n toCart = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API.home}/m/cart/add`, data).then((res) => {\n if (res.data.code === 200 || res.data.code === 15001) {\n this.props.history.push('/shopcart')\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 我要砍价列表的去支付\n toCartBottom=(id)=>{\n let data = {\n course_id: id\n }\n http.post(`${API.home}/m/cart/add`, data).then((res) => {\n if (res.data.code === 200 || res.data.code === 15001) {\n this.props.history.push('/shopcart')\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n // 查看更多\n getMore = () => {\n this.setState({\n isShowMore: true\n })\n }\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({isShowMore: val})\n }\n\n // 领取砍价神器\n toArtifact = () => {\n let data = {\n courseId: getParam('id')\n }\n http.post(`${API.home}/m/bargain/receiveLimit`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShowOverlay: true,\n status: 5,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 使用砍价神器\n useArtifact = () => {\n this.toKanjia(getParam('id'), 2, 0)\n }\n\n // 砍价接口\n toKanjia = (id, type, uid) => {\n let data = {\n course_id: id,\n type: type, // 1 用户自己砍价 2 使用砍价神器 3 好友助力砍价 4 好友第二次助力\n parent_uid: uid // 被助力人id 【自己本人操作传0】\n }\n http.post(`${API.home}/m/bargain/toBargain`, data).then((res) => {\n if (res.data.code === 200) {\n // is_success =0一切正常 =1 不能在砍了 =2关注公众号,可以再砍一刀!\n this.setState({\n amount: res.data.data.amount\n })\n if (type === 2) {\n this.setState({\n isShowOverlay: true,\n status: 6\n })\n }\n\n if (res.data.data.is_success === 1) {\n this.setState({\n isShowOverlay: true,\n status: 4\n })\n } else if (res.data.data.is_success === 2) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 1,\n firendBaigainPrice: false\n })\n }\n } else if (res.data.data.is_success === 0) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 3\n })\n }\n }\n\n this.getBargainInfo()\n\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n\n // 帮好友砍价第一刀\n friendBargainFirst = () => {\n this.toKanjia(getParam('id'), 3, this.state.originatorUid)\n }\n\n // 帮好友砍价第二刀\n friendBargainSecond = () => {\n this.toKanjia(getParam('id'), 4, this.state.originatorUid)\n }\n\n // 邀请好友砍价\n shareFriendBargain = () => {\n this.setState({\n isShowOverlay: true,\n status: 7,\n isshowYindao: browser.isWeixin ? true : false\n })\n }\n\n // 关闭弹窗\n close = () => {\n this.setState({\n isShowOverlay: false,\n status: '',\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n render() {\n let thirdRow, btn\n // is_artifact\t 0-再邀请多少人可以使用 1-可以使用未领取 2-已领取 3-已使用\n if (this.state.bargainData.is_artifact === 0) {\n thirdRow =\n <div>再邀请<span className={'indicator'}>{this.state.bargainData.invite_num}</span>位好友助力即可获得<span\n className={'indicator'}>【砍价神器】</span></div>\n } else if (this.state.bargainData.is_artifact === 1) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.toArtifact}>立即领取</button>\n } else if (this.state.bargainData.is_artifact === 2) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.useArtifact}>立即使用</button>\n }\n\n\n let bargainBtn\n if (this.state.isOriginator !== 1 && this.state.data.assist_status === 0 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainFirst}>帮好友砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 1) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainSecond}>再砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>已帮好友助力</button>\n } else if (this.state.data.bargain_status === 1 || this.state.data.bargain_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>砍价结束</button>\n } else if (this.state.isOriginator === 1 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.shareFriendBargain}>邀请好友砍价</button>\n }\n return (\n <div className={'bargain-middle-page'}>\n <HeaderBar title='砍价详情' arrow={true} cart={true}></HeaderBar>\n {/*<Loading isLoading={this.state.isLoaidng}>*/}\n <div className=\"top\">\n <div className=\"bargain-area\">\n {\n this.state.isOriginator !== 1 &&\n <p className='bargain-tip'>你的好友发现一门精品课程,快来一起帮他砍价:</p>\n }\n\n <ul>\n <VList\n img={this.state.course.course_img}\n info={\n <CourseDes\n isOriginator={this.state.isOriginator}\n data={this.state.data}\n toCart={this.toCart}/>\n }\n />\n </ul>\n <div className=\"bargain-detail\">\n <div className=\"top\">\n <div>\n 已砍<span className={'reduced-price'}>{this.state.bargainData.bargain_price}元</span>\n </div>\n {\n this.state.data.bargain_status === 0 &&\n <div>\n <span\n className={'time hour'}>{String(this.state.hour).padStart(2, 0)}</span> :&nbsp;\n <span\n className={'time min'}>{String(this.state.min).padStart(2, 0)}</span> :&nbsp;\n <span className={'time sec'}>{String(this.state.sec).padStart(2, 0)}</span>\n <span className={'inactive'}> 后砍价结束</span>\n </div>\n }\n {\n this.state.data.bargain_status === 1 && this.state.isOriginator === 1 &&\n <span className={'inactive'}>砍价结束</span>\n }\n\n </div>\n <div className=\"middle\">\n <span style={{width: this.state.width}}></span>\n </div>\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 0 &&\n <div>\n {thirdRow}\n {btn}\n </div>\n }\n\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 1 &&\n <div>\n 砍价金额将于\n <span className={'time hour'}>{String(this.state.day).padStart(2, 0)}</span><span\n className={'unit'}> 天 </span>\n <span className={'time min'}>{String(this.state.hour).padStart(2, 0)}</span><span\n className={'unit'}> 时 </span>\n <span className={'time sec'}>{String(this.state.min).padStart(2, 0)}</span><span\n className={'unit'}>分</span>\n 后清零,请尽快完成支付\n </div>\n }\n\n <div className={'button'}>\n {bargainBtn}\n </div>\n\n </div>\n </div>\n <div className=\"bargain-records\">\n <div className=\"title\">砍价记录</div>\n <ul>\n {\n this.state.outList && this.state.outList.length > 0 && this.state.outList.map((item, index) => {\n return (\n <li key={index}>\n <div className=\"left\">\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <span className={'nickname'}>{item.user_name}</span>\n <span className=\"rank-tag\">{item.rank}</span>\n </div>\n <div className=\"right\">\n <img className='kanjia-icon' src={this.state.kanjiaIcon} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </div>\n </li>\n )\n })\n\n }\n\n </ul>\n <div className=\"more\" onClick={this.getMore}>查看更多>></div>\n </div>\n </div>\n <div className=\"bargain-course-list\" id='bargainCourse'>\n <div className=\"title-wrapper\">\n <div className=\"title\">我要砍价</div>\n <div className=\"subtitle\">邀请{this.state.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</div>\n </div>\n <ul>\n {\n this.state.courseList && this.state.courseList.length > 0 && this.state.courseList.map((item, index) => {\n return <Course\n className={'text-overflow-2'}\n key={index}\n id={item.course_id}\n img={item.image_name}\n title={item.course_title}\n toDetail={this.toCourseDetail}\n bottom={\n <CourseBottom\n item={item}\n toCartBottom={this.toCartBottom.bind(this,item.course_id)}\n toDetail={this.toCourseDetail}\n />\n }\n />\n })\n }\n </ul>\n </div>\n <Link to={'/classify'} className={'preferential'}>查看更多精品课程 >></Link>\n\n\n {/*更多好友砍价*/}\n <Ranking list={this.state.list} icon={this.state.kanjiaIcon} limitPeople={this.state.limitPeople}\n isShowMore={this.state.isShowMore} boxHide={this.boxHide}></Ranking>\n\n\n {\n this.state.isShowOverlay &&\n <Overlay>\n\n {/*砍价成功去分享*/}\n {\n this.state.status === 7 &&\n <BargainSuccess isshowYindao={this.state.isshowYindao} limitPeople={this.state.limitPeople}\n close={this.close}/>\n }\n\n\n {/*引导关注公众号*/}\n {\n this.state.status === 1 &&\n <PublicNumber\n money={this.state.amount}\n avatar={this.props.user.data.avatar}\n firendBaigainPrice={this.state.firendBaigainPrice}/>\n }\n\n {/*好友成功砍第一刀*/}\n {\n this.state.status === 2 &&\n <BargainFirst\n bargainSecond={this.friendBargainSecond}\n money={this.state.amount}\n />\n }\n {/*好友成功砍第二刀*/}\n {\n this.state.status === 3 &&\n <BargainSecond close={this.close} money={this.state.amount}/>\n }\n {/*不能在砍了*/}\n {\n this.state.status === 4 &&\n <NotBargain close={this.close} limitPeople={this.state.limitPeople}/>\n }\n {/*领取砍价神器*/}\n {\n this.state.status === 5 &&\n <Artifact useArtifact={this.useArtifact}/>\n }\n {/*使用砍价神器*/}\n {\n this.state.status === 6 &&\n <UseArtifact toCart={this.toCart} money={this.state.amount}\n allMoney={this.state.bargainData.bargain_price}/>\n }\n\n {\n this.state.status !== 7 &&\n <i onClick={this.close} className={'iconfont iconiconfront-2 bargain-close'}></i>\n }\n </Overlay>\n\n }\n {/*</Loading>*/}\n\n </div>\n );\n }\n}\n\nfunction CourseDes(props) {\n const data = props.data && props.data.course\n return (\n <div className={'des'}>\n <div className=\"course-title text-overflow-2\">\n {data.course_title}\n </div>\n <div className=\"price-bar\">\n <span className={'discount-price'}>¥{data.course_price}</span>\n {\n props.isOriginator === 1 &&\n <button className={'purchase-btn'}\n onClick={props.toCart}>¥{data.pay_price}去支付\n </button>\n }\n </div>\n </div>\n )\n}\n\nfunction CourseBottom(props) {\n let Buttons\n if (props.item.bargain_status === 2) {\n // Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>\n Buttons = <a href=\"javascript:;\" onClick={() => props.toDetail(props.item.course_id)} className={'bargain bargian-study'}>我要砍价</a>\n } else if (props.item.bargain_status === 3) {\n Buttons = <Link to={`/play/video?id=${props.item.v_course_id}`} className={classnames('bargain', 'button--study')}>去学习</Link>\n } else {\n Buttons = (\n <div className=\"btns\">\n {/*<button className={classnames('bargain-btn', {invalid: props.item.bargain_status === 2})}>*/}\n {/*{props.item.bargain_status === 2 ? '砍价结束' : '继续砍价'}*/}\n {/*</button>*/}\n {\n props.item.bargain_status === 1 &&\n <button className='invalid'>砍价结束</button>\n }\n {\n props.item.bargain_status === 0 &&\n <a href=\"javascript:;\" onClick={() => props.toDetail(props.item.course_id)} className={'bargain-btn'}>我要砍价</a>\n\n }\n\n\n <button onClick={props.toCartBottom}\n className={'purchase-btn'}>¥{props.item.pay_price}去支付\n </button>\n </div>\n )\n }\n return (\n <div className=\"course-bottom\">\n <div className={'course-price'}>\n <span className={'discount-price'}>¥{props.item.price1}</span>\n <span className={'original-price'}>¥{props.item.price0}</span>\n </div>\n {Buttons}\n </div>\n )\n}\n\n\nfunction PublicNumber(props) {\n return (\n <div className='bargain-public-number'>\n\n <img className='avait' src={props.avatar} alt=\"\"/>\n\n {\n props.firendBaigainPrice &&\n <p className='status-title ff4'>谢谢你帮我砍了{props.money}元!</p>\n }\n <p className='status-dec'>关注公众号,可以再砍一刀哦~</p>\n <img className='public-number-img'\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n </div>\n )\n}\n\nfunction BargainFirst(props) {\n return (\n <div className='bargain-first'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>谢谢你帮我砍了<span className='ff4'>{props.money}元</span>!</p>\n <p className='status-dec'>你还可以帮我再砍一刀哦~</p>\n <button className='bargain-href' onClick={props.bargainSecond}>再砍一刀</button>\n </div>\n )\n}\n\nfunction BargainSecond(props) {\n return (\n <div className='bargain-second'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>厉害了,又帮好友砍掉<span className='ff4'>{props.money}元</span>!</p>\n <a className='bargain-href' href='#bargainCourse' onClick={props.close}>我也要砍价</a>\n </div>\n )\n}\n\nfunction NotBargain(props) {\n return (\n <div className='not-bargain'>\n <img className='middle-img' src={require('./image/kanjia_no_iccon.png')} alt=\"\"/>\n <p className='status-title'>你的好友用【砍价神器】把我砍蒙圈了<br/>不能再砍了哦~</p>\n <p className='status-dec'>邀请{props.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</p>\n <a className='bargain-href' href='#bargainCourse' onClick={props.close}>我也要砍价</a>\n </div>\n )\n}\n\nfunction Artifact(props) {\n return (\n <div className='artifact-box'>\n <p className='top-tip'>恭喜你获得【砍价神器】!</p>\n <p className='middle-tip'>\n 您可以使用\n <span className={'indicator'}>【砍价神器】</span>\n 再砍一刀\n </p>\n <button className='use-artifact' onClick={props.useArtifact}>立即使用</button>\n </div>\n )\n}\n\nfunction UseArtifact(props) {\n return (\n <div className='use-artifact-box'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='top-tip'>厉害了,又砍掉了{props.money}元!</p>\n <p className='middle-tip'>\n 你已经砍了\n <span className={'indicator'}>{props.allMoney}元</span>\n 没见过你这么能砍的人...\n </p>\n <p className='btm-tip'>\n 不能再砍了哦~\n </p>\n <button className='tubuy' onClick={props.toCart}>去支付</button>\n </div>\n )\n}\n\n\nfunction BargainSuccess(props) {\n return (\n <div>\n <div className='close-bargain-success' onClick={props.close}></div>\n\n <div className=\"bargain-success\">\n {\n props.isshowYindao &&\n <i className='iconfont iconyindao'></i>\n }\n <p>分享到微信群邀请更多好友帮忙砍价</p>\n <p>超过{props.limitPeople}位好友助力可获得<span className={'indicator'} style={{color: '#FF4000'}}>【砍价神器】</span>哦\n </p>\n </div>\n </div>\n )\n}\n\n\nexport default withRouter(BargainMiddlePage);\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII=\"","import React, { Component } from 'react';\nimport ReactDom from \"react-dom\";\n\nimport './overlay.scss'\n\nconst root = document.body || document.documentElement\n\nconst events = ['touchmove', 'mousewheel']\n\nclass Overlay extends Component {\n constructor(props) {\n super(props);\n this.overlayBox = null\n }\n\n preventScroll = e => {\n e.preventDefault()\n }\n\n componentDidMount() {\n events.forEach(item => {\n this.overlayBox.addEventListener(item, this.preventScroll, {\n passive: false\n })\n })\n }\n\n componentWillUnmount() {\n events.forEach(item => {\n this.overlayBox.removeEventListener(item, this.preventScroll)\n })\n }\n\n render() {\n return ReactDom.createPortal(\n (<div className={'overlay'}\n ref={el => this.overlayBox = el}\n style={{top: `${window.scrollY}px`}}\n >{this.props.children}</div>),\n root\n )\n }\n}\n\nexport default Overlay;","import React, {Component} from 'react'\nimport './index.scss'\n\nclass Ranking extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n kanjiaIcon: require('../image/kanjia_icon.png')\n }\n }\n\n // 关闭更多窗口\n closeMore = () => {\n this.props.boxHide(false);\n }\n\n render() {\n return (\n <div className={'ranking-box'}>\n {\n this.props.isShowMore &&\n <MoreList list={this.props.list} limitPeople={this.props.limitPeople} closeMore={this.closeMore}\n img={this.props.icon}/>\n }\n </div>\n );\n }\n}\n\nfunction MoreList(props) {\n return (\n <div className=\"moreMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n 好友助力详情\n </div>\n <ul className='more-bargain-list'>\n {\n props.list && props.list.length > 0 && props.list.map((item, index) => {\n return (\n <li key={index} className='bargain-item'>\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <p className='name'>{item.user_name}</p>\n <p className='bargain-status'>\n <img className='kanjia-icon' src={props.img} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </p>\n </li>\n )\n })\n }\n </ul>\n <div className='more-bargain-dec'>\n 超过{props.limitPeople}位好友助力可获得【砍价神器】\n </div>\n </div>\n <i onClick={props.closeMore} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n )\n}\n\nexport default Ranking","module.exports = __webpack_public_path__ + \"static/media/kanjia_cg_icon.81a489ac.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGVcUnqxjj40TWBdkmIe0igjUT+z0B7cUu6oUDKrj3yzDZrZU3Gqz7iwDn2zjX60TSwmkHuyTfvxTN7SCtfXFBbWVCNgEjStDznwjikdC6XZi2HVSxiXk+adkiYiEbdvDrWqjF/TCtmYU5vaE12bUyShEacikW1nkHitjLQojGlkkPTrDzZuTrHmTDDljC2iC+sfS6slkK9o0DHoT/OsTz2zDOebS6EUiy2kELApj/9yTfeszLarjHAkjDqXFPxg0imgUWuiETZtTvswTPovTKygy/0oIbxhmXveGDpWFTtbk33qj/0n3rqYVbsaFT2n0H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webpackJsonp||[]).push([[1],{1151:function(e,t,a){},1152:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA+VBMVEUAAADeP03XQVEDmP38MjMGl/rSQ1Uhi+QJlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII="},1170:function(e,t,a){"use strict";a.r(t);a(44);var n,s=a(14),i=a.n(s),c=a(7),r=a(8),o=a(10),l=a(9),m=a(11),u=a(0),d=a.n(u),p=a(71),h=(a(1151),a(4)),f=a(18),E=a(30),v=a(64),g=a(21),x=(a(63),Object(g.b)()(n=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).toCourseDetail=function(e){var t=a.props;t.dispatch;return t.history.push("/detail?id=".concat(e)),!1},a.state={camp:[],employment:[],basics:[],advanced:[],special:[],isLoading:!0},a}return Object(m.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.c.get("".concat(API.home,"/m/course/classify/").concat(1)).then(function(t){200===t.data.code?(e.setState({isLoading:!1}),t.data.data.common.length>0&&e.setState({basics:t.data.data.common[0],advanced:t.data.data.common[1]||[]}),t.data.data.special.length>0&&e.setState({camp:t.data.data.special[0],employment:t.data.data.special[1]||[],special:t.data.data.special[2]||[]})):i.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this;return d.a.createElement("div",{className:"class-box"},d.a.createElement(E.e,{title:"\u5206\u7c7b",arrow:!1,cart:!1}),d.a.createElement(v.a,{isLoading:this.state.isLoading},d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.camp.list,title:this.state.camp.name,type:1}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.employment.list,title:this.state.employment.name,type:1}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.basics.list,title:this.state.basics.name,type:2}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.advanced.list,title:this.state.advanced.name,type:2}),d.a.createElement("div",{className:"vip"},this.state.special.list&&this.state.special.list.length>0&&this.state.special.list.map(function(t,a){return d.a.createElement("a",{href:"javascript:;",onClick:function(){return e.toCourseDetail(t.course_id)},key:a},d.a.createElement("img",{src:t.course_img,alt:""}))}))))}}]),t}(u.Component))||n);function b(e){var t=e.data,a=e.toDetail;return d.a.createElement("div",{className:"items-box"},t&&t.length>0&&t.map(function(e,t){return d.a.createElement("a",{href:"javascript:;",onClick:function(){return a(e.course_id)},key:t,className:"item-banner"},d.a.createElement("img",{src:e.course_img,alt:""}),e.is_aist&&d.a.createElement("span",{className:"return_cash"}))}))}function N(e){return d.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(e,t){return d.a.createElement(f.b,{to:"/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name),key:t,className:"item-label"},e.c_name)}))}function w(e){return d.a.createElement("div",{className:"class-course"},d.a.createElement("p",{className:"course-items-title"},e.title&&d.a.createElement("img",{src:a(1152),alt:""}),e.title),1===e.type&&d.a.createElement(b,{data:e.data,toDetail:e.toDetail}),2===e.type&&d.a.createElement(N,{data:e.data}))}t.default=Object(p.b)(x)},1171:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),s=a.n(n),i=a(7),c=a(8),r=a(10),o=a(9),l=a(11),m=a(0),u=a.n(m),d=a(4),p=(a(776),a(21)),h=a(777),f=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).close=function(){a.state.showCard?(a.setState({showCard:!1}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="static"):a.props.history.push("/detail?id=".concat(a.course_id),{href:"/classify"})},a.checkOption=function(e){var t=a.state.numberList;a.answerList.map(function(t){return Number(t.questionId)===Number(e.ques_id)&&(t.answerId=e.opt_id),t}),t.push(e.ques_id),a.setState({currentQuestionOption:e.opt_id,numberList:t})},a.preQuestion=function(){var e=a.state.questionIndex;1!==e&&a.setState({questionIndex:e-1,currentExam:a.state.examList[e-2],currentQuestionOption:a.answerList[e-2].answerId})},a.nextQuestion=function(){var e=a.state.questionIndex;e!==a.state.examList.length?a.setState({questionIndex:e+1,currentExam:a.state.examList[e],currentQuestionOption:a.answerList[e].answerId}):a.setState({showCard:!0})},a.jumpItem=function(e,t){a.setState({showCard:!1,questionIndex:t+1,currentExam:a.state.examList[t],currentQuestionOption:a.answerList[t].answerId})},a.commit=function(){var e={};e.video_id=a.keshi_id,e.qid=a.qid,e.cost_time=a.time,e.uid=a.props.user.data.uid,e.answer_record=a.answerList,d.c.post("".concat(API.home,"/m/aist/submit"),e).then(function(e){200===e.data.code?a.props.history.push("/campResolve?keshi_id=".concat(a.keshi_id,"&qid=").concat(a.qid)):s.a.info(e.data.msg,2)})},a.showCard=function(){a.setState({showCard:!0}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="fixed"},a.getUseTime=function(e){var t,n,s;if(t="".concat(parseInt(e/3600)).padStart(2,0),n="".concat(parseInt((e-3600*t)/60)).padStart(2,0),s="".concat(parseInt(e-3600*t-60*n)).padStart(2,0),86400!==e)return e<3600?"".concat(n,":").concat(s):"".concat(t,":").concat(n,":").concat(s);clearInterval(a.useTimeInterval),a.useTimeInterval=null},a.state={examList:[],currentExam:{},currentQuestionOption:{},questionIndex:1,numberList:[],qtitle:"",useTime:"00:00",showCard:!1},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.keshi_id=Object(d.b)("keshi_id"),this.qidP=Object(d.b)("qid");var t=this;d.c.get("".concat(API.home,"/m/aist/get_questions/").concat(this.keshi_id,"/").concat(this.qidP)).then(function(a){if(4040!==a.data.code)if(200===a.data.code){var n=a.data.data;e.qid=n.id,e.course_id=n.course_id,e.setState({examList:n.list,qtitle:n.qtitle,currentExam:n.list[0]}),t.answerList=[],n.list.map(function(e){var a={};a.questionId=e.id,a.answerId=0,t.answerList.push(a)}),t.time=0,t.useTimeInterval=setInterval(function(){t.time+=1,t.setState({useTime:t.getUseTime(t.time)})},1e3)}else s.a.info(a.data.msg,2,function(){e.props.history.push("/")});else s.a.info(a.data.msg,2,function(){e.props.history.push("/passport")})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.qtitle,n=t.currentExam,s=t.currentQuestionOption,i=t.questionIndex,c=t.examList,r=t.useTime,o=t.showCard,l=t.numberList;return u.a.createElement("div",{className:"camp-test-container"},u.a.createElement("div",{className:"fixed_container"},u.a.createElement(h.c,{time:r,showCardEve:this.showCard,close:this.close,showCard:o}),u.a.createElement(h.a,{qtitle:a,questionIndex:i,examList:c})),u.a.createElement(h.e,{questionIndex:i,checkOption:this.checkOption,currentExam:n,currentQuestionOption:s}),u.a.createElement(h.b,{preQuestion:this.preQuestion,nextQuestion:this.nextQuestion,questionIndex:i}),o&&u.a.createElement("div",{className:"test-card-container"},u.a.createElement("p",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a".concat(a)),u.a.createElement("ul",{className:"test-item"},c.map(function(t,a){return u.a.createElement("li",{key:t.id,onClick:function(){e.jumpItem(t,a)},className:"layout-flex-center ".concat(l.includes(t.id)?"answered":"")},a+1)})),u.a.createElement("div",{className:"bottom_commit"},u.a.createElement("div",{onClick:this.commit,className:"commit_answer layout-flex-center"},"\u63d0\u4ea4\u5e76\u67e5\u770b\u7ed3\u679c"))))}}]),t}(m.Component);t.default=Object(p.b)(function(e){return{user:e.user}},null)(f)},1172:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),s=a.n(n),i=a(7),c=a(8),r=a(10),o=a(9),l=a(11),m=a(0),u=a.n(m),d=a(4),p=(a(776),a(777)),h=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).showCard=function(){a.setState({showCard:!0}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="fixed"},a.close=function(){a.state.showCard?(a.setState({showCard:!1}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="static"):a.props.history.push("/detail?id=".concat(a.course_id),{href:"/purchased"})},a.checkOption=function(){},a.preQuestion=function(){var e=a.state.questionIndex;1!==e&&a.setState({questionIndex:e-1,currentExam:a.state.examList[e-2],currentQuestionOption:a.answerList[e-2].answerId})},a.nextQuestion=function(){var e=a.state.questionIndex;e!==a.state.examList.length?a.setState({questionIndex:e+1,currentExam:a.state.examList[e],currentQuestionOption:a.answerList[e].answerId}):a.setState({showCard:!0})},a.jumpItem=function(e,t){a.setState({showCard:!1,questionIndex:t+1,currentExam:a.state.examList[t],currentQuestionOption:a.answerList[t].answerId})},a.formatTime=function(e){var t=e.split(":"),a="".concat(Number(t[1]),"\u5206").concat(t[2],"\u79d2");return 0!==Number(t[0])&&(a="".concat(Number(t[0]),"\u65f6").concat(a)),a},a.state={examList:[],currentExam:{},currentQuestionOption:{},questionIndex:1,numberList:[],qtitle:"",useTime:"00:00",showCard:!1,rightRate:0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.keshi_id=Object(d.b)("keshi_id"),this.qidP=Object(d.b)("qid");var t=this;d.c.get("".concat(API.home,"/m/aist/analysis/").concat(this.keshi_id,"/").concat(this.qidP)).then(function(a){if(console.log(a),4040!==a.data.code)if(200===a.data.code){var n=a.data.data;e.course_id=n.course_id,t.answerList=[],e.rightNumber=0,n.list.map(function(a){1===a.compare&&e.rightNumber++;var n={};n.questionId=a.id,n.answerId=0,t.answerList.push(n)}),e.setState({examList:n.list,qtitle:n.qtitle,currentExam:n.list[0],useTime:n.cost_time,rightRate:(e.rightNumber/n.list.length*100).toFixed(0)})}else s.a.info(a.data.msg,2,function(){e.props.history.push("/")});else s.a.info(a.data.msg,2,function(){e.props.history.push("/passport")})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.qtitle,n=t.currentExam,s=t.currentQuestionOption,i=t.questionIndex,c=t.examList,r=t.useTime,o=t.showCard,l=t.rightRate;return u.a.createElement("div",{className:"camp-test-container"},u.a.createElement("div",{className:"fixed_container"},u.a.createElement(p.c,{time:r,showCardEve:this.showCard,close:this.close,showCard:o}),u.a.createElement(p.a,{qtitle:a,questionIndex:i,examList:c})),u.a.createElement(p.e,{questionIndex:i,checkOption:this.checkOption,currentExam:n,currentQuestionOption:s},n&&n.options&&u.a.createElement(p.d,{currentExam:n})),u.a.createElement(p.b,{preQuestion:this.preQuestion,nextQuestion:this.nextQuestion,questionIndex:i}),o&&u.a.createElement("div",{className:"test-resolve-card-container"},u.a.createElement("div",{className:"camp-test-header layout-flex-between"},u.a.createElement("div",null,u.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-77 icon-close"})),u.a.createElement("div",{className:"layout-flex-center camp-test-time"},u.a.createElement("span",{style:{fontSize:"17px",color:"#333333"}},"\u7ec3\u4e60\u62a5\u544a")),u.a.createElement("div",{className:"icon icon-order no_height"})),u.a.createElement("div",{className:"report-body"},u.a.createElement("div",{className:"right_rate"},u.a.createElement("span",{className:"rate"},"\u6b63\u786e\u7387"),u.a.createElement("div",{className:"percentage"},u.a.createElement("span",null,l),u.a.createElement("span",null,"%"))),u.a.createElement("p",{className:"use_total_time"},"\u7d2f\u8ba1\u7528\u65f6".concat(this.formatTime(r))),u.a.createElement("ul",{className:"right_wrong_li"},c.map(function(t,a){return u.a.createElement("li",{onClick:function(){e.jumpItem(t,a)},className:"layout-flex-center ".concat(t.answer_id===t.user_answer?"right":"wrong"," ").concat(0===t.user_answer?"noSelect":""),key:t.answer_id},a+1)}))),u.a.createElement("div",{className:"camp-report-bottom"},u.a.createElement("div",{className:"bottom_commit layout-flex-center"},u.a.createElement("div",{onClick:this.close,className:"commit_answer layout-flex-center"},"\u9898\u76ee\u89e3\u6790")))))}}]),t}(m.Component);t.default=h},776:function(e,t,a){},777:function(e,t,a){"use strict";a.d(t,"c",function(){return c}),a.d(t,"a",function(){return r}),a.d(t,"e",function(){return o}),a.d(t,"b",function(){return l}),a.d(t,"d",function(){return m});var n=a(0),s=a.n(n);function i(e){return e&&(e.includes("<img")&&(e=e.replace(/<img/g,"<img style='width: 100%'")),e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e}function c(e){return s.a.createElement("div",{className:"camp-test-header layout-flex-between"},s.a.createElement("div",null,s.a.createElement("i",{onClick:e.close,className:"iconfont iconiconfront-77 icon-close"})),s.a.createElement("div",{className:"layout-flex-center camp-test-time"},s.a.createElement("i",{className:"icon icon-clock"}),s.a.createElement("span",null,e.time)),s.a.createElement("div",{onClick:e.showCardEve,className:"icon icon-order ".concat(e.showCard?"no_height":"")}))}function r(e){return s.a.createElement("div",{className:"layout-flex-between camp-test-title"},s.a.createElement("div",{className:"qtitle"},"\u8bfe\u540e\u7ec3\u4e60\uff1a".concat(e.qtitle)),s.a.createElement("div",{className:"qnumber"},"".concat(e.questionIndex,"/").concat(e.examList.length)))}function o(e){var t=e.questionIndex,a=e.currentExam,n=e.currentQuestionOption;return s.a.createElement("div",{className:"test-item-container"},s.a.createElement("div",{className:"ques item-title",dangerouslySetInnerHTML:{__html:"".concat(t,".").concat(i(a.ques))}}),s.a.createElement("ul",null,a.options&&a.options.map(function(t,c){return s.a.createElement("li",{key:c,onClick:function(){return e.checkOption(t)},className:"\n ".concat(n===t.opt_id?"option_checked":"","\n ").concat(0!==a.user_answer&&!a.user_answer||a.user_answer!==t.opt_id?"":"user_check","\n ").concat(0!==a.user_answer&&!a.user_answer||a.answer_id!==t.opt_id?"":"right_check","\n ")},s.a.createElement("span",{className:"letter"},String.fromCharCode(Number(c)+65)),s.a.createElement("span",{className:"des",dangerouslySetInnerHTML:{__html:i(t.des)}}))})),e.children)}function l(e){return s.a.createElement("div",{className:"layout-flex-around change_question_container"},s.a.createElement("div",{onClick:e.preQuestion,className:"change_button pre_question ".concat(1===e.questionIndex?"first_question":"")},"\u4e0a\u4e00\u9898"),s.a.createElement("div",{onClick:e.nextQuestion,className:"change_button next_question"},"\u4e0b\u4e00\u9898"))}function m(e){var t,a,n=e.currentExam,c=0===n.compare?"\u9519\u8bef":"\u6b63\u786e";return n.options.map(function(e,i){n.answer_id===e.opt_id&&(a=i),0!==n.user_answer&&n.user_answer===e.opt_id&&(t=s.a.createElement("span",null,"\u60a8\u7684\u7b54\u6848\u662f".concat(String.fromCharCode(Number(i)+65),"\uff0c")))}),0===n.user_answer&&(t=s.a.createElement("span",null,"\u60a8\u7684\u7b54\u6848\u662f\u7a7a\uff0c")),s.a.createElement("div",{className:"test-resolve"},s.a.createElement("div",{className:"isRight"},s.a.createElement("span",null,"\u6b63\u786e\u7b54\u6848\u662f".concat(String.fromCharCode(Number(a)+65),"\uff0c")),t,s.a.createElement("span",null,"\u56de\u7b54".concat(c,"\u3002"))),s.a.createElement("p",null,"\u89e3\u6790"),s.a.createElement("div",{className:"resolve-content",dangerouslySetInnerHTML:{__html:"".concat(i(n.analysis))}}))}}}]);
//# sourceMappingURL=Classify.7c83b805.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1151:function(e,t,a){},1152:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA+VBMVEUAAADeP03XQVEDmP38MjMGl/rSQ1Uhi+QJlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII="},1170:function(e,t,a){"use strict";a.r(t);a(44);var n,s=a(14),i=a.n(s),c=a(7),r=a(8),o=a(11),l=a(9),m=a(10),u=a(0),d=a.n(u),p=a(71),h=(a(1151),a(4)),f=a(18),E=a(30),v=a(64),g=a(21),x=(a(63),Object(g.b)()(n=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).toCourseDetail=function(e){var t=a.props;t.dispatch;return t.history.push("/detail?id=".concat(e)),!1},a.state={camp:[],employment:[],basics:[],advanced:[],special:[],isLoading:!0},a}return Object(m.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.c.get("".concat(API.home,"/m/course/classify/").concat(1)).then(function(t){200===t.data.code?(e.setState({isLoading:!1}),t.data.data.common.length>0&&e.setState({basics:t.data.data.common[0],advanced:t.data.data.common[1]||[]}),t.data.data.special.length>0&&e.setState({camp:t.data.data.special[0],employment:t.data.data.special[1]||[],special:t.data.data.special[2]||[]})):i.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this;return d.a.createElement("div",{className:"class-box"},d.a.createElement(E.e,{title:"\u5206\u7c7b",arrow:!1,cart:!1}),d.a.createElement(v.a,{isLoading:this.state.isLoading},d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.camp.list,title:this.state.camp.name,type:1}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.employment.list,title:this.state.employment.name,type:1}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.basics.list,title:this.state.basics.name,type:2}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.advanced.list,title:this.state.advanced.name,type:2}),d.a.createElement("div",{className:"vip"},this.state.special.list&&this.state.special.list.length>0&&this.state.special.list.map(function(t,a){return d.a.createElement("a",{href:"javascript:;",onClick:function(){return e.toCourseDetail(t.course_id)},key:a},d.a.createElement("img",{src:t.course_img,alt:""}))}))))}}]),t}(u.Component))||n);function b(e){var t=e.data,a=e.toDetail;return d.a.createElement("div",{className:"items-box"},t&&t.length>0&&t.map(function(e,t){return d.a.createElement("a",{href:"javascript:;",onClick:function(){return a(e.course_id)},key:t,className:"item-banner"},d.a.createElement("img",{src:e.course_img,alt:""}),e.is_aist&&d.a.createElement("span",{className:"return_cash"}))}))}function N(e){return d.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(e,t){return d.a.createElement(f.b,{to:"/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name),key:t,className:"item-label"},e.c_name)}))}function w(e){return d.a.createElement("div",{className:"class-course"},d.a.createElement("p",{className:"course-items-title"},e.title&&d.a.createElement("img",{src:a(1152),alt:""}),e.title),1===e.type&&d.a.createElement(b,{data:e.data,toDetail:e.toDetail}),2===e.type&&d.a.createElement(N,{data:e.data}))}t.default=Object(p.b)(x)},1171:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),s=a.n(n),i=a(7),c=a(8),r=a(11),o=a(9),l=a(10),m=a(0),u=a.n(m),d=a(4),p=(a(776),a(21)),h=a(777),f=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).close=function(){a.state.showCard?(a.setState({showCard:!1}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="static"):a.props.history.push("/detail?id=".concat(a.course_id),{href:"/classify"})},a.checkOption=function(e){var t=a.state.numberList;a.answerList.map(function(t){return Number(t.questionId)===Number(e.ques_id)&&(t.answerId=e.opt_id),t}),t.push(e.ques_id),a.setState({currentQuestionOption:e.opt_id,numberList:t})},a.preQuestion=function(){var e=a.state.questionIndex;1!==e&&a.setState({questionIndex:e-1,currentExam:a.state.examList[e-2],currentQuestionOption:a.answerList[e-2].answerId})},a.nextQuestion=function(){var e=a.state.questionIndex;e!==a.state.examList.length?a.setState({questionIndex:e+1,currentExam:a.state.examList[e],currentQuestionOption:a.answerList[e].answerId}):a.setState({showCard:!0})},a.jumpItem=function(e,t){a.setState({showCard:!1,questionIndex:t+1,currentExam:a.state.examList[t],currentQuestionOption:a.answerList[t].answerId})},a.commit=function(){var e={};e.video_id=a.keshi_id,e.qid=a.qid,e.cost_time=a.time,e.uid=a.props.user.data.uid,e.answer_record=a.answerList,d.c.post("".concat(API.home,"/m/aist/submit"),e).then(function(e){200===e.data.code?a.props.history.push("/campResolve?keshi_id=".concat(a.keshi_id,"&qid=").concat(a.qid)):s.a.info(e.data.msg,2)})},a.showCard=function(){a.setState({showCard:!0}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="fixed"},a.getUseTime=function(e){var t,n,s;if(t="".concat(parseInt(e/3600)).padStart(2,0),n="".concat(parseInt((e-3600*t)/60)).padStart(2,0),s="".concat(parseInt(e-3600*t-60*n)).padStart(2,0),86400!==e)return e<3600?"".concat(n,":").concat(s):"".concat(t,":").concat(n,":").concat(s);clearInterval(a.useTimeInterval),a.useTimeInterval=null},a.state={examList:[],currentExam:{},currentQuestionOption:{},questionIndex:1,numberList:[],qtitle:"",useTime:"00:00",showCard:!1},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.keshi_id=Object(d.b)("keshi_id"),this.qidP=Object(d.b)("qid");var t=this;d.c.get("".concat(API.home,"/m/aist/get_questions/").concat(this.keshi_id,"/").concat(this.qidP)).then(function(a){if(4040!==a.data.code)if(200===a.data.code){var n=a.data.data;e.qid=n.id,e.course_id=n.course_id,e.setState({examList:n.list,qtitle:n.qtitle,currentExam:n.list[0]}),t.answerList=[],n.list.map(function(e){var a={};a.questionId=e.id,a.answerId=0,t.answerList.push(a)}),t.time=0,t.useTimeInterval=setInterval(function(){t.time+=1,t.setState({useTime:t.getUseTime(t.time)})},1e3)}else s.a.info(a.data.msg,2,function(){e.props.history.push("/")});else s.a.info(a.data.msg,2,function(){e.props.history.push("/passport")})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.qtitle,n=t.currentExam,s=t.currentQuestionOption,i=t.questionIndex,c=t.examList,r=t.useTime,o=t.showCard,l=t.numberList;return u.a.createElement("div",{className:"camp-test-container"},u.a.createElement("div",{className:"fixed_container"},u.a.createElement(h.c,{time:r,showCardEve:this.showCard,close:this.close,showCard:o}),u.a.createElement(h.a,{qtitle:a,questionIndex:i,examList:c})),u.a.createElement(h.e,{questionIndex:i,checkOption:this.checkOption,currentExam:n,currentQuestionOption:s}),u.a.createElement(h.b,{preQuestion:this.preQuestion,nextQuestion:this.nextQuestion,questionIndex:i}),o&&u.a.createElement("div",{className:"test-card-container"},u.a.createElement("p",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a".concat(a)),u.a.createElement("ul",{className:"test-item"},c.map(function(t,a){return u.a.createElement("li",{key:t.id,onClick:function(){e.jumpItem(t,a)},className:"layout-flex-center ".concat(l.includes(t.id)?"answered":"")},a+1)})),u.a.createElement("div",{className:"bottom_commit"},u.a.createElement("div",{onClick:this.commit,className:"commit_answer layout-flex-center"},"\u63d0\u4ea4\u5e76\u67e5\u770b\u7ed3\u679c"))))}}]),t}(m.Component);t.default=Object(p.b)(function(e){return{user:e.user}},null)(f)},1172:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),s=a.n(n),i=a(7),c=a(8),r=a(11),o=a(9),l=a(10),m=a(0),u=a.n(m),d=a(4),p=(a(776),a(777)),h=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).showCard=function(){a.setState({showCard:!0}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="fixed"},a.close=function(){a.state.showCard?(a.setState({showCard:!1}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="static"):a.props.history.push("/detail?id=".concat(a.course_id),{href:"/purchased"})},a.checkOption=function(){},a.preQuestion=function(){var e=a.state.questionIndex;1!==e&&a.setState({questionIndex:e-1,currentExam:a.state.examList[e-2],currentQuestionOption:a.answerList[e-2].answerId})},a.nextQuestion=function(){var e=a.state.questionIndex;e!==a.state.examList.length?a.setState({questionIndex:e+1,currentExam:a.state.examList[e],currentQuestionOption:a.answerList[e].answerId}):a.setState({showCard:!0})},a.jumpItem=function(e,t){a.setState({showCard:!1,questionIndex:t+1,currentExam:a.state.examList[t],currentQuestionOption:a.answerList[t].answerId})},a.formatTime=function(e){var t=e.split(":"),a="".concat(Number(t[1]),"\u5206").concat(t[2],"\u79d2");return 0!==Number(t[0])&&(a="".concat(Number(t[0]),"\u65f6").concat(a)),a},a.state={examList:[],currentExam:{},currentQuestionOption:{},questionIndex:1,numberList:[],qtitle:"",useTime:"00:00",showCard:!1,rightRate:0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.keshi_id=Object(d.b)("keshi_id"),this.qidP=Object(d.b)("qid");var t=this;d.c.get("".concat(API.home,"/m/aist/analysis/").concat(this.keshi_id,"/").concat(this.qidP)).then(function(a){if(console.log(a),4040!==a.data.code)if(200===a.data.code){var n=a.data.data;e.course_id=n.course_id,t.answerList=[],e.rightNumber=0,n.list.map(function(a){1===a.compare&&e.rightNumber++;var n={};n.questionId=a.id,n.answerId=0,t.answerList.push(n)}),e.setState({examList:n.list,qtitle:n.qtitle,currentExam:n.list[0],useTime:n.cost_time,rightRate:(e.rightNumber/n.list.length*100).toFixed(0)})}else s.a.info(a.data.msg,2,function(){e.props.history.push("/")});else s.a.info(a.data.msg,2,function(){e.props.history.push("/passport")})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.qtitle,n=t.currentExam,s=t.currentQuestionOption,i=t.questionIndex,c=t.examList,r=t.useTime,o=t.showCard,l=t.rightRate;return u.a.createElement("div",{className:"camp-test-container"},u.a.createElement("div",{className:"fixed_container"},u.a.createElement(p.c,{time:r,showCardEve:this.showCard,close:this.close,showCard:o}),u.a.createElement(p.a,{qtitle:a,questionIndex:i,examList:c})),u.a.createElement(p.e,{questionIndex:i,checkOption:this.checkOption,currentExam:n,currentQuestionOption:s},n&&n.options&&u.a.createElement(p.d,{currentExam:n})),u.a.createElement(p.b,{preQuestion:this.preQuestion,nextQuestion:this.nextQuestion,questionIndex:i}),o&&u.a.createElement("div",{className:"test-resolve-card-container"},u.a.createElement("div",{className:"camp-test-header layout-flex-between"},u.a.createElement("div",null,u.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-77 icon-close"})),u.a.createElement("div",{className:"layout-flex-center camp-test-time"},u.a.createElement("span",{style:{fontSize:"17px",color:"#333333"}},"\u7ec3\u4e60\u62a5\u544a")),u.a.createElement("div",{className:"icon icon-order no_height"})),u.a.createElement("div",{className:"report-body"},u.a.createElement("div",{className:"right_rate"},u.a.createElement("span",{className:"rate"},"\u6b63\u786e\u7387"),u.a.createElement("div",{className:"percentage"},u.a.createElement("span",null,l),u.a.createElement("span",null,"%"))),u.a.createElement("p",{className:"use_total_time"},"\u7d2f\u8ba1\u7528\u65f6".concat(this.formatTime(r))),u.a.createElement("ul",{className:"right_wrong_li"},c.map(function(t,a){return u.a.createElement("li",{onClick:function(){e.jumpItem(t,a)},className:"layout-flex-center ".concat(t.answer_id===t.user_answer?"right":"wrong"," ").concat(0===t.user_answer?"noSelect":""),key:t.answer_id},a+1)}))),u.a.createElement("div",{className:"camp-report-bottom"},u.a.createElement("div",{className:"bottom_commit layout-flex-center"},u.a.createElement("div",{onClick:this.close,className:"commit_answer layout-flex-center"},"\u9898\u76ee\u89e3\u6790")))))}}]),t}(m.Component);t.default=h},776:function(e,t,a){},777:function(e,t,a){"use strict";a.d(t,"c",function(){return c}),a.d(t,"a",function(){return r}),a.d(t,"e",function(){return o}),a.d(t,"b",function(){return l}),a.d(t,"d",function(){return m});var n=a(0),s=a.n(n);function i(e){return e&&(e.includes("<img")&&(e=e.replace(/<img/g,"<img style='width: 100%'")),e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e}function c(e){return s.a.createElement("div",{className:"camp-test-header layout-flex-between"},s.a.createElement("div",null,s.a.createElement("i",{onClick:e.close,className:"iconfont iconiconfront-77 icon-close"})),s.a.createElement("div",{className:"layout-flex-center camp-test-time"},s.a.createElement("i",{className:"icon icon-clock"}),s.a.createElement("span",null,e.time)),s.a.createElement("div",{onClick:e.showCardEve,className:"icon icon-order ".concat(e.showCard?"no_height":"")}))}function r(e){return s.a.createElement("div",{className:"layout-flex-between camp-test-title"},s.a.createElement("div",{className:"qtitle"},"\u8bfe\u540e\u7ec3\u4e60\uff1a".concat(e.qtitle)),s.a.createElement("div",{className:"qnumber"},"".concat(e.questionIndex,"/").concat(e.examList.length)))}function o(e){var t=e.questionIndex,a=e.currentExam,n=e.currentQuestionOption;return s.a.createElement("div",{className:"test-item-container"},s.a.createElement("div",{className:"ques item-title",dangerouslySetInnerHTML:{__html:"".concat(t,".").concat(i(a.ques))}}),s.a.createElement("ul",null,a.options&&a.options.map(function(t,c){return s.a.createElement("li",{key:c,onClick:function(){return e.checkOption(t)},className:"\n ".concat(n===t.opt_id?"option_checked":"","\n ").concat(0!==a.user_answer&&!a.user_answer||a.user_answer!==t.opt_id?"":"user_check","\n ").concat(0!==a.user_answer&&!a.user_answer||a.answer_id!==t.opt_id?"":"right_check","\n ")},s.a.createElement("span",{className:"letter"},String.fromCharCode(Number(c)+65)),s.a.createElement("span",{className:"des",dangerouslySetInnerHTML:{__html:i(t.des)}}))})),e.children)}function l(e){return s.a.createElement("div",{className:"layout-flex-around change_question_container"},s.a.createElement("div",{onClick:e.preQuestion,className:"change_button pre_question ".concat(1===e.questionIndex?"first_question":"")},"\u4e0a\u4e00\u9898"),s.a.createElement("div",{onClick:e.nextQuestion,className:"change_button next_question"},"\u4e0b\u4e00\u9898"))}function m(e){var t,a,n=e.currentExam,c=0===n.compare?"\u9519\u8bef":"\u6b63\u786e";return n.options.map(function(e,i){n.answer_id===e.opt_id&&(a=i),0!==n.user_answer&&n.user_answer===e.opt_id&&(t=s.a.createElement("span",null,"\u60a8\u7684\u7b54\u6848\u662f".concat(String.fromCharCode(Number(i)+65),"\uff0c")))}),0===n.user_answer&&(t=s.a.createElement("span",null,"\u60a8\u7684\u7b54\u6848\u662f\u7a7a\uff0c")),s.a.createElement("div",{className:"test-resolve"},s.a.createElement("div",{className:"isRight"},s.a.createElement("span",null,"\u6b63\u786e\u7b54\u6848\u662f".concat(String.fromCharCode(Number(a)+65),"\uff0c")),t,s.a.createElement("span",null,"\u56de\u7b54".concat(c,"\u3002"))),s.a.createElement("p",null,"\u89e3\u6790"),s.a.createElement("div",{className:"resolve-content",dangerouslySetInnerHTML:{__html:"".concat(i(n.analysis))}}))}}}]);
//# sourceMappingURL=Classify.a88ff223.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/classify/image/tips.png","components/classify/index.js","components/video/camp/campTest.js","components/video/camp/campResolve.js","components/video/camp/common/common.js"],"names":["module","exports","Classify","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_this$props","dispatch","history","push","concat","state","camp","employment","basics","advanced","special","isLoading","_this2","http","get","API","home","then","res","data","code","setState","common","length","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this3","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_12__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_13__","ClassCourseBox","toDetail","list","name","type","map","item","index","href","onClick","course_id","key","src","course_img","alt","Component","ClassCourseA","_ref","is_aist","ClassCourseB","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","c_id","c_name","require","WithTab","CampTest","close","showCard","body","document","getElementsByTagName","style","position","checkOption","checkItem","numberList","answerList","Number","questionId","ques_id","answerId","opt_id","currentQuestionOption","preQuestion","questionIndex","currentExam","examList","nextQuestion","jumpItem","commit","video_id","keshi_id","qid","cost_time","time","uid","user","answer_record","post","getUseTime","date","hours","minutes","seconds","parseInt","padStart","clearInterval","useTimeInterval","qtitle","useTime","getParam","qidP","obj","setInterval","_this$state","_common_common__WEBPACK_IMPORTED_MODULE_11__","showCardEve","includes","CampResolve","formatTime","ary","split","str","rightRate","console","log","rightNumber","compare","toFixed","_common_common__WEBPACK_IMPORTED_MODULE_10__","options","fontSize","color","answer_id","user_answer","__webpack_require__","d","__webpack_exports__","Header","CampTitle","TestItem","ChangeQuestion","Resolve","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","format","content","replace","dangerouslySetInnerHTML","__html","ques","String","fromCharCode","des","children","UserIndex","rightIndex","Test","analysis"],"mappings":"mGAAAA,EAAAC,QAAA,8gCCYMC,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAwCVQ,eAAiB,SAACC,GAAO,IAAAC,EACST,EAAKD,MADdU,EACbC,SAGJ,OAJiBD,EACHE,QAENC,KAAR,cAAAC,OAA2BL,KACpB,GA3CXR,EAAKc,MAAQ,CACTC,KAAM,GACNC,WAAY,GACZC,OAAQ,GACRC,SAAU,GACVC,QAAS,GACTC,WAAW,GARApB,mFAYC,IAAAqB,EAAAlB,KAEhBmB,IAAKC,IAAL,GAAAV,OAAYW,IAAIC,KAAhB,uBAAAZ,OADW,IACwCa,KAAK,SAACC,GAC/B,MAAlBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVV,WAAW,IAGXO,EAAIC,KAAKA,KAAKG,OAAOC,OAAS,GAC9BX,EAAKS,SAAS,CACVb,OAAQU,EAAIC,KAAKA,KAAKG,OAAO,G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9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII=\"","import React, {Component} from 'react';\nimport {WithTab} from '@/HOCs'\nimport './index.scss';\nimport {http} from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n camp: [],\n employment: [],\n basics: [],\n advanced: [],\n special: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n let data = 1\n http.get(`${API.home}/m/course/classify/${data}`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isLoading: false\n })\n\n if (res.data.data.common.length > 0) {\n this.setState({\n basics: res.data.data.common[0],\n advanced: res.data.data.common[1] || [],\n })\n }\n if (res.data.data.special.length > 0) {\n this.setState({\n camp: res.data.data.special[0],\n employment: res.data.data.special[1] || [],\n special: res.data.data.special[2] || [],\n })\n\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n render() {\n return (\n <div className='class-box'>\n <HeaderBar title='分类' arrow={false} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.camp.list} title={this.state.camp.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.employment.list} title={this.state.employment.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.basics.list} title={this.state.basics.name} type={2}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.advanced.list} title={this.state.advanced.name} type={2}/>\n <div className=\"vip\">\n {this.state.special.list && this.state.special.list.length > 0 && this.state.special.list.map((item, index) => {\n return (\n <a href=\"javascript:;\" onClick={() => this.toCourseDetail(item.course_id)} key={index}>\n {/* <Link key={index} to={`/detail?id=${item.course_id}`}> */}\n <img src={item.course_img} alt=\"\"/>\n {/* </Link> */}\n </a>\n )\n })\n }\n </div>\n </Loading>\n </div>\n )\n }\n}\n\n// 课程图片形式展示 点击图片直接跳转课程详情页面\nfunction ClassCourseA({data, toDetail}) {\n return (\n <div className='items-box'>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <a href=\"javascript:;\" onClick={() => toDetail(item.course_id)} key={index} className='item-banner'>\n {/* <Link to={`/detail?id=${item.course_id}`} key={index} className='item-banner'> */}\n <img src={item.course_img} alt=\"\"/>\n {\n (item.is_aist &&\n <span className='return_cash'></span>)\n }\n {/* </Link> */}\n </a>\n )\n })\n }\n </div>\n )\n}\n\n// 课程标签的形式展示 点击标签跳转分类详情页面\nfunction ClassCourseB(props) {\n return (\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <Link to={`/courselist?id=${item.c_id}&name=${item.c_name}`} key={index} className='item-label'>\n {item.c_name}\n </Link>\n )\n })\n }\n </div>\n )\n}\n\nfunction ClassCourseBox(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>\n {\n props.title &&\n <img src={require('./image/tips.png')} alt=\"\"/>\n }\n {props.title}\n </p>\n {props.type === 1 &&\n <ClassCourseA data={props.data} toDetail={props.toDetail} />\n }\n {props.type === 2 &&\n <ClassCourseB data={props.data}/>\n }\n </div>\n )\n}\n\nexport default WithTab(Classify);\n","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {connect} from \"react-redux\";\nimport {Header, CampTitle, TestItem, ChangeQuestion} from './common/common';\nimport { Toast } from 'antd-mobile';\n\nclass CampTest extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n }\n }\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/get_questions/${this.keshi_id}/${this.qidP}`).then(res => {\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.qid = data.id;\n this.course_id = data.course_id;\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n });\n _this.answerList = [];\n data.list.map(item => {\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n _this.time = 0;\n _this.useTimeInterval = setInterval(function () {\n _this.time += 1;\n // _this.useTime = _this.getUseTime(_this.time);\n _this.setState({\n useTime: _this.getUseTime(_this.time)\n })\n }, 1000);\n });\n };\n // 关闭按钮\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n this.props.history.push(`/detail?id=${this.course_id}`,{href: '/classify'})\n }\n };\n // 选择答案\n checkOption = (checkItem) => {\n let list = this.state.numberList;\n this.answerList.map(function (item) {\n if (Number(item.questionId) === Number(checkItem.ques_id)) {\n item.answerId = checkItem.opt_id;\n }\n return item;\n });\n list.push(checkItem.ques_id);\n this.setState({\n currentQuestionOption: checkItem.opt_id,\n numberList: list\n });\n };\n // 上一题\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n // 下一题\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n // 提交\n commit = () => {\n let data = {};\n data.video_id = this.keshi_id;\n data.qid = this.qid;\n data.cost_time = this.time;\n data.uid = this.props.user.data.uid;\n data.answer_record = this.answerList;\n http.post(`${API.home}/m/aist/submit`, data).then((res) => {\n if(res.data.code === 200) {\n this.props.history.push(`/campResolve?keshi_id=${this.keshi_id}&qid=${this.qid}`)\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n };\n // 显示答题卡\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n // 答题用时的格式化\n getUseTime = (date) => {\n let hours = 0,\n minutes = 0,\n seconds = 0;\n hours = `${parseInt(date / (60 * 60))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600) / 60)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600 - minutes * 60))}`.padStart(2, 0);\n if (date === 3600 * 24) {\n clearInterval(this.useTimeInterval);\n this.useTimeInterval = null;\n } else {\n if (date < 3600) {\n return `${minutes}:${seconds}`\n } else {\n return `${hours}:${minutes}:${seconds}`\n }\n }\n };\n\n\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, numberList} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n {/*关闭按钮 时间 答题卡*/}\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n\n {/*课后练习题 当前题目 题目总数*/}\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n\n {/*题目*/}\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} />\n {/*切换题目*/}\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {/* 答题卡 */}\n {\n showCard && (\n <div className='test-card-container' >\n <p>{`课后练习:${qtitle}`}</p>\n <ul className={'test-item'}>\n {\n examList.map((item, index) => {\n return <li key={item.id} onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${numberList.includes(item.id) ? 'answered' : ''}`}>{index + 1}</li>\n })\n }\n </ul>\n <div className={'bottom_commit'}>\n <div onClick={this.commit} className={'commit_answer layout-flex-center'}>提交并查看结果</div>\n </div>\n </div>\n )\n }\n\n </div>\n );\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(CampTest)","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {CampTitle, Header, TestItem, ChangeQuestion, Resolve} from './common/common';\nimport {Toast} from \"antd-mobile\";\n\nclass CampResolve extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n rightRate: 0,\n }\n }\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n this.props.history.push(`/detail?id=${this.course_id}`,{href: '/purchased'})\n }\n };\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/analysis/${this.keshi_id}/${this.qidP}`).then(res => {\n console.log(res);\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.course_id = data.course_id;\n _this.answerList = [];\n this.rightNumber = 0;\n data.list.map(item => {\n if(item.compare === 1) {\n this.rightNumber++;\n }\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n useTime: data.cost_time,\n rightRate: (this.rightNumber/data.list.length * 100).toFixed(0)\n });\n });\n };\n checkOption = () => {};\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n formatTime = (time) => {\n let ary = time.split(':');\n let str = `${Number(ary[1])}分${ary[2]}秒`;\n if(Number(ary[0]) !== 0) {\n str = `${Number(ary[0])}时${str}`\n }\n return str;\n };\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, rightRate} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} >\n {\n currentExam && currentExam.options && <Resolve currentExam={currentExam}/>\n }\n </TestItem>\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {\n showCard && (\n <div className='test-resolve-card-container' >\n <div className={'camp-test-header layout-flex-between'}>\n <div><i onClick={this.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <span style={{fontSize: '17px', color: '#333333'}}>{'练习报告'}</span>\n </div>\n <div className={`icon icon-order no_height`} />\n </div>\n\n <div className={'report-body'}>\n <div className={'right_rate'}>\n <span className={'rate'}>正确率</span>\n <div className={'percentage'}>\n <span>{rightRate}</span>\n <span>%</span>\n </div>\n </div>\n\n <p className={'use_total_time'}>{`累计用时${this.formatTime(useTime)}`}</p>\n\n <ul className={'right_wrong_li'}>\n {\n examList.map((item, index) => {\n return <li onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${item.answer_id === item.user_answer ? 'right' : 'wrong'} ${item.user_answer === 0 ? 'noSelect' : ''}`} key={item.answer_id}>{index + 1}</li>\n })\n }\n </ul>\n </div>\n\n <div className={'camp-report-bottom'}>\n <div className={'bottom_commit layout-flex-center'}>\n <div onClick={this.close} className={'commit_answer layout-flex-center'}>题目解析</div>\n </div>\n </div>\n </div>\n )\n }\n </div>\n );\n }\n}\n\nexport default CampResolve;","import React from 'react';\nfunction format(content) {\n if(content) {\n if(content.includes(\"<img\")) {\n content = content.replace(/<img/g, \"<img style='width: 100%'\");\n }\n content = content.replace(/&lt;/g , '<');\n content = content.replace(/&gt;/g , '>');\n content = content.replace(/&amp;gt;/g , '');\n content = content.replace(/&quot;/g , '\"');\n content = content.replace(/&amp;nbsp;/g , '');\n }\n return content;\n}\n\nfunction Header(props) {\n return (\n <div className='camp-test-header layout-flex-between'>\n <div><i onClick={props.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <i className='icon icon-clock' />\n <span>{props.time}</span>\n </div>\n <div onClick={props.showCardEve} className={`icon icon-order ${props.showCard ? 'no_height' : ''}`} />\n </div>\n );\n}\n\nfunction CampTitle(props) {\n return (\n <div className='layout-flex-between camp-test-title'>\n <div className='qtitle'>{`课后练习:${props.qtitle}`}</div>\n <div className='qnumber'>{`${props.questionIndex}/${props.examList.length}`}</div>\n </div>\n );\n}\n\nfunction TestItem(props) {\n let {questionIndex, currentExam, currentQuestionOption} = props;\n return (\n <div className='test-item-container'>\n <div className='ques item-title' dangerouslySetInnerHTML={{__html: `${questionIndex}.${format(currentExam.ques)}`}} />\n <ul>\n {\n currentExam.options && currentExam.options.map((item,index)=>{\n return (<li key={index}\n onClick={()=>props.checkOption(item)}\n className={`\n ${currentQuestionOption === item.opt_id ? 'option_checked' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.user_answer === item.opt_id) ? 'user_check' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.answer_id === item.opt_id) ? 'right_check' : ''}\n `}\n >\n <span className='letter'>{String.fromCharCode(Number(index) + 65)}</span>\n <span className='des' dangerouslySetInnerHTML={{__html: format(item.des)}} />\n </li>)\n })\n }\n </ul>\n {\n props.children\n }\n </div>\n );\n}\n\nfunction ChangeQuestion(props) {\n return (\n <div className={'layout-flex-around change_question_container'}>\n <div onClick={props.preQuestion} className={`change_button pre_question ${props.questionIndex === 1 ? 'first_question' : ''}`}>上一题</div>\n <div onClick={props.nextQuestion} className={`change_button next_question`}>下一题</div>\n </div>\n )\n}\n\nfunction Resolve(props) {\n let {currentExam} = props;\n let Test = currentExam.compare === 0 ? '错误' : '正确';\n let UserIndex, rightIndex;\n currentExam.options.map((item, index)=>{\n if(currentExam.answer_id === item.opt_id) {\n rightIndex = index;\n }\n if(currentExam.user_answer !== 0 && currentExam.user_answer === item.opt_id) {\n UserIndex = <span>{`您的答案是${String.fromCharCode(Number(index) + 65)},`}</span>;\n }\n });\n if(currentExam.user_answer === 0) {\n UserIndex = <span>{`您的答案是空,`}</span>;\n }\n return (\n <div className={'test-resolve'}>\n <div className={'isRight'}>\n <span>{`正确答案是${String.fromCharCode(Number(rightIndex) + 65)},`}</span>\n {UserIndex}\n <span>{`回答${Test}。`}</span>\n </div>\n <p>解析</p>\n <div className={'resolve-content'} dangerouslySetInnerHTML={{__html: `${format(currentExam.analysis)}`}} />\n </div>\n )\n}\n\nexport {\n Header,\n CampTitle,\n TestItem,\n ChangeQuestion,\n Resolve,\n};"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/image/tips.png","components/classify/index.js","components/video/camp/campTest.js","components/video/camp/campResolve.js","components/video/camp/common/common.js"],"names":["module","exports","Classify","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_this$props","dispatch","history","push","concat","state","camp","employment","basics","advanced","special","isLoading","_this2","http","get","API","home","then","res","data","code","setState","common","length","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this3","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_12__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_13__","ClassCourseBox","toDetail","list","name","type","map","item","index","href","onClick","course_id","key","src","course_img","alt","Component","ClassCourseA","_ref","is_aist","ClassCourseB","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","c_id","c_name","require","WithTab","CampTest","close","showCard","body","document","getElementsByTagName","style","position","checkOption","checkItem","numberList","answerList","Number","questionId","ques_id","answerId","opt_id","currentQuestionOption","preQuestion","questionIndex","currentExam","examList","nextQuestion","jumpItem","commit","video_id","keshi_id","qid","cost_time","time","uid","user","answer_record","post","getUseTime","date","hours","minutes","seconds","parseInt","padStart","clearInterval","useTimeInterval","qtitle","useTime","getParam","qidP","obj","setInterval","_this$state","_common_common__WEBPACK_IMPORTED_MODULE_11__","showCardEve","includes","CampResolve","formatTime","ary","split","str","rightRate","console","log","rightNumber","compare","toFixed","_common_common__WEBPACK_IMPORTED_MODULE_10__","options","fontSize","color","answer_id","user_answer","__webpack_require__","d","__webpack_exports__","Header","CampTitle","TestItem","ChangeQuestion","Resolve","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","format","content","replace","dangerouslySetInnerHTML","__html","ques","String","fromCharCode","des","children","UserIndex","rightIndex","Test","analysis"],"mappings":"mGAAAA,EAAAC,QAAA,8gCCYMC,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAA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AK,cAAA,OAAKC,UAAW,WACZ+G,EAAArH,EAAAK,cAAA,6CAAA1B,OAAekJ,OAAOC,aAAa5E,OAAOgF,GAAc,IAAxD,WACCD,EACDZ,EAAArH,EAAAK,cAAA,2BAAA1B,OAAYwJ,EAAZ,YAEJd,EAAArH,EAAAK,cAAA,yBACAgH,EAAArH,EAAAK,cAAA,OAAKC,UAAW,kBAAmBoH,wBAAyB,CAACC,OAAM,GAAAhJ,OAAK4I,EAAO7D,EAAY0E","file":"static/js/Classify.a88ff223.chunk.js","sourcesContent":["module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA+VBMVEUAAADeP03XQVEDmP38MjMGl/rSQ1Uhi+QJlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII=\"","import React, {Component} from 'react';\nimport {WithTab} from '@/HOCs'\nimport './index.scss';\nimport {http} from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n camp: [],\n employment: [],\n basics: [],\n advanced: [],\n special: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n let data = 1\n http.get(`${API.home}/m/course/classify/${data}`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isLoading: false\n })\n\n if (res.data.data.common.length > 0) {\n this.setState({\n basics: res.data.data.common[0],\n advanced: res.data.data.common[1] || [],\n })\n }\n if (res.data.data.special.length > 0) {\n this.setState({\n camp: res.data.data.special[0],\n employment: res.data.data.special[1] || [],\n special: res.data.data.special[2] || [],\n })\n\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n render() {\n return (\n <div className='class-box'>\n <HeaderBar title='分类' arrow={false} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.camp.list} title={this.state.camp.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.employment.list} title={this.state.employment.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.basics.list} title={this.state.basics.name} type={2}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.advanced.list} title={this.state.advanced.name} type={2}/>\n <div className=\"vip\">\n {this.state.special.list && this.state.special.list.length > 0 && this.state.special.list.map((item, index) => {\n return (\n <a href=\"javascript:;\" onClick={() => this.toCourseDetail(item.course_id)} key={index}>\n {/* <Link key={index} to={`/detail?id=${item.course_id}`}> */}\n <img src={item.course_img} alt=\"\"/>\n {/* </Link> */}\n </a>\n )\n })\n }\n </div>\n </Loading>\n </div>\n )\n }\n}\n\n// 课程图片形式展示 点击图片直接跳转课程详情页面\nfunction ClassCourseA({data, toDetail}) {\n return (\n <div className='items-box'>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <a href=\"javascript:;\" onClick={() => toDetail(item.course_id)} key={index} className='item-banner'>\n {/* <Link to={`/detail?id=${item.course_id}`} key={index} className='item-banner'> */}\n <img src={item.course_img} alt=\"\"/>\n {\n (item.is_aist &&\n <span className='return_cash'></span>)\n }\n {/* </Link> */}\n </a>\n )\n })\n }\n </div>\n )\n}\n\n// 课程标签的形式展示 点击标签跳转分类详情页面\nfunction ClassCourseB(props) {\n return (\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <Link to={`/courselist?id=${item.c_id}&name=${item.c_name}`} key={index} className='item-label'>\n {item.c_name}\n </Link>\n )\n })\n }\n </div>\n )\n}\n\nfunction ClassCourseBox(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>\n {\n props.title &&\n <img src={require('./image/tips.png')} alt=\"\"/>\n }\n {props.title}\n </p>\n {props.type === 1 &&\n <ClassCourseA data={props.data} toDetail={props.toDetail} />\n }\n {props.type === 2 &&\n <ClassCourseB data={props.data}/>\n }\n </div>\n )\n}\n\nexport default WithTab(Classify);\n","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {connect} from \"react-redux\";\nimport {Header, CampTitle, TestItem, ChangeQuestion} from './common/common';\nimport { Toast } from 'antd-mobile';\n\nclass CampTest extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n }\n }\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/get_questions/${this.keshi_id}/${this.qidP}`).then(res => {\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.qid = data.id;\n this.course_id = data.course_id;\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n });\n _this.answerList = [];\n data.list.map(item => {\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n _this.time = 0;\n _this.useTimeInterval = setInterval(function () {\n _this.time += 1;\n // _this.useTime = _this.getUseTime(_this.time);\n _this.setState({\n useTime: _this.getUseTime(_this.time)\n })\n }, 1000);\n });\n };\n // 关闭按钮\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n this.props.history.push(`/detail?id=${this.course_id}`,{href: '/classify'})\n }\n };\n // 选择答案\n checkOption = (checkItem) => {\n let list = this.state.numberList;\n this.answerList.map(function (item) {\n if (Number(item.questionId) === Number(checkItem.ques_id)) {\n item.answerId = checkItem.opt_id;\n }\n return item;\n });\n list.push(checkItem.ques_id);\n this.setState({\n currentQuestionOption: checkItem.opt_id,\n numberList: list\n });\n };\n // 上一题\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n // 下一题\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n // 提交\n commit = () => {\n let data = {};\n data.video_id = this.keshi_id;\n data.qid = this.qid;\n data.cost_time = this.time;\n data.uid = this.props.user.data.uid;\n data.answer_record = this.answerList;\n http.post(`${API.home}/m/aist/submit`, data).then((res) => {\n if(res.data.code === 200) {\n this.props.history.push(`/campResolve?keshi_id=${this.keshi_id}&qid=${this.qid}`)\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n };\n // 显示答题卡\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n // 答题用时的格式化\n getUseTime = (date) => {\n let hours = 0,\n minutes = 0,\n seconds = 0;\n hours = `${parseInt(date / (60 * 60))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600) / 60)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600 - minutes * 60))}`.padStart(2, 0);\n if (date === 3600 * 24) {\n clearInterval(this.useTimeInterval);\n this.useTimeInterval = null;\n } else {\n if (date < 3600) {\n return `${minutes}:${seconds}`\n } else {\n return `${hours}:${minutes}:${seconds}`\n }\n }\n };\n\n\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, numberList} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n {/*关闭按钮 时间 答题卡*/}\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n\n {/*课后练习题 当前题目 题目总数*/}\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n\n {/*题目*/}\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} />\n {/*切换题目*/}\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {/* 答题卡 */}\n {\n showCard && (\n <div className='test-card-container' >\n <p>{`课后练习:${qtitle}`}</p>\n <ul className={'test-item'}>\n {\n examList.map((item, index) => {\n return <li key={item.id} onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${numberList.includes(item.id) ? 'answered' : ''}`}>{index + 1}</li>\n })\n }\n </ul>\n <div className={'bottom_commit'}>\n <div onClick={this.commit} className={'commit_answer layout-flex-center'}>提交并查看结果</div>\n </div>\n </div>\n )\n }\n\n </div>\n );\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(CampTest)","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {CampTitle, Header, TestItem, ChangeQuestion, Resolve} from './common/common';\nimport {Toast} from \"antd-mobile\";\n\nclass CampResolve extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n rightRate: 0,\n }\n }\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n this.props.history.push(`/detail?id=${this.course_id}`,{href: '/purchased'})\n }\n };\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/analysis/${this.keshi_id}/${this.qidP}`).then(res => {\n console.log(res);\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.course_id = data.course_id;\n _this.answerList = [];\n this.rightNumber = 0;\n data.list.map(item => {\n if(item.compare === 1) {\n this.rightNumber++;\n }\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n useTime: data.cost_time,\n rightRate: (this.rightNumber/data.list.length * 100).toFixed(0)\n });\n });\n };\n checkOption = () => {};\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n formatTime = (time) => {\n let ary = time.split(':');\n let str = `${Number(ary[1])}分${ary[2]}秒`;\n if(Number(ary[0]) !== 0) {\n str = `${Number(ary[0])}时${str}`\n }\n return str;\n };\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, rightRate} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} >\n {\n currentExam && currentExam.options && <Resolve currentExam={currentExam}/>\n }\n </TestItem>\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {\n showCard && (\n <div className='test-resolve-card-container' >\n <div className={'camp-test-header layout-flex-between'}>\n <div><i onClick={this.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <span style={{fontSize: '17px', color: '#333333'}}>{'练习报告'}</span>\n </div>\n <div className={`icon icon-order no_height`} />\n </div>\n\n <div className={'report-body'}>\n <div className={'right_rate'}>\n <span className={'rate'}>正确率</span>\n <div className={'percentage'}>\n <span>{rightRate}</span>\n <span>%</span>\n </div>\n </div>\n\n <p className={'use_total_time'}>{`累计用时${this.formatTime(useTime)}`}</p>\n\n <ul className={'right_wrong_li'}>\n {\n examList.map((item, index) => {\n return <li onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${item.answer_id === item.user_answer ? 'right' : 'wrong'} ${item.user_answer === 0 ? 'noSelect' : ''}`} key={item.answer_id}>{index + 1}</li>\n })\n }\n </ul>\n </div>\n\n <div className={'camp-report-bottom'}>\n <div className={'bottom_commit layout-flex-center'}>\n <div onClick={this.close} className={'commit_answer layout-flex-center'}>题目解析</div>\n </div>\n </div>\n </div>\n )\n }\n </div>\n );\n }\n}\n\nexport default CampResolve;","import React from 'react';\nfunction format(content) {\n if(content) {\n if(content.includes(\"<img\")) {\n content = content.replace(/<img/g, \"<img style='width: 100%'\");\n }\n content = content.replace(/&lt;/g , '<');\n content = content.replace(/&gt;/g , '>');\n content = content.replace(/&amp;gt;/g , '');\n content = content.replace(/&quot;/g , '\"');\n content = content.replace(/&amp;nbsp;/g , '');\n }\n return content;\n}\n\nfunction Header(props) {\n return (\n <div className='camp-test-header layout-flex-between'>\n <div><i onClick={props.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <i className='icon icon-clock' />\n <span>{props.time}</span>\n </div>\n <div onClick={props.showCardEve} className={`icon icon-order ${props.showCard ? 'no_height' : ''}`} />\n </div>\n );\n}\n\nfunction CampTitle(props) {\n return (\n <div className='layout-flex-between camp-test-title'>\n <div className='qtitle'>{`课后练习:${props.qtitle}`}</div>\n <div className='qnumber'>{`${props.questionIndex}/${props.examList.length}`}</div>\n </div>\n );\n}\n\nfunction TestItem(props) {\n let {questionIndex, currentExam, currentQuestionOption} = props;\n return (\n <div className='test-item-container'>\n <div className='ques item-title' dangerouslySetInnerHTML={{__html: `${questionIndex}.${format(currentExam.ques)}`}} />\n <ul>\n {\n currentExam.options && currentExam.options.map((item,index)=>{\n return (<li key={index}\n onClick={()=>props.checkOption(item)}\n className={`\n ${currentQuestionOption === item.opt_id ? 'option_checked' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.user_answer === item.opt_id) ? 'user_check' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.answer_id === item.opt_id) ? 'right_check' : ''}\n `}\n >\n <span className='letter'>{String.fromCharCode(Number(index) + 65)}</span>\n <span className='des' dangerouslySetInnerHTML={{__html: format(item.des)}} />\n </li>)\n })\n }\n </ul>\n {\n props.children\n }\n </div>\n );\n}\n\nfunction ChangeQuestion(props) {\n return (\n <div className={'layout-flex-around change_question_container'}>\n <div onClick={props.preQuestion} className={`change_button pre_question ${props.questionIndex === 1 ? 'first_question' : ''}`}>上一题</div>\n <div onClick={props.nextQuestion} className={`change_button next_question`}>下一题</div>\n </div>\n )\n}\n\nfunction Resolve(props) {\n let {currentExam} = props;\n let Test = currentExam.compare === 0 ? '错误' : '正确';\n let UserIndex, rightIndex;\n currentExam.options.map((item, index)=>{\n if(currentExam.answer_id === item.opt_id) {\n rightIndex = index;\n }\n if(currentExam.user_answer !== 0 && currentExam.user_answer === item.opt_id) {\n UserIndex = <span>{`您的答案是${String.fromCharCode(Number(index) + 65)},`}</span>;\n }\n });\n if(currentExam.user_answer === 0) {\n UserIndex = <span>{`您的答案是空,`}</span>;\n }\n return (\n <div className={'test-resolve'}>\n <div className={'isRight'}>\n <span>{`正确答案是${String.fromCharCode(Number(rightIndex) + 65)},`}</span>\n {UserIndex}\n <span>{`回答${Test}。`}</span>\n </div>\n <p>解析</p>\n <div className={'resolve-content'} dangerouslySetInnerHTML={{__html: `${format(currentExam.analysis)}`}} />\n </div>\n )\n}\n\nexport {\n Header,\n CampTitle,\n TestItem,\n ChangeQuestion,\n Resolve,\n};"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1150:function(e,t,a){},1168:function(e,t,a){"use strict";a.r(t);a(258);var n,i=a(160),o=a.n(i),c=(a(154),a(35)),s=a.n(c),l=(a(44),a(14)),r=a.n(l),u=a(7),f=a(8),d=a(10),h=a(9),p=a(156),m=a(11),v=a(0),b=a.n(v),g=a(30),C=(a(1150),a(706)),y=a(4),E=a(64),w=a(21),_=(a(63),Object(w.b)()(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(d.a)(this,Object(h.a)(t).call(this,e))).getTabs=function(){y.c.get("".concat(API.home,"/m/course/classify/").concat(0)).then(function(e){var t=Object(p.a)(a);if(200===e.data.code){if(e.data.data.common.length>0){var n=[{basics:[]},{advanced:[]}],i=[];["basics","advanced"].forEach(function(t,a){n[t]=e.data.data.common[a],e.data.data.common[a].list.forEach(function(e,t){i.push({title:e.c_name,id:e.c_id})})}),t.setState({arr:n,allClass:i})}}else r.a.info(e.data.msg,2)}).catch(function(e){console.log(e)})},a.getList=function(){var e=Object(p.a)(a);y.c.get("".concat(API.home,"/m/course/list/").concat(Object(y.b)("id"))).then(function(t){200===t.data.code&&e.setState({data:t.data.data,isLoading:!1})})},a.ontabclick=function(e){a.props.history.push("/courselist?id=".concat(e.id,"&name=").concat(e.title)),a.getList(),a.setState({activeTab:decodeURIComponent(Object(y.b)("name"))})},a.pulldown=function(){a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block"}})},a.labelclick=function(e){a.props.history.push("/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name)),a.getList(),a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block",activeTab:decodeURIComponent(Object(y.b)("name"))}})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.toClassify=function(){location.replace("/classify")},a.state={ispull:!1,display:"none",arr:[{basics:[]},{advanced:[]}],allClass:[],data:[],activeTab:decodeURIComponent(Object(y.b)("name")),isLoading:!0},a}return Object(m.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.getTabs(),this.getList()}},{key:"render",value:function(){var e=this,t=b.a.createElement("i",{className:"iconfont iconiconfront-69 pull-down"}),a=b.a.createElement("i",{className:"iconfont iconiconfront-71 pull-down"}),n=this.state.allClass.findIndex(function(t){return t.title===e.state.activeTab});return b.a.createElement("div",{className:"class-child"},b.a.createElement(C.a,{toHref:this.toClassify}),b.a.createElement(E.a,{isLoading:this.state.isLoading},b.a.createElement("div",{className:"class-content"},b.a.createElement(s.a,null),b.a.createElement("div",{onClick:this.pulldown.bind(this)},this.state.ispull?a:t),b.a.createElement(o.a,{tabs:this.state.allClass,animated:!1,page:n,onChange:function(t){return e.ontabclick(t)}},b.a.createElement("div",{className:"tabs"},b.a.createElement("ul",null,this.state.data&&this.state.data.length>0&&this.state.data.map(function(t,a){var n=b.a.createElement("div",{className:"info"},b.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),b.a.createElement("p",{className:"contact text-overflow-2"},t.desc),b.a.createElement("div",{className:"des"},!t.is_buy&&b.a.createElement("p",{className:"course-price"},b.a.createElement("span",{className:"new"},"\xa5",t.price1),b.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&b.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),i=b.a.createElement("div",null,0===t.bargain_num&&0!==t.groupon_num&&b.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u51cf",t.groupon_num,"\u5143"),0!==t.bargain_num&&0===t.groupon_num&&b.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_num,"\u5143"),t.is_aist&&b.a.createElement("span",{className:"return_cash"}));return b.a.createElement(g.i,{key:a,status:i,img:t.image_name,id:t.course_id,info:n,toDetail:e.toCourseDetail})})))),b.a.createElement(s.a,null)),b.a.createElement("div",{className:"mbc-box",style:{display:this.state.display}},this.state.arr.basics&&b.a.createElement("div",{className:"tabcontent"},b.a.createElement(N,{activeTab:this.state.activeTab,data:this.state.arr.basics.list,title:this.state.arr.basics.name,labelclick:this.labelclick}),b.a.createElement(N,{activeTab:this.state.activeTab,data:this.state.arr.advanced.list,title:this.state.arr.advanced.name,labelclick:this.labelclick})))))}}]),t}(v.Component))||n);function N(e){return b.a.createElement("div",{className:"class-course"},b.a.createElement("p",{className:"course-items-title"},e.title),b.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(t,a){return b.a.createElement("span",{className:e.activeTab===t.c_name?"active-label":"item-label",key:a,onClick:function(a){return e.labelclick(t)}},t.c_name)})))}t.default=_},583:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(3),o=(n=i)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var i={};if(t&&t.antLocale&&t.antLocale[a])i=t.antLocale[a];else{var c=n();i=c.default||c}var s=(0,o.default)({},i);e.locale&&(s=(0,o.default)({},s,e.locale),e.locale.lang&&(s.lang=(0,o.default)({},i.lang,e.locale.lang)));return s},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,a){"use strict";a(48),a(607)},607:function(e,t,a){},608:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(3)),i=b(a(34)),o=b(a(5)),c=b(a(12)),s=b(a(6)),l=b(a(13)),r=b(a(15)),u=v(a(0)),f=v(a(2)),d=b(a(153)),h=b(a(583)),p=a(588),m=a(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,l.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,o=this.props,c=o.prefixCls,s=o.showCancelButton,l=o.disabled,f=o.placeholder,m=o.className,v=o.style,b=o.maxLength,g=(0,p.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(610)}).cancelText,C=this.state,y=C.value,E=C.focus,w=(0,r.default)(c,m,(0,i.default)({},c+"-start",!!(E||y&&y.length>0))),_=(0,r.default)(c+"-clear",(0,i.default)({},c+"-clear-show",!!(E&&y&&y.length>0))),N=(0,r.default)(c+"-cancel",(e={},(0,i.default)(e,c+"-cancel-show",!!(s||E||y&&y.length>0)),(0,i.default)(e,c+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:w,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:c+"-input"},u.createElement("div",{className:c+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:c+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:c+"-synthetic-ph-icon"}),u.createElement("span",{className:c+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:c+"-value",value:y,disabled:l,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:b},(0,h.default)(this.props))),u.createElement(d.default,{activeClassName:c+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:_}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||g))}}]),t}(u.Component);t.default=g,g.defaultProps=m.defaultProps,g.contextTypes={antLocale:f.object},e.exports=t.default},609:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},610:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},706:function(e,t,a){"use strict";a(606);var n=a(608),i=a.n(n),o=a(7),c=a(8),s=a(10),l=a(9),r=a(11),u=a(0),f=a.n(u),d=(a(707),function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).goShop=function(){location.replace("/shopcart")},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return console.log(this.props.toHref),f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(i.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},707:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.4a28c0e7.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1150:function(e,t,a){},1168:function(e,t,a){"use strict";a.r(t);a(258);var n,i=a(160),o=a.n(i),c=(a(154),a(35)),s=a.n(c),l=(a(44),a(14)),r=a.n(l),u=a(7),f=a(8),d=a(11),h=a(9),p=a(156),m=a(10),v=a(0),b=a.n(v),g=a(30),C=(a(1150),a(706)),y=a(4),E=a(64),w=a(21),_=(a(63),Object(w.b)()(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(d.a)(this,Object(h.a)(t).call(this,e))).getTabs=function(){y.c.get("".concat(API.home,"/m/course/classify/").concat(0)).then(function(e){var t=Object(p.a)(a);if(200===e.data.code){if(e.data.data.common.length>0){var n=[{basics:[]},{advanced:[]}],i=[];["basics","advanced"].forEach(function(t,a){n[t]=e.data.data.common[a],e.data.data.common[a].list.forEach(function(e,t){i.push({title:e.c_name,id:e.c_id})})}),t.setState({arr:n,allClass:i})}}else r.a.info(e.data.msg,2)}).catch(function(e){console.log(e)})},a.getList=function(){var e=Object(p.a)(a);y.c.get("".concat(API.home,"/m/course/list/").concat(Object(y.b)("id"))).then(function(t){200===t.data.code&&e.setState({data:t.data.data,isLoading:!1})})},a.ontabclick=function(e){a.props.history.push("/courselist?id=".concat(e.id,"&name=").concat(e.title)),a.getList(),a.setState({activeTab:decodeURIComponent(Object(y.b)("name"))})},a.pulldown=function(){a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block"}})},a.labelclick=function(e){a.props.history.push("/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name)),a.getList(),a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block",activeTab:decodeURIComponent(Object(y.b)("name"))}})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.toClassify=function(){location.replace("/classify")},a.state={ispull:!1,display:"none",arr:[{basics:[]},{advanced:[]}],allClass:[],data:[],activeTab:decodeURIComponent(Object(y.b)("name")),isLoading:!0},a}return Object(m.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.getTabs(),this.getList()}},{key:"render",value:function(){var e=this,t=b.a.createElement("i",{className:"iconfont iconiconfront-69 pull-down"}),a=b.a.createElement("i",{className:"iconfont iconiconfront-71 pull-down"}),n=this.state.allClass.findIndex(function(t){return t.title===e.state.activeTab});return b.a.createElement("div",{className:"class-child"},b.a.createElement(C.a,{toHref:this.toClassify}),b.a.createElement(E.a,{isLoading:this.state.isLoading},b.a.createElement("div",{className:"class-content"},b.a.createElement(s.a,null),b.a.createElement("div",{onClick:this.pulldown.bind(this)},this.state.ispull?a:t),b.a.createElement(o.a,{tabs:this.state.allClass,animated:!1,page:n,onChange:function(t){return e.ontabclick(t)}},b.a.createElement("div",{className:"tabs"},b.a.createElement("ul",null,this.state.data&&this.state.data.length>0&&this.state.data.map(function(t,a){var n=b.a.createElement("div",{className:"info"},b.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),b.a.createElement("p",{className:"contact text-overflow-2"},t.desc),b.a.createElement("div",{className:"des"},!t.is_buy&&b.a.createElement("p",{className:"course-price"},b.a.createElement("span",{className:"new"},"\xa5",t.price1),b.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&b.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),i=b.a.createElement("div",null,0===t.bargain_num&&0!==t.groupon_num&&b.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u51cf",t.groupon_num,"\u5143"),0!==t.bargain_num&&0===t.groupon_num&&b.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_num,"\u5143"),t.is_aist&&b.a.createElement("span",{className:"return_cash"}));return b.a.createElement(g.i,{key:a,status:i,img:t.image_name,id:t.course_id,info:n,toDetail:e.toCourseDetail})})))),b.a.createElement(s.a,null)),b.a.createElement("div",{className:"mbc-box",style:{display:this.state.display}},this.state.arr.basics&&b.a.createElement("div",{className:"tabcontent"},b.a.createElement(N,{activeTab:this.state.activeTab,data:this.state.arr.basics.list,title:this.state.arr.basics.name,labelclick:this.labelclick}),b.a.createElement(N,{activeTab:this.state.activeTab,data:this.state.arr.advanced.list,title:this.state.arr.advanced.name,labelclick:this.labelclick})))))}}]),t}(v.Component))||n);function N(e){return b.a.createElement("div",{className:"class-course"},b.a.createElement("p",{className:"course-items-title"},e.title),b.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(t,a){return b.a.createElement("span",{className:e.activeTab===t.c_name?"active-label":"item-label",key:a,onClick:function(a){return e.labelclick(t)}},t.c_name)})))}t.default=_},583:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(3),o=(n=i)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var i={};if(t&&t.antLocale&&t.antLocale[a])i=t.antLocale[a];else{var c=n();i=c.default||c}var s=(0,o.default)({},i);e.locale&&(s=(0,o.default)({},s,e.locale),e.locale.lang&&(s.lang=(0,o.default)({},i.lang,e.locale.lang)));return s},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,a){"use strict";a(48),a(607)},607:function(e,t,a){},608:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(3)),i=b(a(34)),o=b(a(5)),c=b(a(12)),s=b(a(6)),l=b(a(13)),r=b(a(15)),u=v(a(0)),f=v(a(2)),d=b(a(153)),h=b(a(583)),p=a(588),m=a(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,l.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,o=this.props,c=o.prefixCls,s=o.showCancelButton,l=o.disabled,f=o.placeholder,m=o.className,v=o.style,b=o.maxLength,g=(0,p.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(610)}).cancelText,C=this.state,y=C.value,E=C.focus,w=(0,r.default)(c,m,(0,i.default)({},c+"-start",!!(E||y&&y.length>0))),_=(0,r.default)(c+"-clear",(0,i.default)({},c+"-clear-show",!!(E&&y&&y.length>0))),N=(0,r.default)(c+"-cancel",(e={},(0,i.default)(e,c+"-cancel-show",!!(s||E||y&&y.length>0)),(0,i.default)(e,c+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:w,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:c+"-input"},u.createElement("div",{className:c+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:c+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:c+"-synthetic-ph-icon"}),u.createElement("span",{className:c+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:c+"-value",value:y,disabled:l,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:b},(0,h.default)(this.props))),u.createElement(d.default,{activeClassName:c+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:_}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||g))}}]),t}(u.Component);t.default=g,g.defaultProps=m.defaultProps,g.contextTypes={antLocale:f.object},e.exports=t.default},609:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},610:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},706:function(e,t,a){"use strict";a(606);var n=a(608),i=a.n(n),o=a(7),c=a(8),s=a(11),l=a(9),r=a(10),u=a(0),f=a.n(u),d=(a(707),function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).goShop=function(){location.replace("/shopcart")},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return console.log(this.props.toHref),f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(i.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},707:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.27b2e6c3.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/classify/courselist.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Classify","connect","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10__","data","code","common","length","arr2","basics","advanced","arr3","forEach","item","index","list","push","title","c_name","id","c_id","setState","arr","allClass","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","catch","err","console","log","getList","getParam","isLoading","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","location","replace","state","_this3","bottom","react__WEBPACK_IMPORTED_MODULE_12___default","createElement","className","top","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_15__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_17__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","onClick","bind","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","animated","onChange","map","Info","course_id","course_title","desc","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_13__","key","img","image_name","toDetail","style","ClassCourse","name","Component","e","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"2TAaMA,SADLC,4BAEG,SAAAD,EAAYE,G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AAU,gBACX0J,EAAAzL,EAAA8B,cAAA,OAAKC,UAAU,eAENlE,KAAKJ,MAAM2E,QACZqJ,EAAAzL,EAAA8B,cAAA,KAAGC,UAAW,mCAAoCQ,QAAS1E,KAAK6N,OAAOlJ,KAAK3E,QAG5EA,KAAKJ,MAAM2E,QACXqJ,EAAAzL,EAAA8B,cAAA,KAAGC,UAAW,mCAAoCQ,QAAS1E,KAAKJ,MAAM2E,SAE1EqJ,EAAAzL,EAAA8B,cAAA6J,EAAA3L,EAAA,CACIqK,YAAY,2BACZE,WAAY,IACZhD,QAAS1J,KAAK+N,SAASpJ,KAAK3E,MAC5B6L,kBAAkB,IAEtB+B,EAAAzL,EAAA8B,cAAA,KAAGC,UAAW,+CAAgDQ,QAAS1E,KAAK0N,kBAnCxEvH,cA2CTsH","file":"static/js/CourseList.4a28c0e7.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace} from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http, getParam} from \"@/utils\"\nimport {Toast} from 'antd-mobile'\nimport {Link} from 'react-router-dom'\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n ispull: false,\n display: 'none',\n arr: [{basics: []}, {advanced: []}],\n allClass: [],\n data: [],\n activeTab: decodeURIComponent(getParam('name')),\n isLoading: true\n }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\n }\n\n // 获取tabs接口\n getTabs = () => {\n let data = 0\n http.get(`${API.home}/m/course/classify/${data}`)\n .then((res) => {\n const _this = this\n if (res.data.code === 200) {\n if (res.data.data.common.length > 0) {\n let arr = ['basics', 'advanced']\n let arr2 = [{basics: []}, {advanced: []}]\n let arr3 = []\n arr.forEach(function (item, index) {\n arr2[item] = res.data.data.common[index]\n res.data.data.common[index].list.forEach(function (item, index) {\n arr3.push({'title': item.c_name, 'id': item.c_id})\n })\n })\n _this.setState({\n arr: arr2,\n allClass: arr3\n })\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n .catch(err => {\n console.log(err)\n })\n }\n\n // 获取课程接口\n getList = () => {\n const _this = this\n http.get(`${API.home}/m/course/list/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n data: res.data.data,\n isLoading: false\n })\n }\n })\n }\n\n\n // 点击横向滚动tab查询\n ontabclick = (tab) => {\n this.props.history.push(`/courselist?id=${tab.id}&name=${tab.title}`)\n this.getList()\n this.setState({\n activeTab: decodeURIComponent(getParam('name'))\n });\n }\n\n // 上下展示\n pulldown = () => {\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block'\n }));\n }\n\n // 弹窗里面tab点击查询\n labelclick = (item) => {\n this.props.history.push(`/courselist?id=${item.c_id}&name=${item.c_name}`)\n this.getList()\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block',\n activeTab: decodeURIComponent(getParam('name'))\n }))\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n toClassify=()=>{\n location.replace('/classify');\n }\n\n render() {\n const bottom = (\n <i className={'iconfont iconiconfront-69 pull-down'}></i>\n )\n const top = (\n <i className={'iconfont iconiconfront-71 pull-down'}></i>\n )\n\n let page = this.state.allClass.findIndex((item) => item.title === this.state.activeTab)\n\n return (\n <div className='class-child'>\n <HeaderSearch toHref={this.toClassify}></HeaderSearch>\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n <div onClick={this.pulldown.bind(this)}>\n {this.state.ispull ? top : bottom}\n </div>\n <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n >\n <div className='tabs'>\n <ul>\n {this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.desc}</p>\n <div className='des'>\n {!item.is_buy && <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <span className=\"isbuy\">已购买</span>\n }\n </div>\n </div>\n )\n const status = (\n <div>\n {item.bargain_num === 0 && item.groupon_num !== 0 &&\n <p className='course-status'>拼团减{item.groupon_num}元</p>\n }\n {item.bargain_num !== 0 && item.groupon_num === 0 &&\n <p className='course-status'>砍价减{item.bargain_num}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n status={status}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n </div>\n </Tabs>\n <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search'\n }\n\n return() {\n window.location.href = '/'\n }\n\n goShop = () => {\n location.replace('/shopcart')\n }\n\n\n render() {\n {\n console.log(this.props.toHref);\n }\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i className={'iconfont iconiconfront-68 return'} onClick={this.return.bind(this)}></i>\n }\n {\n this.props.toHref &&\n <i className={'iconfont iconiconfront-68 return'} onClick={this.props.toHref}></i>\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i className={'iconfont icongouwuche-xianxing shopping-cart'} onClick={this.goShop}></i>\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/courselist.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Classify","connect","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_10__","data","code","common","length","arr2","basics","advanced","arr3","forEach","item","index","list","push","title","c_name","id","c_id","setState","arr","allClass","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","catch","err","console","log","getList","getParam","isLoading","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","location","replace","state","_this3","bottom","react__WEBPACK_IMPORTED_MODULE_12___default","createElement","className","top","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_15__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_17__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","onClick","bind","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","animated","onChange","map","Info","course_id","course_title","desc","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_13__","key","img","image_name","toDetail","style","ClassCourse","name","Component","e","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"2TAaMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAmBVQ,QAAU,WAENC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,uBAAAF,OADW,IAENG,KAAK,SAACC,GACH,IAAMC,EAAKd,OAAAe,EAAA,EAAAf,CAAAD,GACX,GAAsB,MAAlBc,EAAIG,KAAKC,MAC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WAAY,IACZhD,QAAS1J,KAAK+N,SAASpJ,KAAK3E,MAC5B6L,kBAAkB,IAEtB+B,EAAAzL,EAAA8B,cAAA,KAAGC,UAAW,+CAAgDQ,QAAS1E,KAAK0N,kBAnCxEvH,cA2CTsH","file":"static/js/CourseList.27b2e6c3.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace} from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http, getParam} from \"@/utils\"\nimport {Toast} from 'antd-mobile'\nimport {Link} from 'react-router-dom'\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n ispull: false,\n display: 'none',\n arr: [{basics: []}, {advanced: []}],\n allClass: [],\n data: [],\n activeTab: decodeURIComponent(getParam('name')),\n isLoading: true\n }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\n }\n\n // 获取tabs接口\n getTabs = () => {\n let data = 0\n http.get(`${API.home}/m/course/classify/${data}`)\n .then((res) => {\n const _this = this\n if (res.data.code === 200) {\n if (res.data.data.common.length > 0) {\n let arr = ['basics', 'advanced']\n let arr2 = [{basics: []}, {advanced: []}]\n let arr3 = []\n arr.forEach(function (item, index) {\n arr2[item] = res.data.data.common[index]\n res.data.data.common[index].list.forEach(function (item, index) {\n arr3.push({'title': item.c_name, 'id': item.c_id})\n })\n })\n _this.setState({\n arr: arr2,\n allClass: arr3\n })\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n .catch(err => {\n console.log(err)\n })\n }\n\n // 获取课程接口\n getList = () => {\n const _this = this\n http.get(`${API.home}/m/course/list/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n data: res.data.data,\n isLoading: false\n })\n }\n })\n }\n\n\n // 点击横向滚动tab查询\n ontabclick = (tab) => {\n this.props.history.push(`/courselist?id=${tab.id}&name=${tab.title}`)\n this.getList()\n this.setState({\n activeTab: decodeURIComponent(getParam('name'))\n });\n }\n\n // 上下展示\n pulldown = () => {\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block'\n }));\n }\n\n // 弹窗里面tab点击查询\n labelclick = (item) => {\n this.props.history.push(`/courselist?id=${item.c_id}&name=${item.c_name}`)\n this.getList()\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block',\n activeTab: decodeURIComponent(getParam('name'))\n }))\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n toClassify=()=>{\n location.replace('/classify');\n }\n\n render() {\n const bottom = (\n <i className={'iconfont iconiconfront-69 pull-down'}></i>\n )\n const top = (\n <i className={'iconfont iconiconfront-71 pull-down'}></i>\n )\n\n let page = this.state.allClass.findIndex((item) => item.title === this.state.activeTab)\n\n return (\n <div className='class-child'>\n <HeaderSearch toHref={this.toClassify}></HeaderSearch>\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n <div onClick={this.pulldown.bind(this)}>\n {this.state.ispull ? top : bottom}\n </div>\n <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n >\n <div className='tabs'>\n <ul>\n {this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.desc}</p>\n <div className='des'>\n {!item.is_buy && <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <span className=\"isbuy\">已购买</span>\n }\n </div>\n </div>\n )\n const status = (\n <div>\n {item.bargain_num === 0 && item.groupon_num !== 0 &&\n <p className='course-status'>拼团减{item.groupon_num}元</p>\n }\n {item.bargain_num !== 0 && item.groupon_num === 0 &&\n <p className='course-status'>砍价减{item.bargain_num}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n status={status}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n </div>\n </Tabs>\n <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search'\n }\n\n return() {\n window.location.href = '/'\n }\n\n goShop = () => {\n location.replace('/shopcart')\n }\n\n\n render() {\n {\n console.log(this.props.toHref);\n }\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i className={'iconfont iconiconfront-68 return'} onClick={this.return.bind(this)}></i>\n }\n {\n this.props.toHref &&\n <i className={'iconfont iconiconfront-68 return'} onClick={this.props.toHref}></i>\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i className={'iconfont icongouwuche-xianxing shopping-cart'} onClick={this.goShop}></i>\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1163:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(89);var n=t(26),c=t.n(n),l=(t(154),t(35)),s=t.n(l),i=(t(155),t(75)),r=t.n(i),m=t(7),o=t(8),d=t(10),p=t(9),E=t(11),u=t(0),N=t.n(u),v=(t(895),t(98)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},895:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.7411b8fa.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1163:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(89);var n=t(26),c=t.n(n),l=(t(154),t(35)),s=t.n(l),i=(t(155),t(75)),r=t.n(i),m=t(7),o=t(8),d=t(11),p=t(9),E=t(10),u=t(0),N=t.n(u),v=(t(895),t(98)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},895:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.7fd9d55d.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/scholarship/DrawDocument/DrawDocument.js"],"names":["DrawDocument","props","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","react__WEBPACK_IMPORTED_MODULE_11___default","a","createElement","className","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","onClick","history","goBack","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","size","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","align","style","height","_common_CallApp__WEBPACK_IMPORTED_MODULE_13__","text","Component"],"mappings":"6RAKqBA,cACjB,SAAAA,EAAYC,GAAQ,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAJ,GAAAE,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAF,GAAAO,KAAAH,KACVH,0EAGN,OACIO,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBACZH,EAAAC,EAAAC,cAAA,WACIF,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,CAAWE,UAAW,UAClBH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,iCAAkCE,QAAST,KAAKH,MAAMa,QAAQC,SAC5EP,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBAAhB,8BAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,WACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,0XACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,+KACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,qgBACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,iFAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,UACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAAQ,EAAAT,EAAA,CAAMU,QAAQ,UAAUC,MAAM,SAASC,MAAO,CAACC,OAAQ,SACnDd,EAAAC,EAAAC,cAAA,KAAGC,UAAW,OAAd,iGAEAH,EAAAC,EAAAC,cAACa,EAAA,EAAD,CAASZ,UAAU,MAAMa,KAAK,qCAlChBC","file":"static/js/DrawDocument.7411b8fa.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WhiteSpace, WingBlank } from 'antd-mobile';\nimport './DrawDocument.scss';\nimport OpenApp from '@/common/CallApp';\n\nexport default class DrawDocument extends Component {\n constructor(props) {\n super(props);\n }\n render() {\n return (\n <div className={'drawDocument'}>\n <div>\n <WingBlank className={'navbar'}>\n <i className={'iconfont iconiconfront-68 back'} onClick={this.props.history.goBack}></i>\n <div className={\"common-ft-15\"}>规则说明</div>\n </WingBlank>\n </div>\n\n <div className={'content'}>\n <WingBlank>\n <div className={'directions-div'}>分销规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>点击『分享赚钱』生成您的专属海报,把专属海报分享到微信、微博、QQ、知乎、贴吧等,他人通过您的海报购买后您可获得相应的佣金奖励。</p>\n <WhiteSpace size='lg'></WhiteSpace>\n <WhiteSpace size='lg'></WhiteSpace>\n <div className={'directions-div'}>提现规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>1. 已开始的直播课程,用户购买后佣金会实时转入您的账号余额;</p>\n <p className={'directions-p'}>2. 尚未开课的直播课程,用户购买后归属您的佣金户暂时存放在『待确认金额』中,直到该课程正式开课。如果用户没有退款,对应的订单金额会自动转入您的账号余额,否则该佣金会自动收回;</p>\n <p className={'directions-p'}>3. 余额中的金额可随时提现。</p>\n </WingBlank>\n </div>\n\n <div className={'bottom'}>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <p className={'tip'}>收支明细及待确认金额请前往App查看</p>\n {/* <div className={'app'}>在APP打开</div> */}\n <OpenApp className='app' text='在APP打开'/>\n </Flex>\n </WingBlank>\n </div>\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/scholarship/DrawDocument/DrawDocument.js"],"names":["DrawDocument","props","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","react__WEBPACK_IMPORTED_MODULE_11___default","a","createElement","className","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","onClick","history","goBack","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","size","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","align","style","height","_common_CallApp__WEBPACK_IMPORTED_MODULE_13__","text","Component"],"mappings":"6RAKqBA,cACjB,SAAAA,EAAYC,GAAQ,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAJ,GAAAE,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAF,GAAAO,KAAAH,KACVH,0EAGN,OACIO,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBACZH,EAAAC,EAAAC,cAAA,WACIF,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,CAAWE,UAAW,UAClBH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,iCAAkCE,QAAST,KAAKH,MAAMa,QAAQC,SAC5EP,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBAAhB,8BAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,WACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,0XACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,+KACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,qgBACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,iFAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,UACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAAQ,EAAAT,EAAA,CAAMU,QAAQ,UAAUC,MAAM,SAASC,MAAO,CAACC,OAAQ,SACnDd,EAAAC,EAAAC,cAAA,KAAGC,UAAW,OAAd,iGAEAH,EAAAC,EAAAC,cAACa,EAAA,EAAD,CAASZ,UAAU,MAAMa,KAAK,qCAlChBC","file":"static/js/DrawDocument.7fd9d55d.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WhiteSpace, WingBlank } from 'antd-mobile';\nimport './DrawDocument.scss';\nimport OpenApp from '@/common/CallApp';\n\nexport default class DrawDocument extends Component {\n constructor(props) {\n super(props);\n }\n render() {\n return (\n <div className={'drawDocument'}>\n <div>\n <WingBlank className={'navbar'}>\n <i className={'iconfont iconiconfront-68 back'} onClick={this.props.history.goBack}></i>\n <div className={\"common-ft-15\"}>规则说明</div>\n </WingBlank>\n </div>\n\n <div className={'content'}>\n <WingBlank>\n <div className={'directions-div'}>分销规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>点击『分享赚钱』生成您的专属海报,把专属海报分享到微信、微博、QQ、知乎、贴吧等,他人通过您的海报购买后您可获得相应的佣金奖励。</p>\n <WhiteSpace size='lg'></WhiteSpace>\n <WhiteSpace size='lg'></WhiteSpace>\n <div className={'directions-div'}>提现规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>1. 已开始的直播课程,用户购买后佣金会实时转入您的账号余额;</p>\n <p className={'directions-p'}>2. 尚未开课的直播课程,用户购买后归属您的佣金户暂时存放在『待确认金额』中,直到该课程正式开课。如果用户没有退款,对应的订单金额会自动转入您的账号余额,否则该佣金会自动收回;</p>\n <p className={'directions-p'}>3. 余额中的金额可随时提现。</p>\n </WingBlank>\n </div>\n\n <div className={'bottom'}>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <p className={'tip'}>收支明细及待确认金额请前往App查看</p>\n {/* <div className={'app'}>在APP打开</div> */}\n <OpenApp className='app' text='在APP打开'/>\n </Flex>\n </WingBlank>\n </div>\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1180:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),c=a(10),r=a(9),o=a(11),i=a(0),l=a.n(i),m=(a(902),a(15)),u=a.n(m),h=a(30),p=(a(903),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(h.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),w=a(4),d=a(904);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;w.c.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,c=t.analysis,r=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(h.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(h.h,{className:"category-tag"},r),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:c,isShowAnswer:!0}),l.a.createElement(p,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},902:function(e,t,a){},903:function(e,t,a){}}]);
//# sourceMappingURL=Examination.e7077e18.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1180:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),c=a(11),r=a(9),o=a(10),i=a(0),l=a.n(i),m=(a(902),a(15)),u=a.n(m),h=a(30),p=(a(903),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(h.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),w=a(4),d=a(904);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;w.c.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,c=t.analysis,r=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(h.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(h.h,{className:"category-tag"},r),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:c,isShowAnswer:!0}),l.a.createElement(p,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},902:function(e,t,a){},903:function(e,t,a){}}]);
//# sourceMappingURL=Examination.3f59b16f.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"6LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,QAAb,6DACAH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAASD,UAAU,SAAnB,sFCISE,cAEjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,WAAa,WACTP,EAAKQ,SAAS,CAACC,cAAeT,EAAKU,MAAMD,gBApBzCT,EAAKU,MAAQ,CACTD,cAAc,EACdE,aAAc,IAJHX,mFAQC,IAAAY,EAAAT,KAChBU,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,qBACKC,KAAK,SAAAC,GAAO,IAAAC,EACwBD,EAAzBE,KAAQA,EADPD,EACOC,KAChB,GAAY,MAFHD,EACaE,KACL,CACb,IAAMC,EAAUtB,SAAOuB,OAAOH,EAAM,CAACI,SAAUJ,EAAKI,SAASC,OAAQ,EAAGL,EAAKI,SAASE,MAAM,MAAO,KACnGf,EAAKJ,SAAS,CACVG,aAAcY,wCAUzB,IAAAK,EAMDzB,KAAKO,MANJmB,EAAAD,EAEDjB,aACImB,EAHHD,EAGGC,KAAMC,EAHTF,EAGSE,QAASC,EAHlBH,EAGkBG,QAASP,EAH3BI,EAG2BJ,SAAUQ,EAHr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AAlBlD,aACjC,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAWyD,IAAW,SAAU,CAACO,MAAOnD,KACzChB,EAAAC,EAAAC,cAAA,KAAGC,UAAU,UAAb,gBACC+C,EAAQjB,OAAO,GAAKiB,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"static/js/Examination.e7077e18.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"6LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,QAAb,6DACAH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAASD,UAAU,SAAnB,sFCISE,cAEjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,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YACvCd,EAAAC,EAAAC,cAAA,uCAAUF,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAMnCa,GAAgBhB,EAAAC,EAAAC,cAAC+C,EAAD,CAAQC,QAASlB,EAAUhB,cAAY,IAE3DhB,EAAAC,EAAAC,cAACiD,EAAD,cA3DyBC,iBAiEnCN,EAAcO,IAAMC,KAAK,SAAAC,GAA4B,IAA1BhB,EAA0BgB,EAA1BhB,QAASQ,EAAiBQ,EAAjBR,YACtC,OACI/C,EAAAC,EAAAC,cAAA,MAAIC,UAAU,WAENoC,EAAQiB,IAAI,SAACC,EAAMC,GAAP,OACR1D,EAAAC,EAAAC,cAAA,MAAIyD,IAAKD,EAAOvD,UAAWyD,IAAW,SAAU,CAACC,OAA0B,IAAhBJ,EAAKK,QAAgBf,KAC5E/C,EAAAC,EAAAC,cAAA,QAAMC,UAAU,YAAY4D,OAAOC,aAAa,GAAKN,IACpDD,EAAKQ,UAQxBhB,EAASI,IAAMC,KAAK,SAAAY,GAA6B,IAA3BhB,EAA2BgB,EAA3BhB,QAASlC,EAAkBkD,EAAlBlD,aACjC,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAWyD,IAAW,SAAU,CAACO,MAAOnD,KACzChB,EAAAC,EAAAC,cAAA,KAAGC,UAAU,UAAb,gBACC+C,EAAQjB,OAAO,GAAKiB,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"static/js/Examination.3f59b16f.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1169:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),s=a.n(n),i=a(7),c=a(8),o=a(10),l=a(9),r=a(11),u=a(0),m=a.n(u),d=(a(261),a(21)),h=a(4),p=a(30),v=a(33),f=a(17),b=a(71),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).toEditName=function(e){a.setState({isShow:!0,value:e})},a.cancle=function(){a.setState({isShow:!1})},a.handleChange=function(e){a.setState({value:e.target.value})},a.outLogin=function(){a.props.logout(),s.a.info("\u5df2\u9000\u51fa",2),a.props.history.push("/my")},a.submit=function(){if(a.state.value.length>12)s.a.info("\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26",2);else if(0===a.state.value.length)s.a.info("\u8bf7\u8f93\u5165\u6635\u79f0",2);else{var e={user_name:a.state.value};h.c.post("".concat(API.home,"/m/user_info/update"),e).then(function(e){200===e.data.code?(a.setState({isShow:!1}),a.props.updateUser({data:{username:a.state.value}}),s.a.info("\u4fee\u6539\u6210\u529f",2)):4008===e.data.code?a.setState({isShow:!1}):s.a.info(e.data.msg,2)})}},a.state={isShow:!1,value:""},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props.user,t=e&&e.data&&e.data.username,a=e&&e.data&&e.data.avatar;return m.a.createElement("div",{className:"edit-name"},m.a.createElement(p.e,{title:"\u8d26\u53f7",arrow:!0,cart:!1}),m.a.createElement("div",{className:"my-mess"},m.a.createElement("img",{src:a,alt:""}),m.a.createElement("span",{className:"name"},t),m.a.createElement("span",{onClick:this.toEditName.bind(this,t),className:"edit"},"\u7f16\u8f91")),m.a.createElement("div",{className:"out-login",onClick:this.outLogin},"\u9000\u51fa\u767b\u5f55"),this.state.isShow&&m.a.createElement("div",{className:"edit-mbc"},m.a.createElement("div",{className:"edit-content"},m.a.createElement("div",{className:"edit-title"},"\u4fee\u6539\u6635\u79f0"),m.a.createElement("input",{type:"text",placeholder:"\u8bf7\u8f93\u5165\u6635\u79f0\uff08\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26\uff09",value:this.state.value,onChange:this.handleChange.bind(this)}),m.a.createElement("div",{className:"edit-btn"},m.a.createElement("button",{className:"cancle",onClick:this.cancle},"\u53d6\u6d88"),m.a.createElement("button",{className:"submit",onClick:this.submit},"\u786e\u8ba4")))))}}]),t}(u.PureComponent);t.default=Object(f.d)(Object(d.b)(function(e){return{user:e.user}},{logout:v.e,updateUser:v.i}),b.a)(E)}}]);
//# sourceMappingURL=MyEdit.e8f8cc5d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1169:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),s=a.n(n),i=a(7),c=a(8),o=a(11),l=a(9),r=a(10),u=a(0),m=a.n(u),d=(a(261),a(21)),h=a(4),p=a(30),v=a(33),f=a(17),b=a(71),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).toEditName=function(e){a.setState({isShow:!0,value:e})},a.cancle=function(){a.setState({isShow:!1})},a.handleChange=function(e){a.setState({value:e.target.value})},a.outLogin=function(){a.props.logout(),s.a.info("\u5df2\u9000\u51fa",2),a.props.history.push("/my")},a.submit=function(){if(a.state.value.length>12)s.a.info("\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26",2);else if(0===a.state.value.length)s.a.info("\u8bf7\u8f93\u5165\u6635\u79f0",2);else{var e={user_name:a.state.value};h.c.post("".concat(API.home,"/m/user_info/update"),e).then(function(e){200===e.data.code?(a.setState({isShow:!1}),a.props.updateUser({data:{username:a.state.value}}),s.a.info("\u4fee\u6539\u6210\u529f",2)):4008===e.data.code?a.setState({isShow:!1}):s.a.info(e.data.msg,2)})}},a.state={isShow:!1,value:""},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props.user,t=e&&e.data&&e.data.username,a=e&&e.data&&e.data.avatar;return m.a.createElement("div",{className:"edit-name"},m.a.createElement(p.e,{title:"\u8d26\u53f7",arrow:!0,cart:!1}),m.a.createElement("div",{className:"my-mess"},m.a.createElement("img",{src:a,alt:""}),m.a.createElement("span",{className:"name"},t),m.a.createElement("span",{onClick:this.toEditName.bind(this,t),className:"edit"},"\u7f16\u8f91")),m.a.createElement("div",{className:"out-login",onClick:this.outLogin},"\u9000\u51fa\u767b\u5f55"),this.state.isShow&&m.a.createElement("div",{className:"edit-mbc"},m.a.createElement("div",{className:"edit-content"},m.a.createElement("div",{className:"edit-title"},"\u4fee\u6539\u6635\u79f0"),m.a.createElement("input",{type:"text",placeholder:"\u8bf7\u8f93\u5165\u6635\u79f0\uff08\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26\uff09",value:this.state.value,onChange:this.handleChange.bind(this)}),m.a.createElement("div",{className:"edit-btn"},m.a.createElement("button",{className:"cancle",onClick:this.cancle},"\u53d6\u6d88"),m.a.createElement("button",{className:"submit",onClick:this.submit},"\u786e\u8ba4")))))}}]),t}(u.PureComponent);t.default=Object(f.d)(Object(d.b)(function(e){return{user:e.user}},{logout:v.e,updateUser:v.i}),b.a)(E)}}]);
//# sourceMappingURL=MyEdit.539ac99a.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/my/edit.js"],"names":["MyEdut","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toEditName","name","setState","isShow","value","cancle","handleChange","e","target","outLogin","logout","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","history","push","submit","state","length","data","user_name","http","post","concat","API","home","then","res","code","updateUser","username","msg","user","avatar","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","src","alt","onClick","bind","type","placeholder","onChange","PureComponent","compose","connect","WithFullSize"],"mappings":"0OAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQVQ,WAAa,SAACC,GACVR,EAAKS,SAAS,CACVC,QAAQ,EACRC,MAAOH,KAZIR,EAgBnBY,OAAS,WACLZ,EAAKS,SAAS,CACVC,QAAQ,KAlBGV,EAuBnBa,aAAe,SAACC,GACZd,EAAKS,SAAS,CACVE,MAAOG,EAAEC,OAAOJ,SAzBLX,EA6BnBgB,SAAW,WACPhB,EAAKD,MAAMkB,SACXC,EAAAC,EAAMC,KAAK,qBAAO,GAClBpB,EAAKD,MAAMsB,QAAQC,KAAK,QAhCTtB,EAoCnBuB,OAAS,WACL,GAAIvB,EAAKwB,MAAMb,MAAMc,OAAS,GAC1BP,EAAAC,EAAMC,KAAK,yCAAY,QACpB,GAAgC,IAA5BpB,EAAKwB,MAAMb,MAAMc,OACxBP,EAAAC,EAAMC,KAAK,iCAAS,OACjB,CACH,IAAIM,EAAO,CACPC,UAAW3B,EAAKwB,MAAMb,OAE1BiB,IAAKC,KAAL,GAAAC,OAAaC,IAAIC,KAAjB,uBAA4CN,GAAMO,KAAK,SAACC,GAC9B,MAAlBA,EAAIR,KAAKS,MACTnC,EAAKS,SAAS,CACVC,QAAQ,IAEZV,EAAKD,MAAMqC,WAAW,CAACV,KAAM,CAACW,SAAUrC,EAAKwB,MAAMb,SACnDO,EAAAC,EAAMC,KAAK,2BA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/C,KAAKoB,QAAzC,2BA7FXgC,iBAwGNC,sBACXC,YACI,SAAAjC,GAAK,MAAK,CAACe,KAAMf,EAAMe,OACvB,CAACtB,WAAQmB,iBAEbsB,IALWF,CAMb1D","file":"static/js/MyEdit.e8f8cc5d.chunk.js","sourcesContent":["import React, {PureComponent} from 'react'\nimport './index.scss'\nimport {connect} from \"react-redux\"\nimport {Toast} from 'antd-mobile'\nimport {http} from \"@/utils\"\nimport {HeaderBar} from \"@/common\"\nimport {logout, updateUser} from '@/store/userAction'\nimport {compose} from \"redux\";\nimport {WithFullSize} from '@/HOCs'\n\nclass MyEdut extends PureComponent {\n constructor(props) {\n super(props)\n this.state = {\n isShow: false,\n value: ''\n }\n }\n\n // 点击编辑\n toEditName = (name) => {\n this.setState({\n isShow: true,\n value: name\n })\n }\n // 取消\n cancle = () => {\n this.setState({\n isShow: false\n })\n }\n\n // 获取input的值\n handleChange = (e) => {\n this.setState({\n value: e.target.value\n })\n }\n // 退出登录\n outLogin = () => {\n this.props.logout()\n Toast.info('已退出', 2)\n this.props.history.push('/my')\n }\n\n // 确定修改\n submit = () => {\n if (this.state.value.length > 12) {\n Toast.info('不超过12个字符', 2)\n } else if (this.state.value.length === 0) {\n Toast.info('请输入昵称', 2)\n } else {\n let data = {\n user_name: this.state.value\n }\n http.post(`${API.home}/m/user_info/update`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShow: false\n })\n this.props.updateUser({data: {username: this.state.value}})\n Toast.info('修改成功', 2)\n } else if (res.data.code === 4008) {\n this.setState({\n isShow: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n }\n\n render() {\n const {user} = this.props\n const username = user && user.data && user.data.username\n const avatar = user && user.data && user.data.avatar\n return (\n <div className=\"edit-name\">\n <HeaderBar title='账号' arrow={true} cart={false}></HeaderBar>\n\n <div className='my-mess'>\n <img src={avatar} alt=\"\"/>\n <span className=\"name\">{username}</span>\n <span onClick={this.toEditName.bind(this, username)} className=\"edit\">编辑</span>\n </div>\n <div className=\"out-login\" onClick={this.outLogin}>\n 退出登录\n </div>\n\n {\n this.state.isShow &&\n <div className=\"edit-mbc\">\n <div className=\"edit-content\">\n <div className=\"edit-title\">修改昵称</div>\n <input type=\"text\" placeholder='请输入昵称(不超过12个字符)'\n value={this.state.value}\n onChange={this.handleChange.bind(this)}\n />\n <div className=\"edit-btn\">\n <button className='cancle' onClick={this.cancle}>取消</button>\n <button className='submit' onClick={this.submit}>确认</button>\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {logout, updateUser}\n ),\n WithFullSize\n)(MyEdut)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/my/edit.js"],"names":["MyEdut","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toEditName","name","setState","isShow","value","cancle","handleChange","e","target","outLogin","logout","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","history","push","submit","state","length","data","user_name","http","post","concat","API","home","then","res","code","updateUser","username","msg","user","avatar","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","src","alt","onClick","bind","type","placeholder","onChange","PureComponent","compose","connect","WithFullSize"],"mappings":"0OAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KA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ACXF,EAAAtB,EAAAuB,cAACE,EAAA,EAAD,CAAWC,MAAM,eAAKC,OAAO,EAAMC,MAAM,IAEzCN,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,WACXF,EAAAtB,EAAAuB,cAAA,OAAKM,IAAKR,EAAQS,IAAI,KACtBR,EAAAtB,EAAAuB,cAAA,QAAMC,UAAU,QAAQN,GACxBI,EAAAtB,EAAAuB,cAAA,QAAMQ,QAAS/C,KAAKI,WAAW4C,KAAKhD,KAAMkC,GAAWM,UAAU,QAA/D,iBAEJF,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,YAAYO,QAAS/C,KAAKa,UAAzC,4BAKIb,KAAKqB,MAAMd,QACX+B,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,YACXF,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,gBACXF,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,cAAf,4BACAF,EAAAtB,EAAAuB,cAAA,SAAOU,KAAK,OAAOC,YAAY,mFACxB1C,MAAOR,KAAKqB,MAAMb,MAClB2C,SAAUnD,KAAKU,aAAasC,KAAKhD,QAExCsC,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,YACXF,EAAAtB,EAAAuB,cAAA,UAAQC,UAAU,SAASO,QAAS/C,KAAKS,QAAzC,gBACA6B,EAAAtB,EAAAuB,cAAA,UAAQC,UAAU,SAASO,QAAS/C,KAAKoB,QAAzC,2BA7FXgC,iBAwGNC,sBACXC,YACI,SAAAjC,GAAK,MAAK,CAACe,KAAMf,EAAMe,OACvB,CAACtB,WAAQmB,iBAEbsB,IALWF,CAMb1D","file":"static/js/MyEdit.539ac99a.chunk.js","sourcesContent":["import React, {PureComponent} from 'react'\nimport './index.scss'\nimport {connect} from \"react-redux\"\nimport {Toast} from 'antd-mobile'\nimport {http} from \"@/utils\"\nimport {HeaderBar} from \"@/common\"\nimport {logout, updateUser} from '@/store/userAction'\nimport {compose} from \"redux\";\nimport {WithFullSize} from '@/HOCs'\n\nclass MyEdut extends PureComponent {\n constructor(props) {\n super(props)\n this.state = {\n isShow: false,\n value: ''\n }\n }\n\n // 点击编辑\n toEditName = (name) => {\n this.setState({\n isShow: true,\n value: name\n })\n }\n // 取消\n cancle = () => {\n this.setState({\n isShow: false\n })\n }\n\n // 获取input的值\n handleChange = (e) => {\n this.setState({\n value: e.target.value\n })\n }\n // 退出登录\n outLogin = () => {\n this.props.logout()\n Toast.info('已退出', 2)\n this.props.history.push('/my')\n }\n\n // 确定修改\n submit = () => {\n if (this.state.value.length > 12) {\n Toast.info('不超过12个字符', 2)\n } else if (this.state.value.length === 0) {\n Toast.info('请输入昵称', 2)\n } else {\n let data = {\n user_name: this.state.value\n }\n http.post(`${API.home}/m/user_info/update`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShow: false\n })\n this.props.updateUser({data: {username: this.state.value}})\n Toast.info('修改成功', 2)\n } else if (res.data.code === 4008) {\n this.setState({\n isShow: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n }\n\n render() {\n const {user} = this.props\n const username = user && user.data && user.data.username\n const avatar = user && user.data && user.data.avatar\n return (\n <div className=\"edit-name\">\n <HeaderBar title='账号' arrow={true} cart={false}></HeaderBar>\n\n <div className='my-mess'>\n <img src={avatar} alt=\"\"/>\n <span className=\"name\">{username}</span>\n <span onClick={this.toEditName.bind(this, username)} className=\"edit\">编辑</span>\n </div>\n <div className=\"out-login\" onClick={this.outLogin}>\n 退出登录\n </div>\n\n {\n this.state.isShow &&\n <div className=\"edit-mbc\">\n <div className=\"edit-content\">\n <div className=\"edit-title\">修改昵称</div>\n <input type=\"text\" placeholder='请输入昵称(不超过12个字符)'\n value={this.state.value}\n onChange={this.handleChange.bind(this)}\n />\n <div className=\"edit-btn\">\n <button className='cancle' onClick={this.cancle}>取消</button>\n <button className='submit' onClick={this.submit}>确认</button>\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {logout, updateUser}\n ),\n WithFullSize\n)(MyEdut)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1149:function(e,t,a){},1167:function(e,t,a){"use strict";a.r(t);a(155);var o,r=a(75),c=a.n(r),n=a(23),s=(a(44),a(14)),i=a.n(s),l=a(7),d=a(8),p=a(10),m=a(9),u=a(11),f=(a(89),a(26)),h=a.n(f),b=(a(115),a(46)),g=a.n(b),E=a(0),v=a.n(E),y=a(30),x=a(18),N=a(4),O=a(40),j=a(21),S=(a(63),a(1149),g.a.Item);function w(e){console.log(e);var t=e.list;return v.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var o=t.course_id,r=t.image_name,c=t.price1,n=t.price0,s=t.simpledescription,i=t.course_title,l=t.coupon_num,d=t.coupon_desc,p=v.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(p=v.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var m=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(o)}},i),v.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},s),v.a.createElement("p",{className:"order-des"},p,v.a.createElement("span",{className:"order-price"},"\xa5",n)));return v.a.createElement(y.g,Object.assign({},t,{src:r,id:o,key:a,info:m,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?v.a.createElement("div",{className:"order-prefer"},v.a.createElement(g.a,{key:a},v.a.createElement(S,{arrow:"horizontal",onClick:function(){}},v.a.createElement(x.b,{to:{pathname:"/coupons",search:"?id=".concat(o),state:{from:"/order"}}},v.a.createElement(h.a,{justify:"between"},v.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),v.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},d||(0===l?"\u65e0":"".concat(l,"\u5f20\u53ef\u7528")))))))):null)}))}var _=Object(j.b)()(o=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(p.a)(this,Object(m.a)(t).call(this,e))).submitOrder=function(){a.state.total;if(0!==a.state.orderList.length){a.state.perfect||i.a.info("\u8bf7\u5b8c\u5584\u62a5\u540d\u4fe1\u606f\uff01");var e=a.props.location.state,t=void 0===e?{}:e;if(1===t.group){var o=t.pdd_order_id?{course_id:Object(N.b)("id"),ischeck:a.state.useBalance,pdd_order_id:t.pdd_order_id}:{course_id:Object(N.b)("id"),ischeck:a.state.useBalance};N.c.post("".concat(API["base-api"],"/pdd/m"),o).then(function(e){console.log(e),200===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))):i.a.info(e.data.msg,2)})}else{var r="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(r+="&type=1"),N.c.get(r).then(function(e){0===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.is_free?a.props.history.replace("/payorder?oid=".concat(e.data.data.order_id)):a.props.history.replace("/purchased")):i.a.info(e.data.msg,2)})}}else i.a.info("\u6ca1\u6709\u8981\u63d0\u4ea4\u7684\u8ba2\u5355\uff01")},a.useBalance=function(){var e=a.state.useBalance;a.setState({useBalance:!e}),e?sessionStorage.removeItem("orderUseCacheObj"):(a.cacheObj=Object(n.a)({},a.state),sessionStorage.setItem("orderUseCacheObj",JSON.stringify(a.state))),a.computedMoney(e)},a.computedMoney=function(e){var t=parseFloat(a.cacheObj.total),o=parseFloat(a.cacheObj.user_account),r=a.state.discount;e?a.setState({offset:a.cacheObj.offset,total:a.cacheObj.total,discount:a.cacheObj.discount}):t>o?a.setState({offset:o.toFixed(2),total:(t-o).toFixed(2),discount:(o+parseFloat(r)).toFixed(2)}):a.setState({offset:t.toFixed(2),total:0,discount:(t+parseFloat(r)).toFixed(2)})},a.computedMoneyByCache=function(){var e=parseFloat(a.cacheObj.total),t=parseFloat(a.cacheObj.user_account),o=parseFloat(a.cacheObj.discount);e>t?a.setState({offset:t.toFixed(2),total:(e-t).toFixed(2),discount:(o+t).toFixed(2)}):a.setState({offset:e.toFixed(2),total:0,discount:e.toFixed(2)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.publicGetData=function(e){var t=e.course,o=e.total,r=e.user_account,c=e.user_info,n=e.discount;a.props.location.state&&1===a.props.location.state.group&&(console.log(a.state),o=a.state.groupPrice),a.cacheObj={perfect:c,orderList:t,user_account:r,total:o,discount:n},a.setState({perfect:c,orderList:t,user_account:r,total:o,discount:n})},a.publicLocalStorage=function(){"PUSH"===a.props.history.action?sessionStorage.removeItem("orderUseCacheObj"):null!==sessionStorage.getItem("orderUseCacheObj")&&(a.setState({useBalance:!0}),a.computedMoneyByCache())},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={groupPrice:"",perfect:a.props.location.state,user_account:0,total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0},a}return Object(u.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){var e=this;console.log(this.props.location.state),console.log(0),this.props.location.state&&1===this.props.location.state.type?N.c.get("".concat(API["base-api"],"/m/order/preorder?type=1")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):!this.props.location.state||1!==this.props.location.state.simple&&1!==this.props.location.state.bargain?this.props.location.state&&1===this.props.location.state.group?Promise.all([N.c.get("".concat(API.home,"/m/course/detail/").concat(Object(N.b)("id"))),N.c.get("".concat(API["base-api"],"/m/order/preorder"))]).then(function(t){var a=t[0],o=t[1];console.log(a.data),console.log(o.data);var r={};200===o.data.errno?(r=Object.assign({},o.data.data,{course:[]}),200===a.data.code?(r.course.push(a.data.data.course_info),e.setState({groupPrice:a.data.data.course_info.pdd_group_info.price}),e.publicGetData(r),e.publicLocalStorage()):i.a.info(a.data.msg,2)):i.a.info(o.data.msg,2)}):N.c.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){console.log("\u4e3a\u4e86\u9a8c\u8bc1\u4ec0\u4e48\u6761\u4ef6\u4e0b\u4f1a\u8d70\u8fd9\u6bb5\u4ee3\u7801"),200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):(console.log(1),N.c.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}))}},{key:"render",value:function(){var e=this.state,t=e.perfect,a=e.orderList,o=e.user_account,r=e.total,s=e.discount,i=e.useBalance,l=e.info,d=e.offset,p=e.groupPrice;return v.a.createElement("div",{className:"order-wrapper"},v.a.createElement(h.a,null,v.a.createElement(h.a.Item,null,v.a.createElement(y.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),!this.state.perfect&&v.a.createElement(x.b,{to:{pathname:"/orderinfo",state:{type:this.props.location.state?this.props.location.state.type:null,id:Object(N.b)("id")}},className:"order-information"},v.a.createElement("i",{className:"iconfont iconiconfront-6 order-addsize"}),v.a.createElement("div",{className:"order-infotext"},"\u5b8c\u5584\u62a5\u540d\u4fe1\u606f"),v.a.createElement("i",{className:"iconfont iconiconfront-70 order-next"})),this.state.perfect&&v.a.createElement("div",{className:"order-information2"},v.a.createElement(c.a,null,v.a.createElement(x.b,{to:{pathname:"/orderinfo",state:Object(n.a)({},this.state.perfect,this.props.location.state,{id:Object(N.b)("id")})}},v.a.createElement(h.a,{align:"center",justify:"between",style:{height:"80px"}},v.a.createElement("i",{className:"iconfont iconiconfront-20 user-icon"}),v.a.createElement(h.a,{direction:"column",justify:"between",align:"start",className:"order-cell"},v.a.createElement("div",{className:"name"},"\u59d3\u540d\uff1a".concat(t.real_name)),v.a.createElement("div",null,"\u7535\u8bdd\uff1a".concat(t.cellphone))),v.a.createElement(h.a,{align:"start",className:"order-cell"},v.a.createElement("div",null,"QQ\uff1a".concat(t.qq))))))),v.a.createElement("div",{className:"order-list"},v.a.createElement(w,{list:a,compute:this.computedMoney,courseId:Object(N.b)("id"),locationState:this.props.location.state,groupPrice:p,toDetail:this.toCourseDetail})),v.a.createElement("div",{className:"order-balance"},v.a.createElement(g.a,null,v.a.createElement(S,{className:"order-prefer-text"},v.a.createElement(h.a,{justify:"between"},v.a.createElement(h.a,{align:"center"},v.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),v.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",v.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),v.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),v.a.createElement(h.a,null,i?v.a.createElement(v.a.Fragment,null,v.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(d)),v.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:Object(O.throttle)(this.useBalance,600)})):v.a.createElement("i",{className:"circle-icon",onClick:Object(O.throttle)(this.useBalance,600)})))))),v.a.createElement("div",{className:"order-bar"},v.a.createElement("div",{className:"order-course"},v.a.createElement("span",{className:"order-course-text"},"".concat(a.length,"\u95e8\u8bfe\u7a0b"))),v.a.createElement("div",{className:"order-bar-text"},v.a.createElement("div",{className:"order-amount"},v.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),v.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(r))),v.a.createElement("div",{className:"order-preprice"},v.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),v.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(s)))),t?v.a.createElement("button",{type:"button",className:"order-button has-info"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355")):v.a.createElement("button",{type:"button",className:"order-button"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355"))))),l?v.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},v.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},v.a.createElement(h.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},v.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),v.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),v.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),t}(E.Component))||o;t.default=_}}]);
//# sourceMappingURL=Order.82ed0164.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1149:function(e,t,a){},1167:function(e,t,a){"use strict";a.r(t);a(155);var o,r=a(75),c=a.n(r),n=a(23),s=(a(44),a(14)),i=a.n(s),l=a(7),d=a(8),p=a(11),m=a(9),u=a(10),f=(a(89),a(26)),h=a.n(f),b=(a(115),a(46)),g=a.n(b),E=a(0),v=a.n(E),y=a(30),x=a(18),N=a(4),O=a(40),j=a(21),S=(a(63),a(1149),g.a.Item);function w(e){console.log(e);var t=e.list;return v.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var o=t.course_id,r=t.image_name,c=t.price1,n=t.price0,s=t.simpledescription,i=t.course_title,l=t.coupon_num,d=t.coupon_desc,p=v.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(p=v.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var m=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(o)}},i),v.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},s),v.a.createElement("p",{className:"order-des"},p,v.a.createElement("span",{className:"order-price"},"\xa5",n)));return v.a.createElement(y.g,Object.assign({},t,{src:r,id:o,key:a,info:m,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?v.a.createElement("div",{className:"order-prefer"},v.a.createElement(g.a,{key:a},v.a.createElement(S,{arrow:"horizontal",onClick:function(){}},v.a.createElement(x.b,{to:{pathname:"/coupons",search:"?id=".concat(o),state:{from:"/order"}}},v.a.createElement(h.a,{justify:"between"},v.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),v.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},d||(0===l?"\u65e0":"".concat(l,"\u5f20\u53ef\u7528")))))))):null)}))}var _=Object(j.b)()(o=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(p.a)(this,Object(m.a)(t).call(this,e))).submitOrder=function(){a.state.total;if(0!==a.state.orderList.length){a.state.perfect||i.a.info("\u8bf7\u5b8c\u5584\u62a5\u540d\u4fe1\u606f\uff01");var e=a.props.location.state,t=void 0===e?{}:e;if(1===t.group){var o=t.pdd_order_id?{course_id:Object(N.b)("id"),ischeck:a.state.useBalance,pdd_order_id:t.pdd_order_id}:{course_id:Object(N.b)("id"),ischeck:a.state.useBalance};N.c.post("".concat(API["base-api"],"/pdd/m"),o).then(function(e){console.log(e),200===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))):i.a.info(e.data.msg,2)})}else{var r="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(r+="&type=1"),N.c.get(r).then(function(e){0===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.is_free?a.props.history.replace("/payorder?oid=".concat(e.data.data.order_id)):a.props.history.replace("/purchased")):i.a.info(e.data.msg,2)})}}else i.a.info("\u6ca1\u6709\u8981\u63d0\u4ea4\u7684\u8ba2\u5355\uff01")},a.useBalance=function(){var e=a.state.useBalance;a.setState({useBalance:!e}),e?sessionStorage.removeItem("orderUseCacheObj"):(a.cacheObj=Object(n.a)({},a.state),sessionStorage.setItem("orderUseCacheObj",JSON.stringify(a.state))),a.computedMoney(e)},a.computedMoney=function(e){var t=parseFloat(a.cacheObj.total),o=parseFloat(a.cacheObj.user_account),r=a.state.discount;e?a.setState({offset:a.cacheObj.offset,total:a.cacheObj.total,discount:a.cacheObj.discount}):t>o?a.setState({offset:o.toFixed(2),total:(t-o).toFixed(2),discount:(o+parseFloat(r)).toFixed(2)}):a.setState({offset:t.toFixed(2),total:0,discount:(t+parseFloat(r)).toFixed(2)})},a.computedMoneyByCache=function(){var e=parseFloat(a.cacheObj.total),t=parseFloat(a.cacheObj.user_account),o=parseFloat(a.cacheObj.discount);e>t?a.setState({offset:t.toFixed(2),total:(e-t).toFixed(2),discount:(o+t).toFixed(2)}):a.setState({offset:e.toFixed(2),total:0,discount:e.toFixed(2)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.publicGetData=function(e){var t=e.course,o=e.total,r=e.user_account,c=e.user_info,n=e.discount;a.props.location.state&&1===a.props.location.state.group&&(console.log(a.state),o=a.state.groupPrice),a.cacheObj={perfect:c,orderList:t,user_account:r,total:o,discount:n},a.setState({perfect:c,orderList:t,user_account:r,total:o,discount:n})},a.publicLocalStorage=function(){"PUSH"===a.props.history.action?sessionStorage.removeItem("orderUseCacheObj"):null!==sessionStorage.getItem("orderUseCacheObj")&&(a.setState({useBalance:!0}),a.computedMoneyByCache())},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={groupPrice:"",perfect:a.props.location.state,user_account:0,total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0},a}return Object(u.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){var e=this;console.log(this.props.location.state),console.log(0),this.props.location.state&&1===this.props.location.state.type?N.c.get("".concat(API["base-api"],"/m/order/preorder?type=1")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):!this.props.location.state||1!==this.props.location.state.simple&&1!==this.props.location.state.bargain?this.props.location.state&&1===this.props.location.state.group?Promise.all([N.c.get("".concat(API.home,"/m/course/detail/").concat(Object(N.b)("id"))),N.c.get("".concat(API["base-api"],"/m/order/preorder"))]).then(function(t){var a=t[0],o=t[1];console.log(a.data),console.log(o.data);var r={};200===o.data.errno?(r=Object.assign({},o.data.data,{course:[]}),200===a.data.code?(r.course.push(a.data.data.course_info),e.setState({groupPrice:a.data.data.course_info.pdd_group_info.price}),e.publicGetData(r),e.publicLocalStorage()):i.a.info(a.data.msg,2)):i.a.info(o.data.msg,2)}):N.c.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){console.log("\u4e3a\u4e86\u9a8c\u8bc1\u4ec0\u4e48\u6761\u4ef6\u4e0b\u4f1a\u8d70\u8fd9\u6bb5\u4ee3\u7801"),200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):(console.log(1),N.c.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}))}},{key:"render",value:function(){var e=this.state,t=e.perfect,a=e.orderList,o=e.user_account,r=e.total,s=e.discount,i=e.useBalance,l=e.info,d=e.offset,p=e.groupPrice;return v.a.createElement("div",{className:"order-wrapper"},v.a.createElement(h.a,null,v.a.createElement(h.a.Item,null,v.a.createElement(y.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),!this.state.perfect&&v.a.createElement(x.b,{to:{pathname:"/orderinfo",state:{type:this.props.location.state?this.props.location.state.type:null,id:Object(N.b)("id")}},className:"order-information"},v.a.createElement("i",{className:"iconfont iconiconfront-6 order-addsize"}),v.a.createElement("div",{className:"order-infotext"},"\u5b8c\u5584\u62a5\u540d\u4fe1\u606f"),v.a.createElement("i",{className:"iconfont iconiconfront-70 order-next"})),this.state.perfect&&v.a.createElement("div",{className:"order-information2"},v.a.createElement(c.a,null,v.a.createElement(x.b,{to:{pathname:"/orderinfo",state:Object(n.a)({},this.state.perfect,this.props.location.state,{id:Object(N.b)("id")})}},v.a.createElement(h.a,{align:"center",justify:"between",style:{height:"80px"}},v.a.createElement("i",{className:"iconfont iconiconfront-20 user-icon"}),v.a.createElement(h.a,{direction:"column",justify:"between",align:"start",className:"order-cell"},v.a.createElement("div",{className:"name"},"\u59d3\u540d\uff1a".concat(t.real_name)),v.a.createElement("div",null,"\u7535\u8bdd\uff1a".concat(t.cellphone))),v.a.createElement(h.a,{align:"start",className:"order-cell"},v.a.createElement("div",null,"QQ\uff1a".concat(t.qq))))))),v.a.createElement("div",{className:"order-list"},v.a.createElement(w,{list:a,compute:this.computedMoney,courseId:Object(N.b)("id"),locationState:this.props.location.state,groupPrice:p,toDetail:this.toCourseDetail})),v.a.createElement("div",{className:"order-balance"},v.a.createElement(g.a,null,v.a.createElement(S,{className:"order-prefer-text"},v.a.createElement(h.a,{justify:"between"},v.a.createElement(h.a,{align:"center"},v.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),v.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",v.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),v.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),v.a.createElement(h.a,null,i?v.a.createElement(v.a.Fragment,null,v.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(d)),v.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:Object(O.throttle)(this.useBalance,600)})):v.a.createElement("i",{className:"circle-icon",onClick:Object(O.throttle)(this.useBalance,600)})))))),v.a.createElement("div",{className:"order-bar"},v.a.createElement("div",{className:"order-course"},v.a.createElement("span",{className:"order-course-text"},"".concat(a.length,"\u95e8\u8bfe\u7a0b"))),v.a.createElement("div",{className:"order-bar-text"},v.a.createElement("div",{className:"order-amount"},v.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),v.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(r))),v.a.createElement("div",{className:"order-preprice"},v.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),v.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(s)))),t?v.a.createElement("button",{type:"button",className:"order-button has-info"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355")):v.a.createElement("button",{type:"button",className:"order-button"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355"))))),l?v.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},v.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},v.a.createElement(h.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},v.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),v.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),v.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),t}(E.Component))||o;t.default=_}}]);
//# sourceMappingURL=Order.a579d31b.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_13___default","a","OrderList","props","console","log","listData","list","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","map","item","index","is_coupon","course_id","image_name","price1","price0","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_15__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_16__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_11___default","justify","color","fontSize","Order","connect","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","_this$props$location$","location","params","pdd_order_id","getParam","ischeck","useBalance","http","post","API","then","res","data","errno","sessionStorage","removeItem","pay_jump","history","push","oid","msg","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","setItem","JSON","stringify","computedMoney","totalSale","parseFloat","userAccount","user_account","discount","offset","toFixed","computedMoneyByCache","showInfo","prevState","publicGetData","course","user_info","publicLocalStorage","action","getItem","toCourseDetail","_this$props","dispatch","_this2","bargain","Promise","all","home","resList","courseInfo","orderInfo","newData","code","course_info","pdd_group_info","price","_this$state","title","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","align","height","direction","real_name","cellphone","qq","compute","courseId","Fragment","marginRight","throttle","position","top","left","width","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"uUAYMA,iBAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjBC,QAAQC,IAAIF,GACZ,IAAMG,EAAWH,EAAMI,KACvB,OACEC,EAAAP,EAAAQ,cAAA,WAEIH,EAASI,IAAI,SAACC,EAAMC,GACoGD,EAA9GE,UADoB,IACTC,EAAmGH,EAAnGG,UAAWC,EAAwFJ,EAAxFI,WAAYC,EAA4EL,EAA5EK,OAAQC,EAAo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AAAQ,cAAA+C,EAAAvD,EAAA,CAAMgJ,UAAU,SAASxF,QAAQ,UAAUsF,MAAM,SAASnH,MAAO,CAAEoH,OAAQ,SACzExI,EAAAP,EAAAQ,cAAA,KAAGmB,MAAO,CAAE+B,SAAU,OAAQD,MAAO,YAArC,wCACAlD,EAAAP,EAAAQ,cAAA,KAAGmB,MAAO,CAAEuI,WAAY,OAAQxG,SAAU,OAAQD,MAAO,YAAzD,kRACAlD,EAAAP,EAAAQ,cAAA,OAAKuB,QAASgC,KAAKoD,SAAUxF,MAAO,CAAEiI,MAAO,QAASb,OAAQ,OAAQmB,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqB5G,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aA/aM4G,iBAwbL3G","file":"static/js/Order.82ed0164.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, List, WingBlank, Toast } from 'antd-mobile';\nimport { OrderItem } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport { http, getParam } from \"@/utils\";\nimport { throttle } from 'lodash';\nimport {HeaderBar} from '../../common';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\nimport \"./order.scss\"\n\nconst Item = List.Item;\n\nfunction OrderList(props) {\n console.log(props);\n const listData = props.list;\n return (\n <div>\n {\n listData.map((item, index) => {\n const { is_coupon, course_id, image_name, price1, price0, simpledescription, course_title, coupon_num, coupon_desc} = item;\n let NewPrice = (<span className='order-newprice'>¥{price1}</span>);\n if(props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>);\n }\n const Info = (\n <div className=\"order-info\">\n {/* <Link to={`/detail?id=${course_id}`}> */}\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n {/* </Link> */}\n <p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p>\n <p className='order-des'>\n {/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/ }\n {/*{*/}\n {/* props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>)*/}\n {/*}*/}\n {NewPrice}\n <span className='order-price'>¥{price0}</span>\n </p>\n </div>\n );\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => { }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }}}>\n {/* <Link to='coupons' query={{id: course_id}} state={{from: '/order'}}> */}\n <Flex justify='between'>\n <span style={{ color: '#333', fontSize: '15px' }}>优惠券</span>\n <span style={{ fontSize: '14px', color: '#999999' }}>{!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}</span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n );\n}\n\n@connect()\nclass Order extends Component {\n constructor(props) {\n super(props);\n this.state = {\n groupPrice: '',\n perfect: this.props.location.state,\n user_account: 0.00, // 账户余额\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n const { location: { state ={} } } = this.props;\n if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n console.log(res);\n if(res.data.errno === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n console.log(this.state);\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n // 公共方法 本地存储\n publicLocalStorage = () => {\n if(this.props.history.action === 'PUSH') {\n sessionStorage.removeItem('orderUseCacheObj');\n } else{\n const cacheObj = sessionStorage.getItem('orderUseCacheObj');\n if(cacheObj !== null) {\n this.setState({\n useBalance: true\n });\n this.computedMoneyByCache();\n }\n }\n };\n componentDidMount() {\n let _this = this;\n console.log(this.props.location.state);\n console.log(0);\n // type: 1,返现课程,simple: 1,正常购买\n if(this.props.location.state && this.props.location.state.type === 1) {\n http.get(`${API['base-api']}/m/order/preorder?type=1`).then((res) => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n })\n } else if (this.props.location.state && (this.props.location.state.simple === 1 || this.props.location.state.bargain === 1)) {\n console.log(1);\n // 普通课程立即报名 不带 type = 1\n http.get(`${API['base-api']}/m/order/preorder`).then(res => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n } else if (this.props.location.state && this.props.location.state.group === 1){\n // 获取一键开团的课程\n Promise.all([http.get(`${API.home}/m/course/detail/${getParam('id')}`),http.get(`${API['base-api']}/m/order/preorder`)]).then(resList => {\n let courseInfo = resList[0],\n orderInfo = resList[1];\n console.log(courseInfo.data);\n console.log(orderInfo.data);\n let newData = {};\n if(orderInfo.data.errno === 200) {\n newData = Object.assign({}, orderInfo.data.data, {course: []});\n }else{\n Toast.info(orderInfo.data.msg, 2);\n return;\n }\n if(courseInfo.data.code === 200) {\n newData.course.push(courseInfo.data.data.course_info);\n this.setState({\n groupPrice: courseInfo.data.data.course_info.pdd_group_info.price\n })\n }else{\n Toast.info(courseInfo.data.msg, 2);\n return;\n }\n // this.groupPrice = orderInfo.data.data.course_info.pdd_group_info.price;\n // if(courseInfo.data.data.course.length === 0) {\n // courseInfo.data.data.course.push(orderInfo.data.data.course_info)\n // }\n this.publicGetData(newData);\n this.publicLocalStorage();\n });\n } else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API['base-api']}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n http.get(`${API['base-api']}/m/order/preorder`).then((res) => {\n console.log('为了验证什么条件下会走这段代码');\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n })\n // }\n }\n // else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API.home}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n // http.get(`${API.home}/m/order/preorder`).then((res) => {\n // console.log('为了验证什么条件下会走这段代码');\n // if (res.data.errno !== 200) {\n // Toast.info(res.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(res);\n // this.publicLocalStorage();\n // })\n // }\n // }\n };\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {\n perfect,\n orderList,\n user_account,\n total,\n discount,\n useBalance,\n info,\n offset,\n groupPrice\n } = this.state;\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true} />\n {\n !this.state.perfect &&\n <Link to={{\n pathname: '/orderinfo',\n state: {type: this.props.location.state ? this.props.location.state.type : null, id: getParam('id')}\n }}\n className=\"order-information\">\n <i className=\"iconfont iconiconfront-6 order-addsize\" />\n <div className=\"order-infotext\">完善报名信息</div>\n <i className=\"iconfont iconiconfront-70 order-next\" />\n </Link>\n }\n {\n this.state.perfect &&\n <div className=\"order-information2\">\n <WingBlank>\n <Link to={{\n pathname: '/orderinfo',\n state: {\n ...this.state.perfect,\n ...this.props.location.state,\n id: getParam('id')\n }\n }\n } >\n <Flex align='center' justify='between' style={{ height: '80px' }}>\n <i className=\"iconfont iconiconfront-20 user-icon\"></i>\n\n <Flex direction='column' justify='between' align='start' className=\"order-cell\">\n <div className=\"name\">{`姓名:${perfect.real_name}`}</div>\n <div>{`电话:${perfect.cellphone}`}</div>\n </Flex>\n\n <Flex align='start' className=\"order-cell\">\n <div>{`QQ:${perfect.qq}`}</div>\n </Flex>\n\n </Flex>\n </Link>\n </WingBlank>\n </div>\n }\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n compute={this.computedMoney}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{ color: '#FF2121', fontSize: '15px', marginRight: \"6px\" }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`} onClick={throttle(this.useBalance, 600)}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={throttle(this.useBalance, 600)}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${total}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n {\n perfect ? (\n\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n ) : (\n\n <button type=\"button\" className=\"order-button\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n )\n }\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.8)', zIndex: '99' }}>\n <div style={{ padding: '20px', backgroundColor: '#FFF', width: '300px', height: '170px', margin: '0 auto', position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }}>\n <Flex direction='column' justify='between' align='center' style={{ height: '100%' }}>\n <p style={{ fontSize: '16px', color: '#333333' }}>余额抵扣说明</p>\n <p style={{ lineHeight: '20px', fontSize: '13px', color: '#666666' }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{ width: '260px', height: '30px', lineHeight: '30px', textAlign: 'center', borderRadius: '3px', border: '1px solid #0099FF', color: '#0099FF', fontSize: '15px' }}>知道了</div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_13___default","a","OrderList","props","console","log","listData","list","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","map","item","index","is_coupon","course_id","image_name","price1","price0","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_15__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_16__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_11___default","justify","color","fontSize","Order","connect","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","_this$props$location$","location","params","pdd_order_id","getParam","ischeck","useBalance","http","post","API","then","res","data","errno","sessionStorage","removeItem","pay_jump","history","push","oid","msg","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","setItem","JSON","stringify","computedMoney","totalSale","parseFloat","userAccount","user_account","discount","offset","toFixed","computedMoneyByCache","showInfo","prevState","publicGetData","course","user_info","publicLocalStorage","action","getItem","toCourseDetail","_this$props","dispatch","_this2","bargain","Promise","all","home","resList","courseInfo","orderInfo","newData","code","course_info","pdd_group_info","price","_this$state","title","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","align","height","direction","real_name","cellphone","qq","compute","courseId","Fragment","marginRight","throttle","position","top","left","width","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"uUAYMA,iBAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjBC,QAAQC,IAAIF,GACZ,IAAMG,EAAWH,EAAMI,KACvB,OACEC,EAAAP,EAAAQ,cAAA,WAEIH,EAASI,IAAI,SAACC,EAAMC,GACoGD,EAA9GE,UADoB,IACTC,EAAmGH,EAAnGG,UAAWC,EAAwFJ,EAAxFI,WAAYC,EAA4EL,EAA5EK,OAAQC,EAAoEN,EAApEM,OAAQC,EAA4DP,EAA5DO,kBAAmBC,EAAyCR,EAAzCQ,aAAcC,EAA2BT,EAA3BS,WAAYC,EAAeV,EAAfU,YACnGC,EAAYd,EAAAP,EAAAQ,cAAA,QAAMc,UAAU,kBAAhB,OAAmCP,GAChDb,EAAMqB,eAAiBrB,EAAMqB,cAAcC,QAC5CH,EAAYd,EAAAP,EAAAQ,cAAA,QAAMc,UAAU,kBAAhB,OAAmCpB,EAAMuB,aAEvD,IAAMC,EACJnB,EAAAP,EAAAQ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,SAAUxF,MAAO,CAAEiI,MAAO,QAASb,OAAQ,OAAQmB,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqB5G,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aA/aM4G,iBAwbL3G","file":"static/js/Order.a579d31b.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, List, WingBlank, Toast } from 'antd-mobile';\nimport { OrderItem } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport { http, getParam } from \"@/utils\";\nimport { throttle } from 'lodash';\nimport {HeaderBar} from '../../common';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\nimport \"./order.scss\"\n\nconst Item = List.Item;\n\nfunction OrderList(props) {\n console.log(props);\n const listData = props.list;\n return (\n <div>\n {\n listData.map((item, index) => {\n const { is_coupon, course_id, image_name, price1, price0, simpledescription, course_title, coupon_num, coupon_desc} = item;\n let NewPrice = (<span className='order-newprice'>¥{price1}</span>);\n if(props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>);\n }\n const Info = (\n <div className=\"order-info\">\n {/* <Link to={`/detail?id=${course_id}`}> */}\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n {/* </Link> */}\n <p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p>\n <p className='order-des'>\n {/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/ }\n {/*{*/}\n {/* props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>)*/}\n {/*}*/}\n {NewPrice}\n <span className='order-price'>¥{price0}</span>\n </p>\n </div>\n );\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => { }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }}}>\n {/* <Link to='coupons' query={{id: course_id}} state={{from: '/order'}}> */}\n <Flex justify='between'>\n <span style={{ color: '#333', fontSize: '15px' }}>优惠券</span>\n <span style={{ fontSize: '14px', color: '#999999' }}>{!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}</span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n );\n}\n\n@connect()\nclass Order extends Component {\n constructor(props) {\n super(props);\n this.state = {\n groupPrice: '',\n perfect: this.props.location.state,\n user_account: 0.00, // 账户余额\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n const { location: { state ={} } } = this.props;\n if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n console.log(res);\n if(res.data.errno === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n console.log(this.state);\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n // 公共方法 本地存储\n publicLocalStorage = () => {\n if(this.props.history.action === 'PUSH') {\n sessionStorage.removeItem('orderUseCacheObj');\n } else{\n const cacheObj = sessionStorage.getItem('orderUseCacheObj');\n if(cacheObj !== null) {\n this.setState({\n useBalance: true\n });\n this.computedMoneyByCache();\n }\n }\n };\n componentDidMount() {\n let _this = this;\n console.log(this.props.location.state);\n console.log(0);\n // type: 1,返现课程,simple: 1,正常购买\n if(this.props.location.state && this.props.location.state.type === 1) {\n http.get(`${API['base-api']}/m/order/preorder?type=1`).then((res) => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n })\n } else if (this.props.location.state && (this.props.location.state.simple === 1 || this.props.location.state.bargain === 1)) {\n console.log(1);\n // 普通课程立即报名 不带 type = 1\n http.get(`${API['base-api']}/m/order/preorder`).then(res => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n } else if (this.props.location.state && this.props.location.state.group === 1){\n // 获取一键开团的课程\n Promise.all([http.get(`${API.home}/m/course/detail/${getParam('id')}`),http.get(`${API['base-api']}/m/order/preorder`)]).then(resList => {\n let courseInfo = resList[0],\n orderInfo = resList[1];\n console.log(courseInfo.data);\n console.log(orderInfo.data);\n let newData = {};\n if(orderInfo.data.errno === 200) {\n newData = Object.assign({}, orderInfo.data.data, {course: []});\n }else{\n Toast.info(orderInfo.data.msg, 2);\n return;\n }\n if(courseInfo.data.code === 200) {\n newData.course.push(courseInfo.data.data.course_info);\n this.setState({\n groupPrice: courseInfo.data.data.course_info.pdd_group_info.price\n })\n }else{\n Toast.info(courseInfo.data.msg, 2);\n return;\n }\n // this.groupPrice = orderInfo.data.data.course_info.pdd_group_info.price;\n // if(courseInfo.data.data.course.length === 0) {\n // courseInfo.data.data.course.push(orderInfo.data.data.course_info)\n // }\n this.publicGetData(newData);\n this.publicLocalStorage();\n });\n } else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API['base-api']}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n http.get(`${API['base-api']}/m/order/preorder`).then((res) => {\n console.log('为了验证什么条件下会走这段代码');\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n })\n // }\n }\n // else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API.home}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n // http.get(`${API.home}/m/order/preorder`).then((res) => {\n // console.log('为了验证什么条件下会走这段代码');\n // if (res.data.errno !== 200) {\n // Toast.info(res.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(res);\n // this.publicLocalStorage();\n // })\n // }\n // }\n };\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {\n perfect,\n orderList,\n user_account,\n total,\n discount,\n useBalance,\n info,\n offset,\n groupPrice\n } = this.state;\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true} />\n {\n !this.state.perfect &&\n <Link to={{\n pathname: '/orderinfo',\n state: {type: this.props.location.state ? this.props.location.state.type : null, id: getParam('id')}\n }}\n className=\"order-information\">\n <i className=\"iconfont iconiconfront-6 order-addsize\" />\n <div className=\"order-infotext\">完善报名信息</div>\n <i className=\"iconfont iconiconfront-70 order-next\" />\n </Link>\n }\n {\n this.state.perfect &&\n <div className=\"order-information2\">\n <WingBlank>\n <Link to={{\n pathname: '/orderinfo',\n state: {\n ...this.state.perfect,\n ...this.props.location.state,\n id: getParam('id')\n }\n }\n } >\n <Flex align='center' justify='between' style={{ height: '80px' }}>\n <i className=\"iconfont iconiconfront-20 user-icon\"></i>\n\n <Flex direction='column' justify='between' align='start' className=\"order-cell\">\n <div className=\"name\">{`姓名:${perfect.real_name}`}</div>\n <div>{`电话:${perfect.cellphone}`}</div>\n </Flex>\n\n <Flex align='start' className=\"order-cell\">\n <div>{`QQ:${perfect.qq}`}</div>\n </Flex>\n\n </Flex>\n </Link>\n </WingBlank>\n </div>\n }\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n compute={this.computedMoney}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{ color: '#FF2121', fontSize: '15px', marginRight: \"6px\" }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`} onClick={throttle(this.useBalance, 600)}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={throttle(this.useBalance, 600)}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${total}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n {\n perfect ? (\n\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n ) : (\n\n <button type=\"button\" className=\"order-button\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n )\n }\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.8)', zIndex: '99' }}>\n <div style={{ padding: '20px', backgroundColor: '#FFF', width: '300px', height: '170px', margin: '0 auto', position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }}>\n <Flex direction='column' justify='between' align='center' style={{ height: '100%' }}>\n <p style={{ fontSize: '16px', color: '#333333' }}>余额抵扣说明</p>\n <p style={{ lineHeight: '20px', fontSize: '13px', color: '#666666' }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{ width: '260px', height: '30px', lineHeight: '30px', textAlign: 'center', borderRadius: '3px', border: '1px solid #0099FF', color: '#0099FF', fontSize: '15px' }}>知道了</div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1166:function(e,n,a){"use strict";a.r(n);var o=a(7),r=a(8),t=a(10),l=a(9),i=a(11),c=(a(44),a(14)),s=a.n(c),p=a(23),u=(a(155),a(75)),d=a.n(u),f=(a(1137),a(1139)),h=a.n(f),m=(a(1140),a(1142)),v=a.n(m),b=a(0),g=a.n(b),q=a(19),E=a(30),j=a(4),y=Object(q.e)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,n){return{}},handleSubmit:function(e,n){var a=e.real_name,o=e.cellphone,r=e.qq;if(a)if(0!=="".concat(a).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(n.props.userInfo){var l=n.props.userInfo;l.real_name===a&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";n.props.userInfo.id&&(i=i+"?id="+n.props.userInfo.id),console.log(e),3!==t?j.c.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(a){console.log(a),200===a.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),n.props.history.replace(i,Object(p.a)({},e))):s.a.info(a.data.msg,void 0,void 0,!1)}):n.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var n=e.values,a=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return g.a.createElement("form",null,g.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return a("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:n.real_name},"\u59d3\u540d"),g.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return a("cellphone",e)},value:n.cellphone},"\u7535\u8bdd"),g.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return a("qq",e)},value:n.qq},"QQ"),g.a.createElement("div",{style:{marginTop:"21px"}},g.a.createElement(d.a,null,g.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function n(e){return Object(o.a)(this,n),Object(t.a)(this,Object(l.a)(n).call(this,e))}return Object(i.a)(n,e),Object(r.a)(n,[{key:"render",value:function(){return g.a.createElement("div",null,g.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),g.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(b.Component);n.default=O}}]);
//# sourceMappingURL=Orderinfo.3f88f5a0.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1166:function(e,n,a){"use strict";a.r(n);var o=a(7),r=a(8),t=a(11),l=a(9),i=a(10),c=(a(44),a(14)),s=a.n(c),p=a(23),u=(a(155),a(75)),d=a.n(u),f=(a(1137),a(1139)),h=a.n(f),m=(a(1140),a(1142)),v=a.n(m),b=a(0),g=a.n(b),q=a(19),E=a(30),j=a(4),y=Object(q.e)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,n){return{}},handleSubmit:function(e,n){var a=e.real_name,o=e.cellphone,r=e.qq;if(a)if(0!=="".concat(a).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(n.props.userInfo){var l=n.props.userInfo;l.real_name===a&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";n.props.userInfo.id&&(i=i+"?id="+n.props.userInfo.id),console.log(e),3!==t?j.c.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(a){console.log(a),200===a.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),n.props.history.replace(i,Object(p.a)({},e))):s.a.info(a.data.msg,void 0,void 0,!1)}):n.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var n=e.values,a=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return g.a.createElement("form",null,g.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return a("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:n.real_name},"\u59d3\u540d"),g.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return a("cellphone",e)},value:n.cellphone},"\u7535\u8bdd"),g.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return a("qq",e)},value:n.qq},"QQ"),g.a.createElement("div",{style:{marginTop:"21px"}},g.a.createElement(d.a,null,g.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function n(e){return Object(o.a)(this,n),Object(t.a)(this,Object(l.a)(n).call(this,e))}return Object(i.a)(n,e),Object(r.a)(n,[{key:"render",value:function(){return g.a.createElement("div",null,g.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),g.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(b.Component);n.default=O}}]);
//# sourceMappingURL=Orderinfo.ccc104bf.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","console","log","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"uSAgDMA,EAASC,YAAW,CACtBC,iBAAkB,SAAAC,GAAK,OAAAC,OAAAC,EAAA,EAAAD,CAAA,GAAUD,EAAMG,WACvCC,SAAU,SAACC,EAAQL,GAEf,MADe,IAGnBM,aAAc,SACVD,EACAE,GACC,IACMC,EAA4BH,EAA5BG,UAAWC,EAAiBJ,EAAjBI,UAAWC,EAAML,EAANK,GAC7B,GAAKF,EAGC,GAAoD,IAAhD,GAAAG,OAAIH,GAAaI,QAAQ,OAAQ,IAAIC,OAI/C,GAAKJ,EAGE,GAAK,WAAWK,KAAK,GAAAH,OAAIF,GAAaG,QAAQ,OAAQ,KAI7D,GAAKF,EAGE,GAAK,UAAUI,KAAKJ,GAApB,CAIP,IAAIK,EAAO,EACX,GAAGR,EAAQP,MAAMG,SAAU,CACvB,IAAMA,EAAWI,EAAQP,MAAMG,SAC5BA,EAASK,YAAcA,IACtBO,GAAQ,GAETZ,EAASM,YAAcA,IACtBM,GAAQ,GAETZ,EAASO,KAAOA,IACfK,GAAQ,GAGhB,IAAIC,EAAW,SACZT,EAAQP,MAAMG,SAASc,KACtBD,EAAWA,EAAW,OAAST,EAAQP,MAAMG,SAASc,IAE1DC,QAAQC,IAAId,GACA,IAATU,EASHK,IAAKC,KAAL,GAAAV,OAAaW,IAAI,YAAjB,yBAAqD,CAACd,UAAWH,EAAOG,UAAWC,UAAW,GAAAE,OAAIN,EAAOI,WAA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AAAb,EAAA,CACIc,OAAK,EACLC,KAAK,KACLG,YAAY,+CACZE,UAAU,KACVJ,SAAU,SAACC,GAAD,OAAWX,EAAc,KAAMW,IACzCA,MAAOxC,EAAOK,IANlB,MASA6B,EAAAX,EAAAY,cAAA,OAAKS,MAAO,CAAEC,UAAW,SACrBX,EAAAX,EAAAY,cAAAW,EAAAvB,EAAA,KACIW,EAAAX,EAAAY,cAAAY,EAAAxB,EAAA,CAAQmB,KAAK,UAAUM,QAAS/C,GAAhC,qBAkFdgD,cACF,SAAAA,EAAYtD,GAAQ,OAAAC,OAAAsD,EAAA,EAAAtD,CAAAuD,KAAAF,GAAArD,OAAAwD,EAAA,EAAAxD,CAAAuD,KAAAvD,OAAAyD,EAAA,EAAAzD,CAAAqD,GAAAK,KAAAH,KACVxD,0EAIN,OACIuC,EAAAX,EAAAY,cAAA,WACID,EAAAX,EAAAY,cAACoB,EAAA,EAAD,CAAWC,MAAM,2BAAOC,OAAO,IAC/BvB,EAAAX,EAAAY,cAAC3C,EAAD,CAAQkC,QAASyB,KAAKxD,MAAM+B,QAAS5B,SAAUqD,KAAKxD,MAAM+D,SAASC,gBAT3DC,aAgBTX","file":"static/js/Orderinfo.3f88f5a0.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","console","log","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"uSAgDMA,EAASC,YA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,CAAAuD,KAAAF,GAAArD,OAAAwD,EAAA,EAAAxD,CAAAuD,KAAAvD,OAAAyD,EAAA,EAAAzD,CAAAqD,GAAAK,KAAAH,KACVxD,0EAIN,OACIuC,EAAAX,EAAAY,cAAA,WACID,EAAAX,EAAAY,cAACoB,EAAA,EAAD,CAAWC,MAAM,2BAAOC,OAAO,IAC/BvB,EAAAX,EAAAY,cAAC3C,EAAD,CAAQkC,QAASyB,KAAKxD,MAAM+B,QAAS5B,SAAUqD,KAAKxD,MAAM+D,SAASC,gBAT3DC,aAgBTX","file":"static/js/Orderinfo.ccc104bf.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1162:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return I});t(155);var n=t(75),i=t.n(n),c=(t(89),t(26)),o=t.n(c),r=(t(154),t(35)),s=t.n(r),l=(t(44),t(14)),d=t.n(l),p=t(7),u=t(8),m=t(10),y=t(9),g=t(156),b=t(11),h=(t(890),t(892)),f=t.n(h),v=(t(115),t(46)),w=t.n(v),E=t(0),S=t.n(E),x=t(4),_=t(30),k=t(18),j=(t(894),w.a.Item.Brief,f.a.RadioItem),P=[];P=x.a.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"},{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}];var I=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.b)("status"),a=Object(x.b)("type"),n=Object(x.b)("oid"),i=t.props.history;(e||a)&&(0===parseInt(e,10)?2===parseInt(a,10)?i.push("/togroup?id=".concat(n)):i.push("/purchased"):d.a.info("\u652f\u4ed8\u5f02\u5e38",2))},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){console.log(e),t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.e)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":x.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){console.log(e),0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(g.a)(t),a=Object(x.b)("code");if(a){if(void 0===Object(x.b)("oid"))return;x.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.b)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.c.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.b)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.b)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(g.a)(t);e.intervalPayStatus=setInterval(function(){x.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.c.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.b)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.b)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(g.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);console.log("\u82b1\u5457\u5206\u671f\u652f\u4ed8"),x.c.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){console.log(e),0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:0,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.b)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(b.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay();var a={};a=this.props.location.state&&this.props.location.state.group?{order_id:this.state.orderId,type:2}:{order_id:this.state.orderId},x.c.post("".concat(API["base-api"],"/m/order/detail"),a).then(function(a){if(200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),console.log(c),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg,2)}),(1===Object(x.b)("is_class")||Object(x.b)("weixinpay"))&&this.payCallback(),Object(x.e)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,l=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(s.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(s.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(k.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.i,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(s.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(s.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},P.map(function(a){return S.a.createElement(j,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(l,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(j,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},894:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.15b3e5bc.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/payOrder/PayOrder.js"],"names":["RadioItem","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_17___default","a","Item","Brief","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_15___default","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__","call","redirectAfterPay","status","getParam","type","oid","history","parseInt","push","concat","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","info","onChange","setState","payType","checkPeriod","huabei","checkStaging","item","console","log","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","pay","_this2$state","state","orderId","alipayPay","weixinPay","is_weixin","window","location","href","encodeURIComponent","toLowerCase","http","get","API","then","res","data","errno","url","msg","isweixinPay","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_12__","weixin_code","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","Number","course_type","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","huabeiPay","_this2$state2","pay_amount","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","group","order_id","post","_res$data$data","course","map","obj","moneyRate","rate","periodic","toFixed","serviceFee","parseFloat","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_18___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_20__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","align","style","height","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_21__","to","course_id","course_title","simpledescription","price1","price0","handleClick","key","img","image_name","id","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","onClick","Component"],"mappings":"0XAWMA,UAFOC,EAAAC,EAAKC,KACCC,MACDC,EAAAH,EAAMF,WAEpBM,EAAW,GAEXA,EADAC,IAAQC,SACG,CACP,CAACC,MAAO,EAAGC,MAAO,2BAAQC,KAAM,oBAGzB,CACP,CAACF,MAAO,EAAGC,MAAO,qBAAOC,KAAM,cAC/B,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,wBAMnBC,cACjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,iBAAmB,WAEf,IAAMC,EAASC,YAAS,UAClBC,EAAOD,YAAS,QAChBE,EAAMF,YAAS,OACdG,EAAWZ,EAAKD,MAAhBa,SACHJ,GAAUE,KACmB,IAAzBG,SAASL,EAAQ,IAEU,IAAvBK,SAASH,EAAM,IACfE,EAAQE,KAAR,eAAAC,OAA4BJ,IAE5BC,EAAQE,KAAK,cAGjBE,EAAA5B,EAAM6B,KAAK,2BAAQ,KApCZjB,EAyCnBkB,SAAW,SAACvB,GACRK,EAAKmB,SAAS,CACVC,QAASzB,EACT0B,aAAa,IAEH,IAAV1B,GACAK,EAAKmB,SAAS,CACVG,QAAQ,KAhDDtB,EAoDnBuB,aAAe,SAACC,GACZC,QAAQC,IAAIF,GACZxB,EAAKmB,SAAS,CACVG,QAAQ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nJ,MAC3BuB,SAAU,kBAAM6F,EAAKxF,aAAauH,KAHtC,GAAA/H,OAIQ+H,EAAEjH,WAJV,gBAAAd,OAI2B+H,EAAE/G,MAJ7B,UAKIkF,EAAA7H,EAAA8H,cAAA/H,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwB+H,EAAEjC,WAA1B,mCAAA9F,OAA6C+H,EAAErC,iBAK/D,aA9Yc+C","file":"static/js/PayOrder.15b3e5bc.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast } from 'antd-mobile';\nimport { http, getParam, is_weixin, browser } from '@/utils';\nimport { OrderItem, HeaderBar } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport './PayOrder.scss';\nimport { VList } from '@/common';\n\n\nconst Item = List.Item;\nconst Brief = Item.Brief;\nconst RadioItem = Radio.RadioItem;\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ];\n} else {\n mockData = [\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n // { value: 2, label: '花呗分期', icon: 'iconhuabei' },\n ];\n}\n\n\nexport default class PayOrder extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pay_amount: 0,\n payType: 0,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n }\n }\n\n // 支付成功后,判断并重定向\n redirectAfterPay = () => {\n // status:0成功,1失败\n const status = getParam('status');\n const type = getParam('type');\n const oid = getParam('oid');\n const {history} = this.props;\n if (status || type) {\n if (parseInt(status, 10) === 0) {\n // type订单类型 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n if (parseInt(type, 10) === 2) {\n history.push(`/togroup?id=${oid}`);\n } else {\n history.push('/purchased');\n }\n } else {\n Toast.info('支付异常', 2);\n }\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n });\n if (value === 2) {\n this.setState({\n huabei: true,\n });\n }\n };\n checkStaging = (item) => {\n console.log(item);\n this.setState({\n huabei: false,\n stageNumber: item.value,\n singleMoney: item.everyTotal,\n periodNumber: item.stage,\n checkPeriod: true,\n });\n }\n print = (...e) => {\n console.log(e);\n };\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state;\n if (payType === 0) {\n this.alipayPay(orderId);\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n // else { // 花呗分期暂时不做\n // this.huabeiPay(orderId)\n // }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1162:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(155);var n=t(75),i=t.n(n),c=(t(89),t(26)),o=t.n(c),r=(t(154),t(35)),s=t.n(r),l=(t(44),t(14)),d=t.n(l),p=t(7),u=t(8),m=t(11),y=t(9),g=t(156),b=t(10),h=(t(890),t(892)),f=t.n(h),v=(t(115),t(46)),w=t.n(v),E=t(0),S=t.n(E),x=t(4),_=t(30),k=t(18),I=(t(894),w.a.Item.Brief,f.a.RadioItem),j=[];j=x.a.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"},{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}];var P=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.b)("status"),a=Object(x.b)("type"),n=Object(x.b)("oid"),i=t.props.history;if(e||a)if(0===parseInt(e,10))if(2===parseInt(a,10))i.push("/togroup?id=".concat(n));else if(4===parseInt(a,10)){c&&window.localStorage.setItem("payCourse",c);var c=window.localStorage.getItem("payCourse");c&&i.push("/detail?id=".concat(c),{oid:n})}else i.push("/purchased");else d.a.info("\u652f\u4ed8\u5f02\u5e38",2)},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){console.log(e),t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.e)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":x.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){console.log(e),0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(g.a)(t),a=Object(x.b)("code");if(a){if(void 0===Object(x.b)("oid"))return;x.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.b)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.c.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.b)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.b)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(g.a)(t);e.intervalPayStatus=setInterval(function(){x.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.c.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.b)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.b)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(g.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);console.log("\u82b1\u5457\u5206\u671f\u652f\u4ed8"),x.c.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){console.log(e),0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:0,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.b)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(b.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay();var a={};a=this.props.location.state&&this.props.location.state.group?{order_id:this.state.orderId,type:2}:{order_id:this.state.orderId},x.c.post("".concat(API["base-api"],"/m/order/detail"),a).then(function(a){if(200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),console.log(c),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg,2)}),(1===Object(x.b)("is_class")||Object(x.b)("weixinpay"))&&this.payCallback(),Object(x.e)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,l=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(s.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(s.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(k.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.i,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(s.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(s.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},j.map(function(a){return S.a.createElement(I,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(l,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(I,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},894:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.ae2564f9.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/payOrder/PayOrder.js"],"names":["RadioItem","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_17___default","a","Item","Brief","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_15___default","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__","call","redirectAfterPay","status","getParam","type","oid","history","parseInt","push","concat","courseId","window","localStorage","setItem","getItem","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","info","onChange","setState","payType","checkPeriod","huabei","checkStaging","item","console","log","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","pay","_this2$state","state","orderId","alipayPay","weixinPay","is_weixin","location","href","encodeURIComponent","toLowerCase","http","get","API","then","res","data","errno","url","msg","isweixinPay","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_12__","weixin_code","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","Number","course_type","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","huabeiPay","_this2$state2","pay_amount","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","group","order_id","post","_res$data$data","course","map","obj","moneyRate","rate","periodic","toFixed","serviceFee","parseFloat","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_18___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_20__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","align","style","height","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_21__","to","course_id","course_title","simpledescription","price1","price0","handleClick","key","img","image_name","id","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","onClick","Component"],"mappings":"0XAWMA,UAFOC,EAAAC,EAAKC,KACCC,MACDC,EAAAH,EAAMF,WAEpBM,EAAW,GAEXA,EADAC,IAAQC,SACG,CACP,CAACC,MAAO,EAAGC,MAAO,2BAAQC,KAAM,oBAGzB,CACP,CAACF,MAAO,EAAGC,MAAO,qBAAOC,KAAM,cAC/B,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,wBAMnBC,cACjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,iBAAmB,WAEf,IAAMC,EAASC,YAAS,UAClBC,EAAOD,YAAS,QAChBE,EAAMF,YAAS,OACdG,EAAWZ,EAAKD,MAAhBa,QACP,GAAIJ,GAAUE,EACV,GAA6B,IAAzBG,S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B,OAGyBoB,EAHzB,WAIA,MAGZkF,EAAAjI,EAAAkI,cAAAQ,EAAA1I,EAAA,CAAM2I,QAAQ,SACVV,EAAAjI,EAAAkI,cAAA,QAAMW,MAAO,CAACwB,MAAO,UAAWC,SAAU,SAA1C,oFAGPR,EAAEtJ,UAKvByH,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,WAAf,gJAEAF,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,aAAaoC,QAASxJ,KAAKyC,KAA1C,4BAGIjB,EACI0F,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,iBACXF,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,aACXF,EAAAjI,EAAAkI,cAAA,KAAGC,UAAU,eAAb,kCACCxB,EAAUY,IAAI,SAAAuC,GAAC,OACZ7B,EAAAjI,EAAAkI,cAACpI,EAAD,CACI2J,IAAKK,EAAEvJ,MACPyJ,QAASpH,IAAgBkH,EAAEvJ,MAC3B4B,SAAU,kBAAM4F,EAAKvF,aAAasH,KAHtC,GAAAnI,OAIQmI,EAAEhH,WAJV,gBAAAnB,OAI2BmI,EAAE9G,MAJ7B,UAKIiF,EAAAjI,EAAAkI,cAAAnI,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwBmI,EAAEjC,WAA1B,mCAAAlG,OAA6CmI,EAAErC,iBAK/D,aAlZc+C","file":"static/js/PayOrder.ae2564f9.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast } from 'antd-mobile';\nimport { http, getParam, is_weixin, browser } from '@/utils';\nimport { OrderItem, HeaderBar } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport './PayOrder.scss';\nimport { VList } from '@/common';\n\n\nconst Item = List.Item;\nconst Brief = Item.Brief;\nconst RadioItem = Radio.RadioItem;\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ];\n} else {\n mockData = [\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n // { value: 2, label: '花呗分期', icon: 'iconhuabei' },\n ];\n}\n\n\nexport default class PayOrder extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pay_amount: 0,\n payType: 0,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n }\n }\n\n // 支付成功后,判断并重定向\n redirectAfterPay = () => {\n // status:0成功,1失败\n const status = getParam('status');\n const type = getParam('type');\n const oid = getParam('oid');\n const {history} = this.props;\n if (status || type) {\n if (parseInt(status, 10) === 0) {\n // type订单类型 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n if (parseInt(type, 10) === 2) {\n history.push(`/togroup?id=${oid}`);\n }else if(parseInt(type, 10) === 4) {\n courseId && window.localStorage.setItem('payCourse', courseId);\n const courseId = window.localStorage.getItem('payCourse')\n courseId && history.push(`/detail?id=${courseId}`,{oid});\n } else {\n history.push('/purchased');\n }\n } else {\n Toast.info('支付异常', 2);\n }\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n });\n if (value === 2) {\n this.setState({\n huabei: true,\n });\n }\n };\n checkStaging = (item) => {\n console.log(item);\n this.setState({\n huabei: false,\n stageNumber: item.value,\n singleMoney: item.everyTotal,\n periodNumber: item.stage,\n checkPeriod: true,\n });\n }\n print = (...e) => {\n console.log(e);\n };\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state;\n if (payType === 0) {\n this.alipayPay(orderId);\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n // else { // 花呗分期暂时不做\n // this.huabeiPay(orderId)\n // }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1136:function(e,t,a){},1165:function(e,t,a){"use strict";a.r(t);a(258);var n,o=a(160),i=a.n(o),s=(a(154),a(35)),c=a.n(s),r=(a(44),a(14)),l=a.n(r),u=a(7),f=a(8),h=a(10),p=a(9),d=a(11),m=a(0),v=a.n(m),g=a(30),b=(a(1136),a(706)),C=a(4),y=a(64),w=a(21),E=(a(63),Object(w.b)()(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(h.a)(this,Object(p.a)(t).call(this,e))).specialSale=function(){C.c.get("".concat(API.home,"/m/home/weekDiscounts")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.bargain=function(){C.c.get("".concat(API.home,"/m/home/bargainZone")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data}):l.a.info(e.data.msg,2)})},a.group=function(){C.c.get("".concat(API.home,"/m/home/grouponList")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data}):l.a.info(e.data.msg,2)})},a.ontabclick=function(e,t){switch(a.state.courseStatus=t,t){case 0:a.specialSale();break;case 1:a.bargain();break;default:a.group()}},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={dataList:[],courseStatus:0,isLoading:!0},a}return Object(d.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.specialSale()}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"preferential"},v.a.createElement(b.a,null),v.a.createElement(y.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"class-content"},v.a.createElement(c.a,null),v.a.createElement(i.a,{tabs:[{title:"\u9650\u65f6\u7279\u60e0"},{title:"\u780d\u4ef7\u4e13\u533a"},{title:"\u4e00\u952e\u62fc\u56e2"}],animated:!1,onChange:function(t,a){return e.ontabclick(t,a)}},v.a.createElement("div",{className:"tabs"},v.a.createElement("ul",null,this.state.dataList.map(function(t,a){var n=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},t.course_desc),v.a.createElement("div",{className:"des"},!t.is_buy&&v.a.createElement("p",{className:"course-price"},0===e.state.courseStatus&&v.a.createElement("span",{className:"price"},"\u7279\u60e0\u4ef7\uff1a"),v.a.createElement("span",{className:"new"},"\xa5",t.price1),v.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&v.a.createElement("a",{href:"/#",className:"isbuy"},"\u5df2\u8d2d\u4e70"))),o=v.a.createElement("div",null,1===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_price,"\u5143"),2===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u4ef7",t.price,"\u5143"),t.is_aist&&v.a.createElement("span",{className:"return_cash"}));return v.a.createElement(g.i,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})})))),v.a.createElement(c.a,null))))}}]),t}(m.Component))||n);t.default=E},583:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(3),i=(n=o)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var o={};if(t&&t.antLocale&&t.antLocale[a])o=t.antLocale[a];else{var s=n();o=s.default||s}var c=(0,i.default)({},o);e.locale&&(c=(0,i.default)({},c,e.locale),e.locale.lang&&(c.lang=(0,i.default)({},o.lang,e.locale.lang)));return c},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,a){"use strict";a(48),a(607)},607:function(e,t,a){},608:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(3)),o=g(a(34)),i=g(a(5)),s=g(a(12)),c=g(a(6)),r=g(a(13)),l=g(a(15)),u=v(a(0)),f=v(a(2)),h=g(a(153)),p=g(a(583)),d=a(588),m=a(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,i.default)(this,t);var a=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,r.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,i=this.props,s=i.prefixCls,c=i.showCancelButton,r=i.disabled,f=i.placeholder,m=i.className,v=i.style,g=i.maxLength,b=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(610)}).cancelText,C=this.state,y=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||y&&y.length>0))),N=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&y&&y.length>0))),_=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(c||w||y&&y.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:y,disabled:r,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(h.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:N}))),u.createElement("div",{className:_,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||b))}}]),t}(u.Component);t.default=b,b.defaultProps=m.defaultProps,b.contextTypes={antLocale:f.object},e.exports=t.default},609:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},610:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},706:function(e,t,a){"use strict";a(606);var n=a(608),o=a.n(n),i=a(7),s=a(8),c=a(10),r=a(9),l=a(11),u=a(0),f=a.n(u),h=(a(707),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(c.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(o)))).goShop=function(){location.replace("/shopcart")},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return console.log(this.props.toHref),f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(o.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=h},707:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.d5328928.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1136:function(e,t,a){},1165:function(e,t,a){"use strict";a.r(t);a(258);var n,o=a(160),i=a.n(o),s=(a(154),a(35)),c=a.n(s),r=(a(44),a(14)),l=a.n(r),u=a(7),f=a(8),h=a(11),p=a(9),d=a(10),m=a(0),v=a.n(m),g=a(30),b=(a(1136),a(706)),C=a(4),y=a(64),w=a(21),E=(a(63),Object(w.b)()(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(h.a)(this,Object(p.a)(t).call(this,e))).specialSale=function(){C.c.get("".concat(API.home,"/m/home/weekDiscounts")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.bargain=function(){C.c.get("".concat(API.home,"/m/home/bargainZone")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data}):l.a.info(e.data.msg,2)})},a.group=function(){C.c.get("".concat(API.home,"/m/home/grouponList")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data}):l.a.info(e.data.msg,2)})},a.ontabclick=function(e,t){switch(a.state.courseStatus=t,t){case 0:a.specialSale();break;case 1:a.bargain();break;default:a.group()}},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={dataList:[],courseStatus:0,isLoading:!0},a}return Object(d.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.specialSale()}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"preferential"},v.a.createElement(b.a,null),v.a.createElement(y.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"class-content"},v.a.createElement(c.a,null),v.a.createElement(i.a,{tabs:[{title:"\u9650\u65f6\u7279\u60e0"},{title:"\u780d\u4ef7\u4e13\u533a"},{title:"\u4e00\u952e\u62fc\u56e2"}],animated:!1,onChange:function(t,a){return e.ontabclick(t,a)}},v.a.createElement("div",{className:"tabs"},v.a.createElement("ul",null,this.state.dataList.map(function(t,a){var n=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},t.course_desc),v.a.createElement("div",{className:"des"},!t.is_buy&&v.a.createElement("p",{className:"course-price"},0===e.state.courseStatus&&v.a.createElement("span",{className:"price"},"\u7279\u60e0\u4ef7\uff1a"),v.a.createElement("span",{className:"new"},"\xa5",t.price1),v.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&v.a.createElement("a",{href:"/#",className:"isbuy"},"\u5df2\u8d2d\u4e70"))),o=v.a.createElement("div",null,1===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_price,"\u5143"),2===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u4ef7",t.price,"\u5143"),t.is_aist&&v.a.createElement("span",{className:"return_cash"}));return v.a.createElement(g.i,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})})))),v.a.createElement(c.a,null))))}}]),t}(m.Component))||n);t.default=E},583:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(3),i=(n=o)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var o={};if(t&&t.antLocale&&t.antLocale[a])o=t.antLocale[a];else{var s=n();o=s.default||s}var c=(0,i.default)({},o);e.locale&&(c=(0,i.default)({},c,e.locale),e.locale.lang&&(c.lang=(0,i.default)({},o.lang,e.locale.lang)));return c},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,a){"use strict";a(48),a(607)},607:function(e,t,a){},608:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(3)),o=g(a(34)),i=g(a(5)),s=g(a(12)),c=g(a(6)),r=g(a(13)),l=g(a(15)),u=v(a(0)),f=v(a(2)),h=g(a(153)),p=g(a(583)),d=a(588),m=a(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,i.default)(this,t);var a=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,r.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,i=this.props,s=i.prefixCls,c=i.showCancelButton,r=i.disabled,f=i.placeholder,m=i.className,v=i.style,g=i.maxLength,b=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(610)}).cancelText,C=this.state,y=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||y&&y.length>0))),N=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&y&&y.length>0))),_=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(c||w||y&&y.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:y,disabled:r,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(h.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:N}))),u.createElement("div",{className:_,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||b))}}]),t}(u.Component);t.default=b,b.defaultProps=m.defaultProps,b.contextTypes={antLocale:f.object},e.exports=t.default},609:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},610:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},706:function(e,t,a){"use strict";a(606);var n=a(608),o=a.n(n),i=a(7),s=a(8),c=a(11),r=a(9),l=a(10),u=a(0),f=a.n(u),h=(a(707),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(c.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(o)))).goShop=function(){location.replace("/shopcart")},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return console.log(this.props.toHref),f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(o.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=h},707:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.ef876af4.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/preferential/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Preferential","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","group","ontabclick","tab","index","state","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","_this2","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","className","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_14__","_common_Loading__WEBPACK_IMPORTED_MODULE_16__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","title","animated","onChange","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","href","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","length","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","location","replace","console","log","toHref","react__WEBPACK_IMPORTED_MODULE_7___default","return","bind","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"kTAaMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAaVQ,YAAc,WACVC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAACC,GACzB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAAUJ,EAAIC,KAAKA,KACnBI,WAAW,IAGfC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MAtBlBvB,EA4Bn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MoM,QACXC,EAAA/K,EAAAkB,cAAA,KAAGC,UAAW,mCAAoCY,QAASjD,KAAKJ,MAAMoM,SAE1EC,EAAA/K,EAAAkB,cAAAgK,EAAAlL,EAAA,CACIuJ,YAAY,2BACZE,WAAY,IACZlD,QAASzH,KAAKqM,SAASF,KAAKnM,MAC5B8J,kBAAkB,IAEtBmC,EAAA/K,EAAAkB,cAAA,KAAGC,UAAW,+CAAgDY,QAASjD,KAAK2L,kBAnCxEzH,cA2CTwH","file":"static/js/Preferential.d5328928.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace, Toast} from 'antd-mobile'\nimport './index.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http} from \"@/utils\"\nimport {Link} from 'react-router-dom'\nimport Loading from '@/common/Loading'\nimport {bindActionCreators} from 'redux';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 一键拼团\n group = () => {\n http.get(`${API.home}/m/home/grouponList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.state.courseStatus = index\n switch (index) {\n case 0:\n this.specialSale()\n break\n case 1:\n this.bargain()\n break\n default:\n this.group()\n }\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const tabs = [\n {title: '限时特惠'},\n {title: '砍价专区'},\n {title: '一键拼团'}\n ]\n return (\n <div className='preferential'>\n <HeaderSearch></HeaderSearch>\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n\n <Tabs\n tabs={tabs}\n animated={false}\n onChange={(tab, index) => this.ontabclick(tab, index)}\n >\n <div className='tabs'>\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a href=\"/#\" className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n\n </div>\n </Tabs>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search'\n }\n\n return() {\n window.location.href = '/'\n }\n\n goShop = () => {\n location.replace('/shopcart')\n }\n\n\n render() {\n {\n console.log(this.props.toHref);\n }\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i className={'iconfont iconiconfront-68 return'} onClick={this.return.bind(this)}></i>\n }\n {\n this.props.toHref &&\n <i className={'iconfont iconiconfront-68 return'} onClick={this.props.toHref}></i>\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i className={'iconfont icongouwuche-xianxing shopping-cart'} onClick={this.goShop}></i>\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/preferential/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Preferential","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","group","ontabclick","tab","index","state","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","_this2","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","className","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_14__","_common_Loading__WEBPACK_IMPORTED_MODULE_16__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","title","animated","onChange","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","href","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","length","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","location","replace","console","log","toHref","react__WEBPACK_IMPORTED_MODULE_7___default","return","bind","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"kTAaMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAaVQ,YAAc,WACVC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAACC,GACzB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAAUJ,EAAIC,KAAKA,KACnBI,WAAW,IAGfC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MAtBlBvB,EA4BnBwB,QAAU,WACNhB,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAACC,GACvB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAAUJ,EAAIC,KAAKA,OAGvBK,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MAnClBvB,EAwCnByB,MAAQ,WAC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AA,KAAGC,UAAW,+CAAgDY,QAASjD,KAAK2L,kBAnCxEzH,cA2CTwH","file":"static/js/Preferential.ef876af4.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace, Toast} from 'antd-mobile'\nimport './index.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http} from \"@/utils\"\nimport {Link} from 'react-router-dom'\nimport Loading from '@/common/Loading'\nimport {bindActionCreators} from 'redux';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 一键拼团\n group = () => {\n http.get(`${API.home}/m/home/grouponList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.state.courseStatus = index\n switch (index) {\n case 0:\n this.specialSale()\n break\n case 1:\n this.bargain()\n break\n default:\n this.group()\n }\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const tabs = [\n {title: '限时特惠'},\n {title: '砍价专区'},\n {title: '一键拼团'}\n ]\n return (\n <div className='preferential'>\n <HeaderSearch></HeaderSearch>\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n\n <Tabs\n tabs={tabs}\n animated={false}\n onChange={(tab, index) => this.ontabclick(tab, index)}\n >\n <div className='tabs'>\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a href=\"/#\" className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n\n </div>\n </Tabs>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search'\n }\n\n return() {\n window.location.href = '/'\n }\n\n goShop = () => {\n location.replace('/shopcart')\n }\n\n\n render() {\n {\n console.log(this.props.toHref);\n }\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i className={'iconfont iconiconfront-68 return'} onClick={this.return.bind(this)}></i>\n }\n {\n this.props.toHref &&\n <i className={'iconfont iconiconfront-68 return'} onClick={this.props.toHref}></i>\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i className={'iconfont icongouwuche-xianxing shopping-cart'} onClick={this.goShop}></i>\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1132:function(e,t,n){},1133:function(e,t,n){},1181:function(e,t,n){"use strict";n.r(t);var a,o,r=n(7),s=n(8),c=n(11),i=n(9),l=n(10),u=n(0),h=n.n(u),f=n(21),p=n(704),d=n(161),m=n(4),v=(n(1132),n(44),n(14)),g=n.n(v),y=(n(1133),n(30)),C=n(52),b=(n(63),Object(f.b)()(a=function(e){function t(){var e,n;Object(r.a)(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(n=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(o)))).state={courses:[]},n.toCourseDetail=function(e){var t=n.props;t.dispatch;t.history.push("/detail?id=".concat(e))},n}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;m.c.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):g.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return h.a.createElement("div",{className:"recommendation"},h.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),h.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var n=h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},t.price1),h.a.createElement("span",{className:"old-price"},t.price0));return h.a.createElement(y.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:n,toDetail:e.toCourseDetail})})))}}]),t}(u.Component))||a),w=Object(C.g)(b),E=function(e){var t=e.item;return h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},"\xa5",t.price1),h.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},O=Object(f.b)()(o=function(e){function t(){var e,n;Object(r.a)(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(n=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(o)))).state={courseList:[],value:"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[]},n.getCourses=function(e){m.c.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&n.setState({courseList:t.data.info.search_data.course})})},n.handleClick=function(e){n.props.history.push("/detail?id=".concat(e))},n.handleSearch=function(){n.state.value&&n.getCourses(n.state.value)},n.handleChange=function(e){n.setState({value:e})},n.toCourseDetail=function(e){var t=n.props;t.dispatch;t.history.push("/detail?id=".concat(e))},n}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.b)("word"))}},{key:"render",value:function(){var e=this,t=this.state.courseList;return h.a.createElement("div",{className:"search-result"},h.a.createElement(p.a,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory}),t&&t.length>0?h.a.createElement("ul",null,t.map(function(t){var n=h.a.createElement("div",{className:"info"},h.a.createElement("p",{className:"title"},t.course_title),h.a.createElement("p",{className:"des"},t.simpledescription),h.a.createElement(E,{item:t})),a=t.bargain_num||t.groupon_num?h.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return h.a.createElement(d.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:n,id:t.course_id,status:a})})):h.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),h.a.createElement(w,null))}}]),t}(u.PureComponent))||o;t.default=O},583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(3),r=(a=o)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var o={};if(t&&t.antLocale&&t.antLocale[n])o=t.antLocale[n];else{var s=a();o=s.default||s}var c=(0,r.default)({},o);e.locale&&(c=(0,r.default)({},c,e.locale),e.locale.lang&&(c.lang=(0,r.default)({},o.lang,e.locale.lang)));return c},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,n){"use strict";n(48),n(607)},607:function(e,t,n){},608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(3)),o=g(n(34)),r=g(n(5)),s=g(n(12)),c=g(n(6)),i=g(n(13)),l=g(n(15)),u=v(n(0)),h=v(n(2)),f=g(n(153)),p=g(n(583)),d=n(588),m=n(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,r.default)(this,t);var n=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,i.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,r=this.props,s=r.prefixCls,c=r.showCancelButton,i=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(610)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),N=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(c||w||b&&b.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:i,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},609:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},704:function(e,t,n){"use strict";n(606);var a=n(608),o=n.n(a),r=n(116),s=n(7),c=n(8),i=n(11),l=n(9),u=n(10),h=n(0),f=n.n(h),p=n(52),d=n(15),m=n.n(d),v=(n(705),function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={isFocus:!1},n.returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,o=e.value;o&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(r.a)(a),[o])))},n.changeFontColor=function(e){n.setState({isFocus:e})},n}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,n=m()("submit-btn",{"submit-btn--active":t});return console.log(t),f.a.createElement("div",{className:"search-head"},f.a.createElement("div",{className:"left",onClick:this.returnPage},f.a.createElement("i",{className:"iconfont iconiconfront-68"})),f.a.createElement("div",{className:"center"},f.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)}})),f.a.createElement("div",{className:"right right-btn",onClick:this.search},f.a.createElement("div",{className:n},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(p.g)(v)},705:function(e,t,n){}}]);
//# sourceMappingURL=SearchResult.43591d80.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","_ref","price1","price0","SearchResult","courseList","value","searchHistory","JSON","parse","localStorage","getItem","getCourses","word","course","handleClick","handleSearch","handleChange","getParam","searchHead","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","Object","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","onClick","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props$searchHis","setItem","stringify","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","cls","classnames","submit-btn--active","console","log","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"0SAUMA,SADLC,2NAGGC,MAAQ,CACJC,QAAS,MAsBbC,eAAiB,SAACC,GAAO,IAAAC,EACSC,EAAKC,MADdF,EACbG,SADaH,EACHI,QAENC,KAAR,cAAAC,OAA2BP,wFAtBf,IAAAQ,EAAAC,KAChBC,IAAKC,IAAL,GAAAJ,OAAYK,IAAI,cAAhB,qBACKC,KAAK,SAAAC,GACqB,IAAnBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVnB,QAASgB,EAAIC,KAAKA,KAAKG,KAAKpB,UAGhCqB,EAAAC,EAAMF,KAAKJ,EAAIC,KAAKM,wCAkB3B,IAAAC,EAAAb,KACEX,EAAWW,KAAKZ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,yCAmBZ,IAAAjH,EAAAC,KACGoL,EAAYpL,KAAKZ,MAAjBgM,QACFW,EAAMC,IAAW,aAAc,CAACC,qBAAsBb,IAE5D,OADAc,QAAQC,IAAIf,GAERgB,EAAAzL,EAAAI,cAAA,OAAKC,UAAU,eAEXoL,EAAAzL,EAAAI,cAAA,OAAKC,UAAU,OAAO8J,QAAS9K,KAAKqL,YAChCe,EAAAzL,EAAAI,cAAA,KAAGC,UAAU,+BAGjBoL,EAAAzL,EAAAI,cAAA,OAAKC,UAAU,UACXoL,EAAAzL,EAAAI,cAAAsL,EAAA1L,EAAA,CACIuB,MAAOlC,KAAKN,MAAMwC,MAClBoH,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJxD,OAAO,EACPD,SAAU/G,KAAKN,MAAMmD,aACrBoH,YAAY,2BACZ/C,QAAS,kBAAMnH,EAAK8L,iBAAgB,IACpCzE,OAAQ,kBAAMrH,EAAK8L,iBAAgB,OAG3CO,EAAAzL,EAAAI,cAAA,OAAKC,UAAU,kBAAkB8J,QAAS9K,KAAKuL,QAC3Ca,EAAAzL,EAAAI,cAAA,OAAKC,UAAW+K,GAAhB,yBAvDKtI,kBA8DV7B,gBAAWuJ","file":"static/js/SearchResult.43591d80.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\n // }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport {getCourses} from './../detail/actions';\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass SearchResult extends PureComponent {\n\n state = {\n courseList: [],\n value: '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || []\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courseList} = this.state\n\n return (\n <div className='search-result'>\n <SearchHeader\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation />\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n console.log(isFocus);\n return (\n <div className=\"search-head\">\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1132:function(e,t,a){},1133:function(e,t,a){},1179:function(e,t,a){"use strict";a.r(t);var n,o,r=a(7),s=a(8),i=a(10),c=a(9),l=a(11),u=a(0),h=a.n(u),f=a(21),p=a(704),d=a(161),m=a(4),v=(a(1132),a(44),a(14)),g=a.n(v),y=(a(1133),a(30)),b=a(52),C=(a(63),Object(f.b)()(n=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={courses:[]},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;m.c.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):g.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return h.a.createElement("div",{className:"recommendation"},h.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),h.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var a=h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},t.price1),h.a.createElement("span",{className:"old-price"},t.price0));return h.a.createElement(y.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})})))}}]),t}(u.Component))||n),w=Object(b.g)(C),E=function(e){var t=e.item;return h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},"\xa5",t.price1),h.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},O=Object(f.b)()(o=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={courseList:[],value:"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[]},a.getCourses=function(e){m.c.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&a.setState({courseList:t.data.info.search_data.course})})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleSearch=function(){a.state.value&&a.getCourses(a.state.value)},a.handleChange=function(e){a.setState({value:e})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.b)("word"))}},{key:"render",value:function(){var e=this,t=this.state.courseList;return h.a.createElement("div",{className:"search-result"},h.a.createElement(p.a,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory}),t&&t.length>0?h.a.createElement("ul",null,t.map(function(t){var a=h.a.createElement("div",{className:"info"},h.a.createElement("p",{className:"title"},t.course_title),h.a.createElement("p",{className:"des"},t.simpledescription),h.a.createElement(E,{item:t})),n=t.bargain_num||t.groupon_num?h.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return h.a.createElement(d.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:a,id:t.course_id,status:n})})):h.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),h.a.createElement(w,null))}}]),t}(u.PureComponent))||o;t.default=O},583:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(3),r=(n=o)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var o={};if(t&&t.antLocale&&t.antLocale[a])o=t.antLocale[a];else{var s=n();o=s.default||s}var i=(0,r.default)({},o);e.locale&&(i=(0,r.default)({},i,e.locale),e.locale.lang&&(i.lang=(0,r.default)({},o.lang,e.locale.lang)));return i},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,a){"use strict";a(48),a(607)},607:function(e,t,a){},608:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(3)),o=g(a(34)),r=g(a(5)),s=g(a(12)),i=g(a(6)),c=g(a(13)),l=g(a(15)),u=v(a(0)),h=v(a(2)),f=g(a(153)),p=g(a(583)),d=a(588),m=a(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,r.default)(this,t);var a=(0,i.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,r=this.props,s=r.prefixCls,i=r.showCancelButton,c=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(610)}).cancelText,b=this.state,C=b.value,w=b.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||C&&C.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&C&&C.length>0))),N=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(i||w||C&&C.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:h&&!C?"visible":"hidden"}},h))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:C,disabled:c,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},609:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},610:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},704:function(e,t,a){"use strict";a(606);var n=a(608),o=a.n(n),r=a(116),s=a(7),i=a(8),c=a(10),l=a(9),u=a(11),h=a(0),f=a.n(h),p=a(52),d=(a(705),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).returnPage=function(){a.props.history.go(-1)},a.search=function(){a.storeKeyword(),a.props.handleSearch()},a.storeKeyword=function(){var e=a.props,t=e.searchHistory,n=void 0===t?[]:t,o=e.value;o&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(r.a)(n),[o])))},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){return f.a.createElement("div",{className:"search-head"},f.a.createElement("div",{className:"left",onClick:this.returnPage},f.a.createElement("i",{className:"iconfont iconiconfront-68"})),f.a.createElement("div",{className:"center"},f.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b"})),f.a.createElement("div",{className:"right right-btn",onClick:this.search},f.a.createElement("div",{className:"submit-btn"},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(p.g)(d)},705:function(e,t,a){}}]);
//# sourceMappingURL=SearchResult.eea16f08.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","_ref","price1","price0","SearchResult","courseList","value","searchHistory","JSON","parse","localStorage","getItem","getCourses","word","course","handleClick","handleSearch","handleChange","getParam","searchHead","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","Object","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","onClick","defaultProps","contextTypes","object","noop","SearchHead","returnPage","go","search","storeKeyword","_this$props$searchHis","setItem","stringify","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","refs","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"0SAUMA,SADLC,2NAGGC,MAAQ,CACJC,QAAS,MAsBbC,eAAiB,SAACC,GAAO,IAAAC,EACSC,EAAKC,MADdF,EACbG,SADaH,EACHI,QAENC,KAAR,cAAAC,OAA2BP,wFAtBf,IAAAQ,EAAAC,KAChBC,IAAKC,IAAL,GAAAJ,OAAYK,IAAI,cAAhB,qBACKC,KAAK,SAAAC,GACqB,IAAnBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVnB,QAASgB,EAAIC,KAAKA,KAAKG,KAAKpB,UAGhCqB,EAAAC,EAAMF,KAAKJ,EAAIC,KAAKM,wCAkB3B,IAAAC,EAAAb,KACEX,EAAWW,KAAKZ,MAAhBC,QACP,OACIyB,EAAAH,EAAAI,cAAA,OAAKC,UAAU,kBACXF,EAAAH,EAAAI,cAAA,OAAKC,UAAU,SAAf,4BACAF,EAAAH,EAAAI,cAAA,OAAKC,UAAU,WAEP3B,EAAQ4B,OAAS,GACjB5B,EAAQ6B,IAAI,SAACC,GACT,IAAMC,EACFN,EAAAH,EAAAI,cAAA,OAAKC,UAAU,UACXF,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O,EACPD,SAAU/G,KAAKN,MAAMmD,aACrBoH,YAAY,8BAEpB4B,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,kBAAkB8J,QAAS9K,KAAKsL,QAC3CO,EAAAlL,EAAAI,cAAA,OAAKC,UAAU,cAAf,yBAxCKyC,kBAgDV7B,gBAAWuJ","file":"static/js/SearchResult.eea16f08.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\n // }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport {getCourses} from './../detail/actions';\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass SearchResult extends PureComponent {\n\n state = {\n courseList: [],\n value: '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || []\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courseList} = this.state\n\n return (\n <div className='search-result'>\n <SearchHeader\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation />\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n\n render() {\n return (\n <div className=\"search-head\">\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"/>\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className=\"submit-btn\">搜索\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1178:function(e,t,a){"use strict";a.r(t);a(737);var c=a(738),n=a.n(c),r=a(23),s=(a(44),a(14)),o=a.n(s),i=a(7),l=a(8),u=a(10),d=a(9),h=a(11),m=(a(257),a(99)),p=a.n(m),f=a(0),v=a.n(f),g=a(21),k=a(30),E=a(64),b=a(18),N=a(158),C=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).state={val:e.item.value},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"onChange",value:function(e,t){var a=e.target.checked;this.props.checkChange(t,a)}},{key:"render",value:function(){var e=this,t=this.props.item,a=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.props.toDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"order-content text-overflow-2"},t.simpledescription),v.a.createElement("p",{className:"order-des"},v.a.createElement("span",{className:"order-newprice"},"\xa5",t.price1),v.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return v.a.createElement("div",{className:"cart-c-item"},v.a.createElement("div",{className:"cart-c-check"},v.a.createElement(n.a,{checked:t.check,onChange:function(a){e.onChange(a,t.course_id)}})),v.a.createElement("div",{className:"card-wrap"},v.a.createElement(N.a,{info:a,src:t.image_name,id:t.course_id,toDetail:this.props.toDetail})))}}]),t}(f.Component),j=function(e){function t(){return Object(i.a)(this,t),Object(u.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-main"},v.a.createElement("div",{className:"cart-c-body"},this.props.data.length>0?this.props.data.map(function(t,a){return v.a.createElement(C,{index:a,changeStock:function(t,a){e.props.changeStock(t,a)},checkChange:function(t,a){e.props.checkChange(t,a)},key:a,item:t,toDetail:e.props.toDetail})}):v.a.createElement("div",{className:"cart-tip"},v.a.createElement("p",{className:"cart-mess"},"\u8fd9\u91cc\u662f\u7a7a\u7684\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),v.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(f.Component),y=(a(901),a(15)),O=a.n(y),I=a(4),w=(a(63),p.a.alert),D=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).getList=function(){I.c.get("".concat(API.home,"/m/cart/list")).then(function(e){200===e.data.code?a.setState({data:e.data.data.courses,isLoading:!1}):o.a.info(e.data.msg,2)})},a.tobuy=function(){console.log(a.state.courseIdarr),I.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(a.state.courseIdarr,"]")).then(function(e){0==e.data.errno?a.props.history.push("/order?id=[".concat(a.state.courseIdarr,"]"),{simple:1}):o.a.info(e.data.msg,2)})},a.todelete=function(){a.state.courseIdarr.length>0&&w("","\u786e\u5b9a\u4ece\u8d2d\u7269\u8f66\u4e2d\u5220\u9664\uff1f",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var e={course_ids:a.state.courseIdarr};I.c.post("".concat(API.home,"/m/cart/remove"),e).then(function(e){200===e.data.code?a.getList():o.a.info(e.data.msg,2)})}}])},a.toCourseDetail=function(e){console.log(e);var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],checkedNum:0,allPrice:0,cartNmu:0,courseIdarr:[],isLoading:!0},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"allChange",value:function(e){var t=e.target.checked,a=this.state.data.map(function(e,a){return Object(r.a)({},e,{check:t})});if(this.setState({data:a}),this.calc(a),t){var c=[];a.map(function(e,t){c.push(e.course_id)}),this.setState({courseIdarr:c})}else this.setState({courseIdarr:[]})}},{key:"checkChange",value:function(e,t){var a=this,c=this.state.data.map(function(a,c){return a.course_id===e?Object(r.a)({},a,{check:t}):a});this.setState({data:c}),this.calc(c);var n=[];c.forEach(function(e,t){e.check?(n.push(e.course_id),a.setState({courseIdarr:n})):a.setState({courseIdarr:n})})}},{key:"calc",value:function(e){var t=0,a=0,c=0,n=[];e.forEach(function(e,r){e.check&&(n.push(e),c+=1,a=n.length,t+=parseFloat(e.price1))}),this.setState({checkedNum:a,allPrice:t,cartNmu:c})}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-page",style:{overflow:"hidden"}},v.a.createElement(k.e,{title:"\u8d2d\u7269\u8f66",arrow:!0,cart:!1,delete:!0,toDelete:this.todelete}),v.a.createElement(E.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"cart-body"},v.a.createElement(j,{checkChange:this.checkChange.bind(this),data:this.state.data,toDetail:this.toCourseDetail}),v.a.createElement("div",{className:"cart-footer"},v.a.createElement("div",{className:"cart-label"},v.a.createElement(n.a,{onChange:function(t){e.allChange(t)}}),v.a.createElement("div",null,"\u5168\u9009")),v.a.createElement("div",{className:"all-pirce"},v.a.createElement("p",null,v.a.createElement("span",null,"\u5408\u8ba1\uff1a"),v.a.createElement("span",null,"\uffe5",this.state.allPrice))),v.a.createElement("div",{className:O()({active:this.state.checkedNum>0}),onClick:function(){e.state.checkedNum>0&&e.tobuy()}},"\u7ed3\u7b97",v.a.createElement("span",null," ( ",this.state.checkedNum," ) "))))))}}]),t}(f.Component);t.default=Object(g.b)()(D)},901:function(e,t,a){}}]);
//# sourceMappingURL=ShopCart.45a1532d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1178:function(e,t,a){"use strict";a.r(t);a(737);var c=a(738),n=a.n(c),r=a(23),s=(a(44),a(14)),o=a.n(s),i=a(7),l=a(8),u=a(11),d=a(9),h=a(10),m=(a(257),a(99)),p=a.n(m),f=a(0),v=a.n(f),g=a(21),k=a(30),E=a(64),b=a(18),N=a(158),C=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).state={val:e.item.value},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"onChange",value:function(e,t){var a=e.target.checked;this.props.checkChange(t,a)}},{key:"render",value:function(){var e=this,t=this.props.item,a=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.props.toDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"order-content text-overflow-2"},t.simpledescription),v.a.createElement("p",{className:"order-des"},v.a.createElement("span",{className:"order-newprice"},"\xa5",t.price1),v.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return v.a.createElement("div",{className:"cart-c-item"},v.a.createElement("div",{className:"cart-c-check"},v.a.createElement(n.a,{checked:t.check,onChange:function(a){e.onChange(a,t.course_id)}})),v.a.createElement("div",{className:"card-wrap"},v.a.createElement(N.a,{info:a,src:t.image_name,id:t.course_id,toDetail:this.props.toDetail})))}}]),t}(f.Component),j=function(e){function t(){return Object(i.a)(this,t),Object(u.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-main"},v.a.createElement("div",{className:"cart-c-body"},this.props.data.length>0?this.props.data.map(function(t,a){return v.a.createElement(C,{index:a,changeStock:function(t,a){e.props.changeStock(t,a)},checkChange:function(t,a){e.props.checkChange(t,a)},key:a,item:t,toDetail:e.props.toDetail})}):v.a.createElement("div",{className:"cart-tip"},v.a.createElement("p",{className:"cart-mess"},"\u8fd9\u91cc\u662f\u7a7a\u7684\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),v.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(f.Component),y=(a(901),a(15)),O=a.n(y),I=a(4),w=(a(63),p.a.alert),D=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).getList=function(){I.c.get("".concat(API.home,"/m/cart/list")).then(function(e){200===e.data.code?a.setState({data:e.data.data.courses,isLoading:!1}):o.a.info(e.data.msg,2)})},a.tobuy=function(){console.log(a.state.courseIdarr),I.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(a.state.courseIdarr,"]")).then(function(e){0==e.data.errno?a.props.history.push("/order?id=[".concat(a.state.courseIdarr,"]"),{simple:1}):o.a.info(e.data.msg,2)})},a.todelete=function(){a.state.courseIdarr.length>0&&w("","\u786e\u5b9a\u4ece\u8d2d\u7269\u8f66\u4e2d\u5220\u9664\uff1f",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var e={course_ids:a.state.courseIdarr};I.c.post("".concat(API.home,"/m/cart/remove"),e).then(function(e){200===e.data.code?a.getList():o.a.info(e.data.msg,2)})}}])},a.toCourseDetail=function(e){console.log(e);var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],checkedNum:0,allPrice:0,cartNmu:0,courseIdarr:[],isLoading:!0},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"allChange",value:function(e){var t=e.target.checked,a=this.state.data.map(function(e,a){return Object(r.a)({},e,{check:t})});if(this.setState({data:a}),this.calc(a),t){var c=[];a.map(function(e,t){c.push(e.course_id)}),this.setState({courseIdarr:c})}else this.setState({courseIdarr:[]})}},{key:"checkChange",value:function(e,t){var a=this,c=this.state.data.map(function(a,c){return a.course_id===e?Object(r.a)({},a,{check:t}):a});this.setState({data:c}),this.calc(c);var n=[];c.forEach(function(e,t){e.check?(n.push(e.course_id),a.setState({courseIdarr:n})):a.setState({courseIdarr:n})})}},{key:"calc",value:function(e){var t=0,a=0,c=0,n=[];e.forEach(function(e,r){e.check&&(n.push(e),c+=1,a=n.length,t+=parseFloat(e.price1))}),this.setState({checkedNum:a,allPrice:t,cartNmu:c})}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-page",style:{overflow:"hidden"}},v.a.createElement(k.e,{title:"\u8d2d\u7269\u8f66",arrow:!0,cart:!1,delete:!0,toDelete:this.todelete}),v.a.createElement(E.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"cart-body"},v.a.createElement(j,{checkChange:this.checkChange.bind(this),data:this.state.data,toDetail:this.toCourseDetail}),v.a.createElement("div",{className:"cart-footer"},v.a.createElement("div",{className:"cart-label"},v.a.createElement(n.a,{onChange:function(t){e.allChange(t)}}),v.a.createElement("div",null,"\u5168\u9009")),v.a.createElement("div",{className:"all-pirce"},v.a.createElement("p",null,v.a.createElement("span",null,"\u5408\u8ba1\uff1a"),v.a.createElement("span",null,"\uffe5",this.state.allPrice))),v.a.createElement("div",{className:O()({active:this.state.checkedNum>0}),onClick:function(){e.state.checkedNum>0&&e.tobuy()}},"\u7ed3\u7b97",v.a.createElement("span",null," ( ",this.state.checkedNum," ) "))))))}}]),t}(f.Component);t.default=Object(g.b)()(D)},901:function(e,t,a){}}]);
//# sourceMappingURL=ShopCart.dd56865b.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/shopCart/cartItem.js","components/shopCart/cartList.js","components/shopCart/index.js"],"names":["CartItem","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","val","item","value","e","id","checked","target","checkChange","_this2","Info","react_default","a","createElement","className","onClick","toDetail","course_id","course_title","simpledescription","price1","price0","checkbox_default","check","onChange","OrderList","info","src","image_name","Component","cartList","data","length","map","index","cartItem","changeStock","key","react_router_dom","to","alert","modal_default","Cart","getList","http","get","concat","API","home","then","res","code","setState","courses","isLoading","toast_default","msg","tobuy","console","log","courseIdarr","errno","history","push","simple","todelete","text","onPress","course_ids","post","toCourseDetail","_this$props","dispatch","checkedNum","allPrice","cartNmu","newData","i","objectSpread","calc","arr","forEach","parseFloat","_this3","style","overflow","common","title","arrow","cart","delete","toDelete","Loading","shopCart_cartList","bind","allChange","classnames","active","connect"],"mappings":"yRA0DeA,cAlDX,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,E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,MAEnBO,EAAAC,EAAAC,cAAA,4BAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAAA,SACIF,EAAAC,EAAAC,cAAA,kCACAF,EAAAC,EAAAC,cAAA,qBAAQjB,KAAKI,MAAM0E,YAG3B/D,EAAAC,EAAAC,cAAA,OAAKC,UAAWkF,IAAW,CACvBC,OAAUrG,KAAKI,MAAMyE,WAAa,IAClC1D,QAAS,WACLoE,EAAKnF,MAAMyE,WAAa,GACxBU,EAAK1B,UAJb,eAOM9C,EAAAC,EAAAC,cAAA,kBAAUjB,KAAKI,MAAMyE,WAArB,mBApMf5C,aAiNJqE,wBAAUxD","file":"static/js/ShopCart.45a1532d.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Checkbox } from 'antd-mobile';\nimport OrderList from '@/common/OrderList';\nimport {Link} from \"react-router-dom\";\n\n\nclass CartItem extends Component {\n // 构造函数\n constructor(props) {\n super(props)\n this.state = {\n val: props.item.value\n }\n }\n // 改变选择\n onChange(e, id) {\n let checked = e.target.checked\n this.props.checkChange(id, checked)\n }\n\n render() {\n let item = this.props.item\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={()=>this.props.toDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n\n return (\n <div className=\"cart-c-item\" >\n <div className=\"cart-c-check\">\n <Checkbox checked={item.check} onChange={(e) => {\n this.onChange(e, item.course_id)\n }} />\n </div>\n\n <div className=\"card-wrap\">\n <OrderList \n info={Info} \n src={item.image_name} \n id={item.course_id}\n toDetail={this.props.toDetail}\n ></OrderList>\n </div>\n </div>\n\n )\n }\n}\nexport default CartItem;","import React, {Component} from 'react'\nimport {Link} from 'react-router-dom'\nimport CartItem from './cartItem'\n\nclass cartList extends Component {\n render() {\n return (\n <div className=\"cart-main\">\n {/* 遍历购物车商品列表 */}\n <div className=\"cart-c-body\">\n {\n this.props.data.length > 0 ?\n this.props.data.map((item, index) => {\n return (\n <CartItem\n index={index}\n changeStock={(id, val) => {\n this.props.changeStock(id, val)\n }}\n checkChange={(id, val) => {\n this.props.checkChange(id, val)\n }}\n key={index} \n item={item}\n toDetail={this.props.toDetail}\n />\n )\n })\n : <div className=\"cart-tip\">\n <p className='cart-mess'>这里是空的,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default cartList;","import React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {Checkbox, Modal, Toast} from 'antd-mobile'\nimport {HeaderBar} from '../../common'\nimport Loading from '@/common/Loading'\nimport ShopCart from './cartList.js'\nimport './card.scss'\nimport classnames from 'classnames'\nimport {http} from \"@/utils\";\nimport {getCourses} from './../detail/actions';\n\nconst alert = Modal.alert;\n\nclass Cart extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n checkedNum: 0,\n allPrice: 0,\n cartNmu: 0,\n courseIdarr: [], // 选中的课程id\n isLoading: true\n }\n\n }\n\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取课程列表\n getList = () => {\n http.get(`${API.home}/m/cart/list`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data.courses,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n //全选\n allChange(e) {\n let checked = e.target.checked\n let newData = this.state.data.map((item, i) => {\n return {\n ...item,\n check: checked\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n\n if (checked) {\n let arr = []\n newData.map((item, i) => {\n arr.push(item.course_id)\n })\n this.setState({\n courseIdarr: arr\n })\n\n } else {\n this.setState({\n courseIdarr: []\n })\n }\n\n }\n\n //点击\n checkChange(id, check) {\n let newData = this.state.data.map((item, i) => {\n if (item.course_id === id) {\n return {\n ...item,\n check: check\n }\n } else {\n return item;\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item.course_id)\n this.setState({\n courseIdarr: arr\n })\n } else {\n this.setState({\n courseIdarr: arr\n })\n }\n })\n }\n\n //计算总价\n calc(newData) {\n let allPrice = 0;\n let checkedNum = 0;\n let cartNmu = 0;\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item)\n cartNmu += 1;\n checkedNum = arr.length;\n allPrice += parseFloat(item.price1);\n }\n })\n this.setState({\n checkedNum,\n allPrice,\n cartNmu\n })\n }\n\n // 去结算\n tobuy = () => {\n console.log(this.state.courseIdarr);\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {\n if (res.data.errno == 0) {\n this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n\n // 删除\n todelete = () => {\n if (this.state.courseIdarr.length > 0) {\n alert('', '确定从购物车中删除?', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n course_ids: this.state.courseIdarr\n }\n http.post(`${API.home}/m/cart/remove`, data).then((res) => {\n if (res.data.code === 200) {\n this.getList()\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n }\n\n toCourseDetail = (id) => {\n console.log(id);\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n return (\n <div className=\"cart-page\" style={{overflow: 'hidden'}}>\n <HeaderBar title='购物车' arrow={true} cart={false} delete={true} toDelete={this.todelete}></HeaderBar>\n\n <Loading isLoading={this.state.isLoading}>\n <div className=\"cart-body\">\n <ShopCart\n checkChange={this.checkChange.bind(this)}\n data={this.state.data}\n toDetail={this.toCourseDetail}\n />\n\n <div className=\"cart-footer\">\n <div className=\"cart-label\">\n <Checkbox onChange={(e) => {\n this.allChange(e)\n }}/>\n <div>全选</div>\n </div>\n <div className=\"all-pirce\">\n <p>\n <span>合计:</span>\n <span>¥{this.state.allPrice}</span>\n </p>\n </div>\n <div className={classnames({\n 'active': this.state.checkedNum > 0\n })} onClick={() => {\n if (this.state.checkedNum > 0) {\n this.tobuy()\n }\n }}>\n 结算<span> ( {this.state.checkedNum} ) </span>\n </div>\n </div>\n\n </div>\n </Loading>\n\n\n </div>\n )\n }\n}\n\nexport default connect()(Cart)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/shopCart/cartItem.js","components/shopCart/cartList.js","components/shopCart/index.js"],"names":["CartItem","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","val","item","value","e","id","checked","target","checkChange","_this2","Info","react_default","a","createElement","className","onClick","toDetail","course_id","course_title","simpledescription","price1","price0","checkbox_default","check","onChange","OrderList","info","src","image_name","Component","cartList","data","length","map","index","cartItem","changeStock","key","react_router_dom","to","alert","modal_default","Cart","getList","http","get","concat","API","home","then","res","code","setState","courses","isLoading","toast_default","msg","tobuy","console","log","courseIdarr","errno","history","push","simple","todelete","text","onPress","course_ids","post","toCourseDetail","_this$props","dispatch","checkedNum","allPrice","cartNmu","newData","i","objectSpread","calc","arr","forEach","parseFloat","_this3","style","overflow","common","title","arrow","cart","delete","toDelete","Loading","shopCart_cartList","bind","allChange","classnames","active","connect"],"mappings":"yRA0DeA,cAlDX,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KACDQ,MAAQ,CACTC,IAAKT,EAAMU,KAAKC,OAHLV,wEAOVW,EAAGC,GACR,IAAIC,EAAUF,EAAEG,OAAOD,QACvBV,KAA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AAAC,EAAAC,cAAA,OAAKC,UAAWkF,IAAW,CACvBC,OAAUrG,KAAKI,MAAMyE,WAAa,IAClC1D,QAAS,WACLoE,EAAKnF,MAAMyE,WAAa,GACxBU,EAAK1B,UAJb,eAOM9C,EAAAC,EAAAC,cAAA,kBAAUjB,KAAKI,MAAMyE,WAArB,mBApMf5C,aAiNJqE,wBAAUxD","file":"static/js/ShopCart.dd56865b.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Checkbox } from 'antd-mobile';\nimport OrderList from '@/common/OrderList';\nimport {Link} from \"react-router-dom\";\n\n\nclass CartItem extends Component {\n // 构造函数\n constructor(props) {\n super(props)\n this.state = {\n val: props.item.value\n }\n }\n // 改变选择\n onChange(e, id) {\n let checked = e.target.checked\n this.props.checkChange(id, checked)\n }\n\n render() {\n let item = this.props.item\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={()=>this.props.toDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n\n return (\n <div className=\"cart-c-item\" >\n <div className=\"cart-c-check\">\n <Checkbox checked={item.check} onChange={(e) => {\n this.onChange(e, item.course_id)\n }} />\n </div>\n\n <div className=\"card-wrap\">\n <OrderList \n info={Info} \n src={item.image_name} \n id={item.course_id}\n toDetail={this.props.toDetail}\n ></OrderList>\n </div>\n </div>\n\n )\n }\n}\nexport default CartItem;","import React, {Component} from 'react'\nimport {Link} from 'react-router-dom'\nimport CartItem from './cartItem'\n\nclass cartList extends Component {\n render() {\n return (\n <div className=\"cart-main\">\n {/* 遍历购物车商品列表 */}\n <div className=\"cart-c-body\">\n {\n this.props.data.length > 0 ?\n this.props.data.map((item, index) => {\n return (\n <CartItem\n index={index}\n changeStock={(id, val) => {\n this.props.changeStock(id, val)\n }}\n checkChange={(id, val) => {\n this.props.checkChange(id, val)\n }}\n key={index} \n item={item}\n toDetail={this.props.toDetail}\n />\n )\n })\n : <div className=\"cart-tip\">\n <p className='cart-mess'>这里是空的,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default cartList;","import React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {Checkbox, Modal, Toast} from 'antd-mobile'\nimport {HeaderBar} from '../../common'\nimport Loading from '@/common/Loading'\nimport ShopCart from './cartList.js'\nimport './card.scss'\nimport classnames from 'classnames'\nimport {http} from \"@/utils\";\nimport {getCourses} from './../detail/actions';\n\nconst alert = Modal.alert;\n\nclass Cart extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n checkedNum: 0,\n allPrice: 0,\n cartNmu: 0,\n courseIdarr: [], // 选中的课程id\n isLoading: true\n }\n\n }\n\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取课程列表\n getList = () => {\n http.get(`${API.home}/m/cart/list`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data.courses,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n //全选\n allChange(e) {\n let checked = e.target.checked\n let newData = this.state.data.map((item, i) => {\n return {\n ...item,\n check: checked\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n\n if (checked) {\n let arr = []\n newData.map((item, i) => {\n arr.push(item.course_id)\n })\n this.setState({\n courseIdarr: arr\n })\n\n } else {\n this.setState({\n courseIdarr: []\n })\n }\n\n }\n\n //点击\n checkChange(id, check) {\n let newData = this.state.data.map((item, i) => {\n if (item.course_id === id) {\n return {\n ...item,\n check: check\n }\n } else {\n return item;\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item.course_id)\n this.setState({\n courseIdarr: arr\n })\n } else {\n this.setState({\n courseIdarr: arr\n })\n }\n })\n }\n\n //计算总价\n calc(newData) {\n let allPrice = 0;\n let checkedNum = 0;\n let cartNmu = 0;\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item)\n cartNmu += 1;\n checkedNum = arr.length;\n allPrice += parseFloat(item.price1);\n }\n })\n this.setState({\n checkedNum,\n allPrice,\n cartNmu\n })\n }\n\n // 去结算\n tobuy = () => {\n console.log(this.state.courseIdarr);\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {\n if (res.data.errno == 0) {\n this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n\n // 删除\n todelete = () => {\n if (this.state.courseIdarr.length > 0) {\n alert('', '确定从购物车中删除?', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n course_ids: this.state.courseIdarr\n }\n http.post(`${API.home}/m/cart/remove`, data).then((res) => {\n if (res.data.code === 200) {\n this.getList()\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n }\n\n toCourseDetail = (id) => {\n console.log(id);\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n return (\n <div className=\"cart-page\" style={{overflow: 'hidden'}}>\n <HeaderBar title='购物车' arrow={true} cart={false} delete={true} toDelete={this.todelete}></HeaderBar>\n\n <Loading isLoading={this.state.isLoading}>\n <div className=\"cart-body\">\n <ShopCart\n checkChange={this.checkChange.bind(this)}\n data={this.state.data}\n toDetail={this.toCourseDetail}\n />\n\n <div className=\"cart-footer\">\n <div className=\"cart-label\">\n <Checkbox onChange={(e) => {\n this.allChange(e)\n }}/>\n <div>全选</div>\n </div>\n <div className=\"all-pirce\">\n <p>\n <span>合计:</span>\n <span>¥{this.state.allPrice}</span>\n </p>\n </div>\n <div className={classnames({\n 'active': this.state.checkedNum > 0\n })} onClick={() => {\n if (this.state.checkedNum > 0) {\n this.tobuy()\n }\n }}>\n 结算<span> ( {this.state.checkedNum} ) </span>\n </div>\n </div>\n\n </div>\n </Loading>\n\n\n </div>\n )\n }\n}\n\nexport default connect()(Cart)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1153:function(e,a,t){},1173:function(e,a,t){"use strict";t.r(a);var s=t(7),c=t(8),n=t(10),r=t(9),l=t(11),i=t(0),m=t.n(i),o=(t(1153),t(159)),d=t(4),u=(t(145),t(18)),v=function(e){function a(){var e,t;Object(s.a)(this,a);for(var c=arguments.length,l=new Array(c),i=0;i<c;i++)l[i]=arguments[i];return(t=Object(n.a)(this,(e=Object(r.a)(a)).call.apply(e,[this].concat(l)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},t}return Object(l.a)(a,e),Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this,a=new URLSearchParams(this.props.location.search);d.c.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(a.get("id"),"/").concat(a.get("vId"))).then(function(a){if(200==a.data.errno){var t=a.data.data;e.setState({course:{title:t.course_title,des:t.course_desc,img:t.image_name,id:t.course_id},user:{avatar:t.avatar,name:t.username,time:t.create_time},progress:{days:t.learn_day_num,action:t.action_power}}),Object(d.h)({title:t.share_title,desc:t.share_desc,imgUrl:t.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,a=e.user,t=e.course,s=e.progress;return m.a.createElement("div",{className:"aist-share"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"user"},m.a.createElement("img",{src:a.avatar,alt:"\u5934\u50cf"}),m.a.createElement("span",{className:"username"},a.name),m.a.createElement("span",{className:"time"},a.time)),m.a.createElement(u.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},m.a.createElement("div",{className:"course"},m.a.createElement("div",{className:"course-cover"},m.a.createElement("img",{src:t.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),m.a.createElement("div",{className:"course-info"},m.a.createElement("div",{className:"title"},t.title),m.a.createElement("div",{className:"des"},t.des)))),m.a.createElement("ul",{className:"progress"},m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.days),"\u5929")),m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.action),"%"))),m.a.createElement("div",{className:"recommend-app"},m.a.createElement("div",{className:"text"},m.a.createElement("div",{className:"bold"},m.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),m.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),m.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),m.a.createElement("div",{className:"qrcode"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),a}(i.PureComponent);a.default=Object(o.a)(v)}}]);
//# sourceMappingURL=aist-share.fb4d12aa.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1153:function(e,a,t){},1173:function(e,a,t){"use strict";t.r(a);var s=t(7),c=t(8),n=t(11),r=t(9),l=t(10),i=t(0),m=t.n(i),o=(t(1153),t(159)),d=t(4),u=(t(145),t(18)),v=function(e){function a(){var e,t;Object(s.a)(this,a);for(var c=arguments.length,l=new Array(c),i=0;i<c;i++)l[i]=arguments[i];return(t=Object(n.a)(this,(e=Object(r.a)(a)).call.apply(e,[this].concat(l)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},t}return Object(l.a)(a,e),Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this,a=new URLSearchParams(this.props.location.search);d.c.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(a.get("id"),"/").concat(a.get("vId"))).then(function(a){if(200==a.data.errno){var t=a.data.data;e.setState({course:{title:t.course_title,des:t.course_desc,img:t.image_name,id:t.course_id},user:{avatar:t.avatar,name:t.username,time:t.create_time},progress:{days:t.learn_day_num,action:t.action_power}}),Object(d.h)({title:t.share_title,desc:t.share_desc,imgUrl:t.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,a=e.user,t=e.course,s=e.progress;return m.a.createElement("div",{className:"aist-share"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"user"},m.a.createElement("img",{src:a.avatar,alt:"\u5934\u50cf"}),m.a.createElement("span",{className:"username"},a.name),m.a.createElement("span",{className:"time"},a.time)),m.a.createElement(u.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},m.a.createElement("div",{className:"course"},m.a.createElement("div",{className:"course-cover"},m.a.createElement("img",{src:t.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),m.a.createElement("div",{className:"course-info"},m.a.createElement("div",{className:"title"},t.title),m.a.createElement("div",{className:"des"},t.des)))),m.a.createElement("ul",{className:"progress"},m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.days),"\u5929")),m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.action),"%"))),m.a.createElement("div",{className:"recommend-app"},m.a.createElement("div",{className:"text"},m.a.createElement("div",{className:"bold"},m.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),m.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),m.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),m.a.createElement("div",{className:"qrcode"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),a}(i.PureComponent);a.default=Object(o.a)(v)}}]);
//# sourceMappingURL=aist-share.966b948f.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/index.js"],"names":["AistShare","state","course","title","des","img","id","progress","days","action","showShareCover","user","avatar","name","time","_this2","this","search","URLSearchParams","props","location","http","get","concat","API","then","res","data","errno","setState","course_title","course_desc","image_name","course_id","username","create_time","learn_day_num","action_power","wxShare","share_title","desc","share_desc","imgUrl","link","href","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","pathname","PureComponent","withFullSize"],"mappings":"8NAOMA,6MACFC,MAAQ,CACJC,OAAQ,CACJC,MAAO,GACPC,IAAK,GACLC,IAAK,GACLC,GAAI,IAERC,SAAU,CACNC,KAAM,EACNC,OAAQ,GAEZC,gBAAgB,EAChBC,KAAM,CACFC,OAAQ,GACRC,KAAM,GACNC,KAAM,wFAIM,IAAAC,EAAAC,KACVC,EAAS,IAAIC,gBAAgBF,KAAKG,MAAMC,SAASH,QACvDI,IAAKC,IAAL,GAAAC,OAAYC,IAAI,YAAhB,8BAAAD,OAAwDN,EAAOK,IAAI,MAAnE,KAAAC,OAA4EN,EAAOK,IAAI,SAClFG,KAAK,SAAAC,GACF,GAAsB,KAAlBA,EAAIC,KAAKC,MAAc,CACvB,IAAMD,EAAOD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AAAC,cAAA,MAAIC,UAAU,YACVH,EAAAC,EAAAC,cAAA,UACIF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAf,4BACAH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,kBAAiBH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,OAAO1C,EAASC,MAAhE,WAEJsC,EAAAC,EAAAC,cAAA,UACIF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAf,kCACAH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,kBAAiBH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,OAAO1C,EAASE,QAAhE,OAGRqC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,QACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,QACXH,EAAAC,EAAAC,cAAA,2EACAF,EAAAC,EAAAC,cAAA,0DAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAf,yDAEIH,EAAAC,EAAAC,cAAA,OAAKE,IAAI,gFACJC,IAAI,OAGjBL,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,OAAKE,IAAI,+EACJC,IAAI,gBApGbI,iBA6GTC,sBAAaxD","file":"static/js/aist-share.fb4d12aa.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport './aist-share.scss'\nimport withFullSize from '@/HOCs/WithFullSize'\nimport { http, wxShare } from \"@/utils\";\nimport { getWXObject } from \"@/utils/wechat/base\";\nimport {Link} from \"react-router-dom\";\n\nclass AistShare extends PureComponent {\n state = {\n course: {\n title: '',\n des: '',\n img: '',\n id: ''\n },\n progress: {\n days: 0,\n action: 0\n },\n showShareCover: true,\n user: {\n avatar: '',\n name: '',\n time: ''\n }\n }\n\n componentDidMount() {\n const search = new URLSearchParams(this.props.location.search);\n http.get(`${API['base-api']}/m/aist/share_ground_data/${search.get('id')}/${search.get('vId')}`)\n .then(res => {\n if (res.data.errno == 200) {\n const data = res.data.data;\n this.setState({\n course: {\n title: data.course_title,\n des: data.course_desc,\n img: data.image_name,\n id: data.course_id\n },\n user: {\n avatar: data.avatar,\n name: data.username,\n time: data.create_time\n },\n progress: {\n days: data.learn_day_num,\n action: data.action_power\n }\n })\n wxShare({\n title: data.share_title,\n desc: data.share_desc,\n imgUrl: data.image_name,\n link: location.href\n })\n }\n\n })\n }\n\n\n render() {\n const {user, course, progress} = this.state\n return (\n <div className='aist-share'>\n <div className=\"content\">\n <div className=\"user\">\n <img src={user.avatar} alt=\"头像\"/>\n <span className=\"username\">{user.name}</span>\n <span className=\"time\">{user.time}</span>\n </div>\n <Link to={{pathname: '/detail', search: `?id=${this.state.course.id}`}}>\n <div className=\"course\">\n <div className=\"course-cover\">\n <img src={course.img} alt=\"课程封面\"/>\n </div>\n <div className=\"course-info\">\n <div className=\"title\">{course.title}</div>\n <div className=\"des\">{course.des}</div>\n </div>\n </div>\n </Link>\n <ul className=\"progress\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.days}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.action}</span>%</div>\n </li>\n </ul>\n <div className=\"recommend-app\">\n <div className=\"text\">\n <div className=\"bold\">\n <div>立即下载【七月在线】</div>\n <div>众多好课免费学</div>\n </div>\n <div className=\"light\">\n 长按识别右侧二维码\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png\"\n alt=\"\"/>\n </div>\n </div>\n <div className=\"qrcode\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default withFullSize(AistShare);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/index.js"],"names":["AistShare","state","course","title","des","img","id","progress","days","action","showShareCover","user","avatar","name","time","_this2","this","search","URLSearchParams","props","location","http","get","concat","API","then","res","data","errno","setState","course_title","course_desc","image_name","course_id","username","create_time","learn_day_num","action_power","wxShare","share_title","desc","share_desc","imgUrl","link","href","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","pathname","PureComponent","withFullSize"],"mappings":"8NAOMA,6MACFC,MAAQ,CACJC,OAAQ,CACJC,MAAO,GACPC,IAAK,GACLC,IAAK,GACLC,GAAI,IAERC,SAAU,CACNC,KAAM,EACNC,OAAQ,GAEZC,gBAAgB,EAChBC,KAAM,CACFC,OAAQ,GACRC,KAAM,GACNC,KAAM,wFAIM,IAAAC,EAAAC,KACVC,EAAS,IAAIC,gBAAgBF,KAAKG,MAAMC,SAASH,QACvDI,IAAKC,IAAL,GAAAC,OAAYC,IAAI,YAAhB,8BAAAD,OAAwDN,EAAOK,IAAI,MAAnE,KAAAC,OAA4EN,EAAOK,IAAI,SAClFG,KAAK,SAAAC,GACF,GAAsB,KAAlBA,EAAIC,KAAKC,MAAc,CACvB,IAAMD,EAAOD,EAAIC,KAAKA,KACtBZ,EAAKc,SAAS,CACV3B,OAAQ,CACJC,MAAOwB,EAAKG,aACZ1B,IAAKuB,EAAKI,YACV1B,IAAKsB,EAAKK,WACV1B,GAAIqB,EAAKM,WAEbtB,KAAM,CACFC,OAAQe,EAAKf,OACbC,KAAMc,EAAKO,SACXpB,KAAMa,EAAKQ,aAEf5B,SAAU,CACNC,KAAMmB,EAAKS,cACX3B,OAAQkB,EAAKU,gBAGrBC,YAAQ,CACJnC,MAAOwB,EAAKY,YACZC,KAAMb,EAAKc,WACXC,OAAQf,EAAKK,WACbW,KAAMvB,SAASwB,2CAQ1B,IAAAC,EAC4B7B,KAAKf,MAA/BU,EADFkC,EACElC,KAAMT,EADR2C,EACQ3C,OAAQK,EADhBsC,EACgBtC,SACrB,OACIuC,EAAAC,EAAAC,cAAA,OAAKC,UA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AAA,2EACAF,EAAAC,EAAAC,cAAA,0DAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAf,yDAEIH,EAAAC,EAAAC,cAAA,OAAKE,IAAI,gFACJC,IAAI,OAGjBL,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,OAAKE,IAAI,+EACJC,IAAI,gBApGbI,iBA6GTC,sBAAaxD","file":"static/js/aist-share.966b948f.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport './aist-share.scss'\nimport withFullSize from '@/HOCs/WithFullSize'\nimport { http, wxShare } from \"@/utils\";\nimport { getWXObject } from \"@/utils/wechat/base\";\nimport {Link} from \"react-router-dom\";\n\nclass AistShare extends PureComponent {\n state = {\n course: {\n title: '',\n des: '',\n img: '',\n id: ''\n },\n progress: {\n days: 0,\n action: 0\n },\n showShareCover: true,\n user: {\n avatar: '',\n name: '',\n time: ''\n }\n }\n\n componentDidMount() {\n const search = new URLSearchParams(this.props.location.search);\n http.get(`${API['base-api']}/m/aist/share_ground_data/${search.get('id')}/${search.get('vId')}`)\n .then(res => {\n if (res.data.errno == 200) {\n const data = res.data.data;\n this.setState({\n course: {\n title: data.course_title,\n des: data.course_desc,\n img: data.image_name,\n id: data.course_id\n },\n user: {\n avatar: data.avatar,\n name: data.username,\n time: data.create_time\n },\n progress: {\n days: data.learn_day_num,\n action: data.action_power\n }\n })\n wxShare({\n title: data.share_title,\n desc: data.share_desc,\n imgUrl: data.image_name,\n link: location.href\n })\n }\n\n })\n }\n\n\n render() {\n const {user, course, progress} = this.state\n return (\n <div className='aist-share'>\n <div className=\"content\">\n <div className=\"user\">\n <img src={user.avatar} alt=\"头像\"/>\n <span className=\"username\">{user.name}</span>\n <span className=\"time\">{user.time}</span>\n </div>\n <Link to={{pathname: '/detail', search: `?id=${this.state.course.id}`}}>\n <div className=\"course\">\n <div className=\"course-cover\">\n <img src={course.img} alt=\"课程封面\"/>\n </div>\n <div className=\"course-info\">\n <div className=\"title\">{course.title}</div>\n <div className=\"des\">{course.des}</div>\n </div>\n </div>\n </Link>\n <ul className=\"progress\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.days}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.action}</span>%</div>\n </li>\n </ul>\n <div className=\"recommend-app\">\n <div className=\"text\">\n <div className=\"bold\">\n <div>立即下载【七月在线】</div>\n <div>众多好课免费学</div>\n </div>\n <div className=\"light\">\n 长按识别右侧二维码\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png\"\n alt=\"\"/>\n </div>\n </div>\n <div className=\"qrcode\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default withFullSize(AistShare);"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1175:function(e,t,a){"use strict";a.r(t);var n=a(25),o=(a(44),a(14)),c=a.n(o),s=a(116),i=a(7),r=a(8),l=a(10),u=a(9),p=a(11),d=a(0),m=a.n(d),h=(a(778),a(779),a(780),a(15)),f=a.n(h),v=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).clearInput=function(){a.props.onChange("")},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.type,a=e.placeholder;return m.a.createElement("div",{className:"custom-input-wrapper"},m.a.createElement("input",{type:t,className:f()("custom-input"),placeholder:a,onChange:this.props.onChange,value:this.props.value}),m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(d.Component);v.defaultProps={type:"text",placeholder:""};var C,b=v,g=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return m.a.createElement("div",{className:"exchange-bar"},m.a.createElement(b,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),m.a.createElement("button",{className:f()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(d.Component),y=(a(781),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).pick=function(){var e=a.props,t=e.useCoupon;!e.invalid&&t&&t(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.ctype,a=e.amount,n=e.format_expire_time,o=e.limit_course,c=e.invalid,s=e.course_title,i=e.id,r=e.selectedCouponId,l=e.showUseButton;return m.a.createElement("li",{className:"coupon",onClick:this.pick},m.a.createElement("div",{className:f()("coupon-info",c?"invalid":"coupon-type".concat(t))},m.a.createElement("p",{className:"type"},1===t?"\u4ee3\u91d1\u5238":"\u8bfe\u7a0b\u5238"),1===t?m.a.createElement("p",{className:"denomination"},a," ",m.a.createElement("span",null,"\u5143")):m.a.createElement("p",{className:"course-title"},s),m.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",n),r===i&&m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-5",{check:!c})}),m.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return m.a.createElement("li",{key:t})}))),m.a.createElement("div",{className:"coupon-des"},m.a.createElement("span",{className:"limit"},0===o?"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b":"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),l&&m.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528")))}}]),t}(d.PureComponent)),E=a(4),j=a(71),O=a(40),_=a(30),I=a(21),w=(a(63),Object(I.b)()(C=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(E.b)("id"),showUseButton:!1},a.handleChange=function(e){var t=e?e.target.value:"";a.setState({redeemCode:t})},a.exchange=function(){var e=a.props.location.state,t=void 0===e?{}:e;""!==a.state.redeemCode?E.c.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if(a.state.showUseButton)a.setState({couponList:[].concat(Object(s.a)(a.state.couponList),[o]),redeemCode:""});else{var i=n.data;2==i.ctype&&i.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(s.a)(a.state.invalid_coupons),[i]),showUseButton:null}):a.setState({valid_coupons:[].concat(Object(s.a)(a.state.valid_coupons),[i]),redeemCode:""})}c.a.info("\u5151\u6362\u6210\u529f"),"/my"===t.from&&a.getMyCoupons(),"/order"===t.from&&a.getAllCoupons()}else c.a.info(n.msg)}):c.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){E.c.get("".concat(API.home,"/m/coupon/all")).then(function(e){var t=e.data;200===t.code?a.setState({couponList:Object(O.isEmpty)(t.data)?[]:t.data}):c.a.info(t.msg)})},a.getAllCoupons=function(){E.c.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId}).then(function(e){var t=e.data;if(200===t.code){var n=t.data.inuse_coupon;a.setState({valid_coupons:n?[].concat(Object(s.a)(n),Object(s.a)(t.data.valid_coupons)):t.data.valid_coupons,invalid_coupons:t.data.invalid_coupons,selectedCouponId:n.length?n[0].id:0})}else c.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props,n=t.history,o=(t.dispatch,a.state.couponList.find(function(t){return t.id===e}));if(e)if(a.state.showUseButton){if(1!==o.ctype)return n.push("/detail?id=".concat(o.limit_course)),!1;n.push("/classify")}else{var s=a.state,i=s.courseId;s.selectedCouponId===e?E.c.post("".concat(API.home,"/m/coupon/cancel"),{course_id:i}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):c.a.info(t.msg)}):E.c.post("".concat(API.home,"/m/coupon/use"),{course_id:a.state.courseId,coupon_id:e}).then(function(t){var n=t&&t.data;200===n.code?(a.setState({selectedCouponId:e}),a.props.history.goBack()):c.a.info(n.msg)})}else c.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.history,a=e.location,n=this.props.location.state;n&&n.from&&("/my"===n.from?(this.getMyCoupons(),this.setState({showUseButton:!0})):(this.state.courseId||(a.state&&a.state.from?t.replace(a.state.from):t.goBack()),this.getAllCoupons()))}},{key:"render",value:function(){var e=this.props.location.state,t=this.state,a=t.showUseButton,n=t.selectedCouponId;return m.a.createElement("div",{className:"use-coupon"},m.a.createElement(_.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),m.a.createElement(g,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),m.a.createElement("div",{className:"coupons-area"},m.a.createElement(N,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon}),this.state.invalid_coupons.length>0&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),m.a.createElement(N,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))))}}]),t}(d.PureComponent))||C);function N(e){var t=e.coupons,a=Object(n.a)(e,["coupons"]);return 0===t.length?m.a.createElement("div",{className:"empty"},m.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):m.a.createElement("ul",null,t.map(function(e){return m.a.createElement(y,Object.assign({key:e.id},e,{id:e.id},a))}))}t.default=Object(j.a)(w)},778:function(e,t,a){},779:function(e,t,a){},780:function(e,t,a){},781:function(e,t,a){}}]);
//# sourceMappingURL=coupons.3f67ea86.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1176:function(e,t,a){"use strict";a.r(t);var n=a(25),o=(a(44),a(14)),c=a.n(o),s=a(116),i=a(7),r=a(8),l=a(11),u=a(9),p=a(10),d=a(0),m=a.n(d),h=(a(778),a(779),a(780),a(15)),f=a.n(h),v=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).clearInput=function(){a.props.onChange("")},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.type,a=e.placeholder;return m.a.createElement("div",{className:"custom-input-wrapper"},m.a.createElement("input",{type:t,className:f()("custom-input"),placeholder:a,onChange:this.props.onChange,value:this.props.value}),m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(d.Component);v.defaultProps={type:"text",placeholder:""};var C,b=v,g=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return m.a.createElement("div",{className:"exchange-bar"},m.a.createElement(b,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),m.a.createElement("button",{className:f()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(d.Component),y=(a(781),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).pick=function(){var e=a.props,t=e.useCoupon;!e.invalid&&t&&t(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.ctype,a=e.amount,n=e.format_expire_time,o=e.limit_course,c=e.invalid,s=e.course_title,i=e.id,r=e.selectedCouponId,l=e.showUseButton;return m.a.createElement("li",{className:"coupon",onClick:this.pick},m.a.createElement("div",{className:f()("coupon-info",c?"invalid":"coupon-type".concat(t))},m.a.createElement("p",{className:"type"},1===t?"\u4ee3\u91d1\u5238":"\u8bfe\u7a0b\u5238"),1===t?m.a.createElement("p",{className:"denomination"},a," ",m.a.createElement("span",null,"\u5143")):m.a.createElement("p",{className:"course-title"},s),m.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",n),r===i&&m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-5",{check:!c})}),m.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return m.a.createElement("li",{key:t})}))),m.a.createElement("div",{className:"coupon-des"},m.a.createElement("span",{className:"limit"},0===o?"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b":"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),l&&m.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528")))}}]),t}(d.PureComponent)),E=a(4),j=a(71),O=a(40),_=a(30),I=a(21),w=(a(63),Object(I.b)()(C=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(E.b)("id"),showUseButton:!1},a.handleChange=function(e){var t=e?e.target.value:"";a.setState({redeemCode:t})},a.exchange=function(){var e=a.props.location.state,t=void 0===e?{}:e;""!==a.state.redeemCode?E.c.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if(a.state.showUseButton)a.setState({couponList:[].concat(Object(s.a)(a.state.couponList),[o]),redeemCode:""});else{var i=n.data;2==i.ctype&&i.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(s.a)(a.state.invalid_coupons),[i]),showUseButton:null}):a.setState({valid_coupons:[].concat(Object(s.a)(a.state.valid_coupons),[i]),redeemCode:""})}c.a.info("\u5151\u6362\u6210\u529f"),"/my"===t.from&&a.getMyCoupons(),"/order"===t.from&&a.getAllCoupons()}else c.a.info(n.msg)}):c.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){E.c.get("".concat(API.home,"/m/coupon/all")).then(function(e){var t=e.data;200===t.code?a.setState({couponList:Object(O.isEmpty)(t.data)?[]:t.data}):c.a.info(t.msg)})},a.getAllCoupons=function(){E.c.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId}).then(function(e){var t=e.data;if(200===t.code){var n=t.data.inuse_coupon;a.setState({valid_coupons:n?[].concat(Object(s.a)(n),Object(s.a)(t.data.valid_coupons)):t.data.valid_coupons,invalid_coupons:t.data.invalid_coupons,selectedCouponId:n.length?n[0].id:0})}else c.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props,n=t.history,o=(t.dispatch,a.state.couponList.find(function(t){return t.id===e}));if(e)if(a.state.showUseButton){if(1!==o.ctype)return n.push("/detail?id=".concat(o.limit_course)),!1;n.push("/classify")}else{var s=a.state,i=s.courseId;s.selectedCouponId===e?E.c.post("".concat(API.home,"/m/coupon/cancel"),{course_id:i}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):c.a.info(t.msg)}):E.c.post("".concat(API.home,"/m/coupon/use"),{course_id:a.state.courseId,coupon_id:e}).then(function(t){var n=t&&t.data;200===n.code?(a.setState({selectedCouponId:e}),a.props.history.goBack()):c.a.info(n.msg)})}else c.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.history,a=e.location,n=this.props.location.state;n&&n.from&&("/my"===n.from?(this.getMyCoupons(),this.setState({showUseButton:!0})):(this.state.courseId||(a.state&&a.state.from?t.replace(a.state.from):t.goBack()),this.getAllCoupons()))}},{key:"render",value:function(){var e=this.props.location.state,t=this.state,a=t.showUseButton,n=t.selectedCouponId;return m.a.createElement("div",{className:"use-coupon"},m.a.createElement(_.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),m.a.createElement(g,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),m.a.createElement("div",{className:"coupons-area"},m.a.createElement(N,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon}),this.state.invalid_coupons.length>0&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),m.a.createElement(N,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))))}}]),t}(d.PureComponent))||C);function N(e){var t=e.coupons,a=Object(n.a)(e,["coupons"]);return 0===t.length?m.a.createElement("div",{className:"empty"},m.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):m.a.createElement("ul",null,t.map(function(e){return m.a.createElement(y,Object.assign({key:e.id},e,{id:e.id},a))}))}t.default=Object(j.a)(w)},778:function(e,t,a){},779:function(e,t,a){},780:function(e,t,a){},781:function(e,t,a){}}]);
//# sourceMappingURL=coupons.a921ef66.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/index.js"],"names":["Input","clearInput","_this","props","onChange","_this$props","this","type","placeholder","react_default","a","createElement","className","classnames","value","hide","length","onClick","Component","defaultProps","RedeemBar","state","redeemCode","exchange","coupons_Input","active","Coupon","pick","useCoupon","invalid","id","GoToUse","_this$props2","ctype","amount","format_expire_time","limit_course","course_title","selectedCouponId","showUseButton","concat","check","Array","fill","map","item","index","key","PureComponent","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","handleChange","e","target","setState","_this$props$location$","location","http","post","API","home","code","then","res","data","coupon","Object","toConsumableArray","toast_default","info","from","getMyCoupons","getAllCoupons","msg","get","isEmpty","course_id","inuse_coupon","val","history","dispatch","find","push","_this$state","coupon_id","goBack","reload","replace","_this$state2","common","title","arrow","coupons_RedeemBar","Content","coupons","select","Fragment","purpose","_ref","rest","objectWithoutProperties","coupons_Coupon","assign","WithFullSize"],"mappings":"8OAKMA,6MACFC,WAAa,WACTC,EAAKC,MAAMC,SAAS,6EAGf,IAAAC,EACqBC,KAAKH,MAA1BI,EADAF,EACAE,KAAMC,EADNH,EACMG,YACX,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,gBACtBL,YAAaA,EACbJ,SAAUE,KAAKH,MAAMC,SACrBU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AAmBI,EAAnBJ,QAAYK,EAAOjC,OAAAkC,EAAA,EAAAlC,CAAAgC,EAAA,aACjC,OAAuB,IAAnBJ,EAAQnF,OAEJP,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SACXH,EAAAC,EAAAC,cAAA,oEAKRF,EAAAC,EAAAC,cAAA,UAEQwF,EAAQvD,IAAI,SAAAC,GACR,OACIpC,EAAAC,EAAAC,cAAC+F,EAADnC,OAAAoC,OAAA,CACI5D,IAAKF,EAAKf,IACNe,EAFR,CAGIf,GAAIe,EAAKf,IACL0E,OASjBI,sBAAa3D","file":"static/js/coupons.3f67ea86.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input')}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n />\n <i\n className={classnames('iconfont icondanseshixintubiao-3', {\n hide: this.props.value.length === 0\n })}\n onClick={this.clearInput}\n />\n </div>\n );\n }\n}\n\n\nInput.defaultProps = {type: 'text', placeholder: ''}\n\nexport default Input;","import React, { Component } from 'react';\nimport './exchange-bar.scss'\nimport Input from '../Input'\nimport classnames from 'classnames'\n\nclass RedeemBar extends Component {\n state = {}\n\n render() {\n const {onChange, redeemCode, exchange} = this.props\n return (\n <div className=\"exchange-bar\">\n <Input\n placeholder={'请输入优惠码'}\n onChange={onChange}\n value={redeemCode}\n />\n <button className={classnames({\n active: redeemCode && redeemCode.length > 0\n })} onClick={exchange}>兑换\n </button>\n </div>\n );\n }\n}\n\nexport default RedeemBar;","import React, { PureComponent } from 'react'\nimport './coupon.scss'\nimport classnames from 'classnames'\n\nclass Coupon extends PureComponent {\n\n pick = () => {\n let {useCoupon, invalid} = this.props\n !invalid && useCoupon && useCoupon(this.props.id)\n }\n\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n\n render() {\n let {\n ctype,\n amount,\n format_expire_time,\n limit_course,\n invalid,\n course_title,\n id,\n selectedCouponId,\n showUseButton\n } = this.props\n\n return (\n <li className='coupon' onClick={this.pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{ctype === 1 ? '代金券' : '课程券'}</p>\n {\n ctype === 1 ? <p className='denomination'>{amount} <span>元</span></p>\n : <p className='course-title'>{course_title}</p>\n\n }\n <p className='expire'>有效期至:{format_expire_time}</p>\n {\n selectedCouponId === id &&\n <i className={classnames('iconfont icondanseshixintubiao-5', {\n check: !invalid\n })}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n <div className=\"coupon-des\">\n <span className='limit'>{\n limit_course === 0 ? '可用于大于代金券金额的课程' : `仅适用于《${course_title}》`\n }</span>\n {\n showUseButton &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n\n </div>\n </li>\n );\n }\n}\n\nexport default Coupon","import React, { PureComponent } from 'react';\nimport './coupons.scss'\n\nimport RedeemBar from \"./RedeemBar\";\nimport Coupon from './Coupon'\nimport { http, getParam } from '@/utils'\nimport { WithFullSize } from '@/HOCs'\nimport { Toast } from 'antd-mobile'\nimport { isEmpty } from 'lodash'\nimport { HeaderBar } from \"@/common\";\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass UseCoupon extends PureComponent {\n\n state = {\n selectedCouponId: 0,\n redeemCode: '',\n couponList: [],\n valid_coupons: [],\n invalid_coupons: [],\n courseId: getParam('id'),\n showUseButton: false\n }\n\n componentDidMount() {\n\n const {history, location} = this.props\n\n const {state} = this.props.location\n\n\n if (state && state.from) {\n if (state.from === '/my') {\n this.getMyCoupons();\n this.setState({\n showUseButton: true\n })\n } else {\n if (!this.state.courseId) {\n location.state && location.state.from ? history.replace(location.state.from) : history.goBack()\n }\n this.getAllCoupons();\n }\n }\n }\n\n handleChange = e => {\n let value = e ? e.target.value : ''\n this.setState({redeemCode: value})\n }\n\n exchange = () => {\n const { location: { state = {}} } = this.props;\n if (this.state.redeemCode !== '') {\n http.post(`${API.home}/m/coupon/exchange`, {\n code: this.state.redeemCode\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const coupon = data.data\n\n if (this.state.showUseButton) {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n } else {\n\n const coupon = data.data\n\n if (coupon['ctype'] == 2\n && coupon['limit_course'] != this.state.courseId) {\n this.setState({\n invalid_coupons: [...this.state.invalid_coupons, coupon],\n showUseButton: null\n });\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n\n }\n Toast.info('兑换成功')\n if (state.from === '/my') {\n this.getMyCoupons()\n }\n if(state.from === '/order') {\n this.getAllCoupons()\n }\n } else {\n Toast.info(data.msg)\n }\n })\n } else {\n Toast.info('请输入兑换码')\n }\n }\n\n getMyCoupons = () => {\n http.get(`${API.home}/m/coupon/all`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n this.setState({\n couponList: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n getAllCoupons = () => {\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const inuse_coupon = data.data['inuse_coupon'];\n\n\n this.setState({\n valid_coupons: inuse_coupon\n ? [...inuse_coupon, ...data.data.valid_coupons]\n : data.data.valid_coupons,\n invalid_coupons: data.data.invalid_coupons,\n selectedCouponId: inuse_coupon.length ? inuse_coupon[0].id : 0\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n useCoupon = val => {\n const {history, dispatch} = this.props\n const coupon = this.state.couponList.find(item => item.id === val)\n\n if (val) {\n if (this.state.showUseButton) {\n\n if (coupon['ctype'] === 1) {\n history.push(`/classify`)\n } else {\n // dispatch(getCourses(coupon['limit_course'], () => {\n history.push(`/detail?id=${coupon['limit_course']}`);\n return false;\n // }));\n }\n\n } else {\n\n const {courseId, selectedCouponId} = this.state\n\n if (selectedCouponId === val) {\n\n\n http.post(`${API.home}/m/coupon/cancel`, {\n course_id: courseId\n }).then(res => {\n const data = res.data\n if (data.code === 200) {\n\n\n this.setState({\n selectedCouponId: 0\n })\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n\n } else {\n http.post(`${API.home}/m/coupon/use`, {\n course_id: this.state.courseId,\n coupon_id: val\n })\n .then(res => {\n const data = res && res.data\n if (data.code === 200) {\n\n this.setState({selectedCouponId: val})\n this.props.history.goBack()\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n\n }\n\n } else {\n Toast.info('未知错误')\n location.reload()\n }\n\n }\n\n render() {\n const {state} = this.props.location\n const {showUseButton, selectedCouponId} = this.state\n return (\n <div className='use-coupon'>\n <HeaderBar title='优惠券' arrow={true}/>\n <RedeemBar onChange={this.handleChange}\n exchange={this.exchange}\n redeemCode={this.state.redeemCode}/>\n <div className=\"coupons-area\">\n <Content\n coupons={\n state\n && state.from\n && state.from === '/my'\n ? this.state.couponList\n : this.state.valid_coupons\n }\n showUseButton={showUseButton}\n selectedCouponId={selectedCouponId}\n select={this.select}\n useCoupon={this.useCoupon}\n />\n {\n this.state.invalid_coupons.length > 0 &&\n (\n <>\n <div className='invalid-title'>- 不可使用的优惠券 -</div>\n <Content\n coupons={this.state.invalid_coupons}\n selectedCouponId={selectedCouponId}\n select={this.select}\n purpose={'use'}\n invalid={'invalid'}\n />\n </>\n )\n }\n </div>\n </div>\n );\n }\n}\n\nfunction Content({coupons, ...rest}) {\n if (coupons.length === 0) {\n return (\n <div className='empty'>\n <p>暂无可使用的优惠券</p>\n </div>\n )\n }\n return (\n <ul>\n {\n coupons.map(item => {\n return (\n <Coupon\n key={item.id}\n {...item}\n id={item.id}\n {...rest}\n />\n )\n })\n }\n </ul>\n )\n}\n\nexport default WithFullSize(UseCoupon);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/index.js"],"names":["Input","clearInput","_this","props","onChange","_this$props","this","type","placeholder","react_default","a","createElement","className","classnames","value","hide","length","onClick","Component","defaultProps","RedeemBar","state","redeemCode","exchange","coupons_Input","active","Coupon","pick","useCoupon","invalid","id","GoToUse","_this$props2","ctype","amount","format_expire_time","limit_course","course_title","selectedCouponId","showUseButton","concat","check","Array","fill","map","item","index","key","PureComponent","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","handleChange","e","target","setState","_this$props$location$","location","http","post","API","home","code","then","res","data","coupon","Object","toConsumableArray","toast_default","info","from","getMyCoupons","getAllCoupons","msg","get","isEmpty","course_id","inuse_coupon","val","history","dispatch","find","push","_this$state","coupon_id","goBack","reload","replace","_this$state2","common","title","arrow","coupons_RedeemBar","Content","coupons","select","Fragment","purpose","_ref","rest","objectWithoutProperties","coupons_Coupon","assign","WithFullSize"],"mappings":"8OAKMA,6MACFC,WAAa,WACTC,EAAKC,MAAMC,SAAS,6EAGf,IAAAC,EACqBC,KAAKH,MAA1BI,EADAF,EACAE,KAAMC,EADNH,EACMG,YACX,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,gBACtBL,YAAaA,EACbJ,SAAUE,KAAKH,MAAMC,SACrBU,MAAOR,KAAKH,MAAMW,QAEtBL,EAAAC,EAAAC,cAAA,KACIC,UAAWC,IAAW,mCAAoC,CACtDE,KAAkC,IAA5BT,KAAKH,MAAMW,MAAME,SAE3BC,QAASX,KAAKL,qBApBdiB,aA4BpBlB,EAAMmB,aAAe,CAACZ,KAAM,OAAQC,YAAa,IAElCR,UCTAoB,6MApBXC,MAAQ,2EAEC,IAAAhB,EACoCC,KAAKH,MAAvCC,E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,OAAA,CACI5D,IAAKF,EAAKf,IACNe,EAFR,CAGIf,GAAIe,EAAKf,IACL0E,OASjBI,sBAAa3D","file":"static/js/coupons.a921ef66.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input')}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n />\n <i\n className={classnames('iconfont icondanseshixintubiao-3', {\n hide: this.props.value.length === 0\n })}\n onClick={this.clearInput}\n />\n </div>\n );\n }\n}\n\n\nInput.defaultProps = {type: 'text', placeholder: ''}\n\nexport default Input;","import React, { Component } from 'react';\nimport './exchange-bar.scss'\nimport Input from '../Input'\nimport classnames from 'classnames'\n\nclass RedeemBar extends Component {\n state = {}\n\n render() {\n const {onChange, redeemCode, exchange} = this.props\n return (\n <div className=\"exchange-bar\">\n <Input\n placeholder={'请输入优惠码'}\n onChange={onChange}\n value={redeemCode}\n />\n <button className={classnames({\n active: redeemCode && redeemCode.length > 0\n })} onClick={exchange}>兑换\n </button>\n </div>\n );\n }\n}\n\nexport default RedeemBar;","import React, { PureComponent } from 'react'\nimport './coupon.scss'\nimport classnames from 'classnames'\n\nclass Coupon extends PureComponent {\n\n pick = () => {\n let {useCoupon, invalid} = this.props\n !invalid && useCoupon && useCoupon(this.props.id)\n }\n\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n\n render() {\n let {\n ctype,\n amount,\n format_expire_time,\n limit_course,\n invalid,\n course_title,\n id,\n selectedCouponId,\n showUseButton\n } = this.props\n\n return (\n <li className='coupon' onClick={this.pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{ctype === 1 ? '代金券' : '课程券'}</p>\n {\n ctype === 1 ? <p className='denomination'>{amount} <span>元</span></p>\n : <p className='course-title'>{course_title}</p>\n\n }\n <p className='expire'>有效期至:{format_expire_time}</p>\n {\n selectedCouponId === id &&\n <i className={classnames('iconfont icondanseshixintubiao-5', {\n check: !invalid\n })}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n <div className=\"coupon-des\">\n <span className='limit'>{\n limit_course === 0 ? '可用于大于代金券金额的课程' : `仅适用于《${course_title}》`\n }</span>\n {\n showUseButton &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n\n </div>\n </li>\n );\n }\n}\n\nexport default Coupon","import React, { PureComponent } from 'react';\nimport './coupons.scss'\n\nimport RedeemBar from \"./RedeemBar\";\nimport Coupon from './Coupon'\nimport { http, getParam } from '@/utils'\nimport { WithFullSize } from '@/HOCs'\nimport { Toast } from 'antd-mobile'\nimport { isEmpty } from 'lodash'\nimport { HeaderBar } from \"@/common\";\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass UseCoupon extends PureComponent {\n\n state = {\n selectedCouponId: 0,\n redeemCode: '',\n couponList: [],\n valid_coupons: [],\n invalid_coupons: [],\n courseId: getParam('id'),\n showUseButton: false\n }\n\n componentDidMount() {\n\n const {history, location} = this.props\n\n const {state} = this.props.location\n\n\n if (state && state.from) {\n if (state.from === '/my') {\n this.getMyCoupons();\n this.setState({\n showUseButton: true\n })\n } else {\n if (!this.state.courseId) {\n location.state && location.state.from ? history.replace(location.state.from) : history.goBack()\n }\n this.getAllCoupons();\n }\n }\n }\n\n handleChange = e => {\n let value = e ? e.target.value : ''\n this.setState({redeemCode: value})\n }\n\n exchange = () => {\n const { location: { state = {}} } = this.props;\n if (this.state.redeemCode !== '') {\n http.post(`${API.home}/m/coupon/exchange`, {\n code: this.state.redeemCode\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const coupon = data.data\n\n if (this.state.showUseButton) {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n } else {\n\n const coupon = data.data\n\n if (coupon['ctype'] == 2\n && coupon['limit_course'] != this.state.courseId) {\n this.setState({\n invalid_coupons: [...this.state.invalid_coupons, coupon],\n showUseButton: null\n });\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n\n }\n Toast.info('兑换成功')\n if (state.from === '/my') {\n this.getMyCoupons()\n }\n if(state.from === '/order') {\n this.getAllCoupons()\n }\n } else {\n Toast.info(data.msg)\n }\n })\n } else {\n Toast.info('请输入兑换码')\n }\n }\n\n getMyCoupons = () => {\n http.get(`${API.home}/m/coupon/all`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n this.setState({\n couponList: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n getAllCoupons = () => {\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const inuse_coupon = data.data['inuse_coupon'];\n\n\n this.setState({\n valid_coupons: inuse_coupon\n ? [...inuse_coupon, ...data.data.valid_coupons]\n : data.data.valid_coupons,\n invalid_coupons: data.data.invalid_coupons,\n selectedCouponId: inuse_coupon.length ? inuse_coupon[0].id : 0\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n useCoupon = val => {\n const {history, dispatch} = this.props\n const coupon = this.state.couponList.find(item => item.id === val)\n\n if (val) {\n if (this.state.showUseButton) {\n\n if (coupon['ctype'] === 1) {\n history.push(`/classify`)\n } else {\n // dispatch(getCourses(coupon['limit_course'], () => {\n history.push(`/detail?id=${coupon['limit_course']}`);\n return false;\n // }));\n }\n\n } else {\n\n const {courseId, selectedCouponId} = this.state\n\n if (selectedCouponId === val) {\n\n\n http.post(`${API.home}/m/coupon/cancel`, {\n course_id: courseId\n }).then(res => {\n const data = res.data\n if (data.code === 200) {\n\n\n this.setState({\n selectedCouponId: 0\n })\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n\n } else {\n http.post(`${API.home}/m/coupon/use`, {\n course_id: this.state.courseId,\n coupon_id: val\n })\n .then(res => {\n const data = res && res.data\n if (data.code === 200) {\n\n this.setState({selectedCouponId: val})\n this.props.history.goBack()\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n\n }\n\n } else {\n Toast.info('未知错误')\n location.reload()\n }\n\n }\n\n render() {\n const {state} = this.props.location\n const {showUseButton, selectedCouponId} = this.state\n return (\n <div className='use-coupon'>\n <HeaderBar title='优惠券' arrow={true}/>\n <RedeemBar onChange={this.handleChange}\n exchange={this.exchange}\n redeemCode={this.state.redeemCode}/>\n <div className=\"coupons-area\">\n <Content\n coupons={\n state\n && state.from\n && state.from === '/my'\n ? this.state.couponList\n : this.state.valid_coupons\n }\n showUseButton={showUseButton}\n selectedCouponId={selectedCouponId}\n select={this.select}\n useCoupon={this.useCoupon}\n />\n {\n this.state.invalid_coupons.length > 0 &&\n (\n <>\n <div className='invalid-title'>- 不可使用的优惠券 -</div>\n <Content\n coupons={this.state.invalid_coupons}\n selectedCouponId={selectedCouponId}\n select={this.select}\n purpose={'use'}\n invalid={'invalid'}\n />\n </>\n )\n }\n </div>\n </div>\n );\n }\n}\n\nfunction Content({coupons, ...rest}) {\n if (coupons.length === 0) {\n return (\n <div className='empty'>\n <p>暂无可使用的优惠券</p>\n </div>\n )\n }\n return (\n <ul>\n {\n coupons.map(item => {\n return (\n <Coupon\n key={item.id}\n {...item}\n id={item.id}\n {...rest}\n />\n )\n })\n }\n </ul>\n )\n}\n\nexport default WithFullSize(UseCoupon);"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1115:function(e,t,a){},1116:function(e,t,a){},1117:function(e,t,a){},1118:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yy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w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},1119:function(e,t,a){e.exports=a.p+"static/media/kanjia_cg_icon.81a489ac.png"},1120:function(e,t,a){},1121:function(e,t,a){},1122:function(e,t,a){},1123:function(e,t,a){},1124:function(e,t,a){},1131:function(e,t,a){},1174:function(e,t,a){"use strict";a.r(t);var n=a(23),s=(a(44),a(14)),i=a.n(s),c=a(7),o=a(8),r=a(11),l=a(9),d=a(10),u=a(0),m=a.n(u),p=(a(1115),a(82)),h=(a(89),a(26)),b=a.n(h),f=(a(1116),a(631)),g=(a(115),a(46)),E=a.n(g),v=a(51),y=(a(1117),a(4)),_=a(18),N=function(e){function t(){var e,a;Object(c.a)(this,t);for(var s=arguments.length,o=new Array(s),d=0;d<s;d++)o[d]=arguments[d];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={mobile:"",code:"",isBargain:!0},a.handleChange=function(e){var t=e.target,n=t.name,s=t.value;a.setState(Object(v.a)({},n,s))},a.sendCode=function(){console.log(Object(y.g)(a.state.mobile)),Object(y.g)(a.state.mobile)?y.c.post("".concat(API["base-api"],"/sys/bind_send_sms"),{phone_num:a.state.mobile}).then(function(e){200==e.data.code?i.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1):410===e.data.errno?(i.a.info("\u8be5\u624b\u673a\u53f7\u5df2\u6ce8\u518c\uff0c\u8bf7\u4f7f\u7528\u8be5\u624b\u673a\u53f7\u767b\u5f55\uff0c\u53d1\u8d77\u780d\u4ef7\u3002",3,null,!1),a.setState({isBargain:!1})):i.a.info(e.data.msg)}):i.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7")},a.handleClick=function(){a.state.code?y.c.post("".concat(API.home,"/m/user/bindMobile"),Object(n.a)({},a.state)).then(function(e){200==e.data.code?(i.a.info("\u7ed1\u5b9a\u624b\u673a\u53f7\u6210\u529f",2,null,!1),a.props.iWantBargain()):i.a.info(e.data.msg)}):i.a.info("\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801")},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state,t=e.mobile,a=e.code;return m.a.createElement("div",{className:"bargain-bind-phone"},m.a.createElement("div",{className:"title"},"\u7ed1\u5b9a\u624b\u673a\uff0c\u5148\u780d\u4e00\u5200"),m.a.createElement(E.a,{className:"list"},m.a.createElement("input",{type:"tel",onChange:this.handleChange,name:"mobile",placeholder:"\u624b\u673a\u53f7",maxLength:11}),m.a.createElement("label",{htmlFor:"code"},m.a.createElement("input",{type:"tel",id:"code",onChange:this.handleChange,name:"code",placeholder:"\u9a8c\u8bc1\u7801",maxLength:6}),m.a.createElement("div",{className:"send-code",onClick:this.sendCode},"\u53d1\u9001\u9a8c\u8bc1\u7801"))),this.state.isBargain&&m.a.createElement("button",{onClick:this.handleClick,className:Object(y.g)(t)&&a?"active":""},"\u5148\u780d\u4e00\u5200"),!this.state.isBargain&&m.a.createElement(_.b,{className:"button active",to:"/passport/login"},"\u53bb\u767b\u5f55"))}}]),t}(u.Component),j=a(157),S=a(670),w=a(17),O=a(52),I=a(21),k=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(r.a)(this,Object(l.a)(t).call(this,e))).getBargainRankList=function(e,t){var a={courseId:e,type:t};y.c.post("".concat(API.home,"/m/bargain/rankList"),a).then(function(e){200===e.data.code?n.setState({list:e.data.data.list,outList:e.data.data.list[0]}):i.a.info(e.data.msg,2)})},n.getBargainInfo=function(){var e={courseId:Object(y.b)("id")};y.c.post("".concat(API.home,"/m/bargain/courseDetail"),e).then(function(e){200===e.data.code?(n.setState({barInfo:e.data.data}),0===e.data.data.bargain_status&&n.getBargainRankList(Object(y.b)("id"),0)):i.a.info(e.data.msg,2)})},n.getMore=function(){n.setState({isShowMore:!0})},n.boxHide=function(e){n.setState({isShowMore:e})},n.toArtifact=function(){var e={courseId:Object(y.b)("id")};y.c.post("".concat(API.home,"/m/bargain/receiveLimit"),e).then(function(e){200===e.data.code?n.setState({isShowOverlay:!0,status:1}):i.a.info(e.data.msg,2)})},n.useArtifact=function(){n.toKanjia(Object(y.b)("id"),2,0)},n.toCart=function(){var e={course_id:Object(y.b)("id")};y.c.post("".concat(API.home,"/m/cart/add"),e).then(function(e){200===e.data.code||15001===e.data.code?n.props.history.push("/shopcart"):i.a.info(e.data.msg,2)})},n.continueBargain=function(){var e=n.state.barInfo,t=(void 0===e?{}:e).bargain_code;n.props.history.push("/bargain-middle-page?id=".concat(Object(y.b)("id"),"&bargaincode=").concat(t,"&is_originator=1"))},n.iWantBargain=function(){var e=n.props.user;e&&e.data&&e.data.uid?n.toKanjia(Object(y.b)("id"),1,0):n.props.history.push("/passport/login")},n.toKanjia=function(e,t,a){var s={course_id:e,type:t,parent_uid:a},c=n.props.history;y.c.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(e){var a=e.data,s=a.data;200===a.code?2===t?n.setState({isShowOverlay:!0,status:2}):2===s.user_status?n.setState({isShowOverlay:!0,status:3}):c.push("/bargain-middle-page?id=".concat(Object(y.b)("id"),"&bargaincode=").concat(s.bargain_code,"&is_originator=1")):i.a.info(e.data.msg,2)})},n.close=function(){n.setState({isShowOverlay:!1,status:""})},n.state={isShowOverlay:!1,kanjiaIcon:a(1118),info:"",outList:[],list:[],limitPeople:"",status:"",bargainCode:"",time:"",barInfo:{}},n}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getBargainInfo()}},{key:"render",value:function(){var e=this.state,t=e.list,a=e.outList,n=e.barInfo,s=this.props.user,i=s&&s.data&&s.data.uid;return m.a.createElement("div",{className:"bargain-func"},(2===n.bargain_status||!i)&&m.a.createElement(x,{limitPeople:n.limit_people,iWantBargain:this.iWantBargain}),(0===n.bargain_status||1===n.bargain_status)&&m.a.createElement(A,{info:n,outList:a,getMore:this.getMore,toArtifact:this.toArtifact,useArtifact:this.useArtifact,continueBargain:this.continueBargain}),this.state.isShowOverlay&&m.a.createElement(f.a,null,3===this.state.status&&m.a.createElement(N,{iWantBargain:this.iWantBargain}),1===this.state.status&&m.a.createElement(C,{useArtifact:this.useArtifact}),2===this.state.status&&m.a.createElement(B,{toCart:this.toCart}),0!==this.state.status&&m.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})),m.a.createElement(S.a,{list:t,icon:this.state.kanjiaIcon,limitPeople:n.limit_people,isShowMore:this.state.isShowMore,boxHide:this.boxHide}))}}]),t}(u.Component);function x(e){return m.a.createElement("div",{className:"intro-outer"},m.a.createElement("div",{className:"intro-inner"},m.a.createElement(b.a,{direction:"column",justify:"center",className:"intro-wrapper"},m.a.createElement("p",null,"\u9080\u8bf7",m.a.createElement("span",{className:"indicator"},e.limitPeople,"\u4f4d"),"\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),m.a.createElement("p",null,"\u4e00\u5200\u7edd\u6740\uff0c\u780d\u7206\u5e95\u4ef7"),m.a.createElement(b.a.Item,null,m.a.createElement("button",{onClick:e.iWantBargain},"\u6211\u8981\u780d\u4ef7")))))}function A(e){var t,a,n=Object(u.useState)(0),s=Object(p.a)(n,2),i=s[0],c=s[1],o=Object(u.useState)(0),r=Object(p.a)(o,2),l=r[0],d=r[1],h=Object(u.useState)(0),f=Object(p.a)(h,2),g=f[0],E=f[1],v=Object(u.useState)(0),y=Object(p.a)(v,2),_=y[0],N=y[1];0===e.info.is_artifact?t=m.a.createElement("div",null,"\u518d\u9080\u8bf7",m.a.createElement("span",{className:"indicator"},e.info.invit_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===e.info.is_artifact?(t=m.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=m.a.createElement("button",{onClick:e.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===e.info.is_artifact&&(t=m.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=m.a.createElement("button",{onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var S=1e3*e.info.end_time,w=Date.now();return setInterval(function(){S-=1e3,N(Object(j.differenceInSeconds)(new Date(S),w)%60),E(Object(j.differenceInMinutes)(new Date(S),w)%60),d(Object(j.differenceInHours)(new Date(S),w)%24),c(Object(j.differenceInDays)(new Date(S),w)%24)},1e3),m.a.createElement("div",{className:"status-outer"},0===e.info.bargain_status&&m.a.createElement("div",{className:"status-inner"},m.a.createElement(b.a,{direction:"column"},m.a.createElement("div",{className:"first-row"},m.a.createElement("div",null,"\u5df2\u780d",m.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),m.a.createElement("span",{className:"time hour"},String(l).padStart(2,0))," :\xa0",m.a.createElement("span",{className:"time min"},String(g).padStart(2,0))," :\xa0",m.a.createElement("span",{className:"time sec"},String(_).padStart(2,0)),m.a.createElement("span",{className:"over"},"\u540e\u780d\u4ef7\u7ed3\u675f")),m.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),m.a.createElement("div",{className:"sec-row"},m.a.createElement("div",null,m.a.createElement("img",{src:e.outList.avatar_file,alt:""}),m.a.createElement("span",{className:"name"},e.outList.user_name)),m.a.createElement("div",null,m.a.createElement("div",null,"\u780d\u6389",m.a.createElement("span",{className:"indicator"},e.outList.amount,"\u5143")),m.a.createElement("button",{onClick:e.continueBargain},"\u7ee7\u7eed\u780d\u4ef7"))),m.a.createElement("div",{className:"third-row"},t,a))),1===e.info.bargain_status&&m.a.createElement("div",{className:"status-inner status-over"},m.a.createElement(b.a,{direction:"column"},m.a.createElement("div",{className:"first-row"},m.a.createElement("div",null,"\u5df2\u780d",m.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),m.a.createElement("span",{className:"bargain-over"},"\u780d\u4ef7\u7ed3\u675f")),m.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),m.a.createElement("div",{className:"time-tobuy"},"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",m.a.createElement("span",{className:"time hour"},String(i).padStart(2,0)),m.a.createElement("span",{className:"unit"}," \u5929 "),m.a.createElement("span",{className:"time min"},String(l).padStart(2,0)),m.a.createElement("span",{className:"unit"}," \u65f6 "),m.a.createElement("span",{className:"time sec"},String(g).padStart(2,0)),m.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"))))}function C(e){return m.a.createElement("div",{className:"artifact-box"},m.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),m.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",m.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),m.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function B(e){return m.a.createElement("div",{className:"use-artifact-box"},m.a.createElement("img",{className:"top-img",src:a(1119),alt:""}),m.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e8610\u5143\uff01"),m.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",m.a.createElement("span",{className:"indicator"},"109\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),m.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),m.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}var P=Object(w.d)(Object(I.b)(function(e){return{user:e.user}},null),O.g)(k),M=(a(1120),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getMore=function(){a.setState({isShowMore:!0})},a.closeMore=function(){a.setState({isShowMore:!1})},a.toPay=function(e){var t=a.props,n=t.courseInfo,s=t.history;3===n.group_status?s.push("/order?id=".concat(Object(y.b)("id")),{group:1,pdd_order_id:e}):a.setState({isShowMore:!1,alreadyIn:!0})},a.invitedFriends=function(){a.setState({isShowMore:!1,alreadyIn:!1}),a.props.invitedFriends()},a.hideMbc=function(){a.setState({alreadyIn:!1})},a.formatTimeByMillisecond=function(e){var t,a,n,s=1e3*e;return s-=1e3,t="".concat(parseInt(s/36e5)).padStart(2,0),a="".concat(parseInt((s-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((s-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(t,":").concat(a,":").concat(n)},a.state={isShowMore:!1,alreadyIn:!1,pdd_price:0,number:0,data:{},countdown:e.countdown,now_groupon_list:[]},console.log(e),a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.courseInfo&&e.courseInfo.courseInfo&&e.courseInfo.courseInfo.course_info&&e.courseInfo.courseInfo.course_info.pdd_group_info){var t=e.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;t&&t.length>0&&(t.map(function(e){return e.end_time-=1,e}),this.setState({now_groupon_list:t}))}this.setState({countdown:e.countdown})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.courseInfo,a=void 0===t?{}:t;if(a.pdd_group_info){var n=a.pdd_group_info.now_groupon_list;n&&n.length>0&&setInterval(function(){n.map(function(e){return e.end_time-=1,e}),e.setState({now_groupon_list:n})},1e3)}}},{key:"render",value:function(){var e=this,t=this.props.courseInfo,a=this.state,n=a.alreadyIn,s=a.countdown,i=(a.now_groupon_list,""),c="",o=-1,r=null;if(t&&(c=(i=t.pdd_group_info).groupon_member,o=t.group_status),4===o&&c.member){for(var l=[],d=c.number;0!=d;)l.push(d),d--;var u=m.a.createElement("div",{className:"group-user-list"},m.a.createElement(b.a,{justify:"center",className:"imgList"},c.member.map(function(e){return m.a.createElement("div",{className:"imgContainer",key:Math.random()},m.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?m.a.createElement("div",{className:"leaderFlag"},m.a.createElement("span",null,"\u56e2\u957f")):null)}),l.map(function(e){return m.a.createElement("div",{className:"imgContainer",key:Math.random()},m.a.createElement("div",{className:"imgname"},m.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})));r=m.a.createElement("div",{className:"groupSuccessMbc",onClick:this.hideMbc},m.a.createElement("div",{className:"content"},m.a.createElement("p",null,"\u4f60\u5df2\u53c2\u56e2"),u,m.a.createElement("div",{className:"group-btn",onClick:this.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",s," \u540e\u7ed3\u675f"),m.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")))}return m.a.createElement("div",{className:"group-box"},m.a.createElement("div",{className:"group-title"},m.a.createElement("span",null,i.now_groupon_total,"\u4eba\u6b63\u5728\u5f00\u56e2\uff0c\u53ef\u76f4\u63a5\u53c2\u4e0e"),m.a.createElement("span",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a",m.a.createElement("i",{className:"iconfont iconiconfront-70"}))),m.a.createElement("ul",{className:"group-list"},i.now_groupon_list&&i.now_groupon_list.length>0&&i.now_groupon_list.map(function(t,a){return m.a.createElement("li",{key:a,className:"group-item"},m.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),m.a.createElement("div",{className:"user-name text-overflow-one"},t.user_name),m.a.createElement("div",{className:"group-status"},m.a.createElement("p",null,"\u8fd8\u5dee",m.a.createElement("span",{className:"red"},t.number,"\u4eba"),"\u62fc\u6210"),m.a.createElement("p",null,"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),m.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),m.a.createElement("div",{className:"group-dec"},m.a.createElement("span",null,m.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),m.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(i.person_num,"\u4eba\u6210\u56e2"))),n&&4===o&&m.a.createElement(m.a.Fragment,null,r),this.state.isShowMore&&m.a.createElement("div",{className:"moreMbc"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title-box"},"\u6b63\u5728\u62fc\u56e2"),m.a.createElement("ul",{className:"more-group-list"},i.now_groupon_list&&i.now_groupon_list.length>0&&i.now_groupon_list.map(function(t,a){return m.a.createElement("li",{key:a,className:"group-item"},m.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),m.a.createElement("div",{className:"user-name"},m.a.createElement("p",{className:"name text-overflow-one"},t.user_name),m.a.createElement("p",{className:"time"},"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),m.a.createElement("p",{className:"group-status"},"\u8fd8\u5dee",t.number,"\u4eba"),m.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),m.a.createElement("div",{className:"more-group-dec"},"\u4ec5\u663e\u793a10\u4e2a\u6b63\u5728\u5f00\u56e2\u7684\u4eba"),m.a.createElement("i",{onClick:this.closeMore,className:"iconfont iconiconfront-2 close"}))))}}]),t}(u.Component)),T=(a(258),a(160)),D=a.n(T),z=(a(154),a(35)),R=a.n(z),W=(a(1121),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).htmlDecode=function(e){return e&&(e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e},a.tabchange=function(e,t){1===t&&a.getList()},a.getList=function(){y.c.get("".concat(API.home,"/m/course/syllabuses/").concat(Object(y.b)("id"))).then(function(e){200===e.data.code?a.setState({stageInfo:e.data.data}):i.a.info(e.data.msg,2)})},a.state={stageInfo:[]},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t="";return this.props.data&&(t=this.props.data),m.a.createElement("div",{className:"course-detail"},m.a.createElement(R.a,null),m.a.createElement(D.a,{tabs:[{title:"\u4ecb\u7ecd"},{title:"\u5927\u7eb2"}],initialPage:0,onChange:function(t,a){e.tabchange(t,a)}},m.a.createElement("div",{className:"introduce"},m.a.createElement("p",null,"\u8bb2\u5e08\uff1a",t.teachers),m.a.createElement("p",null,"\u8bfe\u65f6\uff1a",t.course_hour),m.a.createElement("p",null,"\u65f6\u95f4\uff1a",t.start_time),m.a.createElement("div",{className:"dec",dangerouslySetInnerHTML:{__html:this.htmlDecode(t.intro)}})),m.a.createElement("div",{className:"outline"},this.state.stageInfo&&this.state.stageInfo.length>0&&this.state.stageInfo.map(function(a,n){return m.a.createElement("div",{className:"stagebox",key:n},m.a.createElement("h1",{className:"stage text-overflow-1"},a.stage_name),a.lesson.map(function(a,n){return m.a.createElement("ul",{key:n},m.a.createElement("h2",{className:"classhour"},m.a.createElement("span",{className:"title text-overflow-1"},a.name),!t.is_aist&&6===a.class_status&&m.a.createElement("span",{className:"btn-right-10 audition",onClick:e.props.toAudition},"\u8bd5\u542c",m.a.createElement("i",{className:"iconfont iconcelluar"})),!t.is_aist&&0===a.class_status&&m.a.createElement("i",{className:"iconfont iconiconfront-74 icon-right-22"}),!t.is_aist&&1===a.class_status&&m.a.createElement("span",{className:"btn-right-10 singleset",onClick:function(t){return e.props.toSingleset(a)}},"\xa5 ",a.class_price),!t.is_aist&&4===a.class_status&&1===a.video_auth&&4===a.is_video&&m.a.createElement("span",{className:"live icon-right-22"},"\u6b63\u5728\u76f4\u64ad",m.a.createElement("i",{className:"iconfont icondanseshixintubiao-23"})),!t.is_aist&&2===a.class_status&&m.a.createElement(_.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"iconfont icondanseshixintubiao-23 icon-right-22"}),t.is_aist&&a.is_open&&1===t.is_baoming&&m.a.createElement(_.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"aist aist_open"}),t.is_aist&&(!a.is_open||0===t.is_baoming)&&m.a.createElement("i",{className:"aist iconfont iconiconfront-74"})),a.point&&a.point.length>0&&a.point.map(function(e,t){var a=m.a.createElement("span",null,1===e.type&&m.a.createElement("span",null,"\u77e5\u8bc6\u70b9",t+1,"\uff1a"),2===e.type&&m.a.createElement("span",{className:"red"},"\u5b9e\u6218\u9879\u76ee\uff1a"));return m.a.createElement("li",{className:"points text-overflow-1",key:t},a,e.name)}),m.a.createElement(m.a.Fragment,null,t.is_aist&&""!==a.practice.title&&(!a.is_open||0===t.is_baoming)&&m.a.createElement("span",{className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),m.a.createElement("i",{className:"exam exam_close"})),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&!a.practice.is_tested&&m.a.createElement(_.b,{to:"/campTest?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title)),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&a.practice.is_tested&&m.a.createElement(_.b,{to:"/campResolve?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),className:"camp camp_test",key:n},m.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),m.a.createElement("i",{className:"exam exam_open"}))))}))}))),m.a.createElement(R.a,null))}}]),t}(u.Component)),L=a(30),F=(a(1122),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getRankList=function(){y.c.get("".concat(API.home,"/dist/rankList/").concat(Object(y.b)("id"))).then(function(e){200===e.data.code?a.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):i.a.info(e.data.msg,2)})},a.getCode=function(){var e=a.props.user;if(e&&e.data&&e.data.uid){var t={course_id:Object(y.b)("id")};y.c.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?a.setState({code:e.data.data.code}):i.a.info(e.data.msg,2)})}},a.share=function(e){var t=a.props.user;if(t&&t.data&&t.data.uid){var n=Object(y.b)("id"),s=e.dist_first_level_ti,i=e.uid,c=a.state.code;a.props.history.push("/shareposter?courseId=".concat(n,"&dist_first=").concat(s,"&uid=").concat(i,"&dist_code=").concat(c))}else a.props.history.push("/passport/login")},a.openRanking=function(){a.setState({shareRank:!0})},a.colse=function(){a.setState({shareRank:!1})},a.state={list:[],rankingslice:[],code:"",shareRank:!1},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getRankList(),this.getCode()}},{key:"render",value:function(){var e=this.props.courseInfo,t=void 0===e?"":e;return m.a.createElement("div",{className:"share-ranking"},m.a.createElement(b.a,{className:"share-container",justify:"between"},m.a.createElement(b.a,{className:"share-list"},m.a.createElement("span",{className:"title"},"\u6392\u884c\u699c\uff1a"),m.a.createElement("div",{className:"ranking-box",onClick:this.openRanking},this.state.rankingslice&&this.state.rankingslice.length>0&&this.state.rankingslice.map(function(e,t){return m.a.createElement("span",{key:t,className:"ranking-mess"},m.a.createElement("img",{src:e.head_imgurl,alt:""}),m.a.createElement("i",null,e.amount,"\u5143"))}))),m.a.createElement(b.a,{className:"share-money",justify:"between",align:"center"},m.a.createElement("img",{onClick:this.openRanking,className:"ranking-ellipsis",src:"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png",alt:""}),m.a.createElement("button",{className:"share",onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143"))),this.state.shareRank&&m.a.createElement("div",{className:"shareMbc"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"title-box"},m.a.createElement("span",{className:"lable"},"\u8d5a\u94b1\u6392\u884c\u699c"),m.a.createElement("span",{className:"tips"},"\u53ea\u5c55\u793a\u524d9\u540d\u7528\u6237")),m.a.createElement("ul",null,this.state.list&&this.state.list.length>0&&this.state.list.map(function(e,t){return m.a.createElement("li",{key:t},m.a.createElement("img",{src:e.head_imgurl,alt:""}),m.a.createElement("span",{className:"course-title"},e.user_name),m.a.createElement("span",{className:"course-price"},e.amount,"\u5143"))})),m.a.createElement("div",{className:"shareBtn"},m.a.createElement("button",{onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))))}}]),t}(u.Component)),U=Object(w.d)(Object(I.b)(function(e){return{user:e.user}},null),O.g)(F),q=(a(1123),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).colse=function(){a.props.boxHide(!1)},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return m.a.createElement("div",null,this.props.auditionBox&&m.a.createElement("div",{className:"popup-box"},m.a.createElement("div",{className:"content audition-box"},m.a.createElement("p",{className:"audition-header"},"\u5f53\u524d\u9875\u9762\u4e0d\u652f\u6301\u8bd5\u542c"),m.a.createElement("p",{className:"audition-dec"},"\u8bf7\u524d\u5f80APP\u8bd5\u542c"),m.a.createElement(L.a,{className:"btn btn-18B4ED",text:"\u7acb\u5373\u524d\u5f80"})),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component)),J=a(661),H=a(156),K=(a(629),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){y.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.weixinPay=function(e){y.a.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":y.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(y.b)("id");y.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(H.a)(a),t=Object(y.b)("code");if(t){if(!Object(y.b)("oid"))return;y.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(y.b)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;y.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(y.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,y.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(y.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(H.a)(a);Object(y.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;y.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(y.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,y.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(y.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(y.b)("id")};y.c.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){y.c.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){y.c.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){(1===Object(y.b)("is_class")||Object(y.b)("weixinpay"))&&(console.log(0),this.payCallback()),y.a.isWeixin&&this.isweixinPay()}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(j.differenceInSeconds)(new Date(t),a)%60,s=Object(j.differenceInMinutes)(new Date(t),a)%60,i=Object(j.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:s,sec:n})},1e3)}var n=this.props.singleType;return console.log(this.state.singleBox),m.a.createElement("div",{className:"popup-box"},2===n&&m.a.createElement("div",{className:"content payment-success"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.state.nowPrice,"\u5143\u8d2d\u4e70\u3002"),m.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u591f\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.state.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),m.a.createElement(_.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),m.a.createElement("div",{className:"btn btn-FF4000",onclick:this.toBuyAll()},"\uffe5",this.state.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),m.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),m.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement(_.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&m.a.createElement("div",{className:"content group"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),m.a.createElement("div",{className:"group-img"},m.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),m.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(u.Component)),Q=Object(w.d)(Object(I.b)(function(e){return{user:e.user}},null),O.g)(K),G=a(63),V=(a(1124),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).signUpNow=function(){if(a.props.user.hasError)a.props.history.push("/passport");else{var e=JSON.stringify([Number(Object(y.b)("id"))]);y.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(e,"?type=1")).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{type:1}):i.a.info(e.data.msg,2)})}},a.simpleCourse=function(){a.props.user.hasError?a.props.history.push("/passport"):y.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(y.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(y.b)("id")),{simple:1}):i.a.info(e.data.msg,2)})},a.formatDate=function(e){var t=e.split("-");return"".concat(t[1],"\u6708").concat(t[2],"\u65e5\u5f00\u8bfe")},a.tobuy=function(){var e=a.props.user,t=a.state.barInfo;e&&e.data&&e.data.uid?2===t.bargain_status?a.simpleCourse():a.setState({isShowOverlay:!0,bargainStatus:1}):a.props.history.push("/passport/login")},a.keyToGroup=function(){a.props.user.hasError?a.props.history.push("/passport"):a.props.history.push("/order?id=".concat(Object(y.b)("id")),{group:1})},a.bargainToOrder=function(){a.props.user.hasError?a.props.history.push("/passport"):y.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(y.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(y.b)("id"),"]"),{bargain:1}):i.a.info(e.data.msg,2)})},a.cancel=function(){var e={courseId:Object(y.b)("id")};y.c.post("".concat(API.home,"/m/bargain/cancel"),e).then(function(e){200===e.data.code?(a.setState({isShowOverlay:!1,bargainStatus:""}),y.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(y.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(y.b)("id"),"]"),{simple:1}):i.a.info(e.data.msg,2)})):i.a.info(e.data.msg,2)})},a.close=function(){a.setState({isShowOverlay:!1,bargainStatus:""})},a.toKanjia=function(){var e=a.props,t=e.user,n=e.history,s=t&&t.data&&t.data.uid,c=Object(y.b)("id");if(s){var o={course_id:c,type:1,parent_uid:0};y.c.post("".concat(API.home,"/m/bargain/toBargain"),o).then(function(e){var t=e.data,a=t.data,s=t.code,o=t.msg;200===s?n.push("/bargain-middle-page?id=".concat(c,"&bargaincode=").concat(a.bargain_code,"&is_originator=1")):i.a.info(o,2)})}else a.props.history.push("/passport/login")},a.getBargainInfo=function(){var e=a.props.user,t=(e&&e.data&&e.data.uid,{courseId:Object(y.b)("id")});y.c.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(e){200===e.data.code?a.setState({barInfo:e.data.data}):i.a.info(e.data.msg,2)})},a.state={isbuy:1,is_baoming:0,group_status:3,in_cart:!1,countdown:0,barInfo:{}},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.group=!1}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=void 0===t?{}:t,n=e.user,s=void 0===n?{}:n;a.is_bargain&&s.data&&s.data.uid&&this.getBargainInfo(),this.setState({courseInfo:a,countdown:e.countdown})}},{key:"render",value:function(){var e=this,t=this.props,a=t.user,n=void 0===a?{}:a,s=t.toCart,i=this.state,c=i.countdown,o=i.barInfo,r=i.courseInfo,l=void 0===r?{}:r,d=n.data&&n.data.uid;return m.a.createElement("div",null,0===l.is_baoming&&3!==l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),l.in_cart&&m.a.createElement(_.b,{to:"/shopcart",className:"btn btn-s bg-FCCD05"},"\u53bb\u8d2d\u7269\u8f66\u7ed3\u7b97"),!l.in_cart&&m.a.createElement("button",{className:"btn btn-s bg-FCCD05",onClick:function(e){return s(1)}},"\u52a0\u5165\u8d2d\u7269\u8f66"),m.a.createElement("span",{className:"btn btn-s bg-FD7700",onClick:function(t){return e.simpleCourse()}},"\u7acb\u5373\u62a5\u540d")),1===l.is_baoming&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement(_.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m bg-09f"},"\u5f00\u59cb\u5b66\u4e60")),0===l.is_baoming&&3===l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn btn-s bg-F4AAA7",onClick:this.simpleCourse},m.a.createElement("span",null,"\xa5 ".concat(l.price1)),m.a.createElement("span",null,"\u76f4\u63a5\u8d2d\u4e70")),m.a.createElement("button",{className:"btn btn-s bg-E02E24"},m.a.createElement("span",{onClick:this.keyToGroup},m.a.createElement("span",null,"\xa5 ".concat(l.pdd_group_info.price)),m.a.createElement("span",null,"\u4e00\u952e\u5f00\u56e2")))),0===l.is_baoming&&4===l.group_status&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("div",{className:"btn btn-l bg-E02E24",onClick:this.props.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",c," \u540e\u7ed3\u675f")),0===l.is_baoming&&this.props.data&&this.props.data.is_bargain&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn btn-s bg-F4AAA7"},m.a.createElement("span",null,"\xa5",l.price1),m.a.createElement("span",{onClick:this.tobuy},"\u76f4\u63a5\u8d2d\u4e70")),(2===o.bargain_status||!d)&&m.a.createElement("button",{className:"btn btn-s bg-E02E24",onClick:this.toKanjia},"\u6211\u8981\u780d\u4ef7"),(0===o.bargain_status||1===o.bargain_status)&&d&&m.a.createElement("button",{className:"btn btn-s bg-E02E24"},m.a.createElement("span",null,"\xa5",o.amount),m.a.createElement("span",{onClick:this.bargainToOrder},"\u53bb\u652f\u4ed8"))),20===this.state.isbuy&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult-l",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2"))),l.is_aist&&(this.props.user.hasError||0===l.is_baoming)&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),m.a.createElement("button",{className:"btn sign-up-now",onClick:function(t){return e.signUpNow()}},m.a.createElement("span",null,"\u7acb\u5373\u62a5\u540d"))),l.is_aist&&!this.props.user.hasError&&1===l.is_baoming&&m.a.createElement("div",{className:"btns-box"},m.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},m.a.createElement("i",{className:"iconfont iconerji"}),m.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),""===l.aist_start_time?m.a.createElement(_.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m learn-now"},m.a.createElement("span",null,"\u5f00\u59cb\u5b66\u4e60")):m.a.createElement("button",{className:"btn btn-m wait-open"},m.a.createElement("span",null,this.formatDate(l.aist_start_time)))),this.state.isShowOverlay&&m.a.createElement(f.a,null,1===this.state.bargainStatus&&m.a.createElement(Z,{close:this.close,cancel:this.cancel}),m.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(u.Component));function Z(e){return m.a.createElement("div",{className:"cancel-bargain"},m.a.createElement("p",{className:"top-img"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"})),m.a.createElement("p",{className:"tip-mess"},"\u60a8\u5df2\u53d1\u8d77\u780d\u4ef7\uff0c\u76f4\u63a5\u8d2d\u4e70\u5c06\u6e05\u9664\u5df2\u780d\u91d1\u989d\u3002\u76f4\u63a5\u8d2d\u4e70\u53ef\u4f7f\u7528\u4f18\u60e0\u5238~"),m.a.createElement("div",{className:"btns"},m.a.createElement("button",{onClick:e.close},"\u53d6\u6d88"),m.a.createElement("button",{onClick:e.cancel},"\u786e\u5b9a")))}var Y=Object(I.b)(function(e){return{user:e.user}},{getCourses:G.d})(V),X=(a(155),a(75)),$=a.n(X),ee=(a(1125),a(1127)),te=a.n(ee),ae=(a(1131),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getList=function(){var e={course_id:Object(y.b)("id")};y.c.post("".concat(API.home,"/m/course/barrages"),e).then(function(e){200===e.data.code&&a.setState({list:e.data.data})})},a.state={list:[]},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;e.getList(),this.timer=setInterval(function(){e.getList()},1e4)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer)}},{key:"render",value:function(){return m.a.createElement($.a,null,m.a.createElement(te.a,{className:"my-carousel",vertical:!0,dots:!1,autoplay:!0,infinite:!0},this.state.list&&m.a.createElement("div",{className:"v-item text-overflow-one"},m.a.createElement("img",{src:this.state.list.avatar,alt:""}),this.state.list.user_name," ",this.state.list.live_msg)))}}]),t}(u.Component)),ne=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).check=function(e){y.c.get("".concat(API["base-api"],"/class_order_status/").concat(e)).then(function(e){200===Number(e.data.data.errno)?a.setState({singleType:6}):201===Number(e.data.data.errno)?a.setState({singleType:4}):202===Number(e.data.data.errno)?a.setState({singleType:3}):203===Number(e.data.data.errno)?a.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,singleType:2}):i.a.info(e.data.data.msg,2)})},a.fetchCourseInfo=function(){var e=Object(y.b)("id");y.c.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code&&(a.setState({course:n}),n.course_info)){var s=n.course_info;if(3===s.group_status||4===s.group_status){var i=1e3*s.pdd_group_info.groupon_member.end_time,c=0,o=0,r=0;setInterval(function(){i-=1e3,c="".concat(parseInt(i/36e5)).padStart(2,0),o="".concat(parseInt((i-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((i-36e5*c-6e4*o)/1e3)).padStart(2,0),a.setState({countdown:"".concat(c,":").concat(o,":").concat(r)})},1e3)}}})},a.toAudition=function(){var e=a.props.user;e&&e.data&&e.data.uid?a.setState({auditionBox:!0}):a.props.history.push("/passport/login")},a.toSingleset=function(e){console.log(a.props);var t=a.props.user;t&&t.data&&t.data.uid?a.setState({singleBox:!0,singleType:1,singMess:e}):a.props.history.push("/passport/login")},a.toCart=function(e){var t=a.props,n=t.history,s=t.addCourseToCart,c={course_id:Object(y.b)("id")};y.c.post("".concat(API.home,"/m/cart/add"),c).then(function(t){200===t.data.code?1===e?(i.a.info("\u5df2\u52a0\u5165\u8d2d\u7269\u8f66",2),s(),a.fetchCourseInfo()):(n.replace("/shopcart"),\u00df):15001===t.data.code?n.replace("/shopcart"):4030===t.data.code?n.replace("/passport"):i.a.info(t.data.msg,2)})},a.invitedFriends=function(){var e=a.state.course.course_info,t=e.course_title,s=e.image_name,c=e.course_id,o=(e.pdd_group_info,e.pdd_group_info),r=(o.groupon_member,o.groupon_member.number),l=o.price;if(y.a.isWeixin){var d=a.state.share;a.setState({share:!d});var u={title:"\u3010\u4ec5\u5269".concat(r,"\u4e2a\u540d\u989d\u3011\u6211").concat(l,"\u5143\u62fc\u4e86\u300a").concat(t,"\u300b"),desc:t,link:location.origin+"/detail??id=".concat(c),imgUrl:s};y.c.post("".concat(API["base-api"],"/m/sale/signature")).then(function(e){var t=e.data,a=t.nonce_str,n=t.signature,s=t.timestamp;wx.config({debug:!1,appId:"wx23dac6775ac82877",timestamp:s,nonceStr:a,signature:n,jsApiList:["hideMenuItems","showMenuItems","updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","onMenuShareAppMessage"]})}),wx.ready(function(){wx.hideAllNonBaseMenuItem(),wx.showMenuItems({menuList:["menuItem:share:appMessage","menuItem:share:timeline"]}),wx.updateAppMessageShareData(Object(n.a)({},u,{success:function(){}})),wx.updateTimelineShareData(Object(n.a)({},u,{success:function(){}}))})}else i.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},a.boxHide=function(e){a.setState({auditionBox:e,singleBox:e,singleType:1}),a.props.history.push("/detail?id=".concat(Object(y.b)("id")))},a.state={isbuy:0,isvip:0,auditionBox:!1,singleBox:!1,singleType:1,shareRank:!1,singMess:"",barInfo:"",share:!1,countdown:"00:00:00",outList:[],list:[],course:{}},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseInfo();var e=this.props.location.state,t=void 0===e?{}:e;t.oid&&this.check(t.oid)}},{key:"render",value:function(){var e=this,t=this.state,a=t.course.course_info,n=void 0===a?{}:a,s=(t.barInfo,t.singleBox),i=t.singleType;console.log(n);var c=0;3!==n.group_status&&4!==n.group_status||(c=n.pdd_group_info.groupon_member.number);var o=this.state,r=o.share,l=o.countdown,d=(o.list,o.outList,this.props.location&&this.props.location.state?this.props.location.state.href:void 0),u=this.props.location.state;return(void 0===u?{}:u).oid&&(d="/classify"),m.a.createElement("div",null,m.a.createElement("div",{className:"detail-box"},m.a.createElement(L.e,{title:"\u8bfe\u7a0b\u8be6\u60c5",arrow:!0,cart:!0,toHref:d}),m.a.createElement(L.a,{className:"toapp"}),m.a.createElement(ae,null),m.a.createElement("div",{className:"course-content"},m.a.createElement("div",{className:"cover"},m.a.createElement("img",{src:n.image_name,alt:""}),n.is_aist&&m.a.createElement("span",{className:"return_cash"})),m.a.createElement("div",{className:"info"},m.a.createElement("p",{className:"title"},n.course_title),m.a.createElement("p",{className:"contact text-overflow-2"},n.simpledescription),m.a.createElement("div",{className:"des"},0===n.is_baoming&&m.a.createElement("p",{className:"course-price"},m.a.createElement("span",{className:"new"},"\xa5",n.price1),m.a.createElement("span",{className:"old"},"\xa5",n.price0)),1===n.is_baoming&&m.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70")))),1===n.is_baoming&&m.a.createElement("div",{className:"group"},"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid),n.vip_range&&m.a.createElement("div",{className:"vip"},m.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),m.a.createElement("p",null,"\u5e74\u4f1a\u5458QQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid)),m.a.createElement("div",{className:"promise"},m.a.createElement("label",null,"\u670d\u52a1\u627f\u8bfa"),m.a.createElement("p",null,n.service&&n.service.length>0&&n.service.map(function(e,t){return m.a.createElement("span",{key:t}," ",e," ")}))),m.a.createElement(q,{auditionBox:this.state.auditionBox,boxHide:this.boxHide}),s&&m.a.createElement(J.a,{singleType:this.state.singleType,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,title:n.course_title,check:this.check}),1!=i&&m.a.createElement(Q,{boxHide:this.boxHide,data:this.state.singMess,singleType:i,videoId:this.state.singMess.video_id}),n.is_dist&&m.a.createElement(U,{courseInfo:n}),!n.is_aist&&(3===n.group_status||4===n.group_status)&&m.a.createElement(M,{courseInfo:n,history:this.props.history,countdown:l,invitedFriends:this.invitedFriends}),0===n.is_baoming&&!n.is_aist&&n.is_bargain&&m.a.createElement(P,null),m.a.createElement(W,{data:n,toAudition:this.toAudition,toSingleset:this.toSingleset}),n&&m.a.createElement(Y,{countdown:l,data:n,user:this.props.user,invitedFriends:this.invitedFriends,toCart:this.toCart,history:this.props.history}),r?m.a.createElement("div",{className:"groupSuccessMbc",onClick:function(){e.setState({share:!1})}},m.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(c,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),m.a.createElement("div",{className:"tipArrow"},m.a.createElement("i",{className:"iconfont iconyindao"}))):null))}}]),t}(u.Component);t.default=Object(I.b)(function(e){return{user:Object(n.a)({},e.user)}},function(e){return Object(w.b)({getCourses:G.d,addCourseToCart:G.c},e)})(ne)},629:function(e,t,a){},630:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},631:function(e,t,a){"use strict";var n=a(7),s=a(8),i=a(11),c=a(9),o=a(10),r=a(0),l=a.n(r),d=a(22),u=a.n(d),m=(a(672),document.body||document.documentElement),p=["touchmove","mousewheel"],h=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).preventScroll=function(e){e.preventDefault()},a.overlayBox=null,a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.addEventListener(t,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.removeEventListener(t,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(t){return e.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),m)}}]),t}(r.Component);t.a=h},661:function(e,t,a){"use strict";a(44);var n=a(14),s=a.n(n),i=a(7),c=a(8),o=a(11),r=a(9),l=a(156),d=a(10),u=a(0),m=a.n(u),p=(a(629),a(4)),h=a(52),b=a(17),f=a(21),g=a(157),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){p.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):s.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.a.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():s.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.b)("id");p.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):s.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(p.b)("code");if(t){if(!Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):s.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else s.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(l.a)(a);Object(p.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):s.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){s.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.b)("id")};p.c.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):s.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.c.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):s.a.info(e.data.msg,2)})},a.getTime=function(e){p.c.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):s.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(d.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(g.differenceInSeconds)(new Date(t),a)%60,s=Object(g.differenceInMinutes)(new Date(t),a)%60,i=Object(g.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:s,sec:n})},1e3)}var n=this.props.singleType;return console.log(this.state.singleBox),m.a.createElement("div",null,m.a.createElement("div",{className:"popup-box"},1===n&&m.a.createElement("div",{className:"content singleset-payment"},m.a.createElement("div",{className:"price-box"},m.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),m.a.createElement("p",null,this.props.data.class_price,"\u5143")),m.a.createElement("div",{className:"course-info"},m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),m.a.createElement("div",{className:"payment-type"},m.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&m.a.createElement("p",{onClick:this.check.bind(this,"1")},m.a.createElement("i",{className:"iconfont iconalipay"}),m.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),m.a.createElement("p",{onClick:this.check.bind(this,"0")},m.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),m.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),m.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(b.d)(Object(f.b)(function(e){return{user:e.user}},null),h.g)(E)},670:function(e,t,a){"use strict";var n=a(7),s=a(8),i=a(11),c=a(9),o=a(10),r=a(0),l=a.n(r),d=(a(671),function(e){function t(e){var s;return Object(n.a)(this,t),(s=Object(i.a)(this,Object(c.a)(t).call(this,e))).closeMore=function(){s.props.boxHide(!1)},s.state={kanjiaIcon:a(630)},s}return Object(o.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),t}(r.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(t,a){return l.a.createElement("li",{key:a,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},t.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},t.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=d},671:function(e,t,a){},672:function(e,t,a){}}]);
//# sourceMappingURL=detail.208e4e64.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1115:function(e,t,a){},1116:function(e,t,a){},1117:function(e,t,a){},1118:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},1119:function(e,t,a){e.exports=a.p+"static/media/kanjia_cg_icon.81a489ac.png"},1120:function(e,t,a){},1121:function(e,t,a){},1122:function(e,t,a){},1123:function(e,t,a){},1124:function(e,t,a){},1131:function(e,t,a){},1174:function(e,t,a){"use strict";a.r(t);var n=a(23),s=(a(44),a(14)),i=a.n(s),c=a(7),o=a(8),r=a(10),l=a(9),m=a(11),u=a(0),d=a.n(u),p=(a(1115),a(82)),h=(a(89),a(26)),b=a.n(h),f=(a(1116),a(630)),g=(a(115),a(46)),E=a.n(g),v=a(51),N=(a(1117),a(4)),_=a(18),y=function(e){function t(){var e,a;Object(c.a)(this,t);for(var s=arguments.length,o=new Array(s),m=0;m<s;m++)o[m]=arguments[m];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={mobile:"",code:"",isBargain:!0},a.handleChange=function(e){var t=e.target,n=t.name,s=t.value;a.setState(Object(v.a)({},n,s))},a.sendCode=function(){console.log(Object(N.g)(a.state.mobile)),Object(N.g)(a.state.mobile)?N.c.post("".concat(API["base-api"],"/sys/bind_send_sms"),{phone_num:a.state.mobile}).then(function(e){200==e.data.code?i.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1):410===e.data.errno?(i.a.info("\u8be5\u624b\u673a\u53f7\u5df2\u6ce8\u518c\uff0c\u8bf7\u4f7f\u7528\u8be5\u624b\u673a\u53f7\u767b\u5f55\uff0c\u53d1\u8d77\u780d\u4ef7\u3002",3,null,!1),a.setState({isBargain:!1})):i.a.info(e.data.msg)}):i.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7")},a.handleClick=function(){a.state.code?N.c.post("".concat(API.home,"/m/user/bindMobile"),Object(n.a)({},a.state)).then(function(e){200==e.data.code?(i.a.info("\u7ed1\u5b9a\u624b\u673a\u53f7\u6210\u529f",2,null,!1),a.props.iWantBargain()):i.a.info(e.data.msg)}):i.a.info("\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801")},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state,t=e.mobile,a=e.code;return d.a.createElement("div",{className:"bargain-bind-phone"},d.a.createElement("div",{className:"title"},"\u7ed1\u5b9a\u624b\u673a\uff0c\u5148\u780d\u4e00\u5200"),d.a.createElement(E.a,{className:"list"},d.a.createElement("input",{type:"tel",onChange:this.handleChange,name:"mobile",placeholder:"\u624b\u673a\u53f7",maxLength:11}),d.a.createElement("label",{htmlFor:"code"},d.a.createElement("input",{type:"tel",id:"code",onChange:this.handleChange,name:"code",placeholder:"\u9a8c\u8bc1\u7801",maxLength:6}),d.a.createElement("div",{className:"send-code",onClick:this.sendCode},"\u53d1\u9001\u9a8c\u8bc1\u7801"))),this.state.isBargain&&d.a.createElement("button",{onClick:this.handleClick,className:Object(N.g)(t)&&a?"active":""},"\u5148\u780d\u4e00\u5200"),!this.state.isBargain&&d.a.createElement(_.b,{className:"button active",to:"/passport/login"},"\u53bb\u767b\u5f55"))}}]),t}(u.Component),j=a(157),S=a(670),w=a(17),O=a(52),I=a(21),k=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(r.a)(this,Object(l.a)(t).call(this,e))).getBargainRankList=function(e,t){var a={courseId:e,type:t};N.c.post("".concat(API.home,"/m/bargain/rankList"),a).then(function(e){200===e.data.code?n.setState({list:e.data.data.list,outList:e.data.data.list[0]}):i.a.info(e.data.msg,2)})},n.getBargainInfo=function(){var e={courseId:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/bargain/courseDetail"),e).then(function(e){200===e.data.code?(n.setState({barInfo:e.data.data}),0===e.data.data.bargain_status&&n.getBargainRankList(Object(N.b)("id"),0)):i.a.info(e.data.msg,2)})},n.getMore=function(){n.setState({isShowMore:!0})},n.boxHide=function(e){n.setState({isShowMore:e})},n.toArtifact=function(){var e={courseId:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/bargain/receiveLimit"),e).then(function(e){200===e.data.code?n.setState({isShowOverlay:!0,status:1}):i.a.info(e.data.msg,2)})},n.useArtifact=function(){n.toKanjia(Object(N.b)("id"),2,0)},n.toCart=function(){var e={course_id:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/cart/add"),e).then(function(e){200===e.data.code||15001===e.data.code?n.props.history.push("/shopcart"):i.a.info(e.data.msg,2)})},n.continueBargain=function(){var e=n.state.barInfo,t=(void 0===e?{}:e).bargain_code;n.props.history.push("/bargain-middle-page?id=".concat(Object(N.b)("id"),"&bargaincode=").concat(t,"&is_originator=1"))},n.iWantBargain=function(){var e=n.props.user;e&&e.data&&e.data.uid?n.toKanjia(Object(N.b)("id"),1,0):n.props.history.push("/passport/login")},n.toKanjia=function(e,t,a){var s={course_id:e,type:t,parent_uid:a},c=n.props.history;N.c.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(e){var a=e.data,s=a.data;200===a.code?2===t?n.setState({isShowOverlay:!0,status:2}):2===s.user_status?n.setState({isShowOverlay:!0,status:3}):c.push("/bargain-middle-page?id=".concat(Object(N.b)("id"),"&bargaincode=").concat(s.bargain_code,"&is_originator=1")):i.a.info(e.data.msg,2)})},n.close=function(){n.setState({isShowOverlay:!1,status:""})},n.state={isShowOverlay:!1,kanjiaIcon:a(1118),info:"",outList:[],list:[],limitPeople:"",status:"",bargainCode:"",time:"",barInfo:{}},n}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.user,t=void 0===e?{}:e;t.data&&t.data.uid&&this.getBargainInfo()}},{key:"render",value:function(){var e=this.state,t=e.list,a=e.outList,n=e.barInfo;console.log(n);var s=this.props.user,i=s&&s.data&&s.data.uid;return d.a.createElement("div",{className:"bargain-func"},(2===n.bargain_status||!i)&&d.a.createElement(A,{limitPeople:n.limit_people,iWantBargain:this.iWantBargain}),(0===n.bargain_status||1===n.bargain_status)&&d.a.createElement(C,{info:n,outList:a,getMore:this.getMore,toArtifact:this.toArtifact,useArtifact:this.useArtifact,continueBargain:this.continueBargain}),this.state.isShowOverlay&&d.a.createElement(f.a,null,3===this.state.status&&d.a.createElement(y,{iWantBargain:this.iWantBargain}),1===this.state.status&&d.a.createElement(x,{useArtifact:this.useArtifact}),2===this.state.status&&d.a.createElement(B,{toCart:this.toCart}),0!==this.state.status&&d.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})),d.a.createElement(S.a,{list:t,icon:this.state.kanjiaIcon,limitPeople:n.limit_people,isShowMore:this.state.isShowMore,boxHide:this.boxHide}))}}]),t}(u.Component);function A(e){return d.a.createElement("div",{className:"intro-outer"},d.a.createElement("div",{className:"intro-inner"},d.a.createElement(b.a,{direction:"column",justify:"center",className:"intro-wrapper"},d.a.createElement("p",null,"\u9080\u8bf7",d.a.createElement("span",{className:"indicator"},e.limit_people,"\u4f4d"),"\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),d.a.createElement("p",null,"\u4e00\u5200\u7edd\u6740\uff0c\u780d\u7206\u5e95\u4ef7"),d.a.createElement(b.a.Item,null,d.a.createElement("button",{onClick:e.iWantBargain},"\u6211\u8981\u780d\u4ef7")))))}function C(e){var t,a,n=Object(u.useState)(0),s=Object(p.a)(n,2),i=s[0],c=s[1],o=Object(u.useState)(0),r=Object(p.a)(o,2),l=r[0],m=r[1],h=Object(u.useState)(0),f=Object(p.a)(h,2),g=f[0],E=f[1],v=Object(u.useState)(0),N=Object(p.a)(v,2),_=N[0],y=N[1];0===e.info.is_artifact?t=d.a.createElement("div",null,"\u518d\u9080\u8bf7",d.a.createElement("span",{className:"indicator"},e.info.invit_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===e.info.is_artifact?(t=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=d.a.createElement("button",{onClick:e.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===e.info.is_artifact&&(t=d.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=d.a.createElement("button",{onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var S=1e3*e.info.end_time,w=Date.now();return setInterval(function(){S-=1e3,y(Object(j.differenceInSeconds)(new Date(S),w)%60),E(Object(j.differenceInMinutes)(new Date(S),w)%60),m(Object(j.differenceInHours)(new Date(S),w)%24),c(Object(j.differenceInDays)(new Date(S),w)%24)},1e3),d.a.createElement("div",{className:"status-outer"},0===e.info.bargain_status&&d.a.createElement("div",{className:"status-inner"},d.a.createElement(b.a,{direction:"column"},d.a.createElement("div",{className:"first-row"},d.a.createElement("div",null,"\u5df2\u780d",d.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),d.a.createElement("span",{className:"time hour"},String(l).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time min"},String(g).padStart(2,0))," :\xa0",d.a.createElement("span",{className:"time sec"},String(_).padStart(2,0)),d.a.createElement("span",{className:"over"},"\u540e\u780d\u4ef7\u7ed3\u675f")),d.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),d.a.createElement("div",{className:"sec-row"},d.a.createElement("div",null,d.a.createElement("img",{src:e.outList.avatar_file,alt:""}),d.a.createElement("span",{className:"name"},e.outList.user_name)),d.a.createElement("div",null,d.a.createElement("div",null,"\u780d\u6389",d.a.createElement("span",{className:"indicator"},e.outList.amount,"\u5143")),d.a.createElement("button",{onClick:e.continueBargain},"\u7ee7\u7eed\u780d\u4ef7"))),d.a.createElement("div",{className:"third-row"},t,a))),1===e.info.bargain_status&&d.a.createElement("div",{className:"status-inner status-over"},d.a.createElement(b.a,{direction:"column"},d.a.createElement("div",{className:"first-row"},d.a.createElement("div",null,"\u5df2\u780d",d.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),d.a.createElement("span",{className:"bargain-over"},"\u780d\u4ef7\u7ed3\u675f")),d.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),d.a.createElement("div",{className:"time-tobuy"},"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",d.a.createElement("span",{className:"time hour"},String(i).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u5929 "),d.a.createElement("span",{className:"time min"},String(l).padStart(2,0)),d.a.createElement("span",{className:"unit"}," \u65f6 "),d.a.createElement("span",{className:"time sec"},String(g).padStart(2,0)),d.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"))))}function x(e){return d.a.createElement("div",{className:"artifact-box"},d.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),d.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",d.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),d.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function B(e){return d.a.createElement("div",{className:"use-artifact-box"},d.a.createElement("img",{className:"top-img",src:a(1119),alt:""}),d.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e8610\u5143\uff01"),d.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",d.a.createElement("span",{className:"indicator"},"109\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),d.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),d.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}var M=Object(w.d)(Object(I.b)(function(e){return{user:e.user}},null),O.g)(k),P=(a(1120),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getMore=function(){a.setState({isShowMore:!0})},a.closeMore=function(){a.setState({isShowMore:!1})},a.toPay=function(e){var t=a.props,n=t.courseInfo,s=t.history;3===n.group_status?s.push("/order?id=".concat(Object(N.b)("id")),{group:1,pdd_order_id:e}):a.setState({isShowMore:!1,alreadyIn:!0})},a.invitedFriends=function(){a.setState({isShowMore:!1,alreadyIn:!1}),a.props.invitedFriends()},a.hideMbc=function(){a.setState({alreadyIn:!1})},a.formatTimeByMillisecond=function(e){var t,a,n,s=1e3*e;return s-=1e3,t="".concat(parseInt(s/36e5)).padStart(2,0),a="".concat(parseInt((s-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((s-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(t,":").concat(a,":").concat(n)},a.state={isShowMore:!1,alreadyIn:!1,pdd_price:0,number:0,data:{},countdown:e.countdown,now_groupon_list:[]},console.log(e),a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.courseInfo&&e.courseInfo.courseInfo&&e.courseInfo.courseInfo.course_info&&e.courseInfo.courseInfo.course_info.pdd_group_info){var t=e.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;t&&t.length>0&&(t.map(function(e){return e.end_time-=1,e}),this.setState({now_groupon_list:t}))}this.setState({countdown:e.countdown})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.courseInfo,a=void 0===t?{}:t;if(a.pdd_group_info){var n=a.pdd_group_info.now_groupon_list;n&&n.length>0&&setInterval(function(){n.map(function(e){return e.end_time-=1,e}),e.setState({now_groupon_list:n})},1e3)}}},{key:"render",value:function(){var e=this,t=this.props.courseInfo,a=this.state,n=a.alreadyIn,s=a.countdown,i=(a.now_groupon_list,""),c="",o=-1,r=null;if(t&&(c=(i=t.pdd_group_info).groupon_member,o=t.group_status),4===o&&c.member){for(var l=[],m=c.number;0!=m;)l.push(m),m--;var u=d.a.createElement("div",{className:"group-user-list"},d.a.createElement(b.a,{justify:"center",className:"imgList"},c.member.map(function(e){return d.a.createElement("div",{className:"imgContainer",key:Math.random()},d.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?d.a.createElement("div",{className:"leaderFlag"},d.a.createElement("span",null,"\u56e2\u957f")):null)}),l.map(function(e){return d.a.createElement("div",{className:"imgContainer",key:Math.random()},d.a.createElement("div",{className:"imgname"},d.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})));r=d.a.createElement("div",{className:"groupSuccessMbc",onClick:this.hideMbc},d.a.createElement("div",{className:"content"},d.a.createElement("p",null,"\u4f60\u5df2\u53c2\u56e2"),u,d.a.createElement("div",{className:"group-btn",onClick:this.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",s," \u540e\u7ed3\u675f"),d.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")))}return d.a.createElement("div",{className:"group-box"},d.a.createElement("div",{className:"group-title"},d.a.createElement("span",null,i.now_groupon_total,"\u4eba\u6b63\u5728\u5f00\u56e2\uff0c\u53ef\u76f4\u63a5\u53c2\u4e0e"),d.a.createElement("span",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a",d.a.createElement("i",{className:"iconfont iconiconfront-70"}))),d.a.createElement("ul",{className:"group-list"},i.now_groupon_list&&i.now_groupon_list.length>0&&i.now_groupon_list.map(function(t,a){return d.a.createElement("li",{key:a,className:"group-item"},d.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),d.a.createElement("div",{className:"user-name text-overflow-one"},t.user_name),d.a.createElement("div",{className:"group-status"},d.a.createElement("p",null,"\u8fd8\u5dee",d.a.createElement("span",{className:"red"},t.number,"\u4eba"),"\u62fc\u6210"),d.a.createElement("p",null,"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),d.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),d.a.createElement("div",{className:"group-dec"},d.a.createElement("span",null,d.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),d.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(i.person_num,"\u4eba\u6210\u56e2"))),n&&4===o&&d.a.createElement(d.a.Fragment,null,r),this.state.isShowMore&&d.a.createElement("div",{className:"moreMbc"},d.a.createElement("div",{className:"content"},d.a.createElement("div",{className:"title-box"},"\u6b63\u5728\u62fc\u56e2"),d.a.createElement("ul",{className:"more-group-list"},i.now_groupon_list&&i.now_groupon_list.length>0&&i.now_groupon_list.map(function(t,a){return d.a.createElement("li",{key:a,className:"group-item"},d.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),d.a.createElement("div",{className:"user-name"},d.a.createElement("p",{className:"name text-overflow-one"},t.user_name),d.a.createElement("p",{className:"time"},"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),d.a.createElement("p",{className:"group-status"},"\u8fd8\u5dee",t.number,"\u4eba"),d.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),d.a.createElement("div",{className:"more-group-dec"},"\u4ec5\u663e\u793a10\u4e2a\u6b63\u5728\u5f00\u56e2\u7684\u4eba"),d.a.createElement("i",{onClick:this.closeMore,className:"iconfont iconiconfront-2 close"}))))}}]),t}(u.Component)),D=(a(258),a(160)),z=a.n(D),T=(a(154),a(35)),L=a.n(T),R=(a(1121),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).htmlDecode=function(e){return e&&(e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e},a.tabchange=function(e,t){1===t&&a.getList()},a.getList=function(){N.c.get("".concat(API.home,"/m/course/syllabuses/").concat(Object(N.b)("id"))).then(function(e){200===e.data.code?a.setState({stageInfo:e.data.data}):i.a.info(e.data.msg,2)})},a.state={stageInfo:[]},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t="";return this.props.data&&(t=this.props.data),d.a.createElement("div",{className:"course-detail"},d.a.createElement(L.a,null),d.a.createElement(z.a,{tabs:[{title:"\u4ecb\u7ecd"},{title:"\u5927\u7eb2"}],initialPage:0,onChange:function(t,a){e.tabchange(t,a)}},d.a.createElement("div",{className:"introduce"},d.a.createElement("p",null,"\u8bb2\u5e08\uff1a",t.teachers),d.a.createElement("p",null,"\u8bfe\u65f6\uff1a",t.course_hour),d.a.createElement("p",null,"\u65f6\u95f4\uff1a",t.start_time),d.a.createElement("div",{className:"dec",dangerouslySetInnerHTML:{__html:this.htmlDecode(t.intro)}})),d.a.createElement("div",{className:"outline"},this.state.stageInfo&&this.state.stageInfo.length>0&&this.state.stageInfo.map(function(a,n){return d.a.createElement("div",{className:"stagebox",key:n},d.a.createElement("h1",{className:"stage text-overflow-1"},a.stage_name),a.lesson.map(function(a,n){return d.a.createElement("ul",{key:n},d.a.createElement("h2",{className:"classhour"},d.a.createElement("span",{className:"title text-overflow-1"},a.name),!t.is_aist&&6===a.class_status&&d.a.createElement("span",{className:"btn-right-10 audition",onClick:e.props.toAudition},"\u8bd5\u542c",d.a.createElement("i",{className:"iconfont iconcelluar"})),!t.is_aist&&0===a.class_status&&d.a.createElement("i",{className:"iconfont iconiconfront-74 icon-right-22"}),!t.is_aist&&1===a.class_status&&d.a.createElement("span",{className:"btn-right-10 singleset",onClick:function(t){return e.props.toSingleset(a)}},"\xa5 ",a.class_price),!t.is_aist&&4===a.class_status&&1===a.video_auth&&4===a.is_video&&d.a.createElement("span",{className:"live icon-right-22"},"\u6b63\u5728\u76f4\u64ad",d.a.createElement("i",{className:"iconfont icondanseshixintubiao-23"})),!t.is_aist&&2===a.class_status&&d.a.createElement(_.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"iconfont icondanseshixintubiao-23 icon-right-22"}),t.is_aist&&a.is_open&&1===t.is_baoming&&d.a.createElement(_.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"aist aist_open"}),t.is_aist&&(!a.is_open||0===t.is_baoming)&&d.a.createElement("i",{className:"aist iconfont iconiconfront-74"})),a.point&&a.point.length>0&&a.point.map(function(e,t){var a=d.a.createElement("span",null,1===e.type&&d.a.createElement("span",null,"\u77e5\u8bc6\u70b9",t+1,"\uff1a"),2===e.type&&d.a.createElement("span",{className:"red"},"\u5b9e\u6218\u9879\u76ee\uff1a"));return d.a.createElement("li",{className:"points text-overflow-1",key:t},a,e.name)}),d.a.createElement(d.a.Fragment,null,t.is_aist&&""!==a.practice.title&&(!a.is_open||0===t.is_baoming)&&d.a.createElement("span",{className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),d.a.createElement("i",{className:"exam exam_close"})),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&!a.practice.is_tested&&d.a.createElement(_.b,{to:"/campTest?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title)),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&a.practice.is_tested&&d.a.createElement(_.b,{to:"/campResolve?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),className:"camp camp_test",key:n},d.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),d.a.createElement("i",{className:"exam exam_open"}))))}))}))),d.a.createElement(L.a,null))}}]),t}(u.Component)),F=a(30),W=(a(1122),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getRankList=function(){N.c.get("".concat(API.home,"/dist/rankList/").concat(Object(N.b)("id"))).then(function(e){200===e.data.code?a.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):i.a.info(e.data.msg,2)})},a.getCode=function(){var e=a.props.user;if(e&&e.data&&e.data.uid){var t={course_id:Object(N.b)("id")};N.c.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?a.setState({code:e.data.data.code}):i.a.info(e.data.msg,2)})}},a.share=function(e){var t=a.props.user;if(t&&t.data&&t.data.uid){var n=Object(N.b)("id"),s=e.dist_first_level_ti,i=e.uid,c=a.state.code;a.props.history.push("/shareposter?courseId=".concat(n,"&dist_first=").concat(s,"&uid=").concat(i,"&dist_code=").concat(c))}else a.props.history.push("/passport/login")},a.openRanking=function(){a.setState({shareRank:!0})},a.colse=function(){a.setState({shareRank:!1})},a.state={list:[],rankingslice:[],code:"",shareRank:!1},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getRankList(),this.getCode()}},{key:"render",value:function(){var e=this.props.courseInfo,t=void 0===e?"":e;return d.a.createElement("div",{className:"share-ranking"},d.a.createElement(b.a,{className:"share-container",justify:"between"},d.a.createElement(b.a,{className:"share-list"},d.a.createElement("span",{className:"title"},"\u6392\u884c\u699c\uff1a"),d.a.createElement("div",{className:"ranking-box",onClick:this.openRanking},this.state.rankingslice&&this.state.rankingslice.length>0&&this.state.rankingslice.map(function(e,t){return d.a.createElement("span",{key:t,className:"ranking-mess"},d.a.createElement("img",{src:e.head_imgurl,alt:""}),d.a.createElement("i",null,e.amount,"\u5143"))}))),d.a.createElement(b.a,{className:"share-money",justify:"between",align:"center"},d.a.createElement("img",{onClick:this.openRanking,className:"ranking-ellipsis",src:"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png",alt:""}),d.a.createElement("button",{className:"share",onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143"))),this.state.shareRank&&d.a.createElement("div",{className:"shareMbc"},d.a.createElement("div",{className:"content"},d.a.createElement("div",{className:"title-box"},d.a.createElement("span",{className:"lable"},"\u8d5a\u94b1\u6392\u884c\u699c"),d.a.createElement("span",{className:"tips"},"\u53ea\u5c55\u793a\u524d9\u540d\u7528\u6237")),d.a.createElement("ul",null,this.state.list&&this.state.list.length>0&&this.state.list.map(function(e,t){return d.a.createElement("li",{key:t},d.a.createElement("img",{src:e.head_imgurl,alt:""}),d.a.createElement("span",{className:"course-title"},e.user_name),d.a.createElement("span",{className:"course-price"},e.amount,"\u5143"))})),d.a.createElement("div",{className:"shareBtn"},d.a.createElement("button",{onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143")),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))))}}]),t}(u.Component)),U=Object(w.d)(Object(I.b)(function(e){return{user:e.user}},null),O.g)(W),q=(a(1123),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).colse=function(){a.props.boxHide(!1)},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return d.a.createElement("div",null,this.props.auditionBox&&d.a.createElement("div",{className:"popup-box"},d.a.createElement("div",{className:"content audition-box"},d.a.createElement("p",{className:"audition-header"},"\u5f53\u524d\u9875\u9762\u4e0d\u652f\u6301\u8bd5\u542c"),d.a.createElement("p",{className:"audition-dec"},"\u8bf7\u524d\u5f80APP\u8bd5\u542c"),d.a.createElement(F.a,{className:"btn btn-18B4ED",text:"\u7acb\u5373\u524d\u5f80"})),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component)),J=a(660),H=a(63),K=(a(1124),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).signUpNow=function(){if(a.props.user.hasError)a.props.history.push("/passport");else{var e=JSON.stringify([Number(Object(N.b)("id"))]);N.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(e,"?type=1")).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{type:1}):i.a.info(e.data.msg,2)})}},a.simpleCourse=function(){a.props.user.hasError?a.props.history.push("/passport"):N.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(N.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(N.b)("id")),{simple:1}):i.a.info(e.data.msg,2)})},a.formatDate=function(e){var t=e.split("-");return"".concat(t[1],"\u6708").concat(t[2],"\u65e5\u5f00\u8bfe")},a.tobuy=function(){var e=a.props.user,t=a.state.barInfo;e&&e.data&&e.data.uid?2===t.bargain_status?a.simpleCourse():a.setState({isShowOverlay:!0,bargainStatus:1}):a.props.history.push("/passport/login")},a.keyToGroup=function(){a.props.user.hasError?a.props.history.push("/passport"):a.props.history.push("/order?id=".concat(Object(N.b)("id")),{group:1})},a.bargainToOrder=function(){a.props.user.hasError?a.props.history.push("/passport"):N.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(N.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(N.b)("id"),"]"),{bargain:1}):i.a.info(e.data.msg,2)})},a.cancel=function(){var e={courseId:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/bargain/cancel"),e).then(function(e){200===e.data.code?(a.setState({isShowOverlay:!1,bargainStatus:""}),N.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(N.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(N.b)("id"),"]"),{simple:1}):i.a.info(e.data.msg,2)})):i.a.info(e.data.msg,2)})},a.close=function(){a.setState({isShowOverlay:!1,bargainStatus:""})},a.toKanjia=function(){var e=a.props,t=e.user,n=e.history,s=t&&t.data&&t.data.uid,c=Object(N.b)("id");if(s){var o={course_id:c,type:1,parent_uid:0};N.c.post("".concat(API.home,"/m/bargain/toBargain"),o).then(function(e){var t=e.data,a=t.data,s=t.code,o=t.msg;200===s?n.push("/bargain-middle-page?id=".concat(c,"&bargaincode=").concat(a.bargain_code,"&is_originator=1")):i.a.info(o,2)})}else a.props.history.push("/passport/login")},a.getBargainInfo=function(){var e=a.props.user,t=(e&&e.data&&e.data.uid,{courseId:Object(N.b)("id")});N.c.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(e){200===e.data.code?a.setState({barInfo:e.data.data}):i.a.info(e.data.msg,2)})},a.state={isbuy:1,is_baoming:0,group_status:3,in_cart:!1,countdown:0,barInfo:{}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.group=!1}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=void 0===t?{}:t,n=e.user,s=void 0===n?{}:n;a.is_bargain&&s.data&&s.data.uid&&this.getBargainInfo(),this.setState({courseInfo:a,countdown:e.countdown})}},{key:"render",value:function(){var e=this,t=this.props,a=t.user,n=void 0===a?{}:a,s=t.toCart,i=this.state,c=i.countdown,o=i.barInfo,r=i.courseInfo,l=void 0===r?{}:r,m=n.data&&n.data.uid;return d.a.createElement("div",null,0===l.is_baoming&&3!==l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),l.in_cart&&d.a.createElement(_.b,{to:"/shopcart",className:"btn btn-s bg-FCCD05"},"\u53bb\u8d2d\u7269\u8f66\u7ed3\u7b97"),!l.in_cart&&d.a.createElement("button",{className:"btn btn-s bg-FCCD05",onClick:function(e){return s(1)}},"\u52a0\u5165\u8d2d\u7269\u8f66"),d.a.createElement("span",{className:"btn btn-s bg-FD7700",onClick:function(t){return e.simpleCourse()}},"\u7acb\u5373\u62a5\u540d")),1===l.is_baoming&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement(_.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m bg-09f"},"\u5f00\u59cb\u5b66\u4e60")),0===l.is_baoming&&3===l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn btn-s bg-F4AAA7",onClick:this.simpleCourse},d.a.createElement("span",null,"\xa5 ".concat(l.price1)),d.a.createElement("span",null,"\u76f4\u63a5\u8d2d\u4e70")),d.a.createElement("button",{className:"btn btn-s bg-E02E24"},d.a.createElement("span",{onClick:this.keyToGroup},d.a.createElement("span",null,"\xa5 ".concat(l.pdd_group_info.price)),d.a.createElement("span",null,"\u4e00\u952e\u5f00\u56e2")))),0===l.is_baoming&&4===l.group_status&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("div",{className:"btn btn-l bg-E02E24",onClick:this.props.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",c," \u540e\u7ed3\u675f")),0===l.is_baoming&&this.props.data&&this.props.data.is_bargain&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-s",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn btn-s bg-F4AAA7"},d.a.createElement("span",null,"\xa5",l.price1),d.a.createElement("span",{onClick:this.tobuy},"\u76f4\u63a5\u8d2d\u4e70")),(2===o.bargain_status||!m)&&d.a.createElement("button",{className:"btn btn-s bg-E02E24",onClick:this.toKanjia},"\u6211\u8981\u780d\u4ef7"),(0===o.bargain_status||1===o.bargain_status)&&m&&d.a.createElement("button",{className:"btn btn-s bg-E02E24"},d.a.createElement("span",null,"\xa5",o.amount),d.a.createElement("span",{onClick:this.bargainToOrder},"\u53bb\u652f\u4ed8"))),20===this.state.isbuy&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult-l",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2"))),l.is_aist&&(this.props.user.hasError||0===l.is_baoming)&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),d.a.createElement("button",{className:"btn sign-up-now",onClick:function(t){return e.signUpNow()}},d.a.createElement("span",null,"\u7acb\u5373\u62a5\u540d"))),l.is_aist&&!this.props.user.hasError&&1===l.is_baoming&&d.a.createElement("div",{className:"btns-box"},d.a.createElement("a",{className:"consult consult-m",href:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},d.a.createElement("i",{className:"iconfont iconerji"}),d.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),""===l.aist_start_time?d.a.createElement(_.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m learn-now"},d.a.createElement("span",null,"\u5f00\u59cb\u5b66\u4e60")):d.a.createElement("button",{className:"btn btn-m wait-open"},d.a.createElement("span",null,this.formatDate(l.aist_start_time)))),this.state.isShowOverlay&&d.a.createElement(f.a,null,1===this.state.bargainStatus&&d.a.createElement(Q,{close:this.close,cancel:this.cancel}),d.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(u.Component));function Q(e){return d.a.createElement("div",{className:"cancel-bargain"},d.a.createElement("p",{className:"top-img"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"})),d.a.createElement("p",{className:"tip-mess"},"\u60a8\u5df2\u53d1\u8d77\u780d\u4ef7\uff0c\u76f4\u63a5\u8d2d\u4e70\u5c06\u6e05\u9664\u5df2\u780d\u91d1\u989d\u3002\u76f4\u63a5\u8d2d\u4e70\u53ef\u4f7f\u7528\u4f18\u60e0\u5238~"),d.a.createElement("div",{className:"btns"},d.a.createElement("button",{onClick:e.close},"\u53d6\u6d88"),d.a.createElement("button",{onClick:e.cancel},"\u786e\u5b9a")))}var G=Object(I.b)(function(e){return{user:e.user}},{getCourses:H.d})(K),V=(a(155),a(75)),Z=a.n(V),Y=(a(1125),a(1127)),X=a.n(Y),$=(a(1131),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getList=function(){var e={course_id:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/course/barrages"),e).then(function(e){200===e.data.code&&a.setState({list:e.data.data})})},a.state={list:[]},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;e.getList(),this.timer=setInterval(function(){e.getList()},1e4)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer)}},{key:"render",value:function(){return d.a.createElement(Z.a,null,d.a.createElement(X.a,{className:"my-carousel",vertical:!0,dots:!1,autoplay:!0,infinite:!0},this.state.list&&d.a.createElement("div",{className:"v-item text-overflow-one"},d.a.createElement("img",{src:this.state.list.avatar,alt:""}),this.state.list.user_name," ",this.state.list.live_msg)))}}]),t}(u.Component)),ee=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).fetchCourseInfo=function(){var e=Object(N.b)("id");N.c.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code&&(a.setState({course:n}),n.course_info)){var s=n.course_info;if(3===s.group_status||4===s.group_status){var i=1e3*s.pdd_group_info.groupon_member.end_time,c=0,o=0,r=0;setInterval(function(){i-=1e3,c="".concat(parseInt(i/36e5)).padStart(2,0),o="".concat(parseInt((i-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((i-36e5*c-6e4*o)/1e3)).padStart(2,0),a.setState({countdown:"".concat(c,":").concat(o,":").concat(r)})},1e3)}}})},a.toAudition=function(){var e=a.props.user;e&&e.data&&e.data.uid?a.setState({auditionBox:!0}):a.props.history.push("/passport/login")},a.toSingleset=function(e){var t=a.props.user;t&&t.data&&t.data.uid?a.setState({singleBox:!0,singMess:e}):a.props.history.push("/passport/login")},a.toCart=function(e){var t=a.props,n=t.history,s=t.addCourseToCart,c={course_id:Object(N.b)("id")};N.c.post("".concat(API.home,"/m/cart/add"),c).then(function(t){200===t.data.code?1===e?(i.a.info("\u5df2\u52a0\u5165\u8d2d\u7269\u8f66",2),s(),a.fetchCourseInfo()):(n.replace("/shopcart"),\u00df):15001===t.data.code?n.replace("/shopcart"):4030===t.data.code?n.replace("/passport"):i.a.info(t.data.msg,2)})},a.invitedFriends=function(){var e=a.state.course.course_info,t=e.course_title,s=e.image_name,c=e.course_id,o=(e.pdd_group_info,e.pdd_group_info),r=(o.groupon_member,o.groupon_member.number),l=o.price;if(N.a.isWeixin){var m=a.state.share;a.setState({share:!m});var u={title:"\u3010\u4ec5\u5269".concat(r,"\u4e2a\u540d\u989d\u3011\u6211").concat(l,"\u5143\u62fc\u4e86\u300a").concat(t,"\u300b"),desc:t,link:location.origin+"/detail??id=".concat(c),imgUrl:s};N.c.post("".concat(API["base-api"],"/m/sale/signature")).then(function(e){var t=e.data,a=t.nonce_str,n=t.signature,s=t.timestamp;wx.config({debug:!1,appId:"wx23dac6775ac82877",timestamp:s,nonceStr:a,signature:n,jsApiList:["hideMenuItems","showMenuItems","updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","onMenuShareAppMessage"]})}),wx.ready(function(){wx.hideAllNonBaseMenuItem(),wx.showMenuItems({menuList:["menuItem:share:appMessage","menuItem:share:timeline"]}),wx.updateAppMessageShareData(Object(n.a)({},u,{success:function(){}})),wx.updateTimelineShareData(Object(n.a)({},u,{success:function(){}}))})}else i.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},a.boxHide=function(e){a.setState({auditionBox:e,singleBox:e})},a.state={isbuy:0,isvip:0,auditionBox:!1,singleBox:!1,shareRank:!1,singMess:"",barInfo:"",share:!1,countdown:"00:00:00",outList:[],list:[],course:{}},a}return Object(m.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.course.course_info,n=void 0===a?{}:a;t.barInfo;console.log(n);var s=0;3!==n.group_status&&4!==n.group_status||(s=n.pdd_group_info.groupon_member.number);var i=this.state,c=i.share,o=i.countdown,r=(i.list,i.outList,this.props.location&&this.props.location.state?this.props.location.state.href:void 0);return d.a.createElement("div",{className:"detail-box"},d.a.createElement(F.e,{title:"\u8bfe\u7a0b\u8be6\u60c5",arrow:!0,cart:!0,toHref:r}),d.a.createElement(F.a,{className:"toapp"}),d.a.createElement($,null),d.a.createElement("div",{className:"course-content"},d.a.createElement("div",{className:"cover"},d.a.createElement("img",{src:n.image_name,alt:""}),n.is_aist&&d.a.createElement("span",{className:"return_cash"})),d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title"},n.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},n.simpledescription),d.a.createElement("div",{className:"des"},0===n.is_baoming&&d.a.createElement("p",{className:"course-price"},d.a.createElement("span",{className:"new"},"\xa5",n.price1),d.a.createElement("span",{className:"old"},"\xa5",n.price0)),1===n.is_baoming&&d.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70")))),1===n.is_baoming&&d.a.createElement("div",{className:"group"},"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid),n.vip_range&&d.a.createElement("div",{className:"vip"},d.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),d.a.createElement("p",null,"\u5e74\u4f1a\u5458QQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid)),d.a.createElement("div",{className:"promise"},d.a.createElement("label",null,"\u670d\u52a1\u627f\u8bfa"),d.a.createElement("p",null,n.service&&n.service.length>0&&n.service.map(function(e,t){return d.a.createElement("span",{key:t}," ",e," ")}))),d.a.createElement(q,{auditionBox:this.state.auditionBox,boxHide:this.boxHide}),d.a.createElement(J.a,{singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,title:n.course_title}),n.is_dist&&d.a.createElement(U,{courseInfo:n}),!n.is_aist&&(3===n.group_status||4===n.group_status)&&d.a.createElement(P,{courseInfo:n,history:this.props.history,countdown:o,invitedFriends:this.invitedFriends}),0===n.is_baoming&&!n.is_aist&&n.is_bargain&&d.a.createElement(M,null),d.a.createElement(R,{data:n,toAudition:this.toAudition,toSingleset:this.toSingleset}),n&&d.a.createElement(G,{countdown:o,data:n,user:this.props.user,invitedFriends:this.invitedFriends,toCart:this.toCart,history:this.props.history}),c?d.a.createElement("div",{className:"groupSuccessMbc",onClick:function(){e.setState({share:!1})}},d.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(s,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),d.a.createElement("div",{className:"tipArrow"},d.a.createElement("i",{className:"iconfont iconyindao"}))):null)}}]),t}(u.Component);t.default=Object(I.b)(function(e){return{user:Object(n.a)({},e.user)}},function(e){return Object(w.b)({getCourses:H.d,addCourseToCart:H.c},e)})(ee)},629:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz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/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},630:function(e,t,a){"use strict";var n=a(7),s=a(8),i=a(10),c=a(9),o=a(11),r=a(0),l=a.n(r),m=a(22),u=a.n(m),d=(a(672),document.body||document.documentElement),p=["touchmove","mousewheel"],h=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(i.a)(this,Object(c.a)(t).call(this,e))).preventScroll=function(e){e.preventDefault()},a.overlayBox=null,a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.addEventListener(t,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.removeEventListener(t,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(t){return e.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),t}(r.Component);t.a=h},660:function(e,t,a){"use strict";a(44);var n=a(14),s=a.n(n),i=a(7),c=a(8),o=a(10),r=a(9),l=a(156),m=a(11),u=a(0),d=a.n(u),p=(a(661),a(4)),h=a(18),b=a(52),f=a(17),g=a(21),E=a(157),v=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){p.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):s.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.a.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():s.a.info(t.data.msg,2)})},a.alipayPay=function(e){p.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?window.location=e.data.data.url:s.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(p.b)("code");if(t){if(!Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):s.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else s.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(l.a)(a);Object(p.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):s.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){s.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.b)("id")};p.c.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):s.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.c.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):s.a.info(e.data.msg,2)})},a.getTime=function(e){p.c.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):s.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={status:1,orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(m.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){(1===Object(p.b)("is_class")||Object(p.b)("weixinpay"))&&this.payCallback(),p.a.isWeixin&&this.isweixinPay()}},{key:"render",value:function(){var e=this,t=this.state.showSingleBox;if(this.state.endTime){var a=1e3*this.state.endTime,n=Date.now();setInterval(function(){a-=1e3;var t=Object(E.differenceInSeconds)(new Date(a),n)%60,s=Object(E.differenceInMinutes)(new Date(a),n)%60,i=Object(E.differenceInHours)(new Date(a),n)%24;e.setState({hour:i,min:s,sec:t})},1e3)}return d.a.createElement("div",null,this.props.singleBox&&d.a.createElement("div",{className:"popup-box"},1===this.state.status&&d.a.createElement("div",{className:"content singleset-payment"},d.a.createElement("div",{className:"price-box"},d.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),d.a.createElement("p",null,this.props.data.class_price,"\u5143")),d.a.createElement("div",{className:"course-info"},d.a.createElement("p",{className:"text-overflow-1"},d.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),d.a.createElement("p",{className:"text-overflow-1"},d.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),d.a.createElement("div",{className:"payment-type"},d.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&d.a.createElement("p",{onClick:this.check.bind(this,"1")},d.a.createElement("i",{className:"iconfont iconalipay"}),d.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),d.a.createElement("p",{onClick:this.check.bind(this,"0")},d.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),d.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),d.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70"))),t&&d.a.createElement("div",{className:"popup-box"},2===this.state.status&&d.a.createElement("div",{className:"content payment-success"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.state.nowPrice,"\u5143\u8d2d\u4e70\u3002"),d.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u591f\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.state.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),d.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),d.a.createElement("div",{className:"btn btn-FF4000",onclick:this.toBuyAll()},"\uffe5",this.state.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),d.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),d.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===this.state.status&&d.a.createElement("div",{className:"content zero"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),d.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===this.state.status&&d.a.createElement("div",{className:"content group"},d.a.createElement("div",{className:"header"},d.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),d.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),d.a.createElement("div",{className:"group-img"},d.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),d.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),d.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),d.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(g.b)(function(e){return{user:e.user}},null),b.g)(v)},661:function(e,t,a){},670:function(e,t,a){"use strict";var n=a(7),s=a(8),i=a(10),c=a(9),o=a(11),r=a(0),l=a.n(r),m=(a(671),function(e){function t(e){var s;return Object(n.a)(this,t),(s=Object(i.a)(this,Object(c.a)(t).call(this,e))).closeMore=function(){s.props.boxHide(!1)},s.state={kanjiaIcon:a(629)},s}return Object(o.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),t}(r.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(t,a){return l.a.createElement("li",{key:a,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},t.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},t.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=m},671:function(e,t,a){},672:function(e,t,a){}}]);
//# sourceMappingURL=detail.99f0eabf.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1159:function(e,t,n){"use strict";n.r(t);n(44);var a,o=n(14),r=n.n(o),s=n(7),i=n(8),l=n(10),c=n(9),u=n(11),p=(n(257),n(99)),d=n.n(p),m=n(0),h=n.n(m),f=(n(887),n(30)),v=n(158),g=n(4),b=n(18),y=n(64),E=n(649),L=n.n(E),w=n(40),_=(n(63),n(21)),N=d.a.alert,P=Object(_.b)()(a=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).page=1,n.getMore=Object(w.debounce)(function(){n.state.data.length%10===0&&n.getList(++n.page)},200),n.getList=function(){g.c.get("".concat(API.home,"/m/my/orders/").concat(n.page,"/10")).then(function(e){200===e.data.code?n.setState({data:n.state.data.concat(e.data.data),isLoading:!1}):r.a.info(e.data.msg,2)})},n.cancel=function(e){N("\u786e\u8ba4\u53d6\u6d88\u8ba2\u5355\uff1f","\u8ba2\u5355\u53d6\u6d88\u540e\uff0c\u4f18\u60e0\u5238\u548c\u62b5\u6263\u7684\u4f59\u989d\u4f1a\u8fd4\u56de\u5230\u60a8\u7684\u8d26\u6237\u3002",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var t={order_id:e};g.c.post("".concat(API.home,"/m/cancel_order"),t).then(function(e){200===e.data.code?location.reload():r.a.info(e.data.msg,2)})}}])},n.toCourseDetail=function(e){var t=n.props;t.dispatch;return t.history.push("/detail?id=".concat(e)),!1},n.state={data:[],pageNum:1,isLoading:!0,total:0},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getList(this.page)}},{key:"render",value:function(){var e=this;return h.a.createElement("div",{className:"myorders-box"},h.a.createElement(f.e,{title:"\u6211\u7684\u8ba2\u5355",arrow:!0,cart:!1}),h.a.createElement(y.a,{isLoading:this.state.isLoading},this.state.data&&"[{}]"!==JSON.stringify(this.state.data)?h.a.createElement(L.a,{pageStart:0,hasMore:!0,loadMore:this.getMore.bind(this),useWindow:!0},this.state.data.map(function(t,n){return h.a.createElement("div",{className:"order-body",key:n},h.a.createElement(S,{item:t}),t.course&&t.course.length>0&&t.course.map(function(t,n){var a=h.a.createElement("div",{className:"order-info"},h.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),h.a.createElement("p",{className:"order-content text-overflow-2"},t.description),h.a.createElement("p",{className:"order-des"},h.a.createElement("span",{className:"order-newprice"},"\xa5",t.amount),h.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return h.a.createElement("div",{className:"order-wrap",key:n},h.a.createElement(v.a,{info:a,src:t.image_name,isSign:t.is_aist,id:t.course_id,toDetail:e.toCourseDetail}))}),h.a.createElement(O,{item:t,cancel:e.cancel}))})," "):h.a.createElement("div",{className:"cart-tip"},h.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8ba2\u5355\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),h.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(m.Component))||a;function S(e){var t;return t="0"===e.item.pay_time&&0===e.item.member_num?h.a.createElement("span",{className:"oid-status"},"\u7b49\u5f85\u652f\u4ed8"):e.item.pdd_info&&e.item.member_num===e.item.pdd_info.length&&0!==e.item.member_num?h.a.createElement("span",{className:"oid-success"},"\u62fc\u56e2\u6210\u529f"):h.a.createElement("span",{className:"oid-success"},"\u652f\u4ed8\u6210\u529f"),h.a.createElement("div",{className:"order-head"},h.a.createElement("span",{className:"oid-num"},"\u8ba2\u5355\u53f7\uff1a",e.item.oid),t)}function O(e){return h.a.createElement("div",{className:"order-btm"},h.a.createElement("div",{className:"price-info"},h.a.createElement("p",null,h.a.createElement("span",{className:"payable"},"\u5e94\u4ed8\uff1a"),h.a.createElement("span",{className:"price"},"\xa5",e.item.pay_amount)),h.a.createElement("p",null,h.a.createElement("span",{className:"payable"},"\u5df2\u4f18\u60e0\uff1a"),h.a.createElement("span",{className:"price"},"\xa5",e.item.coupon_amount))),"0"===e.item.pay_time&&0===e.item.member_num&&h.a.createElement("div",{className:"btm-right"},h.a.createElement("button",{className:"cancel",onClick:function(t){return e.cancel(e.item.oid)}},"\u53d6\u6d88\u8ba2\u5355"),h.a.createElement(b.b,{to:"/payorder?oid=".concat(e.item.oid)},"\u53bb\u652f\u4ed8")),0!==e.item.member_num&&h.a.createElement("div",{className:"btm-right"},h.a.createElement("div",{className:"group"},e.item.pdd_info&&e.item.pdd_info.length>0&&e.item.pdd_info.map(function(e,t){return h.a.createElement("img",{src:""===e.user_avatar?"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png":e.user_avatar,key:t,alt:""})}))))}t.default=P},649:function(e,t,n){e.exports=n(650)},650:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),o=n(0),r=i(o),s=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),a(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(n){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),a=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:o.scrollTop;a=this.props.isReverse?r:this.calculateOffset(e,r)}else a=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;a<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,a=t.element,o=t.hasMore,s=(t.initialLoad,t.isReverse),i=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return o&&(i?s?u.unshift(i):u.push(i):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(a,c,u)}}]),t}();l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},887:function(e,t,n){}}]);
//# sourceMappingURL=myorders.a0e87ff3.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1159:function(e,t,n){"use strict";n.r(t);n(44);var a,o=n(14),r=n.n(o),s=n(7),i=n(8),l=n(11),c=n(9),u=n(10),p=(n(257),n(99)),d=n.n(p),m=n(0),h=n.n(m),f=(n(887),n(30)),v=n(158),g=n(4),b=n(18),y=n(64),E=n(650),L=n.n(E),w=n(40),_=(n(63),n(21)),N=d.a.alert,P=Object(_.b)()(a=function(e){function t(e){var n;return Object(s.a)(this,t),(n=Object(l.a)(this,Object(c.a)(t).call(this,e))).page=1,n.getMore=Object(w.debounce)(function(){n.state.data.length%10===0&&n.getList(++n.page)},200),n.getList=function(){g.c.get("".concat(API.home,"/m/my/orders/").concat(n.page,"/10")).then(function(e){200===e.data.code?n.setState({data:n.state.data.concat(e.data.data),isLoading:!1}):r.a.info(e.data.msg,2)})},n.cancel=function(e){N("\u786e\u8ba4\u53d6\u6d88\u8ba2\u5355\uff1f","\u8ba2\u5355\u53d6\u6d88\u540e\uff0c\u4f18\u60e0\u5238\u548c\u62b5\u6263\u7684\u4f59\u989d\u4f1a\u8fd4\u56de\u5230\u60a8\u7684\u8d26\u6237\u3002",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var t={order_id:e};g.c.post("".concat(API.home,"/m/cancel_order"),t).then(function(e){200===e.data.code?location.reload():r.a.info(e.data.msg,2)})}}])},n.toCourseDetail=function(e){var t=n.props;t.dispatch;return t.history.push("/detail?id=".concat(e)),!1},n.state={data:[],pageNum:1,isLoading:!0,total:0},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getList(this.page)}},{key:"render",value:function(){var e=this;return h.a.createElement("div",{className:"myorders-box"},h.a.createElement(f.e,{title:"\u6211\u7684\u8ba2\u5355",arrow:!0,cart:!1}),h.a.createElement(y.a,{isLoading:this.state.isLoading},this.state.data&&"[{}]"!==JSON.stringify(this.state.data)?h.a.createElement(L.a,{pageStart:0,hasMore:!0,loadMore:this.getMore.bind(this),useWindow:!0},this.state.data.map(function(t,n){return h.a.createElement("div",{className:"order-body",key:n},h.a.createElement(S,{item:t}),t.course&&t.course.length>0&&t.course.map(function(t,n){var a=h.a.createElement("div",{className:"order-info"},h.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),h.a.createElement("p",{className:"order-content text-overflow-2"},t.description),h.a.createElement("p",{className:"order-des"},h.a.createElement("span",{className:"order-newprice"},"\xa5",t.amount),h.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return h.a.createElement("div",{className:"order-wrap",key:n},h.a.createElement(v.a,{info:a,src:t.image_name,isSign:t.is_aist,id:t.course_id,toDetail:e.toCourseDetail}))}),h.a.createElement(O,{item:t,cancel:e.cancel}))})," "):h.a.createElement("div",{className:"cart-tip"},h.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8ba2\u5355\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),h.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(m.Component))||a;function S(e){var t;return t="0"===e.item.pay_time&&0===e.item.member_num?h.a.createElement("span",{className:"oid-status"},"\u7b49\u5f85\u652f\u4ed8"):e.item.pdd_info&&e.item.member_num===e.item.pdd_info.length&&0!==e.item.member_num?h.a.createElement("span",{className:"oid-success"},"\u62fc\u56e2\u6210\u529f"):h.a.createElement("span",{className:"oid-success"},"\u652f\u4ed8\u6210\u529f"),h.a.createElement("div",{className:"order-head"},h.a.createElement("span",{className:"oid-num"},"\u8ba2\u5355\u53f7\uff1a",e.item.oid),t)}function O(e){return h.a.createElement("div",{className:"order-btm"},h.a.createElement("div",{className:"price-info"},h.a.createElement("p",null,h.a.createElement("span",{className:"payable"},"\u5e94\u4ed8\uff1a"),h.a.createElement("span",{className:"price"},"\xa5",e.item.pay_amount)),h.a.createElement("p",null,h.a.createElement("span",{className:"payable"},"\u5df2\u4f18\u60e0\uff1a"),h.a.createElement("span",{className:"price"},"\xa5",e.item.coupon_amount))),"0"===e.item.pay_time&&0===e.item.member_num&&h.a.createElement("div",{className:"btm-right"},h.a.createElement("button",{className:"cancel",onClick:function(t){return e.cancel(e.item.oid)}},"\u53d6\u6d88\u8ba2\u5355"),h.a.createElement(b.b,{to:"/payorder?oid=".concat(e.item.oid)},"\u53bb\u652f\u4ed8")),0!==e.item.member_num&&h.a.createElement("div",{className:"btm-right"},h.a.createElement("div",{className:"group"},e.item.pdd_info&&e.item.pdd_info.length>0&&e.item.pdd_info.map(function(e,t){return h.a.createElement("img",{src:""===e.user_avatar?"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png":e.user_avatar,key:t,alt:""})}))))}t.default=P},650:function(e,t,n){e.exports=n(651)},651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),o=n(0),r=i(o),s=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),a(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(n){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),a=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:o.scrollTop;a=this.props.isReverse?r:this.calculateOffset(e,r)}else a=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;a<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,a=t.element,o=t.hasMore,s=(t.initialLoad,t.isReverse),i=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return o&&(i?s?u.unshift(i):u.push(i):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(a,c,u)}}]),t}();l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},887:function(e,t,n){}}]);
//# sourceMappingURL=myorders.cfd5a912.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/myOrders/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["alert","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_8___default","a","MyOrders","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","page","getMore","debounce","state","data","length","getList","http","get","concat","API","home","then","res","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","msg","cancel","oid","text","onPress","console","log","order_id","post","location","reload","toCourseDetail","id","_this$props","dispatch","history","push","pageNum","total","_this2","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_15__","JSON","stringify","react_infinite_scroller__WEBPACK_IMPORTED_MODULE_16___default","pageStart","hasMore","loadMore","bind","useWindow","map","item","index","key","OrderInfo","course","Info","onClick","course_id","course_title","description","amount","price0","_common_OrderList__WEBPACK_IMPORTED_MODULE_12__","src","image_name","isSign","is_aist","toDetail","PayInfo","react_router_dom__WEBPACK_IMPORTED_MODULE_14__","to","Component","btn","pay_time","member_num","pdd_info","pay_amount","coupon_amount","event","user_avatar","alt","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","window","parentNode","el","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","ref","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"0SAaMA,EAAQC,EAAAC,EAAMF,MAGdG,EADLC,4BAGG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAFVQ,KAAO,EACYP,EAcnBQ,QAAUC,mBAAS,WACZT,EAAKU,MAAMC,KAAKC,OAAS,KAAO,GAC/BZ,EAAKa,UAAUb,EAAKO,OAEzB,KAlBgBP,EAqBnBa,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,iBAAAF,OAAoChB,EAAKO,KAAzC,QAAqDY,KAAK,SAACC,GACjC,MAAlBA,EAAIT,KAAKU,KACTrB,EAAKsB,SAAS,CACVX,KAAMX,EAAKU,MAAMC,KAAKK,OAAOI,EAAIT,KAAKA,MACtCY,WAAW,IAGfC,EAAA5B,EAAM6B,KAAKL,EAAIT,KAAKe,IAAK,MA7BlB1B,EAoCnB2B,OAAS,SAACC,GACNlC,EAAM,6CAAW,mJAA4B,CACzC,CAACmC,KAAM,eAAMC,QAAS,kBAAMC,QAAQC,IAAI,YACxC,CACIH,KAAM,eACNC,QAAS,WACL,IAAInB,EAAO,CACPsB,SAAUL,GAEdd,IAAKoB,KAAL,GAAAlB,OAAaC,IAAIC,KAAjB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AiF,eAAAzL,KAAA6G,EAAAb,KACAD,EAAAC,GAAAa,EAAAb,IAGA,OAAAD,EA8PA2F,CAAAR,EAAA,0JAEAzL,EAAA6L,IAAA,SAAAK,GACApJ,EAAAkG,gBAAAkD,EAEAL,GACAA,EAAAK,IAIA,IAAAC,EAAA,CAAAR,GAUA,OARAhI,IACAoG,EACAlB,EAAAsD,EAAAC,QAAArC,GAAAoC,EAAAxJ,KAAAoH,GACS3J,KAAA4J,gBACTnB,EAAAsD,EAAAC,QAAAhM,KAAA4J,eAAAmC,EAAAxJ,KAAAvC,KAAA4J,iBAIA/C,EAAAK,QAAAtE,cAAA4I,EAAA5L,EAAAmM,OAIA5E,EArPA,GAwPAA,EAAA8E,UAAA,CACAV,SAAAxE,EAAAG,QAAA4E,KAAAI,WACAV,QAAAzE,EAAAG,QAAA4E,KACAvI,QAAAwD,EAAAG,QAAAiF,KACAhC,YAAApD,EAAAG,QAAAiF,KACA1D,UAAA1B,EAAAG,QAAAiF,KACAxC,OAAA5C,EAAAG,QAAA4E,KACAtI,SAAAuD,EAAAG,QAAAkF,KAAAF,WACA5I,UAAAyD,EAAAG,QAAAmF,OACAZ,IAAA1E,EAAAG,QAAAkF,KACAlC,gBAAAnD,EAAAG,QAAAkF,KACArB,UAAAhE,EAAAG,QAAAmF,OACA5C,WAAA1C,EAAAG,QAAAiF,KACAzI,UAAAqD,EAAAG,QAAAiF,MAEAhF,EAAAmF,aAAA,CACAd,QAAA,MACAjI,SAAA,EACA4G,aAAA,EACA7G,UAAA,EACAmI,IAAA,KACAV,UAAA,IACArH,WAAA,EACA+E,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAO,gBAAA,MAEAtE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"static/js/myorders.a0e87ff3.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './index.scss'\nimport {HeaderBar} from '../../common'\nimport OrderList from '@/common/OrderList'\nimport {http} from \"@/utils\"\nimport {Link} from 'react-router-dom'\nimport {Modal, Toast} from 'antd-mobile'\nimport Loading from '@/common/Loading'\nimport InfiniteScroll from 'react-infinite-scroller'\nimport {debounce} from 'lodash'\nimport {getCourses} from './../detail/actions';\nimport {connect} from 'react-redux';\n\nconst alert = Modal.alert\n\n@connect()\nclass MyOrders extends Component {\n page = 1\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n pageNum: 1,\n isLoading: true,\n total: 0,\n }\n }\n\n componentDidMount() {\n this.getList(this.page)\n }\n\n getMore = debounce(() => {\n if(this.state.data.length % 10 === 0){\n this.getList(++this.page)\n }\n }, 200)\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/orders/${this.page}/10`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: this.state.data.concat(res.data.data),\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n\n }\n\n // 取消订单\n cancel = (oid) => {\n alert('确认取消订单?', '订单取消后,优惠券和抵扣的余额会返回到您的账户。', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n order_id: oid\n }\n http.post(`${API.home}/m/cancel_order`, data).then((res) => {\n if (res.data.code === 200) {\n location.reload();\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n\n render() {\n return (\n <div className='myorders-box'>\n <HeaderBar title='我的订单' arrow={true} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && JSON.stringify(this.state.data) !== '[{}]'?\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.getMore.bind(this)}\n useWindow={true}\n >\n {\n this.state.data.map((item, index) => {\n return (\n <div className=\"order-body\" key={index}>\n <OrderInfo item={item}/>\n {\n item.course && item.course.length > 0 && item.course.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='order-content text-overflow-2'>{item.description}</p>\n <p className='order-des'>\n <span\n className='order-newprice'>¥{item.amount}</span>\n <span\n className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <div className=\"order-wrap\" key={index}>\n <OrderList\n info={Info}\n src={item.image_name}\n isSign={item.is_aist}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n )\n })\n }\n\n <PayInfo item={item} cancel={this.cancel}/>\n </div>\n )\n })\n } </InfiniteScroll> : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有订单哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n\n </Loading>\n </div>\n )\n }\n}\n\n\nfunction OrderInfo(props) {\n let btn\n if (props.item.pay_time === '0' && props.item.member_num === 0) {\n btn = <span className='oid-status'>等待支付</span>\n } else if (props.item.pdd_info && (props.item.member_num === props.item.pdd_info.length) && props.item.member_num !== 0) {\n btn = <span className='oid-success'>拼团成功</span>\n } else {\n btn = <span className='oid-success'>支付成功</span>\n }\n return (\n <div className='order-head'>\n <span className='oid-num'>订单号:{props.item.oid}</span>\n {btn}\n </div>\n )\n}\n\nfunction PayInfo(props) {\n return (\n <div className='order-btm'>\n <div className='price-info'>\n <p>\n <span className='payable'>应付:</span>\n <span className='price'>¥{props.item.pay_amount}</span>\n </p>\n <p>\n <span className='payable'>已优惠:</span>\n <span className='price'>¥{props.item.coupon_amount}</span>\n </p>\n </div>\n\n {\n props.item.pay_time === '0' && props.item.member_num === 0 &&\n <div className='btm-right'>\n <button className='cancel' onClick={event => props.cancel(props.item.oid)}>取消订单</button>\n <Link to={`/payorder?oid=${props.item.oid}`}>去支付</Link>\n </div>\n }\n\n {\n props.item.member_num !== 0 &&\n <div className='btm-right'>\n <div className=\"group\">\n {\n props.item.pdd_info && props.item.pdd_info.length > 0 && props.item.pdd_info.map((item, index) => {\n return (\n <img\n src={item.user_avatar === '' ? 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png' : item.user_avatar}\n key={index} alt=\"\"/>\n )\n })\n }\n </div>\n </div>\n }\n </div>\n )\n}\n\nexport default MyOrders\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/myOrders/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["alert","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_8___default","a","MyOrders","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","page","getMore","debounce","state","data","length","getList","http","get","concat","API","home","then","res","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","msg","cancel","oid","text","onPress","console","log","order_id","post","location","reload","toCourseDetail","id","_this$props","dispatch","history","push","pageNum","total","_this2","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_15__","JSON","stringify","react_infinite_scroller__WEBPACK_IMPORTED_MODULE_16___default","pageStart","hasMore","loadMore","bind","useWindow","map","item","index","key","OrderInfo","course","Info","onClick","course_id","course_title","description","amount","price0","_common_OrderList__WEBPACK_IMPORTED_MODULE_12__","src","image_name","isSign","is_aist","toDetail","PayInfo","react_router_dom__WEBPACK_IMPORTED_MODULE_14__","to","Component","btn","pay_time","member_num","pdd_info","pay_amount","coupon_amount","event","user_avatar","alt","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","window","parentNode","el","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","ref","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes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AA4J,eAAAmC,EAAAxJ,KAAAvC,KAAA4J,iBAIA/C,EAAAK,QAAAtE,cAAA4I,EAAA5L,EAAAmM,OAIA5E,EArPA,GAwPAA,EAAA8E,UAAA,CACAV,SAAAxE,EAAAG,QAAA4E,KAAAI,WACAV,QAAAzE,EAAAG,QAAA4E,KACAvI,QAAAwD,EAAAG,QAAAiF,KACAhC,YAAApD,EAAAG,QAAAiF,KACA1D,UAAA1B,EAAAG,QAAAiF,KACAxC,OAAA5C,EAAAG,QAAA4E,KACAtI,SAAAuD,EAAAG,QAAAkF,KAAAF,WACA5I,UAAAyD,EAAAG,QAAAmF,OACAZ,IAAA1E,EAAAG,QAAAkF,KACAlC,gBAAAnD,EAAAG,QAAAkF,KACArB,UAAAhE,EAAAG,QAAAmF,OACA5C,WAAA1C,EAAAG,QAAAiF,KACAzI,UAAAqD,EAAAG,QAAAiF,MAEAhF,EAAAmF,aAAA,CACAd,QAAA,MACAjI,SAAA,EACA4G,aAAA,EACA7G,UAAA,EACAmI,IAAA,KACAV,UAAA,IACArH,WAAA,EACA+E,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAO,gBAAA,MAEAtE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"static/js/myorders.cfd5a912.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './index.scss'\nimport {HeaderBar} from '../../common'\nimport OrderList from '@/common/OrderList'\nimport {http} from \"@/utils\"\nimport {Link} from 'react-router-dom'\nimport {Modal, Toast} from 'antd-mobile'\nimport Loading from '@/common/Loading'\nimport InfiniteScroll from 'react-infinite-scroller'\nimport {debounce} from 'lodash'\nimport {getCourses} from './../detail/actions';\nimport {connect} from 'react-redux';\n\nconst alert = Modal.alert\n\n@connect()\nclass MyOrders extends Component {\n page = 1\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n pageNum: 1,\n isLoading: true,\n total: 0,\n }\n }\n\n componentDidMount() {\n this.getList(this.page)\n }\n\n getMore = debounce(() => {\n if(this.state.data.length % 10 === 0){\n this.getList(++this.page)\n }\n }, 200)\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/orders/${this.page}/10`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: this.state.data.concat(res.data.data),\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n\n }\n\n // 取消订单\n cancel = (oid) => {\n alert('确认取消订单?', '订单取消后,优惠券和抵扣的余额会返回到您的账户。', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n order_id: oid\n }\n http.post(`${API.home}/m/cancel_order`, data).then((res) => {\n if (res.data.code === 200) {\n location.reload();\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n\n render() {\n return (\n <div className='myorders-box'>\n <HeaderBar title='我的订单' arrow={true} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && JSON.stringify(this.state.data) !== '[{}]'?\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.getMore.bind(this)}\n useWindow={true}\n >\n {\n this.state.data.map((item, index) => {\n return (\n <div className=\"order-body\" key={index}>\n <OrderInfo item={item}/>\n {\n item.course && item.course.length > 0 && item.course.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='order-content text-overflow-2'>{item.description}</p>\n <p className='order-des'>\n <span\n className='order-newprice'>¥{item.amount}</span>\n <span\n className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <div className=\"order-wrap\" key={index}>\n <OrderList\n info={Info}\n src={item.image_name}\n isSign={item.is_aist}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n )\n })\n }\n\n <PayInfo item={item} cancel={this.cancel}/>\n </div>\n )\n })\n } </InfiniteScroll> : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有订单哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n\n </Loading>\n </div>\n )\n }\n}\n\n\nfunction OrderInfo(props) {\n let btn\n if (props.item.pay_time === '0' && props.item.member_num === 0) {\n btn = <span className='oid-status'>等待支付</span>\n } else if (props.item.pdd_info && (props.item.member_num === props.item.pdd_info.length) && props.item.member_num !== 0) {\n btn = <span className='oid-success'>拼团成功</span>\n } else {\n btn = <span className='oid-success'>支付成功</span>\n }\n return (\n <div className='order-head'>\n <span className='oid-num'>订单号:{props.item.oid}</span>\n {btn}\n </div>\n )\n}\n\nfunction PayInfo(props) {\n return (\n <div className='order-btm'>\n <div className='price-info'>\n <p>\n <span className='payable'>应付:</span>\n <span className='price'>¥{props.item.pay_amount}</span>\n </p>\n <p>\n <span className='payable'>已优惠:</span>\n <span className='price'>¥{props.item.coupon_amount}</span>\n </p>\n </div>\n\n {\n props.item.pay_time === '0' && props.item.member_num === 0 &&\n <div className='btm-right'>\n <button className='cancel' onClick={event => props.cancel(props.item.oid)}>取消订单</button>\n <Link to={`/payorder?oid=${props.item.oid}`}>去支付</Link>\n </div>\n }\n\n {\n props.item.member_num !== 0 &&\n <div className='btm-right'>\n <div className=\"group\">\n {\n props.item.pdd_info && props.item.pdd_info.length > 0 && props.item.pdd_info.map((item, index) => {\n return (\n <img\n src={item.user_avatar === '' ? 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png' : item.user_avatar}\n key={index} alt=\"\"/>\n )\n })\n }\n </div>\n </div>\n }\n </div>\n )\n}\n\nexport default MyOrders\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1160:function(e,t,a){"use strict";a.r(t);a(44);var s=a(14),i=a.n(s),n=a(7),c=a(8),r=a(10),o=a(9),l=a(11),u=a(0),d=a.n(u),m=(a(888),a(30)),p=a(4),f=a(18),h=a(21),v=(a(63),a(64)),E=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.c.get("".concat(API.home,"/m/my/courses")).then(function(e){200===e.data.code?a.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],isLoading:!0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return d.a.createElement("div",{className:"purchased-box"},d.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),d.a.createElement(v.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?d.a.createElement("div",{className:"purchased-body"},d.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist?d.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return d.a.createElement(m.i,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,toDetail:e.toCourseDetail})})):d.a.createElement("div",{className:"cart-tip"},d.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),d.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(u.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(E)},888:function(e,t,a){}}]);
//# sourceMappingURL=purchased.d4e89e8d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1160:function(e,t,a){"use strict";a.r(t);a(44);var s=a(14),i=a.n(s),n=a(7),c=a(8),r=a(11),o=a(9),l=a(10),u=a(0),d=a.n(u),m=(a(888),a(30)),p=a(4),f=a(18),h=a(21),v=(a(63),a(64)),E=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.c.get("".concat(API.home,"/m/my/courses")).then(function(e){200===e.data.code?a.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],isLoading:!0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return d.a.createElement("div",{className:"purchased-box"},d.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),d.a.createElement(v.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?d.a.createElement("div",{className:"purchased-body"},d.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist?d.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return d.a.createElement(m.i,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,toDetail:e.toCourseDetail})})):d.a.createElement("div",{className:"cart-tip"},d.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),d.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(u.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(E)},888:function(e,t,a){}}]);
//# sourceMappingURL=purchased.04cbed77.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","course_qq","status","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"2OAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAYVQ,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,kBAAsCC,KAAK,SAACC,GAClB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVF,KAAMD,EAAIC,KAAKA,KACfG,WAAW,IAGfC,EAAAC,EAAMC,KAAKP,EAAIC,KAAKO,IAAK,MArBlBtB,EA0BnBuB,eAAiB,SAACC,GAAO,IAAAC,EACSzB,EAAKD,MADd0B,EACbC,SADaD,EACHE,QAENC,KAAR,cAAAlB,OAA2Bc,KA3B/BxB,EAAK6B,MAAQ,CACTd,KAAM,GACNG,WAAW,GAJAlB,mFASfG,KAAKI,2CAyBA,IAAAuB,EAAA3B,KACE4B,EAAQ5B,KAAKJ,MAAbgC,KACDC,EAAMD,GAAQA,EAAKhB,MAAQgB,EAAKhB,KAAKiB,IAC3C,OACIC,EAAAb,EAAAc,cAAA,OAAKC,UAAU,iBACXF,EAAAb,EAAAc,cAAC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port './index.scss';\nimport {HeaderBar, VList} from '../../common'\nimport { http } from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {getCourses} from './../detail/actions';\nimport Loading from '@/common/Loading'\n\nclass Purchased extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/courses`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n return (\n <div className='purchased-box'>\n <HeaderBar arrow={true} title='已购课程' cart={false} toHref='/my' />\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && this.state.data.length > 0 ?\n <div className=\"purchased-body\">\n <div className='tip'>加群请备注您的学号:{uid}</div>\n {\n this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n {\n item.is_aist\n ? <div className='des'>助教微信:{item.assist_weixin}</div>\n : <div className='des'>QQ群:{item.course_qq}</div>\n }\n </div>\n )\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n status={status}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n </div>\n : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有课程哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </Loading>\n\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Purchased)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","course_qq","status","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"2OAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAYVQ,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,kBAAsCC,KAAK,SAACC,GAClB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVF,KAAMD,EAAIC,KAAKA,KACfG,WAAW,IAGfC,EAAAC,EAAMC,KAAKP,EAAIC,KAAKO,IAA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,EAAKa,WACVjC,GAAIoB,EAAKI,UACT3B,KAAMyB,EACNQ,OAAQA,EACRI,SAAU5B,EAAKP,oBAMjCU,EAAAb,EAAAc,cAAA,OAAKC,UAAU,YACbF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,aAAb,mFACAF,EAAAb,EAAAc,cAACyB,EAAA,EAAD,CAAMC,GAAG,aAAT,gCAjFRC,aA2FTC,sBACX,SAAAjC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFW+B,CAGbhE","file":"static/js/purchased.04cbed77.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '../../common'\nimport { http } from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {getCourses} from './../detail/actions';\nimport Loading from '@/common/Loading'\n\nclass Purchased extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/courses`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n return (\n <div className='purchased-box'>\n <HeaderBar arrow={true} title='已购课程' cart={false} toHref='/my' />\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && this.state.data.length > 0 ?\n <div className=\"purchased-body\">\n <div className='tip'>加群请备注您的学号:{uid}</div>\n {\n this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n {\n item.is_aist\n ? <div className='des'>助教微信:{item.assist_weixin}</div>\n : <div className='des'>QQ群:{item.course_qq}</div>\n }\n </div>\n )\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n status={status}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n </div>\n : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有课程哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </Loading>\n\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Purchased)\n"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],u=r[1],f=r[2],d=0,l=[];d<i.length;d++)a=i[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,f||[]),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 u=t[a];0!==o[u]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"417c8635",1:"b13bb9a5",2:"49ca5e9b",3:"aeb3f822",4:"7bb0622b",5:"31d6cfe0",6:"c0945477",7:"31d6cfe0",8:"7eb7d317",9:"a285bc5d",10:"b10912cf",11:"92ab48a3",12:"a97e13d0",13:"f2c7a13b",14:"7897f884",16:"67814bde",17:"19e06a3f",19:"0f0e9639",20:"9e774e45",21:"14e72a25",22:"f08bc5f3",23:"ac969c69",25:"31d6cfe0",26:"73976871",27:"31d6cfe0",28:"42a89c77",29:"bf839917",30:"35e22f8c",31:"57d8b033"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var f=(s=c[u]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===n||f===o))return r()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){var s;if((f=(s=d[u]).getAttribute("data-href"))===n||f===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,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.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:"d52ac203",1:"7c83b805",2:"4a28c0e7",3:"7411b8fa",4:"e7077e18",5:"e8f8cc5d",6:"82ed0164",7:"3f88f5a0",8:"15b3e5bc",9:"d5328928",10:"eea16f08",11:"45a1532d",12:"fb4d12aa",13:"3f67ea86",14:"99f0eabf",16:"a0e87ff3",17:"d4e89e8d",19:"79e5b107",20:"5c853d61",21:"81f3ccd8",22:"2438b92f",23:"85bd98ff",25:"403aae65",26:"219a86a3",27:"33496196",28:"bddce1a4",29:"b94e2aac",30:"50307e1d",31:"57a6441b"}[e]+".chunk.js"}(e),c=function(r){u.onerror=u.onload=null,clearTimeout(f);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 f=setTimeout(function(){c({type:"timeout",target:u})},12e4);u.onerror=u.onload=c,document.head.appendChild(u)}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 u=window.webpackJsonp=window.webpackJsonp||[],f=u.push.bind(u);u.push=r,u=u.slice();for(var d=0;d<u.length;d++)r(u[d]);var s=f;t()}([]);
//# sourceMappingURL=runtime~main.b7934ef1.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],u=r[1],d=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 u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,d||[]),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 u=t[a];0!==o[u]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"417c8635",1:"b13bb9a5",2:"49ca5e9b",3:"aeb3f822",4:"7bb0622b",5:"31d6cfe0",6:"c0945477",7:"31d6cfe0",8:"7eb7d317",9:"a285bc5d",10:"530e102d",11:"92ab48a3",12:"a97e13d0",13:"f2c7a13b",14:"7ba4148b",16:"67814bde",17:"19e06a3f",19:"5716d9b3",20:"9e774e45",21:"14e72a25",22:"f08bc5f3",23:"bafccd3e",25:"31d6cfe0",26:"73976871",27:"31d6cfe0",28:"42a89c77",29:"bf839917",30:"35e22f8c",31:"57d8b033"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var d=(s=c[u]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===n||d===o))return r()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){var s;if((d=(s=f[u]).getAttribute("data-href"))===n||d===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,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,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.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:"a28416ee",1:"a88ff223",2:"27b2e6c3",3:"7fd9d55d",4:"3f59b16f",5:"539ac99a",6:"a579d31b",7:"ccc104bf",8:"ae2564f9",9:"ef876af4",10:"43591d80",11:"dd56865b",12:"966b948f",13:"a921ef66",14:"208e4e64",16:"cfd5a912",17:"04cbed77",19:"1f053f98",20:"ce440fc4",21:"3923bc2e",22:"7dcc5f4b",23:"a5562d60",25:"e1e251e0",26:"dfc38a85",27:"33496196",28:"bddce1a4",29:"b94e2aac",30:"50307e1d",31:"57a6441b"}[e]+".chunk.js"}(e),c=function(r){u.onerror=u.onload=null,clearTimeout(d);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var d=setTimeout(function(){c({type:"timeout",target:u})},12e4);u.onerror=u.onload=c,document.head.appendChild(u)}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 u=window.webpackJsonp=window.webpackJsonp||[],d=u.push.bind(u);u.push=r,u=u.slice();for(var f=0;f<u.length;f++)r(u[f]);var s=d;t()}([]);
//# sourceMappingURL=runtime~main.e6de9828.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","18","exports","module","l","e","promises","0","1","2","3","4","6","8","9","10","11","12","13","14","16","17","19","20","21","22","23","26","28","29","30","31","Promise","resolve","reject","href","5","7","25","27","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,EAAA,GAGAC,EAAA,CACAC,GAAA,GAMAtB,EAAA,CACAsB,GAAA,GAGAb,EAAA,GAQA,SAAAS,EAAA1B,GAGA,GAAA4B,EAAA5B,GACA,OAAA4B,EAAA5B,GAAA+B,QAGA,IAAAC,EAAAJ,EAAA5B,GAAA,CACAK,E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AAA,SAAAgB,EAAAC,GAAsD,OAAA5H,OAAAC,UAAAC,eAAAC,KAAAwH,EAAAC,IAGtD5G,EAAA4C,EAAA,IAGA5C,EAAA6G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAhI,KAAA0H,KAAAM,GACAA,EAAAhI,KAAAX,EACA2I,IAAAG,QACA,QAAAvI,EAAA,EAAgBA,EAAAoI,EAAAlI,OAAuBF,IAAAP,EAAA2I,EAAApI,IACvC,IAAAU,EAAA4H,EAIAxH","file":"static/js/runtime~main.b7934ef1.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\":\"d52ac203\",\"1\":\"7c83b805\",\"2\":\"4a28c0e7\",\"3\":\"7411b8fa\",\"4\":\"e7077e18\",\"5\":\"e8f8cc5d\",\"6\":\"82ed0164\",\"7\":\"3f88f5a0\",\"8\":\"15b3e5bc\",\"9\":\"d5328928\",\"10\":\"eea16f08\",\"11\":\"45a1532d\",\"12\":\"fb4d12aa\",\"13\":\"3f67ea86\",\"14\":\"99f0eabf\",\"16\":\"a0e87ff3\",\"17\":\"d4e89e8d\",\"19\":\"79e5b107\",\"20\":\"5c853d61\",\"21\":\"81f3ccd8\",\"22\":\"2438b92f\",\"23\":\"85bd98ff\",\"25\":\"403aae65\",\"26\":\"219a86a3\",\"27\":\"33496196\",\"28\":\"bddce1a4\",\"29\":\"b94e2aac\",\"30\":\"50307e1d\",\"31\":\"57a6441b\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"0\":1,\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"6\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"16\":1,\"17\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"26\":1,\"28\":1,\"29\":1,\"30\":1,\"31\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"static/css/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"417c8635\",\"1\":\"b13bb9a5\",\"2\":\"49ca5e9b\",\"3\":\"aeb3f822\",\"4\":\"7bb0622b\",\"5\":\"31d6cfe0\",\"6\":\"c0945477\",\"7\":\"31d6cfe0\",\"8\":\"7eb7d317\",\"9\":\"a285bc5d\",\"10\":\"b10912cf\",\"11\":\"92ab48a3\",\"12\":\"a97e13d0\",\"13\":\"f2c7a13b\",\"14\":\"7897f884\",\"16\":\"67814bde\",\"17\":\"19e06a3f\",\"19\":\"0f0e9639\",\"20\":\"9e774e45\",\"21\":\"14e72a25\",\"22\":\"f08bc5f3\",\"23\":\"ac969c69\",\"25\":\"31d6cfe0\",\"26\":\"73976871\",\"27\":\"31d6cfe0\",\"28\":\"42a89c77\",\"29\":\"bf839917\",\"30\":\"35e22f8c\",\"31\":\"57d8b033\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","18","exports","module","l","e","promises","0","1","2","3","4","6","8","9","10","11","12","13","14","16","17","19","20","21","22","23","26","28","29","30","31","Promise","resolve","reject","href","5","7","25","27","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAA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AAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAtG,EAAA0G,EAAA,SAAApG,GACA,IAAAoF,EAAApF,KAAA+F,WACA,WAA2B,OAAA/F,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAwF,EAAAE,EAAA,IAAAA,GACAA,GAIA1F,EAAA2F,EAAA,SAAAgB,EAAAC,GAAsD,OAAA5H,OAAAC,UAAAC,eAAAC,KAAAwH,EAAAC,IAGtD5G,EAAA4C,EAAA,IAGA5C,EAAA6G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAhI,KAAA0H,KAAAM,GACAA,EAAAhI,KAAAX,EACA2I,IAAAG,QACA,QAAAvI,EAAA,EAAgBA,EAAAoI,EAAAlI,OAAuBF,IAAAP,EAAA2I,EAAApI,IACvC,IAAAU,EAAA4H,EAIAxH","file":"static/js/runtime~main.e6de9828.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\":\"a28416ee\",\"1\":\"a88ff223\",\"2\":\"27b2e6c3\",\"3\":\"7fd9d55d\",\"4\":\"3f59b16f\",\"5\":\"539ac99a\",\"6\":\"a579d31b\",\"7\":\"ccc104bf\",\"8\":\"ae2564f9\",\"9\":\"ef876af4\",\"10\":\"43591d80\",\"11\":\"dd56865b\",\"12\":\"966b948f\",\"13\":\"a921ef66\",\"14\":\"208e4e64\",\"16\":\"cfd5a912\",\"17\":\"04cbed77\",\"19\":\"1f053f98\",\"20\":\"ce440fc4\",\"21\":\"3923bc2e\",\"22\":\"7dcc5f4b\",\"23\":\"a5562d60\",\"25\":\"e1e251e0\",\"26\":\"dfc38a85\",\"27\":\"33496196\",\"28\":\"bddce1a4\",\"29\":\"b94e2aac\",\"30\":\"50307e1d\",\"31\":\"57a6441b\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"0\":1,\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"6\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"16\":1,\"17\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"26\":1,\"28\":1,\"29\":1,\"30\":1,\"31\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"static/css/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"417c8635\",\"1\":\"b13bb9a5\",\"2\":\"49ca5e9b\",\"3\":\"aeb3f822\",\"4\":\"7bb0622b\",\"5\":\"31d6cfe0\",\"6\":\"c0945477\",\"7\":\"31d6cfe0\",\"8\":\"7eb7d317\",\"9\":\"a285bc5d\",\"10\":\"530e102d\",\"11\":\"92ab48a3\",\"12\":\"a97e13d0\",\"13\":\"f2c7a13b\",\"14\":\"7ba4148b\",\"16\":\"67814bde\",\"17\":\"19e06a3f\",\"19\":\"5716d9b3\",\"20\":\"9e774e45\",\"21\":\"14e72a25\",\"22\":\"f08bc5f3\",\"23\":\"bafccd3e\",\"25\":\"31d6cfe0\",\"26\":\"73976871\",\"27\":\"31d6cfe0\",\"28\":\"42a89c77\",\"29\":\"bf839917\",\"30\":\"35e22f8c\",\"31\":\"57d8b033\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1134:function(e,t,n){},1135:function(e,t,n){},1181:function(e,t,n){"use strict";n.r(t);var a=n(74),r=n.n(a),o=n(106),s=n(116),c=n(7),i=n(8),l=n(10),u=n(9),h=n(11),f=n(0),p=n.n(f),d=n(704),m=(n(1134),function(e){function t(){return Object(c.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return p.a.createElement("span",Object.assign({className:this.props.name},this.props),this.props.children)}}]),t}(f.PureComponent)),v=n(4),g=(n(1135),n(18)),y=n(64),C=function(e){function t(){var e,n;Object(c.a)(this,t);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(n=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(r)))).state={searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],hot_words:[],searchList:[],value:"",isLoading:!0},n.clearHistory=function(){localStorage.setItem("searchHistory",null),n.setState({searchHistory:[]})},n.handleChange=function(e){n.setState({value:e})},n.handleSearch=function(){n.state.value&&n.props.history.push("/search-result?word=".concat(encodeURIComponent(n.state.value)))},n.storeHistory=function(e){localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(s.a)(n.state.searchHistory),[e])))},n}return Object(h.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(o.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.c.get("".concat(API["search-api"],"/search_hot_word"));case 2:0===(t=e.sent).data.errno&&this.setState({hot_words:t.data.data.info.hot_words,isLoading:!1});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state.searchHistory;return p.a.createElement("div",{className:"search-page"},p.a.createElement(d.a,{searchHistory:this.state.searchHistory,value:this.state.value,handleChange:this.handleChange,handleSearch:this.handleSearch}),p.a.createElement(y.a,{isLoading:this.state.isLoading},p.a.createElement("div",{className:"search-main"},t.length>0&&p.a.createElement("div",{className:"search-land"},p.a.createElement("div",{className:"search-history"},p.a.createElement("span",null,"\u6700\u8fd1\u641c\u7d22"),p.a.createElement("i",{className:"iconfont iconiconfront-56",onClick:this.clearHistory})),p.a.createElement("div",{className:"search-tag"},t.map(function(e,t){return p.a.createElement(g.b,{key:t,to:"/search-result?word=".concat(encodeURIComponent(e))},p.a.createElement(m,{name:"tagLately"},e))}))),p.a.createElement("div",{className:"search-land search-hot"},p.a.createElement("label",{className:"search-history"},p.a.createElement("span",null,"\u70ed\u95e8\u641c\u7d22")),p.a.createElement("div",{className:"search-tag"},this.state.hot_words.length>0?this.state.hot_words.map(function(t,n){return p.a.createElement(g.b,{key:n,to:"/search-result?word=".concat(encodeURIComponent(t)),onClick:e.storeHistory.bind(e,t)},p.a.createElement(m,{name:"tagHot"},t))}):p.a.createElement("div",{style:{textAlign:"center",padding:"20px"}},"\u6682\u65e0\u70ed\u95e8"))))))}}]),t}(f.PureComponent);t.default=C},583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(3),o=(a=r)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var r={};if(t&&t.antLocale&&t.antLocale[n])r=t.antLocale[n];else{var s=a();r=s.default||s}var c=(0,o.default)({},r);e.locale&&(c=(0,o.default)({},c,e.locale),e.locale.lang&&(c.lang=(0,o.default)({},r.lang,e.locale.lang)));return c},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,n){"use strict";n(48),n(607)},607:function(e,t,n){},608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(3)),r=g(n(34)),o=g(n(5)),s=g(n(12)),c=g(n(6)),i=g(n(13)),l=g(n(15)),u=v(n(0)),h=v(n(2)),f=g(n(153)),p=g(n(583)),d=n(588),m=n(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,o.default)(this,t);var n=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,i.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,o=this.props,s=o.prefixCls,c=o.showCancelButton,i=o.disabled,h=o.placeholder,m=o.className,v=o.style,g=o.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(610)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,r.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,r.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),N=(0,l.default)(s+"-cancel",(e={},(0,r.default)(e,s+"-cancel-show",!!(c||w||b&&b.length>0)),(0,r.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:i,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},609:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},704:function(e,t,n){"use strict";n(606);var a=n(608),r=n.n(a),o=n(116),s=n(7),c=n(8),i=n(10),l=n(9),u=n(11),h=n(0),f=n.n(h),p=n(52),d=(n(705),function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(r)))).returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,r=e.value;r&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(o.a)(a),[r])))},n}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){return f.a.createElement("div",{className:"search-head"},f.a.createElement("div",{className:"left",onClick:this.returnPage},f.a.createElement("i",{className:"iconfont iconiconfront-68"})),f.a.createElement("div",{className:"center"},f.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b"})),f.a.createElement("div",{className:"right right-btn",onClick:this.search},f.a.createElement("div",{className:"submit-btn"},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(p.g)(d)},705:function(e,t,n){}}]);
//# sourceMappingURL=search.79e5b107.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1134:function(e,t,n){},1135:function(e,t,n){},1179:function(e,t,n){"use strict";n.r(t);var a=n(74),o=n.n(a),r=n(106),s=n(116),c=n(7),i=n(8),l=n(11),u=n(9),h=n(10),f=n(0),p=n.n(f),d=n(704),m=(n(1134),function(e){function t(){return Object(c.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return p.a.createElement("span",Object.assign({className:this.props.name},this.props),this.props.children)}}]),t}(f.PureComponent)),v=n(4),g=(n(1135),n(18)),y=n(64),C=function(e){function t(){var e,n;Object(c.a)(this,t);for(var a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];return(n=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],hot_words:[],searchList:[],value:"",isLoading:!0},n.clearHistory=function(){localStorage.setItem("searchHistory",null),n.setState({searchHistory:[]})},n.handleChange=function(e){n.setState({value:e})},n.handleSearch=function(){n.state.value&&n.props.history.push("/search-result?word=".concat(encodeURIComponent(n.state.value)))},n.storeHistory=function(e){localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(s.a)(n.state.searchHistory),[e])))},n}return Object(h.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(r.a)(o.a.mark(function e(){var t;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.c.get("".concat(API["search-api"],"/search_hot_word"));case 2:0===(t=e.sent).data.errno&&this.setState({hot_words:t.data.data.info.hot_words,isLoading:!1});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state.searchHistory;return p.a.createElement("div",{className:"search-page"},p.a.createElement(d.a,{searchHistory:this.state.searchHistory,value:this.state.value,handleChange:this.handleChange,handleSearch:this.handleSearch}),p.a.createElement(y.a,{isLoading:this.state.isLoading},p.a.createElement("div",{className:"search-main"},t.length>0&&p.a.createElement("div",{className:"search-land"},p.a.createElement("div",{className:"search-history"},p.a.createElement("span",null,"\u6700\u8fd1\u641c\u7d22"),p.a.createElement("i",{className:"iconfont iconiconfront-56",onClick:this.clearHistory})),p.a.createElement("div",{className:"search-tag"},t.map(function(e,t){return p.a.createElement(g.b,{key:t,to:"/search-result?word=".concat(encodeURIComponent(e))},p.a.createElement(m,{name:"tagLately"},e))}))),p.a.createElement("div",{className:"search-land search-hot"},p.a.createElement("label",{className:"search-history"},p.a.createElement("span",null,"\u70ed\u95e8\u641c\u7d22")),p.a.createElement("div",{className:"search-tag"},this.state.hot_words.length>0?this.state.hot_words.map(function(t,n){return p.a.createElement(g.b,{key:n,to:"/search-result?word=".concat(encodeURIComponent(t)),onClick:e.storeHistory.bind(e,t)},p.a.createElement(m,{name:"tagHot"},t))}):p.a.createElement("div",{style:{textAlign:"center",padding:"20px"}},"\u6682\u65e0\u70ed\u95e8"))))))}}]),t}(f.PureComponent);t.default=C},583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(3),r=(a=o)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var o={};if(t&&t.antLocale&&t.antLocale[n])o=t.antLocale[n];else{var s=a();o=s.default||s}var c=(0,r.default)({},o);e.locale&&(c=(0,r.default)({},c,e.locale),e.locale.lang&&(c.lang=(0,r.default)({},o.lang,e.locale.lang)));return c},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},606:function(e,t,n){"use strict";n(48),n(607)},607:function(e,t,n){},608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(3)),o=g(n(34)),r=g(n(5)),s=g(n(12)),c=g(n(6)),i=g(n(13)),l=g(n(15)),u=v(n(0)),h=v(n(2)),f=g(n(153)),p=g(n(583)),d=n(588),m=n(609);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,r.default)(this,t);var n=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,i.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,r=this.props,s=r.prefixCls,c=r.showCancelButton,i=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(610)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),N=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(c||w||b&&b.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:i,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},609:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},704:function(e,t,n){"use strict";n(606);var a=n(608),o=n.n(a),r=n(116),s=n(7),c=n(8),i=n(11),l=n(9),u=n(10),h=n(0),f=n.n(h),p=n(52),d=n(15),m=n.n(d),v=(n(705),function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return(n=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={isFocus:!1},n.returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,o=e.value;o&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(r.a)(a),[o])))},n.changeFontColor=function(e){n.setState({isFocus:e})},n}return Object(u.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,n=m()("submit-btn",{"submit-btn--active":t});return console.log(t),f.a.createElement("div",{className:"search-head"},f.a.createElement("div",{className:"left",onClick:this.returnPage},f.a.createElement("i",{className:"iconfont iconiconfront-68"})),f.a.createElement("div",{className:"center"},f.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)}})),f.a.createElement("div",{className:"right right-btn",onClick:this.search},f.a.createElement("div",{className:n},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(p.g)(v)},705:function(e,t,n){}}]);
//# sourceMappingURL=search.1f053f98.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","history","push","concat","encodeURIComponent","storeHistory","keyword","stringify","toConsumableArray","http","get","API","res","data","errno","info","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","cls","classnames","submit-btn--active","console","log","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"sPAEqBA,4L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G,UAAU,UACX6L,EAAAjM,EAAAC,cAAAiM,EAAAlM,EAAA,CACImB,MAAOd,KAAKC,MAAMa,MAClBiI,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJvD,OAAO,EACPD,SAAUzG,KAAKC,MAAMmB,aACrBsI,YAAY,2BACZ9C,QAAS,kBAAMvE,EAAKgJ,iBAAgB,IACpCvE,OAAQ,kBAAMzE,EAAKgJ,iBAAgB,OAG3CO,EAAAjM,EAAAC,cAAA,OAAKG,UAAU,kBAAkB0C,QAASzC,KAAKgL,QAC3CY,EAAAjM,EAAAC,cAAA,OAAKG,UAAWwL,GAAhB,yBAvDKnL,kBA8DV0L,gBAAWlB","file":"static/js/search.1f053f98.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`)\n if (res.data.errno === 0) {\n this.setState({\n hot_words: res.data.data.info.hot_words,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n this.state.value && this.props.history.push(`/search-result?word=${encodeURIComponent(this.state.value)}`)\n }\n\n storeHistory = keyword => {\n localStorage.setItem('searchHistory', JSON.stringify([...this.state.searchHistory, keyword]))\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n console.log(isFocus);\n return (\n <div className=\"search-head\">\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","history","push","concat","encodeURIComponent","storeHistory","keyword","stringify","toConsumableArray","http","get","API","res","data","errno","info","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","refs","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODUL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mB,aACrBsI,YAAY,8BAEpB2B,EAAA1L,EAAAC,cAAA,OAAKG,UAAU,kBAAkB0C,QAASzC,KAAK+K,QAC3CM,EAAA1L,EAAAC,cAAA,OAAKG,UAAU,cAAf,yBAxCKK,kBAgDVmL,gBAAWX","file":"static/js/search.79e5b107.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`)\n if (res.data.errno === 0) {\n this.setState({\n hot_words: res.data.data.info.hot_words,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n this.state.value && this.props.history.push(`/search-result?word=${encodeURIComponent(this.state.value)}`)\n }\n\n storeHistory = keyword => {\n localStorage.setItem('searchHistory', JSON.stringify([...this.state.searchHistory, keyword]))\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n }\n\n\n render() {\n return (\n <div className=\"search-head\">\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"/>\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className=\"submit-btn\">搜索\n </div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1158:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),i=a.n(n),s=a(7),r=a(8),c=a(10),o=a(9),l=a(156),d=a(11),m=a(0),u=a.n(m),g=(a(865),a(30)),h=a(4),v=a(866),f=a.n(v),p=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(o.a)(t).call(this,e))).initCanvas=function(e,t){var n=Object(l.a)(a),i=e[t].poster,s=450*e[t].header_position_x,r=800*e[t].header_position_y,c=(e[t].qr_code_x,e[t].qr_code_y,e[t].qr_code_width,e[t].qr_code_height,"https://m.julyedu.com/detail?id=".concat(Object(h.b)("courseId"),"&dist_code").concat(Object(h.b)("dist_code")),document.getElementById("canvas")),o=c.getContext("2d");n.getBase64(i).then(function(a){var i=new Image;i.src=a;var c=document.getElementById("qrcode"),l=navigator.userAgent.toLowerCase();l.indexOf("Android")>-1||l.indexOf("Adr"),l.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?c=document.getElementById("qrcode"):/(Android)/i.test(navigator.userAgent)&&(c=document.getElementById("qrcode")),i.setAttribute("crossOrigin","anonymous"),i.onload=function(){o.drawImage(i,0,0,450,800),o.drawImage(c,320,685,100,100),o.fillStyle=e[t].username_color,o.font="16px serif",o.fillText("@"+n.name,s+50+20,r+25),o.font="14px serif",o.fillText("\u6b63\u5728\u5b66\u4e60\u8be5\u8bfe\u7a0b",s+50+20,r+25+20),o.restore()}}).then(function(){n.getBase64(n.state.imgUrl).then(function(e){var t=new Image;t.src=e,t.setAttribute("crossOrigin","anonymous"),t.setAttribute("border-Radius","50%"),t.onload=function(){n.imgPosition(o,t,s,r,24),o.drawImage(t,s,r,48,48),o.restore(),n.setState({billSrc:n.convertCanvasToImage(c)})}})})},a.children=function(e,t){var a=e.childNodes,n=[];if(/MSIE(6|7|8)/.test(navigator.userAgent))for(var i=0;i<a.length;i++){var s=a[i];1===s.nodeType&&(n[n.length]=s)}else n=Array.prototype.slice.call(e.children);if("string"===typeof t)for(var r=0;r<n.length;r++)(e=n[r]).nodeName.toLowerCase()!==t.toLowerCase()&&(n.splice(r,1),r--);return n},a.imgPosition=function(e,t,a,n,i){e.save();var s=a+i,r=n+i;e.beginPath(),e.arc(s,r,i,0,2*Math.PI),e.clip()},a.getBase64Image=function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height);var a=e.src.substring(e.src.lastIndexOf(".")+1).toLowerCase();return t.toDataURL("image/"+a)},a.convertCanvasToImage=function(e){var t=new Image;return t.src=e.toDataURL("image/png"),t},a.squareClick=function(e){a.setState({smallactive:e}),a.initCanvas(a.state.bgImage,e)},a.state={codeSrc:"",billSrc:"",imgUrl:"",smallListImg:[],smallactive:0,distPrice:"",name:"",bgImage:[]},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getCodeWe(),h.c.get("".concat(API.home,"/m/dist/posters/").concat(Object(h.b)("courseId"),"/").concat(Object(h.b)("uid"))).then(function(t){200===t.data.code?(e.setState({imgUrl:t.data.data.avatar,smallListImg:t.data.data.list,distPrice:t.data.data.dist_course,bgImage:t.data.data.list,name:t.data.data.username}),e.initCanvas(e.state.bgImage,0)):i.a.info(t.data.msg,2)})}},{key:"getCodeWe",value:function(){var e=this,t="https://m.julyedu.com/detail?id=".concat(Object(h.b)("courseId"),"&dist_code=").concat(Object(h.b)("dist_code"));return new Promise(function(a){f.a.toDataURL(t,{},function(t,a){e.setState({codeSrc:a})}),a()})}},{key:"getBase64",value:function(e){var t=this;return new Promise(function(a){var n=null,i=new Image,s=+new Date;i.setAttribute("crossOrigin","anonymous"),i.src=e+"?"+s,i.onload=function(){n=t.getBase64Image(i),a(n)},i.onerror=function(){var a=+new Date;t.getBase64(e+"?"+a)}})}},{key:"render",value:function(){var e=this;return u.a.createElement("div",{className:"share-poster"},u.a.createElement(g.e,{title:"\u751f\u6210\u4e13\u5c5e\u6d77\u62a5",arrow:!0,cart:!1}),u.a.createElement("div",{className:"total-container"},u.a.createElement("div",{className:"placard-img-container",id:"imgWrapper"},u.a.createElement("img",{src:this.state.billSrc.src,alt:""})),u.a.createElement("img",{src:this.state.codeSrc,alt:"",id:"qrcode",className:"placard-code"}),u.a.createElement("canvas",{id:"canvas",width:"450",height:"800",className:""===this.state.billSrc?"":"hide"})),u.a.createElement("div",{className:"placard-desc"},u.a.createElement("span",{className:"placard-sharetxt"},"\u957f\u6309\u4fdd\u5b58\u6d77\u62a5\u5206\u4eab\u7ed9\u597d\u53cb\uff0c\u6bcf\u6709\u4e00\u4eba\u901a\u8fc7\u60a8\u7684\u5206\u4eab\u8d2d\u4e70\u8be5\u8bfe\u7a0b\uff0c\u60a8\u53ef\u4ee5",0===this.state.distPrice.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97",this.state.distPrice.first_level_tip,"\u5143\u7684\u4f63\u91d1\u5956\u52b1\u3002"),1===this.state.distPrice.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97\u6210\u4ea4\u91d1\u989d\u7684",this.state.distPrice.first_level_scale,"%\u4f5c\u4e3a\u4f63\u91d1\u5956\u52b1\u3002"))),u.a.createElement("div",{className:"placard-swiper"},u.a.createElement("ul",{className:"placard-list"},this.state.smallListImg&&this.state.smallListImg.length>0&&this.state.smallListImg.map(function(t,a){return u.a.createElement("li",{onClick:e.squareClick.bind(e,a),key:a,className:e.state.smallactive===a?"active":""},u.a.createElement("img",{src:t.square,alt:""}))}))))}}]),t}(m.Component);t.default=p},865:function(e,t,a){}}]);
//# sourceMappingURL=shareposter.5c853d61.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1158:function(e,t,a){"use strict";a.r(t);a(44);var n=a(14),i=a.n(n),s=a(7),r=a(8),c=a(11),o=a(9),l=a(156),d=a(10),m=a(0),u=a.n(m),g=(a(865),a(30)),h=a(4),v=a(866),f=a.n(v),p=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(o.a)(t).call(this,e))).initCanvas=function(e,t){var n=Object(l.a)(a),i=e[t].poster,s=450*e[t].header_position_x,r=800*e[t].header_position_y,c=(e[t].qr_code_x,e[t].qr_code_y,e[t].qr_code_width,e[t].qr_code_height,"https://m.julyedu.com/detail?id=".concat(Object(h.b)("courseId"),"&dist_code").concat(Object(h.b)("dist_code")),document.getElementById("canvas")),o=c.getContext("2d");n.getBase64(i).then(function(a){var i=new Image;i.src=a;var c=document.getElementById("qrcode"),l=navigator.userAgent.toLowerCase();l.indexOf("Android")>-1||l.indexOf("Adr"),l.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?c=document.getElementById("qrcode"):/(Android)/i.test(navigator.userAgent)&&(c=document.getElementById("qrcode")),i.setAttribute("crossOrigin","anonymous"),i.onload=function(){o.drawImage(i,0,0,450,800),o.drawImage(c,320,685,100,100),o.fillStyle=e[t].username_color,o.font="16px serif",o.fillText("@"+n.name,s+50+20,r+25),o.font="14px serif",o.fillText("\u6b63\u5728\u5b66\u4e60\u8be5\u8bfe\u7a0b",s+50+20,r+25+20),o.restore()}}).then(function(){n.getBase64(n.state.imgUrl).then(function(e){var t=new Image;t.src=e,t.setAttribute("crossOrigin","anonymous"),t.setAttribute("border-Radius","50%"),t.onload=function(){n.imgPosition(o,t,s,r,24),o.drawImage(t,s,r,48,48),o.restore(),n.setState({billSrc:n.convertCanvasToImage(c)})}})})},a.children=function(e,t){var a=e.childNodes,n=[];if(/MSIE(6|7|8)/.test(navigator.userAgent))for(var i=0;i<a.length;i++){var s=a[i];1===s.nodeType&&(n[n.length]=s)}else n=Array.prototype.slice.call(e.children);if("string"===typeof t)for(var r=0;r<n.length;r++)(e=n[r]).nodeName.toLowerCase()!==t.toLowerCase()&&(n.splice(r,1),r--);return n},a.imgPosition=function(e,t,a,n,i){e.save();var s=a+i,r=n+i;e.beginPath(),e.arc(s,r,i,0,2*Math.PI),e.clip()},a.getBase64Image=function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height);var a=e.src.substring(e.src.lastIndexOf(".")+1).toLowerCase();return t.toDataURL("image/"+a)},a.convertCanvasToImage=function(e){var t=new Image;return t.src=e.toDataURL("image/png"),t},a.squareClick=function(e){a.setState({smallactive:e}),a.initCanvas(a.state.bgImage,e)},a.state={codeSrc:"",billSrc:"",imgUrl:"",smallListImg:[],smallactive:0,distPrice:"",name:"",bgImage:[]},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getCodeWe(),h.c.get("".concat(API.home,"/m/dist/posters/").concat(Object(h.b)("courseId"),"/").concat(Object(h.b)("uid"))).then(function(t){200===t.data.code?(e.setState({imgUrl:t.data.data.avatar,smallListImg:t.data.data.list,distPrice:t.data.data.dist_course,bgImage:t.data.data.list,name:t.data.data.username}),e.initCanvas(e.state.bgImage,0)):i.a.info(t.data.msg,2)})}},{key:"getCodeWe",value:function(){var e=this,t="https://m.julyedu.com/detail?id=".concat(Object(h.b)("courseId"),"&dist_code=").concat(Object(h.b)("dist_code"));return new Promise(function(a){f.a.toDataURL(t,{},function(t,a){e.setState({codeSrc:a})}),a()})}},{key:"getBase64",value:function(e){var t=this;return new Promise(function(a){var n=null,i=new Image,s=+new Date;i.setAttribute("crossOrigin","anonymous"),i.src=e+"?"+s,i.onload=function(){n=t.getBase64Image(i),a(n)},i.onerror=function(){var a=+new Date;t.getBase64(e+"?"+a)}})}},{key:"render",value:function(){var e=this;return u.a.createElement("div",{className:"share-poster"},u.a.createElement(g.e,{title:"\u751f\u6210\u4e13\u5c5e\u6d77\u62a5",arrow:!0,cart:!1}),u.a.createElement("div",{className:"total-container"},u.a.createElement("div",{className:"placard-img-container",id:"imgWrapper"},u.a.createElement("img",{src:this.state.billSrc.src,alt:""})),u.a.createElement("img",{src:this.state.codeSrc,alt:"",id:"qrcode",className:"placard-code"}),u.a.createElement("canvas",{id:"canvas",width:"450",height:"800",className:""===this.state.billSrc?"":"hide"})),u.a.createElement("div",{className:"placard-desc"},u.a.createElement("span",{className:"placard-sharetxt"},"\u957f\u6309\u4fdd\u5b58\u6d77\u62a5\u5206\u4eab\u7ed9\u597d\u53cb\uff0c\u6bcf\u6709\u4e00\u4eba\u901a\u8fc7\u60a8\u7684\u5206\u4eab\u8d2d\u4e70\u8be5\u8bfe\u7a0b\uff0c\u60a8\u53ef\u4ee5",0===this.state.distPrice.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97",this.state.distPrice.first_level_tip,"\u5143\u7684\u4f63\u91d1\u5956\u52b1\u3002"),1===this.state.distPrice.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97\u6210\u4ea4\u91d1\u989d\u7684",this.state.distPrice.first_level_scale,"%\u4f5c\u4e3a\u4f63\u91d1\u5956\u52b1\u3002"))),u.a.createElement("div",{className:"placard-swiper"},u.a.createElement("ul",{className:"placard-list"},this.state.smallListImg&&this.state.smallListImg.length>0&&this.state.smallListImg.map(function(t,a){return u.a.createElement("li",{onClick:e.squareClick.bind(e,a),key:a,className:e.state.smallactive===a?"active":""},u.a.createElement("img",{src:t.square,alt:""}))}))))}}]),t}(m.Component);t.default=p},865:function(e,t,a){}}]);
//# sourceMappingURL=shareposter.ce440fc4.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/sharePoster/index.js"],"names":["SharePoster","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCanvas","imgList","index","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","imgSrc1","poster","avatarPositionX","header_position_x","avatarPositionY","header_position_y","canvas","qr_code_x","qr_code_y","qr_code_width","qr_code_height","concat","getParam","document","getElementById","context","getContext","getBase64","then","img","bgImage","Image","src","qrCodeImg","ua","navigator","userAgent","toLowerCase","indexOf","match","test","setAttribute","onload","drawImage","fillStyle","username_color","font","fillText","name","avatarHeight","restore","state","imgUrl","imgPosition","setState","billSrc","convertCanvasToImage","children","curEle","tagName","nodeList","childNodes","ary","i","length","curNode","nodeType","Array","prototype","slice","k","nodeName","splice","ctx","x","y","r","save","cx","cy","beginPath","arc","Math","PI","clip","getBase64Image","createElement","width","height","ext","substring","lastIndexOf","toDataURL","image","squareClick","smallactive","codeSrc","smallListImg","distPrice","_this3","getCodeWe","http","get","API","home","res","data","code","avatar","list","dist_course","username","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","qrCodeLink","Promise","resolve","QRCode","err","url","base64","timeStamp","Date","onerror","_this4","react__WEBPACK_IMPORTED_MODULE_8___default","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","id","alt","count_type","first_level_tip","first_level_scale","map","item","onClick","bind","key","square","Component"],"mappings":"sOASMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAgCVQ,WAAa,SAACC,EAASC,GACnB,IAAIC,EAAKT,OAAAU,EAAA,EAAAV,CAAAD,GACLY,EAAUJ,EAAQC,GAAOI,OAKzBC,EAJS,IAIUN,EAAQC,GAAOM,kBAClCC,EAJU,IAISR,EAAQC,GAAOQ,kBASlCC,GAPkBV,EAAQC,GAAOU,UACfX,EAAQC,GAAOW,UAClBZ,EAAQC,GAAOY,cACdb,EAAQC,GAAOa,eAErB,mCAAAC,OAAsCC,YAAS,YAA/C,cAAAD,OAAuEC,YAAS,cAEjFC,SAASC,eAAe,WACjCC,EAAUT,EAAOU,WAAW,MAEhClB,EAAMmB,UAAUjB,GAEXkB,KAAK,SAACC,GACH,IAAIC,EAAU,IAAIC,MAClBD,EAAQE,IAAMH,EACd,IAAII,EAAYV,SAASC,eAAe,UACpCU,EAAKC,UAAUC,UAAUC,cAEbH,EAAGI,QAAQ,YAAc,GAAKJ,EAAGI,QAAQ,OAE3CJ,EAAGK,MAAM,iCACnB,0BAA0BC,KAAKL,UAAUC,WACzCH,EAAYV,SAASC,eAAe,UAC7B,aAAagB,KAAKL,UAAUC,aAEnCH,EAAYV,SAASC,eAAe,WAIxCM,EAAQW,aAAa,cAAe,aACpCX,EAAQY,OAAS,WACbjB,EAAQkB,UAAUb,EAAS,EAAG,EAAG,IAAK,KACtCL,EAAQkB,UAAUV,EAAW,IAAK,IAAK,IAAK,KAC5CR,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wE,EAAAd,EAAA3B,cAAA,OAAK0C,UAAU,gBACXD,EAAAd,EAAA3B,cAAA,QAAM0C,UAAU,oBAAhB,6LAG4C,IAApC/H,KAAKkD,MAAM+C,UAAUqC,YACrBR,EAAAd,EAAA3B,cAAA,QAAM0C,UAAU,iBAAhB,eAAmC/H,KAAKkD,MAAM+C,UAAUsC,gBAAxD,8CAGoC,IAApCvI,KAAKkD,MAAM+C,UAAUqC,YACrBR,EAAAd,EAAA3B,cAAA,QACI0C,UAAU,iBADd,6CACsC/H,KAAKkD,MAAM+C,UAAUuC,kBAD3D,iDAMZV,EAAAd,EAAA3B,cAAA,OAAK0C,UAAU,kBACXD,EAAAd,EAAA3B,cAAA,MAAI0C,UAAU,gBAEN/H,KAAKkD,MAAM8C,cAAgBhG,KAAKkD,MAAM8C,aAAajC,OAAS,GAAK/D,KAAKkD,MAAM8C,aAAayC,IAAI,SAACC,EAAMpI,GAChG,OACIwH,EAAAd,EAAA3B,cAAA,MAAIsD,QAASd,EAAKhC,YAAY+C,KAAKf,EAAMvH,GAAQuI,IAAKvI,EAClDyH,UAAWF,EAAK3E,MAAM4C,cAAgBxF,EAAQ,SAAW,IACzDwH,EAAAd,EAAA3B,cAAA,OAAKtD,IAAK2G,EAAKI,OAAQT,IAAI,kBA7PzCU,aA0QXpJ","file":"static/js/shareposter.5c853d61.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './index.scss'\nimport {HeaderBar} from '../../common'\nimport {http, api, getParam} from '@/utils'\nimport QRCode from 'qrcode'\nimport { Toast} from 'antd-mobile'\n\n\n\nclass SharePoster extends Component {\n constructor(props) {\n super(props)\n this.state = {\n codeSrc: '',\n billSrc: '', // 图片链接\n imgUrl: '',\n smallListImg: [], // 小图片地址\n smallactive: 0, // 小图选中标记\n distPrice: '', // 分销价格\n name: '', // 用户姓名\n bgImage: [] // 背景图\n }\n }\n\n componentDidMount() {\n this.getCodeWe()\n http.get(`${API.home}/m/dist/posters/${getParam('courseId')}/${getParam('uid')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n imgUrl: res.data.data.avatar,\n smallListImg: res.data.data.list,\n distPrice: res.data.data.dist_course,\n bgImage: res.data.data.list,\n name: res.data.data.username\n })\n this.initCanvas(this.state.bgImage, 0)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 初始化海报\n initCanvas = (imgList, index) => {\n let _this = this;\n let imgSrc1 = imgList[index].poster;\n let $width = 450;\n let $height = 800;\n let avatarWidth = 50 // imgList[index].poster_width // 头像宽度\n let avatarHeight = 50 // imgList[index].poster_height // 头像高度\n let avatarPositionX = (imgList[index].header_position_x * $width) // 头像x轴位置\n let avatarPositionY = (imgList[index].header_position_y * $height) // 头像Y轴位置\n\n let qrCodePositionX = imgList[index].qr_code_x * $width // 二维码x轴位置\n let qrCodePositionY = imgList[index].qr_code_y * $height // 二维码y轴位置\n let qrCodeWidth = (imgList[index].qr_code_width * $width) // 二维码宽度\n let qrCodeHeight = (imgList[index].qr_code_height * $height) - avatarHeight / 2 // 二维码高度\n\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code${getParam('dist_code')}`\n\n var canvas = document.getElementById(\"canvas\"),\n context = canvas.getContext(\"2d\");\n\n _this.getBase64(imgSrc1)\n // 背景图片合成\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n let qrCodeImg = document.getElementById('qrcode');\n let ua = navigator.userAgent.toLowerCase();\n // Android终端\n let isAndroid = ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1;\n // Ios终端\n let isiOS = !!ua.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/);\n if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {\n qrCodeImg = document.getElementById('qrcode');\n } else if (/(Android)/i.test(navigator.userAgent)) {\n //Android终端\n qrCodeImg = document.getElementById('qrcode');\n\n }\n\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.onload = function () {\n context.drawImage(bgImage, 0, 0, 450, 800);\n context.drawImage(qrCodeImg, 320, 685, 100, 100);\n context.fillStyle = imgList[index].username_color;\n context.font = \"16px serif\";\n context.fillText('@' + _this.name, (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2));\n context.font = \"14px serif\";\n context.fillText('正在学习该课程', (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2) + 20);\n context.restore();\n }\n\n })\n // 头像生成\n .then(() => {\n _this.getBase64(_this.state.imgUrl)\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.setAttribute('border-Radius', '50%');\n bgImage.onload = function () {\n _this.imgPosition(context, bgImage, avatarPositionX, avatarPositionY, 24);\n context.drawImage(bgImage, avatarPositionX, avatarPositionY, 48, 48);\n context.restore();\n _this.setState({\n billSrc: _this.convertCanvasToImage(canvas)\n })\n\n }\n })\n\n })\n }\n children = (curEle, tagName) => {\n var nodeList = curEle.childNodes;\n var ary = [];\n if (/MSIE(6|7|8)/.test(navigator.userAgent)) {\n for (var i = 0; i < nodeList.length; i++) {\n var curNode = nodeList[i];\n if (curNode.nodeType === 1) {\n ary[ary.length] = curNode;\n }\n }\n } else {\n ary = Array.prototype.slice.call(curEle.children);\n }\n\n // 获取指定子元素\n if (typeof tagName === \"string\") {\n for (var k = 0; k < ary.length; k++) {\n curEle = ary[k];\n if (curEle.nodeName.toLowerCase() !== tagName.toLowerCase()) {\n ary.splice(k, 1);\n k--;\n }\n }\n }\n\n return ary;\n }\n\n // 合成图片位置\n imgPosition = (ctx, img, x, y, r) => {\n ctx.save();\n var d = 2 * r;\n var cx = x + r;\n var cy = y + r;\n ctx.beginPath();\n ctx.arc(cx, cy, r, 0, 2 * Math.PI);\n ctx.clip();\n }\n\n // 获取二维码\n getCodeWe() {\n let _this = this\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code=${getParam('dist_code')}`\n return new Promise(resolve => {\n QRCode.toDataURL(qrCodeLink, {}, function (err, url) {\n _this.setState({\n codeSrc: url\n })\n })\n /*\n let qrcode = new QRCode(document.getElementById('qrcode'), {\n text: qrCodeLink,\n width: 160,\n height: 160,\n colorDark: \"#000000\", // 生成的二维码的深色部分\n colorLight: \"#ffffff\", //生成二维码的浅色部分\n })\n */\n resolve()\n })\n }\n\n // 图片路径转成base64\n getBase64(img) {\n let _this = this;\n return new Promise(resolve => {\n let base64 = null;\n let image = new Image();\n let timeStamp = +new Date();\n image.setAttribute('crossOrigin', 'anonymous');\n image.src = img + '?' + timeStamp;\n image.onload = () => {\n base64 = _this.getBase64Image(image)\n resolve(base64)\n }\n image.onerror = function () {\n let timeStamp = +new Date();\n _this.getBase64(img + '?' + timeStamp);\n }\n })\n\n }\n\n // 图片路径放入canvas转成base64\n getBase64Image = (img) => {\n let canvas = document.createElement(\"canvas\");\n canvas.width = img.width;\n canvas.height = img.height;\n\n let ctx = canvas.getContext(\"2d\");\n ctx.drawImage(img, 0, 0, img.width, img.height);\n let ext = img.src.substring(img.src.lastIndexOf(\".\") + 1).toLowerCase();\n let dataURL = canvas.toDataURL(\"image/\" + ext);\n return dataURL;\n }\n\n // canvas转换成img图片\n convertCanvasToImage = (canvas) => {\n let image = new Image();\n image.src = canvas.toDataURL(\"image/png\");\n return image;\n }\n\n // 小图切换\n squareClick = (index) => {\n this.setState({\n smallactive: index\n })\n this.initCanvas(this.state.bgImage, index);\n\n }\n\n render() {\n return (\n <div className='share-poster'>\n <HeaderBar title='生成专属海报' arrow={true} cart={false}></HeaderBar>\n <div className=\"total-container\">\n <div className='placard-img-container' id='imgWrapper'>\n <img src={this.state.billSrc.src} alt=\"\"/>\n </div>\n <img src={this.state.codeSrc} alt=\"\" id='qrcode' className='placard-code'/>\n <canvas id='canvas' width='450' height='800'\n className={this.state.billSrc === '' ? '' : 'hide'}></canvas>\n </div>\n <div className='placard-desc'>\n <span className='placard-sharetxt'>\n 长按保存海报分享给好友,每有一人通过您的分享购买该课程,您可以\n {\n this.state.distPrice.count_type === 0 &&\n <span className='placard-price'>获得{this.state.distPrice.first_level_tip}元的佣金奖励。</span>\n }\n {\n this.state.distPrice.count_type === 1 &&\n <span\n className='placard-price'>获得成交金额的{this.state.distPrice.first_level_scale}%作为佣金奖励。</span>\n }\n </span>\n </div>\n\n <div className='placard-swiper'>\n <ul className='placard-list'>\n {\n this.state.smallListImg && this.state.smallListImg.length > 0 && this.state.smallListImg.map((item, index) => {\n return (\n <li onClick={this.squareClick.bind(this, index)} key={index}\n className={this.state.smallactive === index ? 'active' : ''}>\n <img src={item.square} alt=\"\"/>\n </li>\n )\n })\n }\n </ul>\n </div>\n\n </div>\n )\n }\n}\n\nexport default SharePoster\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/sharePoster/index.js"],"names":["SharePoster","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCanvas","imgList","index","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","imgSrc1","poster","avatarPositionX","header_position_x","avatarPositionY","header_position_y","canvas","qr_code_x","qr_code_y","qr_code_width","qr_code_height","concat","getParam","document","getElementById","context","getContext","getBase64","then","img","bgImage","Image","src","qrCodeImg","ua","navigator","userAgent","toLowerCase","indexOf","match","test","setAttribute","onload","drawImage","fillStyle","username_color","font","fillText","name","avatarHeight","restore","state","imgUrl","imgPosition","setState","billSrc","convertCanvasToImage","children","curEle","tagName","nodeList","childNodes","ary","i","length","curNode","nodeType","Array","prototype","slice","k","nodeName","splice","ctx","x","y","r","save","cx","cy","beginPath","arc","Math","PI","clip","getBase64Image","createElement","width","height","ext","substring","lastIndexOf","toDataURL","image","squareClick","smallactive","codeSrc","smallListImg","distPrice","_this3","getCodeWe","http","get","API","home","res","data","code","avatar","list","dist_course","username","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","qrCodeLink","Promise","resolve","QRCode","err","url","base64","timeStamp","Date","onerror","_this4","react__WEBPACK_IMPORTED_MODULE_8___default","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","id","alt","count_type","first_level_tip","first_level_scale","map","item","onClick","bind","key","square","Component"],"mappings":"sOASMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAgCVQ,WAAa,SAACC,EAASC,GACnB,IAAIC,EAAKT,OAAAU,EAAA,EAAAV,CAAAD,GACLY,EAAUJ,EAAQC,GAAOI,OAKzBC,EAJS,IAIUN,EAAQC,GAAOM,kBAClCC,EAJU,IAISR,EAAQC,GAAOQ,kBASlCC,GAPkBV,EAAQC,GAAOU,UACfX,EAAQC,GAAOW,UAClBZ,EAAQC,GAAOY,cACdb,EAAQC,GAAOa,eAErB,mCAAAC,OAAsCC,YAAS,YAA/C,cAAAD,OAAuEC,YAAS,cAEjFC,SAASC,eAAe,WACjCC,EAAUT,EAAOU,WAAW,MAEhClB,EAAMmB,UAAUjB,GAEXkB,KAAK,SAACC,GACH,IAAIC,EAAU,IAAIC,MAClBD,EAAQE,IAAMH,EACd,IAAII,EAAYV,SAASC,eAAe,UACpCU,EAAKC,UAAUC,UAAUC,cAEbH,EAAGI,QAAQ,YAAc,GAAKJ,EAAGI,QAAQ,OAE3C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AK/B,KAAKkD,MAAMI,QAAQvB,IAAKsG,IAAI,MAE1CP,EAAAd,EAAA3B,cAAA,OAAKtD,IAAK/B,KAAKkD,MAAM6C,QAASsC,IAAI,GAAGD,GAAG,SAASL,UAAU,iBAC3DD,EAAAd,EAAA3B,cAAA,UAAQ+C,GAAG,SAAS9C,MAAM,MAAMC,OAAO,MAC/BwC,UAAkC,KAAvB/H,KAAKkD,MAAMI,QAAiB,GAAK,UAExDwE,EAAAd,EAAA3B,cAAA,OAAK0C,UAAU,gBACXD,EAAAd,EAAA3B,cAAA,QAAM0C,UAAU,oBAAhB,6LAG4C,IAApC/H,KAAKkD,MAAM+C,UAAUqC,YACrBR,EAAAd,EAAA3B,cAAA,QAAM0C,UAAU,iBAAhB,eAAmC/H,KAAKkD,MAAM+C,UAAUsC,gBAAxD,8CAGoC,IAApCvI,KAAKkD,MAAM+C,UAAUqC,YACrBR,EAAAd,EAAA3B,cAAA,QACI0C,UAAU,iBADd,6CACsC/H,KAAKkD,MAAM+C,UAAUuC,kBAD3D,iDAMZV,EAAAd,EAAA3B,cAAA,OAAK0C,UAAU,kBACXD,EAAAd,EAAA3B,cAAA,MAAI0C,UAAU,gBAEN/H,KAAKkD,MAAM8C,cAAgBhG,KAAKkD,MAAM8C,aAAajC,OAAS,GAAK/D,KAAKkD,MAAM8C,aAAayC,IAAI,SAACC,EAAMpI,GAChG,OACIwH,EAAAd,EAAA3B,cAAA,MAAIsD,QAASd,EAAKhC,YAAY+C,KAAKf,EAAMvH,GAAQuI,IAAKvI,EAClDyH,UAAWF,EAAK3E,MAAM4C,cAAgBxF,EAAQ,SAAW,IACzDwH,EAAAd,EAAA3B,cAAA,OAAKtD,IAAK2G,EAAKI,OAAQT,IAAI,kBA7PzCU,aA0QXpJ","file":"static/js/shareposter.ce440fc4.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './index.scss'\nimport {HeaderBar} from '../../common'\nimport {http, api, getParam} from '@/utils'\nimport QRCode from 'qrcode'\nimport { Toast} from 'antd-mobile'\n\n\n\nclass SharePoster extends Component {\n constructor(props) {\n super(props)\n this.state = {\n codeSrc: '',\n billSrc: '', // 图片链接\n imgUrl: '',\n smallListImg: [], // 小图片地址\n smallactive: 0, // 小图选中标记\n distPrice: '', // 分销价格\n name: '', // 用户姓名\n bgImage: [] // 背景图\n }\n }\n\n componentDidMount() {\n this.getCodeWe()\n http.get(`${API.home}/m/dist/posters/${getParam('courseId')}/${getParam('uid')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n imgUrl: res.data.data.avatar,\n smallListImg: res.data.data.list,\n distPrice: res.data.data.dist_course,\n bgImage: res.data.data.list,\n name: res.data.data.username\n })\n this.initCanvas(this.state.bgImage, 0)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 初始化海报\n initCanvas = (imgList, index) => {\n let _this = this;\n let imgSrc1 = imgList[index].poster;\n let $width = 450;\n let $height = 800;\n let avatarWidth = 50 // imgList[index].poster_width // 头像宽度\n let avatarHeight = 50 // imgList[index].poster_height // 头像高度\n let avatarPositionX = (imgList[index].header_position_x * $width) // 头像x轴位置\n let avatarPositionY = (imgList[index].header_position_y * $height) // 头像Y轴位置\n\n let qrCodePositionX = imgList[index].qr_code_x * $width // 二维码x轴位置\n let qrCodePositionY = imgList[index].qr_code_y * $height // 二维码y轴位置\n let qrCodeWidth = (imgList[index].qr_code_width * $width) // 二维码宽度\n let qrCodeHeight = (imgList[index].qr_code_height * $height) - avatarHeight / 2 // 二维码高度\n\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code${getParam('dist_code')}`\n\n var canvas = document.getElementById(\"canvas\"),\n context = canvas.getContext(\"2d\");\n\n _this.getBase64(imgSrc1)\n // 背景图片合成\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n let qrCodeImg = document.getElementById('qrcode');\n let ua = navigator.userAgent.toLowerCase();\n // Android终端\n let isAndroid = ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1;\n // Ios终端\n let isiOS = !!ua.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/);\n if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {\n qrCodeImg = document.getElementById('qrcode');\n } else if (/(Android)/i.test(navigator.userAgent)) {\n //Android终端\n qrCodeImg = document.getElementById('qrcode');\n\n }\n\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.onload = function () {\n context.drawImage(bgImage, 0, 0, 450, 800);\n context.drawImage(qrCodeImg, 320, 685, 100, 100);\n context.fillStyle = imgList[index].username_color;\n context.font = \"16px serif\";\n context.fillText('@' + _this.name, (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2));\n context.font = \"14px serif\";\n context.fillText('正在学习该课程', (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2) + 20);\n context.restore();\n }\n\n })\n // 头像生成\n .then(() => {\n _this.getBase64(_this.state.imgUrl)\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.setAttribute('border-Radius', '50%');\n bgImage.onload = function () {\n _this.imgPosition(context, bgImage, avatarPositionX, avatarPositionY, 24);\n context.drawImage(bgImage, avatarPositionX, avatarPositionY, 48, 48);\n context.restore();\n _this.setState({\n billSrc: _this.convertCanvasToImage(canvas)\n })\n\n }\n })\n\n })\n }\n children = (curEle, tagName) => {\n var nodeList = curEle.childNodes;\n var ary = [];\n if (/MSIE(6|7|8)/.test(navigator.userAgent)) {\n for (var i = 0; i < nodeList.length; i++) {\n var curNode = nodeList[i];\n if (curNode.nodeType === 1) {\n ary[ary.length] = curNode;\n }\n }\n } else {\n ary = Array.prototype.slice.call(curEle.children);\n }\n\n // 获取指定子元素\n if (typeof tagName === \"string\") {\n for (var k = 0; k < ary.length; k++) {\n curEle = ary[k];\n if (curEle.nodeName.toLowerCase() !== tagName.toLowerCase()) {\n ary.splice(k, 1);\n k--;\n }\n }\n }\n\n return ary;\n }\n\n // 合成图片位置\n imgPosition = (ctx, img, x, y, r) => {\n ctx.save();\n var d = 2 * r;\n var cx = x + r;\n var cy = y + r;\n ctx.beginPath();\n ctx.arc(cx, cy, r, 0, 2 * Math.PI);\n ctx.clip();\n }\n\n // 获取二维码\n getCodeWe() {\n let _this = this\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code=${getParam('dist_code')}`\n return new Promise(resolve => {\n QRCode.toDataURL(qrCodeLink, {}, function (err, url) {\n _this.setState({\n codeSrc: url\n })\n })\n /*\n let qrcode = new QRCode(document.getElementById('qrcode'), {\n text: qrCodeLink,\n width: 160,\n height: 160,\n colorDark: \"#000000\", // 生成的二维码的深色部分\n colorLight: \"#ffffff\", //生成二维码的浅色部分\n })\n */\n resolve()\n })\n }\n\n // 图片路径转成base64\n getBase64(img) {\n let _this = this;\n return new Promise(resolve => {\n let base64 = null;\n let image = new Image();\n let timeStamp = +new Date();\n image.setAttribute('crossOrigin', 'anonymous');\n image.src = img + '?' + timeStamp;\n image.onload = () => {\n base64 = _this.getBase64Image(image)\n resolve(base64)\n }\n image.onerror = function () {\n let timeStamp = +new Date();\n _this.getBase64(img + '?' + timeStamp);\n }\n })\n\n }\n\n // 图片路径放入canvas转成base64\n getBase64Image = (img) => {\n let canvas = document.createElement(\"canvas\");\n canvas.width = img.width;\n canvas.height = img.height;\n\n let ctx = canvas.getContext(\"2d\");\n ctx.drawImage(img, 0, 0, img.width, img.height);\n let ext = img.src.substring(img.src.lastIndexOf(\".\") + 1).toLowerCase();\n let dataURL = canvas.toDataURL(\"image/\" + ext);\n return dataURL;\n }\n\n // canvas转换成img图片\n convertCanvasToImage = (canvas) => {\n let image = new Image();\n image.src = canvas.toDataURL(\"image/png\");\n return image;\n }\n\n // 小图切换\n squareClick = (index) => {\n this.setState({\n smallactive: index\n })\n this.initCanvas(this.state.bgImage, index);\n\n }\n\n render() {\n return (\n <div className='share-poster'>\n <HeaderBar title='生成专属海报' arrow={true} cart={false}></HeaderBar>\n <div className=\"total-container\">\n <div className='placard-img-container' id='imgWrapper'>\n <img src={this.state.billSrc.src} alt=\"\"/>\n </div>\n <img src={this.state.codeSrc} alt=\"\" id='qrcode' className='placard-code'/>\n <canvas id='canvas' width='450' height='800'\n className={this.state.billSrc === '' ? '' : 'hide'}></canvas>\n </div>\n <div className='placard-desc'>\n <span className='placard-sharetxt'>\n 长按保存海报分享给好友,每有一人通过您的分享购买该课程,您可以\n {\n this.state.distPrice.count_type === 0 &&\n <span className='placard-price'>获得{this.state.distPrice.first_level_tip}元的佣金奖励。</span>\n }\n {\n this.state.distPrice.count_type === 1 &&\n <span\n className='placard-price'>获得成交金额的{this.state.distPrice.first_level_scale}%作为佣金奖励。</span>\n }\n </span>\n </div>\n\n <div className='placard-swiper'>\n <ul className='placard-list'>\n {\n this.state.smallListImg && this.state.smallListImg.length > 0 && this.state.smallListImg.map((item, index) => {\n return (\n <li onClick={this.squareClick.bind(this, index)} key={index}\n className={this.state.smallactive === index ? 'active' : ''}>\n <img src={item.square} alt=\"\"/>\n </li>\n )\n })\n }\n </ul>\n </div>\n\n </div>\n )\n }\n}\n\nexport default SharePoster\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1176:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),r=a(10),o=a(9),i=a(11),l=a(0),c=a.n(l),u=(a(782),a(18)),p=a(52),d=a(647),m=(a(783),a(157)),h=a(21),f=a(84),v=a(649),b=a.n(v),y=a(40),E=a(30);var g=c.a.memo(function(e){var t=e.addCourseClick;return c.a.createElement("div",{className:"add-course"},c.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});function L(e){var t=e.record,a=t.seconds,n=t.lesson_name,s="";if(n){var r=/\u7b2c[\s\S]+?\u8bfe/.exec(n);s+=r&&r[0]?r[0]:""}if(a){var o=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);s+=(o.hour?String(o.hour).padStart(2,"0")+":":"")+(o.min?String(o.min).padStart(2,"0")+":":"")+(o.sec?String(o.sec).padStart(2,"0"):"")}return c.a.createElement("span",{className:"record"},s.length?"\u5b66\u4e60\u5230".concat(s):null)}var w=c.a.memo(function(e){var t=e.item;if(t.ago||t.seconds){var a=new Date(1e3*t.ago),n=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");return c.a.createElement("div",{className:"des"},c.a.createElement("span",{className:"time"},n),c.a.createElement(L,{record:t}))}return c.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={isLoading:!0},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.addCourseClick=function(){a.props.history.push("/classify")},a.loadFunc=Object(y.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.props.switchTab(!1),this.props.fetchCoursesListIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.switchTab(!0)}},{key:"render",value:function(){var e=this,t=this.props,a=t.courseList,n=t.user;return c.a.createElement(E.f,{isLoading:this.props.isLoading},a&&0!==a.length?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!n.hasError&&this.props.user.data.uid)),c.a.createElement(b.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},c.a.createElement("ul",{ref:function(t){return e.list=t}},a.map(function(t,a){var n=c.a.createElement("div",{className:"info"},c.a.createElement("div",{className:"title"},t.course_title),t.is_aist?c.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):c.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&c.a.createElement("div",{className:"process-status"},c.a.createElement("div",{className:"process-wrapper"},c.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),c.a.createElement("div",{className:"process-text"},t.aist_schedule)),c.a.createElement(w,{item:t})),s=t.is_aist&&c.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return c.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:n,status:s,id:t.v_course_id}))}))),a.length%10!==0?c.a.createElement(g,{addCourseClick:this.addCourseClick}):null):c.a.createElement("div",{className:"empty"},c.a.createElement("p",null,c.a.createElement("i",{className:"iconfont iconfish"})),c.a.createElement("p",{className:"empty-prompt"},"\u8fd8\u662f\u54b8\u9c7c\u4e00\u6761\uff0c\u5feb\u53bb\u7ffb\u8eab~"),c.a.createElement("p",null,c.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(l.PureComponent),N=Object(h.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),k=(a(44),a(14)),O=a.n(k),_=(a(784),function(e){return c.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void 0,e.id)},e.top,c.a.createElement("img",{src:e.img,alt:""}),c.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(4),j=a(15),P=a.n(j),M=(a(785),function(e){return c.a.createElement("div",{className:"bottom"},c.a.createElement(E.h,{className:e.className},e.text),c.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={courses:[],live:[],page:1,num:10},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){return S.c.get("".concat(API.home,"/m/free_course/").concat(a.state.page,"/").concat(a.state.num))},a.getFreeLive=function(){return S.c.get("".concat(API.home,"/m/live/free_list"))},a.toLive=function(e){var t=e.room_id;e.live_status?window.location.assign("http://www-test.julyedu.com/live/m_room/".concat(t)):O.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getFreeCourses().then(function(t){var a=t.data;200==a.code?e.setState({courses:a.data}):O.a.info(a.msg)}),this.getFreeLive().then(function(t){var a=t.data;200==a.code?e.setState({live:Object(y.isEmpty)(a.data)?[]:a.data}):O.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this;return c.a.createElement("ul",{className:"free-courses"},this.state.live.map(function(t,a){var n=c.a.createElement("div",{className:"bottom"},c.a.createElement("div",{className:"animation-box"},new Array(4).fill("a").map(function(e,t){return c.a.createElement("i",{key:t,className:P()("column","column-".concat(t+1))})})),c.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),s=t.live_status?c.a.createElement(E.h,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):c.a.createElement(E.h,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");return c.a.createElement(_,{img:t.live_cover,title:t.live_title,top:s,bottom:n,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){return c.a.createElement(_,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:c.a.createElement(M,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(l.PureComponent),x=a(163),W=a(159),H=a(17),R=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.match;return c.a.createElement("section",{id:"study"},c.a.createElement("div",{className:"tab"},c.a.createElement("div",null,c.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),c.a.createElement("div",null,c.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),c.a.createElement("div",{className:"study-container"},c.a.createElement(p.d,null,c.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),c.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),c.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(l.Component);t.default=Object(H.d)(W.a,x.a)(R)},647:function(e,t,a){"use strict";var n=a(0),s=a.n(n);a(648);t.a=function(e){return s.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},s.a.createElement("div",{className:"content"},s.a.createElement("div",{className:"cover"},e.status,s.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},648:function(e,t,a){},649:function(e,t,a){e.exports=a(650)},650:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=a(0),r=i(s),o=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Component),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,a=this.getParentElement(e),n=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:s.scrollTop;n=this.props.isReverse?r:this.calculateOffset(e,r)}else n=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),a=t.children,n=t.element,s=t.hasMore,o=(t.initialLoad,t.isReverse),i=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[a];return s&&(i?o?u.unshift(i):u.push(i):this.defaultLoader&&(o?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(n,c,u)}}]),t}();l.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},782:function(e,t,a){},783:function(e,t,a){},784:function(e,t,a){},785:function(e,t,a){}}]);
//# sourceMappingURL=study.81f3ccd8.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1175:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),r=a(11),o=a(9),i=a(10),l=a(0),c=a.n(l),u=(a(782),a(18)),p=a(52),d=a(648),m=(a(783),a(157)),h=a(21),f=a(84),v=a(650),b=a.n(v),y=a(40),E=a(30);var g=c.a.memo(function(e){var t=e.addCourseClick;return c.a.createElement("div",{className:"add-course"},c.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});function L(e){var t=e.record,a=t.seconds,n=t.lesson_name,s="";if(n){var r=/\u7b2c[\s\S]+?\u8bfe/.exec(n);s+=r&&r[0]?r[0]:""}if(a){var o=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);s+=(o.hour?String(o.hour).padStart(2,"0")+":":"")+(o.min?String(o.min).padStart(2,"0")+":":"")+(o.sec?String(o.sec).padStart(2,"0"):"")}return c.a.createElement("span",{className:"record"},s.length?"\u5b66\u4e60\u5230".concat(s):null)}var w=c.a.memo(function(e){var t=e.item;if(t.ago||t.seconds){var a=new Date(1e3*t.ago),n=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");return c.a.createElement("div",{className:"des"},c.a.createElement("span",{className:"time"},n),c.a.createElement(L,{record:t}))}return c.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={isLoading:!0},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.addCourseClick=function(){a.props.history.push("/classify")},a.loadFunc=Object(y.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.props.switchTab(!1),this.props.fetchCoursesListIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.switchTab(!0)}},{key:"render",value:function(){var e=this,t=this.props,a=t.courseList,n=t.user;return c.a.createElement(E.f,{isLoading:this.props.isLoading},a&&0!==a.length?c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!n.hasError&&this.props.user.data.uid)),c.a.createElement(b.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},c.a.createElement("ul",{ref:function(t){return e.list=t}},a.map(function(t,a){var n=c.a.createElement("div",{className:"info"},c.a.createElement("div",{className:"title"},t.course_title),t.is_aist?c.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):c.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&c.a.createElement("div",{className:"process-status"},c.a.createElement("div",{className:"process-wrapper"},c.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),c.a.createElement("div",{className:"process-text"},t.aist_schedule)),c.a.createElement(w,{item:t})),s=t.is_aist&&c.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return c.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:n,status:s,id:t.v_course_id}))}))),a.length%10!==0?c.a.createElement(g,{addCourseClick:this.addCourseClick}):null):c.a.createElement("div",{className:"empty"},c.a.createElement("p",null,c.a.createElement("i",{className:"iconfont iconfish"})),c.a.createElement("p",{className:"empty-prompt"},"\u8fd8\u662f\u54b8\u9c7c\u4e00\u6761\uff0c\u5feb\u53bb\u7ffb\u8eab~"),c.a.createElement("p",null,c.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(l.PureComponent),N=Object(h.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),k=(a(44),a(14)),O=a.n(k),_=(a(784),function(e){return c.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void 0,e.id)},e.top,c.a.createElement("img",{src:e.img,alt:""}),c.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(4),j=a(15),P=a.n(j),M=(a(785),function(e){return c.a.createElement("div",{className:"bottom"},c.a.createElement(E.h,{className:e.className},e.text),c.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={courses:[],live:[],page:1,num:10},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){return S.c.get("".concat(API.home,"/m/free_course/").concat(a.state.page,"/").concat(a.state.num))},a.getFreeLive=function(){return S.c.get("".concat(API.home,"/m/live/free_list"))},a.toLive=function(e){var t=e.room_id;e.live_status?window.location.assign("http://www-test.julyedu.com/live/m_room/".concat(t)):O.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getFreeCourses().then(function(t){var a=t.data;200==a.code?e.setState({courses:a.data}):O.a.info(a.msg)}),this.getFreeLive().then(function(t){var a=t.data;200==a.code?e.setState({live:Object(y.isEmpty)(a.data)?[]:a.data}):O.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this;return c.a.createElement("ul",{className:"free-courses"},this.state.live.map(function(t,a){var n=c.a.createElement("div",{className:"bottom"},c.a.createElement("div",{className:"animation-box"},new Array(4).fill("a").map(function(e,t){return c.a.createElement("i",{key:t,className:P()("column","column-".concat(t+1))})})),c.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),s=t.live_status?c.a.createElement(E.h,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):c.a.createElement(E.h,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");return c.a.createElement(_,{img:t.live_cover,title:t.live_title,top:s,bottom:n,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){return c.a.createElement(_,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:c.a.createElement(M,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(l.PureComponent),x=a(163),W=a(159),H=a(17),R=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.match;return c.a.createElement("section",{id:"study"},c.a.createElement("div",{className:"tab"},c.a.createElement("div",null,c.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),c.a.createElement("div",null,c.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),c.a.createElement("div",{className:"study-container"},c.a.createElement(p.d,null,c.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),c.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),c.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(l.Component);t.default=Object(H.d)(W.a,x.a)(R)},648:function(e,t,a){"use strict";var n=a(0),s=a.n(n);a(649);t.a=function(e){return s.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},s.a.createElement("div",{className:"content"},s.a.createElement("div",{className:"cover"},e.status,s.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},649:function(e,t,a){},650:function(e,t,a){e.exports=a(651)},651:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),s=a(0),r=i(s),o=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Component),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,a=this.getParentElement(e),n=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:s.scrollTop;n=this.props.isReverse?r:this.calculateOffset(e,r)}else n=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),a=t.children,n=t.element,s=t.hasMore,o=(t.initialLoad,t.isReverse),i=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[a];return s&&(i?o?u.unshift(i):u.push(i):this.defaultLoader&&(o?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(n,c,u)}}]),t}();l.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},782:function(e,t,a){},783:function(e,t,a){},784:function(e,t,a){},785:function(e,t,a){}}]);
//# sourceMappingURL=study.3923bc2e.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","_this","props","history","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","PureComponent","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","courses","live","page","num","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","then","res","code","setState","msg","isEmpty","_this3","Array","fill","classnames","LiveStatus","common_course_base","logo","freeCourses_Bottom","category","Study","position","match","url","replace","activeClassName","react_router","exact","from","path","component","FreeCourses","Component","compose","WithFullSize","WithTab","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","parentNode","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"kQAoBA,IAAMA,EAAYC,IAAMC,KAAK,SAAAC,GAAA,IAAEC,EAAFD,EAAEC,eAAF,OACzBC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,UAAQC,UAAU,MAAMC,QAASL,GAAjC,gCAIR,SAASM,EAATC,GAAkD,IAAAC,EAAAD,EAAjCE,OAASC,EAAwBF,EAAxBE,QAASC,EAAeH,EAAfG,YAE3BC,EAAS,GAEb,GAAID,EAAa,CACb,IAAIE,EAJC,uBAIgBC,KAAKH,GAC1BC,GAAWC,GAAeA,EAAY,GAAMA,EAAY,GAAK,GAGjE,GAAIH,EAAS,CACT,IAAIK,EAxBZ,SAAsBL,GAClB,MAAO,CACHM,KAAMC,KAAKC,MAAMR,EAAO,MACxBS,IAAKF,KAAKC,MAAMR,EAAU,IAAM,GAChCU,IAAKV,EAAU,IAoBCW,CAAaX,GAK7BE,IAJWG,EAAUC,KAAOM,OAAOP,EAAUC,MAAMO,SAAS,EAAG,KAAO,IAAM,KAClER,EAAUI,IAAMG,OAAOP,EAAUI,KAAKI,SAAS,EAAG,KAAO,IAAM,KAC/DR,EAAUK,IAAME,OA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AAAG,QAAA0E,KACA5L,QAAA+G,EAAAG,QAAA+E,KACA/B,YAAAnD,EAAAG,QAAA+E,KACAvD,UAAA3B,EAAAG,QAAA+E,KACArC,OAAA7C,EAAAG,QAAA0E,KACA3L,SAAA8G,EAAAG,QAAAgF,KAAAF,WACAjM,UAAAgH,EAAAG,QAAAiF,OACAhM,IAAA4G,EAAAG,QAAAgF,KACAjC,gBAAAlD,EAAAG,QAAAgF,KACApB,UAAA/D,EAAAG,QAAAiF,OACAzC,WAAA3C,EAAAG,QAAA+E,KACA/L,UAAA6G,EAAAG,QAAA+E,MAEA9E,EAAAiF,aAAA,CACAb,QAAA,MACAvL,SAAA,EACAkK,aAAA,EACAnK,UAAA,EACAI,IAAA,KACA2K,UAAA,IACA5K,WAAA,EACAwI,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"static/js/study.81f3ccd8.chunk.js","sourcesContent":["import React, { PureComponent } from \"react\"\nimport VList from '@/common/v-list-base'\nimport './my-courses.scss'\nimport { isToday, format } from \"date-fns\"\nimport { connect } from \"react-redux\"\nimport { fetchCoursesListIfNeeded, switchTab } from \"./actions\"\nimport InfiniteScroll from 'react-infinite-scroller'\nimport { debounce } from 'lodash'\nimport { Link } from 'react-router-dom'\nimport { Loading } from \"@/common\";\n\n\nfunction getStudyTime(seconds) {\n return {\n hour: Math.floor(seconds / (60 * 60)),\n min: Math.floor(seconds / 60) % 60,\n sec: seconds % 60\n }\n}\n\nconst AddCourse = React.memo(({addCourseClick}) => (\n <div className='add-course'>\n <button className='add' onClick={addCourseClick}>添加课程+</button>\n </div>\n))\n\nfunction Record({record: {seconds, lesson_name}}) {\n let re = /第[\\s\\S]+?课/,\n result = ''\n\n if (lesson_name) {\n let matchResult = re.exec(lesson_name)\n result += (matchResult && matchResult[0]) ? matchResult[0] : ''\n }\n\n if (seconds) {\n let studyTime = getStudyTime(seconds)\n let hour = studyTime.hour ? String(studyTime.hour).padStart(2, '0') + ':' : '',\n min = studyTime.min ? String(studyTime.min).padStart(2, '0') + ':' : '',\n sec = studyTime.sec ? String(studyTime.sec).padStart(2, '0') : ''\n\n result += hour + min + sec\n }\n\n return (\n <span className={'record'}>\n {\n result.length ? `学习到${result}` : null\n }\n </span>\n )\n}\n\n\nconst Bottom = React.memo(({item}) => {\n if (item.ago || item.seconds) {\n let date = new Date(item.ago * 1000)\n let time = isToday(date) ? format(date, 'HH时mm分') : format(date, 'MM月DD日')\n return (\n <div className=\"des\">\n <span className='time'>{time}</span>\n <Record record={item}/>\n </div>\n )\n }\n return (\n <button className='start-learn'>开始学习</button>\n )\n})\n\nclass MyCourses extends PureComponent {\n\n list\n\n state = {\n isLoading: true\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n addCourseClick = () => {\n this.props.history.push('/classify')\n }\n\n componentDidMount() {\n this.props.switchTab(false)\n this.props.fetchCoursesListIfNeeded()\n }\n\n componentWillUnmount() {\n this.props.switchTab(true);\n }\n\n loadFunc = debounce(() => {\n if (this.props.courseList.length % 10 === 0) {\n this.props.fetchCoursesListIfNeeded()\n }\n }, 200)\n\n render() {\n let {courseList, user} = this.props\n\n return <Loading isLoading={this.props.isLoading}>\n {\n courseList && courseList.length !== 0\n ?\n <>\n <div className=\"my-course-uid\">\n {`加群请备注您的学号:${!user.hasError && this.props.user.data.uid}`}\n </div>\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.loadFunc}\n useWindow={false}\n >\n <ul ref={el => this.list = el}>\n {\n courseList.map((item, index) => {\n\n const Info = (\n <div className=\"info\">\n <div className='title'>{item.course_title}</div>\n {\n item.is_aist\n ? <div className='contact'>助教微信:{item.assist_weixin}</div>\n : <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n item.is_aist && item.aist_schedule &&\n <div className=\"process-status\">\n <div className=\"process-wrapper\">\n <div className=\"process-bar\"\n style={{width: `${parseFloat(item.aist_schedule)}%`}}/>\n </div>\n <div className=\"process-text\">{item.aist_schedule}</div>\n </div>\n }\n <Bottom item={item}/>\n </div>\n )\n\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n {...item}\n key={index}\n info={Info}\n status={status}\n id={item['v_course_id']}\n />\n )\n })\n }\n </ul>\n </InfiniteScroll>\n {\n courseList.length % 10 !== 0 ?\n <AddCourse addCourseClick={this.addCourseClick}/>\n : null\n }\n </>\n :\n <div className=\"empty\">\n <p><i className='iconfont iconfish'/></p>\n <p className='empty-prompt'>还是咸鱼一条,快去翻身~</p>\n <p>\n <Link className='select-course' to='/classify'>去选课</Link>\n </p>\n </div>\n }\n </Loading>\n\n }\n}\n\nexport default connect(\n state => ({\n courseList: state.myCourses.courseList,\n user: state.user,\n isLoading: state.myCourses.isLoading\n }),\n {\n fetchCoursesListIfNeeded,\n switchTab\n })(MyCourses)","import React from 'react'\nimport './course-base.scss'\n\nconst Course = (props) => {\n return (\n <li className={`course-base-item ${props.className}`} onClick={props.handleClick.bind(this, props.id)}>\n {props.top}\n <img src={props.img} alt=\"\"/>\n <p className=\"course-title\">{props.title}</p>\n {props.bottom}\n </li>\n );\n};\n\nexport default Course;\n\n","import React, { PureComponent } from 'react'\nimport { Tag } from '../../../common'\nimport Course from '@/common/course-base'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport classnames from 'classnames'\nimport { isEmpty } from 'lodash'\n\n\nimport './free-courses.scss'\n\nconst Bottom = (props) => (\n <div className='bottom'>\n <Tag className={props.className}>{props.text}</Tag>\n <span>{props.audience}人观看</span>\n </div>\n)\n\nclass FreeCourse extends PureComponent {\n state = {\n courses: [],\n live: [],\n page: 1,\n num: 10\n }\n\n componentDidMount() {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n courses: data.data,\n })\n } else {\n Toast.info(data.msg)\n }\n })\n this.getFreeLive()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n live: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg, 2, null, false)\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n\n getFreeCourses = () => {\n return http.get(`${API.home}/m/free_course/${this.state.page}/${this.state.num}`)\n }\n\n getFreeLive = () => {\n return http.get(`${API.home}/m/live/free_list`)\n }\n\n toLive = live => {\n const {room_id, live_status} = live\n if (live_status) {\n window.location.assign(`http://www-test.julyedu.com/live/m_room/${room_id}`)\n } else {\n Toast.info('直播即将开始,敬请期待', 2, null, false)\n }\n }\n\n render() {\n return (\n <ul className='free-courses'>\n {\n this.state.live.map((item, index) => {\n const Bottom = (\n <div className=\"bottom\">\n <div className=\"animation-box\">\n {new Array(4).fill('a').map((item, index) => {\n return <i key={index} className={classnames('column', `column-${index + 1}`)}/>\n })}\n </div>\n <div className=\"time\">{`${item['live_start_time']}`}</div>\n </div>\n )\n\n const LiveStatus = (\n item['live_status'] ? <Tag className={'tag-soon top'}>即将开始</Tag> :\n <Tag className={'tag-playing top'}>正在直播</Tag>\n )\n return (\n <Course\n img={item['live_cover']}\n title={item['live_title']}\n top={LiveStatus}\n bottom={Bottom}\n key={item['live_id']}\n className={'live'}\n handleClick={this.toLive.bind(this, item)}\n id={index}\n />\n )\n })\n }\n {\n this.state.courses.map((item, index) => (\n <Course\n img={item.logo}\n title={item['video_course_name']}\n handleClick={this.handleClick}\n bottom={\n <Bottom audience={item['play_times']} className={'tag-category'} text={item.category}/>\n }\n id={item['v_course_id']}\n key={index}\n className={'course-item'}\n />\n ))\n }\n </ul>\n )\n }\n}\n\n\nexport default FreeCourse","import React, { Component } from 'react'\nimport './study.scss'\n\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport MyCourses from \"./myCourses\"\nimport FreeCourses from './freeCourses'\nimport WithTab from '@/HOCs/WithTab'\nimport WithFullSize from '@/HOCs/WithFullSize'\nimport { compose } from 'redux'\n\n\nclass Study extends Component {\n\n state = {\n position: {}\n }\n\n render() {\n const {match} = this.props;\n return (\n <section id='study'>\n <div className='tab'>\n <div>\n <NavLink to={`${match.url}/my-course`}\n replace\n activeClassName='active'\n >我的课程</NavLink>\n </div>\n <div>\n <NavLink to={`${match.url}/free-course`}\n replace\n activeClassName='active'\n >免费课程</NavLink>\n </div>\n </div>\n <div className=\"study-container\">\n <Switch>\n <Redirect exact from='/study' to='study/my-course'/>\n <Route path={`${this.props.match.path}/my-course`} component={MyCourses}/>\n <Route path={`${this.props.match.path}/free-course`} component={FreeCourses}/>\n </Switch>\n </div>\n </section>\n )\n }\n\n}\n\nexport default compose(\n WithFullSize,\n WithTab\n)(Study)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","_this","props","history","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","PureComponent","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","courses","live","page","num","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","then","res","code","setState","msg","isEmpty","_this3","Array","fill","classnames","LiveStatus","common_course_base","logo","freeCourses_Bottom","category","Study","position","match","url","replace","activeClassName","react_router","exact","from","path","component","FreeCourses","Component","compose","WithFullSize","WithTab","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","parentNode","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"kQAoBA,IAAMA,EAAYC,IAAMC,KAAK,SAAAC,GAAA,IAAEC,EAAFD,EAAEC,eAAF,OACzBC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,UAAQC,UAAU,MAAMC,QAASL,GAAjC,gCAIR,SAASM,EAATC,GAAkD,IAAAC,EAAAD,EAAjCE,OAASC,EAAwBF,EAAxBE,QAASC,EAAeH,EAAfG,YAE3BC,EAAS,GAEb,GAAID,EAAa,CACb,IAAIE,EAJC,uBAIgBC,KAAKH,GAC1BC,GAAWC,GAAeA,EAAY,GAAMA,EAAY,GAAK,GAGjE,GAAIH,EAAS,CACT,IAAIK,EAxBZ,SAAsBL,GAClB,MAAO,CACHM,KAAMC,KAAKC,MAAMR,EAAO,MACxBS,IAAKF,KAAKC,MAAMR,EAAU,IAAM,GAChCU,IAAKV,EAAU,IAoBCW,CAAaX,GAK7BE,IAJWG,EAAUC,KAAOM,OAAOP,EAAUC,MAAMO,SAAS,EAAG,KAAO,IAAM,KAClER,EAAUI,IAAMG,OAAOP,EAAUI,KAAKI,SAAS,EAAG,KAAO,IAAM,KAC/DR,EAAUK,IAAME,OAAOP,EAAUK,KAAKG,SAAS,EAAG,KAAO,IAKvE,OACItB,EAAAC,EAAAC,cAAA,QAAMC,UAAW,UAETQ,EAAOY,OAAP,qBAAAC,OAAsBb,GAAW,MAOjD,IAAMc,EAAS7B,IAAMC,KAAK,SAAA6B,GAAY,IAAVC,EAAUD,EAAVC,KACxB,GAAIA,EAAKC,KAAOD,EAAKlB,QAAS,CAC1B,IAAIoB,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AAAG,QAAAgF,KACApB,UAAA/D,EAAAG,QAAAiF,OACAzC,WAAA3C,EAAAG,QAAA+E,KACA/L,UAAA6G,EAAAG,QAAA+E,MAEA9E,EAAAiF,aAAA,CACAb,QAAA,MACAvL,SAAA,EACAkK,aAAA,EACAnK,UAAA,EACAI,IAAA,KACA2K,UAAA,IACA5K,WAAA,EACAwI,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"static/js/study.3923bc2e.chunk.js","sourcesContent":["import React, { PureComponent } from \"react\"\nimport VList from '@/common/v-list-base'\nimport './my-courses.scss'\nimport { isToday, format } from \"date-fns\"\nimport { connect } from \"react-redux\"\nimport { fetchCoursesListIfNeeded, switchTab } from \"./actions\"\nimport InfiniteScroll from 'react-infinite-scroller'\nimport { debounce } from 'lodash'\nimport { Link } from 'react-router-dom'\nimport { Loading } from \"@/common\";\n\n\nfunction getStudyTime(seconds) {\n return {\n hour: Math.floor(seconds / (60 * 60)),\n min: Math.floor(seconds / 60) % 60,\n sec: seconds % 60\n }\n}\n\nconst AddCourse = React.memo(({addCourseClick}) => (\n <div className='add-course'>\n <button className='add' onClick={addCourseClick}>添加课程+</button>\n </div>\n))\n\nfunction Record({record: {seconds, lesson_name}}) {\n let re = /第[\\s\\S]+?课/,\n result = ''\n\n if (lesson_name) {\n let matchResult = re.exec(lesson_name)\n result += (matchResult && matchResult[0]) ? matchResult[0] : ''\n }\n\n if (seconds) {\n let studyTime = getStudyTime(seconds)\n let hour = studyTime.hour ? String(studyTime.hour).padStart(2, '0') + ':' : '',\n min = studyTime.min ? String(studyTime.min).padStart(2, '0') + ':' : '',\n sec = studyTime.sec ? String(studyTime.sec).padStart(2, '0') : ''\n\n result += hour + min + sec\n }\n\n return (\n <span className={'record'}>\n {\n result.length ? `学习到${result}` : null\n }\n </span>\n )\n}\n\n\nconst Bottom = React.memo(({item}) => {\n if (item.ago || item.seconds) {\n let date = new Date(item.ago * 1000)\n let time = isToday(date) ? format(date, 'HH时mm分') : format(date, 'MM月DD日')\n return (\n <div className=\"des\">\n <span className='time'>{time}</span>\n <Record record={item}/>\n </div>\n )\n }\n return (\n <button className='start-learn'>开始学习</button>\n )\n})\n\nclass MyCourses extends PureComponent {\n\n list\n\n state = {\n isLoading: true\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n addCourseClick = () => {\n this.props.history.push('/classify')\n }\n\n componentDidMount() {\n this.props.switchTab(false)\n this.props.fetchCoursesListIfNeeded()\n }\n\n componentWillUnmount() {\n this.props.switchTab(true);\n }\n\n loadFunc = debounce(() => {\n if (this.props.courseList.length % 10 === 0) {\n this.props.fetchCoursesListIfNeeded()\n }\n }, 200)\n\n render() {\n let {courseList, user} = this.props\n\n return <Loading isLoading={this.props.isLoading}>\n {\n courseList && courseList.length !== 0\n ?\n <>\n <div className=\"my-course-uid\">\n {`加群请备注您的学号:${!user.hasError && this.props.user.data.uid}`}\n </div>\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.loadFunc}\n useWindow={false}\n >\n <ul ref={el => this.list = el}>\n {\n courseList.map((item, index) => {\n\n const Info = (\n <div className=\"info\">\n <div className='title'>{item.course_title}</div>\n {\n item.is_aist\n ? <div className='contact'>助教微信:{item.assist_weixin}</div>\n : <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n item.is_aist && item.aist_schedule &&\n <div className=\"process-status\">\n <div className=\"process-wrapper\">\n <div className=\"process-bar\"\n style={{width: `${parseFloat(item.aist_schedule)}%`}}/>\n </div>\n <div className=\"process-text\">{item.aist_schedule}</div>\n </div>\n }\n <Bottom item={item}/>\n </div>\n )\n\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n {...item}\n key={index}\n info={Info}\n status={status}\n id={item['v_course_id']}\n />\n )\n })\n }\n </ul>\n </InfiniteScroll>\n {\n courseList.length % 10 !== 0 ?\n <AddCourse addCourseClick={this.addCourseClick}/>\n : null\n }\n </>\n :\n <div className=\"empty\">\n <p><i className='iconfont iconfish'/></p>\n <p className='empty-prompt'>还是咸鱼一条,快去翻身~</p>\n <p>\n <Link className='select-course' to='/classify'>去选课</Link>\n </p>\n </div>\n }\n </Loading>\n\n }\n}\n\nexport default connect(\n state => ({\n courseList: state.myCourses.courseList,\n user: state.user,\n isLoading: state.myCourses.isLoading\n }),\n {\n fetchCoursesListIfNeeded,\n switchTab\n })(MyCourses)","import React from 'react'\nimport './course-base.scss'\n\nconst Course = (props) => {\n return (\n <li className={`course-base-item ${props.className}`} onClick={props.handleClick.bind(this, props.id)}>\n {props.top}\n <img src={props.img} alt=\"\"/>\n <p className=\"course-title\">{props.title}</p>\n {props.bottom}\n </li>\n );\n};\n\nexport default Course;\n\n","import React, { PureComponent } from 'react'\nimport { Tag } from '../../../common'\nimport Course from '@/common/course-base'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport classnames from 'classnames'\nimport { isEmpty } from 'lodash'\n\n\nimport './free-courses.scss'\n\nconst Bottom = (props) => (\n <div className='bottom'>\n <Tag className={props.className}>{props.text}</Tag>\n <span>{props.audience}人观看</span>\n </div>\n)\n\nclass FreeCourse extends PureComponent {\n state = {\n courses: [],\n live: [],\n page: 1,\n num: 10\n }\n\n componentDidMount() {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n courses: data.data,\n })\n } else {\n Toast.info(data.msg)\n }\n })\n this.getFreeLive()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n live: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg, 2, null, false)\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n\n getFreeCourses = () => {\n return http.get(`${API.home}/m/free_course/${this.state.page}/${this.state.num}`)\n }\n\n getFreeLive = () => {\n return http.get(`${API.home}/m/live/free_list`)\n }\n\n toLive = live => {\n const {room_id, live_status} = live\n if (live_status) {\n window.location.assign(`http://www-test.julyedu.com/live/m_room/${room_id}`)\n } else {\n Toast.info('直播即将开始,敬请期待', 2, null, false)\n }\n }\n\n render() {\n return (\n <ul className='free-courses'>\n {\n this.state.live.map((item, index) => {\n const Bottom = (\n <div className=\"bottom\">\n <div className=\"animation-box\">\n {new Array(4).fill('a').map((item, index) => {\n return <i key={index} className={classnames('column', `column-${index + 1}`)}/>\n })}\n </div>\n <div className=\"time\">{`${item['live_start_time']}`}</div>\n </div>\n )\n\n const LiveStatus = (\n item['live_status'] ? <Tag className={'tag-soon top'}>即将开始</Tag> :\n <Tag className={'tag-playing top'}>正在直播</Tag>\n )\n return (\n <Course\n img={item['live_cover']}\n title={item['live_title']}\n top={LiveStatus}\n bottom={Bottom}\n key={item['live_id']}\n className={'live'}\n handleClick={this.toLive.bind(this, item)}\n id={index}\n />\n )\n })\n }\n {\n this.state.courses.map((item, index) => (\n <Course\n img={item.logo}\n title={item['video_course_name']}\n handleClick={this.handleClick}\n bottom={\n <Bottom audience={item['play_times']} className={'tag-category'} text={item.category}/>\n }\n id={item['v_course_id']}\n key={index}\n className={'course-item'}\n />\n ))\n }\n </ul>\n )\n }\n}\n\n\nexport default FreeCourse","import React, { Component } from 'react'\nimport './study.scss'\n\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport MyCourses from \"./myCourses\"\nimport FreeCourses from './freeCourses'\nimport WithTab from '@/HOCs/WithTab'\nimport WithFullSize from '@/HOCs/WithFullSize'\nimport { compose } from 'redux'\n\n\nclass Study extends Component {\n\n state = {\n position: {}\n }\n\n render() {\n const {match} = this.props;\n return (\n <section id='study'>\n <div className='tab'>\n <div>\n <NavLink to={`${match.url}/my-course`}\n replace\n activeClassName='active'\n >我的课程</NavLink>\n </div>\n <div>\n <NavLink to={`${match.url}/free-course`}\n replace\n activeClassName='active'\n >免费课程</NavLink>\n </div>\n </div>\n <div className=\"study-container\">\n <Switch>\n <Redirect exact from='/study' to='study/my-course'/>\n <Route path={`${this.props.match.path}/my-course`} component={MyCourses}/>\n <Route path={`${this.props.match.path}/free-course`} component={FreeCourses}/>\n </Switch>\n </div>\n </section>\n )\n }\n\n}\n\nexport default compose(\n WithFullSize,\n WithTab\n)(Study)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1161:function(e,a,t){"use strict";t.r(a);t(155);var n,c=t(75),s=t.n(c),r=(t(89),t(26)),i=t.n(r),o=(t(154),t(35)),l=t.n(o),m=(t(44),t(14)),u=t.n(m),d=t(23),p=t(7),f=t(8),E=t(10),g=t(9),_=t(11),N=t(0),v=t.n(N),h=(t(889),t(30)),b=t(4),w=t(21),I=t(18),y=(t(63),Object(w.b)()(n=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(E.a)(this,Object(g.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,c=e.data;if(b.a.isWeixin){var s=t.state.share;t.setState({share:!s});var r={title:"\u3010\u4ec5\u5269".concat(n,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(c.course_title,"\u300b"),desc:c.course_title,link:location.origin+"/detail?id=".concat(c.course_id),imgUrl:c.image_name};b.c.post("".concat(API["base-api"],"/m/sale/signature")).then(function(e){var a=e.data,t=a.nonce_str,n=a.signature,c=a.timestamp;wx.config({debug:!1,appId:"wx23dac6775ac82877",timestamp:c,nonceStr:t,signature:n,jsApiList:["hideMenuItems","showMenuItems","updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","onMenuShareAppMessage"]})}),wx.ready(function(){wx.hideAllNonBaseMenuItem(),wx.showMenuItems({menuList:["menuItem:share:appMessage","menuItem:share:timeline"]}),wx.updateAppMessageShareData(Object(d.a)({},r,{success:function(){}})),wx.updateTimelineShareData(Object(d.a)({},r,{success:function(){}}))})}else u.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){var a=t.props;a.dispatch;return a.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,userInfo:{},number:0},t}return Object(_.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;Promise.all([b.c.get("".concat(API["base-api"],"/pdd/goupon_pay_page/").concat(Object(b.b)("id"))),b.c.get("".concat(API.home,"/m/user_info"))]).then(function(a){console.log(a);var t=a[0],n=a[1];if(0===t.data.errno)if(200===n.data.code){if(e.setState({data:t.data.data.course_info,pdd_price:t.data.data.pdd_price,groupon_member:t.data.data.groupon_member,is_success:t.data.data.is_success,person_num:t.data.data.person_num,course_list:t.data.data.course_list,userInfo:n,number:t.data.data.number,countdown:""}),0===t.data.data.is_success){var c=1e3*t.data.data.end_time,s=0,r=0,i=0;setInterval(function(){c-=1e3,s="".concat(parseInt(c/36e5)).padStart(2,0),r="".concat(parseInt((c-36e5*s)/6e4)).padStart(2,0),i="".concat(parseInt((c-36e5*s-6e4*r)/1e3)).padStart(2,0),e.setState({countdown:"".concat(s,":").concat(r,":").concat(i)})},1e3)}}else u.a.info(t.data.msg,2);else u.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,c=t.course_title,s=t.simpledescription,r=t.price0,i=t.price1,o=(a.pdd_price,a.is_success),m=(a.person_num,a.groupon_member,a.course_list),u=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},c),v.a.createElement("p",{className:"contact text-overflow-2"},s),v.a.createElement("div",{className:"des"},v.a.createElement("p",{className:"course-price"},v.a.createElement("span",{className:"new"},"\xa5",i),v.a.createElement("span",{className:"old"},"\xa5",r))));return v.a.createElement("div",{className:"to-group-box"},v.a.createElement(h.e,{title:"\u62fc\u56e2",cart:!1,toHref:function(){return e.toCourseDetail(n)}}),!o&&v.a.createElement(h.i,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),v.a.createElement(C,{data:this.state,invitedFriends:this.invitedFriends}),v.a.createElement(l.a,null),v.a.createElement("div",{className:"group-course"},v.a.createElement("div",{className:"top-title"},v.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),v.a.createElement(I.b,{to:"/preferential",className:"more"},"\u66f4\u591a",v.a.createElement("i",{className:"iconfont iconiconfront-70"}))),m&&m.length>0&&m[0].course&&m[0].course.length>0&&m[0].course.slice(0,4).map(function(a){var t=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),v.a.createElement("div",{className:"des"},v.a.createElement("p",{className:"course-price"},v.a.createElement("span",{className:"new"},"\xa5",a.price1),v.a.createElement("span",{className:"old"},"\xa5",a.price0))));return v.a.createElement(h.i,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n);function C(e){for(var a,t,n,c,r=e.data,o=r.pdd_price,l=r.data,m=r.groupon_member,u=r.is_success,d=r.person_num,p=r.userInfo,f=r.share,E=r.number,g=r.countdown,_=[],N=E;0!=N;)_.push(N),N--;if(c=v.a.createElement("div",{className:"group-user-list"},v.a.createElement(i.a,{justify:"center",className:"imgList"},m.map(function(e){return v.a.createElement("div",{className:"imgContainer",key:Math.random()},v.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?v.a.createElement("div",{className:"leaderFlag"},v.a.createElement("span",null,"\u56e2\u957f")):null)}),_.map(function(e){return v.a.createElement("div",{className:"imgContainer",key:Math.random()},v.a.createElement("div",{className:"imgname"},v.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),m&&m.length>0){var h="";m.map(function(e){1===e.user_type&&(h="".concat(e.uid))}),h===p.data.data.uid?(a=v.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(o,"\u5143")),t=v.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",g," \u540e\u7ed3\u675f"),n=v.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):(a=v.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(o,"\u5143")),t=v.a.createElement(I.b,{to:"/order?id=".concat(l.course_id),className:"group-btn"},"\u4e00\u952e\u53c2\u56e2"))}return 1===u&&(a=v.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=v.a.createElement(I.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),v.a.createElement("div",{className:"gorup-content"},f?v.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},v.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),v.a.createElement("div",{className:"tipArrow"},v.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,v.a.createElement(s.a,null,c),v.a.createElement(s.a,null,t),n,!u&&v.a.createElement("div",{className:"group-dec"},v.a.createElement("span",null,v.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),v.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(d,"\u4eba\u6210\u56e2"))))}a.default=y},889:function(e,a,t){}}]);
//# sourceMappingURL=togroup.2438b92f.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1161:function(e,a,t){"use strict";t.r(a);t(155);var n,c=t(75),s=t.n(c),r=(t(89),t(26)),i=t.n(r),o=(t(154),t(35)),l=t.n(o),m=(t(44),t(14)),u=t.n(m),d=t(23),p=t(7),f=t(8),E=t(11),g=t(9),_=t(10),N=t(0),v=t.n(N),h=(t(889),t(30)),b=t(4),w=t(21),I=t(18),y=(t(63),Object(w.b)()(n=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(E.a)(this,Object(g.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,c=e.data;if(b.a.isWeixin){var s=t.state.share;t.setState({share:!s});var r={title:"\u3010\u4ec5\u5269".concat(n,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(c.course_title,"\u300b"),desc:c.course_title,link:location.origin+"/detail?id=".concat(c.course_id),imgUrl:c.image_name};b.c.post("".concat(API["base-api"],"/m/sale/signature")).then(function(e){var a=e.data,t=a.nonce_str,n=a.signature,c=a.timestamp;wx.config({debug:!1,appId:"wx23dac6775ac82877",timestamp:c,nonceStr:t,signature:n,jsApiList:["hideMenuItems","showMenuItems","updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","onMenuShareAppMessage"]})}),wx.ready(function(){wx.hideAllNonBaseMenuItem(),wx.showMenuItems({menuList:["menuItem:share:appMessage","menuItem:share:timeline"]}),wx.updateAppMessageShareData(Object(d.a)({},r,{success:function(){}})),wx.updateTimelineShareData(Object(d.a)({},r,{success:function(){}}))})}else u.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){var a=t.props;a.dispatch;return a.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,userInfo:{},number:0},t}return Object(_.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;Promise.all([b.c.get("".concat(API["base-api"],"/pdd/goupon_pay_page/").concat(Object(b.b)("id"))),b.c.get("".concat(API.home,"/m/user_info"))]).then(function(a){console.log(a);var t=a[0],n=a[1];if(0===t.data.errno)if(200===n.data.code){if(e.setState({data:t.data.data.course_info,pdd_price:t.data.data.pdd_price,groupon_member:t.data.data.groupon_member,is_success:t.data.data.is_success,person_num:t.data.data.person_num,course_list:t.data.data.course_list,userInfo:n,number:t.data.data.number,countdown:""}),0===t.data.data.is_success){var c=1e3*t.data.data.end_time,s=0,r=0,i=0;setInterval(function(){c-=1e3,s="".concat(parseInt(c/36e5)).padStart(2,0),r="".concat(parseInt((c-36e5*s)/6e4)).padStart(2,0),i="".concat(parseInt((c-36e5*s-6e4*r)/1e3)).padStart(2,0),e.setState({countdown:"".concat(s,":").concat(r,":").concat(i)})},1e3)}}else u.a.info(t.data.msg,2);else u.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,c=t.course_title,s=t.simpledescription,r=t.price0,i=t.price1,o=(a.pdd_price,a.is_success),m=(a.person_num,a.groupon_member,a.course_list),u=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},c),v.a.createElement("p",{className:"contact text-overflow-2"},s),v.a.createElement("div",{className:"des"},v.a.createElement("p",{className:"course-price"},v.a.createElement("span",{className:"new"},"\xa5",i),v.a.createElement("span",{className:"old"},"\xa5",r))));return v.a.createElement("div",{className:"to-group-box"},v.a.createElement(h.e,{title:"\u62fc\u56e2",cart:!1,toHref:function(){return e.toCourseDetail(n)}}),!o&&v.a.createElement(h.i,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),v.a.createElement(C,{data:this.state,invitedFriends:this.invitedFriends}),v.a.createElement(l.a,null),v.a.createElement("div",{className:"group-course"},v.a.createElement("div",{className:"top-title"},v.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),v.a.createElement(I.b,{to:"/preferential",className:"more"},"\u66f4\u591a",v.a.createElement("i",{className:"iconfont iconiconfront-70"}))),m&&m.length>0&&m[0].course&&m[0].course.length>0&&m[0].course.slice(0,4).map(function(a){var t=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),v.a.createElement("div",{className:"des"},v.a.createElement("p",{className:"course-price"},v.a.createElement("span",{className:"new"},"\xa5",a.price1),v.a.createElement("span",{className:"old"},"\xa5",a.price0))));return v.a.createElement(h.i,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n);function C(e){for(var a,t,n,c,r=e.data,o=r.pdd_price,l=r.data,m=r.groupon_member,u=r.is_success,d=r.person_num,p=r.userInfo,f=r.share,E=r.number,g=r.countdown,_=[],N=E;0!=N;)_.push(N),N--;if(c=v.a.createElement("div",{className:"group-user-list"},v.a.createElement(i.a,{justify:"center",className:"imgList"},m.map(function(e){return v.a.createElement("div",{className:"imgContainer",key:Math.random()},v.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?v.a.createElement("div",{className:"leaderFlag"},v.a.createElement("span",null,"\u56e2\u957f")):null)}),_.map(function(e){return v.a.createElement("div",{className:"imgContainer",key:Math.random()},v.a.createElement("div",{className:"imgname"},v.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),m&&m.length>0){var h="";m.map(function(e){1===e.user_type&&(h="".concat(e.uid))}),h===p.data.data.uid?(a=v.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(o,"\u5143")),t=v.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",g," \u540e\u7ed3\u675f"),n=v.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):(a=v.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(o,"\u5143")),t=v.a.createElement(I.b,{to:"/order?id=".concat(l.course_id),className:"group-btn"},"\u4e00\u952e\u53c2\u56e2"))}return 1===u&&(a=v.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=v.a.createElement(I.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),v.a.createElement("div",{className:"gorup-content"},f?v.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},v.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),v.a.createElement("div",{className:"tipArrow"},v.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,v.a.createElement(s.a,null,c),v.a.createElement(s.a,null,t),n,!u&&v.a.createElement("div",{className:"group-dec"},v.a.createElement("span",null,v.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),v.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(d,"\u4eba\u6210\u56e2"))))}a.default=y},889:function(e,a,t){}}]);
//# sourceMappingURL=togroup.7dcc5f4b.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_9__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12__","call","invitedFriends","_this$state","state","pdd_price","number","data","browser","isWeixin","share","setState","shareData","title","concat","course_title","desc","link","location","origin","course_id","imgUrl","image_name","http","post","API","then","res","_res$data","nonce_str","signature","timestamp","wx","config","debug","appId","nonceStr","jsApiList","ready","hideAllNonBaseMenuItem","showMenuItems","menuList","updateAppMessageShareData","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_8__","success","updateTimelineShareData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","a","info","toCourseDetail","id","_this$props","dispatch","history","push","href","groupon_member","person_num","is_success","userInfo","_this2","Promise","all","get","getParam","home","resultList","console","log","errno","code","course_info","course_list","countdown","date","end_time","hours","minutes","seconds","setInterval","parseInt","padStart","msg","_this3","_this$state2","_this$state2$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_16__","cart","toHref","img","toDetail","GorupContent","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_19__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kTAWMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAaVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKS,MAAhCC,EADYF,EACZE,UAAWC,EADCH,EACDG,OAAQC,EADPJ,EACOI,KAC1B,GAAGC,IAAQC,SAAU,CACjB,IAAIC,EAAQf,EAAKS,MAAMM,MACvBf,EAAKgB,SAAS,CACVD,OAAQA,IAEZ,IAAIE,EAAY,CACZC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsCP,EAAKQ,aAA3C,UACLC,KAAMT,EAAKQ,aAEXE,KAAMC,SAASC,OAAT,cAAAL,OAAgCP,EAAKa,WAC3CC,OAAQd,EAAKe,YAEjBC,IAAKC,KAAL,GAAAV,OAAaW,IAAI,YAAjB,sBAAiDC,KAAK,SAAAC,GAAO,IAAAC,EACfD,EAAIpB,KAAvCsB,EADkDD,EAClDC,UAAWC,EADuCF,EACvCE,UAAWC,EAD4BH,EAC5BG,UAC7BC,GAAGC,OAAO,CACNC,OAAS,EACTC,MAAS,qBACTJ,UAAaA,EACbK,SAAYP,EACZC,UAAaA,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ACXF,EAAA3C,EAAA4C,cAAA,KAAGC,UAAU,0BAGrB,KAGPoB,EACDtB,EAAA3C,EAAA4C,cAAAoC,EAAAhF,EAAA,KACKoE,GAELzB,EAAA3C,EAAA4C,cAAAoC,EAAAhF,EAAA,KACKkE,GAEJC,GAEIxD,GACDgC,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,aACXF,EAAA3C,EAAA4C,cAAA,YACID,EAAA3C,EAAA4C,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAA3C,EAAA4C,cAAA,QAAMC,UAAU,UAAhB,eAAA9E,OAA+B2C,EAA/B,yBAOLjE","file":"static/js/togroup.2438b92f.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\n\nimport { getParam, http, browser} from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast } from 'antd-mobile'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass ToGroup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: {},\n share: false,\n pdd_price: 0,\n groupon_member: [],\n person_num: 0, // 共多少人成团\n is_success: false, // 是否拼团成功\n userInfo: {},\n number: 0, // 差几人成团\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if(browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n let shareData = {\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title, // 分享描述\n // 直接进入课程详情页,isIn: 1\n link: location.origin + `/detail?id=${data.course_id}`, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致\n imgUrl: data.image_name, // 分享图标\n };\n http.post(`${API['base-api']}/m/sale/signature`).then(res => {\n const {nonce_str, signature, timestamp} = res.data;\n wx.config({\n \"debug\": false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。\n \"appId\": 'wx23dac6775ac82877', // 必填,公众号的唯一标识\n \"timestamp\": timestamp, // 必填,生成签名的时间戳\n \"nonceStr\": nonce_str, // 必填,生成签名的随机串\n \"signature\": signature, // 必填,签名\n jsApiList: [\n 'hideMenuItems',\n 'showMenuItems',\n 'updateAppMessageShareData',\n 'updateTimelineShareData',\n 'onMenuShareWeibo',\n 'onMenuShareAppMessage',\n ], // 必填,需要使用的JS接口列表\n });\n });\n wx.ready(function () { //需在用户可能点击分享按钮前就先调用\n wx.hideAllNonBaseMenuItem();\n wx.showMenuItems({\n menuList: ['menuItem:share:appMessage' , 'menuItem:share:timeline'] // 要显示的菜单项,所有menu项见附录3\n });\n wx.updateAppMessageShareData({\n ...shareData,\n success: function () {\n // 设置成功\n }\n })\n wx.updateTimelineShareData({\n ...shareData,\n success: function () {\n // 设置成功\n }\n })\n });\n }else{\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n Promise.all([http.get(`${API['base-api']}/pdd/goupon_pay_page/${getParam('id')}`), http.get(`${API.home}/m/user_info`)]).then(resultList => {\n console.log(resultList);\n let res = resultList[0],\n userInfo = resultList[1];\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n if(userInfo.data.code !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n this.setState({\n data: res.data.data.course_info,\n pdd_price: res.data.data.pdd_price,\n groupon_member: res.data.data.groupon_member,\n is_success: res.data.data.is_success,\n person_num: res.data.data.person_num,\n course_list: res.data.data.course_list,\n userInfo,\n number: res.data.data.number,\n countdown: '',\n });\n\n if(res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600000 - minutes * 60000 ) / 1000)}`.padStart(2, 0);\n this.setState({\n countdown: `${hours}:${minutes}:${seconds}`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n // }));\n }\n\n render() {\n const { data: { course_id, course_title, simpledescription, price0, price1 }, pdd_price, is_success, person_num, groupon_member, course_list } = this.state;\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(course_id)}>\n {/* <Link to={`/detail?id=${course_id}`}> */}\n {course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{price1}</span>\n <span className=\"old\">¥{price0}</span>\n </p>\n </div>\n </div>\n )\n return (\n <div className='to-group-box'>\n <HeaderBar title='拼团' cart={false} toHref={() => this.toCourseDetail(course_id)}></HeaderBar>\n {\n !is_success &&\n <VList\n img={this.state.data.image_name}\n id={this.state.data.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n }\n\n <GorupContent data={this.state} invitedFriends={this.invitedFriends} />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList\n img={item.image_name}\n key={item.uid}\n id={item.course_id}\n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const { pdd_price, data, groupon_member, is_success, person_num, userInfo, share, number, countdown } = props.data;\n let ary=[],num = number;\n while(num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt='' />\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let uid = '';\n groupon_member.map(item=>{\n if(item.user_type === 1) {\n uid = `${item.uid}`;\n }\n })\n\n if(uid === userInfo.data.data.uid) {\n tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>\n btn = <Link to={`/order?id=${data.course_id}`} className='group-btn'>一键参团</Link>\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_9__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_11__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_12__","call","invitedFriends","_this$state","state","pdd_price","number","data","browser","isWeixin","share","setState","shareData","title","concat","course_title","desc","link","location","origin","course_id","imgUrl","image_name","http","post","API","then","res","_res$data","nonce_str","signature","timestamp","wx","config","debug","appId","nonceStr","jsApiList","ready","hideAllNonBaseMenuItem","showMenuItems","menuList","updateAppMessageShareData","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_8__","success","updateTimelineShareData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","a","info","toCourseDetail","id","_this$props","dispatch","history","push","href","groupon_member","person_num","is_success","userInfo","_this2","Promise","all","get","getParam","home","resultList","console","log","errno","code","course_info","course_list","countdown","date","end_time","hours","minutes","seconds","setInterval","parseInt","padStart","msg","_this3","_this$state2","_this$state2$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_16__","cart","toHref","img","toDetail","GorupContent","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_19__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kTAWMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAaVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKS,MAAhCC,EADYF,EACZE,UAAWC,EADCH,EACDG,OAAQC,EADPJ,EACOI,KAC1B,GAAGC,IAAQC,SAAU,CACjB,IAAIC,EAAQf,EAAKS,MAAMM,MACvBf,EAAKgB,SAAS,CACVD,OAAQA,IAEZ,IAAIE,EAAY,CACZC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsCP,EAAKQ,aAA3C,UACLC,KAAMT,EAAKQ,aAEXE,KAAMC,SAASC,OAAT,cAAAL,OAAgCP,EAAKa,WAC3CC,OAAQd,EAAKe,YAEjBC,IAAKC,KAAL,GAAAV,OAAaW,IAAI,YAAjB,sBAAiDC,KAAK,SAAAC,GAAO,IAAAC,EACfD,EAAIpB,KAAvCsB,EADkDD,EAClDC,UAAWC,EADuCF,EACvCE,UAAWC,EAD4BH,EAC5BG,UAC7BC,GAAGC,OAAO,CACNC,OAAS,EACTC,MAAS,qBACTJ,UAAaA,EACbK,SAAYP,EACZC,UAAaA,EACbO,UAAW,CACP,gBACA,gBACA,4BACA,0BACA,mBACA,6BAIZL,G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,EACDtB,EAAA3C,EAAA4C,cAAAoC,EAAAhF,EAAA,KACKoE,GAELzB,EAAA3C,EAAA4C,cAAAoC,EAAAhF,EAAA,KACKkE,GAEJC,GAEIxD,GACDgC,EAAA3C,EAAA4C,cAAA,OAAKC,UAAU,aACXF,EAAA3C,EAAA4C,cAAA,YACID,EAAA3C,EAAA4C,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAA3C,EAAA4C,cAAA,QAAMC,UAAU,UAAhB,eAAA9E,OAA+B2C,EAA/B,yBAOLjE","file":"static/js/togroup.7dcc5f4b.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\n\nimport { getParam, http, browser} from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast } from 'antd-mobile'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass ToGroup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: {},\n share: false,\n pdd_price: 0,\n groupon_member: [],\n person_num: 0, // 共多少人成团\n is_success: false, // 是否拼团成功\n userInfo: {},\n number: 0, // 差几人成团\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if(browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n let shareData = {\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title, // 分享描述\n // 直接进入课程详情页,isIn: 1\n link: location.origin + `/detail?id=${data.course_id}`, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致\n imgUrl: data.image_name, // 分享图标\n };\n http.post(`${API['base-api']}/m/sale/signature`).then(res => {\n const {nonce_str, signature, timestamp} = res.data;\n wx.config({\n \"debug\": false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。\n \"appId\": 'wx23dac6775ac82877', // 必填,公众号的唯一标识\n \"timestamp\": timestamp, // 必填,生成签名的时间戳\n \"nonceStr\": nonce_str, // 必填,生成签名的随机串\n \"signature\": signature, // 必填,签名\n jsApiList: [\n 'hideMenuItems',\n 'showMenuItems',\n 'updateAppMessageShareData',\n 'updateTimelineShareData',\n 'onMenuShareWeibo',\n 'onMenuShareAppMessage',\n ], // 必填,需要使用的JS接口列表\n });\n });\n wx.ready(function () { //需在用户可能点击分享按钮前就先调用\n wx.hideAllNonBaseMenuItem();\n wx.showMenuItems({\n menuList: ['menuItem:share:appMessage' , 'menuItem:share:timeline'] // 要显示的菜单项,所有menu项见附录3\n });\n wx.updateAppMessageShareData({\n ...shareData,\n success: function () {\n // 设置成功\n }\n })\n wx.updateTimelineShareData({\n ...shareData,\n success: function () {\n // 设置成功\n }\n })\n });\n }else{\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n Promise.all([http.get(`${API['base-api']}/pdd/goupon_pay_page/${getParam('id')}`), http.get(`${API.home}/m/user_info`)]).then(resultList => {\n console.log(resultList);\n let res = resultList[0],\n userInfo = resultList[1];\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n if(userInfo.data.code !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n this.setState({\n data: res.data.data.course_info,\n pdd_price: res.data.data.pdd_price,\n groupon_member: res.data.data.groupon_member,\n is_success: res.data.data.is_success,\n person_num: res.data.data.person_num,\n course_list: res.data.data.course_list,\n userInfo,\n number: res.data.data.number,\n countdown: '',\n });\n\n if(res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600000 - minutes * 60000 ) / 1000)}`.padStart(2, 0);\n this.setState({\n countdown: `${hours}:${minutes}:${seconds}`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n // }));\n }\n\n render() {\n const { data: { course_id, course_title, simpledescription, price0, price1 }, pdd_price, is_success, person_num, groupon_member, course_list } = this.state;\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(course_id)}>\n {/* <Link to={`/detail?id=${course_id}`}> */}\n {course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{price1}</span>\n <span className=\"old\">¥{price0}</span>\n </p>\n </div>\n </div>\n )\n return (\n <div className='to-group-box'>\n <HeaderBar title='拼团' cart={false} toHref={() => this.toCourseDetail(course_id)}></HeaderBar>\n {\n !is_success &&\n <VList\n img={this.state.data.image_name}\n id={this.state.data.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n }\n\n <GorupContent data={this.state} invitedFriends={this.invitedFriends} />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList\n img={item.image_name}\n key={item.uid}\n id={item.course_id}\n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const { pdd_price, data, groupon_member, is_success, person_num, userInfo, share, number, countdown } = props.data;\n let ary=[],num = number;\n while(num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt='' />\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let uid = '';\n groupon_member.map(item=>{\n if(item.user_type === 1) {\n uid = `${item.uid}`;\n }\n })\n\n if(uid === userInfo.data.data.uid) {\n tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n tip = <p className='tip'>{`拼团省¥${pdd_price}元`}</p>\n btn = <Link to={`/order?id=${data.course_id}`} className='group-btn'>一键参团</Link>\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1177:function(e,t,a){"use strict";a.r(t);a(44);var n,c=a(14),i=a.n(c),s=a(7),o=a(8),r=a(10),l=a(9),d=a(11),u=(a(257),a(99)),m=a.n(u),p=a(0),h=a.n(p),v=a(162),f=(a(786),a(18)),b=a(52),y=a(4),E=a(21),g=(a(63),a(787),a(647)),S=function(e){var t=e.item;return h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},"\xa5",t.price1),h.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},N=Object(E.b)()(n=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){y.c.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):i.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?h.a.createElement("div",{className:"recommendation"},h.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),h.a.createElement("ul",null,this.state.list.map(function(t){var a=h.a.createElement("div",{className:"info"},h.a.createElement("p",{className:"title text-overflow-1"},t.course_title),h.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),h.a.createElement(S,{item:t}));return h.a.createElement(g.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(p.PureComponent))||n,_=(a(788),a(15)),w=a.n(_),I=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",{className:"video-catalog"},h.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return h.a.createElement("li",{key:t.id,className:w()({active:e.props.activeIndex===a})},h.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},h.a.createElement("span",{className:"title"},t.name),h.a.createElement("span",{className:"duration"},t.duration),h.a.createElement("i",{className:w()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?h.a.createElement(f.b,{to:{pathname:"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid)}},h.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,h.a.createElement("i",{className:w()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(p.Component),x=(a(789),a(791)),k=a.n(x),P=(a(792),function(e){function t(){return Object(s.a)(this,t),Object(r.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props.datum;return h.a.createElement("div",{className:"datum-catalog"},h.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),h.a.createElement(k.a,null,e&&e.length&&e.map(function(e,t){return h.a.createElement(k.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return h.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(p.Component));P.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var O=P,j=a(1155),C=(a(838),a(30)),A=a(43),B=a.n(A),D=a(839),R=a.n(D),L=a(660),T=m.a.alert;function W(e){return e.isShow&&h.a.createElement("div",{className:"progress-share-modal-wrapper"},h.a.createElement("div",{className:"progress-share-modal"},h.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),h.a.createElement("ul",{className:"progress-container"},h.a.createElement("li",null,h.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),h.a.createElement("div",{className:"number"},h.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),h.a.createElement("li",null,h.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),h.a.createElement("div",{className:"number"},h.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),h.a.createElement("div",{className:"share-container"},h.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),h.a.createElement("ul",null,h.a.createElement("li",{className:"share-icon"},h.a.createElement("a",{style:{display:"block"},href:e.data.url},h.a.createElement("div",{className:"icon"},h.a.createElement("i",{className:"iconfont iconweixinzhifu"})),h.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),h.a.createElement("li",{className:"share-icon"},h.a.createElement("a",{style:{display:"block"},href:e.data.url},h.a.createElement("div",{className:"icon"},h.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),h.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),h.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var M=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:null,salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:""},a.tobuy=function(){y.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(y.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(y.b)("id")),{simple:1}):i.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singMess:e})},a.boxHide=function(e){a.setState({singleBox:e})},a.setupRecord=function(){a.recordSocket=R()(API.record,{transports:["websocket"],forceNew:!0}),a.recordSocket.on("seek",function(e){a.player.currentTime(e)}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer)}),a.ws.addEventListener("message",function(e){4040==JSON.parse(e.data).code&&(a.reconnect=!1)})},a.sendMessage=function(e){a.ws&&a.ws.send(JSON.stringify(e))},a.getShareProgressInfo=function(){y.c.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5})},a.sendWatchTime=function(e,t){var n=a.state,c=n.videoList,i=n.activeIndex,s=n.vCourseId;a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:c[i].id,course_id:a.courseID,v_course_id:s,uid:a.props.user.data.uid,token:a.token,platform:0})},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(j.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!0,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.getShareProgressInfo(),clearInterval(a.timer)}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){y.c.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(a.countSchedule(),a.setState({activeIndex:e},function(){a.hasAuth()&&(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo())}))},a.getVideoList=function(){var e="";e=Object(y.b)("video_id")?"".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(y.b)("video_id")):"".concat(API.home,"/m/course/play/").concat(a.courseID),y.c.get(e).then(function(e){var t=e.data;200===t.code?a.setState(function(e){return{videoList:t.data.lessons,currentVideoSrc:t.data.lessons[e.activeIndex].play_url,course:t.data.course,courseId:t.data.course.course_id,vCourseId:t.data.course.v_course_id,title:t.data.course.course_title,isLoading:!1}},function(){a.state.course.is_aist&&(a.setupWS(),a.setupTimer()),a.lessonAvailable()?a.hasAuth()?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():T("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])}):i.a.info(t.msg)})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.play()},a.lessonAvailable=function(){var e=a.state,t=e.videoList,n=e.course,c=t.findIndex(function(e){return e.id==n.last_video_id});return a.setState({activeIndex:c}),0!==t[c].video_size},a.getCoursePrice=function(){y.c.get("".concat(API.home,"/sys/course/price/").concat(Object(y.b)("id"))).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth()&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(){var e=a.state,t=e.course,n=e.videoList,c=n.findIndex(function(e){return e.id==t.last_video_id});return a.setState({activeIndex:c}),n[c].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=window.location;"https:"!==e.protocol?(this.courseID=Object(y.b)("id"),this.courseID?(this.setState({courseId:this.courseID}),this.token=B.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()):this.props.history.replace("/")):e.replace("http"+e.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;y.c.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):i.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,c=this.state,i=c.videoList,s=c.activeIndex,o=c.isAuth,r=c.salePrice,l=c.course;return h.a.createElement("div",{className:"play"},h.a.createElement(v.a,{title:this.state.title,arrow:!0}),h.a.createElement(C.f,{isLoading:this.state.isLoading},h.a.createElement("div",{className:"video"},h.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t}},h.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!o&&!!i[s].is_class&&h.a.createElement("div",{className:"purchase-box"},h.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),h.a.createElement("div",{className:"btns"},h.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",r," \u8d2d\u4e70\u8bfe\u7a0b"),h.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,i[s]),className:"purchase-episode"},"\xa5",i.length&&i[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!o&&!!l.is_aist&&h.a.createElement("div",{className:"is-aist-box"},h.a.createElement("i",{className:"iconfont iconiconfront-21"}),h.a.createElement("p",{className:"time"},i[s].aist_start_time),h.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),h.a.createElement("div",{className:"tab"},h.a.createElement("div",null,h.a.createElement(f.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),h.a.createElement("div",null,h.a.createElement(f.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),h.a.createElement(L.a,{singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,videoId:this.state.singMess.id,title:this.state.singMess.course_tile})),h.a.createElement(b.d,null,h.a.createElement(b.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),h.a.createElement(b.b,{path:"".concat(a.path,"/video"),render:function(t){return h.a.createElement(I,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:i},t))}}),h.a.createElement(b.b,{path:"".concat(a.path,"/datum"),render:function(t){return h.a.createElement(O,Object.assign({},t,{datum:e.state.datum}))}})),h.a.createElement(b.b,{render:function(t){return e.state.vCourseId?h.a.createElement(N,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),h.a.createElement(W,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(p.Component);t.default=Object(E.b)(function(e){return{user:e.user}},null)(M)},647:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(648);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},648:function(e,t,a){},660:function(e,t,a){"use strict";a(44);var n=a(14),c=a.n(n),i=a(7),s=a(8),o=a(10),r=a(9),l=a(156),d=a(11),u=a(0),m=a.n(u),p=(a(661),a(4)),h=a(18),v=a(52),f=a(17),b=a(21),y=a(157),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(o.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){p.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.a.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():c.a.info(t.data.msg,2)})},a.alipayPay=function(e){p.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?window.location=e.data.data.url:c.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(p.b)("code");if(t){if(!Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):c.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(l.a)(a);Object(p.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):c.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){c.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.b)("id")};p.c.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.c.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):c.a.info(e.data.msg,2)})},a.getTime=function(e){p.c.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):c.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={status:1,orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(d.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){(1===Object(p.b)("is_class")||Object(p.b)("weixinpay"))&&this.payCallback(),p.a.isWeixin&&this.isweixinPay()}},{key:"render",value:function(){var e=this,t=this.state.showSingleBox;if(this.state.endTime){var a=1e3*this.state.endTime,n=Date.now();setInterval(function(){a-=1e3;var t=Object(y.differenceInSeconds)(new Date(a),n)%60,c=Object(y.differenceInMinutes)(new Date(a),n)%60,i=Object(y.differenceInHours)(new Date(a),n)%24;e.setState({hour:i,min:c,sec:t})},1e3)}return m.a.createElement("div",null,this.props.singleBox&&m.a.createElement("div",{className:"popup-box"},1===this.state.status&&m.a.createElement("div",{className:"content singleset-payment"},m.a.createElement("div",{className:"price-box"},m.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),m.a.createElement("p",null,this.props.data.class_price,"\u5143")),m.a.createElement("div",{className:"course-info"},m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),m.a.createElement("div",{className:"payment-type"},m.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&m.a.createElement("p",{onClick:this.check.bind(this,"1")},m.a.createElement("i",{className:"iconfont iconalipay"}),m.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),m.a.createElement("p",{onClick:this.check.bind(this,"0")},m.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),m.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),m.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70"))),t&&m.a.createElement("div",{className:"popup-box"},2===this.state.status&&m.a.createElement("div",{className:"content payment-success"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.state.nowPrice,"\u5143\u8d2d\u4e70\u3002"),m.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u591f\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.state.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),m.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),m.a.createElement("div",{className:"btn btn-FF4000",onclick:this.toBuyAll()},"\uffe5",this.state.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),m.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),m.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===this.state.status&&m.a.createElement("div",{className:"content zero"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),m.a.createElement(h.b,{to:"/play/video?id=".concat(this.props.vcourseId,"&video_id=").concat(this.props.data.video_id),className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===this.state.status&&m.a.createElement("div",{className:"content group"},m.a.createElement("div",{className:"header"},m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),m.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),m.a.createElement("div",{className:"group-img"},m.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),m.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(b.b)(function(e){return{user:e.user}},null),v.g)(E)},661:function(e,t,a){},786:function(e,t,a){},787:function(e,t,a){},788:function(e,t,a){},792:function(e,t,a){},794:function(e,t){},862:function(e,t){}}]);
//# sourceMappingURL=video.85bd98ff.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/video/recommendation/index.js","components/video/video-catalog/index.js","components/video/datum-catalog/index.js","components/video/index.js","common/v-list-base/index.js","components/detail/single/index.js"],"names":["Bottom","_ref","item","react_default","a","createElement","className","price1","price0","Recommendation","connect","state","num","list","courseId","getRecommendation","http","get","concat","API","home","_this","props","vCourseId","then","res","data","code","setState","Array","isArray","toast_default","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","this","_this2","length","map","Info","course_title","simpledescription","recommendation_Bottom","v_list_base","key","course_id","img","image_name","handleClick","PureComponent","VideoCatalog","i","selectVideo","videoCatalog","index","classnames","active","activeIndex","onClick","bind","name","duration","video_auth","practice","qid","react_router_dom","to","pathname","search","title","is_tested","Component","DatumCatalog","datum","accordion_default","Panel","header","dir_name","files","file_id","file_name","defaultProps","alert","modal_default","ProgressShareModal","isShow","learn_day_count","parseFloat","action_power","style","display","href","url","closeShareModal","Video","previousPlaybackRate","currentPlaybackRate","reconnect","videoList","currentVideoSrc","isAuth","course","salePrice","isLoading","isShowShareModal","shareData","singleBox","singMess","tobuy","getParam","errno","simple","toSingleset","boxHide","val","setupRecord","recordSocket","io","record","transports","forceNew","on","time","player","currentTime","recordTimer","setInterval","sendRecord","emit","recordUserInfo","uid","user","courseID","video_id","video_time","parseInt","plat","setupWS","ws","WebSocket","addEventListener","setTimeout","clearInterval","timer","e","JSON","parse","sendMessage","message","send","stringify","getShareProgressInfo","countSchedule","mtype","token","platform","sendWatchTime","sec","rate","_this$state","v_course_id","setupTimer","count","watchSec","paused","initializePlayer","window","HELP_IMPROVE_VIDEOJS","videojs","video","controls","preload","bigPlayButton","textTrackDisplay","posterImage","errorDisplay","playbackRates","controlBar","pictureInPictureToggle","playbackRate","sendLastRecord","post","hasAuth","setPlayerSrc","playVideo","getVideoList","is_aist","lessonAvailable","Promise","resolve","playWithAuth","getCoursePrice","text","onPress","src","type","play","_this$state2","videoIndex","findIndex","last_video_id","_this$state3","_this$state4","location","protocol","jsCookie","getDatumCatalog","replace","slice","dispose","close","_this3","match","_this$state5","HeaderBar","arrow","common","ref","el","activeClassName","single","videoId","course_tile","react_router","exact","from","path","render","video_video_catalog","Object","assign","video_datum_catalog","video_recommendation","VList","react__WEBPACK_IMPORTED_MODULE_0___default","status","alt","tab","Single","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","check","payType","toBuy","orderId","order_id","alipayPay","weixinPay","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","browser","isWeixin","encodeURIComponent","toLowerCase","isweixinPay","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","weixin_code","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","Number","showSingleBox","nowPrice","now_price","laterPrice","three_day_later_price","document","attachEvent","payCallback","_this4","toBuyAll","zerobuyReceive","success","colse","zerogroupBuy","getOrderId","groupOrderId","getOrderStatus","getTime","pdd_order_id","endTime","end_time","toGroup","hour","min","_this5","date","now","Date","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","react__WEBPACK_IMPORTED_MODULE_8___default","class_price","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","vcourseId","onclick","avatar","String","padStart","compose","withRouter"],"mappings":"wRASMA,EAAS,SAAAC,GAAY,IAAVC,EAAUD,EAAVC,KACb,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,SAAhB,OAA0BJ,EAAKK,QAC/BJ,EAAAC,EAAAC,cAAA,QAAMC,UAAU,eAAhB,OAAgCJ,EAAKM,UA6ElCC,EAxEdC,2NAEGC,MAAQ,CACJC,IA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MAGZoE,EAAAjT,EAAAC,cAAA,OAAKC,UAAU,mBAAmByD,QAASvB,KAAKgQ,SAAhD,eACOmB,OAAOnR,KAAK7B,MAAM8R,MAAMmB,SAAS,EAAG,GAD3C,SACgDD,OAAOnR,KAAK7B,MAAM+R,KAAKkB,SAAS,EAAG,GADnF,SACwFD,OAAOnR,KAAK7B,MAAMuJ,KAAK0J,SAAS,EAAG,GAD3H,yCAMRP,EAAAjT,EAAAC,cAAA,KAAG0D,QAASvB,KAAKuP,MAAOzR,UAAW,4CA3ZtCsE,aAqaNiP,gBACXnT,YACI,SAAAC,GAAK,MAAK,CAAC6H,KAAM7H,EAAM6H,OACvB,MAEJsL,IALWD,CAMb1E","file":"static/js/video.85bd98ff.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../../detail/actions';\nimport './recommendation.scss'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport VList from '@/common/v-list-base';\n\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass Recommendation extends PureComponent {\n state = {\n num: 10,\n list: [],\n courseId: null\n }\n\n componentDidMount() {\n this.getRecommendation()\n }\n\n getRecommendation = () => {\n http.get(`${API.home}/m/play/recommend_course/${this.props.vCourseId}?num=${this.state.num}`)\n .then(res => {\n const data = res.data\n if(data.code === 200){\n\n this.setState({\n list: Array.isArray(data.data) ? data.data : []\n })\n\n }else {\n Toast.info(data.msg)\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n return (\n this.state.list.length\n ?\n <div className='recommendation'>\n <div className={'title'}>相关推荐</div>\n <ul>\n {\n this.state.list.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title text-overflow-1'>{item.course_title}</p>\n <p className='des text-overflow-2'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n\n return (\n <VList\n key={item.course_id}\n img={item.image_name}\n handleClick={this.toCourseDetail}\n info={Info}\n id={item.course_id}\n />\n )\n })\n }\n </ul>\n </div>\n : null\n );\n }\n}\n\nexport default Recommendation;","import React, { Component } from 'react'\nimport './video-catalog.scss'\nimport { Link } from \"react-router-dom\";\nimport classnames from 'classnames'\n\n\nclass VideoCatalog extends Component {\n\n handleClick = (i) => {\n this.props.selectVideo(i)\n }\n\n render() {\n return (\n <div className='video-catalog'>\n <ul>\n {\n this.props.videoCatalog.map((item, index) => {\n return (\n <li key={item.id}\n className={classnames({active: this.props.activeIndex === index})}\n >\n <div className=\"video-title\" onClick={this.handleClick.bind(this, index)}>\n <span className=\"title\">{item.name}</span>\n <span className='duration'>{item.duration}</span>\n <i className={classnames(`iconfont`,\n [item.video_auth === 0\n ? 'iconiconfront-74'\n : 'iconplay_hovericon'],\n )}/>\n </div>\n {\n (item.practice && item.practice.qid)\n ? <Link to={{\n pathname: '/campTest',\n search: `?keshi_id=${item.id}&qid=${item.practice.qid}`\n }}>\n <div className=\"exercise\">\n 课后练习:{item.practice.title}\n <i className={classnames('iconfont',!item.video_auth ? 'iconiconfront-74' : item.practice.is_tested ? 'iconiconfront-3' : '')}/>\n </div>\n </Link>\n : null\n }\n </li>\n )\n })\n }\n </ul>\n </div>\n );\n }\n}\n\nexport default VideoCatalog;","import React, { Component } from 'react';\nimport './datum-catalog.scss'\nimport { Accordion } from \"antd-mobile\";\n\n\nclass DatumCatalog extends Component {\n\n static defaultProps = {\n datum: [{\n dir_name: '',\n files: [{\n file_name: '',\n file_id: 0\n }]\n }]\n }\n\n render() {\n const {datum} = this.props\n return (\n <div className='datum-catalog'>\n <p className='prompt'>课程资料请到PC端播放页下载</p>\n <Accordion>\n {\n datum && datum.length && datum.map((item, index) => {\n return (\n <Accordion.Panel header={item.dir_name} key={index}>\n {\n item.files.map(item => {\n return (\n <div key={item.file_id} className='file-name'>\n {item.file_name}\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n </div>\n );\n }\n}\n\nexport default DatumCatalog;","import React, {Component} from 'react'\nimport HeaderBar from '@/common/HeaderBar'\nimport './video.scss'\nimport {NavLink, Route, Redirect, Switch, Link} from 'react-router-dom'\nimport {http, getParam} from '@/utils'\nimport Recommendation from './recommendation'\nimport VideoCatalog from './video-catalog'\nimport DatumCatalog from './datum-catalog'\nimport {Toast} from 'antd-mobile'\nimport videojs from 'video.js'\nimport 'video.js/dist/video-js.min.css'\nimport {Modal} from \"antd-mobile\"\nimport {Loading} from '@/common'\nimport {connect} from \"react-redux\"\nimport jsCookie from 'js-cookie'\nimport io from 'socket.io-client'\nimport Single from \"@/components/detail/single\";\n\nlet alert = Modal.alert\n\nfunction ProgressShareModal(props) {\n return (\n props.isShow &&\n <div className='progress-share-modal-wrapper'>\n <div className=\"progress-share-modal\">\n <div className=\"title\">每日打卡</div>\n <ul className=\"progress-container\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"number\"><span className='num'>{props.data.learn_day_count}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"number\"><span className='num'>{parseFloat(props.data.action_power)}</span>%\n </div>\n </li>\n </ul>\n <div className=\"share-container\">\n <div className=\"title\">分享到</div>\n <ul>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconweixinzhifu'/></div>\n <div className='text'>微信好友</div>\n </a>\n </li>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconpengyouquaniconx'/></div>\n <div className='text'>朋友圈</div>\n </a>\n </li>\n </ul>\n </div>\n <i className=\"iconfont iconiconfront-2 close\" onClick={props.closeShareModal}/>\n </div>\n </div>\n )\n}\n\n\nclass Video extends Component {\n\n video //video element\n player //video player instance\n\n courseID\n\n ws //websocket instance\n timer\n token\n count\n watchSec\n previousPlaybackRate = 1\n currentPlaybackRate = 1\n reconnect = true\n\n recordSocket\n recordTimer\n\n\n state = {\n title: '',\n courseId: null,\n videoList: [],\n datum: [],\n currentVideoSrc: '',\n activeIndex: 0,\n isAuth: true,\n course: null,\n salePrice: null,\n vCourseId: null,\n isLoading: true,\n isShowShareModal: false,\n shareData: {},\n singleBox: false,\n singMess: '',\n }\n\n\n componentDidMount() {\n const location = window.location;\n if (location.protocol === 'https:') {\n location.replace('http' + location.href.slice(5))\n return\n }\n\n this.courseID = getParam('id')\n if (!this.courseID) {\n this.props.history.replace('/')\n return\n }\n this.setState({\n courseId: this.courseID\n })\n this.token = jsCookie.get('token')\n this.getVideoList()\n this.getDatumCatalog()\n this.setupRecord()\n }\n\n // 直接购买\n tobuy = () => {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${getParam('id')}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${getParam('id')}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 购买单集\n toSingleset = (item) => {\n this.setState({\n singleBox: true,\n singMess: item\n })\n }\n\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({singleBox: val})\n }\n\n\n setupRecord = () => {\n this.recordSocket = io(API.record, {\n transports: ['websocket'],\n forceNew: true\n })\n // this.recordSocket = io(API.record)\n this.recordSocket.on('seek', time => {\n this.player.currentTime(time)\n })\n\n this.recordTimer = setInterval(() => {\n this.sendRecord()\n }, 5000)\n }\n\n sendRecord = () => {\n if (this.recordSocket && this.player) {\n this.recordSocket.emit('addRecord', this.recordUserInfo())\n }\n }\n\n recordUserInfo = () => {\n let {uid} = this.props.user.data\n return {\n uid,\n course_id: this.courseID,\n video_id: this.state.videoList[this.state.activeIndex]['id'],\n video_time: parseInt(this.player.currentTime()),\n plat: 5\n }\n }\n\n setupWS = () => {\n this.ws = new WebSocket(API[\"process-api\"]);\n this.ws.addEventListener('error', () => {\n this.ws = null\n /*setTimeout(() => {\n this.setupWS();\n }, 1000)*/\n })\n this.ws.addEventListener('close', () => {\n if (this.reconnect) {\n this.ws = null\n setTimeout(() => {\n this.setupWS();\n }, 1000)\n }\n clearInterval(this.timer)\n })\n this.ws.addEventListener('message', e => {\n const data = JSON.parse(e.data);\n data.code == 4040 && (this.reconnect = false)\n })\n }\n\n sendMessage = message => {\n this.ws && this.ws.send(JSON.stringify(message))\n }\n\n //视频结束请求接口\n getShareProgressInfo = () => {\n http.get(`${API['base-api']}/m/aist/share_data/${this.courseID}/${this.state.videoList[this.state.activeIndex]['id']}`)\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({shareData: data.data, isShowShareModal: true})\n }\n })\n }\n\n //告诉服务端切换视频\n countSchedule = () => {\n this.sendMessage({\n mtype: 'count_schedule',\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 5\n })\n }\n\n sendWatchTime = (sec, rate) => {\n const {videoList, activeIndex, vCourseId} = this.state\n\n this.sendMessage({\n mtype: 'watch_time',\n rate,\n time: sec,\n video_id: videoList[activeIndex]['id'],\n course_id: this.courseID,\n v_course_id: vCourseId,\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 0\n })\n }\n\n setupTimer = () => {\n this.count = 0\n this.watchSec = 0\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n if (this.player && this.player.player()) {\n if (this.count === 5) {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.count = this.watchSec = 0\n } else {\n !this.player.paused() && this.watchSec++\n this.count++\n }\n }\n }, 1000)\n\n }\n\n initializePlayer = () => {\n window.HELP_IMPROVE_VIDEOJS = false;\n this.player = videojs(this.video, {\n controls: true,\n preload: 'auto',\n bigPlayButton: true,\n textTrackDisplay: false,\n posterImage: false,\n errorDisplay: false,\n playbackRates: ['0.75', '1', '1.5', '2'],\n controlBar: {\n pictureInPictureToggle: false\n }\n })\n this.player.on('ready', () => {\n this.recordSocket.emit('load', this.recordUserInfo())\n })\n this.player.on('ratechange', () => {\n this.currentPlaybackRate = this.player.playbackRate()\n this.sendWatchTime(this.watchSec, this.previousPlaybackRate)\n this.count = this.watchSec = 0\n this.previousPlaybackRate = this.currentPlaybackRate\n })\n this.player.on('ended', () => {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.getShareProgressInfo()\n clearInterval(this.timer)\n })\n this.player.on('seeked', () => {\n this.sendRecord()\n })\n }\n\n sendLastRecord = () => {\n http.post(`${API.home}/m/course/record_last_video`, {\n v_course_id: this.state.course['v_course_id'],\n video_id: this.state.videoList[this.state.activeIndex].id\n })\n }\n\n componentWillUnmount() {\n this.player && this.player.dispose()\n\n clearInterval(this.timer)\n this.ws && this.ws.close()\n this.ws = null\n\n clearInterval(this.recordTimer)\n this.recordSocket && this.recordSocket.close()\n this.recordSocket = null\n }\n\n selectVideo = index => {\n\n if (index === this.state.activeIndex) {\n return\n }\n\n this.countSchedule()\n\n this.setState({\n activeIndex: index\n },\n () => {\n if (this.hasAuth()) {\n this.setPlayerSrc(this.state.videoList[index]['play_url'])\n this.sendLastRecord()\n this.playVideo()\n }\n\n\n }\n )\n }\n\n\n getVideoList = () => {\n let url = ''\n\n if (getParam('video_id')) {\n url = `${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`\n } else {\n url = `${API.home}/m/course/play/${this.courseID}`\n }\n http.get(url)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState(\n state => ({\n videoList: data.data['lessons'],\n currentVideoSrc: data.data['lessons'][state.activeIndex]['play_url'],\n course: data.data.course,\n courseId: data.data.course['course_id'],\n vCourseId: data.data.course['v_course_id'],\n title: data.data.course['course_title'],\n isLoading: false\n }),\n () => {\n if (this.state.course.is_aist) {\n this.setupWS()\n this.setupTimer()\n }\n if (this.lessonAvailable()) {\n if (this.hasAuth()) {\n Promise.resolve().then(() => {\n this.initializePlayer()\n this.playWithAuth()\n })\n } else {\n this.getCoursePrice();\n }\n } else {\n alert('暂无视频', '', [{\n text: 'OK',\n onPress: () => {\n this.props.history.push('/')\n }\n }])\n }\n }\n )\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n setPlayerSrc = src => {\n if (!this.player) {\n this.initializePlayer()\n }\n this.player.src({\n src,\n type: 'application/x-mpegURL'\n })\n }\n\n playVideo = () => {\n this.player.play()\n }\n\n\n getDatumCatalog() {\n http.get(`${API.home}/m/course/data/${this.courseID}`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState({\n datum: data.data\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n lessonAvailable = () => {\n let {videoList, course} = this.state\n let videoIndex = videoList.findIndex(item => item.id == course.last_video_id)\n this.setState({\n activeIndex: videoIndex\n })\n return videoList[videoIndex]['video_size'] !== 0\n }\n\n getCoursePrice = () => {\n http.get(`${API.home}/sys/course/price/${getParam('id')}`)\n .then(res => {\n const {data} = res\n if (data.code === 200) {\n this.setState({\n salePrice: data.data['sale_price']\n })\n }\n })\n }\n\n playWithAuth = () => {\n const {videoList, activeIndex} = this.state\n\n if (this.hasAuth()) {\n this.setPlayerSrc(videoList[activeIndex]['play_url'])\n }\n }\n\n hasAuth = () => {\n const {course, videoList} = this.state\n\n let videoIndex = videoList.findIndex(item => item.id == course.last_video_id)\n this.setState({\n activeIndex: videoIndex\n })\n let lesson = videoList[videoIndex]\n\n if (lesson['video_auth']) {\n this.setState({\n isAuth: true\n })\n return true\n } else {\n this.setState({\n isAuth: false\n })\n return false\n\n }\n }\n\n\n render() {\n let {match, location} = this.props\n const {videoList, activeIndex, isAuth, salePrice, course} = this.state\n return (\n <div className='play'>\n <HeaderBar title={this.state.title} arrow={true}/>\n <Loading isLoading={this.state.isLoading}>\n <div className=\"video\">\n <video className={'video-js'} ref={el => this.video = el}>\n <source src={'/'} type='application/x-mpegURL'/>\n </video>\n {\n !isAuth && !!videoList[activeIndex]['is_class'] && (\n <div className=\"purchase-box\">\n <div className='hint'>您尚未购买该课时,请购买后学习。</div>\n <div className='btns'>\n <button type='button'\n onClick={this.tobuy}\n className='purchase-class'>¥{salePrice} 购买课程\n </button>\n <button type='button'\n onClick={this.toSingleset.bind(this, videoList[activeIndex])}\n className='purchase-episode'>¥{videoList.length && videoList[activeIndex]['class_price']} 购买单集\n </button>\n </div>\n </div>\n )\n }\n {\n !isAuth && !!course.is_aist && (\n <div className=\"is-aist-box\">\n <i className={'iconfont iconiconfront-21'}></i>\n <p className={'time'}>{videoList[activeIndex]['aist_start_time']}</p>\n <p className={'time'}>请耐心等待...</p>\n </div>\n )\n }\n </div>\n <div className='tab'>\n <div>\n <NavLink to={{pathname: `${match.url}/video`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >视频</NavLink>\n </div>\n <div>\n <NavLink to={{pathname: `${match.url}/datum`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >资料</NavLink>\n </div>\n </div>\n\n {/*单集购买*/}\n <Single singleBox={this.state.singleBox} boxHide={this.boxHide} data={this.state.singMess}\n videoId={this.state.singMess.id}\n title={this.state.singMess.course_tile}/>\n </Loading>\n <Switch>\n <Redirect exact from={'/play'} to={{\n pathname: '/play/video',\n search: location.search\n }}/>\n <Route path={`${match.path}/video`} render={props => {\n return <VideoCatalog\n activeIndex={this.state.activeIndex}\n selectVideo={this.selectVideo}\n videoCatalog={videoList}\n {...props}/>\n }}/>\n <Route path={`${match.path}/datum`} render={props => {\n return <DatumCatalog {...props} datum={this.state.datum}/>\n }}/>\n </Switch>\n <Route render={props => {\n return this.state.vCourseId ? <Recommendation {...props} vCourseId={this.state.vCourseId}/>\n : null\n }}/>\n <ProgressShareModal isShow={this.state.isShowShareModal}\n closeShareModal={() => this.setState({isShowShareModal: false})}\n data={this.state.shareData}\n />\n\n </div>\n );\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Video);","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","import React, { Component } from 'react'\nimport './index.scss'\nimport { getParam, http, browser } from \"@/utils\";\nimport { Toast } from 'antd-mobile';\nimport { Link, withRouter } from \"react-router-dom\";\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\nimport { differenceInHours, differenceInMinutes, differenceInSeconds } from \"date-fns\";\n\n\nclass Single extends Component {\n constructor(props) {\n super(props)\n this.state = {\n status: 1,\n orderId: '',\n nowPrice: '',\n laterPrice: '',\n hour: '',\n min: '',\n sec: '',\n endTime: '',\n groupOrderId: '',\n payType: '0', // 1支付宝 0微信\n showSingleBox: false,\n }\n }\n\n componentDidMount() {\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (browser.isWeixin) {\n this.isweixinPay()\n }\n }\n\n // 选择支付方式\n check = (type) => {\n this.setState({\n payType: type\n })\n }\n\n // 确定购买\n toBuy = () => {\n http.get(`${API.home}/sys/createClassOrder/${this.props.data.video_id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n orderId: res.data.data.order_id\n })\n this.state.payType === '1' ? this.alipayPay(res.data.data.order_id) : this.weixinPay(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (browser.isWeixin) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb&oid=\" + orderId).toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1&oid=\" + orderId).toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code')\n if (weixin_code) {\n if (!getParam('oid')) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n const data = res.data.data;\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": data.appId, //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2,\n showSingleBox: true,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady)\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady()\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n if(getParam('oid')) {\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2,\n showSingleBox: true,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n }\n\n }\n\n\n // 特价购买全集\n toBuyAll = () => {\n\n }\n // 0元购买全集\n zerobuyReceive = () => {\n Toast.success('购买全集成功', 3)\n this.colse()\n }\n // 0元参团\n zerogroupBuy = () => {\n this.getOrderId()\n }\n\n // 获取订单号-0元参团\n getOrderId = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API['base-api']}/pdd/sys`, data).then((res) => {\n if (res.data.errno === 0) {\n this.setState({\n groupOrderId: res.data.data.order_id\n })\n this.getOrderStatus(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取订单状态-0元参团\n getOrderStatus = (id) => {\n http.get(`${API.home}/m/pdd/order_status/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.getTime(res.data.data.pdd_order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 获取倒计时-0元参团\n getTime = (id) => {\n http.get(`${API.home}/m/pdd_order_end_time/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n endTime: res.data.data.end_time,\n status: 7\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 邀请好友参团\n toGroup = () => {\n this.props.history.push(`/togroup?id=${this.state.groupOrderId}`)\n }\n\n // 关闭弹窗\n colse = () => {\n this.props.boxHide(false);\n this.setState({\n status: 1\n })\n }\n\n render() {\n const { showSingleBox } = this.state;\n if (this.state.endTime) {\n let date = this.state.endTime * 1000\n let now = Date.now()\n setInterval(() => {\n date -= 1000\n let s = differenceInSeconds(new Date(date), now) % 60,\n m = differenceInMinutes(new Date(date), now) % 60,\n h = differenceInHours(new Date(date), now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n })\n }, 1000)\n }\n\n return (\n <div>\n {\n this.props.singleBox &&\n <div className='popup-box'>\n {\n this.state.status === 1 &&\n <div className='content singleset-payment'>\n <div className='price-box'>\n <span>实付款:</span>\n <p>{this.props.data.class_price}元</p>\n </div>\n <div className='course-info'>\n <p className='text-overflow-1'><span>课程:</span>\n {this.props.title}\n </p>\n <p className='text-overflow-1'><span>课时:</span>\n {this.props.data.name}\n </p>\n </div>\n <div className='payment-type'>\n <label>支付方式:</label>\n {\n !browser.isWeixin &&\n <p onClick={this.check.bind(this, '1')}>\n <i className='iconfont iconalipay'></i>\n <span>支付宝</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '1' ? 'redioed' : ''}`}></i>\n </p>\n }\n\n <p onClick={this.check.bind(this, '0')}>\n <i className='iconfont iconweixinzhifu buy'></i>\n <span>微信支付</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '0' ? 'redioed' : ''}`}></i>\n </p>\n </div>\n <div className='btn btn-18B4ED' onClick={this.toBuy}>确认购买</div>\n </div>\n }\n </div>\n }\n {\n showSingleBox &&\n <div className='popup-box'>\n {\n this.state.status === 2 &&\n <div className='content payment-success'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 3天内购买全集,可直接抵扣该集费用,{this.state.nowPrice}元购买。</div>\n <div className=\"dec\">· 超过3天,按照未够集数/全部集数等比例计费,{this.state.laterPrice}元购买全集。</div>\n <Link to={`/play/video?id=${this.props.vcourseId}&video_id=${this.props.data.video_id}`} className='btn btn-18B4ED'>开始学习</Link>\n <div className='btn btn-FF4000' onclick={this.toBuyAll()}>¥{this.state.nowPrice}购买全集\n </div>\n </div>\n }\n {\n this.state.status === 3 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元拼团购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerogroupBuy}>0元参团</div>\n </div>\n }\n {\n this.state.status === 4 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerobuyReceive}>0元购</div>\n </div>\n }\n {\n this.state.status === 6 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <Link to={`/play/video?id=${this.props.vcourseId}&video_id=${this.props.data.video_id}`} className='btn btn-18B4ED'>去学习</Link>\n </div>\n }\n {\n this.state.status === 7 &&\n <div className='content group'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>参团成功</span>\n </div>\n <div className='group-img'>\n <img src={this.props.user.data.avatar} alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n\n </div>\n <div className='btn-l btn-FF4000' onClick={this.toGroup}>\n 剩余{String(this.state.hour).padStart(2, 0)}:{String(this.state.min).padStart(2, 0)}:{String(this.state.sec).padStart(2, 0)}\n 邀请好友参团\n </div>\n </div>\n }\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n }\n </div>\n\n );\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(Single)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1177:function(e,t,a){"use strict";a.r(t);a(44);var n,c=a(14),i=a.n(c),o=a(7),r=a(8),s=a(11),l=a(9),d=a(10),u=(a(257),a(99)),m=a.n(u),p=a(0),h=a.n(p),f=a(162),v=(a(786),a(18)),y=a(52),b=a(4),g=a(21),E=(a(63),a(787),a(648)),S=function(e){var t=e.item;return h.a.createElement("div",{className:"bottom"},h.a.createElement("span",{className:"price"},"\xa5",t.price1),h.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},_=Object(g.b)()(n=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.c.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):i.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?h.a.createElement("div",{className:"recommendation"},h.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),h.a.createElement("ul",null,this.state.list.map(function(t){var a=h.a.createElement("div",{className:"info"},h.a.createElement("p",{className:"title text-overflow-1"},t.course_title),h.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),h.a.createElement(S,{item:t}));return h.a.createElement(E.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(p.PureComponent))||n,I=(a(788),a(15)),w=a.n(I),N=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this;return h.a.createElement("div",{className:"video-catalog"},h.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return h.a.createElement("li",{key:t.id,className:w()({active:e.props.activeIndex===a})},h.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},h.a.createElement("span",{className:"title"},t.name),h.a.createElement("span",{className:"duration"},t.duration),h.a.createElement("i",{className:w()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?h.a.createElement(v.b,{to:{pathname:"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid)}},h.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,h.a.createElement("i",{className:w()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(p.Component),x=(a(789),a(791)),P=a.n(x),k=(a(792),function(e){function t(){return Object(o.a)(this,t),Object(s.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props.datum;return h.a.createElement("div",{className:"datum-catalog"},h.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),h.a.createElement(P.a,null,e&&e.length&&e.map(function(e,t){return h.a.createElement(P.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return h.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(p.Component));k.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var O=k,j=a(1155),C=(a(838),a(30)),A=a(43),R=a.n(A),T=a(839),B=a.n(T),D=a(661),L=m.a.alert;function W(e){return e.isShow&&h.a.createElement("div",{className:"progress-share-modal-wrapper"},h.a.createElement("div",{className:"progress-share-modal"},h.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),h.a.createElement("ul",{className:"progress-container"},h.a.createElement("li",null,h.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),h.a.createElement("div",{className:"number"},h.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),h.a.createElement("li",null,h.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),h.a.createElement("div",{className:"number"},h.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),h.a.createElement("div",{className:"share-container"},h.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),h.a.createElement("ul",null,h.a.createElement("li",{className:"share-icon"},h.a.createElement("a",{style:{display:"block"},href:e.data.url},h.a.createElement("div",{className:"icon"},h.a.createElement("i",{className:"iconfont iconweixinzhifu"})),h.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),h.a.createElement("li",{className:"share-icon"},h.a.createElement("a",{style:{display:"block"},href:e.data.url},h.a.createElement("div",{className:"icon"},h.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),h.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),h.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var M=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,c=new Array(n),r=0;r<n;r++)c[r]=arguments[r];return(a=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:null,salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:""},a.tobuy=function(){b.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(b.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(b.b)("id")),{simple:1}):i.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singMess:e})},a.boxHide=function(e){a.setState({singleBox:e})},a.setupRecord=function(){a.recordSocket=B()(API.record,{transports:["websocket"],forceNew:!0}),a.recordSocket.on("seek",function(e){a.player.currentTime(e)}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer)}),a.ws.addEventListener("message",function(e){4040==JSON.parse(e.data).code&&(a.reconnect=!1)})},a.sendMessage=function(e){a.ws&&a.ws.send(JSON.stringify(e))},a.getShareProgressInfo=function(){b.c.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5})},a.sendWatchTime=function(e,t){var n=a.state,c=n.videoList,i=n.activeIndex,o=n.vCourseId;a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:c[i].id,course_id:a.courseID,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:0})},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(j.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!0,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.getShareProgressInfo(),clearInterval(a.timer)}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.c.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(a.countSchedule(),a.setState({activeIndex:e},function(){a.hasAuth()&&(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo())}))},a.getVideoList=function(){var e="";e=Object(b.b)("video_id")?"".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.b)("video_id")):"".concat(API.home,"/m/course/play/").concat(a.courseID),b.c.get(e).then(function(e){var t=e.data;200===t.code?a.setState(function(e){return{videoList:t.data.lessons,currentVideoSrc:t.data.lessons[e.activeIndex].play_url,course:t.data.course,courseId:t.data.course.course_id,vCourseId:t.data.course.v_course_id,title:t.data.course.course_title,isLoading:!1}},function(){a.state.course.is_aist&&(a.setupWS(),a.setupTimer()),a.lessonAvailable()?a.hasAuth()?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():L("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])}):i.a.info(t.msg)})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.play()},a.lessonAvailable=function(){var e=a.state,t=e.videoList,n=e.course,c=t.findIndex(function(e){return e.id==n.last_video_id});return a.setState({activeIndex:c}),0!==t[c].video_size},a.getCoursePrice=function(){b.c.get("".concat(API.home,"/sys/course/price/").concat(Object(b.b)("id"))).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth()&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(){var e=a.state,t=e.course,n=e.videoList,c=n.findIndex(function(e){return e.id==t.last_video_id});return a.setState({activeIndex:c}),n[c].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(d.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=window.location;"https:"!==e.protocol?(this.courseID=Object(b.b)("id"),this.courseID?(this.setState({courseId:this.courseID}),this.token=R.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()):this.props.history.replace("/")):e.replace("http"+e.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.c.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):i.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,c=this.state,i=c.videoList,o=c.activeIndex,r=c.isAuth,s=c.salePrice,l=c.course;return h.a.createElement("div",{className:"play"},h.a.createElement(f.a,{title:this.state.title,arrow:!0}),h.a.createElement(C.f,{isLoading:this.state.isLoading},h.a.createElement("div",{className:"video"},h.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t}},h.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!i[o].is_class&&h.a.createElement("div",{className:"purchase-box"},h.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),h.a.createElement("div",{className:"btns"},h.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",s," \u8d2d\u4e70\u8bfe\u7a0b"),h.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,i[o]),className:"purchase-episode"},"\xa5",i.length&&i[o].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&h.a.createElement("div",{className:"is-aist-box"},h.a.createElement("i",{className:"iconfont iconiconfront-21"}),h.a.createElement("p",{className:"time"},i[o].aist_start_time),h.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),h.a.createElement("div",{className:"tab"},h.a.createElement("div",null,h.a.createElement(v.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),h.a.createElement("div",null,h.a.createElement(v.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),h.a.createElement(D.a,{singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,videoId:this.state.singMess.id,title:this.state.singMess.course_tile})),h.a.createElement(y.d,null,h.a.createElement(y.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),h.a.createElement(y.b,{path:"".concat(a.path,"/video"),render:function(t){return h.a.createElement(N,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:i},t))}}),h.a.createElement(y.b,{path:"".concat(a.path,"/datum"),render:function(t){return h.a.createElement(O,Object.assign({},t,{datum:e.state.datum}))}})),h.a.createElement(y.b,{render:function(t){return e.state.vCourseId?h.a.createElement(_,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),h.a.createElement(W,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(p.Component);t.default=Object(g.b)(function(e){return{user:e.user}},null)(M)},629:function(e,t,a){},648:function(e,t,a){"use strict";var n=a(0),c=a.n(n);a(649);t.a=function(e){return c.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"cover"},e.status,c.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},649:function(e,t,a){},661:function(e,t,a){"use strict";a(44);var n=a(14),c=a.n(n),i=a(7),o=a(8),r=a(11),s=a(9),l=a(156),d=a(10),u=a(0),m=a.n(u),p=(a(629),a(4)),h=a(52),f=a(17),v=a(21),y=a(157),b=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(s.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){p.c.get("".concat(API.home,"/sys/createClassOrder/").concat(a.props.data.video_id)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.a.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():c.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.b)("id");p.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):c.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(p.b)("code");if(t){if(!Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):c.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(l.a)(a);Object(p.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):c.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){c.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.b)("id")};p.c.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):c.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.c.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):c.a.info(e.data.msg,2)})},a.getTime=function(e){p.c.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):c.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,c=Object(y.differenceInMinutes)(new Date(t),a)%60,i=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:i,min:c,sec:n})},1e3)}var n=this.props.singleType;return console.log(this.state.singleBox),m.a.createElement("div",null,m.a.createElement("div",{className:"popup-box"},1===n&&m.a.createElement("div",{className:"content singleset-payment"},m.a.createElement("div",{className:"price-box"},m.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),m.a.createElement("p",null,this.props.data.class_price,"\u5143")),m.a.createElement("div",{className:"course-info"},m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),m.a.createElement("div",{className:"payment-type"},m.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&m.a.createElement("p",{onClick:this.check.bind(this,"1")},m.a.createElement("i",{className:"iconfont iconalipay"}),m.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),m.a.createElement("p",{onClick:this.check.bind(this,"0")},m.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),m.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),m.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(b)},786:function(e,t,a){},787:function(e,t,a){},788:function(e,t,a){},792:function(e,t,a){},794:function(e,t){},862:function(e,t){}}]);
//# sourceMappingURL=video.a5562d60.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/video/recommendation/index.js","components/video/video-catalog/index.js","components/video/datum-catalog/index.js","components/video/index.js","common/v-list-base/index.js","components/detail/single/index.js"],"names":["Bottom","_ref","item","react_default","a","createElement","className","price1","price0","Recommendation","connect","state","num","list","courseId","getRecommendation","http","get","concat","API","home","_this","props","vCourseId","then","res","data","code","setState","Array","isArray","toast_default","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","this","_this2","length","map","Info","course_title","simpledescription","recommendation_Bottom","v_list_base","key","course_id","img","image_name","handleClick","PureComponent","VideoCatalog","i","selectVideo","videoCatalog","index","classnames","active","activeIndex","onClick","bind","name","duration","video_auth","practice","qid","react_router_dom","to","pathname","search","title","is_tested","Component","DatumCatalog","datum","accordion_default","Panel","header","dir_name","files","file_id","file_name","defaultProps","alert","modal_default","ProgressShareModal","isShow","learn_day_count","parseFloat","action_power","style","display","href","url","closeShareModal","Video","previousPlaybackRate","currentPlaybackRate","reconnect","videoList","currentVideoSrc","isAuth","course","salePrice","isLoading","isShowShareModal","shareData","singleBox","singMess","tobuy","getParam","errno","simple","toSingleset","boxHide","val","setupRecord","recordSocket","io","record","transports","forceNew","on","time","player","currentTime","recordTimer","setInterval","sendRecord","emit","recordUserInfo","uid","user","courseID","video_id","video_time","parseInt","plat","setupWS","ws","WebSocket","addEventListener","setTimeout","clearInterval","timer","e","JSON","parse","sendMessage","message","send","stringify","getShareProgressInfo","countSchedule","mtype","token","platform","sendWatchTime","sec","rate","_this$state","v_course_id","setupTimer","count","watchSec","paused","initializePlayer","window","HELP_IMPROVE_VIDEOJS","videojs","video","controls","preload","bigPlayButton","textTrackDisplay","posterImage","errorDisplay","playbackRates","controlBar","pictureInPictureToggle","playbackRate","sendLastRecord","post","hasAuth","setPlayerSrc","playVideo","getVideoList","is_aist","lessonAvailable","Promise","resolve","playWithAuth","getCoursePrice","text","onPress","src","type","play","_this$state2","videoIndex","findIndex","last_video_id","_this$state3","_this$state4","location","protocol","jsCookie","getDatumCatalog","replace","slice","dispose","close","_this3","match","_this$state5","HeaderBar","arrow","common","ref","el","activeClassName","single","videoId","course_tile","react_router","exact","from","path","render","video_video_catalog","Object","assign","video_datum_catalog","video_recommendation","VList","react__WEBPACK_IMPORTED_MODULE_0___default","status","alt","tab","Single","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","check","payType","toBuy","orderId","order_id","alipayPay","weixinPay","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","browser","isWeixin","encodeURIComponent","toLowerCase","localStorage","setItem","isweixinPay","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","weixin_code","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","Number","showSingleBox","nowPrice","now_price","laterPrice","three_day_later_price","document","attachEvent","payCallback","_this4","toBuyAll","zerobuyReceive","success","colse","zerogroupBuy","getOrderId","groupOrderId","getOrderStatus","getTime","pdd_order_id","endTime","end_time","toGroup","hour","min","nextProps","nextContext","_this5","date","now","Date","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","singleType","console","log","react__WEBPACK_IMPORTED_MODULE_8___default","class_price","compose","withRouter"],"mappings":"wRASMA,EAAS,SAAAC,GAAY,IAAVC,EAAUD,EAAVC,KACb,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,SAAhB,OAA0BJ,EAAKK,QAC/BJ,EAAAC,EAAAC,cAAA,QAAMC,UAAU,eAAhB,OAAgCJ,EAAKM,UA6ElCC,EAxEdC,2NAEGC,MAAQ,CACJC,IAAK,GACLC,KAAM,GACNC,SAAU,QAOdC,kBAAoB,WAChBC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,6BAAAF,OAAgDG,EAAKC,MAAMC,UAA3D,SAAAL,OAA4EG,EAAKV,MAAMC,MAClFY,KAAK,SAAAC,GACF,IAAMC,EAAOD,EAAIC,KACA,MAAdA,EAAKC,KAEJN,EAAKO,SAAS,CACVf,KAAMgB,MAAMC,QAAQJ,EAAKA,MAAQA,EAAKA,KAAO,KAIjDK,EAAA3B,EAAM4B,KAAKN,EAAKO,UAKhCC,eAAiB,SAACC,GAAO,IAAAC,EACSf,EAAKC,MADdc,EACbC,SADaD,EACHE,QAENC,KAAR,cAAArB,OAA2BiB,wFAtB/BK,KAAKzB,qDA0BA,IAAA0B,EAAAD,KACL,OACIA,KAAK7B,MAAME,KAAK6B,OAEhBvC,EAAAC,EAAAC,cAAA,OA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.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../../detail/actions';\nimport './recommendation.scss'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport VList from '@/common/v-list-base';\n\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass Recommendation extends PureComponent {\n state = {\n num: 10,\n list: [],\n courseId: null\n }\n\n componentDidMount() {\n this.getRecommendation()\n }\n\n getRecommendation = () => {\n http.get(`${API.home}/m/play/recommend_course/${this.props.vCourseId}?num=${this.state.num}`)\n .then(res => {\n const data = res.data\n if(data.code === 200){\n\n this.setState({\n list: Array.isArray(data.data) ? data.data : []\n })\n\n }else {\n Toast.info(data.msg)\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n return (\n this.state.list.length\n ?\n <div className='recommendation'>\n <div className={'title'}>相关推荐</div>\n <ul>\n {\n this.state.list.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title text-overflow-1'>{item.course_title}</p>\n <p className='des text-overflow-2'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n\n return (\n <VList\n key={item.course_id}\n img={item.image_name}\n handleClick={this.toCourseDetail}\n info={Info}\n id={item.course_id}\n />\n )\n })\n }\n </ul>\n </div>\n : null\n );\n }\n}\n\nexport default Recommendation;","import React, { Component } from 'react'\nimport './video-catalog.scss'\nimport { Link } from \"react-router-dom\";\nimport classnames from 'classnames'\n\n\nclass VideoCatalog extends Component {\n\n handleClick = (i) => {\n this.props.selectVideo(i)\n }\n\n render() {\n return (\n <div className='video-catalog'>\n <ul>\n {\n this.props.videoCatalog.map((item, index) => {\n return (\n <li key={item.id}\n className={classnames({active: this.props.activeIndex === index})}\n >\n <div className=\"video-title\" onClick={this.handleClick.bind(this, index)}>\n <span className=\"title\">{item.name}</span>\n <span className='duration'>{item.duration}</span>\n <i className={classnames(`iconfont`,\n [item.video_auth === 0\n ? 'iconiconfront-74'\n : 'iconplay_hovericon'],\n )}/>\n </div>\n {\n (item.practice && item.practice.qid)\n ? <Link to={{\n pathname: '/campTest',\n search: `?keshi_id=${item.id}&qid=${item.practice.qid}`\n }}>\n <div className=\"exercise\">\n 课后练习:{item.practice.title}\n <i className={classnames('iconfont',!item.video_auth ? 'iconiconfront-74' : item.practice.is_tested ? 'iconiconfront-3' : '')}/>\n </div>\n </Link>\n : null\n }\n </li>\n )\n })\n }\n </ul>\n </div>\n );\n }\n}\n\nexport default VideoCatalog;","import React, { Component } from 'react';\nimport './datum-catalog.scss'\nimport { Accordion } from \"antd-mobile\";\n\n\nclass DatumCatalog extends Component {\n\n static defaultProps = {\n datum: [{\n dir_name: '',\n files: [{\n file_name: '',\n file_id: 0\n }]\n }]\n }\n\n render() {\n const {datum} = this.props\n return (\n <div className='datum-catalog'>\n <p className='prompt'>课程资料请到PC端播放页下载</p>\n <Accordion>\n {\n datum && datum.length && datum.map((item, index) => {\n return (\n <Accordion.Panel header={item.dir_name} key={index}>\n {\n item.files.map(item => {\n return (\n <div key={item.file_id} className='file-name'>\n {item.file_name}\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n </div>\n );\n }\n}\n\nexport default DatumCatalog;","import React, {Component} from 'react'\nimport HeaderBar from '@/common/HeaderBar'\nimport './video.scss'\nimport {NavLink, Route, Redirect, Switch, Link} from 'react-router-dom'\nimport {http, getParam} from '@/utils'\nimport Recommendation from './recommendation'\nimport VideoCatalog from './video-catalog'\nimport DatumCatalog from './datum-catalog'\nimport {Toast} from 'antd-mobile'\nimport videojs from 'video.js'\nimport 'video.js/dist/video-js.min.css'\nimport {Modal} from \"antd-mobile\"\nimport {Loading} from '@/common'\nimport {connect} from \"react-redux\"\nimport jsCookie from 'js-cookie'\nimport io from 'socket.io-client'\nimport Single from \"@/components/detail/single\";\n\nlet alert = Modal.alert\n\nfunction ProgressShareModal(props) {\n return (\n props.isShow &&\n <div className='progress-share-modal-wrapper'>\n <div className=\"progress-share-modal\">\n <div className=\"title\">每日打卡</div>\n <ul className=\"progress-container\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"number\"><span className='num'>{props.data.learn_day_count}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"number\"><span className='num'>{parseFloat(props.data.action_power)}</span>%\n </div>\n </li>\n </ul>\n <div className=\"share-container\">\n <div className=\"title\">分享到</div>\n <ul>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconweixinzhifu'/></div>\n <div className='text'>微信好友</div>\n </a>\n </li>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconpengyouquaniconx'/></div>\n <div className='text'>朋友圈</div>\n </a>\n </li>\n </ul>\n </div>\n <i className=\"iconfont iconiconfront-2 close\" onClick={props.closeShareModal}/>\n </div>\n </div>\n )\n}\n\n\nclass Video extends Component {\n\n video //video element\n player //video player instance\n\n courseID\n\n ws //websocket instance\n timer\n token\n count\n watchSec\n previousPlaybackRate = 1\n currentPlaybackRate = 1\n reconnect = true\n\n recordSocket\n recordTimer\n\n\n state = {\n title: '',\n courseId: null,\n videoList: [],\n datum: [],\n currentVideoSrc: '',\n activeIndex: 0,\n isAuth: true,\n course: null,\n salePrice: null,\n vCourseId: null,\n isLoading: true,\n isShowShareModal: false,\n shareData: {},\n singleBox: false,\n singMess: '',\n }\n\n\n componentDidMount() {\n const location = window.location;\n if (location.protocol === 'https:') {\n location.replace('http' + location.href.slice(5))\n return\n }\n\n this.courseID = getParam('id')\n if (!this.courseID) {\n this.props.history.replace('/')\n return\n }\n this.setState({\n courseId: this.courseID\n })\n this.token = jsCookie.get('token')\n this.getVideoList()\n this.getDatumCatalog()\n this.setupRecord()\n }\n\n // 直接购买\n tobuy = () => {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${getParam('id')}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${getParam('id')}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 购买单集\n toSingleset = (item) => {\n this.setState({\n singleBox: true,\n singMess: item\n })\n }\n\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({singleBox: val})\n }\n\n\n setupRecord = () => {\n this.recordSocket = io(API.record, {\n transports: ['websocket'],\n forceNew: true\n })\n // this.recordSocket = io(API.record)\n this.recordSocket.on('seek', time => {\n this.player.currentTime(time)\n })\n\n this.recordTimer = setInterval(() => {\n this.sendRecord()\n }, 5000)\n }\n\n sendRecord = () => {\n if (this.recordSocket && this.player) {\n this.recordSocket.emit('addRecord', this.recordUserInfo())\n }\n }\n\n recordUserInfo = () => {\n let {uid} = this.props.user.data\n return {\n uid,\n course_id: this.courseID,\n video_id: this.state.videoList[this.state.activeIndex]['id'],\n video_time: parseInt(this.player.currentTime()),\n plat: 5\n }\n }\n\n setupWS = () => {\n this.ws = new WebSocket(API[\"process-api\"]);\n this.ws.addEventListener('error', () => {\n this.ws = null\n /*setTimeout(() => {\n this.setupWS();\n }, 1000)*/\n })\n this.ws.addEventListener('close', () => {\n if (this.reconnect) {\n this.ws = null\n setTimeout(() => {\n this.setupWS();\n }, 1000)\n }\n clearInterval(this.timer)\n })\n this.ws.addEventListener('message', e => {\n const data = JSON.parse(e.data);\n data.code == 4040 && (this.reconnect = false)\n })\n }\n\n sendMessage = message => {\n this.ws && this.ws.send(JSON.stringify(message))\n }\n\n //视频结束请求接口\n getShareProgressInfo = () => {\n http.get(`${API['base-api']}/m/aist/share_data/${this.courseID}/${this.state.videoList[this.state.activeIndex]['id']}`)\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({shareData: data.data, isShowShareModal: true})\n }\n })\n }\n\n //告诉服务端切换视频\n countSchedule = () => {\n this.sendMessage({\n mtype: 'count_schedule',\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 5\n })\n }\n\n sendWatchTime = (sec, rate) => {\n const {videoList, activeIndex, vCourseId} = this.state\n\n this.sendMessage({\n mtype: 'watch_time',\n rate,\n time: sec,\n video_id: videoList[activeIndex]['id'],\n course_id: this.courseID,\n v_course_id: vCourseId,\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 0\n })\n }\n\n setupTimer = () => {\n this.count = 0\n this.watchSec = 0\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n if (this.player && this.player.player()) {\n if (this.count === 5) {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.count = this.watchSec = 0\n } else {\n !this.player.paused() && this.watchSec++\n this.count++\n }\n }\n }, 1000)\n\n }\n\n initializePlayer = () => {\n window.HELP_IMPROVE_VIDEOJS = false;\n this.player = videojs(this.video, {\n controls: true,\n preload: 'auto',\n bigPlayButton: true,\n textTrackDisplay: false,\n posterImage: false,\n errorDisplay: false,\n playbackRates: ['0.75', '1', '1.5', '2'],\n controlBar: {\n pictureInPictureToggle: false\n }\n })\n this.player.on('ready', () => {\n this.recordSocket.emit('load', this.recordUserInfo())\n })\n this.player.on('ratechange', () => {\n this.currentPlaybackRate = this.player.playbackRate()\n this.sendWatchTime(this.watchSec, this.previousPlaybackRate)\n this.count = this.watchSec = 0\n this.previousPlaybackRate = this.currentPlaybackRate\n })\n this.player.on('ended', () => {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.getShareProgressInfo()\n clearInterval(this.timer)\n })\n this.player.on('seeked', () => {\n this.sendRecord()\n })\n }\n\n sendLastRecord = () => {\n http.post(`${API.home}/m/course/record_last_video`, {\n v_course_id: this.state.course['v_course_id'],\n video_id: this.state.videoList[this.state.activeIndex].id\n })\n }\n\n componentWillUnmount() {\n this.player && this.player.dispose()\n\n clearInterval(this.timer)\n this.ws && this.ws.close()\n this.ws = null\n\n clearInterval(this.recordTimer)\n this.recordSocket && this.recordSocket.close()\n this.recordSocket = null\n }\n\n selectVideo = index => {\n\n if (index === this.state.activeIndex) {\n return\n }\n\n this.countSchedule()\n\n this.setState({\n activeIndex: index\n },\n () => {\n if (this.hasAuth()) {\n this.setPlayerSrc(this.state.videoList[index]['play_url'])\n this.sendLastRecord()\n this.playVideo()\n }\n\n\n }\n )\n }\n\n\n getVideoList = () => {\n let url = ''\n\n if (getParam('video_id')) {\n url = `${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`\n } else {\n url = `${API.home}/m/course/play/${this.courseID}`\n }\n http.get(url)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState(\n state => ({\n videoList: data.data['lessons'],\n currentVideoSrc: data.data['lessons'][state.activeIndex]['play_url'],\n course: data.data.course,\n courseId: data.data.course['course_id'],\n vCourseId: data.data.course['v_course_id'],\n title: data.data.course['course_title'],\n isLoading: false\n }),\n () => {\n if (this.state.course.is_aist) {\n this.setupWS()\n this.setupTimer()\n }\n if (this.lessonAvailable()) {\n if (this.hasAuth()) {\n Promise.resolve().then(() => {\n this.initializePlayer()\n this.playWithAuth()\n })\n } else {\n this.getCoursePrice();\n }\n } else {\n alert('暂无视频', '', [{\n text: 'OK',\n onPress: () => {\n this.props.history.push('/')\n }\n }])\n }\n }\n )\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n setPlayerSrc = src => {\n if (!this.player) {\n this.initializePlayer()\n }\n this.player.src({\n src,\n type: 'application/x-mpegURL'\n })\n }\n\n playVideo = () => {\n this.player.play()\n }\n\n\n getDatumCatalog() {\n http.get(`${API.home}/m/course/data/${this.courseID}`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState({\n datum: data.data\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n lessonAvailable = () => {\n let {videoList, course} = this.state\n let videoIndex = videoList.findIndex(item => item.id == course.last_video_id)\n this.setState({\n activeIndex: videoIndex\n })\n return videoList[videoIndex]['video_size'] !== 0\n }\n\n getCoursePrice = () => {\n http.get(`${API.home}/sys/course/price/${getParam('id')}`)\n .then(res => {\n const {data} = res\n if (data.code === 200) {\n this.setState({\n salePrice: data.data['sale_price']\n })\n }\n })\n }\n\n playWithAuth = () => {\n const {videoList, activeIndex} = this.state\n\n if (this.hasAuth()) {\n this.setPlayerSrc(videoList[activeIndex]['play_url'])\n }\n }\n\n hasAuth = () => {\n const {course, videoList} = this.state\n\n let videoIndex = videoList.findIndex(item => item.id == course.last_video_id)\n this.setState({\n activeIndex: videoIndex\n })\n let lesson = videoList[videoIndex]\n\n if (lesson['video_auth']) {\n this.setState({\n isAuth: true\n })\n return true\n } else {\n this.setState({\n isAuth: false\n })\n return false\n\n }\n }\n\n\n render() {\n let {match, location} = this.props\n const {videoList, activeIndex, isAuth, salePrice, course} = this.state\n return (\n <div className='play'>\n <HeaderBar title={this.state.title} arrow={true}/>\n <Loading isLoading={this.state.isLoading}>\n <div className=\"video\">\n <video className={'video-js'} ref={el => this.video = el}>\n <source src={'/'} type='application/x-mpegURL'/>\n </video>\n {\n !isAuth && !!videoList[activeIndex]['is_class'] && (\n <div className=\"purchase-box\">\n <div className='hint'>您尚未购买该课时,请购买后学习。</div>\n <div className='btns'>\n <button type='button'\n onClick={this.tobuy}\n className='purchase-class'>¥{salePrice} 购买课程\n </button>\n <button type='button'\n onClick={this.toSingleset.bind(this, videoList[activeIndex])}\n className='purchase-episode'>¥{videoList.length && videoList[activeIndex]['class_price']} 购买单集\n </button>\n </div>\n </div>\n )\n }\n {\n !isAuth && !!course.is_aist && (\n <div className=\"is-aist-box\">\n <i className={'iconfont iconiconfront-21'}></i>\n <p className={'time'}>{videoList[activeIndex]['aist_start_time']}</p>\n <p className={'time'}>请耐心等待...</p>\n </div>\n )\n }\n </div>\n <div className='tab'>\n <div>\n <NavLink to={{pathname: `${match.url}/video`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >视频</NavLink>\n </div>\n <div>\n <NavLink to={{pathname: `${match.url}/datum`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >资料</NavLink>\n </div>\n </div>\n\n {/*单集购买*/}\n <Single singleBox={this.state.singleBox} boxHide={this.boxHide} data={this.state.singMess}\n videoId={this.state.singMess.id}\n title={this.state.singMess.course_tile}/>\n </Loading>\n <Switch>\n <Redirect exact from={'/play'} to={{\n pathname: '/play/video',\n search: location.search\n }}/>\n <Route path={`${match.path}/video`} render={props => {\n return <VideoCatalog\n activeIndex={this.state.activeIndex}\n selectVideo={this.selectVideo}\n videoCatalog={videoList}\n {...props}/>\n }}/>\n <Route path={`${match.path}/datum`} render={props => {\n return <DatumCatalog {...props} datum={this.state.datum}/>\n }}/>\n </Switch>\n <Route render={props => {\n return this.state.vCourseId ? <Recommendation {...props} vCourseId={this.state.vCourseId}/>\n : null\n }}/>\n <ProgressShareModal isShow={this.state.isShowShareModal}\n closeShareModal={() => this.setState({isShowShareModal: false})}\n data={this.state.shareData}\n />\n\n </div>\n );\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Video);","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","import React, { Component } from 'react'\nimport './index.scss'\nimport { getParam, http, browser } from \"@/utils\";\nimport { Toast } from 'antd-mobile';\nimport { Link, withRouter } from \"react-router-dom\";\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\nimport { differenceInHours, differenceInMinutes, differenceInSeconds } from \"date-fns\";\n\n\nclass Single extends Component {\n constructor(props) {\n super(props)\n this.state = {\n // status: 1,\n orderId: '',\n nowPrice: '',\n laterPrice: '',\n hour: '',\n min: '',\n sec: '',\n endTime: '',\n groupOrderId: '',\n payType: '0', // 1支付宝 0微信\n // singleBox: false,\n showSingleBox: false,\n }\n }\n\n componentDidMount() {\n // if (getParam('is_class') === 1 || getParam('weixinpay')) {\n // console.log(0);\n // this.payCallback()\n // }\n // if (browser.isWeixin) {\n // this.isweixinPay()\n // }\n }\n\n componentWillReceiveProps(nextProps, nextContext) {\n // console.log(nextProps);\n // this.setState({\n // singleBox: nextProps.singleBox\n // })\n }\n\n // 选择支付方式\n check = (type) => {\n this.setState({\n payType: type\n })\n }\n\n // 确定购买\n toBuy = () => {\n http.get(`${API.home}/sys/createClassOrder/${this.props.data.video_id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n orderId: res.data.data.order_id\n })\n this.state.payType === '1' ? this.alipayPay(res.data.data.order_id) : this.weixinPay(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (browser.isWeixin) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb&oid=\" + orderId).toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1&oid=\" + orderId).toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n const courseId = getParam('id');\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n courseId && window.localStorage.setItem('payCourse', courseId);\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code')\n if (weixin_code) {\n if (!getParam('oid')) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n const data = res.data.data;\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": data.appId, //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2,\n showSingleBox: true,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady)\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady()\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n if(!getParam('oid')) {\n return;\n }else{\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2,\n showSingleBox: true,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n }\n\n }\n\n\n // 特价购买全集\n toBuyAll = () => {\n\n }\n // 0元购买全集\n zerobuyReceive = () => {\n Toast.success('购买全集成功', 3)\n this.colse()\n }\n // 0元参团\n zerogroupBuy = () => {\n this.getOrderId()\n }\n\n // 获取订单号-0元参团\n getOrderId = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API['base-api']}/pdd/sys`, data).then((res) => {\n if (res.data.errno === 0) {\n this.setState({\n groupOrderId: res.data.data.order_id\n })\n this.getOrderStatus(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取订单状态-0元参团\n getOrderStatus = (id) => {\n http.get(`${API.home}/m/pdd/order_status/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.getTime(res.data.data.pdd_order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 获取倒计时-0元参团\n getTime = (id) => {\n http.get(`${API.home}/m/pdd_order_end_time/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n endTime: res.data.data.end_time,\n status: 7\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 邀请好友参团\n toGroup = () => {\n this.props.history.push(`/togroup?id=${this.state.groupOrderId}`)\n }\n\n // 关闭弹窗\n colse = () => {\n this.props.boxHide(false);\n this.setState({\n status: 1\n })\n }\n\n render() {\n const { showSingleBox } = this.state;\n if (this.state.endTime) {\n let date = this.state.endTime * 1000\n let now = Date.now()\n setInterval(() => {\n date -= 1000\n let s = differenceInSeconds(new Date(date), now) % 60,\n m = differenceInMinutes(new Date(date), now) % 60,\n h = differenceInHours(new Date(date), now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n })\n }, 1000)\n }\n const { singleType } = this.props;\n console.log(this.state.singleBox);\n return (\n <div>\n \n \n <div className='popup-box'>\n {\n singleType === 1 &&\n <div className='content singleset-payment'>\n <div className='price-box'>\n <span>实付款:</span>\n <p>{this.props.data.class_price}元</p>\n </div>\n <div className='course-info'>\n <p className='text-overflow-1'><span>课程:</span>\n {this.props.title}\n </p>\n <p className='text-overflow-1'><span>课时:</span>\n {this.props.data.name}\n </p>\n </div>\n <div className='payment-type'>\n <label>支付方式:</label>\n {\n !browser.isWeixin &&\n <p onClick={this.check.bind(this, '1')}>\n <i className='iconfont iconalipay'></i>\n <span>支付宝</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '1' ? 'redioed' : ''}`}></i>\n </p>\n }\n\n <p onClick={this.check.bind(this, '0')}>\n <i className='iconfont iconweixinzhifu buy'></i>\n <span>微信支付</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '0' ? 'redioed' : ''}`}></i>\n </p>\n </div>\n <div className='btn btn-18B4ED' onClick={this.toBuy}>确认购买</div>\n </div>\n }\n \n \n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n \n </div>\n\n );\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(Single)\n"],"sourceRoot":""}
\ No newline at end of file
......@@ -135,31 +135,42 @@ class BargainMiddlePage extends Component {
})
}
// 加入购物车
// 直接支付
toCart = () => {
let data = {
course_id: getParam('id')
}
http.post(`${API.home}/m/cart/add`, data).then((res) => {
if (res.data.code === 200 || res.data.code === 15001) {
this.props.history.push('/shopcart')
http.get(`${API['base-api']}/m/cart/addtopreorder/[${getParam('id')}]`).then((res) => {
if (res.data.errno === 0) {
this.props.history.push(`/order?id=[${getParam('id')}]`, {bargain: 1});
} else {
Toast.info(res.data.msg, 2);
}
})
// let data = {
// course_id: getParam('id')
// }
// http.post(`${API.home}/m/cart/add`, data).then((res) => {
// if (res.data.code === 200 || res.data.code === 15001) {
// this.props.history.push('/shopcart')
// } else {
// Toast.info(res.data.msg, 2);
// }
// })
}
// 我要砍价列表的去支付
toCartBottom=(id)=>{
let data = {
course_id: id
}
http.post(`${API.home}/m/cart/add`, data).then((res) => {
if (res.data.code === 200 || res.data.code === 15001) {
this.props.history.push('/shopcart')
http.get(`${API['base-api']}/m/cart/addtopreorder/[${id}]`).then((res) => {
if (res.data.errno === 0) {
this.props.history.push(`/order?id=[${getParam('id')}]`, {bargain: 1});
} else {
Toast.info(res.data.msg, 2);
}
})
// http.post(`${API.home}/m/cart/add`, data).then((res) => {
// if (res.data.code === 200 || res.data.code === 15001) {
// this.props.history.push('/shopcart')
// } else {
// Toast.info(res.data.msg, 2);
// }
// })
}
// 查看更多
......@@ -565,7 +576,7 @@ function CourseBottom(props) {
}
<button onClick={props.toCartBottom}
<button onClick={() => props.toCartBottom(props.item.course_id)}
className={'purchase-btn'}>¥{props.item.pay_price}去支付
</button>
</div>
......
......@@ -29,10 +29,7 @@ class Bargain extends Component {
}
componentDidMount() {
const { user= {} } = this.props;
if(user.data && user.data.uid) {
this.getBargainInfo();
}
this.getBargainInfo();
}
// 获取助理好友
......@@ -184,7 +181,6 @@ class Bargain extends Component {
render() {
const { list, outList, barInfo } = this.state;
console.log(barInfo)
const {user} = this.props
const uid = user && user.data && user.data.uid
return (
......@@ -260,7 +256,7 @@ function BargainIntro(props) {
<Flex direction={'column'} justify={'center'} className={'intro-wrapper'}>
<p>
邀请
<span className={'indicator'}>{props.limit_people}</span>
<span className={'indicator'}>{props.limitPeople}</span>
好友帮忙砍价可获得
<span className={'indicator'}>【砍价神器】</span>
</p>
......
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