Commit c50d68f9 by zhanghaozhe

优惠券

parents 0a6a0c05 ed228052
......@@ -44,9 +44,9 @@
"aist-share.css": "/mrstatic/css/aist-share.bef8c404.chunk.css",
"aist-share.js": "/mrstatic/js/aist-share.06124eb0.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.06124eb0.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.de0ae9dc.chunk.css",
"coupons.js": "/mrstatic/js/coupons.2714119c.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.2714119c.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.2fcc3e06.chunk.css",
"coupons.js": "/mrstatic/js/coupons.d09938c6.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.d09938c6.chunk.js.map",
"detail.css": "/mrstatic/css/detail.8d310f0f.chunk.css",
"detail.js": "/mrstatic/js/detail.ae537d63.chunk.js",
"detail.js.map": "/mrstatic/js/detail.ae537d63.chunk.js.map",
......@@ -56,20 +56,20 @@
"myorders.css": "/mrstatic/css/myorders.3ae12dec.chunk.css",
"myorders.js": "/mrstatic/js/myorders.f6f913f7.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.f6f913f7.chunk.js.map",
"purchased.css": "/mrstatic/css/purchased.1daf107b.chunk.css",
"purchased.js": "/mrstatic/js/purchased.cf5de182.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.cf5de182.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.547d00bb.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.547d00bb.js.map",
"purchased.css": "/mrstatic/css/purchased.dd7556e0.chunk.css",
"purchased.js": "/mrstatic/js/purchased.110a3857.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.110a3857.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.e5c1da46.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.e5c1da46.js.map",
"search.css": "/mrstatic/css/search.fab97849.chunk.css",
"search.js": "/mrstatic/js/search.88253151.chunk.js",
"search.js.map": "/mrstatic/js/search.88253151.chunk.js.map",
"shareposter.css": "/mrstatic/css/shareposter.f09a5959.chunk.css",
"shareposter.js": "/mrstatic/js/shareposter.5c768323.chunk.js",
"shareposter.js.map": "/mrstatic/js/shareposter.5c768323.chunk.js.map",
"study.css": "/mrstatic/css/study.5e9927d1.chunk.css",
"study.js": "/mrstatic/js/study.d1ad4d4e.chunk.js",
"study.js.map": "/mrstatic/js/study.d1ad4d4e.chunk.js.map",
"study.css": "/mrstatic/css/study.b002c899.chunk.css",
"study.js": "/mrstatic/js/study.28abc0dc.chunk.js",
"study.js.map": "/mrstatic/js/study.28abc0dc.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.49988cae.chunk.css",
"togroup.js": "/mrstatic/js/togroup.15c19595.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.15c19595.chunk.js.map",
......@@ -116,20 +116,20 @@
"mrstatic/css/ShareCourse.278ad3b1.chunk.css.map": "/mrstatic/css/ShareCourse.278ad3b1.chunk.css.map",
"mrstatic/css/ShopCart.3a4dbb7a.chunk.css.map": "/mrstatic/css/ShopCart.3a4dbb7a.chunk.css.map",
"mrstatic/css/aist-share.bef8c404.chunk.css.map": "/mrstatic/css/aist-share.bef8c404.chunk.css.map",
"mrstatic/css/coupons.de0ae9dc.chunk.css.map": "/mrstatic/css/coupons.de0ae9dc.chunk.css.map",
"mrstatic/css/coupons.2fcc3e06.chunk.css.map": "/mrstatic/css/coupons.2fcc3e06.chunk.css.map",
"mrstatic/css/detail.8d310f0f.chunk.css.map": "/mrstatic/css/detail.8d310f0f.chunk.css.map",
"mrstatic/css/main.9977dcb1.chunk.css.map": "/mrstatic/css/main.9977dcb1.chunk.css.map",
"mrstatic/css/myorders.3ae12dec.chunk.css.map": "/mrstatic/css/myorders.3ae12dec.chunk.css.map",
"mrstatic/css/purchased.1daf107b.chunk.css.map": "/mrstatic/css/purchased.1daf107b.chunk.css.map",
"mrstatic/css/purchased.dd7556e0.chunk.css.map": "/mrstatic/css/purchased.dd7556e0.chunk.css.map",
"mrstatic/css/search.fab97849.chunk.css.map": "/mrstatic/css/search.fab97849.chunk.css.map",
"mrstatic/css/shareposter.f09a5959.chunk.css.map": "/mrstatic/css/shareposter.f09a5959.chunk.css.map",
"mrstatic/css/study.5e9927d1.chunk.css.map": "/mrstatic/css/study.5e9927d1.chunk.css.map",
"mrstatic/css/study.b002c899.chunk.css.map": "/mrstatic/css/study.b002c899.chunk.css.map",
"mrstatic/css/togroup.49988cae.chunk.css.map": "/mrstatic/css/togroup.49988cae.chunk.css.map",
"mrstatic/css/video.b57a1aec.chunk.css.map": "/mrstatic/css/video.b57a1aec.chunk.css.map",
"mrstatic/media/index.scss": "/mrstatic/media/redb_sp_bj@2x.6902434f.png",
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.32760ab34af0d95fd73a11296720ef2c.js": "/precache-manifest.32760ab34af0d95fd73a11296720ef2c.js",
"precache-manifest.c625d1ace6fbda0510660619dd24ac58.js": "/precache-manifest.c625d1ace6fbda0510660619dd24ac58.js",
"service-worker.js": "/service-worker.js"
}
\ 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="/mrstatic/css/27.aebbab68.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.9977dcb1.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/api.js"></script><script>!function(f){function e(e){for(var r,t,n=e[0],a=e[1],o=e[2],c=0,d=[];c<n.length;c++)t=n[c],l[t]&&d.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(f[r]=a[r]);for(h&&h(e);d.length;)d.shift()();return u.push.apply(u,o||[]),i()}function i(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(u.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},s={21:0},l={21:0},u=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(u){var e=[];s[u]?e.push(s[u]):0!==s[u]&&{1:1,2:1,3:1,4:1,5:1,6:1,8:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,19:1,20:1,22:1,23:1,24:1,25:1,26:1,29:1,30:1,31:1,32:1,33:1}[u]&&e.push(s[u]=new Promise(function(e,n){for(var r="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[u]||u)+"."+{0:"31d6cfe0",1:"41f52958",2:"f2f19957",3:"16a64650",4:"85889ffd",5:"2e7d81ca",6:"f2cc3163",7:"31d6cfe0",8:"8bb031ea",9:"31d6cfe0",10:"e5315535",11:"cda7a495",12:"2649d43f",13:"278ad3b1",14:"3a4dbb7a",15:"bef8c404",16:"de0ae9dc",17:"8d310f0f",19:"3ae12dec",20:"1daf107b",22:"fab97849",23:"f09a5959",24:"5e9927d1",25:"49988cae",26:"b57a1aec",28:"31d6cfe0",29:"4c706a4e",30:"2471f477",31:"0bb224f2",32:"5ed15c7e",33:"ecbb6f9a"}[u]+".chunk.css",a=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(f=t[o]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(c===r||c===a))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var f;if((c=(f=d[o]).getAttribute("data-href"))===r||c===a)return e()}var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onload=e,i.onerror=function(e){var r=e&&e.target&&e.target.src||a,t=new Error("Loading CSS chunk "+u+" failed.\n("+r+")");t.request=r,delete s[u],i.parentNode.removeChild(i),n(t)},i.href=a,document.getElementsByTagName("head")[0].appendChild(i)}).then(function(){s[u]=0}));var t=l[u];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[u]=[e,r]});e.push(t[2]=r);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[u]||u)+"."+{0:"837f6eaa",1:"0f59b9f9",2:"e26d4c3e",3:"d4453df8",4:"2a80c718",5:"ed55ff6d",6:"8ba14c3b",7:"3db14bda",8:"273ad8e6",9:"5e894d30",10:"f6809d1e",11:"cfe7dec3",12:"ff3e0918",13:"4e250fd0",14:"d16852d2",15:"06124eb0",16:"2714119c",17:"ae537d63",19:"f6f913f7",20:"cf5de182",22:"88253151",23:"5c768323",24:"d1ad4d4e",25:"15c19595",26:"14489c33",28:"38b8929e",29:"f6bdb1c6",30:"c3350b38",31:"bcc7f0a8",32:"03c1e107",33:"acfc20b9"}[u]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[u];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+u+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[u]=void 0}};var c=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},p.m=f,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)p.d(t,n,function(e){return r[e]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var a=0;a<r.length;a++)e(r[a]);var h=n;i()}([])</script><script src="/mrstatic/js/27.4e2ae400.chunk.js"></script><script src="/mrstatic/js/main.bf55b069.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="/mrstatic/css/27.aebbab68.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.9977dcb1.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/api.js"></script><script>!function(f){function e(e){for(var r,t,n=e[0],a=e[1],o=e[2],c=0,d=[];c<n.length;c++)t=n[c],l[t]&&d.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(f[r]=a[r]);for(h&&h(e);d.length;)d.shift()();return u.push.apply(u,o||[]),i()}function i(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(u.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},s={21:0},l={21:0},u=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(u){var e=[];s[u]?e.push(s[u]):0!==s[u]&&{1:1,2:1,3:1,4:1,5:1,6:1,8:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,19:1,20:1,22:1,23:1,24:1,25:1,26:1,29:1,30:1,31:1,32:1,33:1}[u]&&e.push(s[u]=new Promise(function(e,n){for(var r="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[u]||u)+"."+{0:"31d6cfe0",1:"41f52958",2:"f2f19957",3:"16a64650",4:"85889ffd",5:"2e7d81ca",6:"f2cc3163",7:"31d6cfe0",8:"8bb031ea",9:"31d6cfe0",10:"e5315535",11:"cda7a495",12:"2649d43f",13:"278ad3b1",14:"3a4dbb7a",15:"bef8c404",16:"2fcc3e06",17:"8d310f0f",19:"3ae12dec",20:"dd7556e0",22:"fab97849",23:"f09a5959",24:"b002c899",25:"49988cae",26:"b57a1aec",28:"31d6cfe0",29:"4c706a4e",30:"2471f477",31:"0bb224f2",32:"5ed15c7e",33:"ecbb6f9a"}[u]+".chunk.css",a=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(f=t[o]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(c===r||c===a))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var f;if((c=(f=d[o]).getAttribute("data-href"))===r||c===a)return e()}var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onload=e,i.onerror=function(e){var r=e&&e.target&&e.target.src||a,t=new Error("Loading CSS chunk "+u+" failed.\n("+r+")");t.request=r,delete s[u],i.parentNode.removeChild(i),n(t)},i.href=a,document.getElementsByTagName("head")[0].appendChild(i)}).then(function(){s[u]=0}));var t=l[u];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[u]=[e,r]});e.push(t[2]=r);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[u]||u)+"."+{0:"837f6eaa",1:"0f59b9f9",2:"e26d4c3e",3:"d4453df8",4:"2a80c718",5:"ed55ff6d",6:"8ba14c3b",7:"3db14bda",8:"273ad8e6",9:"5e894d30",10:"f6809d1e",11:"cfe7dec3",12:"ff3e0918",13:"4e250fd0",14:"d16852d2",15:"06124eb0",16:"d09938c6",17:"ae537d63",19:"f6f913f7",20:"110a3857",22:"88253151",23:"5c768323",24:"28abc0dc",25:"15c19595",26:"14489c33",28:"38b8929e",29:"f6bdb1c6",30:"c3350b38",31:"bcc7f0a8",32:"03c1e107",33:"acfc20b9"}[u]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[u];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+u+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[u]=void 0}};var c=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},p.m=f,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)p.d(t,n,function(e){return r[e]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var a=0;a<r.length;a++)e(r[a]);var h=n;i()}([])</script><script src="/mrstatic/js/27.4e2ae400.chunk.js"></script><script src="/mrstatic/js/main.bf55b069.chunk.js"></script></body></html>
\ No newline at end of file
.use-coupon{display:flex;flex-flow:column;height:100%;background-color:#f5f5f5}.use-coupon .coupons-area{padding:19.2vw 3.2vw 0;background:#f5f5f5;flex:1 1 auto}.use-coupon .coupons-area .empty{min-height:56.266667vw;line-height:56.266667vw;font-size:3.2vw;color:#666;text-align:center}.use-coupon .coupons-area .invalid-title{text-align:center;font-size:3.2vw;line-height:13.866667vw;color:#999}.use-coupon .free-coupon-box{position:fixed;width:100%;top:0;left:0;right:0;bottom:0;text-align:center;background:rgba(0,0,0,.6);z-index:11}.use-coupon .free-coupon-box .free-coupon-content{width:77.333333vw;border-radius:2.666667vw;background-color:#fff;padding:5.333333vw;margin:40vw auto 0}.use-coupon .free-coupon-box .free-coupon-content .coures-content-success{height:8vw;line-height:8vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-success i{font-size:9.066667vw;color:#09f}.use-coupon .free-coupon-box .free-coupon-content .coures-content-title{font-size:4vw;color:#333;margin-top:2.666667vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-img{width:40vw;height:28.8vw;border-radius:.8vw;margin-top:5.333333vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-tip{color:#ff3131;font-size:3.2vw;margin-top:5.333333vw;text-align:left;line-height:4vw;height:8vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-tip i{display:inline-block;color:#ff3131;font-size:4.8vw;position:relative;top:1.6vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-tip span{display:inline-block;margin-left:5.333333vw;position:relative;top:-4vw}.use-coupon .free-coupon-box .free-coupon-content .toStudy{display:inline-block;width:36.8vw;height:8vw;line-height:8vw;background-color:#09f;border-radius:4vw;margin-top:5.333333vw;font-size:4vw;color:#fff}.use-coupon .free-coupon-box .free-coupon-close{margin-top:8vw}.use-coupon .free-coupon-box .free-coupon-close i{font-size:6.933333vw;color:#fff}.exchange-bar{display:flex;justify-content:space-between;width:100%;padding:2.666667vw 3.2vw;position:absolute;top:25.6vw;left:0;z-index:10;background:#fff}.exchange-bar button{display:inline-block;width:17.066667vw;height:8.8vw;line-height:8.8vw;font-size:3.733333vw;color:#fff;background-color:#ccc;border:none;-webkit-appearance:none;border-radius:.8vw}.exchange-bar button.active{background-color:#09f}.custom-input-wrapper{position:relative}.custom-input-wrapper .custom-input{width:73.866667vw;height:8.8vw;padding-left:2.666667vw;border:1px solid #ddd;border-radius:.8vw;font-size:3.2vw;-webkit-appearance:none}.custom-input-wrapper .custom-input::-webkit-input-placeholder{color:#999}.custom-input-wrapper .custom-input--active{border-color:#09f}.custom-input-wrapper .iconfont{position:absolute;right:2.666667vw;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:3.733333vw;color:#ccc}.custom-input-wrapper .hide{display:none}.coupon{margin-bottom:4vw;box-shadow:0 .533333vw 3.2vw -2.133333vw}.coupon,.coupon .coupon-info{position:relative;border-radius:.8vw}.coupon .coupon-info{height:25.333333vw;padding:2.666667vw 4vw;color:#fff}.coupon .coupon-info .type{font-size:3.733333vw}.coupon .coupon-info .denomination{font-size:6.933333vw;line-height:6.933333vw;text-align:center}.coupon .coupon-info .denomination span{font-size:3.2vw}.coupon .coupon-info .course-title{width:68.37%;margin:0 auto 1.066667vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:4.266667vw}.coupon .coupon-info .expire{text-align:center;font-size:3.2vw;line-height:4.266667vw}.coupon .coupon-info.coupon-type1{background:#fe6161}.coupon .coupon-info.coupon-type2{background:#e0b97b}.coupon .coupon-info.invalid{background:#999}.coupon .coupon-info>.iconfont{position:absolute;top:50%;right:5.333333vw;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:5.866667vw;height:5.866667vw;display:none}.coupon .coupon-info .check{display:block}.coupon .coupon-info ul{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-around}.coupon .coupon-info ul li{width:2.666667vw;height:2.666667vw;border-radius:50%;background:#fff;-webkit-transform:translateY(50%);transform:translateY(50%)}.coupon .coupon-des{padding:2.666667vw 4vw;background:#fff;display:flex;justify-content:space-between;align-items:center;border-radius:0 0 .8vw .8vw}.coupon .coupon-des .limit{width:63.81%;font-size:3.2vw;vertical-align:middle;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.coupon .coupon-des .use{display:inline-block;padding:.8vw 2.133333vw;font-size:3.2vw;color:#f31;border:1px solid #f31;border-radius:2.666667vw;background:transparent;-webkit-appearance:none}.my-patch{background-color:#f5f5f5}.my-patch .couponAmount{padding:1.333333vw 3.2vw 0;font-size:3.733333vw;color:#555;margin-bottom:4vw}.my-patch .couponAmount span{color:#ff4000}.my-patch .coupons{padding:0 3.2vw}.my-patch .coupons .items-box{margin-bottom:2.666667vw}.my-patch .coupons .items-box .coupon-info{position:relative;background-color:#999;height:25.333333vw;color:#fff;border-radius:.8vw;padding:2.666667vw 4vw 0}.my-patch .coupons .items-box .coupon-info .type{font-size:3.733333vw}.my-patch .coupons .items-box .coupon-info .amount{width:100%;text-align:center;font-size:3.2vw}.my-patch .coupons .items-box .coupon-info .amount span{font-size:6.933333vw;margin-right:1.333333vw}.my-patch .coupons .items-box .coupon-info ul{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-around}.my-patch .coupons .items-box .coupon-info ul li{width:2.666667vw;height:2.666667vw;border-radius:50%;background:#fff;-webkit-transform:translateY(50%);transform:translateY(50%)}.my-patch .coupons .items-box .coupon-des{border-radius:.8vw;background-color:#fff;height:8.8vw;line-height:8.8vw;color:#999;font-size:3.2vw;padding-left:4vw}.my-patch .coupons .active{background-color:#fe6161!important}.my-patch .coupons .checkout{width:5.866667vw;height:5.866667vw;position:absolute;right:4vw;top:9.866667vw;font-size:7.466667vw;line-height:5.866667vw}.my-patch .coupons .icondanseshixintubiao-5{right:4.8vw}.my-patch .coupons .nochecked{background:hsla(0,0%,100%,.2);border:1px solid #fff;border-radius:50%}.my-patch .patch-desc{padding:0 3.2vw 5.333333vw;margin-top:8vw}.my-patch .patch-desc .title{height:4vw;line-height:4vw;font-size:3.733333vw;margin-bottom:2.666667vw;color:#555;text-align:center}.my-patch .patch-desc .title span{display:inline-block;margin-left:4vw;margin-right:4vw}.my-patch .patch-desc .title i{display:inline-block;width:8vw;height:1px;background-color:#ccc;position:relative;top:-1.333333vw}.my-patch .patch-desc .desc-item{font-size:3.2vw;color:#777;line-height:4.8vw}.my-patch .compound{width:100%;height:10.666667vw;border:none;border-radius:5.333333vw;outline:none;font-size:4.266667vw;color:#fff}.my-patch .disable-active{background-color:#09f}.my-patch .disable{background-color:#999}.my-patch .success{width:26.666667vw;height:8vw;background:rgba(0,0,0,.7);font-size:3.733333vw;border-radius:4vw;text-align:center;line-height:8vw;color:#fff;position:fixed;top:50%;left:50%;margin-top:-4vw;margin-left:-13.333333vw}.compound-button--compose{padding:0 3.2vw}.compound-button--compose .compound{margin-top:2.666667vw}.coupons-box,.coupons-box #coupons{height:100%}.coupons-box #coupons .tab{width:100%;height:11.733333vw;line-height:11.733333vw;background-color:#fff;display:flex;justify-content:space-around;font-size:3.733333vw;color:#555}.coupons-box #coupons .tab a{display:inline-block;height:100%}.coupons-box #coupons .btm-border{background-color:#f5f5f5;width:100%;height:2.133333vw}.coupons-box #coupons .tab-active{color:#09f;border-bottom:1px solid #09f}.coupons-box #coupons .coupons-container{height:100%}
/*# sourceMappingURL=coupons.2fcc3e06.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/myCoupons/index.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/RedeemBar/exchange-bar.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/Input/input.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/Coupon/coupon.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/myPatch/index.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/coupons.scss"],"names":[],"mappings":"AAmGA,YACE,YAAA,CACA,gBAAA,CACA,WAAA,CACA,wBAAyB,CAJ3B,0BAOI,sBAAA,CACA,kBAAA,CACA,aAAc,CATlB,iCAYM,sBAAA,CACA,uBAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAkB,CAhBxB,yCAoBM,iBAAA,CACA,eAAA,CACA,uBAAA,CACA,UA9GU,CAuFhB,6BA4BI,cAAA,CACA,UAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,QAAA,CACA,iBAAA,CACA,yBAAA,CACA,UAAW,CApCf,kDAuCM,iBAAA,CACA,wBAAA,CACA,qBAAA,CACA,kBAAA,CACA,kBAA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,wBAAA,CACA,UAAA,CACA,iBAAW,CAxBjB,kCA4BM,UAAA,CACA,4BAA6B,CA7BnC,yCAgCM,WAAY","file":"coupons.2fcc3e06.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.use-coupon {\n display: flex;\n flex-flow: column;\n height: 100%;\n background-color: #f5f5f5; }\n .use-coupon .coupons-area {\n padding: 72px 12px 0px;\n background: #f5f5f5;\n flex: 1 1 auto; }\n .use-coupon .coupons-area .empty {\n min-height: 211px;\n line-height: 211px;\n font-size: 12px;\n color: #666;\n text-align: center; }\n .use-coupon .coupons-area .invalid-title {\n text-align: center;\n font-size: 12px;\n line-height: 52px;\n color: #999; }\n .use-coupon .free-coupon-box {\n position: fixed;\n width: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n text-align: center;\n background: rgba(0, 0, 0, 0.6);\n z-index: 11; }\n .use-coupon .free-coupon-box .free-coupon-content {\n width: 290px;\n border-radius: 10px;\n background-color: #fff;\n padding: 20px;\n margin: 150px auto 0 auto; }\n .use-coupon .free-coupon-box .free-coupon-content .coures-content-success {\n height: 30px;\n line-height: 30px; }\n .use-coupon .free-coupon-box .free-coupon-content .coures-content-success i {\n font-size: 34px;\n color: #09f; }\n .use-coupon .free-coupon-box .free-coupon-content .coures-content-title {\n font-size: 15px;\n color: #333;\n margin-top: 10px; }\n .use-coupon .free-coupon-box .free-coupon-content .coures-content-img {\n width: 150px;\n height: 108px;\n border-radius: 3px;\n margin-top: 20px; }\n .use-coupon .free-coupon-box .free-coupon-content .coures-content-tip {\n color: #FF3131;\n font-size: 12px;\n margin-top: 20px;\n text-align: left;\n line-height: 15px;\n height: 30px; }\n .use-coupon .free-coupon-box .free-coupon-content .coures-content-tip i {\n display: inline-block;\n color: #FF3131;\n font-size: 18px;\n position: relative;\n top: 6px; }\n .use-coupon .free-coupon-box .free-coupon-content .coures-content-tip span {\n display: inline-block;\n margin-left: 20px;\n position: relative;\n top: -15px; }\n .use-coupon .free-coupon-box .free-coupon-content .toStudy {\n display: inline-block;\n width: 138px;\n height: 30px;\n line-height: 30px;\n background-color: #09f;\n border-radius: 15px;\n margin-top: 20px;\n font-size: 15px;\n color: #fff; }\n .use-coupon .free-coupon-box .free-coupon-close {\n margin-top: 30px; }\n .use-coupon .free-coupon-box .free-coupon-close i {\n font-size: 26px;\n color: #fff; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.exchange-bar {\n display: flex;\n justify-content: space-between;\n width: 100%;\n padding: 10px 12px;\n position: absolute;\n top: 96px;\n left: 0;\n z-index: 10;\n background: #fff; }\n .exchange-bar button {\n display: inline-block;\n width: 64px;\n height: 33px;\n line-height: 33px;\n font-size: 14px;\n color: #fff;\n background-color: #ccc;\n border: none;\n -webkit-appearance: none;\n border-radius: 3px; }\n .exchange-bar button.active {\n background-color: #09f; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.custom-input-wrapper {\n position: relative; }\n .custom-input-wrapper .custom-input {\n width: 277px;\n height: 33px;\n padding-left: 10px;\n border: 1px solid #ddd;\n border-radius: 3px;\n font-size: 12px;\n -webkit-appearance: none; }\n .custom-input-wrapper .custom-input::-webkit-input-placeholder {\n color: #999; }\n .custom-input-wrapper .custom-input--active {\n border-color: #09f; }\n .custom-input-wrapper .iconfont {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 14px;\n color: #ccc; }\n .custom-input-wrapper .hide {\n display: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.coupon {\n position: relative;\n margin-bottom: 15px;\n box-shadow: 0px 2px 12px -8px;\n border-radius: 3px; }\n .coupon .coupon-info {\n position: relative;\n height: 95px;\n padding: 10px 15px;\n color: #fff;\n border-radius: 3px; }\n .coupon .coupon-info .type {\n font-size: 14px; }\n .coupon .coupon-info .denomination {\n font-size: 26px;\n line-height: 26px;\n text-align: center; }\n .coupon .coupon-info .denomination span {\n font-size: 12px; }\n .coupon .coupon-info .course-title {\n width: 68.37%;\n margin: 0 auto 4px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 16px; }\n .coupon .coupon-info .expire {\n text-align: center;\n font-size: 12px;\n line-height: 16px; }\n .coupon .coupon-info.coupon-type1 {\n background: #FE6161; }\n .coupon .coupon-info.coupon-type2 {\n background: #E0B97B; }\n .coupon .coupon-info.invalid {\n background: #999; }\n .coupon .coupon-info > .iconfont {\n position: absolute;\n top: 50%;\n right: 20px;\n transform: translateY(-50%);\n width: 22px;\n height: 22px;\n display: none; }\n .coupon .coupon-info .check {\n display: block; }\n .coupon .coupon-info ul {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n display: flex;\n justify-content: space-around; }\n .coupon .coupon-info ul li {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #fff;\n transform: translateY(50%); }\n .coupon .coupon-des {\n padding: 10px 15px;\n background: #fff;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-radius: 0 0 3px 3px; }\n .coupon .coupon-des .limit {\n width: 63.81%;\n font-size: 12px;\n vertical-align: middle;\n color: #666;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n .coupon .coupon-des .use {\n display: inline-block;\n padding: 3px 8px;\n font-size: 12px;\n color: #f31;\n border: 1px solid #f31;\n border-radius: 10px;\n background: transparent;\n -webkit-appearance: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.my-patch {\n background-color: #f5f5f5; }\n .my-patch .couponAmount {\n padding: 5px 12px 0 12px;\n font-size: 14px;\n color: #555;\n margin-bottom: 15px; }\n .my-patch .couponAmount span {\n color: #FF4000; }\n .my-patch .coupons {\n padding: 0 12px; }\n .my-patch .coupons .items-box {\n margin-bottom: 10px; }\n .my-patch .coupons .items-box .coupon-info {\n position: relative;\n background-color: #999;\n height: 95px;\n color: #fff;\n border-radius: 3px;\n padding: 10px 15px 0 15px; }\n .my-patch .coupons .items-box .coupon-info .type {\n font-size: 14px; }\n .my-patch .coupons .items-box .coupon-info .amount {\n width: 100%;\n text-align: center;\n font-size: 12px; }\n .my-patch .coupons .items-box .coupon-info .amount span {\n font-size: 26px;\n margin-right: 5px; }\n .my-patch .coupons .items-box .coupon-info ul {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n display: flex;\n justify-content: space-around; }\n .my-patch .coupons .items-box .coupon-info ul li {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #fff;\n transform: translateY(50%); }\n .my-patch .coupons .items-box .coupon-des {\n border-radius: 3px;\n background-color: #fff;\n height: 33px;\n line-height: 33px;\n color: #999;\n font-size: 12px;\n padding-left: 15px; }\n .my-patch .coupons .active {\n background-color: #FE6161 !important; }\n .my-patch .coupons .checkout {\n width: 22px;\n height: 22px;\n position: absolute;\n right: 15px;\n top: 37px;\n font-size: 28px;\n line-height: 22px; }\n .my-patch .coupons .icondanseshixintubiao-5 {\n right: 18px; }\n .my-patch .coupons .nochecked {\n background: rgba(255, 255, 255, 0.2);\n border: 1px solid #fff;\n border-radius: 50%; }\n .my-patch .patch-desc {\n padding: 0 12px 20px;\n margin-top: 30px; }\n .my-patch .patch-desc .title {\n height: 15px;\n line-height: 15px;\n font-size: 14px;\n margin-bottom: 10px;\n color: #555;\n text-align: center; }\n .my-patch .patch-desc .title span {\n display: inline-block;\n margin-left: 15px;\n margin-right: 15px; }\n .my-patch .patch-desc .title i {\n display: inline-block;\n width: 30px;\n height: 1px;\n background-color: #CCC;\n position: relative;\n top: -5px; }\n .my-patch .patch-desc .desc-item {\n font-size: 12px;\n color: #777;\n line-height: 18px; }\n .my-patch .compound {\n width: 100%;\n height: 40px;\n border: none;\n border-radius: 20px;\n outline: none;\n font-size: 16px;\n color: #fff; }\n .my-patch .disable-active {\n background-color: #09f; }\n .my-patch .disable {\n background-color: #999; }\n .my-patch .success {\n width: 100px;\n height: 30px;\n background: rgba(0, 0, 0, 0.7);\n font-size: 14px;\n border-radius: 15px;\n text-align: center;\n line-height: 30px;\n color: #fff;\n position: fixed;\n top: 50%;\n left: 50%;\n margin-top: -15px;\n margin-left: -50px; }\n\n.compound-button--compose {\n padding: 0 12px; }\n .compound-button--compose .compound {\n margin-top: 10px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.coupons-box {\n height: 100%; }\n .coupons-box #coupons {\n height: 100%; }\n .coupons-box #coupons .tab {\n width: 100%;\n height: 44px;\n line-height: 44px;\n background-color: #fff;\n display: flex;\n justify-content: space-around;\n font-size: 14px;\n color: #555; }\n .coupons-box #coupons .tab a {\n display: inline-block;\n height: 100%; }\n .coupons-box #coupons .btm-border {\n background-color: #f5f5f5;\n width: 100%;\n height: 8px; }\n .coupons-box #coupons .tab-active {\n color: #09f;\n border-bottom: 1px solid #09f; }\n .coupons-box #coupons .coupons-container {\n height: 100%; }\n"]}
\ No newline at end of file
.use-coupon{display:flex;flex-flow:column;height:100%;background-color:#f5f5f5}.use-coupon .coupons-area{padding:19.2vw 3.2vw 0;background:#f5f5f5;flex:1 1 auto}.use-coupon .coupons-area .empty{min-height:56.266667vw;line-height:56.266667vw;font-size:3.2vw;color:#666;text-align:center}.use-coupon .coupons-area .invalid-title{text-align:center;font-size:3.2vw;line-height:13.866667vw;color:#999}.exchange-bar{display:flex;justify-content:space-between;width:100%;padding:2.666667vw 3.2vw;position:absolute;top:25.6vw;left:0;z-index:10;background:#fff}.exchange-bar button{display:inline-block;width:17.066667vw;height:8.8vw;line-height:8.8vw;font-size:3.733333vw;color:#fff;background-color:#ccc;border:none;-webkit-appearance:none;border-radius:.8vw}.exchange-bar button.active{background-color:#09f}.custom-input-wrapper{position:relative}.custom-input-wrapper .custom-input{width:73.866667vw;height:8.8vw;padding-left:2.666667vw;border:1px solid #ddd;border-radius:.8vw;font-size:3.2vw;-webkit-appearance:none}.custom-input-wrapper .custom-input::-webkit-input-placeholder{color:#999}.custom-input-wrapper .custom-input--active{border-color:#09f}.custom-input-wrapper .iconfont{position:absolute;right:2.666667vw;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:3.733333vw;color:#ccc}.custom-input-wrapper .hide{display:none}.coupon{margin-bottom:4vw;box-shadow:0 .533333vw 3.2vw -2.133333vw}.coupon,.coupon .coupon-info{position:relative;border-radius:.8vw}.coupon .coupon-info{height:25.333333vw;padding:2.666667vw 4vw;color:#fff}.coupon .coupon-info .type{font-size:3.733333vw}.coupon .coupon-info .denomination{font-size:6.933333vw;line-height:6.933333vw;text-align:center}.coupon .coupon-info .denomination span{font-size:3.2vw}.coupon .coupon-info .course-title{width:68.37%;margin:0 auto 1.066667vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:4.266667vw}.coupon .coupon-info .expire{text-align:center;font-size:3.2vw;line-height:4.266667vw}.coupon .coupon-info.coupon-type1{background:#fe6161}.coupon .coupon-info.coupon-type2{background:#e0b97b}.coupon .coupon-info.invalid{background:#999}.coupon .coupon-info>.iconfont{position:absolute;top:50%;right:5.333333vw;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:5.866667vw;height:5.866667vw;display:none}.coupon .coupon-info .check{display:block}.coupon .coupon-info ul{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-around}.coupon .coupon-info ul li{width:2.666667vw;height:2.666667vw;border-radius:50%;background:#fff;-webkit-transform:translateY(50%);transform:translateY(50%)}.coupon .coupon-des{padding:2.666667vw 4vw;background:#fff;display:flex;justify-content:space-between;align-items:center;border-radius:0 0 .8vw .8vw}.coupon .coupon-des .limit{width:63.81%;font-size:3.2vw;vertical-align:middle;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.coupon .coupon-des .use{display:inline-block;padding:.8vw 2.133333vw;font-size:3.2vw;color:#f31;border:1px solid #f31;border-radius:2.666667vw;background:transparent;-webkit-appearance:none}.my-patch{background-color:#f5f5f5}.my-patch .couponAmount{padding:1.333333vw 3.2vw 0;font-size:3.733333vw;color:#555;margin-bottom:4vw}.my-patch .couponAmount span{color:#ff4000}.my-patch .coupons{padding:0 3.2vw}.my-patch .coupons .items-box{margin-bottom:2.666667vw}.my-patch .coupons .items-box .coupon-info{position:relative;background-color:#999;height:25.333333vw;color:#fff;border-radius:.8vw;padding:2.666667vw 4vw 0}.my-patch .coupons .items-box .coupon-info .type{font-size:3.733333vw}.my-patch .coupons .items-box .coupon-info .amount{width:100%;text-align:center;font-size:3.2vw}.my-patch .coupons .items-box .coupon-info .amount span{font-size:6.933333vw;margin-right:1.333333vw}.my-patch .coupons .items-box .coupon-info ul{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-around}.my-patch .coupons .items-box .coupon-info ul li{width:2.666667vw;height:2.666667vw;border-radius:50%;background:#fff;-webkit-transform:translateY(50%);transform:translateY(50%)}.my-patch .coupons .items-box .coupon-des{border-radius:.8vw;background-color:#fff;height:8.8vw;line-height:8.8vw;color:#999;font-size:3.2vw;padding-left:4vw}.my-patch .coupons .active{background-color:#fe6161!important}.my-patch .coupons .checkout{width:5.866667vw;height:5.866667vw;position:absolute;right:4vw;top:9.866667vw;font-size:7.466667vw;line-height:5.866667vw}.my-patch .coupons .icondanseshixintubiao-5{right:4.8vw}.my-patch .coupons .nochecked{background:hsla(0,0%,100%,.2);border:1px solid #fff;border-radius:50%}.my-patch .patch-desc{padding:0 3.2vw 5.333333vw;margin-top:8vw}.my-patch .patch-desc .title{height:4vw;line-height:4vw;font-size:3.733333vw;margin-bottom:2.666667vw;color:#555;text-align:center}.my-patch .patch-desc .title span{display:inline-block;margin-left:4vw;margin-right:4vw}.my-patch .patch-desc .title i{display:inline-block;width:8vw;height:1px;background-color:#ccc;position:relative;top:-1.333333vw}.my-patch .patch-desc .desc-item{font-size:3.2vw;color:#777;line-height:4.8vw}.my-patch .compound{width:100%;height:10.666667vw;border:none;border-radius:5.333333vw;outline:none;font-size:4.266667vw;color:#fff}.my-patch .disable-active{background-color:#09f}.my-patch .disable{background-color:#999}.my-patch .success{width:26.666667vw;height:8vw;background:rgba(0,0,0,.7);font-size:3.733333vw;border-radius:4vw;text-align:center;line-height:8vw;color:#fff;position:fixed;top:50%;left:50%;margin-top:-4vw;margin-left:-13.333333vw}.compound-button--compose{padding:0 3.2vw}.compound-button--compose .compound{margin-top:2.666667vw}.coupons-box,.coupons-box #coupons{height:100%}.coupons-box #coupons .tab{width:100%;height:11.733333vw;line-height:11.733333vw;background-color:#fff;display:flex;justify-content:space-around;font-size:3.733333vw;color:#555}.coupons-box #coupons .tab a{display:inline-block;height:100%}.coupons-box #coupons .btm-border{background-color:#f5f5f5;width:100%;height:2.133333vw}.coupons-box #coupons .tab-active{color:#09f;border-bottom:1px solid #09f}.coupons-box #coupons .coupons-container{height:100%}
/*# sourceMappingURL=coupons.de0ae9dc.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/myCoupons/index.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/RedeemBar/exchange-bar.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/Input/input.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/Coupon/coupon.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/myPatch/index.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/coupons/coupons.scss"],"names":[],"mappings":"AAmGA,YACI,YAAA,CACA,gBAAA,CACA,WAAA,CACA,wBAAyB,CAJ7B,0BAOQ,sBAAA,CACA,kBAAA,CACA,aAAc,CATtB,iCAYY,sBAAA,CACA,uBAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAkB,CAhB9B,yCAoBY,iBAAA,CACA,eAAA,CACA,uBAAA,CACA,UA9GI,CCuFhB,cACI,YAAA,CACA,6BAAA,CACA,UAAA,CACA,wBAAA,CACA,iBAAA,CACA,UAAA,CACA,MAAA,CACA,UAAA,CACA,eAxGQ,CA+FZ,qBAYQ,oBAAA,CACA,iBAAA,CACA,YAAA,CACA,iBAAA,CACA,oBAAA,CACA,UAAA,CACA,qBAAA,CACA,WAAA,CACA,uBAAA,CACA,kBAAkB,CArB1B,4BAwBY,qBAxHC,CCgGb,sBACI,iBAAkB,CADtB,oCAIQ,iBAAA,CACA,YAAA,CAEA,uBAAA,CAEA,qBAAA,CACA,kBAAA,CAEA,eAAA,CAEA,uBAAwB,CAdhC,+DAkBY,UAzGI,CAuFhB,4CAuBQ,iBAAkB,CAvB1B,gCA2BQ,iBAAA,CACA,gBAAA,CACA,OAAA,CACA,kCAAA,CAAA,0BAAA,CACA,oBAAA,CACA,UAlFK,CAkDb,4BAoCQ,YAAa,CClCrB,QAEI,iBAAA,CACA,wCACkB,CAJtB,6BACI,iBAAA,CAGA,kBAOsB,CAX1B,qBAQQ,kBAAA,CACA,sBAAA,CACA,UACkB,CAX1B,2BAcY,oBAlFE,CAoEd,mCAkBY,oBAAA,CACA,sBAAA,CACA,iBAAkB,CApB9B,wCAuBgB,eA1FF,CAmEd,mCA4BY,YAAA,CACA,wBAAA,CACA,kBAAA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\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.use-coupon {\n display: flex;\n flex-flow: column;\n height: 100%;\n background-color: #f5f5f5; }\n .use-coupon .coupons-area {\n padding: 72px 12px 0px;\n background: #f5f5f5;\n flex: 1 1 auto; }\n .use-coupon .coupons-area .empty {\n min-height: 211px;\n line-height: 211px;\n font-size: 12px;\n color: #666;\n text-align: center; }\n .use-coupon .coupons-area .invalid-title {\n text-align: center;\n font-size: 12px;\n line-height: 52px;\n color: #999; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.exchange-bar {\n display: flex;\n justify-content: space-between;\n width: 100%;\n padding: 10px 12px;\n position: absolute;\n top: 96px;\n left: 0;\n z-index: 10;\n background: #fff; }\n .exchange-bar button {\n display: inline-block;\n width: 64px;\n height: 33px;\n line-height: 33px;\n font-size: 14px;\n color: #fff;\n background-color: #ccc;\n border: none;\n -webkit-appearance: none;\n border-radius: 3px; }\n .exchange-bar button.active {\n background-color: #09f; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.custom-input-wrapper {\n position: relative; }\n .custom-input-wrapper .custom-input {\n width: 277px;\n height: 33px;\n padding-left: 10px;\n border: 1px solid #ddd;\n border-radius: 3px;\n font-size: 12px;\n -webkit-appearance: none; }\n .custom-input-wrapper .custom-input::-webkit-input-placeholder {\n color: #999; }\n .custom-input-wrapper .custom-input--active {\n border-color: #09f; }\n .custom-input-wrapper .iconfont {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 14px;\n color: #ccc; }\n .custom-input-wrapper .hide {\n display: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.coupon {\n position: relative;\n margin-bottom: 15px;\n box-shadow: 0px 2px 12px -8px;\n border-radius: 3px; }\n .coupon .coupon-info {\n position: relative;\n height: 95px;\n padding: 10px 15px;\n color: #fff;\n border-radius: 3px; }\n .coupon .coupon-info .type {\n font-size: 14px; }\n .coupon .coupon-info .denomination {\n font-size: 26px;\n line-height: 26px;\n text-align: center; }\n .coupon .coupon-info .denomination span {\n font-size: 12px; }\n .coupon .coupon-info .course-title {\n width: 68.37%;\n margin: 0 auto 4px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 16px; }\n .coupon .coupon-info .expire {\n text-align: center;\n font-size: 12px;\n line-height: 16px; }\n .coupon .coupon-info.coupon-type1 {\n background: #FE6161; }\n .coupon .coupon-info.coupon-type2 {\n background: #E0B97B; }\n .coupon .coupon-info.invalid {\n background: #999; }\n .coupon .coupon-info > .iconfont {\n position: absolute;\n top: 50%;\n right: 20px;\n transform: translateY(-50%);\n width: 22px;\n height: 22px;\n display: none; }\n .coupon .coupon-info .check {\n display: block; }\n .coupon .coupon-info ul {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n display: flex;\n justify-content: space-around; }\n .coupon .coupon-info ul li {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #fff;\n transform: translateY(50%); }\n .coupon .coupon-des {\n padding: 10px 15px;\n background: #fff;\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-radius: 0 0 3px 3px; }\n .coupon .coupon-des .limit {\n width: 63.81%;\n font-size: 12px;\n vertical-align: middle;\n color: #666;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n .coupon .coupon-des .use {\n display: inline-block;\n padding: 3px 8px;\n font-size: 12px;\n color: #f31;\n border: 1px solid #f31;\n border-radius: 10px;\n background: transparent;\n -webkit-appearance: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.my-patch {\n background-color: #f5f5f5; }\n .my-patch .couponAmount {\n padding: 5px 12px 0 12px;\n font-size: 14px;\n color: #555;\n margin-bottom: 15px; }\n .my-patch .couponAmount span {\n color: #FF4000; }\n .my-patch .coupons {\n padding: 0 12px; }\n .my-patch .coupons .items-box {\n margin-bottom: 10px; }\n .my-patch .coupons .items-box .coupon-info {\n position: relative;\n background-color: #999;\n height: 95px;\n color: #fff;\n border-radius: 3px;\n padding: 10px 15px 0 15px; }\n .my-patch .coupons .items-box .coupon-info .type {\n font-size: 14px; }\n .my-patch .coupons .items-box .coupon-info .amount {\n width: 100%;\n text-align: center;\n font-size: 12px; }\n .my-patch .coupons .items-box .coupon-info .amount span {\n font-size: 26px;\n margin-right: 5px; }\n .my-patch .coupons .items-box .coupon-info ul {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n display: flex;\n justify-content: space-around; }\n .my-patch .coupons .items-box .coupon-info ul li {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #fff;\n transform: translateY(50%); }\n .my-patch .coupons .items-box .coupon-des {\n border-radius: 3px;\n background-color: #fff;\n height: 33px;\n line-height: 33px;\n color: #999;\n font-size: 12px;\n padding-left: 15px; }\n .my-patch .coupons .active {\n background-color: #FE6161 !important; }\n .my-patch .coupons .checkout {\n width: 22px;\n height: 22px;\n position: absolute;\n right: 15px;\n top: 37px;\n font-size: 28px;\n line-height: 22px; }\n .my-patch .coupons .icondanseshixintubiao-5 {\n right: 18px; }\n .my-patch .coupons .nochecked {\n background: rgba(255, 255, 255, 0.2);\n border: 1px solid #fff;\n border-radius: 50%; }\n .my-patch .patch-desc {\n padding: 0 12px 20px;\n margin-top: 30px; }\n .my-patch .patch-desc .title {\n height: 15px;\n line-height: 15px;\n font-size: 14px;\n margin-bottom: 10px;\n color: #555;\n text-align: center; }\n .my-patch .patch-desc .title span {\n display: inline-block;\n margin-left: 15px;\n margin-right: 15px; }\n .my-patch .patch-desc .title i {\n display: inline-block;\n width: 30px;\n height: 1px;\n background-color: #CCC;\n position: relative;\n top: -5px; }\n .my-patch .patch-desc .desc-item {\n font-size: 12px;\n color: #777;\n line-height: 18px; }\n .my-patch .compound {\n width: 100%;\n height: 40px;\n border: none;\n border-radius: 20px;\n outline: none;\n font-size: 16px;\n color: #fff; }\n .my-patch .disable-active {\n background-color: #09f; }\n .my-patch .disable {\n background-color: #999; }\n .my-patch .success {\n width: 100px;\n height: 30px;\n background: rgba(0, 0, 0, 0.7);\n font-size: 14px;\n border-radius: 15px;\n text-align: center;\n line-height: 30px;\n color: #fff;\n position: fixed;\n top: 50%;\n left: 50%;\n margin-top: -15px;\n margin-left: -50px; }\n\n.compound-button--compose {\n padding: 0 12px; }\n .compound-button--compose .compound {\n margin-top: 10px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.coupons-box {\n height: 100%; }\n .coupons-box #coupons {\n height: 100%; }\n .coupons-box #coupons .tab {\n width: 100%;\n height: 44px;\n line-height: 44px;\n background-color: #fff;\n display: flex;\n justify-content: space-around;\n font-size: 14px;\n color: #555; }\n .coupons-box #coupons .tab a {\n display: inline-block;\n height: 100%; }\n .coupons-box #coupons .btm-border {\n background-color: #f5f5f5;\n width: 100%;\n height: 8px; }\n .coupons-box #coupons .tab-active {\n color: #09f;\n border-bottom: 1px solid #09f; }\n .coupons-box #coupons .coupons-container {\n height: 100%; }\n"]}
\ No newline at end of file
{"version":3,"sources":["/Users/zhanghaozhe/server/mr-julyedu/src/components/purchased/index.scss"],"names":[],"mappings":"AAmGA,gBACI,qBAAsB,CAE1B,eACI,UAAA,CACA,WAAY,CAFhB,oBAOQ,UAAA,CACA,UAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,wBAAA,CACA,wBAAmB,CAd3B,2DAsBQ,qBAAsB,CAtB9B,qCAyBY,yBAAA,CACA,+BAAgC,CA1B5C,4CA6BgB,YAAA,CACA,WAAY,CA9B5B,gDAiCoB,UAAW,CAjC/B,kCAuCY,WAAA,CACA,iBAAA,CACA,aAAc,CAzC1B,yCA4CgB,oBAAA,CACA,UAAA,CACA,eAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,sBAAiB,CAlDjC,2CAsDgB,oBAAA,CACA,UAAA,CACA,qBAAgB,CAxDhC,uCA4DgB,iBAAA,CACA,iBAAA,CACA,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,sBAAiB,CAjEjC,yBAwEQ,UAAA,CACA,sBAAA,CACA,iBAAkB,CA1E1B,qCA6EY,eAAe,CA7E3B,oCAiFY,eAAA,CACA,UA9KI,CA4FhB,2BAsFY,oBAAA,CACA,iBAAA,CACA,UAAA,CACA,qBAAA,CACA,iBAAA,CACA,oBAAA,CACA,cAAA,CACA,UAAA,CACA,iBAAA,CACA,sBAAiB,CA/F7B,uBAoGQ,iBAAA,CACA,KAAA,CACA,OAAA,CACA,uBAAA,CACA,uCAAA,CACA,oBAAA,CACA,UAAA,CACA,kFAAA,CAAA,uDAAA,CAAA,kDAAwD","file":"purchased.1daf107b.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\nhtml, body, #root {\n height: 100% !important; }\n\n.purchased-box {\n width: 100%;\n height: 100%; }\n .purchased-box .tip {\n width: 100%;\n height: 30px;\n line-height: 30px;\n font-size: 12px;\n color: #333;\n text-align: center;\n background-color: #FFF4CE;\n margin-bottom: 10px; }\n .purchased-box .purchased-body {\n background-color: #fff; }\n .purchased-box .v-list-item {\n background-color: #fff; }\n .purchased-box .v-list-item .content {\n padding-bottom: 10px;\n border-bottom: 1px solid #e7eaf1; }\n .purchased-box .v-list-item .content .cover {\n flex: inherit;\n width: 42.2%; }\n .purchased-box .v-list-item .content .cover img {\n width: 100%; }\n .purchased-box .v-list-item .info {\n width: 52.3%;\n position: relative;\n display: block; }\n .purchased-box .v-list-item .info .title {\n font-size: 16px;\n color: #333;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 16px;\n line-height: 16px; }\n .purchased-box .v-list-item .info .contact {\n font-size: 14px;\n color: #666;\n margin-top: 14px; }\n .purchased-box .v-list-item .info .des {\n position: absolute;\n bottom: 5px;\n color: #09f;\n font-size: 14px;\n height: 14px;\n line-height: 14px; }\n .purchased-box .cart-tip {\n color: #555;\n margin-top: 140px;\n text-align: center; }\n .purchased-box .cart-tip .iconfridge {\n font-size: 21px; }\n .purchased-box .cart-tip .cart-mess {\n font-size: 12px;\n color: #666; }\n .purchased-box .cart-tip a {\n display: inline-block;\n width: 130px;\n height: 30px;\n border: 1px solid #09f;\n border-radius: 15px;\n font-size: 16px;\n margin-top: 30px;\n color: #09f;\n text-align: center;\n line-height: 28px; }\n .purchased-box .status {\n position: absolute;\n top: 0;\n right: 0;\n padding: 2px 6px;\n border-radius: 11px 0 0 11px;\n font-size: 14px;\n color: #fff;\n background: linear-gradient(to bottom, #FF4000, #FD7700); }\n"]}
\ No newline at end of file
#root,body,html{height:100%!important}.purchased-box{width:100%;height:100%}.purchased-box .tip{width:100%;height:8vw;line-height:8vw;font-size:3.2vw;color:#333;text-align:center;background-color:#fff4ce;margin-bottom:2.666667vw}.purchased-box .purchased-body,.purchased-box .v-list-item{background-color:#fff}.purchased-box .v-list-item .content{padding-bottom:2.666667vw;border-bottom:1px solid #e7eaf1}.purchased-box .v-list-item .content .cover{flex:inherit;width:42.2%}.purchased-box .v-list-item .content .cover img{width:100%}.purchased-box .v-list-item .info{width:52.3%;position:relative;display:block}.purchased-box .v-list-item .info .title{font-size:4.266667vw;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:4.266667vw;line-height:4.266667vw}.purchased-box .v-list-item .info .contact{font-size:3.733333vw;color:#666;margin-top:3.733333vw}.purchased-box .v-list-item .info .des{position:absolute;bottom:1.333333vw;color:#09f;font-size:3.733333vw;height:3.733333vw;line-height:3.733333vw}.purchased-box .cart-tip{color:#555;margin-top:37.333333vw;text-align:center}.purchased-box .cart-tip .iconfridge{font-size:5.6vw}.purchased-box .cart-tip .cart-mess{font-size:3.2vw;color:#666}.purchased-box .cart-tip a{display:inline-block;width:34.666667vw;height:8vw;border:1px solid #09f;border-radius:4vw;font-size:4.266667vw;margin-top:8vw;color:#09f;text-align:center;line-height:7.466667vw}.purchased-box .status{position:absolute;top:0;right:0;padding:.533333vw 1.6vw;border-radius:2.933333vw 0 0 2.933333vw;font-size:3.733333vw;color:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#ff4000),to(#fd7700));background:-webkit-linear-gradient(top,#ff4000,#fd7700);background:linear-gradient(180deg,#ff4000,#fd7700)}
/*# sourceMappingURL=purchased.1daf107b.chunk.css.map */
\ No newline at end of file
#root,body,html{height:100%!important}.purchased-box{width:100%;height:100%}.purchased-box .tip{width:100%;height:8vw;line-height:8vw;font-size:3.2vw;color:#333;text-align:center;background-color:#fff4ce;margin-bottom:2.666667vw}.purchased-box .purchased-body,.purchased-box .v-list-item{background-color:#fff}.purchased-box .v-list-item .content{padding-bottom:2.666667vw;border-bottom:1px solid #e7eaf1}.purchased-box .v-list-item .content .cover{flex:inherit;width:42.2%}.purchased-box .v-list-item .content .cover img{width:100%}.purchased-box .v-list-item .info{width:52.3%;position:relative;display:block}.purchased-box .v-list-item .info .title{font-size:4.266667vw;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:4.266667vw;line-height:4.266667vw}.purchased-box .v-list-item .info .contact{font-size:3.733333vw;color:#666;margin-top:3.733333vw}.purchased-box .v-list-item .info .des{position:absolute;bottom:1.333333vw;color:#09f;font-size:3.733333vw;height:3.733333vw;line-height:3.733333vw}.purchased-box .cart-tip{color:#555;margin-top:37.333333vw;text-align:center}.purchased-box .cart-tip .iconfridge{font-size:5.6vw}.purchased-box .cart-tip .cart-mess{font-size:3.2vw;color:#666}.purchased-box .cart-tip a{display:inline-block;width:34.666667vw;height:8vw;border:1px solid #09f;border-radius:4vw;font-size:4.266667vw;margin-top:8vw;color:#09f;text-align:center;line-height:7.466667vw}.purchased-box .status{position:absolute;top:0;right:0;padding:.533333vw 1.6vw;border-radius:2.933333vw 0 0 2.933333vw;font-size:3.733333vw;color:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#ff4000),to(#fd7700));background:-webkit-linear-gradient(top,#ff4000,#fd7700);background:linear-gradient(180deg,#ff4000,#fd7700)}.purchased-box .course-expire{display:inline-block;text-align:center;position:absolute;bottom:2.666667vw;left:0;width:24.533333vw;height:5.333333vw;line-height:5.6vw;background-color:#ff3a3a;border-radius:0 2.666667vw 2.666667vw 0;color:#fff;font-size:3.2vw}
/*# sourceMappingURL=purchased.dd7556e0.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/zhanghaozhe/server/mr-julyedu/src/components/purchased/index.scss"],"names":[],"mappings":"AAmGA,gBACI,qBAAsB,CAE1B,eACI,UAAA,CACA,WAAY,CAFhB,oBAOQ,UAAA,CACA,UAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,wBAAA,CACA,wBAAmB,CAd3B,2DAsBQ,qBAAsB,CAtB9B,qCAyBY,yBAAA,CACA,+BAAgC,CA1B5C,4CA6BgB,YAAA,CACA,WAAY,CA9B5B,gDAiCoB,UAAW,CAjC/B,kCAuCY,WAAA,CACA,iBAAA,CACA,aAAc,CAzC1B,yCA4CgB,oBAAA,CACA,UAAA,CACA,eAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,sBAAiB,CAlDjC,2CAsDgB,oBAAA,CACA,UAAA,CACA,qBAAgB,CAxDhC,uCA4DgB,iBAAA,CACA,iBAAA,CACA,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,sBAAiB,CAjEjC,yBAwEQ,UAAA,CACA,sBAAA,CACA,iBAAkB,CA1E1B,qCA6EY,eAAe,CA7E3B,oCAiFY,eAAA,CACA,UA9KI,CA4FhB,2BAsFY,oBAAA,CACA,iBAAA,CACA,UAAA,CACA,qBAAA,CACA,iBAAA,CACA,oBAAA,CACA,cAAA,CACA,UAAA,CACA,iBAAA,CACA,sBAAiB,CA/F7B,uBAoGQ,iBAAA,CACA,KAAA,CACA,OAAA,CACA,uBAAA,CACA,uCAAA,CACA,oBAAA,CACA,UAAA,CACA,kFAAA,CAAA,uDAAA,CAAA,kDAAwD,CA3GhE,8BA8GQ,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,iBAAA,CACA,MAAA,CACA,iBAAA,CACA,iBAAA,CACA,iBAAA,CACA,wBAAA,CACA,uCAAA,CACA,UAAA,CACA,eAAe","file":"purchased.dd7556e0.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\nhtml, body, #root {\n height: 100% !important; }\n\n.purchased-box {\n width: 100%;\n height: 100%; }\n .purchased-box .tip {\n width: 100%;\n height: 30px;\n line-height: 30px;\n font-size: 12px;\n color: #333;\n text-align: center;\n background-color: #FFF4CE;\n margin-bottom: 10px; }\n .purchased-box .purchased-body {\n background-color: #fff; }\n .purchased-box .v-list-item {\n background-color: #fff; }\n .purchased-box .v-list-item .content {\n padding-bottom: 10px;\n border-bottom: 1px solid #e7eaf1; }\n .purchased-box .v-list-item .content .cover {\n flex: inherit;\n width: 42.2%; }\n .purchased-box .v-list-item .content .cover img {\n width: 100%; }\n .purchased-box .v-list-item .info {\n width: 52.3%;\n position: relative;\n display: block; }\n .purchased-box .v-list-item .info .title {\n font-size: 16px;\n color: #333;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 16px;\n line-height: 16px; }\n .purchased-box .v-list-item .info .contact {\n font-size: 14px;\n color: #666;\n margin-top: 14px; }\n .purchased-box .v-list-item .info .des {\n position: absolute;\n bottom: 5px;\n color: #09f;\n font-size: 14px;\n height: 14px;\n line-height: 14px; }\n .purchased-box .cart-tip {\n color: #555;\n margin-top: 140px;\n text-align: center; }\n .purchased-box .cart-tip .iconfridge {\n font-size: 21px; }\n .purchased-box .cart-tip .cart-mess {\n font-size: 12px;\n color: #666; }\n .purchased-box .cart-tip a {\n display: inline-block;\n width: 130px;\n height: 30px;\n border: 1px solid #09f;\n border-radius: 15px;\n font-size: 16px;\n margin-top: 30px;\n color: #09f;\n text-align: center;\n line-height: 28px; }\n .purchased-box .status {\n position: absolute;\n top: 0;\n right: 0;\n padding: 2px 6px;\n border-radius: 11px 0 0 11px;\n font-size: 14px;\n color: #fff;\n background: linear-gradient(to bottom, #FF4000, #FD7700); }\n .purchased-box .course-expire {\n display: inline-block;\n text-align: center;\n position: absolute;\n bottom: 10px;\n left: 0;\n width: 92px;\n height: 20px;\n line-height: 21px;\n background-color: #FF3A3A;\n border-radius: 0 10px 10px 0;\n color: #fff;\n font-size: 12px; }\n"]}
\ No newline at end of file
{"version":3,"sources":["/Users/zhanghaozhe/server/mr-julyedu/src/components/study/study.scss","/Users/zhanghaozhe/server/mr-julyedu/src/common/v-list-base/index.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/study/myCourses/my-courses.scss","/Users/zhanghaozhe/server/mr-julyedu/src/common/course-base/course-base.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/study/freeCourses/free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nC3B,yCAsCY,YAAA,CACA,sBAAA,CACA,UAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAuB,CA3CnC,mCA+CY,YAAA,CACA,6BAA8B,CAhD1C,4BAsDY,YAAA,CACA,0BAAA,CACA,UAxJC,CAgGb,6BA6DQ,gBAAA,CACA,YAAA,CACA,YAAA,CACA,6BAAA,CACA,uBAAiB,CAjEzB,qCAoEY,eAAA,CACA,YAAA,CACA,sCAAA,CAAA,8BAAA,CACA,+CAAA,CAAA,uCAAA,CACA,qBAnII,CA2DhB,uCA2EoB,2BAAA,CAAA,mBAA0B,CA3E9C,uCA2EoB,2BAAA,CAAA,mBAA0B,CA3E9C,uCA2EoB,2BAAA,CAAA,mBAA0B,CAO9C,0BACI,GACI,2BAAA,CAAA,mBAAoB,CAExB,IACI,2BAAA,CAAA,mBAAoB,CAExB,GACI,2BAAA,CAAA,mBAAoB,CAAA,CAR5B,kBACI,GACI,2BAAA,CAAA,mBAAoB,CAExB,IACI,2BAAA,CAAA,mBAAoB,CAExB,GACI,2BAAA,CAAA,mBAAoB,CAAA","file":"study.5e9927d1.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\nhtml, body, #root {\n height: 100% !important; }\n\n#study {\n height: 100%;\n background: #fff;\n display: flex;\n flex-flow: column;\n overflow: hidden; }\n #study .tab {\n height: 44px;\n max-height: 44px;\n line-height: 44px;\n text-align: center;\n background: #F7F9FC;\n flex: 1 0 auto;\n display: flex;\n justify-content: center; }\n #study .tab > div {\n flex: 1 0 auto; }\n #study .tab a {\n display: inline-block;\n height: 44px;\n font-size: 15px; }\n #study .study-container {\n padding-bottom: 50px;\n flex: 1 1 auto;\n overflow-y: auto;\n box-sizing: border-box; }\n #study .active {\n color: #09f;\n border-bottom: 1px solid #09f; }\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#study .info {\n display: flex;\n flex-wrap: wrap;\n width: 55%; }\n #study .info .title {\n font-size: 15px;\n font-weight: 400;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n #study .info .contact {\n font-size: 13px;\n color: #09f;\n flex: 0 1 auto;\n width: 100%; }\n #study .info .process-status {\n display: flex;\n justify-content: space-between;\n align-items: center; }\n #study .info .process-wrapper {\n position: relative;\n width: 147px;\n height: 6px;\n background: #E5E5E5;\n border-radius: 4px;\n margin-right: 14px; }\n #study .info .process-bar {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n background-color: #09f;\n border-radius: 4px; }\n #study .info .process-text {\n color: #09f;\n font-size: 12px;\n line-height: 15px; }\n #study .info .des {\n color: #999;\n font-size: 11px;\n align-self: flex-end;\n line-height: 1; }\n #study .info .des .time {\n margin-right: 10px; }\n #study .info .start-learn {\n display: block;\n box-sizing: border-box;\n align-self: flex-end;\n width: 78px;\n height: 22px;\n padding: 5px 14px;\n -webkit-appearance: none;\n outline: 0;\n border: none;\n background: #09f;\n color: #fff;\n border-radius: 3px; }\n\n#study .add-course {\n padding: 10px 12px; }\n #study .add-course button.add {\n width: 150px;\n height: 108px;\n font-size: 15px;\n font-family: HiraginoSansGB-W3;\n font-weight: normal;\n color: #09f;\n border: 1px dashed #09f;\n background: transparent; }\n\n#study .my-course-uid {\n width: 375px;\n height: 30px;\n background: #FFF4CE;\n line-height: 30px;\n text-align: center;\n font-size: 12px;\n color: #333; }\n\n#study .empty {\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 140px; }\n #study .empty .iconfish {\n width: 20px;\n height: 20px;\n color: #1a4263; }\n #study .empty .empty-prompt {\n margin-bottom: 30px;\n font-size: 12px;\n color: #666; }\n #study .empty .select-course {\n display: block;\n width: 131px;\n height: 30px;\n border: 1px solid #09f;\n border-radius: 15px;\n background: transparent;\n color: #09f;\n font-size: 16px;\n text-align: center;\n line-height: 30px; }\n\n#study .status {\n position: absolute;\n top: 0;\n right: 0;\n padding: 2px 6px;\n border-radius: 11px 0 0 11px;\n font-size: 14px;\n color: #fff;\n background: linear-gradient(to bottom, #FF4000, #FD7700); }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-base-item {\n width: 47.8%;\n margin-top: 15px;\n margin-bottom: 5px;\n position: relative; }\n .course-base-item img {\n width: 100%;\n height: 119px;\n min-height: 119px; }\n .course-base-item .course-title {\n font-size: 14px;\n color: #333;\n line-height: 19px;\n margin-top: 9px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.free-courses {\n padding: 15px;\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between; }\n .free-courses .course-base-item {\n margin-top: 0;\n margin-bottom: 15px; }\n .free-courses .course-base-item img {\n border-radius: 3px; }\n .free-courses .top {\n position: absolute;\n top: 10px;\n left: 0; }\n .free-courses .tag-soon {\n background: #FF2121;\n color: #fff; }\n .free-courses .tag-playing {\n background: #09f;\n color: #fff; }\n .free-courses .tag-category {\n background: #E0B97B;\n color: #fff; }\n .free-courses .course-item {\n margin-top: 0;\n margin-bottom: 16px; }\n .free-courses .course-item .course-title {\n margin-top: 0;\n line-height: 34px;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .free-courses .course-item .bottom {\n display: flex;\n justify-content: space-between; }\n .free-courses .live .bottom {\n display: flex;\n justify-content: flex-start;\n color: #09f; }\n .free-courses .animation-box {\n width: 14px;\n height: 12px;\n display: flex;\n justify-content: space-between;\n margin-right: 5px; }\n .free-courses .animation-box .column {\n width: 2px;\n height: 12px;\n transform-origin: bottom center;\n animation: scaleY 1.1s ease-out infinite;\n background-color: #09f; }\n .free-courses .animation-box .column-1 {\n animation-delay: 0.2s; }\n .free-courses .animation-box .column-2 {\n animation-delay: 0.4s; }\n .free-courses .animation-box .column-3 {\n animation-delay: 0.6s; }\n\n@keyframes scaleY {\n from {\n transform: scaleY(0); }\n 50% {\n transform: scaleY(1); }\n to {\n transform: scaleY(0); } }\n"]}
\ No newline at end of file
#root,body,html{height:100%!important}#study{height:100%;background:#fff;display:flex;flex-flow:column;overflow:hidden}#study .tab{height:11.733333vw;max-height:11.733333vw;line-height:11.733333vw;text-align:center;background:#f7f9fc;display:flex;justify-content:center}#study .tab,#study .tab>div{flex:1 0 auto}#study .tab a{display:inline-block;height:11.733333vw;font-size:4vw}#study .study-container{padding-bottom:13.333333vw;flex:1 1 auto;overflow-y:auto;box-sizing:border-box}#study .active{color:#09f;border-bottom:1px solid #09f}.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}#study .info{display:flex;flex-wrap:wrap;width:55%}#study .info .title{font-size:4vw;font-weight:400;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#study .info .contact{font-size:3.466667vw;color:#09f;flex:0 1 auto;width:100%}#study .info .process-status{display:flex;justify-content:space-between;align-items:center}#study .info .process-wrapper{position:relative;width:39.2vw;height:1.6vw;background:#e5e5e5;border-radius:1.066667vw;margin-right:3.733333vw}#study .info .process-bar{position:absolute;top:0;left:0;height:100%;background-color:#09f;border-radius:1.066667vw}#study .info .process-text{color:#09f;font-size:3.2vw;line-height:4vw}#study .info .des{color:#999;font-size:2.933333vw;align-self:flex-end;line-height:1}#study .info .des .time{margin-right:2.666667vw}#study .info .start-learn{display:block;box-sizing:border-box;align-self:flex-end;width:20.8vw;height:5.866667vw;padding:1.333333vw 3.733333vw;-webkit-appearance:none;outline:0;border:none;background:#09f;color:#fff;border-radius:.8vw}#study .add-course{padding:2.666667vw 3.2vw}#study .add-course button.add{width:40vw;height:28.8vw;font-size:4vw;font-family:HiraginoSansGB-W3;font-weight:400;color:#09f;border:1px dashed #09f;background:transparent}#study .my-course-uid{width:100vw;height:8vw;background:#fff4ce;line-height:8vw;text-align:center;font-size:3.2vw;color:#333}#study .empty{height:100%;display:flex;flex-direction:column;align-items:center;padding-top:37.333333vw}#study .empty .iconfish{width:5.333333vw;height:5.333333vw;color:#1a4263}#study .empty .empty-prompt{margin-bottom:8vw;font-size:3.2vw;color:#666}#study .empty .select-course{display:block;width:34.933333vw;height:8vw;border:1px solid #09f;border-radius:4vw;background:transparent;color:#09f;font-size:4.266667vw;text-align:center;line-height:8vw}#study .status{position:absolute;top:0;right:0;padding:.533333vw 1.6vw;border-radius:2.933333vw 0 0 2.933333vw;font-size:3.733333vw;color:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#ff4000),to(#fd7700));background:-webkit-linear-gradient(top,#ff4000,#fd7700);background:linear-gradient(180deg,#ff4000,#fd7700)}.course-base-item{width:47.8%;margin-top:4vw;margin-bottom:1.333333vw;position:relative}.course-base-item img{width:100%;height:31.733333vw;min-height:31.733333vw}.course-base-item .course-title{font-size:3.733333vw;color:#333;line-height:5.066667vw;margin-top:2.4vw}.free-courses{padding:4vw;display:flex;flex-wrap:wrap;justify-content:space-between}.free-courses .course-base-item{margin-top:0;margin-bottom:4vw}.free-courses .course-base-item img{border-radius:.8vw}.free-courses .top{position:absolute;top:2.666667vw;left:0}.free-courses .tag-soon{background:#ff2121;color:#fff}.free-courses .tag-playing{background:#09f;color:#fff}.free-courses .tag-category{background:#e0b97b;color:#fff}.free-courses .course-item{margin-top:0;margin-bottom:4.266667vw}.free-courses .course-item .course-title{margin-top:0;line-height:9.066667vw;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.free-courses .course-item .bottom{display:flex;justify-content:space-between}.free-courses .live .bottom{display:flex;justify-content:flex-start;color:#09f}.free-courses .animation-box{width:3.733333vw;height:3.2vw;display:flex;justify-content:space-between;margin-right:1.333333vw}.free-courses .animation-box .column{width:.533333vw;height:3.2vw;-webkit-transform-origin:bottom center;transform-origin:bottom center;-webkit-animation:scaleY 1.1s ease-out infinite;animation:scaleY 1.1s ease-out infinite;background-color:#09f}.free-courses .animation-box .column-1{-webkit-animation-delay:.2s;animation-delay:.2s}.free-courses .animation-box .column-2{-webkit-animation-delay:.4s;animation-delay:.4s}.free-courses .animation-box .column-3{-webkit-animation-delay:.6s;animation-delay:.6s}@-webkit-keyframes scaleY{0%{-webkit-transform:scaleY(0);transform:scaleY(0)}50%{-webkit-transform:scaleY(1);transform:scaleY(1)}to{-webkit-transform:scaleY(0);transform:scaleY(0)}}@keyframes scaleY{0%{-webkit-transform:scaleY(0);transform:scaleY(0)}50%{-webkit-transform:scaleY(1);transform:scaleY(1)}to{-webkit-transform:scaleY(0);transform:scaleY(0)}}
/*# sourceMappingURL=study.5e9927d1.chunk.css.map */
\ No newline at end of file
#root,body,html{height:100%!important}#study{height:100%;background:#fff;display:flex;flex-flow:column;overflow:hidden}#study .tab{height:11.733333vw;max-height:11.733333vw;line-height:11.733333vw;text-align:center;background:#f7f9fc;display:flex;justify-content:center}#study .tab,#study .tab>div{flex:1 0 auto}#study .tab a{display:inline-block;height:11.733333vw;font-size:4vw}#study .study-container{padding-bottom:13.333333vw;flex:1 1 auto;overflow-y:auto;box-sizing:border-box}#study .active{color:#09f;border-bottom:1px solid #09f}.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}#study .info{display:flex;flex-wrap:wrap;width:55%}#study .info .title{font-size:4vw;font-weight:400;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#study .info .contact{font-size:3.466667vw;color:#09f;flex:0 1 auto;width:100%}#study .info .process-status{display:flex;justify-content:space-between;align-items:center}#study .info .process-wrapper{position:relative;width:39.2vw;height:1.6vw;background:#e5e5e5;border-radius:1.066667vw;margin-right:3.733333vw}#study .info .process-bar{position:absolute;top:0;left:0;height:100%;background-color:#09f;border-radius:1.066667vw}#study .info .process-text{color:#09f;font-size:3.2vw;line-height:4vw}#study .info .des{color:#999;font-size:2.933333vw;align-self:flex-end;line-height:1}#study .info .des .time{margin-right:2.666667vw}#study .info .start-learn{display:block;box-sizing:border-box;align-self:flex-end;width:20.8vw;height:5.866667vw;padding:1.333333vw 3.733333vw;-webkit-appearance:none;outline:0;border:none;background:#09f;color:#fff;border-radius:.8vw}#study .add-course{padding:2.666667vw 3.2vw}#study .add-course button.add{width:40vw;height:28.8vw;font-size:4vw;font-family:HiraginoSansGB-W3;font-weight:400;color:#09f;border:1px dashed #09f;background:transparent}#study .my-course-uid{width:100vw;height:8vw;background:#fff4ce;line-height:8vw;text-align:center;font-size:3.2vw;color:#333}#study .empty{height:100%;display:flex;flex-direction:column;align-items:center;padding-top:37.333333vw}#study .empty .iconfish{width:5.333333vw;height:5.333333vw;color:#1a4263}#study .empty .empty-prompt{margin-bottom:8vw;font-size:3.2vw;color:#666}#study .empty .select-course{display:block;width:34.933333vw;height:8vw;border:1px solid #09f;border-radius:4vw;background:transparent;color:#09f;font-size:4.266667vw;text-align:center;line-height:8vw}#study .status{position:absolute;top:0;right:0;padding:.533333vw 1.6vw;border-radius:2.933333vw 0 0 2.933333vw;font-size:3.733333vw;color:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#ff4000),to(#fd7700));background:-webkit-linear-gradient(top,#ff4000,#fd7700);background:linear-gradient(180deg,#ff4000,#fd7700)}#study .course-expire{display:inline-block;text-align:center;position:absolute;bottom:2.666667vw;left:0;width:24.533333vw;height:5.333333vw;line-height:5.6vw;background-color:#ff3a3a;border-radius:0 2.666667vw 2.666667vw 0;color:#fff;font-size:3.2vw}.course-base-item{width:47.8%;margin-top:4vw;margin-bottom:1.333333vw;position:relative}.course-base-item img{width:100%;height:31.733333vw;min-height:31.733333vw}.course-base-item .course-title{font-size:3.733333vw;color:#333;line-height:5.066667vw;margin-top:2.4vw}.free-courses{padding:4vw;display:flex;flex-wrap:wrap;justify-content:space-between}.free-courses .course-base-item{margin-top:0;margin-bottom:4vw}.free-courses .course-base-item img{border-radius:.8vw}.free-courses .top{position:absolute;top:2.666667vw;left:0}.free-courses .tag-soon{background:#ff2121;color:#fff}.free-courses .tag-playing{background:#09f;color:#fff}.free-courses .tag-category{background:#e0b97b;color:#fff}.free-courses .course-item{margin-top:0;margin-bottom:4.266667vw}.free-courses .course-item .course-title{margin-top:0;line-height:9.066667vw;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.free-courses .course-item .bottom{display:flex;justify-content:space-between}.free-courses .live .bottom{display:flex;justify-content:flex-start;color:#09f}.free-courses .animation-box{width:3.733333vw;height:3.2vw;display:flex;justify-content:space-between;margin-right:1.333333vw}.free-courses .animation-box .column{width:.533333vw;height:3.2vw;-webkit-transform-origin:bottom center;transform-origin:bottom center;-webkit-animation:scaleY 1.1s ease-out infinite;animation:scaleY 1.1s ease-out infinite;background-color:#09f}.free-courses .animation-box .column-1{-webkit-animation-delay:.2s;animation-delay:.2s}.free-courses .animation-box .column-2{-webkit-animation-delay:.4s;animation-delay:.4s}.free-courses .animation-box .column-3{-webkit-animation-delay:.6s;animation-delay:.6s}@-webkit-keyframes scaleY{0%{-webkit-transform:scaleY(0);transform:scaleY(0)}50%{-webkit-transform:scaleY(1);transform:scaleY(1)}to{-webkit-transform:scaleY(0);transform:scaleY(0)}}@keyframes scaleY{0%{-webkit-transform:scaleY(0);transform:scaleY(0)}50%{-webkit-transform:scaleY(1);transform:scaleY(1)}to{-webkit-transform:scaleY(0);transform:scaleY(0)}}
/*# sourceMappingURL=study.b002c899.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/zhanghaozhe/server/mr-julyedu/src/components/study/study.scss","/Users/zhanghaozhe/server/mr-julyedu/src/common/v-list-base/index.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/study/myCourses/my-courses.scss","/Users/zhanghaozhe/server/mr-julyedu/src/common/course-base/course-base.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/study/freeCourses/free-courses.scss"],"names":[],"mappings":"AAqGA,gBACI,qBAAsB,CAE1B,OACI,WAAA,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A,CACA,UAxHI,CA+FZ,4BA6BQ,kBAAA,CACA,UA7HI,CA+FZ,2BAkCQ,YAAA,CACA,wBAAmB,CAnC3B,yCAsCY,YAAA,CACA,sBAAA,CACA,UAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAuB,CA3CnC,mCA+CY,YAAA,CACA,6BAA8B,CAhD1C,4BAsDY,YAAA,CACA,0BAAA,CACA,UAxJC,CAgGb,6BA6DQ,gBAAA,CACA,YAAA,CACA,YAAA,CACA,6BAAA,CACA,uBAAiB,CAjEzB,qCAoEY,eAAA,CACA,YAAA,CACA,sCAAA,CAAA,8BAAA,CACA,+CAAA,CAAA,uCAAA,CACA,qBAnII,CA2DhB,uCA2EoB,2BAAA,CAAA,mBAA0B,CA3E9C,uCA2EoB,2BAAA,CAAA,mBAA0B,CA3E9C,uCA2EoB,2BAAA,CAAA,mBAA0B,CAO9C,0BACI,GACI,2BAAA,CAAA,mBAAoB,CAExB,IACI,2BAAA,CAAA,mBAAoB,CAExB,GACI,2BAAA,CAAA,mBAAoB,CAAA,CAR5B,kBACI,GACI,2BAAA,CAAA,mBAAoB,CAExB,IACI,2BAAA,CAAA,mBAAoB,CAExB,GACI,2BAAA,CAAA,mBAAoB,CAAA","file":"study.b002c899.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\nhtml, body, #root {\n height: 100% !important; }\n\n#study {\n height: 100%;\n background: #fff;\n display: flex;\n flex-flow: column;\n overflow: hidden; }\n #study .tab {\n height: 44px;\n max-height: 44px;\n line-height: 44px;\n text-align: center;\n background: #F7F9FC;\n flex: 1 0 auto;\n display: flex;\n justify-content: center; }\n #study .tab > div {\n flex: 1 0 auto; }\n #study .tab a {\n display: inline-block;\n height: 44px;\n font-size: 15px; }\n #study .study-container {\n padding-bottom: 50px;\n flex: 1 1 auto;\n overflow-y: auto;\n box-sizing: border-box; }\n #study .active {\n color: #09f;\n border-bottom: 1px solid #09f; }\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#study .info {\n display: flex;\n flex-wrap: wrap;\n width: 55%; }\n #study .info .title {\n font-size: 15px;\n font-weight: 400;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n #study .info .contact {\n font-size: 13px;\n color: #09f;\n flex: 0 1 auto;\n width: 100%; }\n #study .info .process-status {\n display: flex;\n justify-content: space-between;\n align-items: center; }\n #study .info .process-wrapper {\n position: relative;\n width: 147px;\n height: 6px;\n background: #E5E5E5;\n border-radius: 4px;\n margin-right: 14px; }\n #study .info .process-bar {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n background-color: #09f;\n border-radius: 4px; }\n #study .info .process-text {\n color: #09f;\n font-size: 12px;\n line-height: 15px; }\n #study .info .des {\n color: #999;\n font-size: 11px;\n align-self: flex-end;\n line-height: 1; }\n #study .info .des .time {\n margin-right: 10px; }\n #study .info .start-learn {\n display: block;\n box-sizing: border-box;\n align-self: flex-end;\n width: 78px;\n height: 22px;\n padding: 5px 14px;\n -webkit-appearance: none;\n outline: 0;\n border: none;\n background: #09f;\n color: #fff;\n border-radius: 3px; }\n\n#study .add-course {\n padding: 10px 12px; }\n #study .add-course button.add {\n width: 150px;\n height: 108px;\n font-size: 15px;\n font-family: HiraginoSansGB-W3;\n font-weight: normal;\n color: #09f;\n border: 1px dashed #09f;\n background: transparent; }\n\n#study .my-course-uid {\n width: 375px;\n height: 30px;\n background: #FFF4CE;\n line-height: 30px;\n text-align: center;\n font-size: 12px;\n color: #333; }\n\n#study .empty {\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 140px; }\n #study .empty .iconfish {\n width: 20px;\n height: 20px;\n color: #1a4263; }\n #study .empty .empty-prompt {\n margin-bottom: 30px;\n font-size: 12px;\n color: #666; }\n #study .empty .select-course {\n display: block;\n width: 131px;\n height: 30px;\n border: 1px solid #09f;\n border-radius: 15px;\n background: transparent;\n color: #09f;\n font-size: 16px;\n text-align: center;\n line-height: 30px; }\n\n#study .status {\n position: absolute;\n top: 0;\n right: 0;\n padding: 2px 6px;\n border-radius: 11px 0 0 11px;\n font-size: 14px;\n color: #fff;\n background: linear-gradient(to bottom, #FF4000, #FD7700); }\n\n#study .course-expire {\n display: inline-block;\n text-align: center;\n position: absolute;\n bottom: 10px;\n left: 0;\n width: 92px;\n height: 20px;\n line-height: 21px;\n background-color: #FF3A3A;\n border-radius: 0 10px 10px 0;\n color: #fff;\n font-size: 12px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-base-item {\n width: 47.8%;\n margin-top: 15px;\n margin-bottom: 5px;\n position: relative; }\n .course-base-item img {\n width: 100%;\n height: 119px;\n min-height: 119px; }\n .course-base-item .course-title {\n font-size: 14px;\n color: #333;\n line-height: 19px;\n margin-top: 9px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.free-courses {\n padding: 15px;\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between; }\n .free-courses .course-base-item {\n margin-top: 0;\n margin-bottom: 15px; }\n .free-courses .course-base-item img {\n border-radius: 3px; }\n .free-courses .top {\n position: absolute;\n top: 10px;\n left: 0; }\n .free-courses .tag-soon {\n background: #FF2121;\n color: #fff; }\n .free-courses .tag-playing {\n background: #09f;\n color: #fff; }\n .free-courses .tag-category {\n background: #E0B97B;\n color: #fff; }\n .free-courses .course-item {\n margin-top: 0;\n margin-bottom: 16px; }\n .free-courses .course-item .course-title {\n margin-top: 0;\n line-height: 34px;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n .free-courses .course-item .bottom {\n display: flex;\n justify-content: space-between; }\n .free-courses .live .bottom {\n display: flex;\n justify-content: flex-start;\n color: #09f; }\n .free-courses .animation-box {\n width: 14px;\n height: 12px;\n display: flex;\n justify-content: space-between;\n margin-right: 5px; }\n .free-courses .animation-box .column {\n width: 2px;\n height: 12px;\n transform-origin: bottom center;\n animation: scaleY 1.1s ease-out infinite;\n background-color: #09f; }\n .free-courses .animation-box .column-1 {\n animation-delay: 0.2s; }\n .free-courses .animation-box .column-2 {\n animation-delay: 0.4s; }\n .free-courses .animation-box .column-3 {\n animation-delay: 0.6s; }\n\n@keyframes scaleY {\n from {\n transform: scaleY(0); }\n 50% {\n transform: scaleY(1); }\n to {\n transform: scaleY(0); } }\n"]}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1195:function(e,t,a){"use strict";a.r(t);var n=a(19),c=a(5),o=a(7),s=a(6),i=a(8),l=a(9),u=a(0),r=a.n(u),p=a(15),m=a(48),d=a(21),h=(a(41),a(13)),v=a.n(h),f=a(149),E=(a(784),a(785),a(786),a(16)),b=a.n(E),y=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(i.a)(t).call(this,e))).clearInput=function(){a.props.onChange("")},a.state={isFocus:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.type,n=t.placeholder,c=this.state.isFocus;return r.a.createElement("div",{className:"custom-input-wrapper"},r.a.createElement("input",{type:a,className:b()("custom-input",{"custom-input--active":c}),placeholder:n,onChange:this.props.onChange,value:this.props.value,onBlur:function(){e.setState({isFocus:!1})},onFocus:function(){e.setState({isFocus:!0})}}),r.a.createElement("i",{className:b()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(u.Component);y.defaultProps={type:"text",placeholder:""};var C,g=y,j=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(o)))).state={},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return r.a.createElement("div",{className:"exchange-bar"},r.a.createElement(g,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),r.a.createElement("button",{className:b()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(u.Component),O=(a(787),function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(a=Object(s.a)(this,(e=Object(i.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(l.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=e.ctype,a=e.amount,n=e.format_expire_time,c=e.limit_course,o=e.invalid,s=e.course_title,i=e.id,l=e.selectedCouponId,u=e.showUseButton;return r.a.createElement("li",{className:"coupon",onClick:this.pick},r.a.createElement("div",{className:b()("coupon-info",o?"invalid":"coupon-type".concat(t))},r.a.createElement("p",{className:"type"},1===t?"\u4ee3\u91d1\u5238":"\u8bfe\u7a0b\u5238"),1===t?r.a.createElement("p",{className:"denomination"},a," ",r.a.createElement("span",null,"\u5143")):r.a.createElement("p",{className:"course-title"},s),r.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",n),l===i&&r.a.createElement("i",{className:b()("iconfont icondanseshixintubiao-5",{check:!o})}),r.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return r.a.createElement("li",{key:t})}))),r.a.createElement("div",{className:"coupon-des"},r.a.createElement("span",{className:"limit"},0===c?"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b":"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),u&&r.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528")))}}]),t}(u.PureComponent)),N=a(3),k=a(63),I=a(39),_=a(20),A=Object(_.b)()(C=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];return(a=Object(s.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(o)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(N.c)("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?N.d.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode}).then(function(e){var n=e.data;if(200===n.code){var c=n.data;if(a.state.showUseButton)a.setState({couponList:[].concat(Object(f.a)(a.state.couponList),[c]),redeemCode:""});else{var o=n.data;2==o.ctype&&o.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(f.a)(a.state.invalid_coupons),[o]),showUseButton:null}):a.setState({valid_coupons:[].concat(Object(f.a)(a.state.valid_coupons),[o]),redeemCode:""})}v.a.info("\u5151\u6362\u6210\u529f"),"/my"===t.from&&a.getMyCoupons(),"/order"===t.from&&a.getAllCoupons()}else v.a.info(n.msg)}):v.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){N.d.get("".concat(API.home,"/m/coupon/all")).then(function(e){var t=e.data;200===t.code?a.setState({couponList:Object(I.isEmpty)(t.data)?[]:t.data}):v.a.info(t.msg)})},a.getAllCoupons=function(){N.d.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(f.a)(n),Object(f.a)(t.data.valid_coupons)):t.data.valid_coupons,invalid_coupons:t.data.invalid_coupons,selectedCouponId:n.length?n[0].id:0})}else v.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props,n=t.history,c=(t.dispatch,a.state.couponList.find(function(t){return t.id===e}));if(e)if(a.state.showUseButton){if(1!==c.ctype)return n.push("/detail?id=".concat(c.limit_course)),!1;n.push("/classify")}else{var o=a.state,s=o.courseId;o.selectedCouponId===e?N.d.post("".concat(API.home,"/m/coupon/cancel"),{course_id:s}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):v.a.info(t.msg)}):N.d.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()):v.a.info(n.msg)})}else v.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a}return Object(l.a)(t,e),Object(o.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 r.a.createElement("div",{className:"use-coupon"},r.a.createElement(j,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),r.a.createElement("div",{className:"coupons-area"},r.a.createElement(w,{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&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),r.a.createElement(w,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))))}}]),t}(u.PureComponent))||C;function w(e){var t=e.coupons,a=Object(d.a)(e,["coupons"]);return 0===t.length?r.a.createElement("div",{className:"empty"},r.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):r.a.createElement("ul",null,t.map(function(e){return r.a.createElement(O,Object.assign({key:e.id},e,{id:e.id},a))}))}var x=Object(k.a)(A),P=a(74),S=(a(788),a(26)),B=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(i.a)(t).call(this,e))).select=function(e,t){a.state.couponAmount>=t.amount&&a.setState({checkedIndex:e})},a.compound=function(){var e=Object(P.a)(Object(P.a)(a));a.state.couponAmount>=10&&N.d.post("".concat(API.home,"/sys/red_packet/compose"),{type:e.state.checkedIndex+1}).then(function(t){200===t.data.code?(e.setState({success:!0}),setTimeout(function(){e.getPatchList()},2e3)):v.a.info(t.data.msg,2)})},a.state={success:!1,checkedIndex:0,list:[{amount:10,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:20,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:50,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:100,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"}],couponAmount:""},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getPatchList()}},{key:"getPatchList",value:function(){var e=this;N.d.get("".concat(API.home,"/sys/red_packet/balance")).then(function(t){200===t.data.code?e.setState({couponAmount:t.data.data.coupon_amount,success:!1}):v.a.info(t.data.msg,2)})}},{key:"render",value:function(){return r.a.createElement("div",{className:"my-patch"},r.a.createElement("div",{className:"couponAmount"},"\u4ee3\u91d1\u5238\u788e\u7247\u4f59\u989d\uff1a",r.a.createElement("span",null,this.state.couponAmount,"\u5143")),r.a.createElement(U,{data:this.state.list,myAmount:this.state.couponAmount,select:this.select,checkedIndex:this.state.checkedIndex}),r.a.createElement("div",{className:"compound-button--compose"},r.a.createElement("button",{className:"compound ".concat(this.state.couponAmount>=10?"disable-active":"disable"),onClick:this.compound},"\u5408\u6210")),r.a.createElement("div",{className:"patch-desc"},r.a.createElement("p",{className:"title"},r.a.createElement("i",null),r.a.createElement("span",null,"\u4ee3\u91d1\u5238\u788e\u7247\u8bf4\u660e"),r.a.createElement("i",null)),r.a.createElement("p",{className:"desc-item"},"1. \u788e\u7247\u53ef\u901a\u8fc7\u201c\u5206\u4eab\u8bfe\u7a0b\u9886\u53d6\u7ea2\u5305\u201d\u83b7\u5f97\uff0c\u4e5f\u53ef\u901a\u8fc7\u7ebf\u4e0a\u6d3b\u52a8\u83b7\u5f97\uff0c\u5177\u4f53\u8bf7\u5173\u6ce8\u5b98\u7f51\u4fe1\u606f\uff1b"),r.a.createElement("p",{className:"desc-item"},"2. \u788e\u7247\u5728\u8d2d\u8bfe\u65f6\u4e0d\u80fd\u5355\u72ec\u4f7f\u7528\uff0c\u53ef\u5408\u6210\u5b8c\u6574\u4ee3\u91d1\u5238\u540e\u7528\u4ee3\u91d1\u5238\u62b5\u6263\u73b0\u91d1\uff1b"),r.a.createElement("p",{className:"desc-item"},"3. \u788e\u7247\u5408\u6210\u4ee3\u91d1\u5238\u540e7\u65e5\u5185\u6709\u6548\u3002")),this.state.success&&r.a.createElement("div",{className:"success"},"\u5151\u6362\u6210\u529f"))}}]),t}(u.PureComponent);function U(e){var t=e.data,a=e.myAmount,n=e.select,c=e.checkedIndex;return r.a.createElement("div",{className:"coupons"},t&&t.length>0&&t.map(function(e,t){return r.a.createElement("div",{className:"items-box",key:t,onClick:function(){return n(t,e)}},r.a.createElement("div",{className:"coupon-info ".concat(a>=e.amount?"active":null)},r.a.createElement("div",{className:"type"},e.type),r.a.createElement("div",{className:"amount"},r.a.createElement("span",null,e.amount),"\u5143"),a>=e.amount&&r.a.createElement("i",{className:"checkout ".concat(t===c?"iconfont icondanseshixintubiao-5":"nochecked")}),r.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return r.a.createElement("li",{key:t})}))),r.a.createElement("div",{className:"coupon-des"},e.desc))}))}var L=Object(k.a)(B),F=(a(789),function(e){function t(){return Object(c.a)(this,t),Object(s.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(l.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=e.match,a=e.location;return r.a.createElement("div",{className:"coupons-box"},r.a.createElement(S.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),r.a.createElement("section",{id:"coupons"},r.a.createElement("div",{className:"tab"},r.a.createElement("div",null,r.a.createElement(p.c,{to:{pathname:"".concat(t.url,"/my-coupon"),search:a.search,state:Object(n.a)({},this.props.location.state)},replace:!0,activeClassName:"tab-active"},"\u6211\u7684\u4f18\u60e0\u5238")),r.a.createElement("div",null,r.a.createElement(p.c,{to:{pathname:"".concat(t.url,"/my-patch"),search:a.search,state:Object(n.a)({},this.props.location.state)},replace:!0,activeClassName:"tab-active"},"\u788e\u7247\u5408\u6210"))),r.a.createElement("div",{className:"btm-border"}),r.a.createElement("div",{className:"coupons-container"},r.a.createElement(m.d,null,r.a.createElement(m.a,{exact:!0,from:"/coupons",to:{pathname:"coupons/my-coupon",search:a.search,state:{from:this.props.location.state&&this.props.location.state.from}}}),r.a.createElement(m.b,{path:"".concat(this.props.match.path,"/my-coupon"),component:x}),r.a.createElement(m.b,{path:"".concat(this.props.match.path,"/my-patch"),component:L})))))}}]),t}(u.Component));t.default=F},784:function(e,t,a){},785:function(e,t,a){},786:function(e,t,a){},787:function(e,t,a){},788:function(e,t,a){},789:function(e,t,a){}}]);
//# sourceMappingURL=coupons.2714119c.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/myCoupons/index.js","components/coupons/myPatch/index.js","components/coupons/index.js"],"names":["Input","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","clearInput","onChange","state","isFocus","_this2","_this$props","type","placeholder","react_default","a","createElement","className","classnames","custom-input--active","value","onBlur","setState","onFocus","hide","length","onClick","Component","defaultProps","RedeemBar","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","_this$props$location$","location","http","post","API","home","code","then","res","data","coupon","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","coupons_RedeemBar","Content","coupons","select","Fragment","purpose","_ref","rest","objectWithoutProperties","coupons_Coupon","assign","WithFullSize","UsePatch","couponAmount","checkedIndex","compound","assertThisInitialized","success","setTimeout","getPatchList","list","desc","_this3","coupon_amount","myPatch_Coupon","myAmount","match","common","title","arrow","react_router_dom","to","pathname","url","search","objectSpread","activeClassName","react_router","exact","path","component","myCoupons","myPatch"],"mappings":"oQAKMA,cAEF,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,KAMVQ,WAAa,WACTP,EAAKD,MAAMS,SAAS,KANpBR,EAAKS,MAAQ,CACTC,SAAS,GAHEV,wEAWV,IAAAW,EAAAR,KAAAS,EACqBT,KAAKJ,MAA1Bc,EADAD,EACAC,KAAMC,EADNF,EACME,YACHJ,EAAYP,KAAKM,MAAjBC,QACR,OACIK,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,eAAe,CAACC,uBAAwBV,IAC9DI,YAAaA,EACbN,SAAUL,KAAKJ,MAAMS,SACrBa,MAAOlB,KAAKJ,MAAMsB,MAClBC,OAAQ,WACJX,EAAKY,SAAS,CACVb,SAAS,KAGjBc,QAAS,WACLb,EAAKY,SAAS,CACVb,SAAS,OAIrBK,EAAAC,EAAAC,cAAA,KACIC,UAAWC,IAAW,mCAAoC,CACtDM,KAAkC,IAA5BtB,KAAKJ,MAAMsB,MAAMK,SAE3BC,QAASxB,KAAKI,qBAvCdqB,aA+CpB9B,EAAM+B,aAAe,CAAChB,KAAM,OAAQC,YAAa,IAElChB,UC5BAgC,6MApBXrB,MAAQ,2EAEC,IAAAG,EACoCT,KAAKJ,MAAvCS,EADFI,EACEJ,SAAUuB,EADZnB,EACYmB,WAAYC,EADxBpB,EACwBoB,SAC7B,OACIjB,EAAAC,EAAAC,cAAA,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OAAAuI,EAAA,EAAAvI,CAAA,GAAKE,KAAKJ,MAAMsE,SAAS5D,QAE1B0F,SAAO,EACPsC,gBAAgB,cANzB,8BAUR1H,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eAEfH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,qBACXH,EAAAC,EAAAC,cAACyH,EAAA,EAAD,KACI3H,EAAAC,EAAAC,cAACyH,EAAA,EAAD,CAAUC,OAAK,EAACzD,KAAK,WAAWkD,GAAI,CAChCC,SAAU,oBAAqBE,OAAQlE,EAASkE,OAAQ9H,MAAO,CAC3DyE,KAAM/E,KAAKJ,MAAMsE,SAAS5D,OAASN,KAAKJ,MAAMsE,SAAS5D,MAAMyE,SAGrEnE,EAAAC,EAAAC,cAACyH,EAAA,EAAD,CAAOE,KAAI,GAAA3F,OAAK9C,KAAKJ,MAAMgI,MAAMa,KAAtB,cAAwCC,UAAWC,IAC9D/H,EAAAC,EAAAC,cAACyH,EAAA,EAAD,CAAOE,KAAI,GAAA3F,OAAK9C,KAAKJ,MAAMgI,MAAMa,KAAtB,aAAuCC,UAAWE,eAvCnEnH,cAiDP2E","file":"mrstatic/js/coupons.2714119c.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n isFocus: false\n }\n }\n\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n const { isFocus } = this.state;\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input',{'custom-input--active': isFocus})}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n onBlur={() => {\n this.setState({\n isFocus: false\n })\n }}\n onFocus={() => {\n this.setState({\n isFocus: true\n })\n }}\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 './index.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 { connect } from 'react-redux';\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 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 <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);","import React, {PureComponent} from 'react';\nimport './index.scss'\n\nimport {http, getParam} from '@/utils'\nimport {WithFullSize} from '@/HOCs'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\";\n\nclass UsePatch extends PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n success: false,\n checkedIndex: 0,\n list: [\n {\n amount: 10,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 20,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 50,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 100,\n desc: '兑换后7日内有效',\n type: '代金券'\n }\n ],\n couponAmount: '', // 碎片额度\n };\n }\n\n componentDidMount() {\n this.getPatchList()\n }\n\n // 选中\n select = (index, item) => {\n if (this.state.couponAmount >= item.amount) {\n this.setState({\n checkedIndex: index\n })\n }\n }\n\n // 合成\n compound = () => {\n const _this = this\n if (this.state.couponAmount >= 10) {\n http.post(`${API.home}/sys/red_packet/compose`, {type: _this.state.checkedIndex + 1}).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n success: true\n })\n setTimeout(() => {\n _this.getPatchList()\n }, 2000)\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n\n getPatchList() {\n http.get(`${API.home}/sys/red_packet/balance`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n couponAmount: res.data.data.coupon_amount,\n success: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n render() {\n return (\n <div className='my-patch'>\n <div className={'couponAmount'}>\n 代金券碎片余额:<span>{this.state.couponAmount}元</span>\n </div>\n\n <Coupon data={this.state.list}\n myAmount={this.state.couponAmount}\n select={this.select}\n checkedIndex={this.state.checkedIndex}/>\n <div className=\"compound-button--compose\">\n <button\n className={`compound ${this.state.couponAmount >= 10 ? 'disable-active' : 'disable'}`}\n onClick={this.compound}>合成\n </button>\n </div>\n\n <div className=\"patch-desc\">\n <p className={'title'}><i></i><span>代金券碎片说明</span><i></i></p>\n <p className={'desc-item'}>1. 碎片可通过“分享课程领取红包”获得,也可通过线上活动获得,具体请关注官网信息;</p>\n <p className={'desc-item'}>2. 碎片在购课时不能单独使用,可合成完整代金券后用代金券抵扣现金;</p>\n <p className={'desc-item'}>3. 碎片合成代金券后7日内有效。</p>\n </div>\n \n {\n this.state.success &&\n <div className=\"success\">\n 兑换成功\n </div>\n }\n </div>\n );\n }\n}\n\nfunction Coupon(props) {\n const {data, myAmount, select, checkedIndex} = props\n return (\n <div className={'coupons'}>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <div className='items-box' key={index} onClick={() => select(index, item)}>\n <div className={`coupon-info ${myAmount >= item.amount ? 'active' : null}`}>\n <div className=\"type\">{item.type}</div>\n <div className={'amount'}><span>{item.amount}</span>元</div>\n\n {\n myAmount >= item.amount &&\n <i className={`checkout ${index === checkedIndex ? 'iconfont icondanseshixintubiao-5' : 'nochecked'}`}\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\n <div className={'coupon-des'}>\n {item.desc}\n </div>\n </div>\n )\n })\n }\n </div>\n )\n}\n\n\nexport default WithFullSize(UsePatch);","import React, { Component } from 'react'\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport myCoupons from \"./myCoupons\"\nimport myPatch from './myPatch'\nimport { HeaderBar } from \"@/common\";\nimport './coupons.scss'\n\n\nclass coupons extends Component {\n render() {\n const {match, location} = this.props;\n return (\n <div className={'coupons-box'}>\n <HeaderBar title='优惠券' arrow={true}/>\n <section id='coupons'>\n <div className='tab'>\n <div>\n <NavLink to={{\n pathname: `${match.url}/my-coupon`,\n search: location.search,\n state: {...this.props.location.state}\n }}\n replace\n activeClassName='tab-active'\n >我的优惠券</NavLink>\n </div>\n <div>\n <NavLink to={{\n pathname: `${match.url}/my-patch`,\n search: location.search,\n state: {...this.props.location.state}\n }}\n replace\n activeClassName='tab-active'\n >碎片合成</NavLink>\n </div>\n </div>\n <div className=\"btm-border\"></div>\n\n <div className=\"coupons-container\">\n <Switch>\n <Redirect exact from='/coupons' to={{\n pathname: 'coupons/my-coupon', search: location.search, state: {\n from: this.props.location.state && this.props.location.state.from\n }\n }}/>\n <Route path={`${this.props.match.path}/my-coupon`} component={myCoupons}/>\n <Route path={`${this.props.match.path}/my-patch`} component={myPatch}/>\n </Switch>\n </div>\n </section>\n </div>\n )\n }\n\n}\n\nexport default coupons;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1195:function(e,t,a){"use strict";a.r(t);var n=a(19),o=a(5),c=a(7),s=a(6),i=a(8),r=a(9),u=a(0),l=a.n(u),p=a(15),m=a(48),d=a(21),h=(a(41),a(13)),f=a.n(h),v=a(149),E=(a(784),a(785),a(786),a(16)),C=a.n(E),b=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(i.a)(t).call(this,e))).clearInput=function(){a.props.onChange("")},a.state={isFocus:!1},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.type,n=t.placeholder,o=this.state.isFocus;return l.a.createElement("div",{className:"custom-input-wrapper"},l.a.createElement("input",{type:a,className:C()("custom-input",{"custom-input--active":o}),placeholder:n,onChange:this.props.onChange,value:this.props.value,onBlur:function(){e.setState({isFocus:!1})},onFocus:function(){e.setState({isFocus:!0})}}),l.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(u.Component);b.defaultProps={type:"text",placeholder:""};var y,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(i.a)(t)).call.apply(e,[this].concat(c)))).state={},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return l.a.createElement("div",{className:"exchange-bar"},l.a.createElement(g,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),l.a.createElement("button",{className:C()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(u.Component),j=(a(787),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(i.a)(t)).call.apply(e,[this].concat(c)))).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.ExchangeCourse=function(e){a.props.toExchangeCourse(e,a.props.code)},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.ctype,n=t.amount,o=t.format_expire_time,c=t.limit_course,s=t.invalid,i=t.course_title,r=t.id,u=(t.code,t.selectedCouponId),p=t.showUseButton;return l.a.createElement("li",{className:"coupon",onClick:this.pick},l.a.createElement("div",{className:C()("coupon-info",s?"invalid":"coupon-type".concat(a))},l.a.createElement("p",{className:"type"},1===a?"\u4ee3\u91d1\u5238":"\u8bfe\u7a0b\u5238"),1===a?l.a.createElement("p",{className:"denomination"},n," ",l.a.createElement("span",null,"\u5143")):l.a.createElement("p",{className:"course-title"},i),l.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",o),u===r&&l.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-5",{check:!s})}),l.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return l.a.createElement("li",{key:t})}))),l.a.createElement("div",{className:"coupon-des"},l.a.createElement("span",{className:"limit"},0===c?"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b":"\u4ec5\u9002\u7528\u4e8e\u300a".concat(i,"\u300b")),p&&1==a&&l.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528"),p&&2==a&&l.a.createElement("button",{className:"use",onClick:function(t){return e.ExchangeCourse(t)}},"\u7acb\u5373\u5151\u6362")))}}]),t}(u.PureComponent)),O=a(3),k=a(63),x=a(39),_=a(20),I=Object(_.b)()(y=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(i.a)(t)).call.apply(e,[this].concat(c)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(O.c)("id"),showUseButton:!1,courseCouponExchange:!1,courseCouponData:""},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?O.d.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(2==o.ctype)a.setState({courseCouponData:o,courseCouponExchange:!0,redeemCode:""});else{if(a.state.showUseButton)a.setState({couponList:[].concat(Object(v.a)(a.state.couponList),[o]),redeemCode:""});else{var c=n.data;a.setState({valid_coupons:[].concat(Object(v.a)(a.state.valid_coupons),[c]),redeemCode:""})}f.a.info("\u5151\u6362\u6210\u529f"),"/my"===t.from&&a.getMyCoupons(),"/order"===t.from&&a.getAllCoupons()}}else f.a.info(n.msg)}):f.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){O.d.get("".concat(API.home,"/m/coupon/all")).then(function(e){var t=e.data;200===t.code?a.setState({couponList:Object(x.isEmpty)(t.data)?[]:t.data}):f.a.info(t.msg)})},a.getAllCoupons=function(){O.d.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(v.a)(n),Object(v.a)(t.data.valid_coupons)):t.data.valid_coupons,invalid_coupons:t.data.invalid_coupons,selectedCouponId:n.length?n[0].id:0})}else f.a.info(t.msg)})},a.toExchangeCourse=function(e,t){e.stopPropagation(),O.d.post("".concat(API["base-api"],"/pay/miandan/").concat(t),{}).then(function(e){var t=e.data;200===t.errno?(a.setState({courseCouponExchange:!0,courseCouponData:e.data.data}),a.getMyCoupons()):f.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(0!==o.limit_course)return n.push("/detail?id=".concat(o.limit_course)),!1;n.push("/classify")}else{var c=a.state,s=c.courseId;c.selectedCouponId===e?O.d.post("".concat(API.home,"/m/coupon/cancel"),{course_id:s}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):f.a.info(t.msg)}):O.d.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()):f.a.info(n.msg)})}else f.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a.toStudy=function(e,t){var n=a.props.history;0==t?f.a.info("\u5c1a\u672a\u5f00\u8bfe\uff0c\u5f00\u8bfe\u540e\u7acb\u5373\u4e0a\u4f20\u8bfe\u7a0b\uff5e",2):n.push("/play/video?id=".concat(e)),a.setState({courseCouponExchange:!1})},a.closeFreeCourse=function(){a.setState({courseCouponExchange:!1})},a}return Object(r.a)(t,e),Object(c.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 l.a.createElement("div",{className:"use-coupon"},l.a.createElement(N,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),l.a.createElement("div",{className:"coupons-area"},l.a.createElement(A,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon,toExchangeCourse:this.toExchangeCourse}),this.state.invalid_coupons.length>0&&l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),l.a.createElement(A,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))),this.state.courseCouponExchange&&l.a.createElement(S,{toStudy:this.toStudy,closeFreeCourse:this.closeFreeCourse,courseCouponData:this.state.courseCouponData}))}}]),t}(u.PureComponent))||y;function A(e){var t=e.coupons,a=Object(d.a)(e,["coupons"]);return 0===t.length?l.a.createElement("div",{className:"empty"},l.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):l.a.createElement("ul",null,t.map(function(e){return l.a.createElement(j,Object.assign({key:e.id},e,{id:e.id},a))}))}function S(e){var t=e.toStudy,a=e.closeFreeCourse,n=e.courseCouponData;return l.a.createElement("div",{className:"free-coupon-box"},l.a.createElement("div",{className:"free-coupon-content"},l.a.createElement("div",{className:"coures-content-success"},l.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"})),l.a.createElement("div",{className:"coures-content-title"},"\u606d\u559c\u4f60\u8bfe\u7a0b\u5151\u6362\u6210\u529f!\u8d76\u5feb\u53bb\u5b66\u4e60\u5427~"),l.a.createElement("img",{className:"coures-content-img",src:n.image_name,alt:""}),0!=n.course_expire&&l.a.createElement("div",{className:"coures-content-tip"},l.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),l.a.createElement("span",null,"\u8bfe\u7a0b\u6709\u6548\u671f\uff1a\u81ea\u4eca\u65e5\u8d77",n.course_expire,"\u5929\u5185\uff0c\u8bf7\u5728\u6709\u6548\u671f\u5185\u5b66\u4e60\u8be5\u8bfe\u7a0b\u54e6\uff5e")),l.a.createElement("a",{className:"toStudy",onClick:function(){return t(n.v_course_id,n.is_is_start)}},"\u53bb\u5b66\u4e60")),l.a.createElement("div",{className:"free-coupon-close"},l.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:function(){return a()}})))}var w=Object(k.a)(I),P=a(74),B=(a(788),a(26)),F=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(s.a)(this,Object(i.a)(t).call(this,e))).select=function(e,t){a.state.couponAmount>=t.amount&&a.setState({checkedIndex:e})},a.compound=function(){var e=Object(P.a)(Object(P.a)(a));a.state.couponAmount>=10&&O.d.post("".concat(API.home,"/sys/red_packet/compose"),{type:e.state.checkedIndex+1}).then(function(t){200===t.data.code?(e.setState({success:!0}),setTimeout(function(){e.getPatchList()},2e3)):f.a.info(t.data.msg,2)})},a.state={success:!1,checkedIndex:0,list:[{amount:10,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:20,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:50,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"},{amount:100,desc:"\u5151\u6362\u540e7\u65e5\u5185\u6709\u6548",type:"\u4ee3\u91d1\u5238"}],couponAmount:""},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getPatchList()}},{key:"getPatchList",value:function(){var e=this;O.d.get("".concat(API.home,"/sys/red_packet/balance")).then(function(t){200===t.data.code?e.setState({couponAmount:t.data.data.coupon_amount,success:!1}):f.a.info(t.data.msg,2)})}},{key:"render",value:function(){return l.a.createElement("div",{className:"my-patch"},l.a.createElement("div",{className:"couponAmount"},"\u4ee3\u91d1\u5238\u788e\u7247\u4f59\u989d\uff1a",l.a.createElement("span",null,this.state.couponAmount,"\u5143")),l.a.createElement(L,{data:this.state.list,myAmount:this.state.couponAmount,select:this.select,checkedIndex:this.state.checkedIndex}),l.a.createElement("div",{className:"compound-button--compose"},l.a.createElement("button",{className:"compound ".concat(this.state.couponAmount>=10?"disable-active":"disable"),onClick:this.compound},"\u5408\u6210")),l.a.createElement("div",{className:"patch-desc"},l.a.createElement("p",{className:"title"},l.a.createElement("i",null),l.a.createElement("span",null,"\u4ee3\u91d1\u5238\u788e\u7247\u8bf4\u660e"),l.a.createElement("i",null)),l.a.createElement("p",{className:"desc-item"},"1. \u788e\u7247\u53ef\u901a\u8fc7\u201c\u5206\u4eab\u8bfe\u7a0b\u9886\u53d6\u7ea2\u5305\u201d\u83b7\u5f97\uff0c\u4e5f\u53ef\u901a\u8fc7\u7ebf\u4e0a\u6d3b\u52a8\u83b7\u5f97\uff0c\u5177\u4f53\u8bf7\u5173\u6ce8\u5b98\u7f51\u4fe1\u606f\uff1b"),l.a.createElement("p",{className:"desc-item"},"2. \u788e\u7247\u5728\u8d2d\u8bfe\u65f6\u4e0d\u80fd\u5355\u72ec\u4f7f\u7528\uff0c\u53ef\u5408\u6210\u5b8c\u6574\u4ee3\u91d1\u5238\u540e\u7528\u4ee3\u91d1\u5238\u62b5\u6263\u73b0\u91d1\uff1b"),l.a.createElement("p",{className:"desc-item"},"3. \u788e\u7247\u5408\u6210\u4ee3\u91d1\u5238\u540e7\u65e5\u5185\u6709\u6548\u3002")),this.state.success&&l.a.createElement("div",{className:"success"},"\u5151\u6362\u6210\u529f"))}}]),t}(u.PureComponent);function L(e){var t=e.data,a=e.myAmount,n=e.select,o=e.checkedIndex;return l.a.createElement("div",{className:"coupons"},t&&t.length>0&&t.map(function(e,t){return l.a.createElement("div",{className:"items-box",key:t,onClick:function(){return n(t,e)}},l.a.createElement("div",{className:"coupon-info ".concat(a>=e.amount?"active":null)},l.a.createElement("div",{className:"type"},e.type),l.a.createElement("div",{className:"amount"},l.a.createElement("span",null,e.amount),"\u5143"),a>=e.amount&&l.a.createElement("i",{className:"checkout ".concat(t===o?"iconfont icondanseshixintubiao-5":"nochecked")}),l.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return l.a.createElement("li",{key:t})}))),l.a.createElement("div",{className:"coupon-des"},e.desc))}))}var U=Object(k.a)(F),D=(a(789),function(e){function t(){return Object(o.a)(this,t),Object(s.a)(this,Object(i.a)(t).apply(this,arguments))}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.match,a=e.location;return l.a.createElement("div",{className:"coupons-box"},l.a.createElement(B.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),l.a.createElement("section",{id:"coupons"},l.a.createElement("div",{className:"tab"},l.a.createElement("div",null,l.a.createElement(p.c,{to:{pathname:"".concat(t.url,"/my-coupon"),search:a.search,state:Object(n.a)({},this.props.location.state)},replace:!0,activeClassName:"tab-active"},"\u6211\u7684\u4f18\u60e0\u5238")),l.a.createElement("div",null,l.a.createElement(p.c,{to:{pathname:"".concat(t.url,"/my-patch"),search:a.search,state:Object(n.a)({},this.props.location.state)},replace:!0,activeClassName:"tab-active"},"\u788e\u7247\u5408\u6210"))),l.a.createElement("div",{className:"btm-border"}),l.a.createElement("div",{className:"coupons-container"},l.a.createElement(m.d,null,l.a.createElement(m.a,{exact:!0,from:"/coupons",to:{pathname:"coupons/my-coupon",search:a.search,state:{from:this.props.location.state&&this.props.location.state.from}}}),l.a.createElement(m.b,{path:"".concat(this.props.match.path,"/my-coupon"),component:w}),l.a.createElement(m.b,{path:"".concat(this.props.match.path,"/my-patch"),component:U})))))}}]),t}(u.Component));t.default=D},784:function(e,t,a){},785:function(e,t,a){},786:function(e,t,a){},787:function(e,t,a){},788:function(e,t,a){},789:function(e,t,a){}}]);
//# sourceMappingURL=coupons.d09938c6.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/myCoupons/index.js","components/coupons/myPatch/index.js","components/coupons/index.js"],"names":["Input","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","clearInput","onChange","state","isFocus","_this2","_this$props","type","placeholder","react_default","a","createElement","className","classnames","custom-input--active","value","onBlur","setState","onFocus","hide","length","onClick","Component","defaultProps","RedeemBar","redeemCode","exchange","coupons_Input","active","Coupon","pick","useCoupon","invalid","id","GoToUse","ExchangeCourse","e","toExchangeCourse","code","_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","courseCouponExchange","courseCouponData","handleChange","target","_this$props$location$","location","http","post","API","home","then","res","data","coupon","toConsumableArray","toast_default","info","from","getMyCoupons","getAllCoupons","msg","get","isEmpty","course_id","inuse_coupon","stopPropagation","errno","val","history","dispatch","find","push","_this$state","coupon_id","goBack","reload","toStudy","vCourseId","isHaveVideo","closeFreeCourse","replace","_this$state2","coupons_RedeemBar","Content","coupons","select","Fragment","purpose","FreeCouponCourse","_ref","rest","objectWithoutProperties","coupons_Coupon","assign","src","image_name","alt","course_expire","v_course_id","is_is_start","WithFullSize","UsePatch","couponAmount","checkedIndex","compound","assertThisInitialized","success","setTimeout","getPatchList","list","desc","_this3","coupon_amount","myPatch_Coupon","myAmount","match","common","title","arrow","react_router_dom","to","pathname","url","search","objectSpread","activeClassName","react_router","exact","path","component","myCoupons","myPatch"],"mappings":"oQAKMA,cAEF,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,KAMVQ,WAAa,WACTP,EAAKD,MAAMS,SAAS,KANpBR,EAAKS,MAAQ,CACTC,SAAS,GAHEV,wEAWV,IAAAW,EAAAR,KAAAS,EACqBT,KAAKJ,MAA1Bc,EADAD,EACAC,KAAMC,EADNF,EACME,YACHJ,EAAYP,KAAKM,MAAjBC,QACR,OACIK,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,eAAe,CAACC,uBAAwBV,IAC9DI,YAAaA,EACbN,SAAUL,KAAKJ,MAAMS,SACrBa,MAAOlB,KAAKJ,MAAMsB,MAClBC,OAAQ,WACJX,EAAKY,SAAS,CACVb,SAAS,KAGjBc,QAAS,WACLb,EAAKY,SAAS,CACVb,SAAS,OAIrBK,EAAAC,EAAAC,cAAA,KACIC,UAAWC,IAAW,mCAAoC,CACtDM,KAAkC,IAA5BtB,KAAKJ,MAAMsB,MAAMK,SAE3BC,QAASxB,KAAKI,qBAvCdqB,aA+CpB9B,EAAM+B,aAAe,CAAChB,KAAM,OAAQC,YAAa,IAElChB,UC5BAgC,6MApBXrB,MAAQ,2EAEC,IAAAG,EACoCT,KAAKJ,MAAvCS,EADFI,EACEJ,SAAUuB,EADZnB,EACYmB,WAAYC,EADxBpB,EACwBoB,SAC7B,OACIjB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACXH,EAAAC,EAAAC,cAACgB,EAAD,CACInB,YAAa,uCACbN,SAAUA,EACVa,MAAOU,IAEXhB,EAAAC,EAAAC,c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F,EAAAC,EAAAC,cAACmI,EAAA,EAAD,CAASC,GAAI,CACTC,SAAQ,GAAAjG,OAAK2F,EAAMO,IAAX,cACRC,OAAQ9E,EAAS8E,OACjB/I,MAAMR,OAAAwJ,EAAA,EAAAxJ,CAAA,GAAKE,KAAKJ,MAAM2E,SAASjE,QAE1BoG,SAAO,EACP6C,gBAAgB,cANzB,mCASJ3I,EAAAC,EAAAC,cAAA,WACIF,EAAAC,EAAAC,cAACmI,EAAA,EAAD,CAASC,GAAI,CACTC,SAAQ,GAAAjG,OAAK2F,EAAMO,IAAX,aACRC,OAAQ9E,EAAS8E,OACjB/I,MAAMR,OAAAwJ,EAAA,EAAAxJ,CAAA,GAAKE,KAAKJ,MAAM2E,SAASjE,QAE1BoG,SAAO,EACP6C,gBAAgB,cANzB,8BAUR3I,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eAEfH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,qBACXH,EAAAC,EAAAC,cAAC0I,EAAA,EAAD,KACI5I,EAAAC,EAAAC,cAAC0I,EAAA,EAAD,CAAUC,OAAK,EAACtE,KAAK,WAAW+D,GAAI,CAChCC,SAAU,oBAAqBE,OAAQ9E,EAAS8E,OAAQ/I,MAAO,CAC3D6E,KAAMnF,KAAKJ,MAAM2E,SAASjE,OAASN,KAAKJ,MAAM2E,SAASjE,MAAM6E,SAGrEvE,EAAAC,EAAAC,cAAC0I,EAAA,EAAD,CAAOE,KAAI,GAAAxG,OAAKlD,KAAKJ,MAAMiJ,MAAMa,KAAtB,cAAwCC,UAAWC,IAC9DhJ,EAAAC,EAAAC,cAAC0I,EAAA,EAAD,CAAOE,KAAI,GAAAxG,OAAKlD,KAAKJ,MAAMiJ,MAAMa,KAAtB,aAAuCC,UAAWE,eAvCnEpI,cAiDPqF","file":"mrstatic/js/coupons.d09938c6.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n isFocus: false\n }\n }\n\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n const { isFocus } = this.state;\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input',{'custom-input--active': isFocus})}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n onBlur={() => {\n this.setState({\n isFocus: false\n })\n }}\n onFocus={() => {\n this.setState({\n isFocus: true\n })\n }}\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\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n ExchangeCourse = (e) => {\n this.props.toExchangeCourse(e,this.props.code)\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 code,\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 && ctype == 1 &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n {\n showUseButton && ctype == 2 &&\n <button\n className='use'\n onClick={(e)=>this.ExchangeCourse(e)}\n >立即兑换\n </button>\n }\n\n </div>\n </li>\n );\n }\n}\n\nexport default Coupon","import React, {PureComponent} from 'react';\nimport './index.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 {connect} from 'react-redux';\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 courseCouponExchange: false, // 课程券兑换弹窗\n courseCouponData: '' // 兑换课程信息\n }\n\n componentDidMount() {\n const {history, location} = this.props\n\n const {state} = this.props.location\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 // 兑换\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 (coupon['ctype'] == 2) {\n this.setState({\n courseCouponData: coupon,\n courseCouponExchange: true,\n redeemCode: ''\n })\n } else {\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 this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n Toast.info('兑换成功')\n if (state.from === '/my') {\n this.getMyCoupons()\n }\n if (state.from === '/order') {\n this.getAllCoupons()\n }\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 // 立即兑换课程\n toExchangeCourse = (e,code)=>{\n e.stopPropagation();\n http.post(`${API['base-api']}/pay/miandan/${code}`, {\n }).then(res => {\n const data = res.data\n if (data.errno === 200) {\n this.setState({\n courseCouponExchange: true,\n courseCouponData:res.data.data\n })\n this.getMyCoupons()\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['limit_course'] === 0) {\n history.push(`/classify`)\n } else {\n history.push(`/detail?id=${coupon['limit_course']}`);\n return false;\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 // 开始学习\n toStudy = (vCourseId, isHaveVideo) => {\n const {history} = this.props;\n if (isHaveVideo == 0) {\n Toast.info('尚未开课,开课后立即上传课程~', 2)\n } else {\n history.push(`/play/video?id=${vCourseId}`)\n }\n this.setState({\n courseCouponExchange: false\n })\n }\n\n // 关闭弹窗\n closeFreeCourse = () => {\n this.setState({\n courseCouponExchange: false\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 <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 toExchangeCourse={this.toExchangeCourse}\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 {\n this.state.courseCouponExchange &&\n <FreeCouponCourse toStudy={this.toStudy} closeFreeCourse={this.closeFreeCourse}\n courseCouponData={this.state.courseCouponData}/>\n }\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\nfunction FreeCouponCourse(props) {\n const {toStudy, closeFreeCourse, courseCouponData} = props\n return (\n <div className=\"free-coupon-box\">\n <div className=\"free-coupon-content\">\n <div className=\"coures-content-success\"><i className={'iconfont icondanseshixintubiao-5'}/></div>\n <div className=\"coures-content-title\">恭喜你课程兑换成功!赶快去学习吧~</div>\n <img className=\"coures-content-img\" src={courseCouponData.image_name} alt=\"\"/>\n {\n courseCouponData.course_expire != 0 &&\n <div className=\"coures-content-tip\"><i\n className={'iconfont icondanseshixintubiao-8'}/><span>课程有效期:自今日起{courseCouponData.course_expire}天内,请在有效期内学习该课程哦~</span>\n </div>\n }\n\n <a className='toStudy'\n onClick={() => toStudy(courseCouponData.v_course_id, courseCouponData.is_is_start)}>去学习</a>\n </div>\n <div className=\"free-coupon-close\">\n <i className={'iconfont iconiconfront-2'} onClick={() => closeFreeCourse()}/>\n </div>\n </div>\n )\n}\n\nexport default WithFullSize(UseCoupon);","import React, {PureComponent} from 'react';\nimport './index.scss'\n\nimport {http, getParam} from '@/utils'\nimport {WithFullSize} from '@/HOCs'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\";\n\nclass UsePatch extends PureComponent {\n constructor(props) {\n super(props);\n this.state = {\n success: false,\n checkedIndex: 0,\n list: [\n {\n amount: 10,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 20,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 50,\n desc: '兑换后7日内有效',\n type: '代金券'\n },\n {\n amount: 100,\n desc: '兑换后7日内有效',\n type: '代金券'\n }\n ],\n couponAmount: '', // 碎片额度\n };\n }\n\n componentDidMount() {\n this.getPatchList()\n }\n\n // 选中\n select = (index, item) => {\n if (this.state.couponAmount >= item.amount) {\n this.setState({\n checkedIndex: index\n })\n }\n }\n\n // 合成\n compound = () => {\n const _this = this\n if (this.state.couponAmount >= 10) {\n http.post(`${API.home}/sys/red_packet/compose`, {type: _this.state.checkedIndex + 1}).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n success: true\n })\n setTimeout(() => {\n _this.getPatchList()\n }, 2000)\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n\n getPatchList() {\n http.get(`${API.home}/sys/red_packet/balance`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n couponAmount: res.data.data.coupon_amount,\n success: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n render() {\n return (\n <div className='my-patch'>\n <div className={'couponAmount'}>\n 代金券碎片余额:<span>{this.state.couponAmount}元</span>\n </div>\n\n <Coupon data={this.state.list}\n myAmount={this.state.couponAmount}\n select={this.select}\n checkedIndex={this.state.checkedIndex}/>\n <div className=\"compound-button--compose\">\n <button\n className={`compound ${this.state.couponAmount >= 10 ? 'disable-active' : 'disable'}`}\n onClick={this.compound}>合成\n </button>\n </div>\n\n <div className=\"patch-desc\">\n <p className={'title'}><i></i><span>代金券碎片说明</span><i></i></p>\n <p className={'desc-item'}>1. 碎片可通过“分享课程领取红包”获得,也可通过线上活动获得,具体请关注官网信息;</p>\n <p className={'desc-item'}>2. 碎片在购课时不能单独使用,可合成完整代金券后用代金券抵扣现金;</p>\n <p className={'desc-item'}>3. 碎片合成代金券后7日内有效。</p>\n </div>\n \n {\n this.state.success &&\n <div className=\"success\">\n 兑换成功\n </div>\n }\n </div>\n );\n }\n}\n\nfunction Coupon(props) {\n const {data, myAmount, select, checkedIndex} = props\n return (\n <div className={'coupons'}>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <div className='items-box' key={index} onClick={() => select(index, item)}>\n <div className={`coupon-info ${myAmount >= item.amount ? 'active' : null}`}>\n <div className=\"type\">{item.type}</div>\n <div className={'amount'}><span>{item.amount}</span>元</div>\n\n {\n myAmount >= item.amount &&\n <i className={`checkout ${index === checkedIndex ? 'iconfont icondanseshixintubiao-5' : 'nochecked'}`}\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\n <div className={'coupon-des'}>\n {item.desc}\n </div>\n </div>\n )\n })\n }\n </div>\n )\n}\n\n\nexport default WithFullSize(UsePatch);","import React, { Component } from 'react'\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport myCoupons from \"./myCoupons\"\nimport myPatch from './myPatch'\nimport { HeaderBar } from \"@/common\";\nimport './coupons.scss'\n\n\nclass coupons extends Component {\n render() {\n const {match, location} = this.props;\n return (\n <div className={'coupons-box'}>\n <HeaderBar title='优惠券' arrow={true}/>\n <section id='coupons'>\n <div className='tab'>\n <div>\n <NavLink to={{\n pathname: `${match.url}/my-coupon`,\n search: location.search,\n state: {...this.props.location.state}\n }}\n replace\n activeClassName='tab-active'\n >我的优惠券</NavLink>\n </div>\n <div>\n <NavLink to={{\n pathname: `${match.url}/my-patch`,\n search: location.search,\n state: {...this.props.location.state}\n }}\n replace\n activeClassName='tab-active'\n >碎片合成</NavLink>\n </div>\n </div>\n <div className=\"btm-border\"></div>\n\n <div className=\"coupons-container\">\n <Switch>\n <Redirect exact from='/coupons' to={{\n pathname: 'coupons/my-coupon', search: location.search, state: {\n from: this.props.location.state && this.props.location.state.from\n }\n }}/>\n <Route path={`${this.props.match.path}/my-coupon`} component={myCoupons}/>\n <Route path={`${this.props.match.path}/my-patch`} component={myPatch}/>\n </Switch>\n </div>\n </section>\n </div>\n )\n }\n\n}\n\nexport default coupons;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1179:function(e,t,a){"use strict";a.r(t);a(41);var s=a(13),i=a.n(s),c=a(5),n=a(7),r=a(6),o=a(8),l=a(9),u=a(0),d=a.n(u),m=(a(895),a(26)),p=a(3),f=a(15),h=a(20),v=(a(73),a(62)),E=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.d.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(n.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),!t.is_aist&&1==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return d.a.createElement(m.j,{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)},895:function(e,t,a){}}]);
//# sourceMappingURL=purchased.cf5de182.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1179:function(e,t,a){"use strict";a.r(t);a(41);var s=a(13),i=a.n(s),c=a(5),n=a(7),r=a(6),o=a(8),l=a(9),u=a(0),d=a.n(u),m=(a(895),a(26)),p=a(3),f=a(15),h=a(20),E=(a(73),a(62)),_=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.d.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(n.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(E.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),!t.is_aist&&1==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),c=t.course_expire&&""!=t.course_expire&&d.a.createElement("span",{className:"course-expire"},t.course_expire);return d.a.createElement(m.j,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,courseExpire:c,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)(_)},895:function(e,t,a){}}]);
//# sourceMappingURL=purchased.110a3857.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_zhanghaozhe_server_mr_julyedu_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","contact_type","course_qq","status","courseExpire","course_expire","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"yOAUMA,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,cAACE,EAAA,EAAD,CAAWC,OAAO,EAAMC,MAAM,2BAAOC,MAAM,EAAOC,OAAO,QACzDP,EAAAb,EAAAc,cAACO,EAAA,EAAD,CAASvB,UAAWf,KAAK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,CAAMC,GAAG,aAAT,gCA9FRC,aAwGTC,sBACX,SAAApC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFWkC,CAGbnE","file":"mrstatic/js/purchased.110a3857.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 {\n item.is_aist &&\n <div className='des'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='des'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='des'>班主任微信:{item.course_qq}</div>\n }\n </div>\n )\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n const courseExpire = (\n item.course_expire && item.course_expire!='' &&\n <span className='course-expire'>{item.course_expire}</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 courseExpire={courseExpire}\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_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_zhanghaozhe_server_mr_julyedu_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_zhanghaozhe_server_mr_julyedu_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","contact_type","course_qq","status","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"yOAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACf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AAGC,UAAU,2BAA2BS,EAAKM,mBAGzCN,EAAKO,SACAlB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iCAA2BS,EAAKQ,gBAGpCR,EAAKO,SAAgC,GAArBP,EAAKS,cAAqBT,EAAKU,WAChDrB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iBAA0BS,EAAKU,YAG9BV,EAAKO,SAAgC,GAArBP,EAAKS,cAAqBT,EAAKU,WAChDrB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,uCAA4BS,EAAKU,YAIvCC,EACFX,EAAKO,SAAWlB,EAAAb,EAAAc,cAAA,QAAMC,UAAU,UAAhB,gBAEpB,OACIF,EAAAb,EAAAc,cAACE,EAAA,EAAD,CACIoB,IAAKX,EACLY,IAAKb,EAAKc,WACVlC,GAAIoB,EAAKI,UACT3B,KAAMyB,EACNS,OAAQA,EACRI,SAAU7B,EAAKP,oBAMjCU,EAAAb,EAAAc,cAAA,OAAKC,UAAU,YACbF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,aAAb,mFACAF,EAAAb,EAAAc,cAAC0B,EAAA,EAAD,CAAMC,GAAG,aAAT,gCAzFRC,aAmGTC,sBACX,SAAAlC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFWgC,CAGbjE","file":"mrstatic/js/purchased.cf5de182.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 {\n item.is_aist &&\n <div className='des'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='des'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='des'>班主任微信:{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,d=r[0],f=r[1],i=r[2],u=0,l=[];u<d.length;u++)a=d[u],o[a]&&l.push(o[a][0]),o[a]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,i||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var n={},a={21:0},o={21:0},c=[];function d(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,d),t.l=!0,t.exports}d.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,6:1,8:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,19:1,20:1,22:1,23:1,24:1,25:1,26:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"41f52958",2:"f2f19957",3:"16a64650",4:"85889ffd",5:"2e7d81ca",6:"f2cc3163",7:"31d6cfe0",8:"8bb031ea",9:"31d6cfe0",10:"e5315535",11:"cda7a495",12:"2649d43f",13:"278ad3b1",14:"3a4dbb7a",15:"bef8c404",16:"de0ae9dc",17:"8d310f0f",19:"3ae12dec",20:"1daf107b",22:"fab97849",23:"f09a5959",24:"5e9927d1",25:"49988cae",26:"b57a1aec",28:"31d6cfe0",29:"4c706a4e",30:"2471f477",31:"0bb224f2",32:"5ed15c7e",33:"ecbb6f9a"}[e]+".chunk.css",o=d.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===n||i===o))return r()}var u=document.getElementsByTagName("style");for(f=0;f<u.length;f++){var s;if((i=(s=u[f]).getAttribute("data-href"))===n||i===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,d.nc&&f.setAttribute("nonce",d.nc),f.src=function(e){return d.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[e]||e)+"."+{0:"837f6eaa",1:"0f59b9f9",2:"e26d4c3e",3:"d4453df8",4:"2a80c718",5:"ed55ff6d",6:"8ba14c3b",7:"3db14bda",8:"273ad8e6",9:"5e894d30",10:"f6809d1e",11:"cfe7dec3",12:"ff3e0918",13:"4e250fd0",14:"d16852d2",15:"06124eb0",16:"2714119c",17:"ae537d63",19:"f6f913f7",20:"cf5de182",22:"88253151",23:"5c768323",24:"d1ad4d4e",25:"15c19595",26:"14489c33",28:"38b8929e",29:"f6bdb1c6",30:"c3350b38",31:"bcc7f0a8",32:"03c1e107",33:"acfc20b9"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(i);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 i=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(r)},d.m=e,d.c=n,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)d.d(t,n,function(r){return e[r]}.bind(null,n));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var u=0;u<f.length;u++)r(f[u]);var s=i;t()}([]);
//# sourceMappingURL=runtime~main.547d00bb.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,f=r[0],d=r[1],i=r[2],u=0,l=[];u<f.length;u++)a=f[u],o[a]&&l.push(o[a][0]),o[a]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(e[n]=d[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,i||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var d=t[a];0!==o[d]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},a={21:0},o={21:0},c=[];function f(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,f),t.l=!0,t.exports}f.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,6:1,8:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,19:1,20:1,22:1,23:1,24:1,25:1,26:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"41f52958",2:"f2f19957",3:"16a64650",4:"85889ffd",5:"2e7d81ca",6:"f2cc3163",7:"31d6cfe0",8:"8bb031ea",9:"31d6cfe0",10:"e5315535",11:"cda7a495",12:"2649d43f",13:"278ad3b1",14:"3a4dbb7a",15:"bef8c404",16:"2fcc3e06",17:"8d310f0f",19:"3ae12dec",20:"dd7556e0",22:"fab97849",23:"f09a5959",24:"b002c899",25:"49988cae",26:"b57a1aec",28:"31d6cfe0",29:"4c706a4e",30:"2471f477",31:"0bb224f2",32:"5ed15c7e",33:"ecbb6f9a"}[e]+".chunk.css",o=f.p+n,c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var i=(s=c[d]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===n||i===o))return r()}var u=document.getElementsByTagName("style");for(d=0;d<u.length;d++){var s;if((i=(s=u[d]).getAttribute("data-href"))===n||i===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,d=document.createElement("script");d.charset="utf-8",d.timeout=120,f.nc&&d.setAttribute("nonce",f.nc),d.src=function(e){return f.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[e]||e)+"."+{0:"837f6eaa",1:"0f59b9f9",2:"e26d4c3e",3:"d4453df8",4:"2a80c718",5:"ed55ff6d",6:"8ba14c3b",7:"3db14bda",8:"273ad8e6",9:"5e894d30",10:"f6809d1e",11:"cfe7dec3",12:"ff3e0918",13:"4e250fd0",14:"d16852d2",15:"06124eb0",16:"d09938c6",17:"ae537d63",19:"f6f913f7",20:"110a3857",22:"88253151",23:"5c768323",24:"28abc0dc",25:"15c19595",26:"14489c33",28:"38b8929e",29:"f6bdb1c6",30:"c3350b38",31:"bcc7f0a8",32:"03c1e107",33:"acfc20b9"}[e]+".chunk.js"}(e),c=function(r){d.onerror=d.onload=null,clearTimeout(i);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 i=setTimeout(function(){c({type:"timeout",target:d})},12e4);d.onerror=d.onload=c,document.head.appendChild(d)}return Promise.all(r)},f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/",f.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],i=d.push.bind(d);d.push=r,d=d.slice();for(var u=0;u<d.length;u++)r(d[u]);var s=i;t()}([]);
//# sourceMappingURL=runtime~main.e5c1da46.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","21","exports","module","l","e","promises","1","2","3","4","5","6","8","10","11","12","13","14","15","16","17","19","20","22","23","24","25","26","29","30","31","32","33","Promise","resolve","reject","href","7","9","0","28","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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AlI,KAAAX,EACA6I,IAAAG,QACA,QAAAzI,EAAA,EAAgBA,EAAAsI,EAAApI,OAAuBF,IAAAP,EAAA6I,EAAAtI,IACvC,IAAAU,EAAA8H,EAIA1H","file":"mrstatic/js/runtime~main.547d00bb.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\t21: 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\t21: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"1\":\"BargainMiddlePage\",\"2\":\"Classify\",\"3\":\"Country\",\"4\":\"CourseList\",\"5\":\"DrawDocument\",\"6\":\"Examination\",\"7\":\"MyEdit\",\"8\":\"Order\",\"9\":\"Orderinfo\",\"10\":\"PayOrder\",\"11\":\"Preferential\",\"12\":\"SearchResult\",\"13\":\"ShareCourse\",\"14\":\"ShopCart\",\"15\":\"aist-share\",\"16\":\"coupons\",\"17\":\"detail\",\"19\":\"myorders\",\"20\":\"purchased\",\"22\":\"search\",\"23\":\"shareposter\",\"24\":\"study\",\"25\":\"togroup\",\"26\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"837f6eaa\",\"1\":\"0f59b9f9\",\"2\":\"e26d4c3e\",\"3\":\"d4453df8\",\"4\":\"2a80c718\",\"5\":\"ed55ff6d\",\"6\":\"8ba14c3b\",\"7\":\"3db14bda\",\"8\":\"273ad8e6\",\"9\":\"5e894d30\",\"10\":\"f6809d1e\",\"11\":\"cfe7dec3\",\"12\":\"ff3e0918\",\"13\":\"4e250fd0\",\"14\":\"d16852d2\",\"15\":\"06124eb0\",\"16\":\"2714119c\",\"17\":\"ae537d63\",\"19\":\"f6f913f7\",\"20\":\"cf5de182\",\"22\":\"88253151\",\"23\":\"5c768323\",\"24\":\"d1ad4d4e\",\"25\":\"15c19595\",\"26\":\"14489c33\",\"28\":\"38b8929e\",\"29\":\"f6bdb1c6\",\"30\":\"c3350b38\",\"31\":\"bcc7f0a8\",\"32\":\"03c1e107\",\"33\":\"acfc20b9\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"8\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"15\":1,\"16\":1,\"17\":1,\"19\":1,\"20\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"1\":\"BargainMiddlePage\",\"2\":\"Classify\",\"3\":\"Country\",\"4\":\"CourseList\",\"5\":\"DrawDocument\",\"6\":\"Examination\",\"7\":\"MyEdit\",\"8\":\"Order\",\"9\":\"Orderinfo\",\"10\":\"PayOrder\",\"11\":\"Preferential\",\"12\":\"SearchResult\",\"13\":\"ShareCourse\",\"14\":\"ShopCart\",\"15\":\"aist-share\",\"16\":\"coupons\",\"17\":\"detail\",\"19\":\"myorders\",\"20\":\"purchased\",\"22\":\"search\",\"23\":\"shareposter\",\"24\":\"study\",\"25\":\"togroup\",\"26\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"41f52958\",\"2\":\"f2f19957\",\"3\":\"16a64650\",\"4\":\"85889ffd\",\"5\":\"2e7d81ca\",\"6\":\"f2cc3163\",\"7\":\"31d6cfe0\",\"8\":\"8bb031ea\",\"9\":\"31d6cfe0\",\"10\":\"e5315535\",\"11\":\"cda7a495\",\"12\":\"2649d43f\",\"13\":\"278ad3b1\",\"14\":\"3a4dbb7a\",\"15\":\"bef8c404\",\"16\":\"de0ae9dc\",\"17\":\"8d310f0f\",\"19\":\"3ae12dec\",\"20\":\"1daf107b\",\"22\":\"fab97849\",\"23\":\"f09a5959\",\"24\":\"5e9927d1\",\"25\":\"49988cae\",\"26\":\"b57a1aec\",\"28\":\"31d6cfe0\",\"29\":\"4c706a4e\",\"30\":\"2471f477\",\"31\":\"0bb224f2\",\"32\":\"5ed15c7e\",\"33\":\"ecbb6f9a\"}[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","21","exports","module","l","e","promises","1","2","3","4","5","6","8","10","11","12","13","14","15","16","17","19","20","22","23","24","25","26","29","30","31","32","33","Promise","resolve","reject","href","7","9","0","28","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,EAA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,KAAAN,EAAApG,EAAA0F,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAxG,EAAA4G,EAAA,SAAAtG,GACA,IAAAsF,EAAAtF,KAAAiG,WACA,WAA2B,OAAAjG,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA0F,EAAAE,EAAA,IAAAA,GACAA,GAIA5F,EAAA6F,EAAA,SAAAgB,EAAAC,GAAsD,OAAA9H,OAAAC,UAAAC,eAAAC,KAAA0H,EAAAC,IAGtD9G,EAAA8C,EAAA,IAGA9C,EAAA+G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAlI,KAAA4H,KAAAM,GACAA,EAAAlI,KAAAX,EACA6I,IAAAG,QACA,QAAAzI,EAAA,EAAgBA,EAAAsI,EAAApI,OAAuBF,IAAAP,EAAA6I,EAAAtI,IACvC,IAAAU,EAAA8H,EAIA1H","file":"mrstatic/js/runtime~main.e5c1da46.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\t21: 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\t21: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"mrstatic/js/\" + ({\"1\":\"BargainMiddlePage\",\"2\":\"Classify\",\"3\":\"Country\",\"4\":\"CourseList\",\"5\":\"DrawDocument\",\"6\":\"Examination\",\"7\":\"MyEdit\",\"8\":\"Order\",\"9\":\"Orderinfo\",\"10\":\"PayOrder\",\"11\":\"Preferential\",\"12\":\"SearchResult\",\"13\":\"ShareCourse\",\"14\":\"ShopCart\",\"15\":\"aist-share\",\"16\":\"coupons\",\"17\":\"detail\",\"19\":\"myorders\",\"20\":\"purchased\",\"22\":\"search\",\"23\":\"shareposter\",\"24\":\"study\",\"25\":\"togroup\",\"26\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"837f6eaa\",\"1\":\"0f59b9f9\",\"2\":\"e26d4c3e\",\"3\":\"d4453df8\",\"4\":\"2a80c718\",\"5\":\"ed55ff6d\",\"6\":\"8ba14c3b\",\"7\":\"3db14bda\",\"8\":\"273ad8e6\",\"9\":\"5e894d30\",\"10\":\"f6809d1e\",\"11\":\"cfe7dec3\",\"12\":\"ff3e0918\",\"13\":\"4e250fd0\",\"14\":\"d16852d2\",\"15\":\"06124eb0\",\"16\":\"d09938c6\",\"17\":\"ae537d63\",\"19\":\"f6f913f7\",\"20\":\"110a3857\",\"22\":\"88253151\",\"23\":\"5c768323\",\"24\":\"28abc0dc\",\"25\":\"15c19595\",\"26\":\"14489c33\",\"28\":\"38b8929e\",\"29\":\"f6bdb1c6\",\"30\":\"c3350b38\",\"31\":\"bcc7f0a8\",\"32\":\"03c1e107\",\"33\":\"acfc20b9\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"8\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"15\":1,\"16\":1,\"17\":1,\"19\":1,\"20\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"mrstatic/css/\" + ({\"1\":\"BargainMiddlePage\",\"2\":\"Classify\",\"3\":\"Country\",\"4\":\"CourseList\",\"5\":\"DrawDocument\",\"6\":\"Examination\",\"7\":\"MyEdit\",\"8\":\"Order\",\"9\":\"Orderinfo\",\"10\":\"PayOrder\",\"11\":\"Preferential\",\"12\":\"SearchResult\",\"13\":\"ShareCourse\",\"14\":\"ShopCart\",\"15\":\"aist-share\",\"16\":\"coupons\",\"17\":\"detail\",\"19\":\"myorders\",\"20\":\"purchased\",\"22\":\"search\",\"23\":\"shareposter\",\"24\":\"study\",\"25\":\"togroup\",\"26\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"41f52958\",\"2\":\"f2f19957\",\"3\":\"16a64650\",\"4\":\"85889ffd\",\"5\":\"2e7d81ca\",\"6\":\"f2cc3163\",\"7\":\"31d6cfe0\",\"8\":\"8bb031ea\",\"9\":\"31d6cfe0\",\"10\":\"e5315535\",\"11\":\"cda7a495\",\"12\":\"2649d43f\",\"13\":\"278ad3b1\",\"14\":\"3a4dbb7a\",\"15\":\"bef8c404\",\"16\":\"2fcc3e06\",\"17\":\"8d310f0f\",\"19\":\"3ae12dec\",\"20\":\"dd7556e0\",\"22\":\"fab97849\",\"23\":\"f09a5959\",\"24\":\"b002c899\",\"25\":\"49988cae\",\"26\":\"b57a1aec\",\"28\":\"31d6cfe0\",\"29\":\"4c706a4e\",\"30\":\"2471f477\",\"31\":\"0bb224f2\",\"32\":\"5ed15c7e\",\"33\":\"ecbb6f9a\"}[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([[24],{1197:function(e,t,a){"use strict";a.r(t);var s=a(5),n=a(7),r=a(6),o=a(8),i=a(9),c=a(0),l=a.n(c),u=(a(790),a(15)),p=a(48),d=a(649),m=(a(791),a(156)),h=a(20),f=a(85),v=a(624),y=a.n(v),g=a(39),b=a(26);var E=l.a.memo(function(e){var t=e.addCourseClick;return l.a.createElement("div",{className:"add-course"},l.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});function L(e){var t=e.record,a=t.seconds,s=t.lesson_name,n="";if(s){var r=/\u7b2c[\s\S]+?\u8bfe/.exec(s);n+=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);n+=(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 l.a.createElement("span",{className:"record"},n.length?"\u5b66\u4e60\u5230".concat(n):null)}var w=l.a.memo(function(e){var t=e.item;if(t.ago||t.seconds){var a=new Date(1e3*t.ago),s=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");return l.a.createElement("div",{className:"des"},l.a.createElement("span",{className:"time"},s),l.a.createElement(L,{record:t}))}return l.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];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(g.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}return Object(i.a)(t,e),Object(n.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,s=t.user;return l.a.createElement(b.f,{isLoading:this.props.isLoading},a&&0!==a.length?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!s.hasError&&this.props.user.data.uid)),l.a.createElement(y.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},l.a.createElement("ul",{ref:function(t){return e.list=t}},a.map(function(t,a){var s=l.a.createElement("div",{className:"info"},l.a.createElement("div",{className:"title"},t.course_title),t.is_aist&&l.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&l.a.createElement("div",{className:"process-status"},l.a.createElement("div",{className:"process-wrapper"},l.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),l.a.createElement("div",{className:"process-text"},t.aist_schedule)),l.a.createElement(w,{item:t})),n=t.is_aist&&l.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),r=t.course_expire&&""!=t.course_expire&&l.a.createElement("span",{className:"course-expire"},t.course_expire);return l.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:s,status:n,courseExpire:r,id:t.v_course_id}))}))),a.length%10!==0?l.a.createElement(E,{addCourseClick:this.addCourseClick}):null):l.a.createElement("div",{className:"empty"},l.a.createElement("p",null,l.a.createElement("i",{className:"iconfont iconfish"})),l.a.createElement("p",{className:"empty-prompt"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u8d76\u5feb\u53bb\u9009\u8bfe\u5427~"),l.a.createElement("p",null,l.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(c.Component),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),_=(a(41),a(13)),k=a.n(_),O=(a(792),function(e){return l.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void 0,e.id)},e.top,l.a.createElement("img",{src:e.img,alt:""}),l.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(3),M=a(16),j=a.n(M),P=(a(110),a(793),function(e){return l.a.createElement("div",{className:"bottom"},l.a.createElement(b.i,{className:e.className},e.text),l.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(i)))).page=1,a.num=10,a.state={courses:[],live:[],page:1,hasMore:!1},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){return S.d.get("".concat(API.home,"/m/free_course/").concat(a.page++,"/").concat(a.num))},a.getFreeLive=function(){return S.d.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)):k.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a.loadFunc=function(){a.state.hasMore&&a.setState({hasMore:a.state.courses.length%10===0},function(){a.getFreeCourses().then(function(e){var t=e.data;200==t.code?Array.isArray(t.data)&&a.setState({courses:a.state.courses.concat(t.data),hasMore:t.data.length%10===0}):k.a.info(t.msg)})})},a}return Object(i.a)(t,e),Object(n.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,hasMore:!0}):k.a.info(a.msg)}),this.getFreeLive().then(function(t){var a=t.data;200==a.code?e.setState({live:Object(g.isEmpty)(a.data)?[]:a.data}):k.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this;return l.a.createElement(y.a,{pageStart:0,loadMore:this.loadFunc,useWindow:!1,className:"free-courses",element:"ul",hasMore:this.state.hasMore,threshold:250},this.state.live.map(function(t,a){var s=l.a.createElement("div",{className:"bottom"},l.a.createElement("div",{className:"animation-box"},new Array(4).fill("a").map(function(e,t){return l.a.createElement("i",{key:t,className:j()("column","column-".concat(t+1))})})),l.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),n=0==t.live_status?l.a.createElement(b.i,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):l.a.createElement(b.i,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");return l.a.createElement(O,{img:t.live_cover,title:t.live_title,top:n,bottom:s,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){return l.a.createElement(O,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:l.a.createElement(P,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(c.PureComponent),x=a(166),W=a(161),F=a(23),q=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];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(n.a)(t,[{key:"render",value:function(){var e=this.props.match;return l.a.createElement("section",{id:"study"},l.a.createElement("div",{className:"tab"},l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),l.a.createElement("div",{className:"study-container"},l.a.createElement(p.d,null,l.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(c.Component);t.default=Object(F.d)(W.a,x.a)(q)},624:function(e,t,a){e.exports=a(651)},649:function(e,t,a){"use strict";var s=a(0),n=a.n(s);a(650);t.a=function(e){return n.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},n.a.createElement("div",{className:"content"},n.a.createElement("div",{className:"cover"},e.status,n.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},650:function(e,t,a){},651:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),t}}(),n=a(0),r=i(n),o=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));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,n.Component),s(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),s=void 0;if(this.props.useWindow){var n=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:n.scrollTop;s=this.props.isReverse?r:this.calculateOffset(e,r)}else s=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;s<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,s=t.element,n=t.hasMore,o=(t.initialLoad,t.isReverse),i=t.loader,c=(t.loadMore,t.pageStart,t.ref),l=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));l.ref=function(t){e.scrollComponent=t,c&&c(t)};var u=[a];return n&&(i?o?u.unshift(i):u.push(i):this.defaultLoader&&(o?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(s,l,u)}}]),t}();c.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},c.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=c,e.exports=t.default},790:function(e,t,a){},791:function(e,t,a){},792:function(e,t,a){},793:function(e,t,a){}}]);
//# sourceMappingURL=study.28abc0dc.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","../node_modules/react-infinite-scroller/index.js","common/v-list-base/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","contact_type","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","courseExpire","course_expire","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","Component","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","page","num","courses","live","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","setState","then","res","code","Array","isArray","msg","isEmpty","_this3","element","threshold","fill","classnames","LiveStatus","common_course_base","logo","freeCourses_Bottom","category","PureComponent","Study","position","match","url","replace","activeClassName","react_router","exact","from","path","component","FreeCourses","compose","WithFullSize","WithTab","module","exports","__webpack_require__","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","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","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"gQAoBA,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,EA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,EAAAG,QAAA6E,KACArD,UAAA3B,EAAAG,QAAA6E,KACAnC,OAAA7C,EAAAG,QAAAwE,KACA/L,SAAAoH,EAAAG,QAAA8E,KAAAF,WACArM,UAAAsH,EAAAG,QAAA+E,OACApM,IAAAkH,EAAAG,QAAA8E,KACA/B,gBAAAlD,EAAAG,QAAA8E,KACAhI,UAAA+C,EAAAG,QAAA+E,OACAvC,WAAA3C,EAAAG,QAAA6E,KACAnM,UAAAmH,EAAAG,QAAA6E,MAEA5E,EAAA+E,aAAA,CACAnI,QAAA,MACArE,SAAA,EACAwK,aAAA,EACAzK,UAAA,EACAI,IAAA,KACAmE,UAAA,IACApE,WAAA,EACA8I,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEAxE,EAAAyB,QAAAC,EACA3B,EAAAC,UAAA","file":"mrstatic/js/study.28abc0dc.chunk.js","sourcesContent":["import React, { Component } 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 Component {\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 }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='contact'>班主任微信:{item.course_qq}</div>\n }\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 const courseExpire = (\n item.course_expire && item.course_expire!='' &&\n <span className='course-expire'>{item.course_expire}</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 courseExpire={courseExpire}\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'\nimport InfiniteScroll from \"react-infinite-scroller\";\nimport {HashLoader} from 'react-spinners'\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\n page = 1\n num = 10\n state = {\n courses: [],\n live: [],\n page: 1,\n hasMore: false\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 hasMore: true\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.page++}/${this.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 loadFunc = () => {\n if (this.state.hasMore) {\n this.setState({\n hasMore: this.state.courses.length % 10 === 0\n }, () => {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n Array.isArray(data.data) && this.setState({\n courses: this.state.courses.concat(data.data),\n hasMore: data.data.length % 10 === 0\n })\n } else {\n Toast.info(data.msg)\n }\n })\n })\n }\n }\n\n render() {\n return (\n <InfiniteScroll\n pageStart={0}\n loadMore={this.loadFunc}\n useWindow={false}\n className={'free-courses'}\n element={'ul'}\n hasMore={this.state.hasMore}\n threshold={250}\n >\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'] == 0 ? <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 </InfiniteScroll>\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)","module.exports = require('./dist/InfiniteScroll');","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;","'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([[24],{1197:function(e,t,a){"use strict";a.r(t);var s=a(5),n=a(7),o=a(6),r=a(8),i=a(9),c=a(0),l=a.n(c),u=(a(790),a(15)),p=a(48),d=a(649),h=(a(791),a(156)),m=a(20),f=a(85),v=a(624),y=a.n(v),g=a(39),b=a(26);var E=l.a.memo(function(e){var t=e.addCourseClick;return l.a.createElement("div",{className:"add-course"},l.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});function L(e){var t=e.record,a=t.seconds,s=t.lesson_name,n="";if(s){var o=/\u7b2c[\s\S]+?\u8bfe/.exec(s);n+=o&&o[0]?o[0]:""}if(a){var r=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);n+=(r.hour?String(r.hour).padStart(2,"0")+":":"")+(r.min?String(r.min).padStart(2,"0")+":":"")+(r.sec?String(r.sec).padStart(2,"0"):"")}return l.a.createElement("span",{className:"record"},n.length?"\u5b66\u4e60\u5230".concat(n):null)}var w=l.a.memo(function(e){var t=e.item;if(t.ago||t.seconds){var a=new Date(1e3*t.ago),s=Object(h.isToday)(a)?Object(h.format)(a,"HH\u65f6mm\u5206"):Object(h.format)(a,"MM\u6708DD\u65e5");return l.a.createElement("div",{className:"des"},l.a.createElement("span",{className:"time"},s),l.a.createElement(L,{record:t}))}return l.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.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(g.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}return Object(i.a)(t,e),Object(n.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,s=t.user;return l.a.createElement(b.f,{isLoading:this.props.isLoading},a&&0!==a.length?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!s.hasError&&this.props.user.data.uid)),l.a.createElement(y.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},l.a.createElement("ul",{ref:function(t){return e.list=t}},a.map(function(t,a){var s=l.a.createElement("div",{className:"info"},l.a.createElement("div",{className:"title"},t.course_title),t.is_aist&&l.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&l.a.createElement("div",{className:"process-status"},l.a.createElement("div",{className:"process-wrapper"},l.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),l.a.createElement("div",{className:"process-text"},t.aist_schedule)),l.a.createElement(w,{item:t})),n=t.is_aist&&l.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return l.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:s,status:n,id:t.v_course_id}))}))),a.length%10!==0?l.a.createElement(E,{addCourseClick:this.addCourseClick}):null):l.a.createElement("div",{className:"empty"},l.a.createElement("p",null,l.a.createElement("i",{className:"iconfont iconfish"})),l.a.createElement("p",{className:"empty-prompt"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u8d76\u5feb\u53bb\u9009\u8bfe\u5427~"),l.a.createElement("p",null,l.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(c.Component),N=Object(m.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),_=(a(41),a(13)),k=a.n(_),O=(a(792),function(e){return l.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void 0,e.id)},e.top,l.a.createElement("img",{src:e.img,alt:""}),l.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(3),M=a(16),j=a.n(M),P=(a(110),a(793),function(e){return l.a.createElement("div",{className:"bottom"},l.a.createElement(b.i,{className:e.className},e.text),l.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).page=1,a.num=10,a.state={courses:[],live:[],page:1,hasMore:!1},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){return S.d.get("".concat(API.home,"/m/free_course/").concat(a.page++,"/").concat(a.num))},a.getFreeLive=function(){return S.d.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)):k.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a.loadFunc=function(){a.state.hasMore&&a.setState({hasMore:a.state.courses.length%10===0},function(){a.getFreeCourses().then(function(e){var t=e.data;200==t.code?Array.isArray(t.data)&&a.setState({courses:a.state.courses.concat(t.data),hasMore:t.data.length%10===0}):k.a.info(t.msg)})})},a}return Object(i.a)(t,e),Object(n.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,hasMore:!0}):k.a.info(a.msg)}),this.getFreeLive().then(function(t){var a=t.data;200==a.code?e.setState({live:Object(g.isEmpty)(a.data)?[]:a.data}):k.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this;return l.a.createElement(y.a,{pageStart:0,loadMore:this.loadFunc,useWindow:!1,className:"free-courses",element:"ul",hasMore:this.state.hasMore,threshold:250},this.state.live.map(function(t,a){var s=l.a.createElement("div",{className:"bottom"},l.a.createElement("div",{className:"animation-box"},new Array(4).fill("a").map(function(e,t){return l.a.createElement("i",{key:t,className:j()("column","column-".concat(t+1))})})),l.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),n=0==t.live_status?l.a.createElement(b.i,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):l.a.createElement(b.i,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");return l.a.createElement(O,{img:t.live_cover,title:t.live_title,top:n,bottom:s,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){return l.a.createElement(O,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:l.a.createElement(P,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(c.PureComponent),W=a(166),x=a(161),F=a(23),q=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.match;return l.a.createElement("section",{id:"study"},l.a.createElement("div",{className:"tab"},l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),l.a.createElement("div",{className:"study-container"},l.a.createElement(p.d,null,l.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(c.Component);t.default=Object(F.d)(x.a,W.a)(q)},624:function(e,t,a){e.exports=a(651)},649:function(e,t,a){"use strict";var s=a(0),n=a.n(s);a(650);t.a=function(e){return n.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},n.a.createElement("div",{className:"content"},n.a.createElement("div",{className:"cover"},e.status,n.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},650:function(e,t,a){},651:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),t}}(),n=a(0),o=i(n),r=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));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,n.Component),s(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),s=void 0;if(this.props.useWindow){var n=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:n.scrollTop;s=this.props.isReverse?o:this.calculateOffset(e,o)}else s=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;s<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,s=t.element,n=t.hasMore,r=(t.initialLoad,t.isReverse),i=t.loader,c=(t.loadMore,t.pageStart,t.ref),l=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));l.ref=function(t){e.scrollComponent=t,c&&c(t)};var u=[a];return n&&(i?r?u.unshift(i):u.push(i):this.defaultLoader&&(r?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(s,l,u)}}]),t}();c.propTypes={children:r.default.node.isRequired,element:r.default.node,hasMore:r.default.bool,initialLoad:r.default.bool,isReverse:r.default.bool,loader:r.default.node,loadMore:r.default.func.isRequired,pageStart:r.default.number,ref:r.default.func,getScrollParent:r.default.func,threshold:r.default.number,useCapture:r.default.bool,useWindow:r.default.bool},c.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=c,e.exports=t.default},790:function(e,t,a){},791:function(e,t,a){},792:function(e,t,a){},793:function(e,t,a){}}]);
//# sourceMappingURL=study.d1ad4d4e.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","../node_modules/react-infinite-scroller/index.js","common/v-list-base/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","contact_type","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","Component","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","page","num","courses","live","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","setState","then","res","code","Array","isArray","msg","isEmpty","_this3","element","threshold","fill","classnames","LiveStatus","common_course_base","logo","freeCourses_Bottom","category","PureComponent","Study","position","match","url","replace","activeClassName","react_router","exact","from","path","component","FreeCourses","compose","WithFullSize","WithTab","module","exports","__webpack_require__","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","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","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"gQAoBA,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,EA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H,EAAAG,QAAA6E,KACA7B,YAAAnD,EAAAG,QAAA6E,KACArD,UAAA3B,EAAAG,QAAA6E,KACAnC,OAAA7C,EAAAG,QAAAwE,KACA7L,SAAAkH,EAAAG,QAAA8E,KAAAF,WACAnM,UAAAoH,EAAAG,QAAA+E,OACAlM,IAAAgH,EAAAG,QAAA8E,KACA/B,gBAAAlD,EAAAG,QAAA8E,KACAhI,UAAA+C,EAAAG,QAAA+E,OACAvC,WAAA3C,EAAAG,QAAA6E,KACAjM,UAAAiH,EAAAG,QAAA6E,MAEA5E,EAAA+E,aAAA,CACAnI,QAAA,MACAnE,SAAA,EACAsK,aAAA,EACAvK,UAAA,EACAI,IAAA,KACAiE,UAAA,IACAlE,WAAA,EACA4I,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEAxE,EAAAyB,QAAAC,EACA3B,EAAAC,UAAA","file":"mrstatic/js/study.d1ad4d4e.chunk.js","sourcesContent":["import React, { Component } 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 Component {\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 }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='contact'>班主任微信:{item.course_qq}</div>\n }\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'\nimport InfiniteScroll from \"react-infinite-scroller\";\nimport {HashLoader} from 'react-spinners'\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\n page = 1\n num = 10\n state = {\n courses: [],\n live: [],\n page: 1,\n hasMore: false\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 hasMore: true\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.page++}/${this.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 loadFunc = () => {\n if (this.state.hasMore) {\n this.setState({\n hasMore: this.state.courses.length % 10 === 0\n }, () => {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n Array.isArray(data.data) && this.setState({\n courses: this.state.courses.concat(data.data),\n hasMore: data.data.length % 10 === 0\n })\n } else {\n Toast.info(data.msg)\n }\n })\n })\n }\n }\n\n render() {\n return (\n <InfiniteScroll\n pageStart={0}\n loadMore={this.loadFunc}\n useWindow={false}\n className={'free-courses'}\n element={'ul'}\n hasMore={this.state.hasMore}\n threshold={250}\n >\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'] == 0 ? <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 </InfiniteScroll>\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)","module.exports = require('./dist/InfiniteScroll');","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;","'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
self.__precacheManifest = [
{
"revision": "0886512ba0b36c64e50d",
"url": "/mrstatic/css/purchased.1daf107b.chunk.css"
"revision": "880d918f59706e73849d",
"url": "/mrstatic/css/purchased.dd7556e0.chunk.css"
},
{
"revision": "0a053f8edea89b4952bd",
......@@ -20,16 +20,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Classify.e26d4c3e.chunk.js"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "c734f10cac6f0c5b9e10",
"url": "/mrstatic/js/Country.d4453df8.chunk.js"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "32896176b22ec754f28b",
......@@ -120,8 +120,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/31.bcc7f0a8.chunk.js"
},
{
"revision": "19a832c4a929265e51be",
"url": "/mrstatic/js/coupons.2714119c.chunk.js"
"revision": "5835ea208d9e3048af42",
"url": "/mrstatic/js/coupons.d09938c6.chunk.js"
},
{
"revision": "ebfc3bbbbb86f7e65957",
......@@ -152,12 +152,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/27.4e2ae400.chunk.js"
},
{
"revision": "0886512ba0b36c64e50d",
"url": "/mrstatic/js/purchased.cf5de182.chunk.js"
"revision": "880d918f59706e73849d",
"url": "/mrstatic/js/purchased.110a3857.chunk.js"
},
{
"revision": "d574101d570f96559173",
"url": "/mrstatic/js/runtime~main.547d00bb.js"
"revision": "72c8e34fefa9318d1b53",
"url": "/mrstatic/js/runtime~main.e5c1da46.js"
},
{
"revision": "18a5e2ec3e87f4305af9",
......@@ -176,16 +176,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/shareposter.5c768323.chunk.js"
},
{
"revision": "79b3d06e53d8fcb7a3e1",
"url": "/mrstatic/js/study.d1ad4d4e.chunk.js"
"revision": "938bb6bc29bd38af3b6c",
"url": "/mrstatic/js/study.28abc0dc.chunk.js"
},
{
"revision": "89f870d60c54b5a207eb",
"url": "/mrstatic/css/32.5ed15c7e.chunk.css"
},
{
"revision": "79b3d06e53d8fcb7a3e1",
"url": "/mrstatic/css/study.5e9927d1.chunk.css"
"revision": "938bb6bc29bd38af3b6c",
"url": "/mrstatic/css/study.b002c899.chunk.css"
},
{
"revision": "ea4d627e24505fd77b31",
......@@ -236,8 +236,8 @@ self.__precacheManifest = [
"url": "/mrstatic/css/PayOrder.e5315535.chunk.css"
},
{
"revision": "19a832c4a929265e51be",
"url": "/mrstatic/css/coupons.de0ae9dc.chunk.css"
"revision": "5835ea208d9e3048af42",
"url": "/mrstatic/css/coupons.2fcc3e06.chunk.css"
},
{
"revision": "22dfc0736ee7cf486a6d",
......@@ -292,7 +292,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/27.aebbab68.chunk.css"
},
{
"revision": "cb421180aedd566f64db42d63a9fbced",
"revision": "034e66afcb36d8209e7f3772c40aaae1",
"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.32760ab34af0d95fd73a11296720ef2c.js"
"/precache-manifest.c625d1ace6fbda0510660619dd24ac58.js"
);
workbox.clientsClaim();
......
......@@ -3692,6 +3692,11 @@
"resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz",
"integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk="
},
"clipboard-copy": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/clipboard-copy/-/clipboard-copy-3.1.0.tgz",
"integrity": "sha512-Xsu1NddBXB89IUauda5BIq3Zq73UWkjkaQlPQbLNvNsd5WBMnTWPNKYR6HGaySOxGYZ+BKxP2E9X4ElnI3yiPA=="
},
"cliui": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
......@@ -3984,14 +3989,6 @@
"resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40="
},
"copy-to-clipboard": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.2.0.tgz",
"integrity": "sha512-eOZERzvCmxS8HWzugj4Uxl8OJxa7T2k1Gi0X5qavwydHIfuSHq2dTD09LOg/XyGq4Zpb5IsR/2OJ5lbOegz78w==",
"requires": {
"toggle-selection": "^1.0.6"
}
},
"core-js": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.5.tgz",
......@@ -12087,15 +12084,6 @@
}
}
},
"react-copy-to-clipboard": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/react-copy-to-clipboard/-/react-copy-to-clipboard-5.0.1.tgz",
"integrity": "sha512-ELKq31/E3zjFs5rDWNCfFL4NvNFQvGRoJdAKReD/rUPA+xxiLPQmZBZBvy2vgH7V0GE9isIQpT9WXbwIVErYdA==",
"requires": {
"copy-to-clipboard": "^3",
"prop-types": "^15.5.8"
}
},
"react-dev-utils": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-8.0.0.tgz",
......@@ -14514,11 +14502,6 @@
"repeat-string": "^1.6.1"
}
},
"toggle-selection": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz",
"integrity": "sha1-bkWxJj8gF/oKzH2J14sVuL932jI="
},
"topo": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/topo/-/topo-2.0.2.tgz",
......
......@@ -7,11 +7,15 @@ class Coupon extends PureComponent {
pick = () => {
let {useCoupon, invalid} = this.props
!invalid && useCoupon && useCoupon(this.props.id)
}
GoToUse = () => {
this.props.useCoupon(this.props.id)
}
ExchangeCourse = (e) => {
this.props.toExchangeCourse(e,this.props.code)
}
render() {
let {
......@@ -22,6 +26,7 @@ class Coupon extends PureComponent {
invalid,
course_title,
id,
code,
selectedCouponId,
showUseButton
} = this.props
......@@ -56,13 +61,21 @@ class Coupon extends PureComponent {
limit_course === 0 ? '可用于大于代金券金额的课程' : `仅适用于《${course_title}》`
}</span>
{
showUseButton &&
showUseButton && ctype == 1 &&
<button
className='use'
onClick={this.GoToUse}
>立即使用
</button>
}
{
showUseButton && ctype == 2 &&
<button
className='use'
onClick={(e)=>this.ExchangeCourse(e)}
>立即兑换
</button>
}
</div>
</li>
......
import React, { PureComponent } from 'react';
import React, {PureComponent} from 'react';
import './index.scss'
import RedeemBar from "../RedeemBar";
import Coupon from '../Coupon'
import { http, getParam } from '@/utils'
import { WithFullSize } from '@/HOCs'
import { Toast } from 'antd-mobile'
import { isEmpty } from 'lodash'
import { connect } from 'react-redux';
import {http, getParam} from '@/utils'
import {WithFullSize} from '@/HOCs'
import {Toast} from 'antd-mobile'
import {isEmpty} from 'lodash'
import {connect} from 'react-redux';
@connect()
class UseCoupon extends PureComponent {
......@@ -19,11 +19,12 @@ class UseCoupon extends PureComponent {
valid_coupons: [],
invalid_coupons: [],
courseId: getParam('id'),
showUseButton: false
showUseButton: false,
courseCouponExchange: false, // 课程券兑换弹窗
courseCouponData: '' // 兑换课程信息
}
componentDidMount() {
const {history, location} = this.props
const {state} = this.props.location
......@@ -47,6 +48,7 @@ class UseCoupon extends PureComponent {
this.setState({redeemCode: value})
}
// 兑换
exchange = () => {
const {location: {state = {}}} = this.props;
if (this.state.redeemCode !== '') {
......@@ -59,6 +61,13 @@ class UseCoupon extends PureComponent {
const coupon = data.data
if (coupon['ctype'] == 2) {
this.setState({
courseCouponData: coupon,
courseCouponExchange: true,
redeemCode: ''
})
} else {
if (this.state.showUseButton) {
this.setState({
couponList: [...this.state.couponList, coupon],
......@@ -67,21 +76,11 @@ class UseCoupon extends PureComponent {
} else {
const coupon = data.data
if (coupon['ctype'] == 2
&& coupon['limit_course'] != this.state.courseId) {
this.setState({
invalid_coupons: [...this.state.invalid_coupons, coupon],
showUseButton: null
});
} else {
this.setState({
valid_coupons: [...this.state.valid_coupons, coupon],
redeemCode: ''
})
}
}
Toast.info('兑换成功')
if (state.from === '/my') {
this.getMyCoupons()
......@@ -89,6 +88,7 @@ class UseCoupon extends PureComponent {
if (state.from === '/order') {
this.getAllCoupons()
}
}
} else {
Toast.info(data.msg)
}
......@@ -135,6 +135,24 @@ class UseCoupon extends PureComponent {
})
}
// 立即兑换课程
toExchangeCourse = (e,code)=>{
e.stopPropagation();
http.post(`${API['base-api']}/pay/miandan/${code}`, {
}).then(res => {
const data = res.data
if (data.errno === 200) {
this.setState({
courseCouponExchange: true,
courseCouponData:res.data.data
})
this.getMyCoupons()
} else {
Toast.info(data.msg)
}
})
}
useCoupon = val => {
const {history, dispatch} = this.props
const coupon = this.state.couponList.find(item => item.id === val)
......@@ -142,13 +160,11 @@ class UseCoupon extends PureComponent {
if (val) {
if (this.state.showUseButton) {
if (coupon['ctype'] === 1) {
if (coupon['limit_course'] === 0) {
history.push(`/classify`)
} else {
// dispatch(getCourses(coupon['limit_course'], () => {
history.push(`/detail?id=${coupon['limit_course']}`);
return false;
// }));
}
} else {
......@@ -206,6 +222,26 @@ class UseCoupon extends PureComponent {
}
// 开始学习
toStudy = (vCourseId, isHaveVideo) => {
const {history} = this.props;
if (isHaveVideo == 0) {
Toast.info('尚未开课,开课后立即上传课程~', 2)
} else {
history.push(`/play/video?id=${vCourseId}`)
}
this.setState({
courseCouponExchange: false
})
}
// 关闭弹窗
closeFreeCourse = () => {
this.setState({
courseCouponExchange: false
})
}
render() {
const {state} = this.props.location
const {showUseButton, selectedCouponId} = this.state
......@@ -227,6 +263,7 @@ class UseCoupon extends PureComponent {
selectedCouponId={selectedCouponId}
select={this.select}
useCoupon={this.useCoupon}
toExchangeCourse={this.toExchangeCourse}
/>
{
this.state.invalid_coupons.length > 0 &&
......@@ -244,6 +281,11 @@ class UseCoupon extends PureComponent {
)
}
</div>
{
this.state.courseCouponExchange &&
<FreeCouponCourse toStudy={this.toStudy} closeFreeCourse={this.closeFreeCourse}
courseCouponData={this.state.courseCouponData}/>
}
</div>
);
}
......@@ -275,4 +317,29 @@ function Content({coupons, ...rest}) {
)
}
function FreeCouponCourse(props) {
const {toStudy, closeFreeCourse, courseCouponData} = props
return (
<div className="free-coupon-box">
<div className="free-coupon-content">
<div className="coures-content-success"><i className={'iconfont icondanseshixintubiao-5'}/></div>
<div className="coures-content-title">恭喜你课程兑换成功!赶快去学习吧~</div>
<img className="coures-content-img" src={courseCouponData.image_name} alt=""/>
{
courseCouponData.course_expire != 0 &&
<div className="coures-content-tip"><i
className={'iconfont icondanseshixintubiao-8'}/><span>课程有效期:自今日起{courseCouponData.course_expire}天内,请在有效期内学习该课程哦~</span>
</div>
}
<a className='toStudy'
onClick={() => toStudy(courseCouponData.v_course_id, courseCouponData.is_is_start)}>去学习</a>
</div>
<div className="free-coupon-close">
<i className={'iconfont iconiconfront-2'} onClick={() => closeFreeCourse()}/>
</div>
</div>
)
}
export default WithFullSize(UseCoupon);
\ No newline at end of file
......@@ -17,11 +17,95 @@
text-align: center;
}
.invalid-title{
.invalid-title {
text-align: center;
font-size: $font_12;
line-height: 52px;
color: $color_999;
}
}
.free-coupon-box {
position: fixed;
width: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-align: center;
background: rgba(0,0,0,.6);
z-index: 11;
.free-coupon-content {
width: 290px;
border-radius: 10px;
background-color: #fff;
padding: 20px;
margin: 150px auto 0 auto;
.coures-content-success {
height: 30px;
line-height: 30px;
i {
font-size: 34px;
color: #09f;
}
}
.coures-content-title {
font-size: 15px;
color: #333;
margin-top: 10px;
}
.coures-content-img {
width: 150px;
height: 108px;
border-radius: 3px;
margin-top: 20px;
}
.coures-content-tip {
color: #FF3131;
font-size: 12px;
margin-top: 20px;
text-align: left;
line-height: 15px;
height: 30px;
i {
display: inline-block;
color: #FF3131;
font-size: 18px;
position: relative;
top: 6px;
}
span{
display: inline-block;
margin-left: 20px;
position: relative;
top: -15px;
}
}
.toStudy {
display: inline-block;
width: 138px;
height: 30px;
line-height: 30px;
background-color: #09f;
border-radius: 15px;
margin-top: 20px;
font-size: 15px;
color: #fff;
}
}
.free-coupon-close {
margin-top: 30px;
i{
font-size: 26px;
color: #fff;
}
}
}
}
\ No newline at end of file
......@@ -82,6 +82,10 @@ class Purchased extends Component {
const status = (
item.is_aist && <span className='status'>返现</span>
)
const courseExpire = (
item.course_expire && item.course_expire!='' &&
<span className='course-expire'>{item.course_expire}</span>
)
return (
<VList
key={index}
......@@ -89,6 +93,7 @@ class Purchased extends Component {
id={item.course_id}
info={Info}
status={status}
courseExpire={courseExpire}
toDetail={this.toCourseDetail}
/>
)
......
......@@ -110,5 +110,18 @@ html, body, #root {
color: #fff;
background: linear-gradient(to bottom, #FF4000, #FD7700);
}
.course-expire{
display: inline-block;
text-align: center;
position: absolute;
bottom: 10px;
left: 0;
width:92px;
height:20px;
line-height: 21px;
background-color: #FF3A3A;
border-radius:0 10px 10px 0;
color: #fff;
font-size: 12px;
}
}
\ No newline at end of file
......@@ -152,6 +152,10 @@ class MyCourses extends Component {
const status = (
item.is_aist && <span className='status'>返现</span>
)
const courseExpire = (
item.course_expire && item.course_expire!='' &&
<span className='course-expire'>{item.course_expire}</span>
)
return (
<VList img={item.image_name}
handleClick={this.handleClick}
......@@ -159,6 +163,7 @@ class MyCourses extends Component {
key={index}
info={Info}
status={status}
courseExpire={courseExpire}
id={item['v_course_id']}
/>
)
......
......@@ -150,4 +150,18 @@
color: #fff;
background: linear-gradient(to bottom, #FF4000, #FD7700);
}
.course-expire{
display: inline-block;
text-align: center;
position: absolute;
bottom: 10px;
left: 0;
width:92px;
height:20px;
line-height: 21px;
background-color: #FF3A3A;
border-radius:0 10px 10px 0;
color: #fff;
font-size: 12px;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment